Esempio n. 1
0
        public void delSB_ZZS_YBNSR_Public(ref JObject re_json)
        {
            string id   = "";
            string tbrq = "";
            string rqQ  = "";
            string rqZ  = "";

            GTXResult resultq = GTXMethod.GetGuangXiYSBQC();

            if (resultq.IsSuccess)
            {
                List <GDTXGuangXiUserYSBQC> ysbqclist = JsonConvert.DeserializeObject <List <GDTXGuangXiUserYSBQC> >(resultq.Data.ToString());
                if (ysbqclist.Count > 0)
                {
                    foreach (GDTXGuangXiUserYSBQC item in ysbqclist)
                    {
                        if (item.BDDM == "FJSSB")
                        {
                            id   = item.Id.ToString();
                            tbrq = item.HappenDate;
                            rqQ  = item.SKSSQQ;
                            rqZ  = item.SKSSQZ;
                        }
                    }
                }
            }

            re_json["data"]["HEAD"]["TBRQ"]   = new JValue(tbrq);
            re_json["data"]["HEAD"]["SSSQ_Q"] = new JValue(rqQ);
            re_json["data"]["HEAD"]["SSSQ_Z"] = new JValue(rqZ);

            GTXResult gr = GTXMethod.DeleteUserReportData(id, "");
        }
Esempio n. 2
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);
        }
Esempio n. 3
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);
        }
Esempio n. 4
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);
        }
Esempio n. 5
0
        public string sbzfmx(string sbblxDm)
        {
            string str = "作废成功";

            try
            {
                GDTXGuiZhouUserYSBQC ysbqc = GTXMethod.GetYSBQCByBDDM(sbblxDm);

                GTXMethod.UpdateYSBQC(ysbqc.Id.ToString(), "未申报");
                GTXMethod.DeleteUserReportData(ysbqc.Id.ToString(), sbblxDm);
            }
            catch (Exception ex)
            {
                str = "作废失败," + ex.Message;
            }
            return(str);
        }
Esempio n. 6
0
        public JObject zfsbb()
        {
            string ZSPM_DM = System.Web.HttpContext.Current.Request["ZSPM_DM"];

            JObject re_json = new JObject();

            string str = System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("zfsbb.json"));

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

            string    id      = "";
            GTXResult resultq = GTXMethod.GetGuangXiYSBQC();

            if (resultq.IsSuccess)
            {
                List <GDTXGuangXiUserYSBQC> ysbqclist = JsonConvert.DeserializeObject <List <GDTXGuangXiUserYSBQC> >(resultq.Data.ToString());
                if (ysbqclist.Count > 0)
                {
                    foreach (GDTXGuangXiUserYSBQC item in ysbqclist)
                    {
                        if (item.BDDM == ZSPM_DM)
                        {
                            id = item.Id.ToString();
                        }
                    }
                }
            }

            GTXResult upresult = GTXMethod.UpdateYSBQC(id, "未申报");

            if (upresult.IsSuccess)
            {
                GTXMethod.DeleteUserReportData(id, "");
                re_json["code"] = "4";
                re_json["msg"]  = "作废成功";
            }
            else
            {
                re_json["code"] = "-1";
                re_json["msg"]  = upresult.Message;
            }

            return(re_json);
        }
Esempio n. 7
0
        public void delQYSDS_JM_YJ_A_Public(ref JObject re_json, string SBBZL_DM)
        {
            string id  = "";
            string rqQ = "";
            string rqZ = "";

            GDTXGuangXiUserYSBQC ysbqc = GTXMethod.GetYSBQCByBDDM(BDDM);

            id  = ysbqc.Id.ToString();
            rqQ = ysbqc.SKSSQQ;
            rqZ = ysbqc.SKSSQZ;

            if (re_json.Properties().Where(a => a.Name == "data").ToList().Count > 0)
            {
                re_json["data"]["HEAD"]["SSSQ_Q"] = new JValue(rqQ);
                re_json["data"]["HEAD"]["SSSQ_Z"] = new JValue(rqZ);
            }
            GTXResult gr = GTXMethod.DeleteUserReportData(id, SBBZL_DM);
        }
Esempio n. 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);
        }