예제 #1
0
        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);
            }
        }
예제 #2
0
        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";
            }
        }
예제 #3
0
        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("签约失败");
            }
        }