コード例 #1
0
ファイル: initrules.ashx.cs プロジェクト: jojoli123/HeBei
        public void ProcessRequest(HttpContext context)
        {
            JObject jobj      = new JObject();
            string  initrules = File.ReadAllText(context.Server.MapPath("initrules.json"));

            JObject jo = JsonConvert.DeserializeObject <JObject>(initrules);
            JEnumerable <JToken> initrules_sbData_jo = (JEnumerable <JToken>)jo["value"]["sbData"].Children();

            List <string> ListTBZT = new List <string>();
            JArray        jarr     = new JArray();

            string    TaskName = "增值税一般纳税人申报";
            GTXResult resultq  = GTXMethod.GetHeBeiYSBQC();

            if (resultq.IsSuccess)
            {
                List <GDTXHeBeiUserYSBQC> ysbqclist = JsonConvert.DeserializeObject <List <GDTXHeBeiUserYSBQC> >(resultq.Data.ToString());
                if (ysbqclist.Count > 0)
                {
                    foreach (GDTXHeBeiUserYSBQC item in ysbqclist)
                    {
                        if (item.TaskName == TaskName)
                        {
                            if (item.TBZT != null)
                            {
                                ListTBZT = new List <string>(item.TBZT.Split(','));
                                jarr     = JsonConvert.DeserializeObject <JArray>(item.TBZT);
                            }
                        }
                    }
                }
            }

            foreach (JToken jt in initrules_sbData_jo)
            {
                foreach (JObject j in jarr)
                {
                    if (jt.ElementAt(0)["bbid"].ToString() == j["bbid"].ToString())
                    {
                        JObject ReportData = GTXMethod.getZzsReportData(j["bbid"].ToString());
                        if (ReportData.HasValues)
                        {
                            jt.ElementAt(0)["checkData"] = ReportData["checkData"];
                        }
                        jt.ElementAt(0)["status"] = j["status"].ToString();
                        break;
                    }
                }
                jobj.Add(jt);
            }

            jo["value"]["sbData"] = jobj;

            initrules = JsonConvert.SerializeObject(jo);

            context.Response.ContentType = "text/plain";
            context.Response.Write(initrules);
        }
コード例 #2
0
        public void ProcessRequest(HttpContext context)
        {
            string json = ""; var ysbbz = "";
            string Url = HttpContext.Current.Request.Url.ToString();

            string[] a   = Url.Split('/');
            string   url = a[0] + "/" + a[1] + "/" + a[2];
            // string url = HttpContext.Current.Request.Url.Scheme + "://" + HttpContext.Current.Request.Url.Host + ":"+HttpContext.Current.Request.Url.Port;
            List <JObject> applst         = new List <JObject>();
            var            userquestionid = CurrentUser.GetInstance().GetCurrentUserQuestionId;
            GTXResult      result         = GTXMethod.GetHeBeiYSBQC();

            if (result.IsSuccess)
            {
                List <GDTXHeBeiUserYSBQC> ysbqclist = JsonConvert.DeserializeObject <List <GDTXHeBeiUserYSBQC> >(result.Data.ToString());

                if (ysbqclist.Count > 0)
                {
                    foreach (GDTXHeBeiUserYSBQC item in ysbqclist.OrderBy(x => x.Id))
                    {
                        if (userquestionid == item.UserQuestionId.ToString())
                        {
                            if (item.SBZT == "未申报")
                            {
                                ysbbz = "N";
                            }
                            else
                            {
                                ysbbz = "Y";
                            }
                            JObject retApp = new JObject();
                            retApp.Add("id", item.Id);
                            retApp.Add("name", item.TaskName);
                            retApp.Add("url", url + item.Url + "&id=" + item.Id);
                            retApp.Add("category", "sb");
                            retApp.Add("code", item.Code);
                            retApp.Add("content", null);
                            retApp.Add("required", item.Required);
                            retApp.Add("status", null);
                            retApp.Add("statusName", null);
                            retApp.Add("priority", 0);
                            retApp.Add("ysbbz", ysbbz);
                            retApp.Add("sbqx", item.SBQX);
                            retApp.Add("gdsBz", "1");
                            applst.Add(retApp);
                        }
                    }
                }
            }
            json = File.ReadAllText(context.Server.MapPath("get.json"));
            json = json.Replace("@@data", JsonConvert.SerializeObject(applst).Replace("[", "").Replace("]", ""));
            context.Response.ContentType = "text/plain";
            context.Response.Write(json);
        }
