Exemplo n.º 1
0
        /// <summary>
        /// 对账信息查询
        /// </summary>
        /// <param name="tellerNO">柜员号</param>
        /// <param name="orgNO">机构号</param>
        /// <param name="tradeDate">发起交易日期</param>
        /// <param name="queryDate">查询日期</param>
        /// <param name="flowNO">查询的资金流水号</param>
        /// <param name="queryOrgNO">查询机构号</param>
        /// <param name="codemsg"></param>
        /// <returns></returns>
        public static Guid AccountingCheck(String tellerNO, string orgNO, DateTime tradeDate, DateTime queryDate, String flowNO, String queryOrgNO, ref byte[] codemsg)
        {
            AcctCheckData checkData = new AcctCheckData();

            checkData.RQhdrHandler.SYS_TXID = "206070"; //
            checkData.RQhdrHandler.TX_OUNO = orgNO;
            checkData.RQhdrHandler.TEL_ID = tellerNO;
            checkData.RQhdrHandler.TX_MODE = "0";
            checkData.RQhdrHandler.TX_DTE = tradeDate.ToString("yyyy-MM-dd");
            checkData.RQhdrHandler.SRV_JNO = CommonDataHelper.SpaceString(12);
            checkData.RQhdrHandler.SRV_REV_JNO = CommonDataHelper.SpaceString(12);
            checkData.RQhdrHandler.HOST_JNO = CommonDataHelper.SpaceString(11);

            checkData.RQDTL.BizFlowNO = flowNO;
            //if (string.IsNullOrEmpty(queryOrgNO))
            //{
            //    queryOrgNO = orgNO;
            //}
            checkData.RQDTL.OrgNO = queryOrgNO;
            checkData.RQDTL.TradeDate = queryDate.ToString("yyyyMMdd");

            return MsgTransfer.CodeMsgToBinary(checkData, ref codemsg);
        }
Exemplo n.º 2
0
        private void TestForAcctChecking(StringBuilder result, AcctCheckData respdata)
        {
            if (respdata != null && respdata.OBDataList != null)
            {
                String path = @"e:\CoreAccts.del";
                List<string> contentlist = new List<string>();
                foreach (var item in respdata.OBDataList)
                {
                    contentlist.Add(string.Format("{0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10},{11},{12},{13},{14},{15},{16}",
                        item.TradeDate, item.BizFlowNO, string.Empty, item.OrgNO, item.TellerNO, item.TellerFlowNO, string.Empty, string.Empty, item.TradeAcctNO, item.OrgNOWithinAcct, item.Currency, item.CheckCode, item.DCFlag, item.RedBlueFlag, item.Amount, item.Status, string.Empty));
                }
                CommonMethods.WriteLocalGBKFile(path, contentlist.ToArray());
                MessageBox.Show(string.Format("下载完毕,结果已保存文件在{0}", path), "核心对账", MessageBoxButtons.OK, MessageBoxIcon.Information);

            }
            
            {
                if (!String.IsNullOrEmpty(respdata.SyserrHandler.Message))
                {
                    textBoxResult.Text = respdata.SyserrHandler.Message;
                }
                else if (respdata.OmsgHandler.NUM_ENT > 0)
                {
                    StringBuilder sb = new StringBuilder();
                    foreach (var item in respdata.OmsgHandler.OMSGItemList)
                    {
                        
                        sb.AppendLine(string.Format("{0}:{1}",item.MSG_NO,item.MSG_TEXT));
                    }

                    textBoxResult.Text = sb.ToString();
                }
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// 对账信息查询
        /// </summary>
        /// <param name="tellerNO">柜员号</param>
        /// <param name="orgNO">机构号</param>
        /// <param name="tradeDate">发起交易日期</param>
        /// <param name="queryDate">查询日期</param>
        /// <param name="flowNO">查询的资金流水号</param>
        /// <param name="queryOrgNO">查询机构号</param>
        /// <param name="codemsg"></param>
        /// <returns></returns>
        public static Guid AccountingCheck(String tellerNO, string orgNO, DateTime tradeDate, DateTime queryDate, String flowNO, String queryOrgNO, ref byte[] codemsg)
        {
            AcctCheckData checkData = new AcctCheckData();

            checkData.RQhdrHandler.SYS_TXID = "206070"; //
            checkData.RQhdrHandler.TX_OUNO = orgNO;
            checkData.RQhdrHandler.TEL_ID = tellerNO;
            checkData.RQhdrHandler.TX_MODE = "0";
            checkData.RQhdrHandler.TX_DTE = tradeDate.ToString("yyyy-MM-dd");
            checkData.RQhdrHandler.SRV_JNO = CommonDataHelper.SpaceString(12);
            checkData.RQhdrHandler.SRV_REV_JNO = CommonDataHelper.SpaceString(12);
            checkData.RQhdrHandler.HOST_JNO = CommonDataHelper.SpaceString(11);

            checkData.RQDTL.BizFlowNO = flowNO;
            //if (string.IsNullOrEmpty(queryOrgNO))
            //{
            //    queryOrgNO = orgNO;
            //}
            checkData.RQDTL.OrgNO = queryOrgNO;
            checkData.RQDTL.TradeDate = queryDate.ToString("yyyyMMdd");

            try
            {
                return PreProcessReqMsg(checkData, ref codemsg);
            }
            catch (Exception ex)
            {
                throw new Exception(MESSAGE_ENCODE_EXCEPTION, ex);
            }
        }