예제 #1
0
        public QueryPaymentResultResp S1_002(QueryPaymentResultReq queryPaymentResultReq)
        {
            Stopwatch sw = new Stopwatch();

            sw.Start();

            try
            {
                string strQPRReq = LogHelper.GetObjectMemberString(queryPaymentResultReq);
                string strLog    = String.Format("Req:{0}:{{{1}}}", RequestIP, strQPRReq);
                _log.Info(strLog);
            }
            catch (Exception ex)
            {
                string strLogErr = String.Format("Req Log Exception:{0}", ex.Message);
                _log.Error(strLogErr);
            }

            QueryPaymentResultResp qprResponce = new QueryPaymentResultResp();

            try
            {
                StationOrderPayResultRequestVo stationOrderPayResultRequestVo = new StationOrderPayResultRequestVo();
                stationOrderPayResultRequestVo.ReqSysDateString = queryPaymentResultReq.reqSysDate;
                stationOrderPayResultRequestVo.operationCode    = queryPaymentResultReq.operationCode;
                stationOrderPayResultRequestVo.cityCode         = queryPaymentResultReq.cityCode;
                stationOrderPayResultRequestVo.DeviceId         = queryPaymentResultReq.deviceId;
                stationOrderPayResultRequestVo.channelType      = queryPaymentResultReq.channelType;
                stationOrderPayResultRequestVo.expandAttribute  = queryPaymentResultReq.expandAttribute;
                stationOrderPayResultRequestVo.orderNo          = queryPaymentResultReq.orderNo;

                StationOrderBo bo = new StationOrderBo();

                StationOrderPayResultRespondVo stationOrderPayResultRespondVo = bo.PayResultQuery(stationOrderPayResultRequestVo);
                qprResponce.respCode       = stationOrderPayResultRespondVo.RespondCodeString;
                qprResponce.respCodeMemo   = stationOrderPayResultRespondVo.respCodeMemo;
                qprResponce.paymentDate    = stationOrderPayResultRespondVo.paymentDateString;
                qprResponce.amount         = stationOrderPayResultRespondVo.amount.ToString();
                qprResponce.paymentAccount = stationOrderPayResultRespondVo.paymentAccount;
                qprResponce.paymentResult  = stationOrderPayResultRespondVo.paymentResult;
                qprResponce.paymentDesc    = stationOrderPayResultRespondVo.paymentDesc;
            }
            catch (Exception ex)
            {
                _log.Error(ex.Message);
                if (null != ex.InnerException)
                {
                    _log.Error(ex.InnerException.Message);
                }
            }

            try
            {
                string strQPRResp = LogHelper.GetObjectMemberString(qprResponce);
                string strLog     = String.Format("Resp:{{{0}}}", strQPRResp);

                _log.Info(strLog);
            }
            catch (Exception ex)
            {
                string strLogErr = String.Format("Resp Log Exception:{0}", ex.Message);
                _log.Error(strLogErr);
            }

            sw.Stop();
            TimeSpan ts = sw.Elapsed;

            _log.Debug(ts.TotalMilliseconds);

            return(qprResponce);
        }