コード例 #3
0
ファイル: hdxx.ashx.cs プロジェクト: jojoli123/HeBei
        public void ProcessRequest(HttpContext context)
        {
            string skssqq = "", skssqz = "", UserYSBQCId = "", sbzt = "";
            string url = HttpContext.Current.Request.Url.ToString();

            string[] value = url.Split('&');
            for (int i = 0; i < value.Length; i++)
            {
                var pos = value[i].IndexOf('=');
                var key = value[i].Substring(0, pos);
                if (key == "id")
                {
                    UserYSBQCId = value[i].Substring(pos + 1);
                    break;
                }
            }

            GTXResult json = GTXMethod.GetHeBeiYSBQC();

            if (json.IsSuccess)
            {
                List <GDTXHeBeiUserYSBQC> ysbqclist = JsonConvert.DeserializeObject <List <GDTXHeBeiUserYSBQC> >(json.Data.ToString());
                if (ysbqclist.Count > 0)
                {
                    foreach (GDTXHeBeiUserYSBQC item in ysbqclist)
                    {
                        if (item.Id == Int32.Parse(UserYSBQCId))
                        {
                            skssqq = item.SKSSQQ;
                            skssqz = item.SKSSQZ;
                            sbzt   = item.SBZT;
                            break;
                        }
                    }
                }
            }
            if (sbzt == "已申报")
            {
                var result = File.ReadAllText(context.Server.MapPath("hdxx1.json"));
                context.Response.ContentType = "text/plain";
                context.Response.Write(result);
            }
            else
            {
                var result = File.ReadAllText(context.Server.MapPath("hdxx.json"));
                result = result.Replace("@@skssqq", skssqq).Replace("@@skssqz", skssqz);
                context.Response.ContentType = "text/plain";
                context.Response.Write(result);
            }
        }
