当前位置: 首页>>代码示例>>C#>>正文


C# SoftProjectAreaEntityDomain.Execute方法代码示例

本文整理汇总了C#中SoftProject.Domain.SoftProjectAreaEntityDomain.Execute方法的典型用法代码示例。如果您正苦于以下问题:C# SoftProjectAreaEntityDomain.Execute方法的具体用法?C# SoftProjectAreaEntityDomain.Execute怎么用?C# SoftProjectAreaEntityDomain.Execute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SoftProject.Domain.SoftProjectAreaEntityDomain的用法示例。


在下文中一共展示了SoftProjectAreaEntityDomain.Execute方法的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;
        }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:59,代码来源:Sys_OperLogDetailDomain.cs


注:本文中的SoftProject.Domain.SoftProjectAreaEntityDomain.Execute方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。