Ejemplo n.º 1
0
        public JObject sbcltwo()
        {
            JObject re_json = new JObject();
            string  str     = File.ReadAllText(HttpContext.Current.Server.MapPath("sbcl.json"));

            re_json = JsonConvert.DeserializeObject <JObject>(str);

            StreamReader sr  = new StreamReader(HttpContext.Current.Request.InputStream);
            string       srr = sr.ReadToEnd().ToString();
            //srr= srr.Replace("@[","").Replace("]@","");
            var     mJobj   = JArray.Parse(srr);
            JObject in_jo   = JsonConvert.DeserializeObject <JObject>(mJobj[1].ToString());
            JObject in_jo1  = JsonConvert.DeserializeObject <JObject>(mJobj[0].ToString());
            string  sbzlDm  = in_jo["sbzlDm"].ToString();
            string  sbzlDm1 = in_jo1["sbzlDm"].ToString();

            qc = set.getUserYSBQC(sbzlDm);
            qj = set.getUserYSBQC(sbzlDm1);
            JArray htmlData = JsonConvert.DeserializeObject <JArray>(in_jo.SelectToken("sbwjs").Value <string>());
            string guid     = Guid.NewGuid().ToString();

            set.saveUserYSBQCReportData(htmlData, qc.Id.ToString(), qc.sbzlDm, guid);
            GTXMethod.UpdateYSBQC(qc.Id.ToString(), set.ysbzt);
            GTXMethod.UpdateYSBQC(qj.Id.ToString(), set.ysbzt);
            return(re_json);
        }
Ejemplo n.º 2
0
        public IActionResult view_20101()
        {
            qc = set.getUserYSBQC(set.BDDM.Fjs);
            JToken   reportData = set.getUserYSBQCReportData(qc.Id, qc.BDDM);
            FjsModel model      = new FjsModel {
                SBZT = set.SBZT.WTX
            };
            List <FjsData> listFjsData = new List <FjsData>();

            if (reportData.HasValues)
            {
                model.SBZT = set.SBZT.DSB;
                for (int i = 0; i < 3; i++)
                {
                    IEnumerable <JToken> datas = reportData.SelectToken("[0].data").Where(a => a["idx"] != null && int.Parse(a["idx"].ToString()) == i);
                    JObject jo = new JObject();
                    jo.Add("index", i.ToString());
                    foreach (JObject item in datas)
                    {
                        jo.Add(item["name"].ToString().Split('.')[1], item["value"]);
                    }
                    FjsData fjsData = JsonConvert.DeserializeObject <FjsData>(JsonConvert.SerializeObject(jo));
                    listFjsData.Add(fjsData);
                }
            }
            else
            {
                listFjsData = new List <FjsData> {
                    new FjsData(0), new FjsData(1), new FjsData(2)
                };
            }
            model.FjsData = listFjsData;
            return(View("view_20101", model));
        }
Ejemplo n.º 3
0
        public JObject fjs()
        {
            JObject re_json = new JObject();

            StreamReader sr     = new StreamReader(HttpContext.Current.Request.InputStream);
            JObject      in_jo  = JsonConvert.DeserializeObject <JObject>(sr.ReadToEnd());
            string       sbzlDm = in_jo["sbzlDm"].ToString();
            string       str    = "";

            qc = set.getUserYSBQC(sbzlDm);
            if (qc.SBZT == set.ysbzt)
            {
                str     = File.ReadAllText(HttpContext.Current.Server.MapPath("hdxx.ysb.json"));
                re_json = JsonConvert.DeserializeObject <JObject>(str);
            }
            else
            {
                str     = File.ReadAllText(HttpContext.Current.Server.MapPath("hdxx.json"));
                re_json = JsonConvert.DeserializeObject <JObject>(str);

                JToken sbzl = re_json.SelectToken("value.sbzl[0]");
                sbzl["sksssqQ"] = date.skssqq;
                sbzl["sksssqZ"] = date.skssqz;

                JToken wsxx      = sbzl.SelectToken("wsxxs.wsxx");
                JToken SFSYXGMZC = wsxx.Where(a => a["code"].ToString() == "SFSYXGMZC").FirstOrDefault();
                if (HttpContext.Current.Session["name"].ToString() == "业务三")
                {
                    SFSYXGMZC["value"] = "Y";
                }
            }

            return(re_json);
        }
