public void cbxBacStore_OnRefreshData(object sender, StoreRefreshDataEventArgs e) { if (string.IsNullOrEmpty(hdfGroupQuantumId.Text)) { return; } var nn = cat_GroupQuantumServices.GetById(Convert.ToInt32(hdfGroupQuantumId.Text)); if (nn == null) { return; } var objs = new List <StoreComboxObject>(); for (var i = 1; i <= nn.GradeMax; i++) { var stob = new StoreComboxObject { MA = i.ToString(), TEN = "Bậc " + i }; objs.Add(stob); } cbxBacStore.DataSource = objs; cbxBacStore.DataBind(); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void cbxBacLuongHLStore_OnRefreshData(object sender, StoreRefreshDataEventArgs e) { if (string.IsNullOrEmpty(hdfQuantumHLId.Text)) { return; } var quantum = cat_QuantumServices.GetById(Convert.ToInt32(hdfQuantumHLId.Text)); var quantumGrade = cat_GroupQuantumServices.GetFieldValueById(quantum.GroupQuantumId, "GradeMax"); var grade = Convert.ToInt32(quantumGrade); hdfSalaryGradeHL.Text = grade.ToString(); var objs = new List <StoreComboxObject>(); for (var i = 1; i <= grade; i++) { var stob = new StoreComboxObject { MA = i.ToString(), TEN = "Bậc " + i }; objs.Add(stob); } cbxBacLuongHLStore.DataSource = objs; cbxBacLuongHLStore.DataBind(); }