Ejemplo n.º 1
0
        /// <summary>
        /// 添加日志
        /// </summary>
        /// <param name="?"></param>
        /// <returns></returns>
        private bool AddSysLog(string type)
        {
            EyouSoft.BLL.CompanyStructure.SysHandleLogs   sysLong  = new EyouSoft.BLL.CompanyStructure.SysHandleLogs();
            EyouSoft.Model.CompanyStructure.SysHandleLogs sysModel = new EyouSoft.Model.CompanyStructure.SysHandleLogs();
            sysModel.EventMessage = System.DateTime.Now.ToString() + "{0}在机票管理" + type + "了出票";
            sysModel.EventTitle   = type + " 机票管理";
            sysModel.ID           = Guid.NewGuid().ToString();
            sysModel.EventCode    = Model.CompanyStructure.SysHandleLogsNO.EventCode;
            sysModel.ModuleId     = Model.EnumType.CompanyStructure.SysPermissionClass.机票管理_机票管理;

            return(sysLong.Add(sysModel));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 写日志
 /// </summary>
 /// <param name="logInfo">日志信息</param>
 private void Logwr(EyouSoft.Model.CompanyStructure.SysHandleLogs logInfo)
 {
     EyouSoft.BLL.CompanyStructure.SysHandleLogs logbll = new EyouSoft.BLL.CompanyStructure.SysHandleLogs();
     logbll.Add(logInfo);
     logbll = null;
 }