Ejemplo n.º 4
0
        public ActionResult <JObject> sb(string dm)
        {
            GDTXUserYSBQC qc = set.getUserYSBQC(dm);

            GTXMethod.UpdateYSBQC(qc.Id.ToString(), set.SBZT.YSB);
            JObject re_json = new JObject();
            string  str     = System.IO.File.ReadAllText(he.WebRootPath + "/web-accept/wssb/" + dm + "e/sb.json");

            re_json = JsonConvert.DeserializeObject <JObject>(str);
            return(re_json);
        }
Ejemplo n.º 5
0
        public ActionResult <JObject> index_zf(string sbzlDm)
        {
            qc = set.getUserYSBQC(sbzlDm);
            GTXMethod.DeleteUserReportData(qc.Id.ToString(), sbzlDm);
            GTXMethod.UpdateYSBQC(qc.Id.ToString(), set.SBZT.WTX);
            JObject re_json = new JObject();
            string  str     = System.IO.File.ReadAllText(he.WebRootPath + "/web-accept/wssb/main/index_zf.json");

            re_json = JsonConvert.DeserializeObject <JObject>(str);
            return(re_json);
        }
Ejemplo n.º 6
0
        public JObject index_zf(string sbzlDm)
        {
            qc = set.getUserYSBQC(sbzlDm);
            GTXMethod.DeleteUserReportData(qc.Id.ToString(), sbzlDm);
            GTXMethod.UpdateYSBQC(qc.Id.ToString(), set.SBZT.WTX);
            JObject re_json = new JObject();
            string  str     = System.IO.File.ReadAllText(AppDomain.CurrentDomain.BaseDirectory + "/web-accept/wssb/main/index_zf.json");

            re_json = JsonConvert.DeserializeObject <JObject>(str);
            return(re_json);
        }
Ejemplo n.º 7
0
        public JObject sb(string dm)
        {
            GDTXUserYSBQC qc = set.getUserYSBQC(dm);

            GTXMethod.UpdateYSBQC(qc.Id.ToString(), set.SBZT.YSB);
            JObject re_json = new JObject();
            string  str     = System.IO.File.ReadAllText(AppDomain.CurrentDomain.BaseDirectory + "/web-accept/wssb/" + dm + "e/sb.json");

            re_json = JsonConvert.DeserializeObject <JObject>(str);
            return(re_json);
        }
Ejemplo n.º 8
0
        public System.Web.Mvc.ActionResult view_10104()
        {
            qc = set.getUserYSBQC(set.BDDM.YbnsrZzs);
            JToken        reportData = set.getUserYSBQCReportData(qc.Id, qc.BDDM);
            YbnsrzzsModel model      = new YbnsrzzsModel();

            model.reportData = reportData;
            model.GDTXDate   = set.getGDTXDate(set.BDDM.YbnsrZzs);
            model.Nsrxx      = set.getNsrxx();
            return(View(model));
        }
Ejemplo n.º 9
0
        public JObject saveSbb(string dm, string tablejsons)
        {
            JObject       re_json = new JObject();
            GDTXUserYSBQC qc      = set.getUserYSBQC(dm);

            set.saveUserYSBQCReportData(tablejsons, qc.Id.ToString(), dm);
            GTXMethod.UpdateYSBQC(qc.Id.ToString(), set.SBZT.DSB);
            string str = System.IO.File.ReadAllText(AppDomain.CurrentDomain.BaseDirectory + "/web-accept/wssb/" + dm + "e/saveSbb.json");

            re_json = JsonConvert.DeserializeObject <JObject>(str);
            return(re_json);
        }
