示例#1
0
 public void Process(OrderProcessor processor)
 {
     // set processor reference
       orderProcessor = processor;
       // audit
       orderProcessor.CreateAudit("PSShipGoods started.", 20500);
       try
       {
     // send mail to supplier
     orderProcessor.MailSupplier("BalloonShop ship goods.",
       GetMailBody());
     // audit
     orderProcessor.CreateAudit(
       "Ship goods e-mail sent to supplier.", 20502);
     // update order status
     orderProcessor.Order.UpdateStatus(6);
       }
       catch
       {
     // mail sending failure
     throw new OrderProcessorException(
       "Unable to send e-mail to supplier.", 5);
       }
       // audit
       processor.CreateAudit("PSShipGoods finished.", 20501);
 }
示例#2
0
        public void Process(OrderProcessor processor)
        {
            // set processor reference
            orderProcessor = processor;
            // audit
            orderProcessor.CreateAudit("PSCheckStock started.", 20200);

            try
            {
                // send mail to supplier
                orderProcessor.MailSupplier("BalloonShop stock check.",
                                            GetMailBody());
                // audit
                orderProcessor.CreateAudit(
                    "Notification e-mail sent to supplier.", 20202);
                // update order status
                orderProcessor.Order.UpdateStatus(3);
            }
            catch
            {
                // mail sending failure
                throw new OrderProcessorException(
                          "Unable to send e-mail to supplier.", 2);
            }
            // audit
            processor.CreateAudit("PSCheckStock finished.", 20201);
        }
示例#3
0
        public void Process(OrderProcessor processor)
        {
            // set processor reference
              orderProcessor = processor;
              // audit
              orderProcessor.CreateAudit("PSCheckStock started.", 20200);

              try
              {
            // send mail to supplier
            orderProcessor.MailSupplier("BalloonShop stock check.",
              GetMailBody());
            // audit
            orderProcessor.CreateAudit(
              "Notification e-mail sent to supplier.", 20202);
            // update order status
            orderProcessor.Order.UpdateStatus(3);
              }
              catch
              {
            // mail sending failure
            throw new OrderProcessorException(
              "Unable to send e-mail to supplier.", 2);
              }
              // audit
              processor.CreateAudit("PSCheckStock finished.", 20201);
        }
示例#4
0
 public void Process(OrderProcessor processor)
 {
     // set processor reference
     orderProcessor = processor;
     // audit
     orderProcessor.CreateAudit("PSShipGoods started.", 20500);
     try
     {
         // send mail to supplier
         orderProcessor.MailSupplier("BalloonShop ship goods.",
                                     GetMailBody());
         // audit
         orderProcessor.CreateAudit(
             "Ship goods e-mail sent to supplier.", 20502);
         // update order status
         orderProcessor.Order.UpdateStatus(6);
     }
     catch
     {
         // mail sending failure
         throw new OrderProcessorException(
                   "Unable to send e-mail to supplier.", 5);
     }
     // audit
     processor.CreateAudit("PSShipGoods finished.", 20501);
 }