예제 #1
0
        private void StartUp_Load(object sender, EventArgs e)
        {
            List <Product> data;
            ReportManager  report = new ReportManager();

            data = this.database.SelectAllProduct();
            DataTable source = report.reportProductWarehouse(data);

            ProductWarehouseDataGrid.DataSource = source;

            this.LoadCityMachinesDataGrid();

            List <Machine> data2;

            data2 = this.database.SelectAllMachine();
            MachineListAllDataGrid.DataSource = data2;

            List <Transactions> data3;
            ReportManager       report2 = new ReportManager();

            data3 = this.database.SelectAllTransactions();
            DataTable subtotals = report2.reportSalesByItem(data3);

            SalesProductGrid.DataSource = subtotals;

            treeView1.ExpandAll();
            treeView2.ExpandAll();
        }
        public void LoadWarehouseTransferGridView()
        {
            WarehouseTransferGridView.DataSource = null;
            WarehouseTransferGridView.Update();
            WarehouseTransferGridView.Refresh();

            List<Product> data;
            ReportManager report = new ReportManager();
            data = this.database.SelectAllProduct();
            DataTable source = report.reportProductWarehouse(data);
            WarehouseTransferGridView.DataSource = source;
        }
        public void LoadWarehouseTransferGridView()
        {
            WarehouseTransferGridView.DataSource = null;
            WarehouseTransferGridView.Update();
            WarehouseTransferGridView.Refresh();

            List <Product> data;
            ReportManager  report = new ReportManager();

            data = this.database.SelectAllProduct();
            DataTable source = report.reportProductWarehouse(data);

            WarehouseTransferGridView.DataSource = source;
        }
예제 #4
0
        //
        // Load/Refresh Full Datagrid views
        //
        public void LoadProductWarehouseDataGrid()
        {
            ProductWarehouseDataGrid.DataSource = null;
            ProductWarehouseDataGrid.Update();
            ProductWarehouseDataGrid.Refresh();

            List <Product> data;
            ReportManager  report = new ReportManager();

            data = this.database.SelectAllProduct();
            DataTable source = report.reportProductWarehouse(data);

            ProductWarehouseDataGrid.DataSource = source;
        }
예제 #5
0
        private void StartUp_Load(object sender, EventArgs e)
        {
            List<Product> data;
            ReportManager report = new ReportManager();
            data = this.database.SelectAllProduct();
            DataTable source = report.reportProductWarehouse(data);
            ProductWarehouseDataGrid.DataSource = source;

            this.LoadCityMachinesDataGrid();

            List<Machine> data2;
            data2 = this.database.SelectAllMachine();
            MachineListAllDataGrid.DataSource = data2;

            List<Transactions> data3;
            ReportManager report2 = new ReportManager();
            data3 = this.database.SelectAllTransactions();
            DataTable subtotals = report2.reportSalesByItem(data3);
            SalesProductGrid.DataSource = subtotals;

            treeView1.ExpandAll();
            treeView2.ExpandAll();
        }
예제 #6
0
        //
        // Load/Refresh Full Datagrid views
        //
        public void LoadProductWarehouseDataGrid()
        {
            ProductWarehouseDataGrid.DataSource = null;
            ProductWarehouseDataGrid.Update();
            ProductWarehouseDataGrid.Refresh();

            List<Product> data;
            ReportManager report = new ReportManager();
            data = this.database.SelectAllProduct();
            DataTable source = report.reportProductWarehouse(data);
            ProductWarehouseDataGrid.DataSource = source;
        }