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


C# SoftProjectAreaEntityDomain.Design_ModularOrFunDomain_AddSaveMethod方法代码示例

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


在下文中一共展示了SoftProjectAreaEntityDomain.Design_ModularOrFunDomain_AddSaveMethod方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Design_ModularOrFunDomain_BulidRecord


//.........这里部分代码省略.........
        //    //Design_ModularOrFunDomainDetail_EditSave();
        //    //#endregion
        //    #region 添加保存
        //    //主表
        //    Item = new SoftProjectAreaEntity
        //    {
        //        ModularOrFunDomainName = string.Format("添加保存"),
        //        MethodName = "AddSave",
        //        Design_ModularOrFunID = Design_ModularOrFunID,
        //        Sort = 31,
        //    };
        //    //resp = Design_ModularOrFunDomain_AddSave();
        //    //明细表
        //    //Item = resp.Item;
        //    Item.Items.Add(new SoftProjectAreaEntity
        //    {
        //        ModularOrFunDomainDetailName = string.Format("添加保存"),
        //        Design_ModularOrFunDomainID = resp.Item.Design_ModularOrFunDomainID,
        //        DomainType = 23,
        //        ParamName = "",
        //        DBOperCode = Design_ModularOrFun.ControllCode + ".AddSave",
        //        Serial = 1,
        //    });
        //    //Design_ModularOrFunDomainDetail_EditSave();
        //    Design_ModularOrFunDomain_AddSave();
        //    #endregion
        //    #region 编辑保存
        //    //主表
        //    Item = new SoftProjectAreaEntity
        //    {
        //        ModularOrFunDomainName = string.Format("编辑保存"),
        //        MethodName = "EditSave",
        //        Design_ModularOrFunID = Design_ModularOrFunID,
        //        Sort = 31,
        //    };
        //    //resp = Design_ModularOrFunDomain_AddSave();
        //    //明细表
        //    //Item = resp.Item;
        //    Item.Items.Add(new SoftProjectAreaEntity
        //    {
        //        ModularOrFunDomainDetailName = string.Format("编辑保存"),
        //        Design_ModularOrFunDomainID = resp.Item.Design_ModularOrFunDomainID,
        //        DomainType = 26,
        //        ParamName = "",
        //        DBOperCode = Design_ModularOrFun.ControllCode + ".EditSave",
        //        Serial = 1,
        //    });
        //    //Design_ModularOrFunDomainDetail_EditSave();
        //    Design_ModularOrFunDomain_AddSave();
        //    #endregion
        //    return resp;
        //}
        /// <summary>
        /// 生成业务层记录
        /// </summary>
        /// <returns></returns>
        public MyResponseBase Design_ModularOrFunDomain_BulidRecord()
        {
            var Design_ModularOrFunID = Item.Design_ModularOrFunID;

            #region
            //构造函数
            SoftProjectAreaEntityDomain domain = new SoftProjectAreaEntityDomain();
            domain.Item = new SoftProjectAreaEntity { DomainTypeTemp = 1, Design_ModularOrFunID = Design_ModularOrFunID };
            domain.Design_ModularOrFunDomain_AddSaveMethod();

            //主键不为空
            domain = new SoftProjectAreaEntityDomain();
            domain.Item = new SoftProjectAreaEntity { DomainTypeTemp = 2, Design_ModularOrFunID = Design_ModularOrFunID };
            domain.Design_ModularOrFunDomain_AddSaveMethod();

            //根据主键查询--显示
            domain = new SoftProjectAreaEntityDomain();
            domain.Item = new SoftProjectAreaEntity { DomainTypeTemp = 11, Design_ModularOrFunID = Design_ModularOrFunID };
            domain.Design_ModularOrFunDomain_AddSaveMethod();

            //根据主键查询--编辑
            domain = new SoftProjectAreaEntityDomain();
            domain.Item = new SoftProjectAreaEntity { DomainTypeTemp = 13, Design_ModularOrFunID = Design_ModularOrFunID };
            domain.Design_ModularOrFunDomain_AddSaveMethod();

            //列表查询
            domain = new SoftProjectAreaEntityDomain();
            domain.Item = new SoftProjectAreaEntity { DomainTypeTemp = 14, Design_ModularOrFunID = Design_ModularOrFunID };
            domain.Design_ModularOrFunDomain_AddSaveMethod();

            //添加保存
            domain = new SoftProjectAreaEntityDomain();
            domain.Item = new SoftProjectAreaEntity { DomainTypeTemp = 23, Design_ModularOrFunID = Design_ModularOrFunID };
            domain.Design_ModularOrFunDomain_AddSaveMethod();

            //编辑保存
            domain = new SoftProjectAreaEntityDomain();
            domain.Item = new SoftProjectAreaEntity { DomainTypeTemp = 26, Design_ModularOrFunID = Design_ModularOrFunID };
            domain.Design_ModularOrFunDomain_AddSaveMethod();

            #endregion

            return resp;
        }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:101,代码来源:Design_ModularOrFunDomainDomain.cs

示例2: AddSaveMethod

 public HJsonResult AddSaveMethod(SoftProjectAreaEntityDomain domain)
 {
     var resp = domain.Design_ModularOrFunDomain_AddSaveMethod();
     return new HJsonResult(new { Data = resp });
 }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:5,代码来源:Design_ModularOrFunDomainController.cs


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