Example #1
0
 public bool CheckNumber(Order order, ref OrderExamineApproveManagerHanlder manager)
 {
     if (order.Items.Any(item => item.Number > 10) ? false : true)
     {
         manager -= this.CheckNumber;
         return(true);
     }
     return(false);
 }
Example #2
0
 public bool CheckPrices(Order order, ref OrderExamineApproveManagerHanlder manager)
 {
     if (order.Items.Any(item => item.Product.Price <= 0) ? false : true)
     {
         manager -= this.CheckPrices;//将自己从流程中处理移除
         return(true);
     }
     return(false);
 }
Example #3
0
 public bool SignAndRecord(Order order, ref OrderExamineApproveManagerHanlder manager)
 {
     manager -= this.SignAndRecord;
     return(true);
 }
Example #4
0
 public bool FinalConfirm(Order order, ref OrderExamineApproveManagerHanlder manager)
 {
     manager -= this.FinalConfirm;
     return(true);
 }
Example #5
0
 public bool SendEmailNotice(Order order, ref OrderExamineApproveManagerHanlder manager)
 {
     manager -= this.SendEmailNotice;
     return(true);
 }
Example #6
0
 public bool CallPhoneConfirm(Order order, ref OrderExamineApproveManagerHanlder manager)
 {
     manager -= this.CallPhoneConfirm;
     return(true);
 }