示例#1
0
 /// <summary>
 /// Tìm theo niên khóa
 /// </summary>
 private void Timkiemnienkhoa()
 {
     try
     {
         if (string.IsNullOrEmpty(txtkhoa.Text))
         {
             return;
         }
         if (_idlop != 0)
         {
             dgv_DanhSach.DataSource = SearchData.Timkiemnienkhoa(1, txtkhoa.Text, _idkythi, _idkhoa, _idlop);
         }
         else if (_idkhoa != 0)
         {
             dgv_DanhSach.DataSource = SearchData.Timkiemnienkhoa(2, txtkhoa.Text, _idkythi, _idkhoa, _idlop);
         }
         else
         {
             dgv_DanhSach.DataSource = SearchData.Timkiemnienkhoa(3, txtkhoa.Text, _idkythi, _idkhoa, _idlop);
         }
     }
     catch (Exception ex)
     {
         Log2File.LogExceptionToFile(ex);
     }
 }