示例#1
0
        private void LoadDataIntoComboBoxes()
        {
            ListData.LoadDataIntoComboBox(BranchComboBox, "usp_BranchesGetAllBranchesName");


            ListData.LoadDataIntoComboBox(GenderComboBox, new DbParameter {
                Parameter = "@ListTypeId", Value = ListTypes.Gender
            });

            ListData.LoadDataIntoComboBox(CityComboBox, new DbParameter {
                Parameter = "@ListTypeId", Value = ListTypes.City
            });

            ListData.LoadDataIntoComboBox(DistrictComboBox, new DbParameter {
                Parameter = "@ListTypeId", Value = ListTypes.District
            });

            ListData.LoadDataIntoComboBox(JobTitleComboBox, new DbParameter {
                Parameter = "@ListTypeId", Value = ListTypes.EmployeeJobTitle
            });

            ListData.LoadDataIntoComboBox(HasLeftComboBox, new DbParameter {
                Parameter = "@ListTypeId", Value = ListTypes.YesNo
            });

            ListData.LoadDataIntoComboBox(ReasonLeftComboBox, new DbParameter {
                Parameter = "@ListTypeId", Value = ListTypes.EmployeeReasonLeft
            });
        }
示例#2
0
 private void LoadDataIntoComboBoxes()
 {
     ListData.LoadDataIntoComboBox(BranchComboBox, "usp_BranchesGetAllBranchName");
     ListData.LoadDataIntoComboBox(GenderComboBox, new DbParameter {
         Parameter = "@ListTypeId", Value = ListTypes.Gender
     });
 }
示例#3
0
        private void LoadDataIntoComboBoxes()
        {
            ListData.LoadDataIntoComboBox(CityComboBox1, new DbParameter {
                Parameter = "@ListTypeId", Value = ListTypes.City
            });

            ListData.LoadDataIntoComboBox(DistrictComboBox2, new DbParameter {
                Parameter = "@ListTypeId", Value = ListTypes.District
            });
        }
示例#4
0
 private void LoadDataIntoComboBox()
 {
     ListData.LoadDataIntoComboBox(CityNameComboBox, new DbParameter()
     {
         Parameter = "@ListTypeId", Value = ListTypes.City
     });
     ListData.LoadDataIntoComboBox(DistrictNameComboBox, new DbParameter()
     {
         Parameter = "@ListTypeId", Value = ListTypes.District
     });
 }
示例#5
0
        private void LoadDataIntoComboBoxes()
        {
            ListData.LoadDataIntoComboBox(CityComboBox, new DBParameter {
                Parameter = "@ListTypeId",
                Value     = ListTypes.City
            });

            ListData.LoadDataIntoComboBox(DepartmentComboBox, new DBParameter
            {
                Parameter = "@ListTypeId",
                Value     = ListTypes.Department
            });
        }