Exemplo n.º 1
0
        private void txtDonvitinh__OnShowData()
        {
            var _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();
            }
        }
        void txtQuychuan__OnShowData()
        {
            DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtQuychuan.LOAI_DANHMUC);

            _DMUC_DCHUNG.ShowDialog();
            if (!_DMUC_DCHUNG.m_blnCancel)
            {
                string oldCode = txtQuychuan.myCode;
                txtQuychuan.Init();
                txtQuychuan.SetCode(oldCode);
                txtQuychuan.Focus();
            }
        }
        void txtDonvitinh__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);
                txtDonvitinh.Focus();
            }
        }
        void txtNhominphoiBHYT__OnShowData()
        {
            DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtNhominphoiBHYT.LOAI_DANHMUC);

            _DMUC_DCHUNG.ShowDialog();
            if (!_DMUC_DCHUNG.m_blnCancel)
            {
                string oldCode = txtNhominphoiBHYT.myCode;
                txtNhominphoiBHYT.Init();
                txtNhominphoiBHYT.SetCode(oldCode);
                txtNhominphoiBHYT.Focus();
            }
        }
Exemplo n.º 5
0
 private void cmdPrint_Click(object sender, EventArgs e)
 {
     try
     {
         if (!Utility.isValidGrid(grdList))
         {
             return;
         }
         DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(Utility.sDbnull(Utility.getValueOfGridCell(grdList, DmucKieudmuc.Columns.MaLoai), ""));
         _DMUC_DCHUNG.ShowDialog();
     }
     catch
     {
     }
 }
Exemplo n.º 6
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);

            }
        }
 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();
     }
 }
Exemplo n.º 8
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();
     }
 }
 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();
     }
 }
 private void txtCachDung__OnShowData()
 {
     DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtCachDung.LOAI_DANHMUC);
     _DMUC_DCHUNG.ShowDialog();
     if (!_DMUC_DCHUNG.m_blnCancel)
     {
         string oldCode = txtCachDung.myCode;
         txtCachDung.Init();
         txtCachDung.SetCode(oldCode);
         txtCachDung.Focus();
     }
 }
Exemplo n.º 11
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.º 12
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.º 13
0
 void txtHuongdieutri__OnShowData()
 {
     DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtHuongdieutri.LOAI_DANHMUC);
     _DMUC_DCHUNG.ShowDialog();
     if (!_DMUC_DCHUNG.m_blnCancel)
     {
         string oldCode = txtHuongdieutri.myCode;
         txtHuongdieutri.Init();
         txtHuongdieutri.SetCode(oldCode);
         txtHuongdieutri.Focus();
     }
 }
Exemplo n.º 14
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();
     }
 }
Exemplo n.º 15
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();
            }
        }
Exemplo n.º 16
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();
     }
 }
 void txtPhuongphapthu__OnShowData()
 {
     DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtPhuongphapthu.LOAI_DANHMUC);
     _DMUC_DCHUNG.ShowDialog();
     if (!_DMUC_DCHUNG.m_blnCancel)
     {
         string oldCode = txtPhuongphapthu.myCode;
         txtPhuongphapthu.Init();
         txtPhuongphapthu.SetCode(oldCode);
         txtPhuongphapthu.Focus();
     }
 }
Exemplo n.º 18
0
 void txtDonvitinh__OnShowData()
 {
     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();
     }
 }
Exemplo n.º 19
0
 void txtKqdieutri__OnShowData()
 {
     DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtKqdieutri.LOAI_DANHMUC);
     _DMUC_DCHUNG.ShowDialog();
     if (!_DMUC_DCHUNG.m_blnCancel)
     {
         string oldCode = txtKqdieutri.Text;
         txtKqdieutri.Init();
         txtKqdieutri._Text = oldCode;
         txtKqdieutri.Focus();
     }
 }
Exemplo n.º 20
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.º 21
0
 void txtPhuongphapdieutri__OnShowData()
 {
     DMUC_DCHUNG _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();
     }
 }
Exemplo n.º 22
0
 private void txtNhommau__OnShowData()
 {
     var _DMUC_DCHUNG = new DMUC_DCHUNG(txtNhommau.LOAI_DANHMUC);
     _DMUC_DCHUNG.ShowDialog();
     if (!_DMUC_DCHUNG.m_blnCancel)
     {
         string oldCode = txtNhommau.myCode;
         txtNhommau.Init();
         txtNhommau.SetCode(oldCode);
         txtNhommau.Focus();
     }
 }
Exemplo n.º 23
0
 void txtTinhtrangravien__OnShowData()
 {
     DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtTinhtrangravien.LOAI_DANHMUC);
     _DMUC_DCHUNG.ShowDialog();
     if (!_DMUC_DCHUNG.m_blnCancel)
     {
         string oldCode = txtTinhtrangravien.Text;
         txtTinhtrangravien.Init();
         txtTinhtrangravien._Text = oldCode;
         txtTinhtrangravien.Focus();
     }
 }
Exemplo n.º 24
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();
     }
 }
 void txtNhacungcap__OnShowData()
 {
     DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtNhacungcap.LOAI_DANHMUC);
     _DMUC_DCHUNG.ShowDialog();
     if (!_DMUC_DCHUNG.m_blnCancel)
     {
         string oldCode = txtNhacungcap.myCode;
         txtNhacungcap.Init();
         txtNhacungcap.SetCode(oldCode);
         txtNhacungcap.Focus();
     }
 }
Exemplo n.º 26
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();
     }
 }
 void txtLyDoXuat__OnShowData()
 {
     DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtLyDoXuat.LOAI_DANHMUC);
     _DMUC_DCHUNG.ShowDialog();
     if (!_DMUC_DCHUNG.m_blnCancel)
     {
         string oldCode = txtNguoinhan.myCode;
         txtLyDoXuat.Init();
         txtLyDoXuat.SetCode(oldCode);
         txtLyDoXuat.Focus();
     }
 }
Exemplo n.º 28
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();
     }
 }
Exemplo n.º 29
0
 void txtTrieuChungBD__OnShowData()
 {
     DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtTrieuChungBD.LOAI_DANHMUC);
     _DMUC_DCHUNG.ShowDialog();
     if (!_DMUC_DCHUNG.m_blnCancel)
     {
         string oldCode = txtTrieuChungBD.myCode;
         txtTrieuChungBD.Init();
         txtTrieuChungBD.SetCode(oldCode);
         txtTrieuChungBD.Focus();
     }
 }
Exemplo n.º 30
0
        void txtDonvitinh__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);

                txtDonvitinh.Focus();
            }
        }
 void txtLydohuy__OnShowData()
 {
     DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(txtLydohuy.LOAI_DANHMUC);
     _DMUC_DCHUNG.ShowDialog();
     if (!_DMUC_DCHUNG.m_blnCancel)
     {
         string oldCode = txtLydohuy.myCode;
         txtLydohuy.Init();
         txtLydohuy.SetCode(oldCode);
         txtLydohuy.Focus();
     }
 }
Exemplo n.º 32
0
        private void cmdPrint_Click(object sender, EventArgs e)
        {
            try
            {
                if (!Utility.isValidGrid(grdList)) return;
                DMUC_DCHUNG _DMUC_DCHUNG = new DMUC_DCHUNG(Utility.sDbnull(Utility.getValueOfGridCell(grdList, DmucKieudmuc.Columns.MaLoai), ""));
                _DMUC_DCHUNG.ShowDialog();
            }
            catch
            {

            }
        }