예제 #1
0
        public override BaseMessageResponse MeaasgeOperate()
        {
            Message121            responseMsg       = GetReponseMessage() as Message121;
            List <JG_SpvProtocol> jG_SpvProtocolLst = JG_SpvProtocolClient.Instance.GetProtocolByCondition(new JG_SpvProtocol()
            {
                SP_XYBH = PactNo
            });

            if (jG_SpvProtocolLst == null || jG_SpvProtocolLst.Count == 0)
            {
                responseMsg.ExceptionCode    = "03";
                responseMsg.ExceptionMessage = "监管银行错误";
                responseMsg.SerialNo         = BasicFunctionClient.Current.GetSerialNo();
                responseMsg.BusinessTime     = BasicFunctionClient.Current.GetServerTime().ToString(Common.SysConst.BUSINESSDATEFORMATE);
                return(responseMsg);
            }
            if (jG_SpvProtocolLst[0].SP_CorpName != CorpName)
            {
                responseMsg.ExceptionCode    = "02";
                responseMsg.ExceptionMessage = "企业名称错误";
                responseMsg.SerialNo         = BasicFunctionClient.Current.GetSerialNo();
                responseMsg.BusinessTime     = BasicFunctionClient.Current.GetServerTime().ToString(Common.SysConst.BUSINESSDATEFORMATE);
                return(responseMsg);
            }

            responseMsg.SerialNo      = BasicFunctionClient.Current.GetSerialNo();
            responseMsg.BusinessTime  = BasicFunctionClient.Current.GetServerTime().ToString(Common.SysConst.BUSINESSDATEFORMATE);
            responseMsg.ExceptionCode = "01";
            return(responseMsg);
        }
예제 #2
0
        public override BaseMessageResponse GetReponseMessage()
        {
            Message121 responseMsg = new Message121();

            responseMsg.BusinessCode = "121";
            responseMsg.BankCode     = BankCode;
            responseMsg.AccountName  = AccountName;
            responseMsg.Account      = Account;
            responseMsg.CorpName     = CorpName;
            responseMsg.CorpCode     = CorpCode;
            responseMsg.PactNo       = PactNo;
            return(responseMsg);
        }