Exemplo n.º 1
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();
            }
        }
Exemplo n.º 2
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();
            }
        }
Exemplo n.º 3
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();
            }
        }
Exemplo n.º 4
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();
            }
        }