Ejemplo n.º 1
0
 private void btn_ManageStaff_Click(object sender, EventArgs e)
 {
     MainController.ShowPnlControl(pnl_MenuControl, pnl_SalaryControl, pnl_TopStaff, pnl_Turnover, pnl_StaffControl);
     pnl_StaffControl.BringToFront();
     uCStaff = new UCStaff(tk, mk);
     MainController.LoadUC(pnl_Content, uCStaff);
 }
Ejemplo n.º 2
0
        private void btn_refresh_Click(object sender, EventArgs e)
        {
            var flag  = pnl_StaffControl.Visible;
            var flag1 = pnl_SalaryControl.Visible;
            var flag2 = pnl_MenuControl.Visible;

            if (flag == true)
            {
                pnl_SalaryControl.Visible = false;
                pnl_MenuControl.Visible   = false;
                pnl_StaffControl.Visible  = true;
                uCStaff = new UCStaff(tk, mk);
                MainController.LoadUC(pnl_Content, uCStaff);
            }
            if (flag2 == true)
            {
                pnl_SalaryControl.Visible = false;
                pnl_MenuControl.Visible   = true;
                pnl_StaffControl.Visible  = false;
                uCMenu = new UCMenu(tk, mk);
                MainController.LoadUC(pnl_Content, uCMenu);
            }

            //refresh content
        }
Ejemplo n.º 3
0
        private void btn_Search_Click(object sender, EventArgs e)
        {
            var luachon = cb_Chosse.Text;

            if (luachon == "Mã")
            {
                uCStaff = new UCStaff(tk, mk, txt_StaffName.Text, 1);
                MainController.LoadUC(pnl_Content, uCStaff);
            }
            else if (luachon == "Tên")
            {
                uCStaff = new UCStaff(tk, mk, txt_StaffName.Text, 2);
                MainController.LoadUC(pnl_Content, uCStaff);
            }
            else
            {
                MessageBox.Show("Chọn lựa chọn để tìm kiếm");
                return;
            }
        }