コード例 #1
0
ファイル: frmDotKhuyenMai.cs プロジェクト: tayduivn/mdebv
        private void f_Moi()
        {
            string aquyenchitiet = m_v.f_get_v_phanquyen_chitiet(m_userid, m_menu_id);

            if (!m_v.f_quyenchitiet_them(aquyenchitiet))
            {
                MessageBox.Show("Chưa được phân quyền thêm!");
                return;
            }
            try
            {
                txtID.Text          = "";
                chkReadonly.Checked = false;
                checkBox1.Checked   = false;
                txtTen.Text         = "";
                txtTuNgay.Text      = "";
                txtDenNgay.Text     = "";
                f_Enable(true);
                txtTen.Focus();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
コード例 #2
0
ファイル: frmBKHoantra.cs プロジェクト: tayduivn/mdebv
        private void tmn_Xem_Click(object sender, EventArgs e)
        {
            //
            string aquyenchitiet = m_v.f_get_v_phanquyen_chitiet(m_userid, m_menu_id);

            bKetxuatExcel = m_v.f_quyenchitiet_export(aquyenchitiet);
            //
            f_Xem();
        }
コード例 #3
0
ファイル: frmBKThutamung.cs プロジェクト: tayduivn/mdebv
        private void tmn_Xem_Click(object sender, EventArgs e)
        {
            //
            string aquyenchitiet = m_v.f_get_v_phanquyen_chitiet(m_userid, m_menu_id);

            bKetxuatExcel = m_v.f_quyenchitiet_export(aquyenchitiet);
            //
            if (rbt_datamung.Checked)
            {
                f_Datamung();
            }
            else
            {
                f_Xem();
            }
        }
コード例 #4
0
        private void f_Moi()
        {
            string aquyenchitiet = m_v.f_get_v_phanquyen_chitiet(m_userid, m_menu_id);

            if (!m_v.f_quyenchitiet_them(aquyenchitiet))
            {
                MessageBox.Show(lan.Change_language_MessageText("Chưa được phân quyền thêm!"));
                return;
            }
            try
            {
                txtID.Text          = "";
                txtSTT.Text         = m_v.get_stt_v_nhomvp.ToString();
                chkReadonly.Checked = false;
                txtMa.Text          = "";
                txtTen.Text         = "";
                txtViettat.Text     = "";
                if (cbNhombhyt.SelectedIndex < 0)
                {
                    try
                    {
                        cbNhombhyt.SelectedValue = treeView1.SelectedNode.Tag.ToString();
                    }
                    catch
                    {
                        cbNhombhyt.SelectedIndex = 0;
                    }
                }
                if (cbNhombhyt.SelectedIndex < 0)
                {
                    cbNhombhyt.SelectedIndex = 0;
                }
                m_id = "";
                f_Enable(true);
                txtMa.Focus();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }