本文整理汇总了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);
}
示例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();
}
}
示例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);
}