예제 #2
0
        public OrderExecuteFaultResp S1_005(OrderExecuteFaultReq orderExecuteFaultReq)
        {
            Stopwatch sw = new Stopwatch();

            sw.Start();

            try
            {
                string strOEFReq = LogHelper.GetObjectMemberString(orderExecuteFaultReq);
                string strLog    = String.Format("Req:{0}:{{{1}}}", RequestIP, strOEFReq);
                _log.Info(strLog);
            }
            catch (Exception ex)
            {
                string strLogErr = String.Format("Req Log Exception:{0}", ex.Message);
                _log.Error(strLogErr);
            }

            OrderExecuteFaultResp oefResponce = new OrderExecuteFaultResp();

            oefResponce.respCode = "0004";
            try
            {
                if (orderExecuteFaultReq.orderNo.StartsWith("W") || orderExecuteFaultReq.orderNo.StartsWith("w"))
                {
                    WebOrderTakenErrRequestVo newWebOrderTakenErrRequestVo = new WebOrderTakenErrRequestVo();
                    newWebOrderTakenErrRequestVo.ReqSysDateString     = orderExecuteFaultReq.reqSysDate;
                    newWebOrderTakenErrRequestVo.operationCode        = orderExecuteFaultReq.operationCode;
                    newWebOrderTakenErrRequestVo.cityCode             = orderExecuteFaultReq.cityCode;
                    newWebOrderTakenErrRequestVo.DeviceId             = orderExecuteFaultReq.deviceId;
                    newWebOrderTakenErrRequestVo.channelType          = orderExecuteFaultReq.channelType;
                    newWebOrderTakenErrRequestVo.expandAttribute      = orderExecuteFaultReq.expandAttribute;
                    newWebOrderTakenErrRequestVo.orderNo              = orderExecuteFaultReq.orderNo;
                    newWebOrderTakenErrRequestVo.takeSingleTicketNum  = orderExecuteFaultReq.takeSingleTicketNum.ToString();
                    newWebOrderTakenErrRequestVo.faultOccurDateString = orderExecuteFaultReq.faultOccurDate;
                    newWebOrderTakenErrRequestVo.faultSlipSeq         = orderExecuteFaultReq.faultSlipSeq;
                    newWebOrderTakenErrRequestVo.errorCode            = orderExecuteFaultReq.erroCode;
                    newWebOrderTakenErrRequestVo.errorMessage         = orderExecuteFaultReq.errorMessage;

                    WebPreOrderBo             bo = new WebPreOrderBo();
                    WebOrderTakenErrRespondVo webOrderTakenErrRespondVo = bo.WebOrderTakenErr(newWebOrderTakenErrRequestVo);
                    oefResponce.respCode     = webOrderTakenErrRespondVo.RespondCodeString;
                    oefResponce.respCodeMemo = webOrderTakenErrRespondVo.respCodeMemo;
                }
                else if (orderExecuteFaultReq.orderNo.StartsWith("S") || orderExecuteFaultReq.orderNo.StartsWith("s"))
                {
                    StationOrderTakenErrRequestVo stationOrderTakenErrRequestVo = new StationOrderTakenErrRequestVo();
                    stationOrderTakenErrRequestVo.ReqSysDateString     = orderExecuteFaultReq.reqSysDate;
                    stationOrderTakenErrRequestVo.operationCode        = orderExecuteFaultReq.operationCode;
                    stationOrderTakenErrRequestVo.cityCode             = orderExecuteFaultReq.cityCode;
                    stationOrderTakenErrRequestVo.DeviceId             = orderExecuteFaultReq.deviceId;
                    stationOrderTakenErrRequestVo.channelType          = orderExecuteFaultReq.channelType;
                    stationOrderTakenErrRequestVo.expandAttribute      = orderExecuteFaultReq.expandAttribute;
                    stationOrderTakenErrRequestVo.orderNo              = orderExecuteFaultReq.orderNo;
                    stationOrderTakenErrRequestVo.takeSingleTicketNum  = orderExecuteFaultReq.takeSingleTicketNum.ToString();
                    stationOrderTakenErrRequestVo.faultOccurDateString = orderExecuteFaultReq.faultOccurDate;
                    stationOrderTakenErrRequestVo.errorCode            = orderExecuteFaultReq.erroCode;
                    stationOrderTakenErrRequestVo.errorMessage         = orderExecuteFaultReq.errorMessage;

                    StationOrderBo bo = new StationOrderBo();
                    StationOrderTakenErrRespondVo stationOrderTakenErrRespondVo = bo.StationOrderTakenErr(stationOrderTakenErrRequestVo);
                    oefResponce.respCode     = stationOrderTakenErrRespondVo.RespondCodeString;
                    oefResponce.respCodeMemo = stationOrderTakenErrRespondVo.respCodeMemo;
                }
            }
            catch (Exception ex)
            {
                _log.Error(ex.Message);
                if (null != ex.InnerException)
                {
                    _log.Error(ex.InnerException.Message);
                }
            }

            try
            {
                string strOEFResp = LogHelper.GetObjectMemberString(oefResponce);
                string strLog     = String.Format("Resp:{{{0}}}", strOEFResp);

                _log.Info(strLog);
            }
            catch (Exception ex)
            {
                string strLogErr = String.Format("Resp Log Exception:{0}", ex.Message);
                _log.Error(strLogErr);
            }

            sw.Stop();
            TimeSpan ts = sw.Elapsed;

            _log.Debug(ts.TotalMilliseconds);

            return(oefResponce);
        }
