| | |
| | | using System;
|
| | | using System.Data;
|
| | | using System.Configuration;
|
| | | using System.Web;
|
| | | using System.Web.Security;
|
| | | using System.Web.UI;
|
| | | using System.Web.UI.HtmlControls;
|
| | | using System.Web.UI.WebControls;
|
| | | using System.Web.UI.WebControls.WebParts;
|
| | |
|
| | | using System.Data.OracleClient;
|
| | | using CCSTrace.CCS.Object;
|
| | |
|
| | | namespace CCSTrace.CCS.Function
|
| | | {
|
| | | public class MergeCase
|
| | | {
|
| | | private CCS.Object.EventRecord l_Eventrecord;
|
| | | private CCS.EventAI.JudgeCase m_JudgeCase;
|
| | | private EventRecord _lEventrecord;
|
| | | private EventAI.JudgeCase _mJudgeCase;
|
| | |
|
| | | public MergeCase() |
| | | public MergeCase()
|
| | | {
|
| | | }
|
| | |
|
| | | public void Merge(CCS.Object.EventRecord m_Eventrecord, OracleConnection _Conn, OracleTransaction _Trx, String _traceConnection, RecordLog _Log) |
| | | public void Merge(EventRecord mEventrecord, OracleConnection conn, OracleTransaction trx, string traceConnection, RecordLog log)
|
| | | {
|
| | | try
|
| | | {
|
| | | m_JudgeCase = new CCS.EventAI.JudgeCase(m_Eventrecord.getFdrID(), m_Eventrecord.getFsc(), m_Eventrecord.getUfid(),
|
| | | m_Eventrecord.getCaseID(), m_Eventrecord.getAcceptDate(), _Conn, _Trx, _traceConnection, _Log);
|
| | | l_Eventrecord = m_Eventrecord;
|
| | | m_JudgeCase.AIBegin();
|
| | | l_Eventrecord.setParentID(m_JudgeCase.getParentCaseID());
|
| | | l_Eventrecord.setFsc(m_JudgeCase.getInferEquipment().getFSC());
|
| | | l_Eventrecord.setUfid(m_JudgeCase.getInferEquipment().getUFID());
|
| | | _mJudgeCase = new EventAI.JudgeCase(mEventrecord.FdrId, mEventrecord.Fsc, mEventrecord.Ufid,
|
| | | mEventrecord.CaseId, mEventrecord.AcceptDate, conn, trx, traceConnection, log);
|
| | | _lEventrecord = mEventrecord;
|
| | | _mJudgeCase.AiBegin();
|
| | | _lEventrecord.ParentId = _mJudgeCase.GetParentCaseId();
|
| | | _lEventrecord.Fsc = _mJudgeCase.GetInferEquipment().Fsc;
|
| | | _lEventrecord.Ufid = _mJudgeCase.GetInferEquipment().Ufid;
|
| | | }
|
| | | catch (CCS.EventAI.TraceLoopException tle) {
|
| | | _Log.Error(tle.Message);
|
| | | catch (EventAI.TraceLoopException tle)
|
| | | {
|
| | | log.Error(tle.Message);
|
| | | throw tle;
|
| | | }
|
| | | catch (Exception e) {
|
| | | _Log.Error(e.Message);
|
| | | catch (Exception e)
|
| | | {
|
| | | log.Error(e.Message);
|
| | | throw e;
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | public CCS.EventAI.Equipment getOldEquipment() {
|
| | | return m_JudgeCase.getOldrEquipment();
|
| | | public EventAI.Equipment GetOldEquipment()
|
| | | {
|
| | | return _mJudgeCase.GetOldrEquipment();
|
| | | }
|
| | | }
|
| | |
|
| | | class TraceException : Exception
|
| | | internal class TraceException : Exception
|
| | | {
|
| | | public TraceException()
|
| | | {
|
| | | }
|
| | | public TraceException()
|
| | | {
|
| | | }
|
| | | }
|
| | | }
|
| | | } |