コード例 #1
0
        public static string GetLocation(wmsBrand Brand, string Isle, string Bay, string Shelf, string Position)
        {
            if (Brand == wmsBrand.NextWMS)
            {
                throw new NotImplementedException();
            }
            else if (Brand == wmsBrand.CurrentWMS)
            {
                return($"{Isle}-{Bay}-{Shelf}-{Position}");
            }

            throw new NotSupportedException("That WMS brand does not exist.");
        }
コード例 #2
0
        public DynamicStartingConfig()
        {
            var firstIsle             = ConfigurationManager.AppSettings["FirstIsle"].ToString();
            var lastIsle              = ConfigurationManager.AppSettings["LastIsle"].ToString();
            var fulfillmentCenterName = ConfigurationManager.AppSettings["FulfillmentCenterName"].ToString();
            var wms       = ConfigurationManager.AppSettings["WMS"].ToString();
            var oddIsles  = ConfigurationManager.AppSettings["OddIsles"].ToString();
            var evenIsles = ConfigurationManager.AppSettings["EvenIsles"].ToString();

            FirstIsle = GetFirstLastIsle(firstIsle, true);
            LastIsle  = GetFirstLastIsle(lastIsle, false);

            FCName = fulfillmentCenterName;

            OddIsles  = GetIslesList(oddIsles, true);
            EvenIsles = GetIslesList(evenIsles, false);

            BrandInUse = GetWmsBrand(wms);
        }
コード例 #3
0
        public Warehouse(string warehouseName, wmsBrand warehouseSystem, int isleMin, int isleMax, List <int> oddIsles, List <int> evenIsles)
        {
            warehouse = warehouseName;
            wmsBrand  = warehouseSystem;

            isleBayConfiguration config = isleBayConfiguration.All;

            for (int i = isleMin; i <= isleMax; i++)
            {
                if (oddIsles.Contains(i))
                {
                    config = isleBayConfiguration.Odd;
                }
                else if (evenIsles.Contains(i))
                {
                    config = isleBayConfiguration.Even;
                }
                else
                {
                    config = isleBayConfiguration.All;
                }
                isles.Add(new Isle(this, i, config));
            }
        }