Ejemplo n.º 10
0
        public System.Web.Mvc.ActionResult view_10435()
        {
            qc = set.getUserYSBQC(set.BDDM.Qysds);
            JToken         reportData = set.getUserYSBQCReportData(qc.Id, qc.BDDM);
            Nsrxx          xx         = set.getNsrxx();
            GDTXDate       gd         = set.getGDTXDate(qc.BDDM);
            QysdsYjdAModel model      = new QysdsYjdAModel {
                Nsrxx = xx, GDTXDate = gd, reportData = reportData
            };

            return(View(model));
        }
Ejemplo n.º 11
0
        public ActionResult <JObject> saveSbb(string dm, string tablejsons)
        {
            JObject       re_json = new JObject();
            GDTXUserYSBQC qc      = set.getUserYSBQC(dm);

            set.saveUserYSBQCReportData(tablejsons, qc.Id.ToString(), dm);
            GTXMethod.UpdateYSBQC(qc.Id.ToString(), set.SBZT.DSB);
            string str = System.IO.File.ReadAllText(he.WebRootPath + "/web-accept/wssb/" + dm + "e/saveSbb.json");

            re_json = JsonConvert.DeserializeObject <JObject>(str);
            return(re_json);
        }
Ejemplo n.º 12
0
        public JObject sbzf()
        {
            JObject re_json = new JObject();
            string  str     = File.ReadAllText(HttpContext.Current.Server.MapPath("sbzf.json"));

            re_json = JsonConvert.DeserializeObject <JObject>(str);

            StreamReader  sr     = new StreamReader(HttpContext.Current.Request.InputStream);
            JObject       in_jo  = JsonConvert.DeserializeObject <JObject>(sr.ReadToEnd());
            string        sbzlDm = in_jo["sbzlDm"].ToString();
            GDTXUserYSBQC qc     = set.getUserYSBQC(sbzlDm);

            GTXMethod.DeleteUserReportData(qc.Id.ToString(), qc.sbzlDm);
            GTXMethod.UpdateYSBQC(qc.Id.ToString(), set.wsbzt);
            return(re_json);
        }
Ejemplo n.º 13
0
        public System.Web.Mvc.ActionResult edit_10104()
        {
            qc = set.getUserYSBQC(set.BDDM.YbnsrZzs);
            JToken reportData;
            JToken hdxxvojsons;

            hdxxvojsons = set.getYbnsrzzsHdxxvojsons();
            if (qc.SBZT == set.SBZT.WTX)
            {
                reportData = new JArray();
            }
            else
            {
                reportData = set.getUserYSBQCReportData(qc.Id, qc.BDDM);
            }
            YbnsrzzsModel model = new YbnsrzzsModel();

            model.reportData = reportData;
            model.QcsData    = hdxxvojsons;
            model.GDTXDate   = set.getGDTXDate(set.BDDM.YbnsrZzs);
            model.Nsrxx      = set.getNsrxx();
            return(View(model));
        }
Ejemplo n.º 14
0
        public System.Web.Mvc.ActionResult edit_10435()
        {
            QysdsYjdAModel model;

            qc = set.getUserYSBQC(set.BDDM.Qysds);
            JToken   hdxxvojsons = set.getQysdsyjdHdxxvojsons();
            JToken   reportData  = set.getUserYSBQCReportData(qc.Id, qc.BDDM);
            Nsrxx    xx          = set.getNsrxx();
            GDTXDate gd          = set.getGDTXDate(qc.BDDM);

            if (reportData.HasValues)
            {
                model = new QysdsYjdAModel {
                    Nsrxx = xx, GDTXDate = gd, QcsData = hdxxvojsons, reportData = reportData
                };
            }
            else
            {
                model = new QysdsYjdAModel {
                    Nsrxx = xx, GDTXDate = gd, QcsData = hdxxvojsons, reportData = new JArray()
                };
            }
            return(View(model));
        }
