예제 #1
0
        private void updateAll()
        {
            TablesModel tablesModel = new TablesModel();

            if (checkedListBox1.SelectedIndex == 0)
            {
                tablesModel.Fillsp_OrganisationType(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 1)
            {
                tablesModel.Fillsp_Country(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 2)
            {
                tablesModel.Fillsp_FunctionalyUseModel(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 3)
            {
                tablesModel.Fillsp_ReasonWriteoff(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 4)
            {
                tablesModel.Fillsp_PhysicalPeoplePositions(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 5)
            {
                tablesModel.Fillsp_ExpluatationRole(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 6)
            {
                tablesModel.Fillsp_OrganisationDepartment(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 7)
            {
                tablesModel.Fillsp_Corpus(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 8)
            {
                tablesModel.Fillsp_MoveReason(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 9)
            {
                tablesModel.Fillsp_DragMetal(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 10)
            {
                tablesModel.Fillsp_ServiceType(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 11)
            {
                tablesModel.Fillsp_ServiceOperationType(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 12)
            {
                tablesModel.Fillsp_ServiceOperationPersonalRole(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 13)
            {
                tablesModel.Fillsp_PurchaseType(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 14)
            {
                tablesModel.Fillsp_ZIP(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 15)
            {
                tablesModel.Fillsp_PM(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 16)
            {
                tablesModel.Fillsp_BrokenRequestReason(dataGridView1);
            }
            else if (checkedListBox1.SelectedIndex == 17)
            {
                tablesModel.Fillsp_Standarts(dataGridView1);
            }
        }