예제 #1
0
        /// <summary>
        /// 更新客户接口
        /// </summary>
        /// <param name="tellerNO">操作柜员号</param>
        /// <param name="organNO">操作柜员所属机构号</param>
        /// <param name="tradeDate">业务发生时间</param>
        /// <param name="customer">客户更新的数据对象</param>
        public static Guid UpdateCustomer(String tellerNO, String organNO, DateTime tradeDate, String interCode, ref byte[] codemsg, CoreCustomerBrief customer)
        {
            UpdateCstmData updateData = new UpdateCstmData();
            updateData.RQDTL.CUS_CDE = interCode;
            updateData.RQhdrHandler.SYS_TXID = "300014"; // 查询,主机启动原交易码
            updateData.RQhdrHandler.TX_OUNO = organNO;
            updateData.RQhdrHandler.TEL_ID = tellerNO;
            updateData.RQhdrHandler.TX_MODE = "0";
            updateData.RQhdrHandler.TX_DTE = tradeDate.ToString("yyyy-MM-dd");
            updateData.RQhdrHandler.SRV_JNO = CommonDataHelper.SpaceString(12);
            updateData.RQhdrHandler.SRV_REV_JNO = CommonDataHelper.SpaceString(12);
            updateData.RQhdrHandler.HOST_JNO = CommonDataHelper.SpaceString(11);

            updateData.RQDTL.CUS_NAM = customer.CName;
            updateData.RQDTL.CUS_ONAM = customer.OName;
            updateData.RQDTL.CUS_ENAM = customer.EName;
            updateData.RQDTL.ADDR = customer.Address;
            updateData.RQDTL.TEL_NO = customer.TeleNO;
            updateData.RQDTL.MBL_NO = customer.MobileNO;
            updateData.RQDTL.IsDelete = false;

            return MsgTransfer.CodeMsgToBinary(updateData, ref codemsg);
        }
예제 #2
0
        /// <summary>
        /// 删除客户接口
        /// </summary>
        /// <param name="tellerNO">操作柜员号</param>
        /// <param name="organNO">操作柜员所属机构号</param>
        /// <param name="tradeDate">业务发生时间</param>
        /// <param name="tradeDate">客户内码</param>
        /// <param name="tradeDate">编码缓冲</param>        
        public static Guid DeleteCustomer(String tellerNO, String organNO, DateTime tradeDate, String interCode, ref byte[] codemsg)
        {
            UpdateCstmData updateData = new UpdateCstmData();
            updateData.RQDTL.CUS_CDE = interCode;
            updateData.RQhdrHandler.SYS_TXID = "300014"; // 查询,主机启动原交易码
            updateData.RQhdrHandler.TX_OUNO = organNO;
            updateData.RQhdrHandler.TEL_ID = tellerNO;
            updateData.RQhdrHandler.TX_MODE = "0";
            updateData.RQhdrHandler.TX_DTE = tradeDate.ToString("yyyy-MM-dd");
            updateData.RQhdrHandler.SRV_JNO = CommonDataHelper.SpaceString(12);
            updateData.RQhdrHandler.SRV_REV_JNO = CommonDataHelper.SpaceString(12);
            updateData.RQhdrHandler.HOST_JNO = CommonDataHelper.SpaceString(11);

            updateData.RQDTL.IsDelete = true;

            return MsgTransfer.CodeMsgToBinary(updateData, ref codemsg);
        }
예제 #3
0
        /// <summary>
        /// 删除客户接口
        /// </summary>
        /// <param name="tellerNO">操作柜员号</param>
        /// <param name="organNO">操作柜员所属机构号</param>
        /// <param name="tradeDate">业务发生时间</param>
        /// <param name="tradeDate">客户内码</param>
        /// <param name="tradeDate">编码缓冲</param>        
        public static Guid DeleteCustomer(String tellerNO, String organNO, DateTime tradeDate, String interCode, ref byte[] codemsg)
        {
            UpdateCstmData updateData = new UpdateCstmData();
            updateData.RQDTL.CUS_CDE = interCode;
            updateData.RQhdrHandler.SYS_TXID = "300014"; // 查询,主机启动原交易码
            updateData.RQhdrHandler.TX_OUNO = organNO;
            updateData.RQhdrHandler.TEL_ID = tellerNO;
            updateData.RQhdrHandler.TX_MODE = "0";
            updateData.RQhdrHandler.TX_DTE = tradeDate.ToString("yyyy-MM-dd");
            updateData.RQhdrHandler.SRV_JNO = CommonDataHelper.SpaceString(12);
            updateData.RQhdrHandler.SRV_REV_JNO = CommonDataHelper.SpaceString(12);
            updateData.RQhdrHandler.HOST_JNO = CommonDataHelper.SpaceString(11);

            //updateData.RQDTL.CUS_NAM = customer.CName;
            //updateData.RQDTL.CUS_ONAM = customer.OName;
            //updateData.RQDTL.CUS_ENAM = customer.EName;
            //updateData.RQDTL.ADDR = customer.Address;
            //updateData.RQDTL.TEL_NO = customer.TeleNO;
            //updateData.RQDTL.MBL_NO = customer.MobileNO;
            updateData.RQDTL.IsDelete = true;
            try
            {
                return PreProcessReqMsg(updateData, ref codemsg);
            }
            catch (Exception ex)
            {
                throw new Exception(MESSAGE_ENCODE_EXCEPTION, ex);
            }
        }