예제 #1
0
        void loadChiTietHoaDon()
        {
            DAOTable         ban = new DAOTable();
            DAOHoaDon        hd  = new DAOHoaDon();
            DAOChiTietHoaDon ct  = new DAOChiTietHoaDon();

            if (ban.KTBanDangSD(Globals.Maban))
            {
                dtg_chitiet.DataSource         = ct.getChiTietHoaDon(Globals.Mahoadon);
                dtg_chitiet.AllowUserToAddRows = false;
                txt_tongtien.text = hd.getTongbill(Globals.Mahoadon).ToString();
            }
        }