Exemplo n.º 1
0
 /// <summary>
 /// 同业拆借
 /// </summary>
 /// <param name="tellerNO">柜员号</param>
 /// <param name="orgNO">机构号</param>
 /// <param name="tradeDate">交易日期</param>
 /// <param name="inputData">同业拆借的输入数据对象</param>
 /// <param name="codemsg"></param>
 /// <returns></returns>
 public static Guid PayInterBankBiz(String tellerNO, String orgNO, DateTime tradeDate, PayInterBank inputData, ref byte[] codemsg)
 {
     PayInterBankData data = new PayInterBankData();
     data.RQData.PayBank = orgNO;
     data.RQData.Teller = tellerNO;
     data.RQData.TransferFlowNo = inputData.TransferFlowNo;//CommonDataHelper.PadLeft4BizFlowNO(inputData.TransferFlowNo, '0', 18);
     data.RQData.TranDate = tradeDate.ToString("yyyyMMdd");
     data.RQData.PayAccount = inputData.PayAccount;
     data.RQData.PayAccountName = inputData.PayAccountName;
     data.RQData.OnAccountSN = inputData.OnAccountSN;
     data.RQData.RecAccount = inputData.RecAccount;
     data.RQData.RecAccountName = inputData.RecAccountName;
     data.RQData.RecAccountBanks = inputData.RecAccountBanks;
     data.RQData.PackageChannelType = inputData.PackageChannelType;
     data.RQData.CurrencyType = inputData.CurrencyType;
     data.RQData.PayAmount = inputData.PayAmount;
     data.RQData.Rate = inputData.Rate;
     data.RQData.TimeLimit = inputData.TimeLimit;
     data.RQData.BizType = inputData.BizType;
     data.RQData.Fee = inputData.Fee;
     data.RQData.Remark = inputData.Remark;
     data.RQData.AuthTeller = inputData.AuthTeller;
     data.RQData.ChannelId = inputData.ChannelId;
     return MsgTransfer.CodeMsgToBinary(data, ref codemsg);
 }
Exemplo n.º 2
0
 private String TestForInterBank(StringBuilder result, PayInterBankData respData)
 {
     if (respData == null || respData.RPData == null)
     {
         return result.ToString();
     }
     result.AppendFormat("交易结果:{0};返回码:{1};返回信息:{2};主机交易流水号:{3};支付交易序号:{4}", respData.RPData.RetCode, respData.RPData.HostReturnCode, respData.RPData.HostReturnMessage, respData.RPData.HostTranFlowNo, respData.RPData.TransSeq);
     return result.ToString();
 }
Exemplo n.º 3
0
 /// <summary>
 /// 同业拆借
 /// </summary>
 /// <param name="tellerNO">柜员号</param>
 /// <param name="orgNO">机构号</param>
 /// <param name="tradeDate">交易日期</param>
 /// <param name="inputData">同业拆借的输入数据对象</param>
 /// <param name="codemsg"></param>
 /// <returns></returns>
 public static Guid PayInterBankBiz(String tellerNO, String orgNO, DateTime tradeDate, PayInterBank inputData, ref byte[] codemsg)
 {
     PayInterBankData data = new PayInterBankData();
     data.RQData.PayBank = orgNO;
     data.RQData.Teller = tellerNO;
     data.RQData.TransferFlowNo = inputData.TransferFlowNo;//CommonDataHelper.PadLeft4BizFlowNO(inputData.TransferFlowNo, '0', 18);
     data.RQData.TranDate = tradeDate.ToString("yyyyMMdd");
     data.RQData.PayAccount = inputData.PayAccount;
     data.RQData.PayAccountName = inputData.PayAccountName;
     data.RQData.OnAccountSN = inputData.OnAccountSN;
     data.RQData.RecAccount = inputData.RecAccount;
     data.RQData.RecAccountName = inputData.RecAccountName;
     data.RQData.RecAccountBanks = inputData.RecAccountBanks;
     data.RQData.PackageChannelType = inputData.PackageChannelType;
     data.RQData.CurrencyType = inputData.CurrencyType;
     data.RQData.PayAmount = inputData.PayAmount;
     data.RQData.Rate = inputData.Rate;
     data.RQData.TimeLimit = inputData.TimeLimit;
     data.RQData.BizType = inputData.BizType;
     data.RQData.Fee = inputData.Fee;
     data.RQData.Remark = inputData.Remark;
     data.RQData.AuthTeller = inputData.AuthTeller;
     data.RQData.ChannelId = inputData.ChannelId;
     try
     {
         return PreProcessPaymentMsg(data, ref codemsg);
     }
     catch (Exception ex)
     {
         throw new Exception(MESSAGE_ENCODE_EXCEPTION, ex);
     }
 }