Ejemplo n.º 15
0
        public JObject allFunctionsEX()
        {
            JObject re_json = new JObject();
            string  str     = File.ReadAllText(HttpContext.Current.Server.MapPath("get.json"));

            re_json = JsonConvert.DeserializeObject <JObject>(str);

            JToken company = re_json.SelectToken("data").Where(a => a["menuName"].ToString() == "企业").FirstOrDefault();

            JToken LEFT = company["subMenus"].Where(a => a["menuName"].ToString() == "LEFT").FirstOrDefault();

            foreach (JToken jt in LEFT["subMenus"])
            {
                Uri uri_icon = new Uri(jt["icon"].ToString());
                jt["icon"] = uri_icon.PathAndQuery;
                foreach (JObject jo in jt["functions"])
                {
                    JToken jp = jo.Property("url");
                    if (jp != null)
                    {
                        jp.Remove();
                    }
                }
            }

            JToken CONTENT = company["subMenus"].Where(a => a["menuName"].ToString() == "CONTENT").FirstOrDefault();

            foreach (JToken jt in CONTENT["subMenus"])
            {
                switch (jt["menuName"].ToString())
                {
                case "我要申报":
                    foreach (JObject jo in jt["subMenus"])
                    {
                        Uri uri_icon = new Uri(jo["icon"].ToString());
                        jo["icon"] = uri_icon.PathAndQuery;

                        JArray ja = (JArray)jo.SelectToken("subMenus[0].functions");
                        foreach (JObject jt_url in ja)
                        {
                            Uri uri = new Uri(jt_url["url"].Value <string>());
                            jt_url["url"] = uri.PathAndQuery;
                        }
                    }
                    JToken        zzs = jt["subMenus"].Where(a => a["menuName"].ToString() == "增值税").FirstOrDefault().SelectToken("subMenus[0].functions[0]");
                    GDTXUserYSBQC qc  = set.getUserYSBQC("10101");
                    if (qc != null)
                    {
                        zzs["name"] = qc.TaskName;
                        zzs["code"] = qc.sbzlDm;
                        zzs["url"]  = qc.Url;
                    }
                    break;

                case "我要办税":
                case "我要查询":
                case "互动中心":
                    foreach (JObject jo in jt["subMenus"])
                    {
                        Uri uri_icon = new Uri(jo["icon"].ToString());
                        jo["icon"] = uri_icon.PathAndQuery;

                        JObject jt_url = (JObject)jo.SelectToken("subMenus[0].functions[0]");
                        if (jt_url != null)
                        {
                            Uri uri = new Uri(jt_url["url"].Value <string>());
                            jt_url.Property("url").Remove();
                        }
                    }
                    break;

                case "我的信息":
                    foreach (JObject jo in jt["functions"])
                    {
                        Uri uri_icon = new Uri(jo["icon"].ToString());
                        jo["icon"] = uri_icon.PathAndQuery;

                        JToken url     = jo.SelectToken("url");
                        Uri    uri_url = new Uri(url.ToString());
                        jo["url"] = uri_url.PathAndQuery;
                    }
                    break;

                case "公众服务":
                    foreach (JObject jo in jt["subMenus"])
                    {
                        Uri uri_icon = new Uri(jo["icon"].ToString());
                        jo["icon"] = uri_icon.PathAndQuery;
                    }
                    break;
                }
            }

            return(re_json);
        }
