Ejemplo n.º 1
0
        public static string CreatePAYPERCOL0010(ObjectPaypercol0010 objPaypercol0010)
        {
            StringBuilder sbCreatePAYPERCOL0010 = new StringBuilder();

            sbCreatePAYPERCOL0010.Append("<?xml version='1.0' encoding='GB2312'?><CMS><eb><pub><TransCode>" + objPaypercol0010.TransCode + "</TransCode><CIS>");
            sbCreatePAYPERCOL0010.Append(objPaypercol0010.CIS + "</CIS><BankCode>102</BankCode><ID>" + objPaypercol0010.ID + "</ID><TranDate>");
            sbCreatePAYPERCOL0010.Append(objPaypercol0010.TranDate + "</TranDate><TranTime>" + objPaypercol0010.TranTime + "</TranTime><fSeqno>" + objPaypercol0010.fSeqno + "</fSeqno></pub><in>");
            // <OnlBatF>表示联机标志,只能选择1;  <SettleMode>  入账方式  2表示并笔记账,0表示逐笔记账
            sbCreatePAYPERCOL0010.Append("<OnlBatF>" + objPaypercol0010.OnlBatF + "</OnlBatF><BusType>" + objPaypercol0010.BusType + "</BusType><TotalNum>" + objPaypercol0010.TotalNum + "</TotalNum><TotalAmt>" + objPaypercol0010.TotalAmt + "</TotalAmt>");
            sbCreatePAYPERCOL0010.Append("<SignTime>" + objPaypercol0010.SignTime + "</SignTime><TotalSummary>" + objPaypercol0010.TotalSummary + "</TotalSummary>");
            sbCreatePAYPERCOL0010.Append("<THBaseAccFlag>" + objPaypercol0010.THBaseAccFlag + "</THBaseAccFlag><RegSerialNO>" + objPaypercol0010.RegSerialNO + "</RegSerialNO><PackageName>" + objPaypercol0010.PackageName + "</PackageName>");

            string srcRds = CreatePaypercolRdArea(objPaypercol0010);

            sbCreatePAYPERCOL0010.Append(srcRds + "</in></eb></CMS>");
            return(sbCreatePAYPERCOL0010.ToString());
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 产生PAYPERCOL 中 RD 区域的报文体
        /// </summary>
        /// <param name="objPaypercol0010"></param>
        /// <returns></returns>
        private static string CreatePaypercolRdArea(ObjectPaypercol0010 objPaypercol0010)
        {
            StringBuilder sbRdArea = new StringBuilder();

            for (int i = 0; i < Int32.Parse(objPaypercol0010.TotalNum); i++)
            {
                sbRdArea.Append("<rd><iSeqno>" + (i + 1).ToString() + "</iSeqno><ReimburseNo></ReimburseNo><ReimburseNum></ReimburseNum><StartDate></StartDate><StartTime></StartTime>");
                // 1:加急 2:普通(工行异地人民币转账不再区分普通\加急,统一按加急处理) 3:跨行快汇(当涉及账户管家账户转账时,记账方式不支持普通,工行异地转账不再区分普通\加急,统一按加急处理)
                sbRdArea.Append("<PayType>" + objPaypercol0010.PayType + "</PayType><PayAccNo>" + objPaypercol0010.PayAccNo + "</PayAccNo><PayAccNameCN>" + objPaypercol0010.PayAccNameCN + "</PayAccNameCN><PayAccNameEN></PayAccNameEN>");
                sbRdArea.Append("<RecAccNo>" + objPaypercol0010.RecAccNo + "</RecAccNo><RecAccNameCN>" + objPaypercol0010.RecAccNameCN + "</RecAccNameCN><RecAccNameEN></RecAccNameEN>");
                //  1:系统内  2:系统外            1:同城  2:异地        跨行必输  0:对公账户  1:个人账户
                sbRdArea.Append("<SysIOFlg>" + objPaypercol0010.SysIOFlg + "</SysIOFlg><IsSameCity>" + objPaypercol0010.IsSameCity + "</IsSameCity>");
                sbRdArea.Append("<RecICBCCode></RecICBCCode><RecCityName>长沙</RecCityName><RecBankNo></RecBankNo>");
                sbRdArea.Append("<RecBankName>中国工商银行长沙某测试支行</RecBankName><CurrType>" + objPaypercol0010.CurrType + "</CurrType><PayAmt>1</PayAmt>");
                sbRdArea.Append("<UseCode></UseCode><UseCN>" + objPaypercol0010.UseCN + "</UseCN><EnSummary></EnSummary>");
                sbRdArea.Append("<PostScript>" + objPaypercol0010.PostScript + "</PostScript><Summary>" + objPaypercol0010.Summary + "</Summary><Ref>" + objPaypercol0010.Ref + "</Ref><Oref>" + objPaypercol0010.Oref + "</Oref>");
                sbRdArea.Append("<ERPSqn></ERPSqn><BusCode>001</BusCode><ERPcheckno></ERPcheckno>");
                sbRdArea.Append("<CrvouhType></CrvouhType><CrvouhName></CrvouhName><CrvouhNo></CrvouhNo>");
                //sbRdArea.Append("<BankType>102</BankType><FileNames></FileNames><Indexs></Indexs><PaySubNo></PaySubNo><RecSubNo></RecSubNo>");
                sbRdArea.Append("</rd>");
            }
            return(sbRdArea.ToString());
        }