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