Ejemplo n.º 16
0
        public ActionResult <JObject> indexBbcxForPage(string sbzldms)
        {
            JObject re_json    = new JObject();
            JArray  wbSbSbxxes = new JArray();
            JObject jo         = new JObject();
            JToken  reportData;
            string  ybtse;
            int     count = 0;
            string  str   = "";
            string  path  = he.WebRootPath + "/web-accept/wssb/main/indexBbcxForPage." + sbzldms + ".json";

            if (!System.IO.File.Exists(path))
            {
                str = System.IO.File.ReadAllText(he.WebRootPath + "/web-accept/wssb/main/indexBbcxForPage.json");
            }
            else
            {
                str = System.IO.File.ReadAllText(he.WebRootPath + "/web-accept/wssb/main/indexBbcxForPage." + sbzldms + ".json");
            }
            re_json = JsonConvert.DeserializeObject <JObject>(str);

            switch (sbzldms)
            {
            case "01":
                qc         = set.getUserYSBQC(set.BDDM.YbnsrZzs);
                reportData = set.getUserYSBQCReportData(qc.Id, qc.BDDM);
                if (!reportData.HasValues)
                {
                    break;
                }
                jo["sbuuid"]      = "D175734A41B14DD391B85088B1DCFEA9";
                jo["nsrsbh"]      = "91430105MA4L4UB74U";
                jo["shxydm"]      = "91430105MA4L4UB74U";
                jo["djxh"]        = 10114301010000046000;
                jo["sbzlDm"]      = qc.BDDM;
                jo["skssqq"]      = qc.SKSSQQ;
                jo["skssqz"]      = qc.SKSSQZ;
                jo["bbzt"]        = "0";
                jo["bbztDisplay"] = "申报成功";
                jo["ztxx"]        = "申报成功";
                jo["sbrq"]        = qc.HappenDate;
                jo["sbzlMc"]      = qc.TaskName;
                var query = from d in reportData
                            from dd in d["data"]
                            where dd["name"].ToString() == "wbsbzzsybnsrzb.ybbys"
                            select dd;
                ybtse = query.Where(a => a["idx"].ToString() == "33").FirstOrDefault()["value"].ToString();

                jo["bbbbh"]        = "v4";
                jo["ybtse"]        = decimal.Parse(ybtse);
                jo["ybtseDisplay"] = ybtse;
                wbSbSbxxes.Add(jo);
                count++;
                re_json["pagination"]["totalNum"] = count;
                break;

            case "ds01":
                qc         = set.getUserYSBQC(set.BDDM.Fjs);
                reportData = set.getUserYSBQCReportData(qc.Id, qc.BDDM);
                if (!reportData.HasValues)
                {
                    break;
                }
                jo["sbuuid"]      = "D175734A41B14DD391B85088B1DCFEA9";
                jo["nsrsbh"]      = "91430105MA4L4UB74U";
                jo["shxydm"]      = "91430105MA4L4UB74U";
                jo["djxh"]        = 10114301010000046000;
                jo["sbzlDm"]      = qc.BDDM;
                jo["skssqq"]      = qc.SKSSQQ;
                jo["skssqz"]      = qc.SKSSQZ;
                jo["bbzt"]        = "0";
                jo["bbztDisplay"] = "申报成功";
                jo["ztxx"]        = "申报成功";
                jo["sbrq"]        = qc.HappenDate;
                jo["sbzlMc"]      = qc.TaskName;

                query              = from d in reportData.SelectToken("[0].data") where d["name"].ToString() == "common.bqybtsehj" select d;
                ybtse              = query.FirstOrDefault()["value"].ToString();
                jo["bbbbh"]        = "v2";
                jo["ybtse"]        = decimal.Parse(ybtse);
                jo["ybtseDisplay"] = ybtse;
                wbSbSbxxes.Add(jo);
                count++;
                re_json["pagination"]["totalNum"] = count;
                break;

            case "dsyhs":
                qc         = set.getUserYSBQC(set.BDDM.Yhs);
                reportData = set.getUserYSBQCReportData(qc.Id, qc.BDDM);
                if (!reportData.HasValues)
                {
                    break;
                }
                jo["sbuuid"]   = "D175734A41B14DD391B85088B1DCFEA9";
                jo["djxh"]     = 10114301010000046000;
                jo["zsxmDm"]   = qc.BDDM;
                jo["skssqq"]   = qc.SKSSQQ;
                jo["skssqz"]   = qc.SKSSQZ;
                jo["lrrDm"]    = "000000dzswj";
                jo["yzpzxh"]   = "10014319000020623817";
                jo["sbrq"]     = qc.HappenDate;
                jo["sbzlMc"]   = "《印花税纳税申报(报告)表》";
                jo["yzpzzlDm"] = "BDA0610794";
                jo["dsbz"]     = "Y";
                query          = from d in reportData
                                 where d["trs"] != null
                                 select d["trs"];
                foreach (JObject q in query.FirstOrDefault())
                {
                    JObject joYhs = new JObject(jo);
                    joYhs["ybtse"]        = q.SelectToken("tds.bqybtse.value");
                    joYhs["ybtseDisplay"] = q.SelectToken("tds.bqybtse.value");
                    joYhs["zspmDm"]       = q.SelectToken("tds.zspmDm.value");
                    wbSbSbxxes.Add(joYhs);
                    count++;
                }
                re_json["pagination"]["totalNum"] = count;
                break;
            }
            re_json["wbSbSbxxes"] = wbSbSbxxes;

            return(re_json);
        }
