Esempio n. 1
0
        public QuanLyNhanVienControl()
        {
            account_dao  = dao.AccountDAO.getInstance();
            employee_dao = dao.EmployeeDAO.getInstance();


            InitializeComponent();
            commandButtonManagement = new
                                      CommandButtonImp(bt_themNhanVien_quanLyNhanVienControl, bt_refresh_quanLyNhanVienControl,
                                                       bt_xoaNhanVien_quanLyNhanVienControl, bt_capNhatNhanVien_quanLyNhanVienControl, dtg_nhanVien_quanLyNhanVienControl);
        }
        public QuanLyNhapSanPhamControl()
        {
            InitializeComponent();
            receive_note_dao = dao.ReceiveNoteDao.getInstance();
            product_dao      = dao.ProductDao.getInstance();

            commandButtonManagement = new
                                      CommandButtonImp(bt_nhap_quanLyNhapSanPhamControl, bt_refresh_quanLyNhapSanPham,
                                                       bt_xoa_quanLyNhapSanPham, bt_capNhat_quanLyNhapSanPham, dgv_sanPham_quanLyNhapSanPham);

            lb_maNhanVien_quanLySanPhamNhanVien.Text = Program.currentEmployee.id_employee.ToString();
            loadData();
        }
        public QuanLyKhachHangVaSuKienControl()
        {
            InitializeComponent();

            customer_dao = dao.CustomerDao.getInstance();
            event_dao    = dao.EventDao.getInstance();

            commandButtonManagementKhachHang = new
                                               CommandButtonImp(bt_themKhachHang_quanLyKhachHangVaSuKien, bt_refreshKhachHang_quanLyKhachHangVaSuKien,
                                                                bt_xoaKhachHang_quanLyKhachHangVaSuKien, bt_capNhatKhachHang_quanLyKhachHangVaSuKien, dgv_khachHang_quanLyKhachHangVaSuKien);

            commandButtonManagementEvent = new
                                           CommandButtonImp(bt_themSuKien_quanLyKhachHangVaSuKien, bt_refreshSuKien_quanLyKhachHangVaSuKien,
                                                            bt_xoaSuKien_quanLyKhachHangVaSuKien, bt_capNhatSuKien_quanLyKhachHangVaSuKien, dgv_suKien_quanLyKhachHangVaSuKien);
            loadData();
        }
        public QuanLySanPhamControl()
        {
            InitializeComponent();
            product_dao  = dao.ProductDao.getInstance();
            category_dao = dao.CategoryDao.getInstance();

            commandButtonManagementCategory = new
                                              CommandButtonImp(bt_themLoaiSanPham_quanLySanPhamControl, bt_refreshLoai_quanLySanPhamControl,
                                                               bt_xoaLoaiSanPham_quanLySanPhamControl, bt_capNhatLoai_quanLySanPhamControl, dtv_loaiSanPham_quanLySanPhamControl);

            commandButtonManagementProduct = new
                                             CommandButtonImp(bt_themSanPham_quanLySanPhamControl, bt_refresh_quanLySanPhamControl,
                                                              bt_xoaSanPham_quanLySanPhamControl, bt_capNhatSanPham_quanLySanPhamControl, dtv_sanPham_quanLySanPhamControl);

            loadData();
        }