Ejemplo n.º 1
0
        /// <summary>
        /// 1.8.查询历史通知
        /// </summary>
        public static void RQ1_8Sample()
        {
            var rq = new RQ1_8()
            {
                FBDLRHMGX = new FBDLRHMGX
                {
                    BGNDAT = DateTime.Now.AddDays(-100),
                    ENDDAT = DateTime.Now,
                    MSGTYP = "NCBUSFINY"
                             //NCBCHOPR
                             //NCDRTPAY
                             //NCCRTTRS
                             //NCDBTTRS
                             //NCBUSFIN
                }
            };
            var rs          = client.Execute <RQ1_8, RS1_8>(rq, "银企直连专用集团1");
            var 批量支付和批量代理清算 = string.Join("\r", rs.NCBCHOPRList?.Select(x => x.FLWTYP + "," + x.FLWCOD + "," + x.MSGNBR + "," + x.RSTSET).Distinct());

            /*
             * N02031,00001,201905060000007094,ZZQKE4DFMC
             * N02031,00001,201905070000007331,Z0JPY7DFL7
             * N02031,00001,201905070000007373,Z0LKP7DFL9
             * N02031,00001,201905070000007376,Z0LKX5DFL8
             * N02031,00001,201905070000007377,Z0LKY1DFMB
             */
            var 直接支付结果通知 = string.Join("\r", rs.NCDRTPAYList?.Select(x => x.BBKNBR + "," + x.KEYVAL).Distinct());
            var 到帐通知     = string.Join("\r", rs.NCCRTTRSList?.Select(x => x.BBKNBR + "," + x.ACCNBR).Distinct());
            var 付款通知     = string.Join("\r", rs.NCDBTTRSList?.Select(x => x.BBKNBR + "," + x.ACCNBR).Distinct());

            Console.WriteLine(rs.INFO.ResponseContent);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 1.8.查询历史通知
        /// </summary>
        public static void RQ1_8Sample()
        {
            var rq = new RQ1_8()
            {
                FBDLRHMGX = new FBDLRHMGX
                {
                    BGNDAT = DateTime.Now.AddDays(-7),
                    ENDDAT = DateTime.Now,
                    //MSGTYP = "NCBUSFIN"
                    //NCBCHOPR
                    //NCDRTPAY
                    //NCCRTTRS
                    //NCDBTTRS
                    //NCBUSFIN
                }
            };
            var rs   = client.Execute <RQ1_8, RS1_8>(rq, loginName);
            var txt1 = string.Join("\r", rs.NCDRTPAYList?.Select(x => x.BBKNBR + "," + x.KEYVAL).Distinct());
            var txt2 = string.Join("\r", rs.NCCRTTRSList?.Select(x => x.BBKNBR + "," + x.ACCNBR).Distinct());
            var txt3 = string.Join("\r", rs.NCDBTTRSList?.Select(x => x.BBKNBR + "," + x.ACCNBR).Distinct());

            Console.WriteLine(rs.INFO.ResponseContent);
        }