1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585 |
-
-
- // 模拟 8583 报文相关的静态方法集合
- export default class Feild8583 {
- /**
- * 将字符串拆成 byte[] 后,按字节截取,按照域的要求左对齐,空格补全
- * @param str 字符串
- * @param leng 字节长度
- * @returns 处理后的字符串
- */
- public static GetFdStrBytes(str: string, leng: number): string {
- // 格式为 leng 个 Unicode 字符,左对齐的字符串
- const strFd = str.padEnd(leng);
- // 转换为字节数组
- const strBytes = defaultEncoding.getBytes(strFd);
- // 截取 leng 个字节
- return defaultEncoding.getString(strBytes, 0, leng);
- }
-
- /**
- * 将字符串拆成 byte[] 后,按字节截取
- * 返回长度为 str.Length,count 中的小者
- * @param str 字符串
- * @param index 字节起始位置
- * @param count 字节长度
- * @returns 处理后的字符串
- */
- public static GetStrBytes(str: string, index: number, count: number): string {
- // 转换为字节数组
- const strBytes = defaultEncoding.getBytes(str);
- // 获取较小的长度
- const leng = Math.min(count, strBytes.length);
- // 截取 leng 个字节
- return defaultEncoding.getString(strBytes, index, leng);
- }
-
- /**
- * 将 Message.Fd101_ 赋值给 FD101 对象
- * @param target IPage 实例
- * @param msg Message 实例
- * @returns FD101 对象
- */
- public static GetFd101(target: IPage, msg: Message): FD101 {
- const fd101 = new FD101();
- fd101.ACTNO24 = msg.Fd101_1;
- fd101.ACTSEQ = msg.Fd101_2;
- fd101.RTXAMT = msg.Fd101_3;
- fd101.VOCTYPE = msg.Fd101_4;
- fd101.VOCNUM = msg.Fd101_5;
- fd101.DESC10 = msg.Fd101_6;
- fd101.NBFLAG = msg.Fd101_7;
- fd101.CUSTNAME = msg.Fd101_8;
- fd101.AVBAL = msg.Fd101_9;
- fd101.CURCD = msg.Fd101_A;
- fd101.CASHFLAG = msg.Fd101_B;
- fd101.DSCPT = msg.Fd101_C;
- fd101.ACTTYPE = msg.Fd101_D;
- fd101.ACTSEQ_2 = msg.Fd101_E;
- fd101.PRODNAME = msg.Fd101_F;
- fd101.MDMTYPE = msg.Fd101_G;
- return fd101;
- }
-
- /**
- * 为 Message.Fd101_ 赋值
- * @param target IPage 实例
- * @param msg Message 实例
- * @param fd101 FD101 对象
- */
- public static SetFD101(target: IPage, msg: Message, fd101: FD101): void {
- msg.Fd101_1 = fd101.ACTNO24;
- msg.Fd101_2 = fd101.ACTSEQ;
- msg.Fd101_3 = fd101.RTXAMT;
- msg.Fd101_4 = fd101.VOCTYPE;
- msg.Fd101_5 = fd101.VOCNUM;
- msg.Fd101_6 = fd101.DESC10;
- msg.Fd101_7 = fd101.NBFLAG;
- msg.Fd101_8 = fd101.CUSTNAME;
- msg.Fd101_9 = fd101.AVBAL;
- msg.Fd101_A = fd101.CURCD;
- msg.Fd101_B = fd101.CASHFLAG;
- msg.Fd101_C = fd101.DSCPT;
- msg.Fd101_D = fd101.ACTTYPE;
- msg.Fd101_E = fd101.ACTSEQ_2;
- msg.Fd101_F = fd101.PRODNAME;
- msg.Fd101_G = fd101.MDMTYPE;
- }
-
- /**
- * 为 Message.Fd102_ 赋值
- * @param target IPage 实例
- * @param msg Message 实例
- * @param fd102 FD102 对象
- */
- public static SetFD102(target: IPage, msg: Message, fd102: FD102): void {
- msg.Fd102_1 = fd102.ACTNO24;
- msg.Fd102_2 = fd102.ACTSEQ;
- msg.Fd102_3 = fd102.VOCTYPE;
- msg.Fd102_4 = fd102.VOCNUM;
- msg.Fd102_5 = fd102.FETCHFLAG;
- msg.Fd102_6 = fd102.PWDFLAG;
- msg.Fd102_7 = fd102.QUE_PWD;
- msg.Fd102_8 = fd102.PAY_PWD;
- msg.Fd102_9 = fd102.CERTFLAG;
- msg.Fd102_A = fd102.ID_NO;
- msg.Fd102_B = fd102.STAMPFLAG;
- msg.Fd102_C = fd102.PWDFLAG2;
- msg.Fd102_D = fd102.PWD16;
- msg.Fd102_E = fd102.PRINTDATE;
- msg.Fd102_F = fd102.TXAMT15;
- msg.Fd102_G = fd102.CERTTYPE;
- msg.Fd102_H = fd102.CUSTNAME;
- msg.Fd102_I = fd102.AVBAL;
- msg.Fd102_J = fd102.CURCD;
- msg.Fd102_K = fd102.CT_IND;
- msg.Fd102_L = fd102.DSCPT;
- msg.Fd102_M = fd102.ACTTYPE;
- msg.Fd102_N = fd102.ACTSEQ_2;
- msg.Fd102_O = fd102.ACCOUNTFLAG;
- msg.Fd102_P = fd102.INTEREST1;
- msg.Fd102_Q = fd102.INTEREST2;
- msg.Fd102_R = fd102.INTEREST3;
- msg.Fd102_S = fd102.PAYAMOUNT;
- msg.Fd102_T = fd102.NEWVOCNUM;
- msg.Fd102_U = fd102.SPEFLAG;
- msg.Fd102_V = fd102.PRODNAME;
- msg.Fd102_W = fd102.ACTNO_24;
- msg.Fd102_X = fd102.EDUCREDIT;
- msg.Fd102_Y = fd102.DESC10;
- msg.Fd102_Z = fd102.MDMCODE;
- }
-
- /**
- * 将 Message.Fd102_ 赋值给 FD102 对象
- * @param target IPage 实例
- * @param msg Message 实例
- * @returns FD102 对象
- */
- public static GetFD102(target: IPage, msg: Message): FD102 {
- const fd102 = new FD102();
- fd102.ACTNO24 = msg.Fd102_1;
- fd102.ACTSEQ = msg.Fd102_2;
- fd102.VOCTYPE = msg.Fd102_3;
- fd102.VOCNUM = msg.Fd102_4;
- fd102.FETCHFLAG = msg.Fd102_5;
- fd102.PWDFLAG = msg.Fd102_6;
- fd102.QUE_PWD = msg.Fd102_7;
- fd102.PAY_PWD = msg.Fd102_8;
- fd102.CERTFLAG = msg.Fd102_9;
- fd102.ID_NO = msg.Fd102_A;
- fd102.STAMPFLAG = msg.Fd102_B;
- fd102.PWDFLAG2 = msg.Fd102_C;
- fd102.PWD16 = msg.Fd102_D;
- fd102.PRINTDATE = msg.Fd102_E;
- fd102.TXAMT15 = msg.Fd102_F;
- fd102.CERTTYPE = msg.Fd102_G;
- fd102.CUSTNAME = msg.Fd102_H;
- fd102.AVBAL = msg.Fd102_I;
- fd102.CURCD = msg.Fd102_J;
- fd102.CT_IND = msg.Fd102_K;
- fd102.DSCPT = msg.Fd102_L;
- fd102.ACTTYPE = msg.Fd102_M;
- fd102.ACTSEQ_2 = msg.Fd102_N;
- fd102.ACCOUNTFLAG = msg.Fd102_O;
- fd102.INTEREST1 = msg.Fd102_P;
- fd102.INTEREST2 = msg.Fd102_Q;
- fd102.INTEREST3 = msg.Fd102_R;
- fd102.PAYAMOUNT = msg.Fd102_S;
- fd102.NEWVOCNUM = msg.Fd102_T;
- fd102.SPEFLAG = msg.Fd102_U;
- fd102.PRODNAME = msg.Fd102_V;
- fd102.ACTNO_24 = msg.Fd102_W;
- fd102.EDUCREDIT = msg.Fd102_X;
- fd102.DESC10 = msg.Fd102_Y;
- fd102.MDMCODE = msg.Fd102_Z;
-
- return fd102;
- }
-
- /**
- * 获取 FD102 域字符串
- * (未公开 Message 前的笨方法 add slzh)
- * @param target IPage 实例
- * @param msg Message 实例
- * @returns FD102 域字符串
- */
- public static GetFd102(target: IPage, msg: Message): string {
- /* string.Substring 截取的是 四个字节 unicode ,Fd102_H 截取出来的是 63 个字节 */
- // Encoding.Default.GetString(Encoding.Default.GetBytes(strLineConten), 0, 20);
-
- return (
- this.GetFdStrBytes(msg.Fd102_1, 24) +
- this.GetFdStrBytes(msg.Fd102_2, 6) +
- this.GetFdStrBytes(msg.Fd102_3, 3) +
- this.GetFdStrBytes(msg.Fd102_4, 16) +
- this.GetFdStrBytes(msg.Fd102_5, 1) +
- this.GetFdStrBytes(msg.Fd102_6, 1) +
- this.GetFdStrBytes(msg.Fd102_7, 16) +
- this.GetFdStrBytes(msg.Fd102_8, 16) +
- this.GetFdStrBytes(msg.Fd102_9, 1) +
- this.GetFdStrBytes(msg.Fd102_A, 20) +
- this.GetFdStrBytes(msg.Fd102_B, 1) +
- this.GetFdStrBytes(msg.Fd102_C, 1) +
- this.GetFdStrBytes(msg.Fd102_D, 16) +
- this.GetFdStrBytes(msg.Fd102_E, 8) +
- this.GetFdStrBytes((msg.Fd102_F.ToDecimal() * 100).toString(), 16) +
- this.GetFdStrBytes(msg.Fd102_G, 1) +
- // + this.GetFdStrBytes(msg.Fd102_H, 60)
- this.GetFdStrBytes(msg.Fd102_H, 120) +
- this.GetFdStrBytes((msg.Fd102_I.ToDecimal() * 100).toString(), 16) +
- this.GetFdStrBytes(msg.Fd102_J, 2) +
- this.GetFdStrBytes(msg.Fd102_K, 1) +
- this.GetFdStrBytes(msg.Fd102_L, 3) +
- this.GetFdStrBytes(msg.Fd102_M, 1) +
- this.GetFdStrBytes(msg.Fd102_N, 6) +
- this.GetFdStrBytes(msg.Fd102_O, 1) +
- this.GetFdStrBytes((msg.Fd102_P.ToDecimal() * 100).toString(), 16) +
- this.GetFdStrBytes((msg.Fd102_Q.ToDecimal() * 100).toString(), 16) +
- this.GetFdStrBytes((msg.Fd102_R.ToDecimal() * 100).toString(), 16) +
- this.GetFdStrBytes((msg.Fd102_S.ToDecimal() * 100).toString(), 16) +
- this.GetFdStrBytes(msg.Fd102_T, 16) +
- this.GetFdStrBytes(msg.Fd102_U, 20) +
- this.GetFdStrBytes(msg.Fd102_V, 30) +
- this.GetFdStrBytes(msg.Fd102_W, 24) +
- this.GetFdStrBytes(msg.Fd102_X, 1) +
- this.GetFdStrBytes(msg.Fd102_Y, 20)
- // + this.GetFdStrBytes(msg.Fd102_Z, 4)
- );
- }
-
- /**
- * 组 123 域 大额
- * @param target IPage 实例
- * @param fd123 hvFd123 对象
- * @returns 123 域字符串
- */
- public static GetHvFd123(target: IPage, fd123: hvFd123): string {
- return (
- this.GetFdStrBytes(fd123.CMTNO, 3) +
- this.GetFdStrBytes(fd123.O_CMTNO, 3) +
- this.GetFdStrBytes(fd123.PAY_QS_NO, 12) +
- this.GetFdStrBytes(fd123.OR_BR_NO, 12) +
- this.GetFdStrBytes(fd123.SENDCO, 4) +
- this.GetFdStrBytes(fd123.PAY_OPN_BR_NO, 12) +
- this.GetFdStrBytes(fd123.PAY_AC_NO, 32) +
- this.GetFdStrBytes(fd123.PAY_NAME, 60) +
- this.GetFdStrBytes(fd123.PAY_ADDR, 60) +
- this.GetFdStrBytes(fd123.CASH_QS_NO, 12) +
- this.GetFdStrBytes(fd123.AC_BR_NO, 12) +
- this.GetFdStrBytes(fd123.RECECO, 4) +
- this.GetFdStrBytes(fd123.CASH_OPN_BR_NO, 12) +
- this.GetFdStrBytes(fd123.CASH_AC_NO, 32) +
- this.GetFdStrBytes(fd123.CASH_NAME, 60) +
- this.GetFdStrBytes(fd123.CASH_ADDR, 60) +
- this.GetFdStrBytes(fd123.YW_TYPE, 2) +
- this.GetFdStrBytes(fd123.ORDERNO, 8) +
- this.GetFdStrBytes(fd123.CONTENT, 60) +
- this.GetFdStrBytes(((fd123.RATE.ToDecimal() * 100000)).toString(), 7) +
- this.GetFdStrBytes(fd123.RATEDATE, 5) +
- this.GetFdStrBytes(fd123.OORDERNO, 8) +
- this.GetFdStrBytes(fd123.PROCODE, 8) +
- this.GetFdStrBytes(fd123.CR_DATE, 8) +
- this.GetFdStrBytes(fd123.CR_BR_NO, 12) +
- this.GetFdStrBytes(fd123.CR_TX_NUM, 8) +
- this.GetFdStrBytes(fd123.QR_BR_NO, 12) +
- this.GetFdStrBytes(fd123.QR_TX_NUM, 8) +
- this.GetFdStrBytes(fd123.TX_TYPE, 1) +
- this.GetFdStrBytes(fd123.NOTPAY_CONTENT, 255) +
- this.GetFdStrBytes(fd123.NOTPAY_ORDERNO, 3) +
- this.GetFdStrBytes(fd123.O_NOTPAY_ORDERNO, 3) +
- this.GetFdStrBytes(fd123.RESP1, 1) +
- this.GetFdStrBytes(fd123.OPERLEVEL, 1) +
- this.GetFdStrBytes(fd123.PROC_STS, 1) +
- this.GetFdStrBytes(fd123.OPCD, 2) +
- this.GetFdStrBytes(fd123.LW_IND, 1) +
- this.GetFdStrBytes(fd123.HP_ADD_PWD, 1) +
- this.GetFdStrBytes((fd123.PACKID || '').padStart(8, '0'), 8) +
- this.GetFdStrBytes((fd123.O_PACKID || '').padStart(8, '0'), 8) +
- this.GetFdStrBytes((fd123.PACK_DATE || '').padStart(8, '0'), 8) +
- this.GetFdStrBytes((fd123.O_PACK_DATE || '').padStart(8, '0'), 8) +
- this.GetFdStrBytes((fd123.TXNUM || '').padStart(5, '0'), 5) +
- this.GetFdStrBytes((fd123.O_TXNUM || '').padStart(5, '0'), 5) +
- this.GetFdStrBytes(fd123.LV_YW_IND, 12) +
- this.GetFdStrBytes((fd123.RESP_DATE || '').padStart(8, '0'), 8) +
- this.GetFdStrBytes((fd123.RCP_STS || '').padStart(2, '0'), 2) +
- this.GetFdStrBytes(fd123.RESP2, 8) +
- this.GetFdStrBytes((fd123.RETCODE || '').padStart(2, '0'), 2) +
- this.GetFdStrBytes((fd123.YW_DTL_ID || '').padStart(8, '0'), 8) +
- this.GetFdStrBytes((fd123.ACC_IND || '').padStart(1, '0'), 1) +
- this.GetFdStrBytes((fd123.REQ_TYPE || '').padStart(1, '0'), 1) +
- this.GetFdStrBytes(((fd123.DF_FREEAMT.ToDecimal() * 100)).toString(), 16) +
- this.GetFdStrBytes(fd123.PROTNO, 60) +
- this.GetFdStrBytes((fd123.PO_NO || '').padStart(8, '0'), 8) +
- this.GetFdStrBytes((fd123.PO_TYPE || '').padStart(1, '0'), 1) +
- this.GetFdStrBytes((fd123.OTYPE || '').padStart(1, '0'), 1) +
- this.GetFdStrBytes(fd123.CR_TX_DATE, 8) +
- this.GetFdStrBytes(fd123.CR_TX_TLNO, 6) +
- this.GetFdStrBytes(fd123.CR_TX_TRCE, 8)
- );
- }
-
- /**
- * 拆 123 域 大额
- * @param target IPage 实例
- * @param FD123 123 域字符串
- * @returns hvFd123 对象
- */
- public static SetHvFd123(target: IPage, FD123: string): hvFd123 {
- const fd123_tmp = new hvFd123();
- FD123 = this.GetFdStrBytes(FD123, 999); // 补齐 999 位
- fd123_tmp.CMTNO = this.GetStrBytes(FD123, 0, 3);
- fd123_tmp.O_CMTNO = this.GetStrBytes(FD123, 3, 3);
- fd123_tmp.PAY_QS_NO = this.GetStrBytes(FD123, 6, 12);
- fd123_tmp.OR_BR_NO = this.GetStrBytes(FD123, 18, 12);
- fd123_tmp.SENDCO = this.GetStrBytes(FD123, 30, 4);
- fd123_tmp.PAY_OPN_BR_NO = this.GetStrBytes(FD123, 34, 12);
- fd123_tmp.PAY_AC_NO = this.GetStrBytes(FD123, 46, 32);
- fd123_tmp.PAY_NAME = this.GetStrBytes(FD123, 78, 60);
- fd123_tmp.PAY_ADDR = this.GetStrBytes(FD123, 138, 60);
- fd123_tmp.CASH_QS_NO = this.GetStrBytes(FD123, 198, 12);
- fd123_tmp.AC_BR_NO = this.GetStrBytes(FD123, 210, 12);
- fd123_tmp.RECECO = this.GetStrBytes(FD123, 222, 4);
- fd123_tmp.CASH_OPN_BR_NO = this.GetStrBytes(FD123, 226, 12);
- fd123_tmp.CASH_AC_NO = this.GetStrBytes(FD123, 238, 32);
- fd123_tmp.CASH_NAME = this.GetStrBytes(FD123, 270, 60);
- fd123_tmp.CASH_ADDR = this.GetStrBytes(FD123, 330, 60);
- fd123_tmp.YW_TYPE = this.GetStrBytes(FD123, 390, 2);
- fd123_tmp.ORDERNO = this.GetStrBytes(FD123, 392, 8);
- fd123_tmp.CONTENT = this.GetStrBytes(FD123, 400, 60);
- fd123_tmp.RATE = (this.GetStrBytes(FD123, 460, 7).ToDecimal() * 0.00001).toString();
- fd123_tmp.RATEDATE = this.GetStrBytes(FD123, 467, 5);
- fd123_tmp.OORDERNO = this.GetStrBytes(FD123, 472, 8);
- fd123_tmp.PROCODE = this.GetStrBytes(FD123, 480, 8);
- fd123_tmp.CR_DATE = this.GetStrBytes(FD123, 488, 8);
- fd123_tmp.CR_BR_NO = this.GetStrBytes(FD123, 496, 12);
- fd123_tmp.CR_TX_NUM = this.GetStrBytes(FD123, 508, 8);
- fd123_tmp.QR_BR_NO = this.GetStrBytes(FD123, 516, 12);
- fd123_tmp.QR_TX_NUM = this.GetStrBytes(FD123, 528, 8);
- fd123_tmp.TX_TYPE = this.GetStrBytes(FD123, 536, 1);
- fd123_tmp.NOTPAY_CONTENT = this.GetStrBytes(FD123, 537, 255);
- fd123_tmp.NOTPAY_ORDERNO = this.GetStrBytes(FD123, 792, 3);
- fd123_tmp.O_NOTPAY_ORDERNO = this.GetStrBytes(FD123, 795, 3);
- fd123_tmp.RESP1 = this.GetStrBytes(FD123, 798, 1);
- fd123_tmp.OPERLEVEL = this.GetStrBytes(FD123, 799, 1);
- fd123_tmp.PROC_STS = this.GetStrBytes(FD123, 800, 1);
- fd123_tmp.OPCD = this.GetStrBytes(FD123, 801, 2);
- fd123_tmp.LW_IND = this.GetStrBytes(FD123, 803, 1);
- fd123_tmp.HP_ADD_PWD = this.GetStrBytes(FD123, 804, 1);
- fd123_tmp.PACKID = this.GetStrBytes(FD123, 805, 8);
- fd123_tmp.O_PACKID = this.GetStrBytes(FD123, 813, 8);
- fd123_tmp.PACK_DATE = this.GetStrBytes(FD123, 821, 8);
- fd123_tmp.O_PACK_DATE = this.GetStrBytes(FD123, 829, 8);
- fd123_tmp.TXNUM = this.GetStrBytes(FD123, 837, 5);
- fd123_tmp.O_TXNUM = this.GetStrBytes(FD123, 842, 5);
- fd123_tmp.LV_YW_IND = this.GetStrBytes(FD123, 847, 12);
- fd123_tmp.RESP_DATE = this.GetStrBytes(FD123, 859, 8);
- fd123_tmp.RCP_STS = this.GetStrBytes(FD123, 867, 2);
- fd123_tmp.RESP2 = this.GetStrBytes(FD123, 869, 8);
- fd123_tmp.RETCODE = this.GetStrBytes(FD123, 877, 2);
- fd123_tmp.YW_DTL_ID = this.GetStrBytes(FD123, 879, 8);
- fd123_tmp.ACC_IND = this.GetStrBytes(FD123, 887, 1);
- fd123_tmp.REQ_TYPE = this.GetStrBytes(FD123, 888, 1);
- fd123_tmp.DF_FREEAMT = (this.GetStrBytes(FD123, 889, 16).ToDecimal() * 0.01).toString();
- fd123_tmp.PROTNO = this.GetStrBytes(FD123, 905, 60);
- fd123_tmp.PO_NO = this.GetStrBytes(FD123, 965, 8);
- fd123_tmp.PO_TYPE = this.GetStrBytes(FD123, 973, 1);
- fd123_tmp.OTYPE = this.GetStrBytes(FD123, 974, 1);
- fd123_tmp.CR_TX_DATE = this.GetStrBytes(FD123, 975, 8);
- fd123_tmp.CR_TX_TLNO = this.GetStrBytes(FD123, 983, 6);
- fd123_tmp.CR_TX_TRCE = this.GetStrBytes(FD123, 989, 8);
-
- return fd123_tmp;
- }
-
- /**
- * 组 123 域 小额
- * @param target IPage 实例
- * @param fd123 lvFd123 对象
- * @returns 123 域字符串
- */
- public static GetLvFd123(target: IPage, fd123: lvFd123): string {
- return (
- this.GetFdStrBytes(fd123.CRDB, 1) +
- this.GetFdStrBytes((fd123.OPCD || '').padStart(2, '0'), 2) +
- this.GetFdStrBytes((fd123.PKGNO || '').padStart(3, '0'), 3) +
- this.GetFdStrBytes((fd123.ORDERNO || '').padStart(8, '0'), 8) +
- this.GetFdStrBytes(fd123.TXNUM, 5) +
- this.GetFdStrBytes(fd123.OR_BR_NO, 12) +
- this.GetFdStrBytes(fd123.AC_BR_NO, 12) +
- this.GetFdStrBytes(((fd123.TX_AMT.ToDecimal() * 100)).toString(), 15) +
- this.GetFdStrBytes(fd123.PAY_OPN_BR_NO, 12) +
- this.GetFdStrBytes(fd123.PAY_QS_NO, 12) +
- this.GetFdStrBytes(fd123.PAY_AC_NO, 32) +
- this.GetFdStrBytes(fd123.PAY_NAME, 60) +
- this.GetFdStrBytes(fd123.PAY_ADDR, 60) +
- this.GetFdStrBytes(fd123.PWD, 8) +
- this.GetFdStrBytes(fd123.CASH_QS_NO, 12) +
- this.GetFdStrBytes(fd123.CASH_OPN_BR_NO, 12) +
- this.GetFdStrBytes(fd123.CASH_AC_NO, 32) +
- this.GetFdStrBytes(fd123.CASH_NAME, 60) +
- this.GetFdStrBytes(fd123.CASH_ADDR, 60) +
- this.GetFdStrBytes(fd123.YW_TYPE, 12) +
- this.GetFdStrBytes(fd123.BRF, 60) +
- this.GetFdStrBytes(fd123.WT_DATE, 8) +
- this.GetFdStrBytes(fd123.OPERLEVEL, 1) +
- this.GetFdStrBytes(fd123.AUTH_TEL, 6) +
- this.GetFdStrBytes(fd123.AUTH_PWD, 8) +
- this.GetFdStrBytes(fd123.NOTE_TYPE, 2) +
- this.GetFdStrBytes(fd123.NOTE_NO, 12) +
- this.GetFdStrBytes(fd123.PACK_DATE, 8) +
- this.GetFdStrBytes(fd123.PACK_ID, 8) +
- this.GetFdStrBytes(fd123.CHRG_IND, 1) +
- this.GetFdStrBytes(((fd123.CHRG_AMT.ToDecimal() * 100)).toString(), 15) +
- this.GetFdStrBytes(fd123.RESP_DAY, 8) +
- this.GetFdStrBytes(fd123.PO_TYPE, 2) +
- this.GetFdStrBytes(fd123.PO_DATE, 8) +
- this.GetFdStrBytes(fd123.PO_NUM, 8) +
- this.GetFdStrBytes(((fd123.PC_TX_AMT.ToDecimal() * 100)).toString(), 15) +
- this.GetFdStrBytes(((fd123.JF_TX_AMT.ToDecimal() * 100)).toString(), 15) +
- this.GetFdStrBytes(fd123.O_WT_DATE, 8) +
- this.GetFdStrBytes(fd123.O_TXNUM, 5) +
- this.GetFdStrBytes(fd123.O_ORDERNO, 8) +
- this.GetFdStrBytes(fd123.RET_CODE, 2) +
- this.GetFdStrBytes(fd123.RCP_STS, 2) +
- this.GetFdStrBytes(fd123.RESP1, 8) +
- this.GetFdStrBytes(fd123.RESP2, 8) +
- this.GetFdStrBytes(fd123.PACK_END, 1) +
- this.GetFdStrBytes(fd123.LV_STS, 1) +
- this.GetFdStrBytes(fd123.LW_IND, 1) +
- this.GetFdStrBytes(fd123.DFXYNO, 60) +
- this.GetFdStrBytes(fd123.OORBRNO, 12) +
- this.GetFdStrBytes(fd123.OACBRNO, 12) +
- this.GetFdStrBytes(fd123.PAY_AC_NO1, 32) +
- this.GetFdStrBytes((fd123.CR_TX_DATE || '').padStart(8, '0'), 8) +
- this.GetFdStrBytes(fd123.CR_TX_TLNO, 6) +
- this.GetFdStrBytes((fd123.CR_TX_TRCE || '').padStart(8, '0'), 8)
- );
- }
-
- /**
- * 拆 123 域 小额
- * @param target IPage 实例
- * @param FD123 123 域字符串
- * @returns lvFd123 对象
- */
- public static SetLvFd123(target: IPage, FD123: string): lvFd123 {
- const fd123_tmp = new lvFd123();
- FD123 = this.GetFdStrBytes(FD123, 999); // 补齐 999 位
- fd123_tmp.CRDB = this.GetStrBytes(FD123, 0, 1);
- fd123_tmp.OPCD = this.GetStrBytes(FD123, 1, 2);
- fd123_tmp.PKGNO = this.GetStrBytes(FD123, 3, 3);
- fd123_tmp.ORDERNO = this.GetStrBytes(FD123, 6, 8);
- fd123_tmp.TXNUM = this.GetStrBytes(FD123, 14, 5);
- fd123_tmp.OR_BR_NO = this.GetStrBytes(FD123, 19, 12);
- fd123_tmp.AC_BR_NO = this.GetStrBytes(FD123, 31, 12);
- fd123_tmp.TX_AMT = (this.GetStrBytes(FD123, 43, 15).ToDecimal() * 0.01).toString();
- fd123_tmp.PAY_OPN_BR_NO = this.GetStrBytes(FD123, 58, 12);
- fd123_tmp.PAY_QS_NO = this.GetStrBytes(FD123, 70, 12);
- fd123_tmp.PAY_AC_NO = this.GetStrBytes(FD123, 82, 32);
- fd123_tmp.PAY_NAME = this.GetStrBytes(FD123, 114, 60);
- fd123_tmp.PAY_ADDR = this.GetStrBytes(FD123, 174, 60);
- fd123_tmp.PWD = this.GetStrBytes(FD123, 234, 8);
- fd123_tmp.CASH_QS_NO = this.GetStrBytes(FD123, 242, 12);
- fd123_tmp.CASH_OPN_BR_NO = this.GetStrBytes(FD123, 254, 12);
- fd123_tmp.CASH_AC_NO = this.GetStrBytes(FD123, 266, 32);
- fd123_tmp.CASH_NAME = this.GetStrBytes(FD123, 298, 60);
- fd123_tmp.CASH_ADDR = this.GetStrBytes(FD123, 358, 60);
- fd123_tmp.YW_TYPE = this.GetStrBytes(FD123, 418, 12);
- fd123_tmp.BRF = this.GetStrBytes(FD123, 430, 60);
- fd123_tmp.WT_DATE = this.GetStrBytes(FD123, 490, 8);
- fd123_tmp.OPERLEVEL = this.GetStrBytes(FD123, 498, 1);
- fd123_tmp.AUTH_TEL = this.GetStrBytes(FD123, 499, 6);
- fd123_tmp.AUTH_PWD = this.GetStrBytes(FD123, 505, 8);
- fd123_tmp.NOTE_TYPE = this.GetStrBytes(FD123, 513, 2);
- fd123_tmp.NOTE_NO = this.GetStrBytes(FD123, 515, 12);
- fd123_tmp.PACK_DATE = this.GetStrBytes(FD123, 527, 8);
- fd123_tmp.PACK_ID = this.GetStrBytes(FD123, 535, 8);
- fd123_tmp.CHRG_IND = this.GetStrBytes(FD123, 543, 1);
- fd123_tmp.CHRG_AMT = (this.GetStrBytes(FD123, 544, 15).ToDecimal() * 0.01).toString();
- fd123_tmp.RESP_DAY = this.GetStrBytes(FD123, 559, 8);
- fd123_tmp.PO_TYPE = this.GetStrBytes(FD123, 567, 2);
- fd123_tmp.PO_DATE = this.GetStrBytes(FD123, 569, 8);
- fd123_tmp.PO_NUM = this.GetStrBytes(FD123, 577, 8);
- fd123_tmp.PC_TX_AMT = (this.GetStrBytes(FD123, 585, 15).ToDecimal() * 0.01).toString();
- fd123_tmp.JF_TX_AMT = (this.GetStrBytes(FD123, 600, 15).ToDecimal() * 0.01).toString();
- fd123_tmp.O_WT_DATE = this.GetStrBytes(FD123, 615, 8);
- fd123_tmp.O_TXNUM = this.GetStrBytes(FD123, 623, 5);
- fd123_tmp.O_ORDERNO = this.GetStrBytes(FD123, 628, 8);
- fd123_tmp.RET_CODE = this.GetStrBytes(FD123, 636, 2);
- fd123_tmp.RCP_STS = this.GetStrBytes(FD123, 638, 2);
- fd123_tmp.RESP1 = this.GetStrBytes(FD123, 640, 8);
- fd123_tmp.RESP2 = this.GetStrBytes(FD123, 648, 8);
- fd123_tmp.PACK_END = this.GetStrBytes(FD123, 656, 1);
- fd123_tmp.LV_STS = this.GetStrBytes(FD123, 657, 1);
- fd123_tmp.LW_IND = this.GetStrBytes(FD123, 658, 1);
- fd123_tmp.DFXYNO = this.GetStrBytes(FD123, 659, 60);
- fd123_tmp.OORBRNO = this.GetStrBytes(FD123, 719, 12);
- fd123_tmp.OACBRNO = this.GetStrBytes(FD123, 731, 12);
- fd123_tmp.PAY_AC_NO1 = this.GetStrBytes(FD123, 743, 32);
- fd123_tmp.CR_TX_DATE = this.GetStrBytes(FD123, 775, 8);
- fd123_tmp.CR_TX_TLNO = this.GetStrBytes(FD123, 783, 6);
- fd123_tmp.CR_TX_TRCE = this.GetStrBytes(FD123, 789, 8);
-
- return fd123_tmp;
- }
-
- /**
- * 组 125 域 授权
- * @param strFd125 125 域字符串
- * @returns AuthFd125 对象
- */
- public static SetAuthFd125(strFd125: string): AuthFd125 {
- const authFd125 = new AuthFd125();
- authFd125.DeAccount = this.GetStrBytes(strFd125, 0, 24);
- authFd125.CrAccount = this.GetStrBytes(strFd125, 24, 24);
- authFd125.CTSigns = this.GetStrBytes(strFd125, 48, 1);
- authFd125.DeAccountType = this.GetStrBytes(strFd125, 49, 1);
- authFd125.CrAccountType = this.GetStrBytes(strFd125, 50, 1);
- authFd125.DeAccountPro = this.GetStrBytes(strFd125, 51, 1);
- authFd125.CrAccountPro = this.GetStrBytes(strFd125, 52, 1);
- authFd125.DeIsOwn = this.GetStrBytes(strFd125, 53, 1);
- authFd125.CrIsOwn = this.GetStrBytes(strFd125, 54, 1);
- authFd125.DCIsSameCus = this.GetStrBytes(strFd125, 55, 1);
- authFd125.SinAmt = (this.GetStrBytes(strFd125, 56, 16).ToDecimal() * 0.01).toString();
- authFd125.DeCaAddAmt = (this.GetStrBytes(strFd125, 72, 16).ToDecimal() * 0.01).toString();
- authFd125.DeTrAddAmt = (this.GetStrBytes(strFd125, 88, 16).ToDecimal() * 0.01).toString();
- authFd125.LossMarked = this.GetStrBytes(strFd125, 152, 1);
- authFd125.DocumentType = this.GetStrBytes(strFd125, 154, 3);
- authFd125.DeductMarked = this.GetStrBytes(strFd125, 160, 2);
- authFd125.LongOrShort = this.GetStrBytes(strFd125, 164, 1);
- authFd125.ReMarked = this.GetStrBytes(strFd125, 168, 8);
- authFd125.DeOpnBrNo = this.GetStrBytes(strFd125, 176, 5);
- authFd125.CrOpnBrNo = this.GetStrBytes(strFd125, 181, 5);
- authFd125.CrTrAddAmt = (this.GetStrBytes(strFd125, 186, 16).ToDecimal() * 0.01).toString();
-
- return authFd125;
- }
- }
-
- // 定义相关的接口和类
- export interface IPage {
- // 这里可以根据实际情况补充 IPage 接口的具体属性和方法
- }
-
- export class Message {
- Fd101_1: string;
- Fd101_2: string;
- Fd101_3: string;
- Fd101_4: string;
- Fd101_5: string;
- Fd101_6: string;
- Fd101_7: string;
- Fd101_8: string;
- Fd101_9: string;
- Fd101_A: string;
- Fd101_B: string;
- Fd101_C: string;
- Fd101_D: string;
- Fd101_E: string;
- Fd101_F: string;
- Fd101_G: string;
- Fd102_1: string;
- Fd102_2: string;
- Fd102_3: string;
- Fd102_4: string;
- Fd102_5: string;
- Fd102_6: string;
- Fd102_7: string;
- Fd102_8: string;
- Fd102_9: string;
- Fd102_A: string;
- Fd102_B: string;
- Fd102_C: string;
- Fd102_D: string;
- Fd102_E: string;
- Fd102_F: string;
- Fd102_G: string;
- Fd102_H: string;
- Fd102_I: string;
- Fd102_J: string;
- Fd102_K: string;
- Fd102_L: string;
- Fd102_M: string;
- Fd102_N: string;
- Fd102_O: string;
- Fd102_P: string;
- Fd102_Q: string;
- Fd102_R: string;
- Fd102_S: string;
- Fd102_T: string;
- Fd102_U: string;
- Fd102_V: string;
- Fd102_W: string;
- Fd102_X: string;
- Fd102_Y: string;
- Fd102_Z: string;
- // 这里可以根据实际情况补充 Message 类的其他属性和方法
- }
-
- /**
- * 存款交易结构体
- */
- export class FD101 {
- /**
- * 1011 DATA_TYPE="0" DATA_LENG="24" DATA_DEC="0" 账号
- */
- ACTNO24: string;
-
- /**
- * 1012 DATA_TYPE="1" DATA_LENG="4" DATA_DEC="0" 账户序号
- */
- ACTSEQ: string;
-
- /**
- * 1013 DATA_TYPE="4" DATA_LENG="16" DATA_DEC="2" 金额
- */
- RTXAMT: string;
-
- /**
- * 1014 DATA_TYPE="0" DATA_LENG="3" DATA_DEC="0" 凭证种类
- */
- VOCTYPE: string;
-
- /**
- * 1015 DATA_TYPE="0" DATA_LENG="16" DATA_DEC="0" 凭证号
- */
- VOCNUM: string;
-
- /**
- * 1016 DATA_TYPE="0" DATA_LENG="20" DATA_DEC="0" 摘要
- */
- DESC10: string;
-
- /**
- * 1017 DATA_TYPE="0" DATA_LENG="1" DATA_DEC="0" 有折无折
- */
- NBFLAG: string;
-
- /**
- * 1018 DATA_TYPE="0" DATA_LENG="60" DATA_DEC="0" 户名
- */
- CUSTNAME: string;
-
- /**
- * 1019 DATA_TYPE="4" DATA_LENG="16" DATA_DEC="2" 余额
- */
- AVBAL: string;
-
- /**
- * 101A DATA_TYPE="0" DATA_LENG="2" DATA_DEC="0" 币种
- */
- CURCD: string;
-
- /**
- * 101B DATA_TYPE="0" DATA_LENG="1" DATA_DEC="0" 现转标志
- */
- CASHFLAG: string;
-
- /**
- * 101C DATA_TYPE="0" DATA_LENG="3" DATA_DEC="0" 摘要选项
- */
- DSCPT: string;
-
- /**
- * 101D DATA_TYPE="0" DATA_LENG="1" DATA_DEC="0" 帐户类型
- */
- ACTTYPE: string;
-
- /**
- * 101E DATA_TYPE="1" DATA_LENG="4" DATA_DEC="0" 账户序号2
- */
- ACTSEQ_2: string;
-
- /**
- * 101F DATA_TYPE="0" DATA_LENG="30" DATA_DEC="0" 产品名称
- */
- PRODNAME: string;
-
- /**
- * 101G DATA_TYPE="0" DATA_LENG="4" DATA_DEC="0" 介质种类
- */
- MDMTYPE: string;
- }
-
- /**
- * 取款交易结构体
- */
- export class FD102 {
- /**
- * 1021 DATA_TYPE="0" DATA_LENG="24 DATA_DEC="0" 账号
- */
- ACTNO24: string;
-
- /**
- * 1022 DATA_TYPE="1" DATA_LENG="4" DATA_DEC="0" 账户序号
- */
- ACTSEQ: string;
-
- /**
- * 1023 DATA_TYPE="0" DATA_LENG="3" DATA_DEC="0" 凭证种类
- */
- VOCTYPE: string;
-
- /**
- * 1024 DATA_TYPE="0" DATA_LENG="16" DATA_DEC="0" 凭证号
- */
- VOCNUM: string;
-
- /**
- * 1025 DATA_TYPE="0" DATA_LENG="1" DATA_DEC="0" 是否任意支取
- */
- FETCHFLAG: string;
-
- /**
- * 1026 DATA_TYPE="0" DATA_LENG="1" DATA_DEC="0" 是否凭密
- */
- PWDFLAG: string;
-
- /**
- * 1027 DATA_TYPE="6" DATA_LENG="16" DATA_DEC="0" 查询密码
- */
- QUE_PWD: string;
-
- /**
- * 1028 DATA_TYPE="6" DATA_LENG="16" DATA_DEC="0" 支取密码
- */
- PAY_PWD: string;
-
- /**
- * 1029 DATA_TYPE="0" DATA_LENG="1" DATA_DEC="0" 是否凭证件支取
- */
- CERTFLAG: string;
-
- /**
- * 102A DATA_TYPE="0" DATA_LENG="20" DATA_DEC="0" 证件号码
- */
- ID_NO: string;
-
- /**
- * 102B DATA_TYPE="0" DATA_LENG="1" DATA_DEC="0" 是否凭印鉴支取
- */
- STAMPFLAG: string;
-
- /**
- * 102C DATA_TYPE="0" DATA_LENG="1" DATA_DEC="0" 是否支付密码器
- */
- PWDFLAG2: string;
-
- /**
- * 102D DATA_TYPE="0" DATA_LENG="16" DATA_DEC="0" 支付密码
- */
- PWD16: string;
-
- /**
- * 102E DATA_TYPE="1" DATA_LENG="8" DATA_DEC="0" 出票日期
- */
- PRINTDATE: string;
-
- /**
- * 102F DATA_TYPE="4" DATA_LENG="16" DATA_DEC="2" 金额
- */
- TXAMT15: string;
-
- /**
- * 102G DATA_TYPE="0" DATA_LENG="1" DATA_DEC="0" 证件类型
- */
- CERTTYPE: string;
-
- /**
- * 102H DATA_TYPE="0" DATA_LENG="60" DATA_DEC="0" 户名
- */
- CUSTNAME: string;
-
- /**
- * 102I DATA_TYPE="4" DATA_LENG="16" DATA_DEC="2" 余额
- */
- AVBAL: string;
-
- /**
- * 102J DATA_TYPE="0" DATA_LENG="2" DATA_DEC="0" 币种
- */
- CURCD: string;
-
- /**
- * 102K DATA_TYPE="0" DATA_LENG="1" DATA_DEC="0" 现转标志
- */
- CT_IND: string;
-
- /**
- * 102L DATA_TYPE="0" DATA_LENG="3" DATA_DEC="0" 摘要选项
- */
- DSCPT: string;
-
- /**
- * 102M DATA_TYPE="0" DATA_LENG="1" DATA_DEC="0" 帐户类型
- */
- ACTTYPE: string;
-
- /**
- * 102N DATA_TYPE="1" DATA_LENG="4" DATA_DEC="0" 账户序号2
- */
- ACTSEQ_2: string;
-
- /**
- * 102O DATA_TYPE="0" DATA_LENG="1" DATA_DEC="0" 打折标志
- */
- ACCOUNTFLAG: string;
-
- /**
- * 102P DATA_TYPE="4" DATA_LENG="16" DATA_DEC="2" 应付利息
- */
- INTEREST1: string;
-
- /**
- * 102Q DATA_TYPE="4" DATA_LENG="16" DATA_DEC="2" 利息税
- */
- INTEREST2: string;
-
- /**
- * 102R DATA_TYPE="4" DATA_LENG="16" DATA_DEC="2" 保值利息
- */
- INTEREST3: string;
-
- /**
- * 102S DATA_TYPE="4" DATA_LENG="16" DATA_DEC="2" 应付总额
- */
- PAYAMOUNT: string;
-
- /**
- * 102T DATA_TYPE="0" DATA_LENG="16" DATA_DEC="0" 新凭证号
- */
- NEWVOCNUM: string;
-
- /**
- * 102U DATA_TYPE="0" DATA_LENG="20" DATA_DEC="0" 特殊标志
- */
- SPEFLAG: string;
-
- /**
- * 102V DATA_TYPE="0" DATA_LENG="30" DATA_DEC="0" 产品名称
- */
- PRODNAME: string;
-
- /**
- * 102W DATA_TYPE="0" DATA_LENG="24" DATA_DEC="0" 账号
- */
- ACTNO_24: string;
-
- /**
- * 102X DATA_TYPE="0" DATA_LENG="1" DATA_DEC="0" 教育证明
- */
- EDUCREDIT: string;
-
- /**
- * 102Y DATA_TYPE="0" DATA_LENG="20" DATA_DEC="0" 摘要
- */
- DESC10: string;
-
- /**
- * 102Z DATA_TYPE="0" DATA_LENG="4" DATA_DEC="0" 介质种类
- */
- MDMCODE: string;
- }
-
- /**
- * 大额类业务
- * 将 123 域划分子域
- */
- export class hvFd123 {
- /**
- * Cmt 编号
- */
- CMTNO: string;
-
- /**
- * 原 Cmt 编号
- */
- O_CMTNO: string;
-
- /**
- * 发起清算行
- */
- PAY_QS_NO: string;
-
- /**
- * 发起行行号
- */
- OR_BR_NO: string;
-
- /**
- * 发报中心代码
- */
- SENDCO: string;
-
- /**
- * 付款人开户行
- */
- PAY_OPN_BR_NO: string;
-
- /**
- * 记账账号
- */
- PAY_AC_NO: string;
-
- /**
- * 付款人名称
- */
- PAY_NAME: string;
-
- /**
- * 付款人地址
- */
- PAY_ADDR: string;
-
- /**
- * 接收清算行
- */
- CASH_QS_NO: string;
-
- /**
- * 接收行行号,原发起行
- */
- AC_BR_NO: string;
-
- /**
- * 收报中心代码
- */
- RECECO: string;
-
- /**
- * 收款人开户行
- */
- CASH_OPN_BR_NO: string;
-
- /**
- * 收款人帐号
- */
- CASH_AC_NO: string;
-
- /**
- * 收款人姓名
- */
- CASH_NAME: string;
-
- /**
- * 收款人地址
- */
- CASH_ADDR: string;
-
- /**
- * 业务种类描述
- */
- YW_TYPE: string;
-
- /**
- * 支付交易序号
- */
- ORDERNO: string;
-
- /**
- * 备注
- */
- CONTENT: string;
-
- /**
- * 拆借利率
- */
- RATE: string;
-
- /**
- * 拆借期限
- */
- RATEDATE: string;
-
- /**
- * 原支付交易序号
- */
- OORDERNO: string;
-
- /**
- * 处理码
- */
- PROCODE: string;
-
- /**
- * 查复日期
- */
- CR_DATE: string;
-
- /**
- * 查复行号
- */
- CR_BR_NO: string;
-
- /**
- * 查复书号
- */
- CR_TX_NUM: string;
-
- /**
- * 查询行号 原查询行号
- */
- QR_BR_NO: string;
-
- /**
- * 原查询书号 查询书号
- */
- QR_TX_NUM: string;
-
- /**
- * 原交易种类
- */
- TX_TYPE: string;
-
- /**
- * 退回备注
- */
- NOTPAY_CONTENT: string;
-
- /**
- * 退回申请号
- */
- NOTPAY_ORDERNO: string;
-
- /**
- * 原退回申请号
- */
- O_NOTPAY_ORDERNO: string;
-
- /**
- * Mbfe 应答码
- */
- RESP1: string;
-
- /**
- * 优先级别 0、一般;1、紧急;2、特急
- */
- OPERLEVEL: string;
-
- /**
- * 处理状态
- */
- PROC_STS: string;
-
- /**
- * 操作代码
- */
- OPCD: string;
-
- /**
- * 来往标识 1-往 2-来
- */
- LW_IND: string;
-
- /**
- * 汇票是否核押
- */
- HP_ADD_PWD: string;
-
- /**
- * 包序号
- */
- PACKID: string;
-
- /**
- * 原包序号
- */
- O_PACKID: string;
-
- /**
- * 包日期,定期用
- */
- PACK_DATE: string;
-
- /**
- * 原包日期
- */
- O_PACK_DATE: string;
-
- /**
- * 业务编号
- */
- TXNUM: string;
-
- /**
- * 原业务编号
- */
- O_TXNUM: string;
-
- /**
- * 业务类型编号
- */
- LV_YW_IND: string;
-
- /**
- * 应答日期
- */
- RESP_DATE: string;
-
- /**
- * 业务回执状态
- */
- RCP_STS: string;
-
- /**
- * Ccpc 应答码
- */
- RESP2: string;
-
- /**
- * 退汇原因
- */
- RETCODE: string;
-
- /**
- * 明细序号
- */
- YW_DTL_ID: string;
-
- /**
- * 实时业务付款人帐户类型
- */
- ACC_IND: string;
-
- /**
- * 申请类型 0=单笔 1=整包
- */
- REQ_TYPE: string;
-
- /**
- * 对方手续费
- */
- DF_FREEAMT: string;
-
- /**
- * 多方协议号
- */
- PROTNO: string;
-
- /**
- * 汇票号码
- */
- PO_NO: string;
-
- /**
- * 汇票类型
- */
- PO_TYPE: string;
-
- /**
- * 1-大额,2-小额
- */
- OTYPE: string;
-
- /**
- * 存款交易日期
- */
- CR_TX_DATE: string;
-
- /**
- * 存款交易柜员
- */
- CR_TX_TLNO: string;
-
- /**
- * 存款交易流水
- */
- CR_TX_TRCE: string;
- }
-
- /**
- * 小额业务 123 域划分
- */
- export class lvFd123 {
- /**
- * 借贷标志 0 借 1 贷
- */
- CRDB: string;
-
- /**
- * 操作代码 10-录入之录入 11-录入之查询 20-修改之修改 21-修改之查询 30-复核 40-发送之发送
- * 41-发送之查询 50-应答 60-接收 70-错账处理之入帐
- * 71-错账处理之修改 72-错账处理之查询 80 - 冲来帐 90--冲往帐
- */
- OPCD: string;
-
- /**
- * Package 编号
- */
- PKGNO: string;
-
- /**
- * 支付交易序号
- */
- ORDERNO: string;
-
- /**
- * 业务类型编号
- */
- TXNUM: string;
-
- /**
- * 发起行行号
- */
- OR_BR_NO: string;
-
- /**
- * 接收行行号
- */
- AC_BR_NO: string;
-
- /**
- * 交易金额
- */
- TX_AMT: string;
-
- /**
- * 付款人开户行
- */
- PAY_OPN_BR_NO: string;
-
- /**
- * 付款清算行行号
- */
- PAY_QS_NO: string;
-
- /**
- * 付款人帐号
- */
- PAY_AC_NO: string;
-
- /**
- * 付款人名称
- */
- PAY_NAME: string;
-
- /**
- * 付款人地址
- */
- PAY_ADDR: string;
-
- /**
- * 储户密码
- */
- PWD: string;
-
- /**
- * 收款清算行行号
- */
- CASH_QS_NO: string;
-
- /**
- * 收款人开户行行号
- */
- CASH_OPN_BR_NO: string;
-
- /**
- * 收款人帐号
- */
- CASH_AC_NO: string;
-
- /**
- * 收款人名称
- */
- CASH_NAME: string;
-
- /**
- * 收款人地址
- */
- CASH_ADDR: string;
-
- /**
- * 业务种类
- */
- YW_TYPE: string;
-
- /**
- * 附言
- */
- BRF: string;
-
- /**
- * 委托日期
- */
- WT_DATE: string;
-
- /**
- * 优先级
- */
- OPERLEVEL: string;
-
- /**
- * 授权操作员号
- */
- AUTH_TEL: string;
-
- /**
- * 授权操作员密码
- */
- AUTH_PWD: string;
-
- /**
- * 凭证种类
- */
- NOTE_TYPE: string;
-
- /**
- * 凭证号码
- */
- NOTE_NO: string;
-
- /**
- * 包日期,定期用
- */
- PACK_DATE: string;
-
- /**
- * 包 id,定期用
- */
- PACK_ID: string;
-
- /**
- * 手续费标志
- */
- CHRG_IND: string;
-
- /**
- * 手续费金额
- */
- CHRG_AMT: string;
-
- /**
- * 期待应答日期
- */
- RESP_DAY: string;
-
- /**
- * 票据类型
- */
- PO_TYPE: string;
-
- /**
- * 票据日期
- */
- PO_DATE: string;
-
- /**
- * 票据号码
- */
- PO_NUM: string;
-
- /**
- * 赔偿金额
- */
- PC_TX_AMT: string;
-
- /**
- * 拒付金额
- */
- JF_TX_AMT: string;
-
- /**
- * 原委托日期
- */
- O_WT_DATE: string;
-
- /**
- * 原业务编号
- */
- O_TXNUM: string;
-
- /**
- * 原支付交易序号
- */
- O_ORDERNO: string;
-
- /**
- * 退汇原因代码
- */
- RET_CODE: string;
-
- /**
- * 业务回执状态
- */
- RCP_STS: string;
-
- /**
- * Mbfe 应答码
- */
- RESP1: string;
-
- /**
- * Ccpc 应答码
- */
- RESP2: string;
-
- /**
- * 包结束标志
- */
- PACK_END: string;
-
- /**
- * 交易状态
- */
- LV_STS: string;
-
- /**
- * 来往标识
- */
- LW_IND: string;
-
- /**
- * 多方协议号
- */
- DFXYNO: string;
-
- /**
- * 原发起行行号
- */
- OORBRNO: string;
-
- /**
- * 原接收行行号
- */
- OACBRNO: string;
-
- /**
- * 付款账户
- */
- PAY_AC_NO1: string;
-
- /**
- * 记账帐户存款交易日期
- */
- CR_TX_DATE: string;
-
- /**
- * 记账帐户存款交易柜员
- */
- CR_TX_TLNO: string;
-
- /**
- * 记账帐户存款交易流水
- */
- CR_TX_TRCE: string;
- }
-
- /**
- * 授权要素 125 域划分
- */
- export class AuthFd125 {
- /**
- * 借方账号
- */
- DeAccount: string;
-
- /**
- * 借方账号序号
- */
- DeAccountSeqn: string;
-
- /**
- * 贷方账号
- */
- CrAccount: string;
-
- /**
- * 2、 CTSigns:转账/现金标志
- * 值 :1:转账;2:现金
- */
- CTSigns: string;
-
- /**
- * 3、 DeAccountType:借方账户类型(对公、对私、内部)
- * 值 :1:对公;2:对私;3:内部
- */
- DeAccountType: string;
-
- /**
- * 4、 CrAccountType:贷方账户类型(对公、对私、内部)
- * 值 :1:对公;2:对私;3:内部
- */
- CrAccountType: string;
-
- /**
- * 5、 DeAccountPro:借方账户属性(基本户、一般户、专用户、临时户)
- * 值 :1:基本户;2:一般户;3:专用户;4:临时户
- */
- DeAccountPro: string;
-
- /**
- * 6、 CrAccountPro:贷方账户属性(基本户、一般户、专用户、临时户)
- * 值 :1:基本户;2:一般户;3:专用户;4:临时户
- */
- CrAccountPro: string;
-
- /**
- * 7、 DeIsOwn:借方是否是本行账号
- * 值 :Y:是;N:否
- */
- DeIsOwn: string;
-
- /**
- * 8、 CrIsOwn:贷方是否是本行账号
- * 值 :Y:是;N:否
- */
- CrIsOwn: string;
-
- /**
- * 9、 DCIsSameCus:借记方和贷记方是否是同一客户
- * 值 :Y:是;N:否
- */
- DCIsSameCus: string;
-
- /**
- * 10、 SinAmt:单笔金额
- * 值 :金额,如:100000.00
- */
- SinAmt: string;
-
- /**
- * 11、DeCaAddAmt:当日借方现金累计金额
- * 类型:数字类型
- * 值 :金额,如:100000.00
- */
- DeCaAddAmt: string;
-
- /**
- * 12、DeTrAddAmt:当日借方转账累计金额
- * 类型:数字类型
- * 值 :金额,如:100000.00
- */
- DeTrAddAmt: string;
-
- /**
- * 13、LossMarked:挂失标志
- * 类型:布尔类型
- * 值 :Y:是;N:否
- */
- LossMarked: string;
-
- /**
- * 14、DocumentType:凭证种类
- * 类型:字符类型
- */
- DocumentType: string;
-
- /**
- * 15、DeductMarked:扣划标志
- * 类型:字符类型
- */
- DeductMarked: string;
-
- /**
- * 16、LongOrShort:长短款标志
- * 类型:布尔类型
- * 值 :Y:是;N:否
- */
- LongOrShort: string;
-
- /**
- * 备用标志
- */
- ReMarked: string;
-
- /**
- * 借方账户开户行号
- */
- DeOpnBrNo: string;
-
- /**
- * 贷方账户开户行号
- */
- CrOpnBrNo: string;
-
- /**
- * 当日贷方现金累计金额
- */
- CrTrAddAmt: string;
-
- /**
- * 备注
- */
- Remarks: string;
- }
|