Ejemplo n.º 17
0
        public IActionResult form(string postData)
        {
            string   dir  = "form.sword";
            string   path = "";
            postData pd   = JsonConvert.DeserializeObject <postData>(postData);
            string   str  = "";
            JObject  re_json;
            Nsrxx    xx     = set.getNsrxx();
            string   action = pd.ctrl.Split('?')[0];
            GDTXDate gd;
            Model    model;

            switch (action)
            {
            case "SB151zlbsslCtrl_initBd":
                gd    = set.getGDTXDate(set.BDDM.XqykjzzCwbb);
                model = new Model {
                    Nsrxx = xx, GDTXDate = gd
                };
                return(View(action, model));

            case "SB025YhssbCtrl_cwgzInitView":
                path    = he.WebRootPath + "/" + dir + "/" + action + ".SwordPageData.json";
                str     = System.IO.File.ReadAllText(path);
                re_json = JsonConvert.DeserializeObject <JObject>(str);
                gd      = set.getGDTXDate(set.BDDM.Yhs);
                var    q              = from d in re_json["data"] where d["name"] != null && d["name"].ToString() == "nsrxxForm" select d;
                JToken nsrxxForm      = q.FirstOrDefault();
                JToken nsrxxForm_data = nsrxxForm["data"];
                nsrxxForm_data["skssqq"]["value"] = gd.skssqq;
                nsrxxForm_data["skssqz"]["value"] = gd.skssqz;
                nsrxxForm_data["sbrq1"]["value"]  = gd.tbrq;
                nsrxxForm_data["nsrsbh"]["value"] = xx.NSRSBH;
                nsrxxForm_data["nsrmc"]["value"]  = xx.NSRMC;
                nsrxxForm_data["sfzjhm"]["value"] = xx.IDCardNum;

                q = from d in re_json["data"] where d["name"] != null && d["name"].ToString() == "slxxForm" select d;
                JToken slxxForm      = q.FirstOrDefault();
                JToken slxxForm_data = slxxForm["data"];
                slxxForm_data["slrq"]["value"]   = gd.tbrq;
                slxxForm_data["slswjg"]["value"] = xx.ZGDSSWJFJMC;
                slxxForm_data["bsr"]["value"]    = xx.Name;

                qc = set.getUserYSBQC(set.BDDM.Yhs);
                JToken data_json = set.getUserYSBQCReportData(qc.Id, qc.BDDM);
                JToken yhssbGrid = data_json.Where(a => a["name"] != null && a["name"].ToString() == "yhssbGrid").FirstOrDefault();
                yhssbGrid["name"] = "yhssbGridGz";

                q = from d in re_json["data"] where d["name"] != null && d["name"].ToString() == "yhssbGridGz" select d;
                JToken yhssbGridGz = q.FirstOrDefault();
                yhssbGridGz.Remove();
                ((JArray)re_json["data"]).Add(yhssbGrid);
                model = new Model {
                    data = JsonConvert.SerializeObject(re_json)
                };
                return(View(action, model));

            case "GYDrCtrl_openDr":
                return(View(set.functionNotOpen));

            default:
                return(View(action));
            }
        }
