Пример #1
0
 public void frmStatistic_Load(object sender, EventArgs e)
 {
     hdBus   = new HoaDonBUS();
     cthdBus = new ChiTietHoaDonBUS();
     lhdBus  = new LoaiHoaDonBUS();
     loadType_Combobox();
 }
Пример #2
0
 public void frmPayment_Load(object sender, EventArgs e)
 {
     hdBus     = new HoaDonBUS();
     cthdBus   = new ChiTietHoaDonBUS();
     lhdBus    = new LoaiHoaDonBUS();
     khBus     = new KhachHangBUS();
     parBus    = new parametersBUS();
     drkBus    = new drinksBUS();
     KH        = new KhachHangDTO();
     water     = new drinksDTO();
     water     = drkBus.selectPrice(1);
     revive    = new drinksDTO();
     revive    = drkBus.selectPrice(2);
     giaNuoc   = water.DonGiaBan;
     giaRevive = revive.DonGiaBan;
     //List<drinksDTO> listdrk = drkBus.selectDrinks();
     //foreach (drinksDTO drk in listdrk)
     //{
     //    if (drk.MaDoUong == "1")
     //    {
     //        giaNuoc = drk.DonGiaBan;
     //    }
     //    else if (drk.MaDoUong == "2")
     //    {
     //        giaRevive = drk.DonGiaBan;
     //    }
     //}
     LoadInfo();
     loadCusPhone_Combobox();
     tbTotalMoney.Text = "0";
 }