private void frmMenu_Load(object sender, EventArgs e)
        {
            this.Text = "CHƯƠNG TRÌNH QUẢN LÝ QUẦY THUỐC - NHÓM 9";

            bEmp = new bEmployee();
            emp  = bEmp.getEmployeeFromID(EmpID);

            tàiKhoảnToolStripMenuItem.Text = emp.EmployeeName;

            //PHÂN QUYỀN NGƯỜI DÙNG
            if (EmpID.Contains("BH"))
            {
                CateToolStripMenuItem.Visible  = false;
                thongToolStripMenuItem.Visible = false;
            }
            else if (EmpID.Contains("QL"))
            {
                xửLýToolStripMenuItem.Visible  = false;
                thongToolStripMenuItem.Visible = false;
            }
            else if (EmpID.Contains("TK"))
            {
                xửLýToolStripMenuItem.Visible = false;
                CateToolStripMenuItem.Visible = false;
            }
        }
        private void frmEmployeeSearch_Load(object sender, EventArgs e)
        {
            bEmp = new bEmployee();

            dgvEmpList.DataSource = bEmp.getAllEmployee();
            FormatDataGridview();

            rdoID.Checked = true;

            txtSearch.AutoCompleteMode   = AutoCompleteMode.Suggest;
            txtSearch.AutoCompleteSource = AutoCompleteSource.CustomSource;
        }
        private void frmEmployeeManager_Load(object sender, EventArgs e)
        {
            //Set giao diện lúc load
            bEmpl           = new bEmployee();
            btnSave.Enabled = false;
            label2.Text     = "";

            //Load dữ liệu lên combobox
            cboEmpType.DataSource = bEmpl.getAllTypeName();

            //Load dữ liệu datagridview
            dgvEmpList.DataSource = bEmpl.getAllEmployee();
            FormatDataGridview();

            setOnOffEditTextbox(0);
        }
        private void frmAccountDetails_Load(object sender, EventArgs e)
        {
            this.ActiveControl = lblName;

            txtName.ReadOnly     = true;
            txtName.BackColor    = System.Drawing.SystemColors.Window;
            txtPhone.ReadOnly    = true;
            txtPhone.BackColor   = System.Drawing.SystemColors.Window;
            txtAddress.ReadOnly  = true;
            txtAddress.BackColor = System.Drawing.SystemColors.Window;
            txtID.ReadOnly       = true;
            txtID.BackColor      = System.Drawing.SystemColors.Window;

            bEmp = new bEmployee();
            eEmp = new eEmployee();
            eEmp = bEmp.getEmployeeFromID(EmpID);

            lblName.Text    = eEmp.EmployeeName;
            txtName.Text    = eEmp.EmployeeName;
            txtPhone.Text   = eEmp.Phone;
            txtAddress.Text = eEmp.Address;
            txtID.Text      = eEmp.EmployeeID;
        }