コード例 #4
0
ファイル: sbqkcx.ashx.cs プロジェクト: jojoli123/HeBei
        public void ProcessRequest(HttpContext context)
        {
            string data = "";

            context.Response.ContentType = "application/json";
            HttpRequest  request = context.Request;
            StreamReader reader  = new StreamReader(request.InputStream);
            string       json    = reader.ReadToEnd();
            JObject      jo      = JObject.Parse(json);
            var          sbrqQ   = jo["sbrqQ"].ToString().Replace("\"", "");
            var          sbrqZ   = jo["sbrqZ"].ToString().Replace("\"", "");
            var          sbztDm  = jo["sbztDm"].ToString().Replace("\"", "");
            var          sssqQ   = jo["sssqQ"].ToString().Replace("\"", "");
            var          sssqZ   = jo["sssqZ"].ToString().Replace("\"", "");
            var          zsxmDm  = jo["zsxmDm"].ToString().Replace("\"", "");

            DateTime t1 = DateTime.Parse(sbrqQ);
            DateTime t2 = DateTime.Parse(sbrqZ);

            List <JObject> applst = new List <JObject>();
            GTXResult      result = GTXMethod.GetHeBeiYSBQC();

            if (result.IsSuccess)
            {
                List <GDTXHeBeiUserYSBQC> ysbqclist = JsonConvert.DeserializeObject <List <GDTXHeBeiUserYSBQC> >(result.Data.ToString());
                if (ysbqclist.Count > 0)
                {
                    foreach (GDTXHeBeiUserYSBQC item in ysbqclist)
                    {
                        if (item.SBZT == "已申报")
                        {
                            if (DateTime.Compare(DateTime.Parse(item.HappenDate), t1) >= 0 && DateTime.Compare(t2, DateTime.Parse(item.HappenDate)) >= 0)
                            {
                                if (zsxmDm != "")
                                {
                                    if (int.Parse(zsxmDm) == item.Code)
                                    {
                                        JObject retApp = new JObject();
                                        retApp.Add("sbxh", item.Id);
                                        retApp.Add("djxh", "10121306010000052395");
                                        retApp.Add("nsrsbh", null);
                                        retApp.Add("zsxmDm", null);
                                        retApp.Add("sbzlDm", item.Code);
                                        retApp.Add("sbzlMc", item.ZSXM);
                                        retApp.Add("sbse", item.SBSE);
                                        retApp.Add("skssqq", item.SKSSQQ);
                                        retApp.Add("skssqz", item.SKSSQZ);
                                        retApp.Add("sbztDm", "0000");
                                        retApp.Add("sbztms", "申报成功");
                                        retApp.Add("sbrq", item.SBQX);
                                        retApp.Add("lrsj", item.SBQX);
                                        retApp.Add("sblxDm", "11");
                                        retApp.Add("pzxh", "10021318000048344350");
                                        retApp.Add("qqwjm", null);
                                        retApp.Add("sbny", null);
                                        retApp.Add("scpzxh", null);
                                        retApp.Add("qdid", "");
                                        retApp.Add("yzpzzlDm", "BDA0610135");
                                        retApp.Add("czDmList", "@@czDmList");
                                        retApp.Add("sl", null);
                                        retApp.Add("sbuuid", "21318102310374655696");
                                        retApp.Add("gzlxDm", "1");
                                        retApp.Add("zsZsxmDm", null);
                                        retApp.Add("zsSbzlDm", null);
                                        retApp.Add("ybjcbz", "");
                                        retApp.Add("gdsBz", "1");
                                        retApp.Add("sbzlDlDm", item.Code);
                                        applst.Add(retApp);
                                    }
                                }
                                else if (zsxmDm != "" && sbztDm != "")
                                {
                                    if (int.Parse(zsxmDm) == item.Code)
                                    {
                                        JObject retApp = new JObject();
                                        retApp.Add("sbxh", item.Id);
                                        retApp.Add("djxh", "10121306010000052395");
                                        retApp.Add("nsrsbh", null);
                                        retApp.Add("zsxmDm", null);
                                        retApp.Add("sbzlDm", item.Code);
                                        retApp.Add("sbzlMc", item.ZSXM);
                                        retApp.Add("sbse", item.SBSE);
                                        retApp.Add("skssqq", item.SKSSQQ);
                                        retApp.Add("skssqz", item.SKSSQZ);
                                        retApp.Add("sbztDm", "0000");
                                        retApp.Add("sbztms", "申报成功");
                                        retApp.Add("sbrq", item.SBQX);
                                        retApp.Add("lrsj", item.SBQX);
                                        retApp.Add("sblxDm", "11");
                                        retApp.Add("pzxh", "10021318000048344350");
                                        retApp.Add("qqwjm", null);
                                        retApp.Add("sbny", null);
                                        retApp.Add("scpzxh", null);
                                        retApp.Add("qdid", "");
                                        retApp.Add("yzpzzlDm", "BDA0610135");
                                        retApp.Add("czDmList", "@@czDmList");
                                        retApp.Add("sl", null);
                                        retApp.Add("sbuuid", "21318102310374655696");
                                        retApp.Add("gzlxDm", "1");
                                        retApp.Add("zsZsxmDm", null);
                                        retApp.Add("zsSbzlDm", null);
                                        retApp.Add("ybjcbz", "");
                                        retApp.Add("gdsBz", "1");
                                        retApp.Add("sbzlDlDm", item.Code);
                                        applst.Add(retApp);
                                    }
                                }
                                else if (zsxmDm != "" && sbztDm != "" && sssqQ != "" && sssqZ != "")
                                {
                                    DateTime t3 = DateTime.Parse(sssqQ);
                                    DateTime t4 = DateTime.Parse(sssqZ);
                                    if (int.Parse(zsxmDm) == item.Code && DateTime.Compare(DateTime.Parse(item.SKSSQQ), t3) >= 0 && DateTime.Compare(t4, DateTime.Parse(item.SKSSQZ)) >= 0)
                                    {
                                        JObject retApp = new JObject();
                                        retApp.Add("sbxh", item.Id);
                                        retApp.Add("djxh", "10121306010000052395");
                                        retApp.Add("nsrsbh", null);
                                        retApp.Add("zsxmDm", null);
                                        retApp.Add("sbzlDm", item.Code);
                                        retApp.Add("sbzlMc", item.ZSXM);
                                        retApp.Add("sbse", item.SBSE);
                                        retApp.Add("skssqq", item.SKSSQQ);
                                        retApp.Add("skssqz", item.SKSSQZ);
                                        retApp.Add("sbztDm", "0000");
                                        retApp.Add("sbztms", "申报成功");
                                        retApp.Add("sbrq", item.SBQX);
                                        retApp.Add("lrsj", item.SBQX);
                                        retApp.Add("sblxDm", "11");
                                        retApp.Add("pzxh", "10021318000048344350");
                                        retApp.Add("qqwjm", null);
                                        retApp.Add("sbny", null);
                                        retApp.Add("scpzxh", null);
                                        retApp.Add("qdid", "");
                                        retApp.Add("yzpzzlDm", "BDA0610135");
                                        retApp.Add("czDmList", "@@czDmList");
                                        retApp.Add("sl", null);
                                        retApp.Add("sbuuid", "21318102310374655696");
                                        retApp.Add("gzlxDm", "1");
                                        retApp.Add("zsZsxmDm", null);
                                        retApp.Add("zsSbzlDm", null);
                                        retApp.Add("ybjcbz", "");
                                        retApp.Add("gdsBz", "1");
                                        retApp.Add("sbzlDlDm", item.Code);
                                        applst.Add(retApp);
                                    }
                                }
                                else
                                {
                                    JObject retApp = new JObject();
                                    retApp.Add("sbxh", item.Id);
                                    retApp.Add("djxh", "10121306010000052395");
                                    retApp.Add("nsrsbh", null);
                                    retApp.Add("zsxmDm", null);
                                    retApp.Add("sbzlDm", item.Code);
                                    retApp.Add("sbzlMc", item.ZSXM);
                                    retApp.Add("sbse", item.SBSE);
                                    retApp.Add("skssqq", item.SKSSQQ);
                                    retApp.Add("skssqz", item.SKSSQZ);
                                    retApp.Add("sbztDm", "0000");
                                    retApp.Add("sbztms", "申报成功");
                                    retApp.Add("sbrq", item.SBQX);
                                    retApp.Add("lrsj", item.SBQX);
                                    retApp.Add("sblxDm", "11");
                                    retApp.Add("pzxh", "10021318000048344350");
                                    retApp.Add("qqwjm", null);
                                    retApp.Add("sbny", null);
                                    retApp.Add("scpzxh", null);
                                    retApp.Add("qdid", "");
                                    retApp.Add("yzpzzlDm", "BDA0610135");
                                    retApp.Add("czDmList", "@@czDmList");
                                    retApp.Add("sl", null);
                                    retApp.Add("sbuuid", "21318102310374655696");
                                    retApp.Add("gzlxDm", "1");
                                    retApp.Add("zsZsxmDm", null);
                                    retApp.Add("zsSbzlDm", null);
                                    retApp.Add("ybjcbz", "");
                                    retApp.Add("gdsBz", "1");
                                    retApp.Add("sbzlDlDm", item.Code);
                                    applst.Add(retApp);
                                }
                            }
                        }
                    }
                }
            }
            data = File.ReadAllText(context.Server.MapPath("sbqkcx.json"));

            data = data.Replace("@@data", JsonConvert.SerializeObject(applst)).Replace("@@czDmList", "[\"01\",\"04\"]").Replace("\"[", "[").Replace("]\"", "]");
            context.Response.ContentType = "text/plain";
            context.Response.Write(data);
        }
