예제 #1
0
 protected virtual void Out(List<SkuInfo> invs, Bill bill)
 {
     foreach (SkuInfo item in bill.skus)
     {
         Out(invs, item);
     }
 }
예제 #2
0
 public void DealBills(List<SkuInfo> invs, Bill bill)
 {
     switch (bill.Direction)
     {
         case DirectionEnum.In:
             InInv(invs, bill);
             break;
         default:
             Out(invs, bill);
             break;
     }
 }
예제 #3
0
 protected virtual void InInv(List<SkuInfo> invs, Bill bill)
 {
     invs.AddRange(bill.ToSkuInfo());
 }