日期:2014-05-17 浏览次数:20386 次
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BuyEntryContractQuery.aspx.cs" Inherits="BuyEntryContractQuery" %>
<%@ Import Namespace="com.hitrust.trustpay.client.market" %>
<%@ Import Namespace="com.hitrust.trustpay.client" %>
<%@ Import Namespace="com.hitrust.trustpay.envelop" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
//1、取得客户无挂单成交信息
String tRequestID = Request["RequestID"];
String tContractID = Request["ContractID"];
String tBuyerEntryNo = Request["BuyerEntryNo"];
String tCustNo = Request["CustNo"];
String tcontent = Request["content"];
String tDealDate = Request["DealDate"];
Decimal tTradeAmount = Decimal.Parse(Request["TradeAmount"]);
Decimal tBuyerFee = Decimal.Parse(Request["BuyerFee"]);
Decimal tCustFee = Decimal.Parse(Request["CustFee"]);
Decimal tBuyerAmount = Decimal.Parse(Request["BuyerAmount"]);
//2、生成无挂单请求对象
BuyEntryContractRequest tRequest = new BuyEntryContractRequest();
tRequest.RequestID = tRequestID; //设置请求流水号(必要信息)
tRequest.ContractID = tContractID; //设置合同号(必要信息)
tRequest.TradeAmount = tTradeAmount; //设置合同金额(必要信息)
tRequest.DealDate = tDealDate; //设置合同到期日(必要信息)
tRequest.BuyerFee = tBuyerFee; //设置买方手续费(必要信息)
tRequest.SalerFee = tCustFee; //设置卖方手续费(必要信息)
tRequest.BuyerAmount = tBuyerAmount; //设置扣买方预付货款(必要信息)
tRequest.SalerCustomer = tCustNo; //设置扣买方手续费(必要信息)
tRequest.Content = tcontent; //设置信息段
tRequest.BuyerEntryNo = tBuyerEntryNo; //设置买方挂单号(必要信息)
//3、传送挂单成交请求并取得结果
TrxResponse tResponse = tRequest.postRequest();
String sReturnMsg = tResponse.ErrorMessage;
String sReturnCode = tResponse.ReturnCode;
%>
<html xmlns="http://www.w3.org/1999/xhtml" >
<HEAD>
<TITLE>中国农业银行</TITLE>
</HEAD>
<BODY BGCOLOR='#FFFFFF' TEXT='#000000' LINK='#0000FF' VLINK='#0000FF' ALINK='#FF0000'>
<table>
<tr>
<td><b>代理挂单成交</b></td>
</tr>
<%