コード例 #5
0
        public void ProcessRequest(HttpContext context)
        {
            Stream       inputStream  = HttpContext.Current.Request.InputStream;
            Encoding     encoding     = HttpContext.Current.Request.ContentEncoding;
            StreamReader streamReader = new StreamReader(inputStream, encoding);
            string       strJson      = streamReader.ReadToEnd();

            JObject req_jo = JsonConvert.DeserializeObject <JObject>(strJson);
            JArray  req_ja = (JArray)req_jo["sbData"];

            string StrTaskName = "增值税一般纳税人申报";

            string    id      = "";
            string    TBZT    = "";
            GTXResult resultq = GTXMethod.GetHeBeiYSBQC();

            if (resultq.IsSuccess)
            {
                List <GDTXHeBeiUserYSBQC> ysbqclist = JsonConvert.DeserializeObject <List <GDTXHeBeiUserYSBQC> >(resultq.Data.ToString());
                if (ysbqclist.Count > 0)
                {
                    foreach (GDTXHeBeiUserYSBQC item in ysbqclist)
                    {
                        if (item.TaskName == StrTaskName)
                        {
                            id   = item.Id.ToString();
                            TBZT = item.TBZT;
                        }
                    }
                }
            }

            JArray ja = JsonConvert.DeserializeObject <JArray>(TBZT);

            foreach (JObject j in ja)
            {
                foreach (JObject jj in req_ja)
                {
                    if (j["bbid"].Equals(jj["bbid"]))
                    {
                        j["status"] = jj["status"];
                        break;
                    }
                }
            }

            GTXResult re    = GTXMethod.UpdateYSBQCtbzt(id, "", JsonConvert.SerializeObject(ja));
            JObject   re_jo = new JObject();

            if (re.IsSuccess == true)
            {
                re_jo.Add("code", "0000");
                re_jo.Add("value", "true");
            }
            else
            {
                re_jo.Add("code", "");
                re_jo.Add("value", "false");
            }

            context.Response.ContentType = "text/plain";
            context.Response.Write(JsonConvert.SerializeObject(re_jo));
        }
