예제 #1
0
        public void UPdateDB()
        {
            TablesModel tablesModel = new TablesModel();

            if (checkedListBox1.SelectedIndex == 0)
            {
                tablesModel.FillOrganisation(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 1)
            {
                tablesModel.FillModelTypes(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 2)
            {
                tablesModel.FillModelElement(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 3)
            {
                tablesModel.FillPhysicalPeople(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 4)
            {
                tablesModel.FillPhysicalPeoplePositions(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 5)
            {
                tablesModel.FillMOExpluatation(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 6)
            {
                tablesModel.FillElementsDragMetal(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 7)
            {
                tablesModel.FillPersonalOnService(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 8)
            {
                tablesModel.FillPurchase(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 9)
            {
                tablesModel.FillZipOnStock(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 10)
            {
                tablesModel.FillZIPMoves(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 11)
            {
                tablesModel.FillPMOnStock(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 12)
            {
                tablesModel.FillPMMoves(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 13) // broken
            {
                tablesModel.FillBrokenRequest(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 14)
            {
                tablesModel.FillPurchaseElement(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 15)
            {
                tablesModel.FillZIPDocumentsOnPurchase(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 16)
            {
                tablesModel.FillPMDocumentsOnPurchase(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 17)
            {
                tablesModel.FillElementsPlaces(dataGridView1);
            }
        }