private void txtSearchText_EditValueChanging(object sender, DevExpress.XtraEditors.Controls.ChangingEventArgs e) { //if (int.Parse(lookChungChi.ItemIndex.ToString()) < 0 && int.Parse(lookLopHoc.ItemIndex.ToString()) < 0) if (int.Parse(lookLopHoc.ItemIndex.ToString()) < 0) { MessageBox.Show("Chọn khóa học, và lớp học muốn tìm kiếm học viên", "THÔNG BÁO"); return; } else { DataTable temTb = new DataTable(); // temTb = boDkh.getDangKiHoc_Name_ByLopID(int.Parse(lookLopHoc.GetColumnValue("LOP_ID").ToString())); temTb = boCcc.Search_CCC_Status(int.Parse(lookLopHoc.GetColumnValue("LOP_ID").ToString()), mStatus); if (temTb.Rows.Count > 0) { if (txtSearchText.Text == string.Empty) { showLopDaCapCC(); } else if (txtSearchText.Text != string.Empty) { gridCertificate.DataSource = searchCCCResultTable(); gridContentCertificate.Columns["HvID"].VisibleIndex = -1; } } else { gridCertificate.DataSource = null; } // 1. Tim chung chi cap moi if (radioSearch.SelectedIndex == 1) { //temTb = boDkh.getDangKiHoc_Name_ByLopID(int.Parse(lookLopHoc.GetColumnValue("LOP_ID").ToString())); //if (temTb.Rows.Count > 0) //{ // if (txtSearchText.Text == string.Empty) // { // showLopDaCapCC(); // } // else // if (txtSearchText.Text != string.Empty) // { // gridCertificate.DataSource = searchCCCResultTable(); // gridContentCertificate.Columns["HvID"].VisibleIndex = -1; // } //} } // 2. Tim kiem chung cho gia han if (radioSearch.SelectedIndex == 2) { } // 3. Tim kiem chung chi doi if (radioSearch.SelectedIndex == 3) { } //else //{ // if (txtSearchText.Text == string.Empty) // { // showData(); // } // else // if (txtSearchText.Text != string.Empty) // { // gridCertificate.DataSource = SearchTableResult(); // gridContentCertificate.Columns["HvID"].VisibleIndex = -1; // } //} } }