Пример #1
0
 private void btnThem_Click(object sender, EventArgs e)
 {
     try
     {
         FrmNhapMucThue frmNhapMucThue = new FrmNhapMucThue();
         frmNhapMucThue.btnOK.Tag = "add";
         string strMaThue = cf.CreateId("TH", "THUE");
         frmNhapMucThue.txtMaThue.Text = strMaThue;
         frmNhapMucThue.ShowDialog();
         LoadMucThue();
     }
     catch { }
 }
Пример #2
0
 private void btnCapNhat_Click(object sender, EventArgs e)
 {
     try
     {
         FrmNhapMucThue frmNhapMucThue = new FrmNhapMucThue();
         frmNhapMucThue.btnOK.Tag = "up";
         int    index     = dgvSoThue.SelectedRows[0].Index;
         string strMaThue = dgvSoThue.Rows[index].Cells["colMaThue"].Value.ToString();
         frmNhapMucThue.txtMaThue.Text = strMaThue;
         string strSoThue = dgvSoThue.Rows[index].Cells["colSoThue"].Value.ToString();
         frmNhapMucThue.txtSoThue.Text = strSoThue;
         string strGhiChu = dgvSoThue.Rows[index].Cells["colGhiChu"].Value.ToString();
         frmNhapMucThue.txtGhiChu.Text = strGhiChu;
         frmNhapMucThue.ShowDialog();
         LoadMucThue();
     }
     catch { }
 }
Пример #3
0
 private void btnCapNhat_Click(object sender, EventArgs e)
 {
     try
     {
         FrmNhapMucThue frmNhapMucThue = new FrmNhapMucThue();
         frmNhapMucThue.btnOK.Tag = "up";
         int index = dgvSoThue.SelectedRows[0].Index;
         string strMaThue = dgvSoThue.Rows[index].Cells["colMaThue"].Value.ToString();
         frmNhapMucThue.txtMaThue.Text = strMaThue;
         string strSoThue = dgvSoThue.Rows[index].Cells["colSoThue"].Value.ToString();
         frmNhapMucThue.txtSoThue.Text = strSoThue;
         string strGhiChu = dgvSoThue.Rows[index].Cells["colGhiChu"].Value.ToString();
         frmNhapMucThue.txtGhiChu.Text = strGhiChu;
         frmNhapMucThue.ShowDialog();
         LoadMucThue();
     }
     catch { }
 }
Пример #4
0
 private void btnThem_Click(object sender, EventArgs e)
 {
     try
     {
         FrmNhapMucThue frmNhapMucThue = new FrmNhapMucThue();
         frmNhapMucThue.btnOK.Tag = "add";
         string strMaThue = cf.CreateId("TH", "THUE");
         frmNhapMucThue.txtMaThue.Text = strMaThue;
         frmNhapMucThue.ShowDialog();
         LoadMucThue();
     }
     catch { }
 }