示例#1
0
        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;
        }
示例#2
0
 public HomeController(IUPSRepository upsRepository)
 {
     this.upsRepository = upsRepository;
 }
 public AddUpsController(IUPSRepository upsRepository)
 {
     this.upsRepository = upsRepository;
 }