Exemplo n.º 1
0
        public void Create(ModuleCode moduleCode, string businessID, string operate, string opinion)
        {
            BusinessLog log = new BusinessLog();

            log.SystemName   = SubSystem.苏州市园林绿化企业动态管理系统.ToString();
            log.CategoryName = "";
            log.PostStatus   = "";
            log.PriorStatus  = "";
            log.ModuleName   = moduleCode.ToString();
            log.KeyString    = businessID.ToString();
            log.Operation    = operate;
            log.MessageInfo  = opinion;
            log.OperatorID   = AppUser.UserID.ToString();
            log.OperatorName = AppUser.UserName;
            logManager.AppendLog(log);
        }
Exemplo n.º 2
0
        public static void Log(string systemName, string moduleName, string fileName, string messageInfo)
        {
            ConnectionStringSettings connstr = ConfigurationManager.ConnectionStrings["SparkServiceDesk_LogManagerConnectionString"];
            DBOperator  db         = DBOperatorFactory.GetDBOperator(connstr);
            ILogManager logManager = LogManagerFactory.CreateLogManager("DEFAULT");

            logManager.DB = db;
            BusinessLog bizLog = new BusinessLog();

            bizLog.SystemName   = systemName;
            bizLog.ModuleName   = moduleName;
            bizLog.CategoryName = "上传文件";
            bizLog.KeyString    = fileName;
            bizLog.Operation    = "上传文件";
            bizLog.PriorStatus  = "操作前";
            bizLog.PostStatus   = "操作后";
            bizLog.MessageInfo  = messageInfo;
            bizLog.OperatorID   = "-1";
            bizLog.OperatorName = "无名氏";
            logManager.AppendLog(bizLog);
        }