Ejemplo n.º 1
0
        public void saveSystemInformationFromFile()
        {
            WarehouseData restServiceData = new WarehouseData();

            restServiceData._shippedReplenishmentRequests = _shippedReplenishmentRequests;
            restServiceData._replenishmentRequests        = _replenishmentRequests;

            Utils.SaveObjectToFileAsBinary(restServiceData, informationFileName);
        }
Ejemplo n.º 2
0
        public void loadSystemInformationFromFile()
        {
            WarehouseData restServiceData = (WarehouseData)Utils.LoadObjectToFileAsBinary(informationFileName);

            if (restServiceData == null)
            {
                return;
            }

            _shippedReplenishmentRequests = restServiceData._shippedReplenishmentRequests;
            _replenishmentRequests        = restServiceData._replenishmentRequests;
            foreach (ReplenishmentRequest replenishmentRequest in _replenishmentRequests)
            {
                _gui.OnNewReplenishmentRequest(replenishmentRequest);
            }
        }