Пример #1
0
 void txtNguongoc__OnShowData()
 {
     DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtNguongoc.LOAI_DANHMUC);
     _DMUC_DCHUNG.ShowDialog();
     if (!_DMUC_DCHUNG.m_blnCancel)
     {
         string oldCode = txtNguongoc.myCode;
         txtNguongoc.Init();
         txtNguongoc.SetCode(oldCode);
         txtNguongoc.Focus();
     }
 }
Пример #2
0
 void txtDangBaoChe__OnShowData()
 {
     DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtDangBaoChe.LOAI_DANHMUC);
     _DMUC_DCHUNG.ShowDialog();
     if (!_DMUC_DCHUNG.m_blnCancel)
     {
         string oldCode = txtDangBaoChe.myCode;
         txtDangBaoChe.Init();
         txtDangBaoChe.SetCode(oldCode);
         txtDangBaoChe.Focus();
     }   
 }
Пример #3
0
 void txtKieuthuocVT__OnShowData()
 {
     DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtKieuthuocVT.LOAI_DANHMUC);
     _DMUC_DCHUNG.ShowDialog();
     if (!_DMUC_DCHUNG.m_blnCancel)
     {
         string oldCode = txtKieuthuocVT.myCode;
         txtKieuthuocVT.Init();
         txtKieuthuocVT.SetCode(oldCode);
         txtKieuthuocVT.Focus();
     }    
 }
Пример #4
0
 void cmdThemdonvitinh_Click(object sender, EventArgs e)
 {
     DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG("DONVITINH");
     _DMUC_DCHUNG.ShowDialog();
     if (!_DMUC_DCHUNG.m_blnCancel)
     {
         string oldCode = txtDonvitinh.myCode;
         txtDonvitinh.Init();
         txtDonvitinh.SetCode(oldCode);
         txtDonvitinh.Focus();
     }
 }
Пример #5
0
 void txtCachsudung__OnShowData()
 {
     DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtCachsudung.LOAI_DANHMUC);
     _DMUC_DCHUNG.ShowDialog();
     if (!_DMUC_DCHUNG.m_blnCancel)
     {
         string oldCode = txtCachsudung.myCode;
         txtCachsudung.Init();
         txtCachsudung.SetCode(oldCode);
         txtCachsudung.Focus();
     }   
 }
Пример #6
0
        void txtdauhieucls__OnShowData()
        {
            DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtdauhieucls.LOAI_DANHMUC);

            _DMUC_DCHUNG.ShowDialog();
            if (!_DMUC_DCHUNG.m_blnCancel)
            {
                string oldCode = txtdauhieucls.Text;
                txtdauhieucls.Init();
                txtdauhieucls._Text = oldCode;
                txtdauhieucls.Focus();
            }
        }
Пример #7
0
        void cmdThemLydochietkhau_Click(object sender, EventArgs e)
        {
            DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG("LYDOCHIETKHAU");

            _DMUC_DCHUNG.ShowDialog();
            if (!_DMUC_DCHUNG.m_blnCancel)
            {
                string oldCode = txtLydochietkhau.myCode;
                txtLydochietkhau.Init();
                txtLydochietkhau.SetCode(oldCode);
                txtLydochietkhau.Focus();
            }
        }
        void txtLoaiBN__OnShowData()
        {
            DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtLoaikham.LOAI_DANHMUC);

            _DMUC_DCHUNG.ShowDialog();
            if (!_DMUC_DCHUNG.m_blnCancel)
            {
                string oldCode = txtLoaikham.myCode;
                txtLoaikham.Init();
                txtLoaikham.SetCode(oldCode);
                txtLoaikham.Focus();
            }
        }
        private void txtthauphu_nguoinhan__OnShowData()
        {
            var dmuchung = new DMUC_DCHUNG(txtthauphu_nguoinhan.LOAI_DANHMUC);

            dmuchung.ShowDialog();
            if (!dmuchung.m_blnCancel)
            {
                string oldCode = txtthauphu_nguoinhan.myCode;
                txtthauphu_nguoinhan.Init();
                txtthauphu_nguoinhan.SetCode(oldCode);
                txtthauphu_nguoinhan.Focus();
            }
        }
Пример #10
0
        void cmdThemnguoinhuy_Click(object sender, EventArgs e)
        {
            DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtDiadiem.LOAI_DANHMUC);

            _DMUC_DCHUNG.ShowDialog();
            if (!_DMUC_DCHUNG.m_blnCancel)
            {
                string oldCode = txtDiadiem.myCode;
                txtDiadiem.Init();
                txtDiadiem.SetCode(oldCode);
                txtDiadiem.Focus();
            }
        }
Пример #11
0
        void txtLydothanhly__OnShowData()
        {
            DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtLydothanhly.LOAI_DANHMUC);

            _DMUC_DCHUNG.ShowDialog();
            if (!_DMUC_DCHUNG.m_blnCancel)
            {
                string oldCode = txtLydothanhly.myCode;
                txtLydothanhly.Init();
                txtLydothanhly.SetCode(oldCode);
                txtLydothanhly.Focus();
            }
        }
        private void txtvisinh_nguoigiao__OnShowData()
        {
            var dmuchung = new DMUC_DCHUNG(txtvisinh_nguoigiao.LOAI_DANHMUC);

            dmuchung.ShowDialog();
            if (!dmuchung.m_blnCancel)
            {
                string oldCode = txtvisinh_nguoigiao.myCode;
                txtvisinh_nguoigiao.Init();
                txtvisinh_nguoigiao.SetCode(oldCode);
                txtvisinh_nguoigiao.Focus();
            }
        }
