Пример #1
0
        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()));
        }
Пример #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()));
        }
Пример #3
0
        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()));
        }