Ejemplo n.º 1
0
 public void loadGrid()
 {
     try
     {
         dlv_ManageKeyword.DataSource = CuPhapDAO.getAllDRVCuPhap();
     }
     catch (Exception)
     {
         throw;
     }
 }
Ejemplo n.º 2
0
 private void cbo_Name_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (!cbo_Name.Text.Equals("All"))
     {
         edit = 1;
         cbo_Keyword.Items.Clear();
         cbo_Keyword.Text    = "All";
         cbo_Keyword.Enabled = true;
         ArrayList arry = cuphapdao.getAllKeyword1CuPhap(cbo_Name.Text.ToString());
         cbo_Keyword.Items.Add("All");
         foreach (CuPhapMODEL cuphap in arry)
         {
             cbo_Keyword.Items.Add(cuphap.Cum_Tu_2).ToString();
         }
         dlv_ManageKeyword.DataSource = CuPhapDAO.getTenDRVCuPhapByID(cbo_Name.Text.ToString(), cbo_Keyword.Text.ToString());
     }
     else
     {
         cbo_Keyword.Items.Clear();
         cbo_Keyword.Enabled          = false;
         cbo_Keyword.Text             = "All";
         dlv_ManageKeyword.DataSource = CuPhapDAO.getTenDRVCuPhapByID(cbo_Name.Text.ToString(), cbo_Keyword.Text.ToString());
     }
 }
Ejemplo n.º 3
0
 private void cbo_Keyword_SelectedIndexChanged(object sender, EventArgs e)
 {
     edit = 1;
     dlv_ManageKeyword.DataSource = CuPhapDAO.getTenDRVCuPhapByID(cbo_Name.Text.ToString(), cbo_Keyword.Text.ToString());
 }