예제 #3
0
        public OrderCommitResp S1_001(OrderCommitReq orderCommitReq)
        {
            Stopwatch sw = new Stopwatch();

            sw.Start();

            try
            {
                string strOCReq = LogHelper.GetObjectMemberString(orderCommitReq);
                string strLog   = String.Format("Req:{0}:{{{1}}}", RequestIP, strOCReq);
                _log.Info(strLog);
            }
            catch (Exception ex)
            {
                string strLogErr = String.Format("Req Log Exception:{0}", ex.Message);
                _log.Error(strLogErr);
            }

            OrderCommitResp ocResponce = new OrderCommitResp();

            try
            {
                StationOrderPayRequestVo stationOrderPayRequestVo = new StationOrderPayRequestVo();
                stationOrderPayRequestVo.ReqSysDateString   = orderCommitReq.reqSysDate;
                stationOrderPayRequestVo.operationCode      = orderCommitReq.operationCode;
                stationOrderPayRequestVo.cityCode           = orderCommitReq.cityCode;
                stationOrderPayRequestVo.DeviceId           = orderCommitReq.deviceId;
                stationOrderPayRequestVo.channelType        = orderCommitReq.channelType;
                stationOrderPayRequestVo.expandAttribute    = orderCommitReq.expandAttribute;
                stationOrderPayRequestVo.paymentCode        = orderCommitReq.paymentCode;
                stationOrderPayRequestVo.msisdn             = orderCommitReq.msisdn;
                stationOrderPayRequestVo.iccid              = orderCommitReq.iccid;
                stationOrderPayRequestVo.serviceId          = orderCommitReq.serviceId;
                stationOrderPayRequestVo.paymentVendor      = orderCommitReq.paymentVendor;
                stationOrderPayRequestVo.pickupStationCode  = orderCommitReq.pickupStationCode;
                stationOrderPayRequestVo.getOffStationCode  = orderCommitReq.getOffStationCode;
                stationOrderPayRequestVo.singlelTicketPrice = Convert.ToInt32(orderCommitReq.singleTicketPrice);
                stationOrderPayRequestVo.singlelTicketNum   = Convert.ToInt32(orderCommitReq.singleTicketNum);
                stationOrderPayRequestVo.singleTicketType   = orderCommitReq.singleTicketType;

                StationOrderBo           bo = new StationOrderBo();
                StationOrderPayRespondVo stationOrderRespondVo = bo.OrderPay(stationOrderPayRequestVo);
                ocResponce.respCode        = stationOrderRespondVo.RespondCodeString;
                ocResponce.respCodeMemo    = stationOrderRespondVo.respCodeMemo;
                ocResponce.expandAttribute = stationOrderRespondVo.expandAttribute;
                ocResponce.partnerNo       = stationOrderRespondVo.partnerNo;
                ocResponce.orderNo         = stationOrderRespondVo.orderNo;
                ocResponce.subject         = stationOrderRespondVo.subject;
                ocResponce.body            = stationOrderRespondVo.body;
                ocResponce.payType         = stationOrderRespondVo.payType;
                ocResponce.amount          = stationOrderRespondVo.amount;
                ocResponce.account         = stationOrderRespondVo.account;
                ocResponce.notifyUrl       = stationOrderRespondVo.notifyUrl;
                ocResponce.merchantCert    = stationOrderRespondVo.merchantCert;
                ocResponce.timeout         = stationOrderRespondVo.timeout;
            }
            catch (Exception ex)
            {
                _log.Error(ex.Message);
                if (null != ex.InnerException)
                {
                    _log.Error(ex.InnerException.Message);
                }
            }

            try
            {
                string strOCResp = LogHelper.GetObjectMemberString(ocResponce);
                string strLog    = String.Format("Resp:{{{0}}}", strOCResp);

                _log.Info(strLog);
            }
            catch (Exception ex)
            {
                string strLogErr = String.Format("Resp Log Exception:{0}", ex.Message);
                _log.Error(strLogErr);
            }

            sw.Stop();
            TimeSpan ts = sw.Elapsed;

            _log.Debug(ts.TotalMilliseconds);

            return(ocResponce);
        }