Beispiel #1
0
 public ttKhoVai(string _id_rowindex, qlKhoVai _ql)
 {
     InitializeComponent();
     SetDefault();
     ql = _ql;
     if (!string.IsNullOrEmpty(_id_rowindex))
     {
         idKhovai = _id_rowindex.Split('_').GetValue(0).ToString();
         rowindex = _id_rowindex.Split('_').GetValue(1).ToString();
         btThem.Text = "Cập nhật";
         DataTable dt = DA.Load_KhoVai(new string[] { idKhovai });
         txtKhoVai.Text = dt.Rows[0][1].ToString();
         txtGiaDet.Text = dt.Rows[0][2].ToString();
         txtGiaCat.Text = dt.Rows[0][3].ToString();
         if (dt.Rows[0][4].ToString() != "0")
         {
             cKhoVaiChinh.Checked = true;
             cbKhoVaiChinh.SelectedValue = dt.Rows[0][4].ToString();
         }
     }
 }
Beispiel #2
0
 private void btKhoVai_Click(object sender, EventArgs e)
 {
     ActiveForm.Hide();
     var ql = new qlKhoVai();
     ql.Show();
 }