예제 #1
0
        public WarehouseForm(Form parent, ShippingSystem sm)
        {
            InitializeComponent();
            parentForm = parent;
            shippingSystem = sm;
            em = shippingSystem.LoggedInEmployee as WarehouseEmployee;
            currentWarehouse = em.CurrentLocation as Warehouse;
            currentStoreFront = em.CurrentLocation as StoreFront;

            updateReceivingListBox();
            updateVehiclesListBox();

            if (currentStoreFront != null)
                Text = currentStoreFront.Id;
            else
                Text = currentWarehouse.Id;
        }
 public bool addStoreFront(string id, string streetAddress, string zipcode)
 {
     Address a = new Address(id, streetAddress, zipcode);
     StoreFront sf = new StoreFront(a);
     if (locations.Contains(sf))
         return false;
     locations.Add(sf);
     return true;
 }
 public bool addAcceptanceEmployee(string firstName, string middleName, string lastName, string id, string plainTextPassword, StoreFront s)
 {
     AcceptanceEmployee a = new AcceptanceEmployee(firstName, middleName, lastName, id, plainTextPassword);
     a.CurrentStoreFront = s;
     return addEmployee(a);
 }