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(); }
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(); } }
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(); } }
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(); } }