Пример #1
0
 //具体请求处理方法
 public override void processRequest(PurchaseRequest request)
 {
     if (request.getAmount() < 80000)
     {
         Console.WriteLine("经理" + this.name + "审批采购单:" + request.getNumber() + ",金额:" + request.getAmount() + "元,采购目的:" + request.getPurpose() + "。");  //处理请求
     }
     else
     {
         this.successor.processRequest(request);  //转发请求
     }
 }
Пример #2
0
 //具体请求处理方法
 public override void processRequest(PurchaseRequest request)
 {
     Console.WriteLine("召开董事会审批采购单:" + request.getNumber() + ",金额:" + request.getAmount() + "元,采购目的:" + request.getPurpose() + "。");        //处理请求
 }