Example #1
0
 /// <summary>
 /// 业务处理
 /// </summary>
 public void DisposeOfBusiness(byte[] recvBytes, BllEntryPoint bllEntryPoint)
 {
     try
     {
         GenerageResponseMsg(recvBytes);
         LogHelper.WriteLogInfo("卡余额查询", "成功完成业务操作");
     }
     catch (Exception ex)
     {
         LogHelper.WriteLogException("卡余额查询", ex);
         throw;
     }
 }
Example #2
0
 /// <summary>
 /// 业务处理
 /// </summary>
 public void DisposeOfBusiness(byte[] recvBytes, BllEntryPoint bllEntryPoint)
 {
     try
     {
         GenerageResponseMsg(recvBytes);
         UpdateZbInfo(BasicOperation.GetExecutePermission());
         LogHelper.WriteLogInfo("本行实时支付", "成功完成业务操作");
     }
     catch (Exception ex)
     {
         LogHelper.WriteLogException("本行实时支付业务失败", ex);
         throw;
     }
 }
 /// <summary>
 /// 业务处理
 /// </summary>
 public void DisposeOfBusiness(byte[] recvBytes, BllEntryPoint bllEntryPoint)
 {
     try
     {
         GenerageResponseMsg(recvBytes);
         ExecuteDetail(bllEntryPoint.Hb, model);
         LogHelper.WriteLogInfo("小额支付代扣发起", "成功完成业务操作");
     }
     catch (Exception ex)
     {
         LogHelper.WriteLogException("小额支付代扣发起业务失败", ex);
         throw;
     }
 }
 /// <summary>
 /// 业务处理
 /// </summary>
 public void DisposeOfBusiness(byte[] recvBytes, BllEntryPoint bllEntryPoint)
 {
     try
     {
         string fileName = string.Empty;
         GenerateDuizhangDetail(out fileName);
         GenerageResponseMsg(recvBytes, fileName);
         LogHelper.WriteLogInfo("贷款对账信息发放", "成功完成业务操作");
     }
     catch (Exception ex)
     {
         LogHelper.WriteLogException("贷款对账信息发放业务失败", ex);
         throw;
     }
 }
Example #5
0
 /// <summary>
 /// 处理公积金中心的请求;
 /// </summary>
 /// <param name="message"></param>
 /// <returns></returns>
 private void HandleRequest(TcpUserManager user, byte[] recvBytes, BllEntryPoint bllEntryPoint)
 {
     try
     {
         //获取交易码,根据交易码调用具体的业务对象;
         bllEntryPoint.Jym = Encoding.Default.GetString(recvBytes).Substring(0, 4);
         string        className    = BasicOperation.GetClassNameFromXML(bllEntryPoint.Jym);
         IBllManagment bllManagment = BdjxFactory.CreateInstance <IBllManagment>("BDJX.BSCP.BLL.dll", className);
         bllManagment.DisposeOfBusiness(recvBytes, bllEntryPoint);
         SendMsgToClient(user, bllManagment.ResponseMsg);
     }
     catch
     {
         throw;
     }
 }
 /// <summary>
 /// 业务处理
 /// </summary>
 public void DisposeOfBusiness(byte[] recvBytes, BllEntryPoint bllEntryPoint)
 {
     try
     {
         //解析请求报文
         model.GetValue(recvBytes);
         string fileName = string.Empty;
         GenerateDuiZhangDetail(bllEntryPoint.Hb, model, out fileName);
         GenerageResponseMsg(recvBytes, fileName);
         LogHelper.WriteLogInfo("网厅缴存--网银转账缴存对账", "成功完成业务操作");
     }
     catch (Exception ex)
     {
         LogHelper.WriteLogException("网厅缴存--网银转账缴存对账业务失败", ex);
         throw;
     }
 }
Example #7
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public TcpServer()
        {
            tcpEndPoint        = new TcpEndPoint();
            tcpRunningTimeInfo = new TcpRunningTimeInfo();
            bllEntryPoint      = new BllEntryPoint();

            string strPort   = ConfigurationManager.AppSettings["port"];
            bool   isSuccess = Int32.TryParse(strPort, out tcpEndPoint.port);

            if (!isSuccess)
            {
                LogHelper.WriteLogError("Tcp服务端错误:", "监听端口号设置错误");
            }

            tcpEndPoint.localAddr = Dns.GetHostAddresses(Dns.GetHostName());
            tcpEndPoint.ipAddress = new IPAddress(new byte[] { 127, 0, 0, 1 });
        }
Example #8
0
        /// <summary>
        /// 业务处理
        /// </summary>
        public void DisposeOfBusiness(byte[] recvBytes, BllEntryPoint bllEntryPoint)
        {
            try
            {
                //解析请求报文
                model.GetValue(recvBytes);

                string fileName = string.Empty;
                fileName = this.GenetrateCountCheckingFile(bllEntryPoint.Hb, model.Jym, model.Yhzh, model.Qsrq, model.Zzrq);
                GenerageResponseMsg(recvBytes, fileName);

                LogHelper.WriteLogInfo("银行记账日终对账", "成功完成业务操作");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLogException("银行记账日终对账业务失败", ex);
                throw;
            }
        }