Beispiel #1
0
        public string ChkInstall(string sUnid)
        {
            Installer.wslogger.Ws_Logger ws = new Installer.wslogger.Ws_Logger();
            // ws.Timeout = 20000;

            try
            {
                string sRes = "";
                if (sEmail.Contains(@"cookconsulting"))
                {
                    sRes = "go";
                }
                else
                {
                    sRes = ws.ChkInstall(sUnid);
                }

                return(sRes);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                ws.Dispose();
            }
        }
Beispiel #2
0
        public void LogEvent()
        {
            Installer.wslogger.Ws_Logger ws = new Installer.wslogger.Ws_Logger();
            // ws.Timeout = 20000;
            IBatchNo = -1;
            try
            {
                int iBatch = int.Parse(ws.FindNextId(sUnid));
                IBatchNo = iBatch;
// 15 May 2012
// skip logging the cook stuff
                //if (sEmail.Contains(@"cookconsulting"))
                //{ }
                //else
                ws.Logger(sUnid, sXmlDoc, 99999, iBatch);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                ws.Dispose();
            }
        }
Beispiel #3
0
        public string PackXml(string sXml, string sUnid)
        {
            string sOut = "";

            Installer.wslogger.Ws_Logger ws = new Installer.wslogger.Ws_Logger();
            // ws.Timeout = 20000;

            try
            {
                sOut = ws.RndCustXml(sXml, sUnid);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                ws.Dispose();
            }
            return(sOut);
        }
Beispiel #4
0
        public void LogEvent(string sUnid, string sMsg, int iStatus, int iBatch)
        {
            // chg per version II 17 Feb 2021
            //if (sEmail.Contains(@"testing"))
            //{ }

            //else
            {
                Installer.wslogger.Ws_Logger ws = new Installer.wslogger.Ws_Logger();

                if (iStatus == 10000)
                {
                    ws.Logger(sUnid, sCustomerName + "&" + sUserName, iStatus, iBatch);
                }
                else
                {
                    ws.Logger(sUnid, sMsg, iStatus, iBatch);
                }

                ws.Dispose();
            }
        }