Пример #13
0
        void txtphuongtienvc__OnShowData()
        {
            DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtphuongtienvc.LOAI_DANHMUC);

            _DMUC_DCHUNG.ShowDialog();
            if (!_DMUC_DCHUNG.m_blnCancel)
            {
                string oldCode = txtphuongtienvc.Text;
                txtphuongtienvc.Init();
                txtphuongtienvc._Text = oldCode;
                txtphuongtienvc.Focus();
            }
        }
Пример #14
0
        private void txtKieuchuyenvien__OnShowData()
        {
            var _DMUC_DCHUNG = new DMUC_DCHUNG(txtKieuchuyenvien.LOAI_DANHMUC);

            _DMUC_DCHUNG.ShowDialog();
            if (!_DMUC_DCHUNG.m_blnCancel)
            {
                string oldCode = txtKieuchuyenvien.Text;
                txtKieuchuyenvien.Init();
                txtKieuchuyenvien._Text = oldCode;
                txtKieuchuyenvien.Focus();
            }
        }
Пример #15
0
        void txtTrangthainguoibenh__OnShowData()
        {
            DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtTrangthainguoibenh.LOAI_DANHMUC);

            _DMUC_DCHUNG.ShowDialog();
            if (!_DMUC_DCHUNG.m_blnCancel)
            {
                string oldCode = txtTrangthainguoibenh.Text;
                txtTrangthainguoibenh.Init();
                txtTrangthainguoibenh._Text = oldCode;
                txtTrangthainguoibenh.Focus();
            }
        }
        void txtTomtatquatrinh__OnShowData()
        {
            DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtTomtatquatrinh.LOAI_DANHMUC);

            _DMUC_DCHUNG.ShowDialog();
            if (!_DMUC_DCHUNG.m_blnCancel)
            {
                string oldCode = txtTomtatquatrinh.myCode;
                txtTomtatquatrinh.Init();
                txtTomtatquatrinh.SetCode(oldCode);
                txtTomtatquatrinh.Focus();
            }
        }
Пример #17
0
        void txtDonvichia__OnShowData()
        {
            DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtDonvitinh.LOAI_DANHMUC);
            _DMUC_DCHUNG.ShowDialog();
            if (!_DMUC_DCHUNG.m_blnCancel)
            {
                string oldCode = txtDonvitinh.myCode;
                txtDonvitinh.Init();
                txtDonvitinh.SetCode(oldCode);

                oldCode = txtDonvichia.myCode;
                txtDonvichia.Init();
                txtDonvichia.SetCode(oldCode);

                txtDonvichia.Focus();
            }   
        }
Пример #18
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();
            }
        }
Пример #19
0
        private void txtKieuchuyenvien__OnSaveAs()
        {
            if (Utility.DoTrim(txtPhuongphapdieutri.Text) == "")
            {
                return;
            }
            var _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();
            }
        }
Пример #20
0
        void txtLydo__OnSaveAs()
        {
            if (Utility.DoTrim(txtLydo.Text) == "")
            {
                return;
            }
            DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtLydo.LOAI_DANHMUC);

            _DMUC_DCHUNG.SetStatus(true, txtLydo.Text);
            _DMUC_DCHUNG.ShowDialog();
            if (!_DMUC_DCHUNG.m_blnCancel)
            {
                string oldCode = txtLydo.myCode;
                txtLydo.Init();
                txtLydo.SetCode(oldCode);
                txtLydo.Focus();
            }
        }
Пример #21
0
        void txtTrangthainguoibenh__OnSaveAs()
        {
            if (Utility.DoTrim(txtTrangthainguoibenh.Text) == "")
            {
                return;
            }
            DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtTrangthainguoibenh.LOAI_DANHMUC);

            _DMUC_DCHUNG.SetStatus(true, txtTrangthainguoibenh.Text);
            _DMUC_DCHUNG.ShowDialog();
            if (!_DMUC_DCHUNG.m_blnCancel)
            {
                string oldCode = txtTrangthainguoibenh.Text;
                txtTrangthainguoibenh.Init();
                txtTrangthainguoibenh._Text = oldCode;
                txtTrangthainguoibenh.Focus();
            }
        }
Пример #22
0
 public static void ShowMe(AutoCompleteTextbox_Danhmucchung txt)
 {
     try
     {
         DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txt.LOAI_DANHMUC);
         _DMUC_DCHUNG.ShowDialog();
         if (!_DMUC_DCHUNG.m_blnCancel)
         {
             string oldCode = txt.myCode;
             txt.Init();
             txt.SetCode(oldCode);
             txt.Focus();
         }
     }
     catch (Exception ex)
     {
         Utility.CatchException(ex);
     }
 }