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


C# SoftProjectAreaEntityDomain.Design_ModularOrFun_GetByID方法代码示例

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


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

示例1: Edit

 public ActionResult Edit(SoftProjectAreaEntityDomain domain)
 {
     var resp = domain.Design_ModularOrFun_GetByID();
     resp.FunNameEn = "Edit";
     //resp.FunNameCn = "编辑";
     //resp.FunBtnNameCn = "保存";
     //resp.ModularOrFunCode = "AuthorizationAreas.De_MemberNewP.Edit";
     //if (resp.Item.GroupModularOrFun == 3)
     //    return View("EditFun", resp);
     return View("Edit", resp);
 }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:11,代码来源:Design_ModularOrFunController.cs

示例2: NewPage

        private void NewPage(SoftProjectAreaEntity Design_ModularOrFun, List<SoftProjectAreaEntity> Design_ModularOrFunControlls, StringBuilder sbentity)
        {
            foreach (var item in Design_ModularOrFunControlls)
            {
                //public ActionResult Index(SoftProjectAreaEntityDomain domain)
                //{
                //    var resp = domain.BC_ExpertGuidance_Index();
                //    resp.ModularOrFunCode = "BC_PartnerAreas.BC_ExpertGuidance";
                //    ;
                //
                //    return View("IndexPTab", resp);
                //}
                #region 获取ModularOrFunCode
                var ModularOrFunCode = "";
                if (item.Design_ModularOrFunID1 != null)
                {
                    if (item.Design_ModularOrFunID1 == Item.Design_ModularOrFunID)
                        ModularOrFunCode = Design_ModularOrFun.ModularOrFunCode;
                    else
                    {
                        SoftProjectAreaEntityDomain domintemp = new SoftProjectAreaEntityDomain();
                        domintemp.Item = new SoftProjectAreaEntity { Design_ModularOrFunID = item.Design_ModularOrFunID1 };
                        var resptemp1 = domintemp.Design_ModularOrFun_GetByID();
                        ModularOrFunCode = resptemp1.Item.ModularOrFunCode;
                    }
                }
                #endregion

                #region 视图名称

                var ViewName = "";
                if (item.ViewName == 1)
                    ViewName = "IndexP";
                else if (item.ViewName == 2)
                    ViewName = "IndexPFrame";
                else if (item.ViewName == 3)
                    ViewName = "IndexPContext";
                else if (item.ViewName == 4)
                    ViewName = "IndexPChild";

                else if (item.ViewName == 11)
                    ViewName = "Row";
                else if (item.ViewName == 12)
                    ViewName = "Rows";
                else if (item.ViewName == 15)
                    ViewName = "IndexPTab";

                else if (item.ViewName == 20)
                    ViewName = "EditP";
                else if (item.ViewName == 21)
                    ViewName = "EditPFrame";
                else if (item.ViewName == 22)
                    ViewName = "EditPContext";
                else if (item.ViewName == 26)
                    ViewName = "EditArea";

                else if (item.ViewName == 30)
                    ViewName = "PopupEdit";
                else if (item.ViewName == 31)
                    ViewName = "EditPartial";

                #endregion

                var ActionName = item.ActionName == 1 ? "ActionResult" : "HJsonResult";
                sbentity.AppendLine("        /// <summary>");
                sbentity.AppendLine("        /// " + item.ControllName);
                sbentity.AppendLine("        /// </summary>");
                sbentity.AppendLine("        /// <param name=\"domain\"></param>");
                sbentity.AppendLine("        /// <returns></returns>");
                if (item.ActionName == 1)
                {
                    sbentity.AppendLine(string.Format("        public ActionResult {0}(SoftProjectAreaEntityDomain domain)", item.ActionMethod));
                    sbentity.AppendLine("        {");

                    sbentity.AppendLine(string.Format("            var resp = domain.{0}_{1}();", Design_ModularOrFun.ControllCode, item.ActionMethod));
                    sbentity.AppendLine("            resp.ModularOrFunCode = \"" + ModularOrFunCode + "\";");
                    sbentity.AppendLine("            ");
                    sbentity.AppendLine("            ");
                    sbentity.AppendLine(string.Format("            return View(\"{0}\", resp);", ViewName));

                    sbentity.AppendLine("        }");
                }
                else
                {
                    sbentity.AppendLine(string.Format("        public HJsonResult {0}(SoftProjectAreaEntityDomain domain)", item.ActionMethod));
                    sbentity.AppendLine("        {");
                    sbentity.AppendLine(string.Format("            var resp = domain.{0}_{1}();", Design_ModularOrFun.ControllCode, item.ActionMethod));
                    sbentity.AppendLine("            return new HJsonResult(new { Data = resp });");
                    sbentity.AppendLine("        }");
                }
                sbentity.AppendLine();
            }
        }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:93,代码来源:Design_ModularOrFunControllDomain.cs

示例3: BulidPage

        public ActionResult BulidPage(SoftProjectAreaEntityDomain domain)
        {
            if (domain.Item.Design_ModularOrFunID == null)
                throw new Exception("主键不能为空");
            var Design_ModularOrFunID = domain.Item.Design_ModularOrFunID;
            //domain.Design_ModularOrFun_Domain();
            SoftProjectAreaEntity hOperControl = new SoftProjectAreaEntity { };

            #region 功能模块对象
            var Design_ModularOrFun = domain.Design_ModularOrFun_GetByID().Item;
            #endregion

            if (Design_ModularOrFun.PageType == 1)//Table页面
            {
                BulidTable(Design_ModularOrFun);
            }
            else if (Design_ModularOrFun.PageType == 2)//Edit页面
            {
                BulidEditPage(Design_ModularOrFun);
            }
            //var resp = domain.Design_ModularOrFun_BulidPage();
            var url = string.Format("SysAreas/Design_ModularOrFun/EditList?Item.Design_ModularOrFunID=" + domain.Item.Design_ModularOrFunID);
            return Redirect(url);
        }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:24,代码来源:Design_ModularOrFunController.cs


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