コード例 #6
0
ファイル: hdxx.ashx.cs プロジェクト: jojoli123/HeBei
        public void ProcessRequest(HttpContext context)
        {
            string tbrq = "";
            string skssqq = "", skssqz = "", UserYSBQCId = "", sbzt = "";
            string url = HttpContext.Current.Request.Url.ToString();

            string[] values      = url.Split('/');
            string   selecttable = values[values.Length - 2];

            string[] value = url.Split('&');
            for (int i = 0; i < value.Length; i++)
            {
                var pos = value[i].IndexOf('=');
                var key = value[i].Substring(0, pos);
                if (key == "id")
                {
                    UserYSBQCId = value[i].Substring(pos + 1);
                    break;
                }
            }

            GTXResult json = GTXMethod.GetHeBeiYSBQC();

            if (json.IsSuccess)
            {
                List <GDTXHeBeiUserYSBQC> ysbqclist = JsonConvert.DeserializeObject <List <GDTXHeBeiUserYSBQC> >(json.Data.ToString());
                if (ysbqclist.Count > 0)
                {
                    foreach (GDTXHeBeiUserYSBQC item in ysbqclist)
                    {
                        if (item.Id == Int32.Parse(UserYSBQCId))
                        {
                            tbrq   = item.HappenDate;
                            skssqq = item.SKSSQQ;
                            skssqz = item.SKSSQZ;
                            sbzt   = item.SBZT;
                            break;
                        }
                    }
                }
            }
            if (sbzt == "已申报")
            {
                var result = File.ReadAllText(context.Server.MapPath("hdxx6.json"));
                context.Response.ContentType = "text/plain";
                context.Response.Write(result);
            }
            else
            {
                if (selecttable == "sb_ybnsr")
                {
                    var result = File.ReadAllText(context.Server.MapPath("hdxx.json"));
                    result = result.Replace("@@skssqq", skssqq).Replace("@@skssqz", skssqz);
                    context.Response.ContentType = "text/plain";
                    context.Response.Write(result);
                }
                else if (selecttable == "sb_cwbb_xqy_kjzz")
                {
                    var result = File.ReadAllText(context.Server.MapPath("hdxx1.json"));
                    result = result.Replace("@@skssqq", skssqq).Replace("@@skssqz", skssqz);
                    context.Response.ContentType = "text/plain";
                    context.Response.Write(result);
                }
                else if (selecttable == "xgmsb-yds_new")
                {
                    var result = File.ReadAllText(context.Server.MapPath("hdxx2.json"));
                    result = result.Replace("@@skssqq", skssqq).Replace("@@skssqz", skssqz).Replace("@@tbrq", tbrq);
                    context.Response.ContentType = "text/plain";
                    context.Response.Write(result);
                }
                else if (selecttable == "xgmsb-tbs")
                {
                    var result = File.ReadAllText(context.Server.MapPath("hdxx3.json"));
                    result = result.Replace("@@skssqq", skssqq).Replace("@@skssqz", skssqz);
                    context.Response.ContentType = "text/plain";
                    context.Response.Write(result);
                }
                else if (selecttable == "sb_sdsA_yj_new")
                {
                    var result = File.ReadAllText(context.Server.MapPath("hdxx4.json"));
                    result = result.Replace("@@skssqq", skssqq).Replace("@@skssqz", skssqz);
                    context.Response.ContentType = "text/plain";
                    context.Response.Write(result);
                }
                else if (selecttable == "sb_sdsB_yj_new")
                {
                    var result = File.ReadAllText(context.Server.MapPath("hdxx5.json"));
                    result = result.Replace("@@skssqq", skssqq).Replace("@@skssqz", skssqz);
                    context.Response.ContentType = "text/plain";
                    context.Response.Write(result);
                }
                else if (selecttable == "sb_gdlh_cztdsys")
                {
                    var result = File.ReadAllText(context.Server.MapPath("hdxx7.json"));
                    result = result.Replace("@@skssqq", skssqq).Replace("@@skssqz", skssqz);
                    context.Response.ContentType = "text/plain";
                    context.Response.Write(result);
                }
            }
        }
