protected void Page_Load(object sender, EventArgs e) { if (ConfigurationManager.AppSettings["IsFinancing"] != "1") { Response.Redirect("../NoOperable.aspx", true); Response.End(); } try { LPayOpen = new Hi.BLL.PAY_OpenAccount().GetList("", " isnull(dr,0)=0 and DisID=" + this.DisID + "", ""); Lwithdrawals = new Hi.BLL.PAY_Withdrawals().GetList("", " isnull(dr,0)=0 and DisID=" + this.DisID, ""); if (LPayOpen.Count > 0 && Lwithdrawals.Count > 0) { IPubnetwk IPT = new IPubnetwk(); StringBuilder Sjson = new StringBuilder(); Sjson.Append("{\"msghd_trdt\":\"" + DateTime.Now.ToString("yyyyMMdd") + "\",\"srl_ptnsrl\":\"" + Common.Number_repeat("1") + "\","); Sjson.Append("\"cltacc_cltno\":\"" + LPayOpen[0].AccNumver + "\",\"cltacc_cltnm\":\"" + LPayOpen[0].AccName + "\","); Sjson.Append("\"bkacc_accno\":\"" + Lwithdrawals[0].AccNo + "\",\"bkacc_accnm\":\"" + LPayOpen[0].AccName + "\"}"); string json = IPT.trd13010(Sjson.ToString()); JsonData Jdata = JsonMapper.ToObject(json); decimal money = Jdata["amt_balamt"].ToString().ToDecimal(0) / 100; SPAcBalance.InnerText = "¥" + money.ToString("0.00"); } } catch (Exception ex) { SPAcBalance.InnerText = "¥" + "0.00"; } }
protected void Page_Load(object sender, EventArgs e) { #region bo报表地址 string str = string.Empty; //保存token字符串 string username = string.Empty; //保存当前登陆人名称 username = Common.UserName(); //获取当前登陆人 IPubnetwk wk = new IPubnetwk(); //java接口实例 try { //判断session是否为空 if (Session["token"] != null && Session["bo_username"] != null) { if (username.Equals(Convert.ToString(Session["bo_username"]))) { str = Session["token"].ToString(); } else { Session.Add("bo_username", username); str = wk.BOLogin("{\"poUsername\":\"administrator\",\"poPassword\":\"Password01\",\"cms\":\"120.55.125.131:6400\",\"authentication\":\"secEnterprise\"}"); Session.Add("token", str); } } else { Session.Add("bo_username", username); str = wk.BOLogin("{\"poUsername\":\"administrator\",\"poPassword\":\"Password01\",\"cms\":\"120.55.125.131:6400\",\"authentication\":\"secEnterprise\"}"); Session.Add("token", str); } string Bopath = ConfigurationManager.AppSettings["BoPath"];//&sReportMode=sales url = Bopath + "/BOE/OpenDocument/1511031559/OpenDocument/opendoc/openDocument.jsp?sIDType=AaVtArVx7HxAi7xmF4GEEGA&iDocID=5764&lsSyear=2014&lsSmonth=8&sType=wid&sRefresh=Y&token=" + str; } catch { } #endregion }
public void DataMoney() { try { LPayOpen = new Hi.BLL.PAY_OpenAccount().GetList("", " isnull(dr,0)=0 and DisID=" + this.DisID + "", ""); Lwithdrawals = new Hi.BLL.PAY_Withdrawals().GetList("", " isnull(dr,0)=0 and DisID=" + this.DisID, ""); if (LPayOpen.Count > 0 && Lwithdrawals.Count > 0) { IPubnetwk IPT = new IPubnetwk(); StringBuilder Sjson = new StringBuilder(); Sjson.Append("{\"msghd_trdt\":\"" + DateTime.Now.ToString("yyyyMMdd") + "\",\"srl_ptnsrl\":\"" + Common.Number_repeat("1") + "\","); Sjson.Append("\"cltacc_cltno\":\"" + LPayOpen[0].AccNumver + "\",\"cltacc_cltnm\":\"" + LPayOpen[0].AccName + "\","); Sjson.Append("\"bkacc_accno\":\"" + Lwithdrawals[0].AccNo + "\",\"bkacc_accnm\":\"" + LPayOpen[0].AccName + "\"}"); string json = IPT.trd13010(Sjson.ToString()); JsonData Jdata = JsonMapper.ToObject(json); decimal money = Jdata["amt_balamt"].ToString().ToDecimal(0) / 100; SPAcBalance.InnerText = "¥" + money.ToString("0.00"); } } catch (Exception ex) { SPAcBalance.InnerText = "¥" + "0.00"; } }
protected void Btn_Save(object sender, EventArgs e) { List <Hi.Model.PAY_OpenAccount> openAcc = new Hi.BLL.PAY_OpenAccount().GetList("", " isnull(dr,0)=0 and state=1 and DisID=" + this.DisID, ""); if (openAcc.Count == 0) { lblMsg.InnerText = "请先添加开销户信息"; return; } if (openAcc[0].State != 1) { lblMsg.InnerText = "请成功开销户后再绑定结算账户"; return; } List <Hi.Model.PAY_Withdrawals> Lwithdrawals = new Hi.BLL.PAY_Withdrawals().GetList("", " isnull(dr,0)=0 and DisID=" + this.DisID, ""); BLL.Service.WithdrawalsParame WWP = new BLL.Service.WithdrawalsParame(); IPubnetwk IPT = new IPubnetwk(); IPT.Timeout = 2500; if (Lwithdrawals.Count > 0) { try { Lwithdrawals[0].AccNo = txtAccNo.Value.Trim(); Lwithdrawals[0].AccTp = seleAccTp.Value.ToInt(0); Lwithdrawals[0].CrsMk = seleCrsMk.Value.ToInt(0); Lwithdrawals[0].OpenBkCd = Boxbank.BankId; Lwithdrawals[0].PrcCd = selePrcCd.Value.ToInt(0); Lwithdrawals[0].CityCd = hdCityCd.Value.ToInt(0); Lwithdrawals[0].OpenBkNm = txtBkNm.Value.Trim(); Lwithdrawals[0].OpenBkAddr = txtBkAddr.Value.Trim(); Lwithdrawals[0].ts = DateTime.Now; Lwithdrawals[0].modifyuser = this.UserID; //结算账户接口参数赋值 WWP.msghd_trdt = DateTime.Now.ToString("yyyyMMdd"); WWP.srl_ptnsrl = Common.Number_repeat("1"); Lwithdrawals[0].vdef1 = WWP.srl_ptnsrl; WWP.cltacc_cltno = openAcc[0].AccNumver; WWP.cltacc_cltnm = openAcc[0].AccName; WWP.bkacc_accno = Lwithdrawals[0].AccNo; WWP.bkacc_accnm = Lwithdrawals[0].AccNm; WWP.bkacc_acctp = Lwithdrawals[0].AccTp.ToString(); WWP.bkacc_crsmk = Lwithdrawals[0].CrsMk.ToString(); WWP.bkacc_openbkcd = Lwithdrawals[0].OpenBkCd; WWP.bkacc_openbknm = Lwithdrawals[0].OpenBkNm; WWP.bkacc_prccd = Lwithdrawals[0].PrcCd.ToString(); WWP.bkacc_citycd = Lwithdrawals[0].CityCd.ToString(); WWP.bkacc_openbkaddr = Lwithdrawals[0].OpenBkAddr; if (Lwithdrawals[0].State != 1) { WWP.fcflg = "1"; } else { WWP.fcflg = "2"; } string Result = IPT.trd12000(new JavaScriptSerializer().Serialize(WWP)); JsonData jData = null; try { jData = JsonMapper.ToObject(Result); } catch { throw new Exception(Result); } if (jData != null) { if (jData["msghd_rspcode"].ToString() == "000000") { Lwithdrawals[0].State = 1; if (new Hi.BLL.PAY_Withdrawals().Update(Lwithdrawals[0])) { Response.Redirect("SettlementInfo.aspx", true); } } else { lblMsg.InnerText = "结算账户修改失败," + jData["msghd_rspmsg"].ToString() + ""; lblMsg.Visible = true; } } } catch (Exception ex) { lblMsg.InnerText = "结算账户修改失败," + ex.Message + ""; lblMsg.Visible = true; } } else { try { Hi.Model.PAY_Withdrawals withdrawals = new Hi.Model.PAY_Withdrawals(); withdrawals.DisID = this.DisID; withdrawals.CompID = this.CompID; withdrawals.State = 2; withdrawals.OpenAccID = openAcc[0].ID; withdrawals.AccNo = txtAccNo.Value.Trim(); withdrawals.AccNm = openAcc[0].AccName; withdrawals.AccTp = seleAccTp.Value.ToInt(0); withdrawals.CrsMk = seleCrsMk.Value.ToInt(0); withdrawals.OpenBkCd = Boxbank.BankId; withdrawals.PrcCd = selePrcCd.Value.ToInt(0); withdrawals.CityCd = hdCityCd.Value.ToInt(0); withdrawals.OpenBkNm = txtBkNm.Value.Trim(); withdrawals.OpenBkAddr = txtBkAddr.Value.Trim(); withdrawals.ts = DateTime.Now; withdrawals.modifyuser = this.UserID; //结算账户接口参数赋值 WWP.msghd_trdt = DateTime.Now.ToString("yyyyMMdd"); WWP.srl_ptnsrl = Common.Number_repeat("1"); withdrawals.vdef1 = WWP.srl_ptnsrl; WWP.cltacc_cltno = openAcc[0].AccNumver; WWP.cltacc_cltnm = openAcc[0].AccName; WWP.bkacc_accno = withdrawals.AccNo; WWP.bkacc_accnm = withdrawals.AccNm; WWP.bkacc_acctp = withdrawals.AccTp.ToString(); WWP.bkacc_crsmk = withdrawals.CrsMk.ToString(); WWP.bkacc_openbkcd = withdrawals.OpenBkCd; WWP.bkacc_openbknm = withdrawals.OpenBkNm; WWP.bkacc_prccd = withdrawals.PrcCd.ToString(); WWP.bkacc_citycd = withdrawals.CityCd.ToString(); WWP.bkacc_openbkaddr = withdrawals.OpenBkAddr; WWP.fcflg = "1"; string Result = IPT.trd12000(new JavaScriptSerializer().Serialize(WWP)); JsonData jData = null; try { jData = JsonMapper.ToObject(Result); } catch { throw new Exception(Result); } if (jData != null) { if (jData["msghd_rspcode"].ToString() == "000000") { withdrawals.State = 1; if (new Hi.BLL.PAY_Withdrawals().Add(withdrawals) != 0) { Response.Redirect("SettlementInfo.aspx", true); } } else { lblMsg.InnerText = "结算账户新增失败," + jData["msghd_rspmsg"].ToString() + ""; lblMsg.Visible = true; } } } catch (Exception ex) { lblMsg.InnerText = "结算账户新增失败," + ex.Message + ""; lblMsg.Visible = true; } } }
protected void Btn_Save(object sender, EventArgs e) { string OgCode = string.Empty; LPayOpen = new Hi.BLL.PAY_OpenAccount().GetList("", " isnull(dr,0)=0 and CompID=" + CompID + " and DisID=0", ""); BLL.Service.OpenAccountParame OPB = new BLL.Service.OpenAccountParame(); IPubnetwk IPT = new IPubnetwk(); IPT.Timeout = 2500; if (LPayOpen.Count > 0) { LPayOpen[0].AccName = txtAccName.Value.Trim(); LPayOpen[0].AccountName = txtAccountName.Value.Trim(); LPayOpen[0].AccountNature = ddlAccountNature.SelectedValue.ToInt(0); LPayOpen[0].DocumentType = ddlDocumentType.SelectedValue; LPayOpen[0].DocumentCode = txtDocumentCode.Value.Trim(); LPayOpen[0].OrgCode = txtOrgCode.Value.Trim(); LPayOpen[0].BusinessLicense = txtBusinessLicense.Value.Trim(); LPayOpen[0].AccAddress = txtAccAddress.Value.Trim(); LPayOpen[0].Sex = ddlSex.SelectedValue.ToInt(0); if (txtNationality.Value.Trim() != "") { LPayOpen[0].Nationality = txtNationality.Value.Trim(); } LPayOpen[0].PhoneNumbe = txtPhoneNumbe.Value.Trim(); LPayOpen[0].Phone = txtPhone.Value.Trim(); LPayOpen[0].Email = txtEmail.Value.Trim(); LPayOpen[0].Fax = txtFax.Value.Trim(); LPayOpen[0].Postcode = txtPostcode.Value.Trim(); LPayOpen[0].ts = DateTime.Now; LPayOpen[0].modifyuser = UserID; //开销户接口信息 OPB.msghd_trdt = DateTime.Now.ToString("yyyyMMdd"); OPB.srl_ptnsrl = Common.Number_repeat("1"); LPayOpen[0].vdef1 = OPB.srl_ptnsrl; OPB.cltacc_cltno = LPayOpen[0].AccNumver; OPB.cltacc_subno = ""; OPB.cltacc_cltnm = LPayOpen[0].AccName; OPB.cltacc_pwd = ""; OPB.clt_nm = LPayOpen[0].AccountName; OPB.clt_kd = LPayOpen[0].AccountNature.ToString(); OPB.clt_cdtp = LPayOpen[0].DocumentType; OPB.clt_cdno = LPayOpen[0].DocumentCode; OPB.clt_orgcd = LPayOpen[0].OrgCode; OPB.clt_bslic = LPayOpen[0].BusinessLicense; OPB.clt_gender = LPayOpen[0].Sex.ToString(); OPB.clt_nationality = "CHN"; OPB.clt_telno = LPayOpen[0].PhoneNumbe; OPB.clt_faxno = LPayOpen[0].Fax; OPB.clt_mobno = LPayOpen[0].Phone; OPB.clt_email = LPayOpen[0].Email; OPB.clt_postno = LPayOpen[0].Postcode; OPB.clt_addr = LPayOpen[0].AccAddress; if (LPayOpen[0].State != 1) { OPB.fcflg = "1"; } else { OPB.fcflg = "2"; } OPB.acctp = "1"; try { string Result = IPT.trd11000(new JavaScriptSerializer().Serialize(OPB)); JsonData jData = null; try { jData = JsonMapper.ToObject(Result); } catch { throw new Exception(Result); } if (jData != null) { if (jData["msghd_rspcode"].ToString() == "000000") { LPayOpen[0].State = 1; if (new Hi.BLL.PAY_OpenAccount().Update(LPayOpen[0])) { Response.Redirect("SpendingUserInfo.aspx", false); } } else { lblMsg.InnerText = "开销户修改失败," + jData["msghd_rspmsg"].ToString() + ""; lblMsg.Visible = true; } } } catch (Exception ex) { lblMsg.InnerText = "开销户修改失败," + ex.Message + ""; lblMsg.Visible = true; } } else { OgCode = ConfigurationManager.AppSettings["OrgCode"] + CompID.ToString(); if (Common.OenAExistsAttribute("AccNumver", OgCode.Trim())) { lblMsg.InnerText = "开销户账户号已存在,请修改。"; lblMsg.Visible = true; return; } Hi.Model.PAY_OpenAccount model = new Hi.Model.PAY_OpenAccount(); model.CompID = CompID; model.State = (int)Enums.Pay_OpenState.失败; model.AccNumver = OgCode; model.AccName = txtAccName.Value.Trim(); model.AccountName = txtAccountName.Value.Trim(); model.AccountNature = ddlAccountNature.SelectedValue.ToInt(0); model.DocumentType = ddlDocumentType.SelectedValue; model.DocumentCode = txtDocumentCode.Value.Trim(); model.OrgCode = txtOrgCode.Value.Trim(); model.BusinessLicense = txtBusinessLicense.Value.Trim(); model.AccAddress = txtAccAddress.Value.Trim(); model.Sex = ddlSex.SelectedValue.ToInt(0); if (txtNationality.Value.Trim() != "") { model.Nationality = txtNationality.Value.Trim(); } model.PhoneNumbe = txtPhoneNumbe.Value.Trim(); model.Phone = txtPhone.Value.Trim(); model.Email = txtEmail.Value.Trim(); model.Fax = txtFax.Value.Trim(); model.Postcode = txtPostcode.Value.Trim(); model.ts = DateTime.Now; model.modifyuser = UserID; //开销户接口信息 OPB.msghd_trdt = DateTime.Now.ToString("yyyyMMdd"); OPB.srl_ptnsrl = Common.Number_repeat("1"); model.vdef1 = OPB.srl_ptnsrl; OPB.cltacc_cltno = model.AccNumver; OPB.cltacc_subno = ""; OPB.cltacc_cltnm = model.AccName; OPB.cltacc_pwd = ""; OPB.clt_nm = model.AccountName; OPB.clt_kd = model.AccountNature.ToString(); OPB.clt_cdtp = model.DocumentType; OPB.clt_cdno = model.DocumentCode; OPB.clt_orgcd = model.OrgCode; OPB.clt_bslic = model.BusinessLicense; OPB.clt_gender = model.Sex.ToString(); OPB.clt_nationality = "CHN"; OPB.clt_telno = model.PhoneNumbe; OPB.clt_faxno = model.Fax; OPB.clt_mobno = model.Phone; OPB.clt_email = model.Email; OPB.clt_postno = model.Postcode; OPB.clt_addr = model.AccAddress; OPB.fcflg = "1"; OPB.acctp = "1"; try { string Result = IPT.trd11000(new JavaScriptSerializer().Serialize(OPB)); JsonData jData = null; try { jData = JsonMapper.ToObject(Result); } catch { throw new Exception(Result); } if (jData != null) { if (jData["msghd_rspcode"].ToString() == "000000") { model.State = (int)Enums.Pay_OpenState.成功; if (new Hi.BLL.PAY_OpenAccount().Add(model) > 0) { Response.Redirect("SpendingUserInfo.aspx", false); } } else { lblMsg.InnerText = "开户失败," + jData["msghd_rspmsg"].ToString() + ""; lblMsg.Visible = true; } } } catch (Exception ex) { lblMsg.InnerText = "开户失败," + ex.Message; lblMsg.Visible = true; } } }
protected void btn_save(object sender, EventArgs e) { string guid = Common.Number_repeat("1"); Hi.Model.PAY_Financing Fin = new Hi.Model.PAY_Financing(); Fin.DisID = dis.ID; Fin.CompID = dis.CompID; Fin.State = 2; List <Hi.Model.PAY_OpenAccount> LOpen = new Hi.BLL.PAY_OpenAccount().GetList("", "DisID=" + Fin.DisID + " and State=1 and dr=0", ""); if (LOpen.Count > 0) { Fin.OpenAccID = LOpen[0].ID; } else { this.lblErr.InnerHtml = "请先添加开销账户!"; return; } Fin.OrderID = 0; Fin.AclAmt = Convert.ToDecimal(txtPrice.Value); Fin.Guid = guid; Fin.Type = 2; Fin.CcyCd = "CNY"; Fin.vdef1 = txtRemark.Value; Fin.ts = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd")); Fin.modifyuser = this.UserID; List <Hi.Model.PAY_Withdrawals> Lwith = new Hi.BLL.PAY_Withdrawals().GetList("", "DisID=" + Fin.DisID + " and state=1 and isnull(dr,0)=0", ""); if (Lwith.Count == 0) { this.lblErr.InnerHtml = "请先维护结算账户!"; return; } if (Util.md5(txtPayPwd.Value.Trim()) != dis.Paypwd) { this.lblErr.InnerHtml = "支付密码错误!"; return; } int result = 0; result = new Hi.BLL.PAY_Financing().Add(Fin); if (result > 0) { String msghd_rspcode = ""; String msghd_rspmsg = ""; String Json = ""; try { IPubnetwk ipu = new IPubnetwk(); Json = ipu.trd16000("{\"msghd_trdt\":\"" + DateTime.Now.ToString("yyyyMMdd") + "\",\"srl_ptnsrl\":\"" + guid + "\",\"cltacc_cltno\":\"" + LOpen[0].AccNumver + "\",\"cltacc_cltnm\":\"" + LOpen[0].AccName + "\",\"amt_aclamt\":\"" + (int)(Convert.ToDecimal(txtPrice.Value) * 100) + "\"}"); } catch { this.lblErr.InnerHtml = "接口连接失败!"; return; } try { JsonData Params = JsonMapper.ToObject(Json); msghd_rspcode = Params["msghd_rspcode"].ToString(); msghd_rspmsg = Params["msghd_rspmsg"].ToString(); } catch { } if ("000000".Equals(msghd_rspcode)) { try { Hi.Model.PAY_Financing finaM = new Hi.BLL.PAY_Financing().GetModel(result); finaM.State = 1; finaM.ts = DateTime.Now; new Hi.BLL.PAY_Financing().Update(finaM); } catch { } Response.Redirect("FinancingDetailList.aspx"); } else { this.lblErr.InnerHtml = msghd_rspmsg; return; } } }
public void Bind() { orderModel = new Hi.BLL.DIS_Order().GetModel(KeyID); // 订单检查 if (orderModel == null) { //if (orderModel.Otype == (int)Enums.OType.推送账单) // JScript.AlertMethod(this, "无效的账单!", JScript.IconOption.错误, "function (){ location.replace('" + ("orderDzfzdList.aspx") + "'); }"); //else JScript.AlertMethod(this, "无效的订单!", JScript.IconOption.错误, "function (){ location.replace('" + ("orderPayList.aspx") + "'); }"); //this.lblPayError.InnerText = "无效的订单!"; return; } // 状态检查 if (!( ( (orderModel.Otype == (int)Enums.OType.销售订单 && (orderModel.OState == (int)Enums.OrderState.已审 || orderModel.OState == (int)Enums.OrderState.已发货 || orderModel.OState == (int)Enums.OrderState.已到货) && (orderModel.PayState == (int)Enums.PayState.未支付 || orderModel.PayState == (int)Enums.PayState.部分支付)) || (orderModel.Otype == (int)Enums.OType.推送账单 && orderModel.OState == (int)Enums.OrderState.已审 && (orderModel.PayState == (int)Enums.PayState.部分支付 || orderModel.PayState == (int)Enums.PayState.未支付)) ) && orderModel.OState != (int)Enums.OrderState.已作废)) { if (orderModel.Otype == (int)Enums.OType.推送账单) { JScript.AlertMethod(this, "账单异常,不能支付!", JScript.IconOption.错误, "function (){ location.replace('" + ("orderDzfzdList.aspx") + "'); }"); } else { JScript.AlertMethod(this, "订单异常,不能支付!", JScript.IconOption.错误, "function (){ location.replace('" + ("orderPayList.aspx") + "'); }"); } return; } // 审核状态 if (orderModel.OState < 2) { JScript.AlertMethod(this, "该订单未审核,不能支付!", JScript.IconOption.错误, "function (){ location.replace('" + ("../neworder/orderdetail.aspx?KeyID=" + Common.DesEncrypt(KeyID.ToString(), Common.EncryptKey)) + "'); }"); return; } // 支付状态检查 if (orderModel.PayState != (int)Enums.PayState.未支付 && orderModel.PayState != (int)Enums.PayState.部分支付) { Response.Redirect("Error.aspx?type=" + Common.DesEncrypt("1", Common.EncryptKey) + "&KeyID=" + Common.DesEncrypt(KeyID.ToString(), Common.EncryptKey)); return; } // 开销户 List <Hi.Model.PAY_OpenAccount> LOpen = new Hi.BLL.PAY_OpenAccount().GetList("", "DisID=" + this.DisID + " and State=1 and isnull(dr,0)=0", ""); // 提现户 List <Hi.Model.PAY_Withdrawals> Lwith = new Hi.BLL.PAY_Withdrawals().GetList("", "DisID=" + this.DisID + " and state=1 and isnull(dr,0)=0", ""); if (LOpen.Count > 0 && Lwith.Count > 0) { String msghd_rspcode = ""; String msghd_rspmsg = ""; String amt_balamt = ""; String msghd_rspcode1 = ""; String msghd_rspmsg1 = ""; String credit_nousedamt = ""; String Json = ""; String Json1 = ""; try { IPubnetwk ipu = new IPubnetwk(); Json = ipu.trd13010("{\"msghd_trdt\":\"" + DateTime.Now.ToString("yyyyMMdd") + "\",\"srl_ptnsrl\":\"" + Common.Number_repeat("") + "\",\"cltacc_cltno\":\"" + LOpen[0].AccNumver + "\",\"cltacc_cltnm\":\"" + LOpen[0].AccName + "\",\"bkacc_accno\":\"" + Lwith[0].AccNm + "\",\"bkacc_accnm\":\"" + LOpen[0].AccName + "\"}"); Json1 = ipu.trd70000("{\"msghd_trdt\":\"" + DateTime.Now.ToString("yyyyMMdd") + "\",\"srl_ptnsrl\":\"" + Common.Number_repeat("") + "\",\"cltacc_cltno\":\"" + LOpen[0].AccNumver + "\",\"cltacc_cltnm\":\"" + LOpen[0].AccName + "\"}"); } catch { } try { JsonData Params = JsonMapper.ToObject(Json); msghd_rspcode = Params["msghd_rspcode"].ToString(); msghd_rspmsg = Params["msghd_rspmsg"].ToString(); amt_balamt = Params["amt_balamt"].ToString(); this.lblBalance1.InnerHtml = (Convert.ToDecimal(amt_balamt) / 100).ToString("N2"); JsonData Params1 = JsonMapper.ToObject(Json1); msghd_rspcode1 = Params1["msghd_rspcode"].ToString(); msghd_rspmsg1 = Params1["msghd_rspmsg"].ToString(); credit_nousedamt = Params1["credit_nousedamt"].ToString(); this.lblBalance3.InnerHtml = (Convert.ToDecimal(credit_nousedamt) / 100).ToString("N2"); } catch { } } // 在线融资记录 PList = new Hi.BLL.PAY_Financing().GetList("", "DisID=" + this.DisID + " and OrderID=" + KeyID + " and State=3 and isnull(dr,0)=0", ""); if (PList.Count > 0) { this.lblBalance5.InnerHtml = PList[0].AclAmt.ToString("0.00"); } decimal payPrice = orderModel.AuditAmount + orderModel.OtherAmount - orderModel.PayedAmount; this.lblOrderNO.InnerText = orderModel.ReceiptNo.Trim().ToString(); //账单支付链接 if (orderModel.Otype == 9) // 推送账单 { this.lblOrderNO.HRef = "../OrderZDInfo.aspx?KeyID=" + Common.DesEncrypt(KeyID.ToString(), Common.EncryptKey); } else { this.lblOrderNO.HRef = "../neworder/orderdetail.aspx?KeyID=" + Common.DesEncrypt(KeyID.ToString(), Common.EncryptKey); } this.hidOrderid.Value = KeyID.ToString(); this.lblPricePay.InnerText = payPrice.ToString("0.00"); this.hidPricePay.Value = payPrice.ToString("0.00"); this.lblPriceO.InnerText = (orderModel.AuditAmount + orderModel.OtherAmount).ToString("0.00"); if (this.txtPayOrder.Value == "") { this.txtPayOrder.Value = payPrice.ToString("0.00"); } else { this.txtPayOrder.Value = Convert.ToDecimal(this.txtPayOrder.Value).ToString("0.00"); } this.hidUserName.Value = this.UserName; decimal sumPrice = new Hi.BLL.PAY_PrePayment().sums(orderModel.DisID, orderModel.CompID); this.lblSumPrice.InnerText = sumPrice.ToString("0.00"); this.hidSumPrice.Value = sumPrice.ToString("0.00"); string strWhere = " 1=1 "; if (this.DisID != 0) { strWhere += " and DisID = " + this.DisID; } strWhere += " and Start = 1 and vdef6 = 0 and isnull(dr,0)=0"; List <Hi.Model.PAY_FastPayMent> fastList = new Hi.BLL.PAY_FastPayMent().GetList("", strWhere, ""); this.rptQpay.DataSource = fastList; this.rptQpay.DataBind(); List <Hi.Model.PAY_BankInfo> BankL = new Hi.BLL.PAY_BankInfo().GetList("", " vdef1=0", ""); this.rptOtherBank.DataSource = BankL; this.rptOtherBank.DataBind(); }