Ejemplo n.º 1
0
        private void totalValueToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //15
            frmDataGrid objGrid = new frmDataGrid
            {
                FunctionID = 16,
                Text       = "Company Valuation",
                UserIDs    = UserID,
                MdiParent  = this,
                Dock       = DockStyle.Fill
            };

            objGrid.Show();
            splitContainer1.Panel2.Controls.Add(objGrid);
            objGrid.BringToFront();
        }
Ejemplo n.º 2
0
        private void shopSalesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //14
            frmDataGrid objGrid = new frmDataGrid
            {
                FunctionID = 14,
                Text       = "Shop Sales",
                UserIDs    = UserID,
                MdiParent  = this,
                Dock       = DockStyle.Fill
            };

            objGrid.Show();
            splitContainer1.Panel2.Controls.Add(objGrid);
            objGrid.BringToFront();
        }
Ejemplo n.º 3
0
        private void allStockToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // To Load all stock item records from the database
            // 5
            frmDataGrid objGrid = new frmDataGrid
            {
                FunctionID = 5,
                Text       = "All Stock",
                UserIDs    = UserID,
                MdiParent  = this,
                Dock       = DockStyle.Fill
            };

            objGrid.Show();
            splitContainer1.Panel2.Controls.Add(objGrid);
            objGrid.BringToFront();
        }
Ejemplo n.º 4
0
        private void currentStockToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // Only to retreieve the current stock from the database
            // 4
            frmDataGrid objGrid = new frmDataGrid
            {
                FunctionID = 4,
                Text       = "Current Stock",
                UserIDs    = UserID,
                MdiParent  = this,
                Dock       = DockStyle.Fill
            };

            objGrid.Show();
            splitContainer1.Panel2.Controls.Add(objGrid);
            objGrid.BringToFront();
        }
Ejemplo n.º 5
0
        private void suppliersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // To load Supplier records from the database
            // 3
            frmDataGrid objGrid = new frmDataGrid
            {
                FunctionID = 3,
                Text       = "Suppliers",
                UserIDs    = UserID,
                MdiParent  = this,
                Dock       = DockStyle.Fill
            };

            objGrid.Show();
            splitContainer1.Panel2.Controls.Add(objGrid);
            objGrid.BringToFront();
        }
Ejemplo n.º 6
0
        private void purchaseOrdersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // To load all purchase orders
            // 7
            frmDataGrid objGrid = new frmDataGrid
            {
                FunctionID = 7,
                Text       = "Purchase Orders",
                UserIDs    = UserID,
                MdiParent  = this,
                Dock       = DockStyle.Fill
            };

            objGrid.Show();
            splitContainer1.Panel2.Controls.Add(objGrid);
            objGrid.BringToFront();
        }
Ejemplo n.º 7
0
        private void seasonsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // Get all season names from the database
            // 6
            frmDataGrid objGrid = new frmDataGrid
            {
                FunctionID = 6,
                Text       = "Seasons",
                UserIDs    = UserID,
                MdiParent  = this,
                Dock       = DockStyle.Fill
            };

            objGrid.Show();
            splitContainer1.Panel2.Controls.Add(objGrid);
            objGrid.BringToFront();
        }