Ejemplo n.º 1
0
        private void btnStockInventorySum_Click(object sender, EventArgs e)
        {
            StockSummaryForm SummaryForm = new StockSummaryForm(Home);

            if (objCurrentUser.canView(SummaryForm))
            {
                Home.MdiChildren.Last <Form>().Close();

                SummaryForm.MdiParent = Home;
                SummaryForm.Show();
            }
            else
            {
                SummaryForm.Dispose();
                MessageBox.Show("You do not have access for the Stock Inventory Sum Form.\nContact your local Stockiest.");
            }
        }
Ejemplo n.º 2
0
        private void btnRepStockRawMaterials_Click(object sender, EventArgs e)
        {
            StockSummaryForm formStock = new StockSummaryForm(Home);

            if (objCurrentUser.canView(formStock))
            {
                Home.MdiChildren.Last <Form>().Close();

                formStock.MdiParent = Home;
                formStock.Show();
            }
            else
            {
                formStock.Dispose();
                MessageBox.Show("You do not have access for the Stock View Form.\nContact your local Stockiest or Report Manager.");
            }
        }
Ejemplo n.º 3
0
        private void btnRepQualifiedProducts_Click(object sender, EventArgs e)
        {
            ViewQualifiedProducts vqpForm = new ViewQualifiedProducts();

            StockSummaryForm formStock = new StockSummaryForm(Home);

            if (objCurrentUser.canView(vqpForm))
            {
                Home.MdiChildren.Last <Form>().Close();

                vqpForm.MdiParent = Home;
                vqpForm.Show();
            }
            else
            {
                vqpForm.Dispose();
                MessageBox.Show("You do not have access for the Qualified Products Form.\nContact your local Product or Report Manager.");
            }
        }