Пример #1
0
        public void LogEvent(string sUnid, string sMsg, int iStatus, int iBatch)
        {
            Ws_Logger wsLogger = new Ws_Logger();

            if (iStatus == 10000)
            {
                wsLogger.Logger(sUnid, this.sCustomerName + "&" + this.sUserName, iStatus, iBatch);
            }
            else
            {
                wsLogger.Logger(sUnid, sMsg, iStatus, iBatch);
            }
            wsLogger.Dispose();
        }
Пример #2
0
        public void LogEvent()
        {
            Ws_Logger wsLogger = new Ws_Logger();

            this.IBatchNo = -1;
            try
            {
                int iBatchid = int.Parse(wsLogger.FindNextId(this.sUnid));
                this.IBatchNo = iBatchid;
                wsLogger.Logger(this.sUnid, this.sXmlDoc, 99999, iBatchid);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                wsLogger.Dispose();
            }
        }