void QueryLoanDetail()
        {
            LoanDetailedInfo info = PublicFundAccess.QueryLoanDetailedInfo(SysBLL.customerParam);

            if ("9999".Equals(info.recode))
            {
                lblIsChargingTip.Dispatcher.Invoke(new labelTextDelegate(setLabelText), lblIsChargingTip, info.msg);
                Thread.Sleep(1000 * 3);
                this.Dispatcher.Invoke(new Action(() => { Util.JumpUtil.jumpMainPage(); }));
                return;
            }
            else if ((info.data == null) || ("false".Equals(info.success)))
            {
                if (info.msg != null)
                {
                    if (info.msg.Length > 0)
                    {
                        lblIsChargingTip.Dispatcher.Invoke(new labelTextDelegate(setLabelText), lblIsChargingTip, info.msg);
                    }
                    else
                    {
                        lblIsChargingTip.Dispatcher.Invoke(new labelTextDelegate(setLabelText), lblIsChargingTip, "未查到相关信息,请稍后再试...");
                    }
                }
                else
                {
                    lblIsChargingTip.Dispatcher.Invoke(new labelTextDelegate(setLabelText), lblIsChargingTip, "未查到相关信息,请稍后再试...");
                }
                Thread.Sleep(1000 * 3);
                this.Dispatcher.Invoke(new Action(() => { Util.JumpUtil.jumpMainPage(); }));
                return;
            }
            //输出info
            paramList.Add("info", info);
            this.Dispatcher.Invoke(new Action(() => { Util.JumpUtil.jumpCommonPage("FormpublicLoanDetailedInfo", paramList); }));
        }
Example #2
0
        /// <summary>
        /// 个人公积金贷款还款明细
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        public static LoanDetailedInfo QueryLoanDetailedInfo(CustomerParam param)
        {
            LoanDetailedInfo info = new LoanDetailedInfo();

            try {
                Dictionary <String, String> parameters = new Dictionary <String, String>();

                parameters.Add("selcnt", param.selcnt);
                parameters.Add("seltype", param.seltype);
                parameters.Add("pwd", param.pwd);
                parameters.Add("appId", param.Id);
                parameters.Add("conName", param.conName);
                string  jsonText = HttpHelper.getHttp(SysConfigHelper.readerNode("accumulationFund"), parameters, null);
                JObject json     = (JObject)JsonConvert.DeserializeObject(jsonText);
                if (json == null)
                {
                    return(null);
                }

                if (json["msg"] != null)
                {
                    if (json["msg"].ToString().Length >= 4)
                    {
                        info.msg = json["msg"].ToString();
                    }
                    else
                    {
                        info.msg = "查询失败...";
                    }
                }
                if (jsonText.IndexOf("密码错误") > 0)
                {
                    info.recode = "9999";
                    info.msg    = "密码错误";
                }
                if (jsonText.IndexOf("个人信息不存在") > 0)
                {
                    info.recode = "9999";
                    info.msg    = "个人信息不存在";
                }
                if (jsonText.IndexOf("身份证号不正确") > 0)
                {
                    info.recode = "9999";
                    info.msg    = "身份证号不正确";
                }
                if (jsonText.IndexOf("未查到相关信息,请核对查询信息") > 0)
                {
                    info.recode = "9999";
                    info.msg    = "未查到相关信息,请核对查询信息";
                }
                if (jsonText.IndexOf("社保卡号密码错误") > 0)
                {
                    info.recode = "9999";
                    info.msg    = "社保卡号密码错误,请检查";
                }
                if (jsonText.IndexOf("查询信息不存在") > 0)
                {
                    info.recode = "9999";
                    info.msg    = "查询信息不存在";
                }
                LoanDetailedInfoData list = null;
                if (json["data"].Count() >= 1)
                {
                    info.data = new List <LoanDetailedInfoData>();
                    JObject data = (JObject)JsonConvert.DeserializeObject(json["data"].ToString());
                    for (int i = 1; i <= data.Count; i++)
                    {
                        list       = new LoanDetailedInfoData();
                        list.data1 = data["data" + i]["data1"].ToString();
                        list.data2 = data["data" + i]["data2"].ToString();
                        list.data3 = data["data" + i]["data3"].ToString();
                        list.data4 = data["data" + i]["data4"].ToString();
                        list.data5 = data["data" + i]["data5"].ToString();
                        list.data6 = data["data" + i]["data6"].ToString();
                        list.data7 = data["data" + i]["data7"].ToString();
                        list.data8 = data["data" + i]["data8"].ToString();
                        info.data.Add(list);
                    }
                }
                info.dateTime = json["dateTime"].ToString();
                info.success  = json["success"].ToString();

                info.u = json["u"].ToString();
            }
            catch { }
            return(info);
        }