/// <summary> /// 根据名称获取模板 /// </summary> /// <returns></returns> public C_TempletEntity GetModelByActionName(string actionName) { C_TempletEntity templet = new C_TempletEntity(); C_ModulesApp moduleApp = new C_ModulesApp(); C_ModulesEntity module = moduleApp.GetModelByActionName(actionName); if (module != null) { templet = service.FindEntity(m => m.F_Id == module.F_TempletId); } return(templet); }
public C_ModulesEntity GetModuleByContentID(string keyValue) { C_ModulesEntity moduleEntity = new C_ModulesEntity(); C_ModulesApp moduleapp = new C_ModulesApp(); C_ContentEntity contentEntity = GetForm(keyValue); if (JudgmentHelp.judgmentHelp.IsNullEntity <C_ContentEntity>(contentEntity) && JudgmentHelp.judgmentHelp.IsNullOrEmptyOrGuidEmpty(contentEntity.F_ModuleId)) { moduleEntity = moduleapp.GetForm(contentEntity.F_ModuleId); } return(moduleEntity); }
/// <summary> /// 获取默认模板 /// </summary> /// <returns></returns> public C_TempletEntity GetMain() { C_TempletEntity templet = new C_TempletEntity(); C_ModulesApp moduleApp = new C_ModulesApp(); C_ModulesEntity module = moduleApp.GetMain(); if (module != null) { templet = service.FindEntity(m => m.F_Id == module.F_TempletId); } return(templet); }