Exemple #1
0
        public void GetParcelsFromPoints()
        {
            List <StorePlace> storePlaces;

            Parcel[]      parcels;
            List <Parcel> allParcels = new List <Parcel>();

            storePlaces = _storePlaceManager.GetAll();
            foreach (var point in storePlaces)
            {
                if (point.Type == 1)
                {
                    parcels = _parcelManager.GetParcelsByStorePlace(point);
                    foreach (var parcel in parcels)
                    {
                        _parcelManager.ChangeParcelStorePlace(parcel, storePlace.Id);
                        _parcelManager.ChangeParcelStatus(parcel, Model.Enums.ParcelStatus.InWarehouse);
                        //allParcels.Add(parcel);
                    }
                }
            }

            /*foreach (var par in allParcels)
             * {
             *  _parcelManager.ChangeParcelStorePlace(par, storePlace.Id);
             * }*/
        }
Exemple #2
0
 public List <StorePlace> GetAll() => _storePlaceManager.GetAll();