Example #1
0
 public LichSuXuatHoaDonControl()
 {
     InitializeComponent();
     bill_dao   = dao.BillDao.getInstance();
     detail_dao = dao.DetailBillDao.getInstance();
     event_dao  = dao.EventDao.getInstance();
     loadData();
 }
Example #2
0
        public BanHangControl()
        {
            InitializeComponent();

            cardModel     = new CardModel(new List <ListViewItem>());
            cardCareTaker = new CardCareTaker();

            product_dao  = dao.ProductDao.getInstance();
            event_dao    = dao.EventDao.getInstance();
            customer_dao = dao.CustomerDao.getInstance();
            bill_dao     = dao.BillDao.getInstance();
            detail_bill  = dao.DetailBillDao.getInstance();
            lb_nhanVienBanHang_banHangControl.Text = Program.currentEmployee.name_employee;
            loadData();
            dgv_sanPham_banHangControl.ClearSelection();
        }