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) { var schemeinfo = wfFlowInfoBLL.GetEntity(keyValue); var authorize = wfFlowInfoBLL.GetAuthorizeEntityList(schemeinfo.F_Id); var JsonData = new { schemeinfo = schemeinfo, authorize = authorize }; return(Content(JsonData.ToJson())); }
public ActionResult GetProcessSchemeJson(string keyValue) { WFSchemeInfoBLL wfFlowInfoBLL = new WFSchemeInfoBLL(); var processSchemeEntity = wfProcessBll.GetProcessSchemeEntity(keyValue); var schemeInfoEntity = wfFlowInfoBLL.GetEntity(processSchemeEntity.SchemeInfoId); var data = new { schemeInfo = schemeInfoEntity, processScheme = processSchemeEntity }; 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 GetProcessSchemeEntityByNodeId(string keyValue, string nodeId) { //var data = wfProcessBll.GetProcessSchemeEntityByNodeId(keyValue, nodeId); WFSchemeInfoBLL wfFlowInfoBLL = new WFSchemeInfoBLL(); var processSchemeEntity = wfProcessBll.GetProcessSchemeEntity(keyValue); var schemeInfoEntity = wfFlowInfoBLL.GetEntity(processSchemeEntity.SchemeInfoId); //var form = wfProcessBll.GetProcessSchemeEntityByNodeId(keyValue,schemeInfoEntity.FormList,nodeId); var data = new { schemeInfo = schemeInfoEntity, processScheme = processSchemeEntity }; 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())); }
public ActionResult GetFormJson(string keyValue) { if (keyValue == "") { return(null); } var schemeinfo = wfFlowInfoBLL.GetEntity(keyValue); var schemecontent = wfFlowInfoBLL.GetSchemeEntity(schemeinfo.Id, schemeinfo.SchemeVersion); var authorize = wfFlowInfoBLL.GetAuthorizeEntityList(schemeinfo.Id); var JsonData = new { schemeinfo = schemeinfo, schemecontent = schemecontent, authorize = authorize }; return(Content(JsonData.ToJson())); }