Пример #1
0
 private void LoadCountry()
 {
     try
     {
         HPS.BLL.CountryBLL.BLLCountry_TFactory CountryFactory = new HPS.BLL.CountryBLL.BLLCountry_TFactory();
         DataTable CountryDataTable = new DataTable();
         CountryFactory.GetAll(ref CountryDataTable);
         this.CountryGridView.DataSource = CountryDataTable;
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Пример #2
0
        private void FillCombo()
        {
            try
            {
                HPS.BLL.PlateCityBLL.BLLPlateCity_TFactory PlateCityID_intFactory = new HPS.BLL.PlateCityBLL.BLLPlateCity_TFactory();
                DataTable PlateCityID_intDataTable = new DataTable();
                PlateCityID_intFactory.GetAll(ref PlateCityID_intDataTable);
                this.PlateCityID_intComboBox.DisplayMember = HPS.BLL.PlateCityBLL.BLLPlateCity_T.PlateCity_TField.PlateCity_nvc.ToString();
                this.PlateCityID_intComboBox.ValueMember   = HPS.BLL.PlateCityBLL.BLLPlateCity_T.PlateCity_TField.PlateCityID_int.ToString();
                this.PlateCityID_intComboBox.DataSource    = PlateCityID_intDataTable;
                this.PlateCityID_intComboBox.SelectedIndex = -1;

                HPS.BLL.ColorBLL.BLLColor_TFactory PlateColorID_intFactory = new HPS.BLL.ColorBLL.BLLColor_TFactory();
                DataTable PlateColorID_intDataTable = new DataTable();
                PlateColorID_intFactory.GetAll(ref PlateColorID_intDataTable);
                this.PlateColorID_intComboBox.DisplayMember = HPS.BLL.ColorBLL.BLLColor_T.Color_TField.Color_nvc.ToString();
                this.PlateColorID_intComboBox.ValueMember   = HPS.BLL.ColorBLL.BLLColor_T.Color_TField.ColorID_int.ToString();
                this.PlateColorID_intComboBox.DataSource    = PlateColorID_intDataTable;
                this.PlateColorID_intComboBox.SelectedIndex = -1;

                HPS.BLL.CountryBLL.BLLCountry_TFactory CountryID_intFactory = new HPS.BLL.CountryBLL.BLLCountry_TFactory();
                DataTable CountryID_intDataTable = new DataTable();
                CountryID_intFactory.GetAll(ref CountryID_intDataTable);
                this.CountryID_intComboBox.DisplayMember = HPS.BLL.CountryBLL.BLLCountry_T.Country_TField.Country_nvc.ToString();
                this.CountryID_intComboBox.ValueMember   = HPS.BLL.CountryBLL.BLLCountry_T.Country_TField.CountryID_int.ToString();
                this.CountryID_intComboBox.DataSource    = CountryID_intDataTable;
                this.CountryID_intComboBox.SelectedIndex = -1;

                HPS.BLL.LaderTypeBLL.BLLLaderType_TFactory LaderTypeID_intFactory = new HPS.BLL.LaderTypeBLL.BLLLaderType_TFactory();
                DataTable LaderTypeID_intDataTable = new DataTable();
                LaderTypeID_intFactory.GetAll(ref LaderTypeID_intDataTable);
                this.LaderTypeID_intComboBox.DisplayMember = HPS.BLL.LaderTypeBLL.BLLLaderType_T.LaderType_TField.LaderType_nvc.ToString();
                this.LaderTypeID_intComboBox.ValueMember   = HPS.BLL.LaderTypeBLL.BLLLaderType_T.LaderType_TField.LaderTypeID_int.ToString();
                this.LaderTypeID_intComboBox.DataSource    = LaderTypeID_intDataTable;
                this.LaderTypeID_intComboBox.SelectedIndex = -1;

                HPS.BLL.InfractionGroupBLL.BLLInfractionGroup_TFactory InfractionGroupID_intFactory = new HPS.BLL.InfractionGroupBLL.BLLInfractionGroup_TFactory();
                DataTable InfractionGroupID_intDataTable = new DataTable();
                InfractionGroupID_intFactory.GetAll(ref InfractionGroupID_intDataTable);
                this.InfractionGroupID_intComboBox.DisplayMember = HPS.BLL.InfractionGroupBLL.BLLInfractionGroup_T.InfractionGroup_TField.InfractionGroup_nvc.ToString();
                this.InfractionGroupID_intComboBox.ValueMember   = HPS.BLL.InfractionGroupBLL.BLLInfractionGroup_T.InfractionGroup_TField.InfractionGroupID_int.ToString();
                this.InfractionGroupID_intComboBox.DataSource    = InfractionGroupID_intDataTable;
                this.InfractionGroupID_intComboBox.SelectedIndex = -1;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }