void QueryDetailedInfo() { dparam.Id = SysBLL.customerParam.Id; dparam.conName = SysBLL.customerParam.conName; dparam.pwd = SysBLL.customerParam.pwd; dparam.percode = SysBLL.customerParam.selcnt; PublicFundDetailedInfo info = PublicFundAccess.QueryPublicFundDetailedInfo(dparam); 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.jumpCommonPage("FormPublicFund"); })); 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("FormPublicFundDetailedInfo", paramList); })); }
/// <summary> /// 个人公积金明细查询 /// </summary> /// <param name="param"></param> /// <returns></returns> public static PublicFundDetailedInfo QueryPublicFundDetailedInfo(PublicDetailedParam param) { PublicFundDetailedInfo info = new PublicFundDetailedInfo(); try { Dictionary <String, String> parameters = new Dictionary <String, String>(); parameters.Add("percode", param.percode); parameters.Add("bdate", "20100101"); parameters.Add("edate", DateTime.Now.ToString("yyyyMMdd")); 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 = "查询信息不存在"; } PublicFundDetailedInfoData list = null; if (json["data"].Count() >= 1) { info.data = new List <PublicFundDetailedInfoData>(); JObject data = (JObject)JsonConvert.DeserializeObject(json["data"].ToString()); for (int i = 1; i <= data.Count; i++) { list = new PublicFundDetailedInfoData(); 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(); info.data.Add(list); } } info.dateTime = json["dateTime"].ToString(); info.success = json["success"].ToString(); info.u = json["u"].ToString(); } catch { } return(info); }