Ejemplo n.º 1
0
        public ActionResult GetFormJson(string keyValue)
        {
            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()));
        }
Ejemplo n.º 2
0
        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()));
        }