/// <summary> /// 新增客户接口 /// </summary> /// <param name="tellerNO">操作柜员号</param> /// <param name="organNO">操作柜员所属机构号</param> /// <param name="tradeDate">业务发生时间</param> /// <param name="customer">客户新增的数据对象</param> public static Guid AddCustomer(String tellerNO, String organNO, DateTime tradeDate, ref byte[] codemsg, CoreCustomerBrief customer) { AddCstmData addData = new AddCstmData(); addData.RQhdrHandler.SYS_TXID = "300013"; // 新增,主机启动原交易码 addData.RQhdrHandler.TX_OUNO = organNO; addData.RQhdrHandler.TEL_ID = tellerNO; addData.RQhdrHandler.TX_MODE = "0"; addData.RQhdrHandler.TX_DTE = tradeDate.ToString("yyyy-MM-dd"); addData.RQhdrHandler.SRV_JNO = CommonDataHelper.SpaceString(12); addData.RQhdrHandler.SRV_REV_JNO = CommonDataHelper.SpaceString(12); addData.RQhdrHandler.HOST_JNO = CommonDataHelper.SpaceString(11); addData.RQDTL.CUS_NO = customer.CstmNO; addData.RQDTL.CUS_NAM = customer.CName; addData.RQDTL.CUS_ONAM = customer.OName; addData.RQDTL.CUS_ENAM = customer.EName; addData.RQDTL.ADDR = customer.Address; addData.RQDTL.TEL_NO = customer.TeleNO; addData.RQDTL.MBL_NO = customer.MobileNO; addData.RQDTL.ZIP = customer.ZIP; return MsgTransfer.CodeMsgToBinary(addData, ref codemsg); }
/// <summary> /// 新增客户接口 /// </summary> /// <param name="tellerNO">操作柜员号</param> /// <param name="organNO">操作柜员所属机构号</param> /// <param name="tradeDate">业务发生时间</param> /// <param name="customer">客户新增的数据对象</param> public static Guid AddCustomer(String tellerNO, String organNO, DateTime tradeDate, ref byte[] codemsg, CoreCustomerBrief customer) { AddCstmData addData = new AddCstmData(); addData.RQhdrHandler.SYS_TXID = "300013"; // 新增,主机启动原交易码 addData.RQhdrHandler.TX_OUNO = organNO; addData.RQhdrHandler.TEL_ID = tellerNO; addData.RQhdrHandler.TX_MODE = "0"; addData.RQhdrHandler.TX_DTE = tradeDate.ToString("yyyy-MM-dd"); addData.RQhdrHandler.SRV_JNO = CommonDataHelper.SpaceString(12); addData.RQhdrHandler.SRV_REV_JNO = CommonDataHelper.SpaceString(12); addData.RQhdrHandler.HOST_JNO = CommonDataHelper.SpaceString(11); addData.RQDTL.CUS_NO = customer.CstmNO; addData.RQDTL.CUS_NAM = customer.CName; addData.RQDTL.CUS_ONAM = customer.OName; addData.RQDTL.CUS_ENAM = customer.EName; addData.RQDTL.ADDR = customer.Address; addData.RQDTL.TEL_NO = customer.TeleNO; addData.RQDTL.MBL_NO = customer.MobileNO; addData.RQDTL.ZIP = customer.ZIP; try { return PreProcessReqMsg(addData, ref codemsg); } catch (Exception ex) { throw new Exception(MESSAGE_ENCODE_EXCEPTION, ex); } }