コード例 #7
0
ファイル: sbcl.ashx.cs プロジェクト: jojoli123/HeBei
        public void ProcessRequest(HttpContext context)
        {
            string reportCode  = "";
            string userYsbqcId = "";
            string sbwjs       = "";
            string ynse        = "";
            string taskname    = "";

            context.Response.ContentType = "application/json";
            HttpRequest  request = context.Request;
            StreamReader reader  = new StreamReader(request.InputStream);
            string       json    = reader.ReadToEnd();
            JObject      jo      = JObject.Parse(json);

            userYsbqcId = jo["id"].ToString().Replace("\"", "");

            GTXResult result = GTXMethod.GetHeBeiYSBQC();

            if (result.IsSuccess)
            {
                List <GDTXHeBeiUserYSBQC> ysbqclist = JsonConvert.DeserializeObject <List <GDTXHeBeiUserYSBQC> >(result.Data.ToString());
                if (ysbqclist.Count > 0)
                {
                    foreach (GDTXHeBeiUserYSBQC item in ysbqclist)
                    {
                        if (item.Id == Int32.Parse(userYsbqcId))
                        {
                            taskname = item.TaskName;
                            break;
                        }
                    }
                }
            }
            if (taskname != "小企业会计准则-财务报表-季报")
            {
                sbwjs = jo["sbwjs"].ToString().Replace("[", "").Replace("]", "").Replace("\\", "").Replace("\"{", "{").Replace("}\"", "}");
                var     jo1   = sbwjs.Split('}');
                var     jo3   = jo1[0].Replace("\\\"", "\"") + "}";
                JObject jo2   = JObject.Parse(jo3);
                string  bbxml = jo2["bbxml"].ToString().Replace("\"", "");
                ynse = GTXMethod.getYnse(taskname, bbxml);
                GTXResult sresult = GTXMethod.UpdateSBSE(userYsbqcId, ynse);
            }


            List <GTXNameValue> nameList = new List <GTXNameValue>();
            GTXNameValue        nv       = new GTXNameValue();

            nv.key = "data";
            byte[] bytes   = Encoding.Default.GetBytes(json);
            string _result = Convert.ToBase64String(bytes);

            nv.value = _result;
            nameList.Add(nv);
            GTXResult saveresult = GTXMethod.SaveUserReportData(JsonConvert.SerializeObject(nameList), userYsbqcId, reportCode);
            JObject   retApp     = new JObject();

            try
            {
                GTXResult upresult = GTXMethod.UpdateYSBQC(userYsbqcId, "已申报");

                retApp.Add("msg", "已申报完成!");
                retApp.Add("code", "0000");
            }catch (Exception ex)
            {
            }
            context.Response.ContentType = "application/json;charset=UTF-8";
            context.Response.Write(JsonConvert.SerializeObject(retApp));
        }
