示例#1
0
        private void receivingToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var receiving = new Receiving(_connection, _command, _empName, _pId);

            receiving.Closed += (s, args) => Close();
            receiving.Show();
        }
示例#2
0
        /* Permission Group Name Reference
         * 1. Warehouse Employee
         * 2. Receiving
         * 3. Shipping
         * 4. Operations Supervisor
         * 5. Warehouse Manager
         * 6. Administrator
         */
        private void InvokeForm(string formName, string empName)
        {
            Hide();

            //Invoking Inventory Form's Constructor
            if (formName == "Warehouse Employee")
            {
                var warehouse = new Inventory(_connection, _command, empName);
                warehouse.Closed += (s, args) => Close();
                warehouse.Show();
            }
            //Invoking Receiving Form's Constructor
            if (formName == "Receiving")
            {
                var receiving = new Receiving(_connection, _command, empName);
                receiving.Closed += (s, args) => Close();
                receiving.Show();
            }
            //Invoking Shipping Form's Constructor
            if (formName == "Shipping")
            {
                var shipping = new Shipping(_connection, _command, empName);
                shipping.Closed += (s, args) => Close();
                shipping.Show();
            }
        }
示例#3
0
        /* Permission Group Name Reference
         * 1. Warehouse Employee
         * 2. Receiving
         * 3. Shipping
         * 4. Operations Supervisor - History
         * 5. Warehouse Manager		- History
         * 6. Administrator			- History
         */
        private void InvokeForm(string formName, string empName, int pid)
        {
            Hide();

            //Invoking Inventory Form's Constructor
            if (formName == "Warehouse Employee")
            {
                var warehouse = new Inventory(_connection, _command, empName, pid);
                warehouse.Closed += (s, args) => Close();
                warehouse.Show();
            }
            //Invoking Receiving Form's Constructor
            if (formName == "Receiving")
            {
                var receiving = new Receiving(_connection, _command, empName, pid);
                receiving.Closed += (s, args) => Close();
                receiving.Show();
            }
            //Invoking Shipping Form's Constructor
            if (formName == "Shipping")
            {
                var shipping = new Shipping(_connection, _command, empName, pid);
                shipping.Closed += (s, args) => Close();
                shipping.Show();
            }
            //Invoking Operations Supervisor Form's Constructor
            if (formName == "Operations Supervisor")
            {
                var history = new History(_connection, _command, empName, pid);
                history.Closed += (s, args) => Close();
                history.Show();
            }
            //Invoking Warehouse Manager Form's Constructor
            if (formName == "Warehouse Manager")
            {
                var history = new History(_connection, _command, empName, pid);
                history.Closed += (s, args) => Close();
                history.Show();
            }
            //Invoking Administrator Form's Constructor
            if (formName == "Administrator")
            {
                var history = new History(_connection, _command, empName, pid);
                history.Closed += (s, args) => Close();
                history.Show();
            }
        }
示例#4
0
 private void btnRec_Click(object sender, EventArgs e)
 {
     var recForm = new Receiving {
         Visible = true
     };
 }