Example #1
0
        public void WriteDbLog(bool result, string resultLog, CMS.Code.Enums.DbLogType type)
        {
            LogEntity logEntity = new LogEntity();

            logEntity.Type        = type.ToString();
            logEntity.Account     = SysLoginObjHelp.sysLoginObjHelp.GetOperator().UserCode;
            logEntity.NickName    = SysLoginObjHelp.sysLoginObjHelp.GetOperator().UserName;
            logEntity.Result      = result;
            logEntity.Description = resultLog;
            AddDbLog(logEntity);
        }
Example #2
0
        public void WriteDbLog(bool result, string resultLog, CMS.Code.Enums.DbLogType type, string moduleName, string userName, string nickName)
        {
            LogEntity logEntity = new LogEntity();

            logEntity.Type        = type.ToString();
            logEntity.ModuleName  = moduleName;
            logEntity.Account     = userName;
            logEntity.NickName    = nickName;
            logEntity.Result      = result;
            logEntity.Description = resultLog;
            AddDbLog(logEntity);
        }