/// <summary> /// 日志添加 /// </summary> /// <param name="LoginCategoryID">登录类型:1:公司,2:加盟商</param> /// <param name="LogCategoryID">日志类型:1:登录</param> /// <param name="LogCategoryName">日志类型名称:</param> /// <param name="Comp_CompanyID">公司ID:</param> /// <param name="LogPersonID">日志人员ID</param> /// <param name="LogPerson">日志人员</param> /// <param name="OperLogIdent">操作标识</param> /// <param name="OperName">操作名称</param> /// <param name="DetailDescription">描述</param> /// <returns></returns> public static MyResponseBase Sys_OperLogDetail_AddSave(int?LoginCategoryID, int?LogCategoryID, string LogCategoryName, int?Pre_CompanyID, int?LogPersonID, string LogPerson, int?OperLogIdent, string OperName, string DetailDescription = "") { MyResponseBase resp = new MyResponseBase(); SoftProjectAreaEntityDomain operLogDetailDomain = new SoftProjectAreaEntityDomain { Item = new SoftProjectAreaEntity { LoginCategoryID = LoginCategoryID, LogCategoryID = LogCategoryID, LogCategoryName = LogCategoryName, Pre_CompanyID = Pre_CompanyID, LogPersonID = LogPersonID, LogPerson = LogPerson, OperLogIdent = OperLogIdent, OperName = OperName, OperDate = DateTime.Now, DetailDescription = DetailDescription, } }; using (var scope = new TransactionScope()) { try { operLogDetailDomain.Sys_OperLogDetail_Domain(); operLogDetailDomain.OperCode = "Sys_OperLogDetail.AddSave"; resp = operLogDetailDomain.Execute(); scope.Complete(); } catch (Exception ex) { throw new Exception(ex.Message); } finally { scope.Dispose(); } } return(resp); }
/// <summary> /// 日志添加 /// </summary> /// <param name="LoginCategoryID">登录类型:1:公司,2:加盟商</param> /// <param name="LogCategoryID">日志类型:1:登录</param> /// <param name="LogCategoryName">日志类型名称:</param> /// <param name="Comp_CompanyID">公司ID:</param> /// <param name="LogPersonID">日志人员ID</param> /// <param name="LogPerson">日志人员</param> /// <param name="OperLogIdent">操作标识</param> /// <param name="OperName">操作名称</param> /// <param name="DetailDescription">描述</param> /// <returns></returns> public static MyResponseBase Sys_OperLogDetail_AddSave(int? LoginCategoryID, int?LogCategoryID,string LogCategoryName, int? Pre_CompanyID, int? LogPersonID, string LogPerson, int? OperLogIdent, string OperName, string DetailDescription="") { MyResponseBase resp = new MyResponseBase(); SoftProjectAreaEntityDomain operLogDetailDomain = new SoftProjectAreaEntityDomain { Item = new SoftProjectAreaEntity { LoginCategoryID=LoginCategoryID, LogCategoryID=LogCategoryID, LogCategoryName=LogCategoryName, Pre_CompanyID = Pre_CompanyID, LogPersonID=LogPersonID, LogPerson=LogPerson, OperLogIdent = OperLogIdent, OperName = OperName, OperDate=DateTime.Now, DetailDescription = DetailDescription, } }; using (var scope = new TransactionScope()) { try { operLogDetailDomain.Sys_OperLogDetail_Domain(); operLogDetailDomain.OperCode = "Sys_OperLogDetail.AddSave"; resp = operLogDetailDomain.Execute(); scope.Complete(); } catch (Exception ex) { throw new Exception( ex.Message); } finally { scope.Dispose(); } } return resp; }