/// <summary> /// 根据id更新内容链接 /// </summary> /// <param name="Ids"></param> private void UpdateContentById(string url, string Ids) { C_ContentApp contentapp = new C_ContentApp(); C_ContentEntity contentEntity = contentapp.GetForm(Ids); if (contentEntity != null) { contentEntity.F_UrlAddress = url; contentapp.SubmitForm(contentEntity, Ids); } }
/// <summary> /// 初始化 /// </summary> /// <param name="Id"></param> private void InitHtmlSavePath(string Id) { if (!string.IsNullOrEmpty(Id)) { if (CONTENTENTITY == null || CONTENTENTITY.F_Id != Id) { C_ContentApp contentapp = new C_ContentApp(); CONTENTENTITY = contentapp.GetForm(Id); C_ModulesEntity moduleentity = contentapp.GetModuleByContentID(Id); if (JudgmentHelp.judgmentHelp.IsNullEntity <C_ModulesEntity>(moduleentity)) { HTMLSAVEPATH += moduleentity.F_ActionName + @"\"; } } } }
public ActionResult GetFormJson(string keyValue) { var data = c_contentApp.GetForm(keyValue); return(Content(data.ToJson())); }