public ActionResult GetProcessSchemeEntityByNodeId(string keyValue, string nodeId) { FormModuleInstanceBLL instancebll = new FormModuleInstanceBLL(); FormModuleContentBLL contentbll = new FormModuleContentBLL(); FormModuleBLL modulebll = new FormModuleBLL(); //var data = wfProcessBll.GetProcessSchemeEntityByNodeId(keyValue, nodeId); WFSchemeInfoBLL wfFlowInfoBLL = new WFSchemeInfoBLL(); var processSchemeEntity = wfProcessBll.GetProcessSchemeEntity(keyValue); var schemeInfoEntity = wfFlowInfoBLL.GetEntity(processSchemeEntity.SchemeInfoId); var formEntity = modulebll.GetEntity(schemeInfoEntity.FormList); var nodeinfo = wfProcessBll.GetProcessSchemeEntityByNodeId(keyValue, schemeInfoEntity.FormList, nodeId); //var contentId=contentbll.GetEntity(formEntity.FrmId); //var formInstanceEntity = instancebll.GetEntity(contentId.Id); //var data = new //{ // schemeInfo = schemeInfoEntity, // processScheme = processSchemeEntity //}; //var formid = formEntity.FrmId;// dFormData = new { formid = formInstanceEntity, }, var data = new { currentNode = nodeinfo, formEntityList = formEntity, schemeInfo = schemeInfoEntity, processSchemeEntity = processSchemeEntity }; return(Content(data.ToJson())); }
public ActionResult GetFlowJson(string keyValue) { FormModuleBLL formbll = new FormModuleBLL(); WFSchemeInfoBLL bll = new WFSchemeInfoBLL(); var entity = bll.GetEntity(keyValue); var data = new { formEntity = formbll.GetEntity(entity.FormList), schemeInfo = entity }; return(Content(data.ToJson())); }
public ActionResult GetFormJson(string keyValue) { FormModuleBLL formbll = new FormModuleBLL(); var schemeinfo = wfFlowInfoBLL.GetEntity(keyValue); var schemecontent = wfFlowInfoBLL.GetSchemeEntity(schemeinfo.Id, schemeinfo.SchemeVersion); var authorize = wfFlowInfoBLL.GetAuthorizeEntityList(schemeinfo.Id); var form = formbll.GetEntity(schemeinfo.FormList); var JsonData = new { schemeinfo = schemeinfo, schemecontent = schemecontent, authorize = authorize, formContentData = form }; return(Content(JsonData.ToJson())); }