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())); }
/// <summary>上 /// 获取流程实体(用于流程创建) /// </summary> /// <returns></returns> public ActionResult GetFlowJson(string keyValue) { var schemeInfo = wfFlowInfoBLL.GetEntity(keyValue); IWfRuntime wfRuntime = new WfRuntime(schemeInfo.F_SchemeContent); WFNodeModel wfNodeModel = wfRuntime.getStartNode(); FormModuleEntity formEntity = fromModuleBLL.GetEntity(wfNodeModel.setInfo.nodeForm); var dataJson = new { schemeInfo = schemeInfo, formEntity = formEntity, currentNode = wfNodeModel }; return(Content(dataJson.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())); }
public ActionResult GetProcessNodeJson(string keyValue) { WFProcessInstanceEntity processEntity = wfProcessBll.GetProcessEntity(keyValue); WFProcessSchemeEntity processSchemeEntity = wfProcessBll.GetProcessSchemeEntity(processEntity.F_ProcessSchemeId); var nodeList = wfProcessBll.GetProcessNodeList(keyValue); IWfRuntime wfRuntime = new WfRuntime(processSchemeEntity.F_SchemeContent); WFNodeModel node = wfRuntime.getStartNode(); Dictionary <string, FormModuleEntity> formDataLsit = new Dictionary <string, FormModuleEntity>(); FormModuleEntity formNewEntity = formModuleBLL.GetEntity(node.setInfo.nodeForm); formDataLsit.Add(node.setInfo.nodeForm, formNewEntity); List <FormModuleEntity> formEntityList = new List <FormModuleEntity>(); Dictionary <string, FormModuleInstanceEntity> dFormData = new Dictionary <string, FormModuleInstanceEntity>(); var formdata = formModuleBLL.GetInstanceList(keyValue); foreach (var item in formdata) { Form_ModuleContentEntity formEntity = formModuleBLL.GetFormContentEntity(item.F_FrmContentId); if (formDataLsit.ContainsKey(formEntity.F_FrmId) && !dFormData.ContainsKey(formEntity.F_FrmId)) { formDataLsit[formEntity.F_FrmId].F_FrmContent = formEntity.F_FrmContent; formEntityList.Add(formDataLsit[formEntity.F_FrmId]); dFormData.Add(formEntity.F_FrmId, item); } } if (formEntityList.Count == 0) { formEntityList.Add(formNewEntity); } var dataJson = new { processEntity = processEntity, processSchemeEntity = processSchemeEntity, nodeList = nodeList, formEntityList = formEntityList, dFormData = dFormData, currentNode = node }; return(Content(dataJson.ToJson())); }
public ActionResult GetEntityJson(string keyValue) { var data = formmodulebll.GetEntity(keyValue); return(ToJsonResult(data)); }
public ActionResult GetEntityJson(string keyValue) { var data = fromModuleBLL.GetEntity(keyValue); return(Content(data.ToJson())); }