本文整理汇总了C#中SoftProject.Domain.SoftProjectAreaEntityDomain.Sys_OperLogDetail_Domain方法的典型用法代码示例。如果您正苦于以下问题:C# SoftProjectAreaEntityDomain.Sys_OperLogDetail_Domain方法的具体用法?C# SoftProjectAreaEntityDomain.Sys_OperLogDetail_Domain怎么用?C# SoftProjectAreaEntityDomain.Sys_OperLogDetail_Domain使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SoftProject.Domain.SoftProjectAreaEntityDomain
的用法示例。
在下文中一共展示了SoftProjectAreaEntityDomain.Sys_OperLogDetail_Domain方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Sys_OperLogDetail_AddSave
/// <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;
}