ulysseskao
2016-05-05 540014a7702a9bae7a3b9c00098671a132e869e8
CCSTrace/CCS/Function/Leach.cs
@@ -2,6 +2,7 @@
using System.Data.OracleClient;
using CCSTrace.CCS.Domain;
using CCSTrace.CCS.Object;
using NLog;
namespace CCSTrace.CCS.Function
@@ -22,7 +23,7 @@
            _traceConnectionString = traceConnection;
        }
        public int LeachCase(Object.EOSEventRecord mNewRec)
        public int LeachCase(EOSEventRecord mNewRec)
        {
            switch (SameCase(mNewRec))
            {
@@ -51,7 +52,7 @@
            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 ";
@@ -264,7 +265,7 @@
            return status;
        }
        private int Judge(Object.EOSEventRecord mNewRec, bool changeCaseType)
        private int Judge(EOSEventRecord mNewRec, bool changeCaseType)
        {
            int mResult = GlobalVariable.FailureByDb;
@@ -367,7 +368,7 @@
            return mResult;
        }
        private int GetEquipment(Object.EOSEventRecord mNewRec)
        private int GetEquipment(EOSEventRecord mNewRec)
        {
            string temp;
            string mOwnerTpclid;
@@ -417,7 +418,7 @@
            }
        }
        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;
@@ -460,7 +461,7 @@
            return mStatus;
        }
        private int GetHicustomer(string mTpclid, string mGroup, Object.EOSEventRecord mNewRec)
        private int GetHicustomer(string mTpclid, string mGroup, EOSEventRecord mNewRec)
        {
            string sqlStmt;
@@ -502,7 +503,7 @@
            }
        }
        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)