private UPSCombinePO assignPO(IUPSRepository upsRep,IProduct product) { //檢查是否有分配過 UPSCombinePO combinePO = upsRep.Find(product.ProId); if (combinePO == null) { combinePO = upsRep.GetAvailablePOWithTrans(product.Model, new List<string>{EnumUPSCombinePOStatus.Free.ToString(), EnumUPSCombinePOStatus.Release.ToString()}); } return combinePO; }
public HomeController(IUPSRepository upsRepository) { this.upsRepository = upsRepository; }
public AddUpsController(IUPSRepository upsRepository) { this.upsRepository = upsRepository; }