Exemple #1
0
 private void f_Load_Sua()
 {
     try
     {
         if (m_id != "")
         {
             string atmp = m_id;
             m_id = "";
             foreach (DataRow r in m_v.f_get_v_loaivp(atmp, "", "", "", "", "", "").Tables[0].Rows)
             {
                 m_id                = r["id"].ToString();
                 m_id_nhomvp         = r["id_nhom"].ToString();
                 txtStt.Text         = r["stt"].ToString();
                 txtMa.Text          = r["ma"].ToString();
                 txtTen.Text         = r["ten"].ToString();
                 txtViettat.Text     = r["viettat"].ToString();
                 chkReadonly.Checked = r["readonly"].ToString() == "1";
                 txtStt.Focus();
                 break;
             }
         }
         try
         {
             cbNhombhyt.SelectedValue = f_get_id_nhombhyt(m_id_nhomvp);
         }
         catch
         {
         }
         try
         {
             cbNhomvp.SelectedValue = m_id_nhomvp;
         }
         catch
         {
         }
     }
     catch
     {
     }
 }