Example #1
0
        private void GetCurrentPipelineSection()
        {
            // select pipeline section to execute based on order status
            switch (Order.Status)
            {
            case 0:
                CurrentPipelineSection = new PSInitialNotification();
                break;

            case 1:
                CurrentPipelineSection = new PSCheckFunds();
                break;

            case 2:
                CurrentPipelineSection = new PSCheckStock();
                break;

            case 3:
                CurrentPipelineSection = new PSStockOK();
                break;

            case 4:
                CurrentPipelineSection = new PSTakePayment();
                break;

            case 5:
                CurrentPipelineSection = new PSShipGoods();
                break;

            case 6:
                CurrentPipelineSection = new PSShipOK();
                break;

            case 7:
                CurrentPipelineSection = new PSFinalNotification();
                break;

            case 8:
                throw new OrderProcessorException(
                          "Order has already been completed.", 100);

            default:
                throw new OrderProcessorException(
                          "Unknown pipeline section requested.", 100);
            }
        }
Example #2
0
        private void GetCurrentPipeLineSection()
        {
            switch (OrderInfo.StatusId)
            {
            case 0:
                this._currentPipelineSection = new PsInitialNotification();
                break;

            case 1:
                this._currentPipelineSection = new PsCheckFunds();
                break;

            case 2:
                this._currentPipelineSection = new PsCheckStock();
                break;

            case 3:
                this._currentPipelineSection = new PsCheckFunds();
                break;

            case 4:
                this._currentPipelineSection = new PsStockOk();
                break;

            case 5:
                this._currentPipelineSection = new PsTakePayment();
                break;

            case 6:
                this._currentPipelineSection = new PsShipGood();
                break;

            case 7:
                this._currentPipelineSection = new PsShipOk();
                break;

            case 8:
                this._currentPipelineSection = new PsFinalNotification();
                break;
            }
        }
Example #3
0
        private void GetCurrentPipelineSection()
        {
            // select pipeline section to execute based on order status
              switch (Order.Status)
              {
            case 0:
              CurrentPipelineSection = new PSInitialNotification();
              break;
            case 1:
              CurrentPipelineSection = new PSCheckFunds();
              break;
            case 2:
              CurrentPipelineSection = new PSCheckStock();
              break;
            case 3:
              CurrentPipelineSection = new PSStockOK();
              break;
            case 4:
              CurrentPipelineSection = new PSTakePayment();
              break;

            case 5:
              CurrentPipelineSection = new PSShipGoods();
              break;
            case 6:
              CurrentPipelineSection = new PSShipOK();
              break;
            case 7:
              CurrentPipelineSection = new PSFinalNotification();
              break;
            case 8:
              throw new OrderProcessorException(
            "Order has already been completed.", 100);
            default:
              throw new OrderProcessorException(
            "Unknown pipeline section requested.", 100);
              }
        }
Example #4
0
 private void GetCurrentPipelineSection()
 {
     // select pipeline section to execute based on order status
     // for now just provide a dummy
     CurrentPipelineSection = new PSDummy();
 }
Example #5
0
 private void GetCurrentPipelineSection()
 {
     // select pipeline section to execute based on order status
       // for now just provide a dummy
       CurrentPipelineSection = new PSDummy();
 }