| | |
| | |
|
| | | using System.Data.OracleClient;
|
| | | using CCSTrace.CCS.Domain;
|
| | | using CCSTrace.CCS.Object;
|
| | | using NLog;
|
| | |
|
| | | namespace CCSTrace.CCS.Function
|
| | |
| | | _traceConnectionString = traceConnection;
|
| | | }
|
| | |
|
| | | public int LeachCase(Object.EOSEventRecord mNewRec)
|
| | | public int LeachCase(EOSEventRecord mNewRec)
|
| | | {
|
| | | switch (SameCase(mNewRec))
|
| | | {
|
| | |
| | | return _mergeCase.GetOldEquipment();
|
| | | }
|
| | |
|
| | | private int SameCase(Object.EOSEventRecord mNewRec)
|
| | | private int SameCase(EOSEventRecord mNewRec)
|
| | | {
|
| | | string sqlStmt = "SELECT R.ACCEPTNUM,R.CASEID as CASEID,R.IMPORTCASE as IMPORTCASE,E.CASETYPE as CASETYPE FROM EOS.EVENTRECORD R,"
|
| | | + "EOS.EVENTS E WHERE ";
|
| | |
| | | return status;
|
| | | }
|
| | |
|
| | | private int Judge(Object.EOSEventRecord mNewRec, bool changeCaseType)
|
| | | private int Judge(EOSEventRecord mNewRec, bool changeCaseType)
|
| | | {
|
| | | int mResult = GlobalVariable.FailureByDb;
|
| | |
|
| | |
| | | return mResult;
|
| | | }
|
| | |
|
| | | private int GetEquipment(Object.EOSEventRecord mNewRec)
|
| | | private int GetEquipment(EOSEventRecord mNewRec)
|
| | | {
|
| | | string temp;
|
| | | string mOwnerTpclid;
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | private int GetSxfmr(string mTpclid, string mGroup, Object.EOSEventRecord mNewRec)
|
| | | private int GetSxfmr(string mTpclid, string mGroup, EOSEventRecord mNewRec)
|
| | | {
|
| | | string sqlStmt;
|
| | | int mStatus = GlobalVariable.FailureByDb;
|
| | |
| | | return mStatus;
|
| | | }
|
| | |
|
| | | private int GetHicustomer(string mTpclid, string mGroup, Object.EOSEventRecord mNewRec)
|
| | | private int GetHicustomer(string mTpclid, string mGroup, EOSEventRecord mNewRec)
|
| | | {
|
| | | string sqlStmt;
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | private void GetLocateEquipment(Object.EOSEventRecord mNewRec)
|
| | | private void GetLocateEquipment(EOSEventRecord mNewRec)
|
| | | {
|
| | | var sqlStmt = "SELECT OWNERFSC as FSC,OWNERUFID as UFID,OWNERTPCLID as TPCLID FROM ";
|
| | | switch (mNewRec.Fsc)
|