protected void BindDropItems() { DataEntities ent = new DataEntities(); #region 绑定省 var provinces = from l in ent.Province select l; foreach (var pro in provinces) { ddl_Province.Items.Add(new ListItem(pro.province1, pro.ID.ToS())); ddl_ProvinceHome.Items.Add(new ListItem(pro.province1, pro.ID.ToS())); ddl_ProvinceWork.Items.Add(new ListItem(pro.province1, pro.ID.ToS())); } #endregion JobAction.BindCity(ddl_City, ddl_Province.SelectedValue.ToInt32()); JobAction.BindCity(ddl_CityHome, ddl_Province.SelectedValue.ToInt32()); JobAction.BindCity(ddl_CityWork, ddl_Province.SelectedValue.ToInt32()); ddl_Marriage.Bind(JobAction.Marrage); ddl_CardType.Bind(JobAction.CardType); ddl_Nation.Bind(JobAction.Nation); ddl_Political.Bind(JobAction.Political); ent.Dispose(); //绑定工作经历编辑区域 JobAction.BindIndustry(ddl_exp_Post); ddl_exp_StartTime_Year.BindNumbers(1970, 2012); ddl_exp_StartTime_Month.BindNumbers(1, 12); ddl_exp_LeftTime_Year.BindNumbers(1970, 2012); ddl_exp_LeftTime_Month.BindNumbers(1, 12); //绑定教育经历 JobAction.BindEduSpecialty(ddl_edu_Specialty); ddl_edu_Edu.Bind(JobAction.Edu); ddl_edu_StartTime_Year.BindNumbers(1970, 2012); ddl_edu_StartTime_Month.BindNumbers(1, 12); ddl_edu_LeftTime_Year.BindNumbers(1970, 2012); ddl_edu_LeftTime_Month.BindNumbers(1, 12); //培新经历 ddl_train_StartTime_Year.BindNumbers(1970, 2012); ddl_train_StartTime_Month.BindNumbers(1, 12); ddl_train_LeftTime_Year.BindNumbers(1970, 2012); ddl_train_LeftTime_Month.BindNumbers(1, 12); //证书 ddl_cer_gettime_Year.BindNumbers(1970, 2012); ddl_cer_gettime_Month.BindNumbers(1, 12); //语言 ddl_language_type.Bind(JobAction.Languages); ddl_language_SpeakingAbility.Bind(JobAction.LanguageDegree); ddl_language_WritingAbility.Bind(JobAction.LanguageDegree); }
protected void BindDropItems() { DataEntities ent = new DataEntities(); #region 绑定省 var provinces = from l in ent.Province select l; foreach (var pro in provinces) { ddl_Province.Items.Add(new ListItem(pro.province1, pro.ID.ToS())); ddl_ProvinceWork.Items.Add(new ListItem(pro.province1, pro.ID.ToS())); } #endregion JobAction.BindCity(ddl_City, ddl_Province.SelectedValue.ToInt32()); JobAction.BindCity(ddl_CityWork, ddl_Province.SelectedValue.ToInt32()); ent.Dispose(); //绑定工作经历编辑区域 ddl_Year.BindNumbers(1970, 2012); ddl_Month.BindNumbers(1, 12); ddl_Day.BindNumbers(1, 31); }
protected void ddl_ProvinceWork_SelectedIndexChanged(object sender, EventArgs e) { JobAction.BindCity(ddl_CityWork, ddl_Province.SelectedValue.ToInt32()); }