private void FillCombo() { HPS.BLL.LaderTypeBLL.BLLLaderType_TFactory LaderTypeFactory = new HPS.BLL.LaderTypeBLL.BLLLaderType_TFactory(); DataTable LaderTypeDataTable = new DataTable(); LaderTypeFactory.GetAll(ref LaderTypeDataTable); this.LaderTypecheckedComboBox.DropDownDataSource = LaderTypeDataTable; this.LaderTypecheckedComboBox.DropDownDataMember = "LaderType_T"; this.LaderTypecheckedComboBox.DropDownDisplayMember = HPS.BLL.LaderTypeBLL.BLLLaderType_T.LaderType_TField.LaderType_nvc.ToString(); this.LaderTypecheckedComboBox.DropDownValueMember = HPS.BLL.LaderTypeBLL.BLLLaderType_T.LaderType_TField.LaderTypeID_int.ToString(); LaderTypecheckedComboBox.RetrieveStructure(); LaderTypecheckedComboBox.DropDownList.Columns[1].Visible = false; LaderTypecheckedComboBox.DropDownList.Columns[2].Visible = false; LaderTypecheckedComboBox.DropDownList.Columns[4].Visible = false; LaderTypecheckedComboBox.DropDownList.Columns[5].Visible = false; LaderTypecheckedComboBox.DropDownList.Columns[6].Visible = false; LaderTypecheckedComboBox.DropDownList.Columns[7].Visible = false; LaderTypecheckedComboBox.DropDownList.Columns[8].Visible = false; LaderTypecheckedComboBox.DropDownList.Columns[9].Visible = false; LaderTypecheckedComboBox.DropDownList.Columns[3].Caption = "نوع بارگیر"; LaderTypecheckedComboBox.DropDownList.Columns[3].Width = 300; this.FromDatefaDatePicker.SelectedDateTime = FarsiLibrary.Utils.PersianDateConverter.ToGregorianDateTime(LaderTypeFactory.ServerJalaliDate); this.ToDatefaDatePicker.SelectedDateTime = FarsiLibrary.Utils.PersianDateConverter.ToGregorianDateTime(LaderTypeFactory.ServerJalaliDate); }
private void LoadLaderType() { try { HPS.BLL.LaderTypeBLL.BLLLaderType_TFactory LaderTypeFactory = new HPS.BLL.LaderTypeBLL.BLLLaderType_TFactory(); DataTable LaderTypeDataTable = new DataTable(); LaderTypeFactory.GetAll(ref LaderTypeDataTable); this.LaderTypeGridView.DataSource = LaderTypeDataTable; } catch (System.Exception ex) { throw ex; } }
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; } }
private void GroupTrafficReportForm_Load(object sender, EventArgs e) { HPS.BLL.LaderTypeBLL.BLLLaderType_TFactory LaderTypeFactory = new HPS.BLL.LaderTypeBLL.BLLLaderType_TFactory(); DataTable LaderTypeDataTable = new DataTable(); LaderTypeFactory.GetAll(ref LaderTypeDataTable); this.LaderTypecheckedComboBox.DropDownDataSource = LaderTypeDataTable; this.LaderTypecheckedComboBox.DropDownDataMember = "LaderType_T"; this.LaderTypecheckedComboBox.DropDownDisplayMember = HPS.BLL.LaderTypeBLL.BLLLaderType_T.LaderType_TField.LaderType_nvc.ToString(); this.LaderTypecheckedComboBox.DropDownValueMember = HPS.BLL.LaderTypeBLL.BLLLaderType_T.LaderType_TField.LaderTypeID_int.ToString(); LaderTypecheckedComboBox.RetrieveStructure(); LaderTypecheckedComboBox.DropDownList.Columns[1].Visible = false; LaderTypecheckedComboBox.DropDownList.Columns[2].Visible = false; LaderTypecheckedComboBox.DropDownList.Columns[4].Visible = false; LaderTypecheckedComboBox.DropDownList.Columns[5].Visible = false; LaderTypecheckedComboBox.DropDownList.Columns[6].Visible = false; LaderTypecheckedComboBox.DropDownList.Columns[7].Visible = false; LaderTypecheckedComboBox.DropDownList.Columns[8].Visible = false; LaderTypecheckedComboBox.DropDownList.Columns[9].Visible = false; LaderTypecheckedComboBox.DropDownList.Columns[3].Caption = "نوع بارگیر"; LaderTypecheckedComboBox.DropDownList.Columns[10].Caption = "تعداد محور"; LaderTypecheckedComboBox.DropDownList.Columns[3].Width = 300; HPS.BLL.ServicesBLL.BLLServices_TFactory ServicesFactory = new HPS.BLL.ServicesBLL.BLLServices_TFactory(); DataTable ServicesDataTable = new DataTable(); string condition = "[Services_T].[Activie_bit]='true'"; ServicesFactory.GetAllByCondition(condition, ref ServicesDataTable); ServicescheckedComboBox.DropDownDataSource = ServicesDataTable; ServicescheckedComboBox.DropDownDataMember = ""; ServicescheckedComboBox.DropDownDisplayMember = HPS.BLL.ServicesBLL.BLLServices_T.Services_TField.ServicesType_nvc.ToString(); ServicescheckedComboBox.DropDownValueMember = HPS.BLL.ServicesBLL.BLLServices_T.Services_TField.ServicesID_int.ToString(); ServicescheckedComboBox.RetrieveStructure(); ServicescheckedComboBox.DropDownList.Columns[1].Visible = false; ServicescheckedComboBox.DropDownList.Columns[3].Visible = false; ServicescheckedComboBox.DropDownList.Columns[2].Caption = "نوع مراجعه"; ServicescheckedComboBox.DropDownList.Columns[2].Width = 300; this.FromDatefaDatePicker.SelectedDateTime = FarsiLibrary.Utils.PersianDateConverter.ToGregorianDateTime(LaderTypeFactory.ServerJalaliDate); this.ToDatefaDatePicker.SelectedDateTime = FarsiLibrary.Utils.PersianDateConverter.ToGregorianDateTime(LaderTypeFactory.ServerJalaliDate); }
private void FillCombo() { try { HPS.BLL.AnnouncementTimeBLL.BLLAnnouncementTime_TFactory AnnouncementTimeID_intFactory = new HPS.BLL.AnnouncementTimeBLL.BLLAnnouncementTime_TFactory(); DataTable AnnouncementTimeID_intDataTable = new DataTable(); AnnouncementTimeID_intFactory.GetAll(ref AnnouncementTimeID_intDataTable); this.AnnouncementTimeID_intComboBox.DisplayMember = HPS.BLL.AnnouncementTimeBLL.BLLAnnouncementTime_T.AnnouncementTime_TField.AnnouncementTime_nvc.ToString(); this.AnnouncementTimeID_intComboBox.ValueMember = HPS.BLL.AnnouncementTimeBLL.BLLAnnouncementTime_T.AnnouncementTime_TField.AnnouncementTimeID_int.ToString(); this.AnnouncementTimeID_intComboBox.DataSource = AnnouncementTimeID_intDataTable; this.AnnouncementTimeID_intComboBox.SelectedIndex = -1; HPS.BLL.CityBLL.BLLCity_TFactory CityID_intFactory = new HPS.BLL.CityBLL.BLLCity_TFactory(); DataTable CityID_intDataTable = new DataTable(); CityID_intFactory.GetAll(ref CityID_intDataTable); this.CityID_intComboBox.DisplayMember = HPS.BLL.CityBLL.BLLCity_T.City_TField.City_nvc.ToString(); this.CityID_intComboBox.ValueMember = HPS.BLL.CityBLL.BLLCity_T.City_TField.CityID_int.ToString(); this.CityID_intComboBox.DataSource = CityID_intDataTable; this.CityID_intComboBox.SelectedIndex = -1; HPS.BLL.GoodBLL.BLLGood_TFactory GoodID_intFactory = new HPS.BLL.GoodBLL.BLLGood_TFactory(); DataTable GoodID_intDataTable = new DataTable(); GoodID_intFactory.GetAll(ref GoodID_intDataTable); this.GoodID_intComboBox.DisplayMember = HPS.BLL.GoodBLL.BLLGood_T.Good_TField.Good_nvc.ToString(); this.GoodID_intComboBox.ValueMember = HPS.BLL.GoodBLL.BLLGood_T.Good_TField.GoodID_int.ToString(); this.GoodID_intComboBox.DataSource = GoodID_intDataTable; this.GoodID_intComboBox.SelectedIndex = -1; HPS.BLL.BoxingBLL.BLLBoxing_TFactory BoxingID_intFactory = new HPS.BLL.BoxingBLL.BLLBoxing_TFactory(); DataTable BoxingID_intDataTable = new DataTable(); BoxingID_intFactory.GetAll(ref BoxingID_intDataTable); this.BoxingID_intComboBox.DisplayMember = HPS.BLL.BoxingBLL.BLLBoxing_T.Boxing_TField.BoxingType_nvc.ToString(); this.BoxingID_intComboBox.ValueMember = HPS.BLL.BoxingBLL.BLLBoxing_T.Boxing_TField.BoxingID_int.ToString(); this.BoxingID_intComboBox.DataSource = BoxingID_intDataTable; this.BoxingID_intComboBox.SelectedIndex = -1; HPS.BLL.PortPlacesBLL.BLLPortPlaces_TFactory PortPlaceID_intFactory = new HPS.BLL.PortPlacesBLL.BLLPortPlaces_TFactory(); DataTable PortPlaceID_intDataTable = new DataTable(); PortPlaceID_intFactory.GetAll(ref PortPlaceID_intDataTable); this.PortPlaceID_intComboBox.DisplayMember = HPS.BLL.PortPlacesBLL.BLLPortPlaces_T.PortPlaces_TField.PortPlaces_nvc.ToString(); this.PortPlaceID_intComboBox.ValueMember = HPS.BLL.PortPlacesBLL.BLLPortPlaces_T.PortPlaces_TField.PortPlacesID_int.ToString(); this.PortPlaceID_intComboBox.DataSource = PortPlaceID_intDataTable; this.PortPlaceID_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.CompanyBLL.BLLCompany_TFactory CompanyID_intFactory = new HPS.BLL.CompanyBLL.BLLCompany_TFactory(); DataTable CompanyID_intDataTable = new DataTable(); CompanyID_intFactory.GetAll(ref CompanyID_intDataTable); this.CompanyID_intComboBox.DisplayMember = HPS.BLL.CompanyBLL.BLLCompany_T.Company_TField.Company_nvc.ToString(); this.CompanyID_intComboBox.ValueMember = HPS.BLL.CompanyBLL.BLLCompany_T.Company_TField.CompanyID_int.ToString(); this.CompanyID_intComboBox.DataSource = CompanyID_intDataTable; this.CompanyID_intComboBox.SelectedIndex = -1; HPS.BLL.TrafficTypeBLL.BLLTrafficType_TFactory TrafficTypeID_intFactory = new HPS.BLL.TrafficTypeBLL.BLLTrafficType_TFactory(); DataTable TrafficTypeID_intDataTable = new DataTable(); TrafficTypeID_intFactory.GetAll(ref TrafficTypeID_intDataTable); this.TrafficTypeID_intComboBox.DisplayMember = HPS.BLL.TrafficTypeBLL.BLLTrafficType_T.TrafficType_TField.TrafficType_nvc.ToString(); this.TrafficTypeID_intComboBox.ValueMember = HPS.BLL.TrafficTypeBLL.BLLTrafficType_T.TrafficType_TField.TrafficTypeID_int.ToString(); this.TrafficTypeID_intComboBox.DataSource = TrafficTypeID_intDataTable; this.TrafficTypeID_intComboBox.SelectedIndex = -1; } catch (Exception ex) { throw ex; } }