Exemplo n.º 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();
        }
Exemplo n.º 2
0
        public string ChkInstall(string sUnid)
        {
            Ws_Logger wsLogger = new Ws_Logger();

            try
            {
                return(!this.sEmail.Contains("cookconsulting") ? wsLogger.ChkInstall(sUnid) : "go");
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                wsLogger.Dispose();
            }
        }
Exemplo n.º 3
0
        public string PackXml(string sXml, string sUnid)
        {
            Ws_Logger wsLogger = new Ws_Logger();

            try
            {
                return(wsLogger.RndCustXml(sXml, sUnid));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                wsLogger.Dispose();
            }
        }
Exemplo n.º 4
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();
            }
        }