コード例 #8
0
        public void ProcessRequest(HttpContext context)
        {
            Stream       inputStream  = HttpContext.Current.Request.InputStream;
            Encoding     encoding     = HttpContext.Current.Request.ContentEncoding;
            StreamReader streamReader = new StreamReader(inputStream, encoding);
            string       strJson      = streamReader.ReadToEnd();

            JObject input_jo   = JsonConvert.DeserializeObject <JObject>(strJson);
            string  table_name = input_jo["bbid"].ToString();

            string    StrTaskName = "增值税一般纳税人申报";
            string    id          = "";
            string    TBZT        = "";
            GTXResult resultq     = GTXMethod.GetHeBeiYSBQC();

            if (resultq.IsSuccess)
            {
                List <GDTXHeBeiUserYSBQC> ysbqclist = JsonConvert.DeserializeObject <List <GDTXHeBeiUserYSBQC> >(resultq.Data.ToString());
                if (ysbqclist.Count > 0)
                {
                    foreach (GDTXHeBeiUserYSBQC item in ysbqclist)
                    {
                        if (item.TaskName == StrTaskName)
                        {
                            id   = item.Id.ToString();
                            TBZT = item.TBZT;
                        }
                    }
                }
            }

            GTXResult gre   = GTXMethod.DeleteUserReportData(id, table_name);
            JObject   re_jo = new JObject();

            if (gre.IsSuccess == true)
            {
                JArray  ja     = new JArray();
                JObject add_jo = new JObject();

                ja = JsonConvert.DeserializeObject <JArray>(TBZT);
                foreach (JObject jo in ja)
                {
                    if (jo["bbid"].ToString().Equals(table_name))
                    {
                        ja.Remove(jo);
                        GTXMethod.UpdateYSBQCtbzt(id, "", JsonConvert.SerializeObject(ja));
                        break;
                    }
                }

                re_jo.Add(new JProperty("value", "true"));
                re_jo.Add(new JProperty("code", "0000"));
            }
            else
            {
                re_jo.Add(new JProperty("value", "false"));
                re_jo.Add(new JProperty("code", ""));
                re_jo.Add(new JProperty("message", "删除失败!"));
            }

            context.Response.ContentType = "text/plain";
            context.Response.Write(re_jo);
        }