示例#1
0
        /// <summary>
        /// Execute convert ouput.
        /// </summary>
        /// <param name="resultObject">DataModel</param>
        /// <returns>ResponseModel</returns>
        private CheckoutResponseModel Convert(InitDataModel resultObject)
        {
            // Local variable declaration
            CheckoutResponseModel responseModel = null;

            // Variable initialize
            responseModel = new CheckoutResponseModel();

            responseModel.AcceptSlipNo = resultObject.AcceptSlipNo;

            return responseModel;
        }
示例#2
0
        /// <summary>
        /// Execute processing.
        /// </summary>
        /// <param name="request">RequestModel</param>
        /// <returns>ResponseModel</returns>
        private CheckoutResponseModel Execute(CheckoutRequestModel request)
        {
            // Local variable declaration
            CheckoutResponseModel responseModel = null;
            InitDataModel inputObject = null;
            InitDataModel resultObject = new InitDataModel();
            // Variable initialize
            responseModel = new CheckoutResponseModel();

            // Execute convert input.
            inputObject = Convert(request);

            ClientCheckoutDao checkoutDao = new ClientCheckoutDao();
            resultObject.AcceptSlipNo = checkoutDao.makeCheckout(inputObject.Accept, inputObject.Cart);

            // Send mail
            //SendEmail(inputObject.Accept.ClientCd, inputObject.Accept.AcceptSlipNo);

            // Execute convert ouput.
            responseModel = Convert(resultObject);

            return responseModel;
        }