private void FillForm() { //DataBindHelper.BindDDL(ref drpPositions, this.cmbPositions, "PositionName", "PositionID", "", "Lütfen seçiniz...", "0"); rdAgeRange.Items[0].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_All).ToString(); rdAgeRange.Items[1].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_18_24).ToString(); rdAgeRange.Items[2].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_25_29).ToString(); rdAgeRange.Items[3].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_30_34).ToString(); rdAgeRange.Items[4].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_35_39).ToString(); rdAgeRange.Items[5].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_40_44).ToString(); rdAgeRange.Items[6].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_45_55).ToString(); rdAgeRange.Items[7].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_56over).ToString(); DataBindHelper.BindRadioButtonList(ref rblLabouringTypes, this.cmbLabouringTypes, "LabouringTypeName", "LabouringTypeID", "1"); rblGender.Items[0].Value = ((int)PIKCV.COM.EnumDB.SexCode.Male).ToString(); rblGender.Items[1].Value = ((int)PIKCV.COM.EnumDB.SexCode.Female).ToString(); rblGender.Items[2].Value = ((int)PIKCV.COM.EnumDB.SexCode.Both).ToString(); FillListBoxSector(); FillListBoxPosition(); FillListBoxPerfection(); FillDetails(); }
private void FillDetails() { #region Details // Baþvuru Statüleri DataBindHelper.BindCheckBoxList(ref chkEvaluation, PIKCV.BUS.JobApplicants.GetJobApplicationStates(PIKCV.COM.EnumDB.LanguageID.Turkish, false), "JobApplicationStatusName", "JobApplicationStatusID"); chkEvaluation.Items.Insert(0, new ListItem("Tümü", "0")); // Yaþ aralýðý chkAgeRange.Items[0].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_All).ToString(); chkAgeRange.Items[1].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_18_24).ToString(); chkAgeRange.Items[2].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_25_29).ToString(); chkAgeRange.Items[3].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_30_34).ToString(); chkAgeRange.Items[4].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_35_39).ToString(); chkAgeRange.Items[5].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_40_44).ToString(); chkAgeRange.Items[6].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_45_55).ToString(); chkAgeRange.Items[7].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_56over).ToString(); // Cinsiyet rblGenders.Items[0].Value = ((int)PIKCV.COM.EnumDB.SexCode.Female).ToString(); rblGenders.Items[1].Value = ((int)PIKCV.COM.EnumDB.SexCode.Male).ToString(); rblGenders.Items[2].Value = ((int)PIKCV.COM.EnumDB.SexCode.Both).ToString(); chkExperience.Items[0].Value = ((int)PIKCV.COM.EnumDB.Experience.experience_0_1).ToString(); chkExperience.Items[1].Value = ((int)PIKCV.COM.EnumDB.Experience.experience_2_5).ToString(); chkExperience.Items[2].Value = ((int)PIKCV.COM.EnumDB.Experience.experience_6_10).ToString(); chkExperience.Items[3].Value = ((int)PIKCV.COM.EnumDB.Experience.experience_10_over).ToString(); DataBindHelper.BindListbox(ref lbCountries, this.cmbCountries, "PlaceName", "PlaceID", ""); DataBindHelper.BindListbox(ref lbCountriesDesired, this.cmbCountries, "PlaceName", "PlaceID", ""); DataBindHelper.BindListbox(ref lbCities, this.cmbTurkeyCities, "PlaceName", "PlaceID", ""); DataBindHelper.BindListbox(ref lbCitiesDesired, this.cmbTurkeyCities, "PlaceName", "PlaceID", ""); DataBindHelper.BindListbox(ref lbSectors, this.cmbSectors, "SectorName", "SectorID", ""); DataBindHelper.BindListbox(ref lbSectorDesired, this.cmbSectors, "SectorName", "SectorID", ""); DataBindHelper.BindListbox(ref lbComputerSkill, this.cmbComputerKnowledgeTypes, "ComputerKnowledgeTypeName", "ComputerKnowledgeTypeID", ""); // Eðitim durumu DataBindHelper.BindCheckBoxList(ref chkEducationLevels, this.cmbEducationLevels, "EducationLevelName", "EducationLevelID"); rdlMaritalStatus.Items[0].Value = ((int)PIKCV.COM.EnumDB.MaritalStates.Single).ToString(); rdlMaritalStatus.Items[1].Value = ((int)PIKCV.COM.EnumDB.MaritalStates.Married).ToString(); rdlMaritalStatus.Items[2].Value = ((int)PIKCV.COM.EnumDB.MaritalStates.None).ToString(); DataBindHelper.BindCheckBoxList(ref chkMilitaryStates, this.cmbMilitaryStates, "MilitaryStatusName", "MilitaryStatusID"); DataBindHelper.BindCheckBoxList(ref chkLabouringTypes1, this.cmbLabouringTypes, "LabouringTypeName", "LabouringTypeID"); DataBindHelper.BindCheckBoxList(ref chkLabouringTypes2, this.cmbLabouringTypes, "LabouringTypeName", "LabouringTypeID"); DataBindHelper.BindCheckBoxList(ref chkEducationStates1, this.cmbEducationStates, "EducationStatusName", "EducationStatusID"); DataBindHelper.BindCheckBoxList(ref chkEducationStates2, this.cmbEducationStates, "EducationStatusName", "EducationStatusID"); DataBindHelper.BindDDL(ref ddlLanguage1, this.cmbForeignLanguages, "ForeignLanguageName", "ForeignLanguageID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0"); DataBindHelper.BindDDL(ref ddlLanguage2, this.cmbForeignLanguages, "ForeignLanguageName", "ForeignLanguageID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0"); DataBindHelper.BindDDL(ref ddlLanguage3, this.cmbForeignLanguages, "ForeignLanguageName", "ForeignLanguageID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0"); DataBindHelper.BindDDL(ref ddlLanguage11, this.cmbLevels, "LevelName", "LevelID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0"); DataBindHelper.BindDDL(ref ddlLanguage111, this.cmbLevels, "LevelName", "LevelID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0"); DataBindHelper.BindDDL(ref ddlLanguage1111, this.cmbLevels, "LevelName", "LevelID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0"); DataBindHelper.BindDDL(ref ddlLanguage22, this.cmbLevels, "LevelName", "LevelID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0"); DataBindHelper.BindDDL(ref ddlLanguage222, this.cmbLevels, "LevelName", "LevelID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0"); DataBindHelper.BindDDL(ref ddlLanguage2222, this.cmbLevels, "LevelName", "LevelID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0"); DataBindHelper.BindDDL(ref ddlLanguage33, this.cmbLevels, "LevelName", "LevelID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0"); DataBindHelper.BindDDL(ref ddlLanguage333, this.cmbLevels, "LevelName", "LevelID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0"); DataBindHelper.BindDDL(ref ddlLanguage3333, this.cmbLevels, "LevelName", "LevelID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0"); DataBindHelper.BindDDL(ref ddlSchools1, PIKCV.COM.Data.GetSchools(this.cmbSchools, PIKCV.COM.EnumDB.SchoolTypes.HighSchoolTypes), "SchoolName", "SchoolID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0"); DataBindHelper.BindDDL(ref ddlSchools2, PIKCV.COM.Data.GetSchools(this.cmbSchools, PIKCV.COM.EnumDB.SchoolTypes.UniversityNames), "SchoolName", "SchoolID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0"); DataBindHelper.BindDDL(ref ddlSchools3, PIKCV.COM.Data.GetSchools(this.cmbSchools, PIKCV.COM.EnumDB.SchoolTypes.DepartmentNames), "SchoolName", "SchoolID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0"); DataBindHelper.BindRadioButtonList(ref rblDrvLicense, this.cmbDriverLicenceTypes, "DriverLicenseTypeName", "DriverLicenseTypeID", ""); rblDrvLicense.Items.Add(new ListItem("Tümü", ((int)PIKCV.COM.EnumDB.LicenceTypes.All).ToString())); rblDrvLicense.SelectedValue = ((int)PIKCV.COM.EnumDB.LicenceTypes.All).ToString(); DataBindHelper.BindCheckBoxList(ref chDrvLicense, this.cmbDriverLicenceTypes, "DriverLicenseTypeName", "DriverLicenseTypeID"); add_to_list1.Attributes.Add("onclick", "SwapItem('" + lbCountries.ClientID + "','" + lbSelectedCountries.ClientID + "', ' ')"); remove_from_list1.Attributes.Add("onclick", "SwapItem('" + lbSelectedCountries.ClientID + "','" + lbCountries.ClientID + "', ' ')"); add_to_list2.Attributes.Add("onclick", "SwapItem('" + lbCities.ClientID + "','" + lbSelectedCities.ClientID + "', ' ')"); remove_from_list2.Attributes.Add("onclick", "SwapItem('" + lbSelectedCities.ClientID + "','" + lbCities.ClientID + "', ' ')"); add_to_list3.Attributes.Add("onclick", "SwapItem('" + lbSectors.ClientID + "','" + lbSelectedSectors.ClientID + "', ' ')"); remove_from_list3.Attributes.Add("onclick", "SwapItem('" + lbSelectedSectors.ClientID + "','" + lbSectors.ClientID + "', ' ')"); add_to_list4.Attributes.Add("onclick", "SwapItem('" + lbPositions.ClientID + "','" + lbSelectedPositions.ClientID + "', ' ')"); remove_from_list4.Attributes.Add("onclick", "SwapItem('" + lbSelectedPositions.ClientID + "','" + lbPositions.ClientID + "', ' ')"); add_to_list5.Attributes.Add("onclick", "SwapItem('" + lbComputerSkill.ClientID + "','" + lbSelectedComputerSkill.ClientID + "', ' ')"); remove_from_list5.Attributes.Add("onclick", "SwapItem('" + lbSelectedComputerSkill.ClientID + "','" + lbComputerSkill.ClientID + "', ' ')"); add_to_list6.Attributes.Add("onclick", "SwapItem('" + lbSectorDesired.ClientID + "','" + lbSelectedSectorDesired.ClientID + "', ' ')"); remove_from_list6.Attributes.Add("onclick", "SwapItem('" + lbSelectedSectorDesired.ClientID + "','" + lbSectorDesired.ClientID + "', ' ')"); add_to_list7.Attributes.Add("onclick", "SwapItem('" + lbPositionDesired.ClientID + "','" + lbSelectedPositionDesired.ClientID + "', ' ')"); remove_from_list7.Attributes.Add("onclick", "SwapItem('" + lbSelectedPositionDesired.ClientID + "','" + lbPositionDesired.ClientID + "', ' ')"); add_to_list8.Attributes.Add("onclick", "SwapItem('" + lbCountriesDesired.ClientID + "','" + lbSelectedCountriesDesired.ClientID + "', ' ')"); remove_from_list8.Attributes.Add("onclick", "SwapItem('" + lbSelectedCountriesDesired.ClientID + "','" + lbCountriesDesired.ClientID + "', ' ')"); add_to_list9.Attributes.Add("onclick", "SwapItem('" + lbCitiesDesired.ClientID + "','" + lbSelectedCitiesDesired.ClientID + "', ' ')"); remove_from_list9.Attributes.Add("onclick", "SwapItem('" + lbSelectedCitiesDesired.ClientID + "','" + lbCitiesDesired.ClientID + "', ' ')"); #endregion }