protected void btnAliPaySubmit_Click(object sender, EventArgs e) { string alipayAccountNo = txtAliPayNo.Text.Trim(); if (!validationAlipay(alipayAccountNo)) { return; } ProtocolDTO protocolDTO = new ProtocolDTO() { ChannelId = 1, AccountNo = alipayAccountNo }; string alipayProtocolUrl; try { alipayProtocolUrl = AccountFillService.GetProtocolUrl(protocolDTO); setWithholding(alipayAccountNo, WithholdingProtocolStatus.Submitted); } catch (Exception ex) { alipayProtocolUrl = string.Empty; ShowExceptionMessage(ex, "设置"); } if (!string.IsNullOrEmpty(alipayProtocolUrl)) { Response.Redirect(alipayProtocolUrl, true); } }
private void ModifyAlipayStatus(WithholdingView alipayWithholding) { ProtocolDTO protocolDTO = new ProtocolDTO() { ChannelId = 1, AccountNo = alipayWithholding.AccountNo }; bool isProtocol = AccountFillService.QueryProtocolStaus(protocolDTO); if (isProtocol) { setWithholding(alipayWithholding.AccountNo, WithholdingProtocolStatus.Success); hfdIsProtocol.Value = "false"; } }
protected void btnGetWithholdingStatus_Click(object sender, EventArgs e) { string alipayAccountNo = txtAliPayNo.Text.Trim(); if (!validationAlipay(alipayAccountNo)) { return; } ProtocolDTO protocolDTO = new ProtocolDTO() { ChannelId = 1, AccountNo = alipayAccountNo }; if (AccountFillService.QueryProtocolStaus(protocolDTO)) { setWithholding(alipayAccountNo, WithholdingProtocolStatus.Success); ShowMessage("签约成功"); } else { ShowMessage("签约失败"); } }