Ejemplo n.º 1
0
        private void SaveLog(OperationLog.LogEvent logEvent, string source, string value)
        {
            OperationLog ol = new OperationLog(this.menuId, Session.GetCurrentUser().UserID, logEvent, source, value,
                                               errFlag == true ? OperationLog.ErrorFlag.Error : OperationLog.ErrorFlag.NotError, errMsg, DateTime.Now);

            ol.SaveLog();
        }
Ejemplo n.º 2
0
        private void SaveLog(string deliveryOrderTag, string error)
        {
            OperationLog.ErrorFlag errFlag = error == "" ? OperationLog.ErrorFlag.NotError : OperationLog.ErrorFlag.Error;
            var menu      = NextScreen == Settings.Screen.FGPicking ? "M01" : "M02";
            var fieldName = NextScreen == Settings.Screen.FGPicking ? "RefNo" : "DOTag";
            var log       = new OperationLog(
                menu,
                Session.GetCurrentUser().UserID,
                OperationLog.LogEvent.Scan,
                fieldName,
                deliveryOrderTag,
                errFlag,
                error,
                DateTime.Now);

            log.SaveLog();
        }