Ejemplo n.º 18
0
        public IActionResult ajax(string ctrl, string postData)
        {
            string dir  = "ajax.sword";
            string path = "";
            string str  = "";

            if (postData != null)
            {
                postData pd     = JsonConvert.DeserializeObject <postData>(postData);
                string   action = pd.ctrl.Split('?')[0];
                JObject  re_json;
                GDTXDate gd;
                Nsrxx    xx;
                switch (action)
                {
                case "SB025YhssbCtrl_saveYhsSbxx":
                    qc = set.getUserYSBQC(set.BDDM.Yhs);
                    set.saveUserYSBQCReportData(pd.data, qc.Id.ToString(), qc.BDDM);
                    GTXMethod.UpdateYSBQC(qc.Id.ToString(), set.SBZT.YSB);
                    path = he.WebRootPath + "/" + dir + "/" + action + ".json";
                    str  = System.IO.File.ReadAllText(path);
                    break;

                case "SB151zlbsslCtrl_queryKjzdzzDmByDjxh":
                    path    = he.WebRootPath + "/" + dir + "/" + action + ".json";
                    str     = System.IO.File.ReadAllText(path);
                    re_json = JsonConvert.DeserializeObject <JObject>(str);
                    gd      = set.getGDTXDate(set.BDDM.XqykjzzCwbb);
                    re_json["data"].Where(a => a["name"].ToString() == "ssqq").FirstOrDefault()["value"] = gd.skssqq;
                    re_json["data"].Where(a => a["name"].ToString() == "ssqz").FirstOrDefault()["value"] = gd.skssqz;

                    str = JsonConvert.SerializeObject(re_json);
                    break;

                case "GY002CommonCtrl_queryNsrxxByNsrsbh":
                    path    = he.WebRootPath + "/" + dir + "/" + action + ".json";
                    str     = System.IO.File.ReadAllText(path);
                    re_json = JsonConvert.DeserializeObject <JObject>(str);
                    gd      = set.getGDTXDate(set.BDDM.XqykjzzCwbb);
                    xx      = set.getNsrxx();
                    JToken tds = re_json.SelectToken("data[1].trs[0].tds");
                    tds["nsrmc"]["value"]       = xx.NSRMC;
                    tds["fddbrsfzjhm"]["value"] = xx.IDCardNum;
                    tds["bsrxm"]["value"]       = xx.Name;

                    str = JsonConvert.SerializeObject(re_json);
                    break;

                case "SB025YhssbCtrl_reloadNsrzfhy":
                    path    = he.WebRootPath + "/" + dir + "/" + action + ".json";
                    str     = System.IO.File.ReadAllText(path);
                    re_json = JsonConvert.DeserializeObject <JObject>(str);
                    xx      = set.getNsrxx();
                    re_json.SelectToken("data").Where(a => a["name"].ToString() == "zhyMc").FirstOrDefault()["value"] = xx.GBHY;
                    str = JsonConvert.SerializeObject(re_json);
                    break;

                case "SB025YhssbCtrl_getDefaultJmxx":
                    string zspmDm = pd.data.Where(a => a["name"].ToString() == "zspmDm").FirstOrDefault()["value"].ToString();
                    path = he.WebRootPath + "/" + dir + "/" + action + "." + zspmDm + ".json";
                    str  = System.IO.File.ReadAllText(path);
                    break;

                case "SB104xqykjzzcwbsCtrl_saveZcfzb":
                    qc = set.getUserYSBQC(set.BDDM.XqykjzzCwbb);
                    set.saveUserYSBQCReportData(pd.data, qc.Id.ToString(), qc.BDDM);
                    path = he.WebRootPath + "/" + dir + "/" + action + ".json";
                    str  = System.IO.File.ReadAllText(path);
                    break;

                case "SBGyCtrl_jsskssqz":
                    path    = he.WebRootPath + "/" + dir + "/" + action + ".json";
                    str     = System.IO.File.ReadAllText(path);
                    re_json = JsonConvert.DeserializeObject <JObject>(str);
                    gd      = set.getGDTXDate(set.BDDM.Yhs);
                    re_json["data"].Where(a => a["name"].ToString() == "skssqq").FirstOrDefault()["value"] = gd.skssqq;
                    re_json["data"].Where(a => a["name"].ToString() == "skssqz").FirstOrDefault()["value"] = gd.skssqz;

                    str = JsonConvert.SerializeObject(re_json);
                    break;

                default:
                    path = he.WebRootPath + "/" + dir + "/" + action + ".json";
                    str  = System.IO.File.ReadAllText(path);
                    break;
                }
            }
            else
            {
                path = he.WebRootPath + "/" + dir + "/" + ctrl + ".json";
                str  = System.IO.File.ReadAllText(path);
            }
            return(Content(str, "application/json;charset=utf-8"));
        }