Exemplo n.º 1
0
 void txtLoaiBN__OnSaveAs()
 {
     if (Utility.DoTrim(txtLoaiBN.Text) == "") return;
     DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtLoaiBN.LOAI_DANHMUC);
     _DMUC_DCHUNG.SetStatus(true, txtLoaiBN.Text);
     _DMUC_DCHUNG.ShowDialog();
     if (!_DMUC_DCHUNG.m_blnCancel)
     {
         string oldCode = txtLoaiBN.myCode;
         txtLoaiBN.Init();
         txtLoaiBN.SetCode(oldCode);
         txtLoaiBN.Focus();
     }
 }
Exemplo n.º 2
0
 void txtTinhtrangravien__OnSaveAs()
 {
     if (Utility.DoTrim(txtTinhtrangravien.Text) == "") return;
     DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtTinhtrangravien.LOAI_DANHMUC);
     _DMUC_DCHUNG.SetStatus(true, txtTinhtrangravien.Text);
     _DMUC_DCHUNG.ShowDialog();
     if (!_DMUC_DCHUNG.m_blnCancel)
     {
         string oldCode = txtTinhtrangravien.Text;
         txtTinhtrangravien.Init();
         txtTinhtrangravien._Text = oldCode;
         txtTinhtrangravien.Focus();
     }
 }
Exemplo n.º 3
0
 private void txtNhommau__OnSaveAs()
 {
     if (Utility.DoTrim(txtNhommau.Text) == "") return;
     var _DMUC_DCHUNG = new DMUC_DCHUNG(txtNhommau.LOAI_DANHMUC);
     _DMUC_DCHUNG.SetStatus(true, txtNhommau.Text);
     _DMUC_DCHUNG.ShowDialog();
     if (!_DMUC_DCHUNG.m_blnCancel)
     {
         string oldCode = txtNhommau.myCode;
         txtNhommau.Init();
         txtNhommau.SetCode(oldCode);
         txtNhommau.Focus();
     }
 }
Exemplo n.º 4
0
 void txtPhuongphapdieutri__OnSaveAs()
 {
     if (Utility.DoTrim(txtPhuongphapdieutri.Text) == "") return;
     DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtKieuchuyenvien.LOAI_DANHMUC);
     _DMUC_DCHUNG.SetStatus(true, txtKieuchuyenvien.Text);
     _DMUC_DCHUNG.ShowDialog();
     if (!_DMUC_DCHUNG.m_blnCancel)
     {
         string oldCode = txtKieuchuyenvien.Text;
         txtKieuchuyenvien.Init();
         txtKieuchuyenvien._Text = oldCode;
         txtKieuchuyenvien.Focus();
     }
 }
Exemplo n.º 5
0
 void txtphuongtienvc__OnSaveAs()
 {
     if (Utility.DoTrim(txtHuongdieutri.Text) == "") return;
     DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtphuongtienvc.LOAI_DANHMUC);
     _DMUC_DCHUNG.SetStatus(true, txtphuongtienvc.Text);
     _DMUC_DCHUNG.ShowDialog();
     if (!_DMUC_DCHUNG.m_blnCancel)
     {
         string oldCode = txtphuongtienvc.Text;
         txtphuongtienvc.Init();
         txtphuongtienvc._Text = oldCode;
         txtphuongtienvc.Focus();
     }
 }