예제 #1
0
        public static string make(string ZSXMMC)
        {
            string    id      = "";
            GTXResult resultq = GTXMethod.GetGuiZhouYSBQC();

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

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

            if (upresult.IsSuccess)
            {
                return("");
            }
            else
            {
                return(upresult.Message);
            }
        }
예제 #2
0
        public static GDTXGuangXiUserYSBQC GetYSBQCByBDDM(string BDDM)
        {
            GTXResult resultq = GTXMethod.GetGuangXiYSBQC();

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

                ysbqclist = ysbqclist.Where(a => a.BDDM == BDDM).ToList();
                return(ysbqclist[0]);
            }
            else
            {
                return(new GDTXGuangXiUserYSBQC());
            }
        }
예제 #3
0
        public static JObject getNsrxx(JObject in_jo)
        {
            GTXResult gr1 = GetCompany();

            if (gr1.IsSuccess)
            {
                JObject jo = new JObject();
                jo = JsonConvert.DeserializeObject <JObject>(gr1.Data.ToString());
                if (jo.HasValues)
                {
                    JObject data_jo = jo;
                    in_jo["nsrmc"]      = data_jo["NSRMC"];
                    in_jo["nsrsbh"]     = data_jo["NSRSBH"];
                    in_jo["djzclxMc"]   = data_jo["DJZCLX"];
                    in_jo["zcdz"]       = data_jo["ZCDZ"];
                    in_jo["jydz"]       = data_jo["SCJYDZ"];
                    in_jo["dhhm"]       = data_jo["LXDH"];
                    in_jo["sshy"]       = data_jo["GBHY"];
                    in_jo["hymc"]       = data_jo["GBHY"];
                    in_jo["zgswskfjmc"] = data_jo["ZGDSSWJFJMC"];
                }
            }

            GTXResult gr2 = GetCompanyPerson();

            if (gr2.IsSuccess)
            {
                JArray ja = new JArray();
                ja = JsonConvert.DeserializeObject <JArray>(gr2.Data.ToString());
                if (ja.Count > 0)
                {
                    JObject data_jo = (JObject)ja[0];
                    in_jo["frxm"]        = data_jo["Name"];
                    in_jo["fddbrsfzjhm"] = data_jo["IDCardNum"];
                }
            }

            return(in_jo);
        }