Пример #1
0
        public void Hide_Visible(Panel pn)
        {
            if (pn == QuanLiKho)
            {
                QuanLiBanHang.Hide();
                QuanLiNhanVien.Hide();
                BaoCaoDoanhSo.Hide();
                pn.Size     = new Size(645, 491);
                pn.Location = new Point(202, 26);
                pn.Show();
            }

            else if (pn == QuanLiNhanVien)
            {
                QuanLiBanHang.Hide();
                QuanLiKho.Hide();
                BaoCaoDoanhSo.Hide();
                pn.Size     = new Size(645, 491);
                pn.Location = new Point(202, 26);
                pn.Show();
            }
            else if (pn == QuanLiBanHang)
            {
                QuanLiKho.Hide();
                QuanLiNhanVien.Hide();
                BaoCaoDoanhSo.Hide();
                pn.Size     = new Size(645, 491);
                pn.Location = new Point(202, 26);
                pn.Show();
            }
            else if (pn == BaoCaoDoanhSo)
            {
                QuanLiBanHang.Hide();
                QuanLiNhanVien.Hide();
                QuanLiKho.Hide();
                pn.Size     = new Size(645, 491);
                pn.Location = new Point(202, 26);
                pn.Show();
            }
        }
Пример #2
0
        private void MainMenu_Load(object sender, EventArgs e)
        {
            QuanLiBanHang.Size     = new Size(645, 491);
            QuanLiBanHang.Location = new Point(202, 26);
            bt_BanHang.BackColor   = Color.FromArgb(26, 188, 156); //mau button khi nhap vao
            // chỉ hiện panel chính
            {
                QuanLiKho.Hide();
                BaoCaoDoanhSo.Hide();
                QuanLiNhanVien.Hide();
                pn_DangXuat.Hide();
                pn_ThongBao.Hide();
            }
            QuanLiBanHang.Show();
            bt_Account.Text           = UserName;
            ThongTinNv.UserName_infor = bt_Account.Text;
            int ma = ac.ACCOUNTByName(UserName).ID;

            if (nvbus.NhanVienByID(ma).MACV == "NVBH")
            {
                bt_QuanLiNhanVien.Hide();
            }
        }
Пример #3
0
        private void bt_ThemNv_Click(object sender, EventArgs e)
        {
            QuanLiNhanVien QuanLiNv = new QuanLiNhanVien();

            QuanLiNv.ShowDialog();
        }