Esempio n. 1
0
        public void hienThiThongTin()
        {
            lblMaNV.Text                      = "Mã NV: " + manv;
            tblDatPhong.DataSource            = dp.danhSachPhieuDat(null);
            tblDatPhong.Columns[0].HeaderText = "Mã phiếu đặt";
            tblDatPhong.Columns[1].HeaderText = "Mã nv";
            tblDatPhong.Columns[2].HeaderText = "CMND";
            tblDatPhong.Columns[3].HeaderText = "Họ tên";
            tblDatPhong.Columns[4].HeaderText = "Điện thoại";
            tblDatPhong.Columns[5].HeaderText = "Phòng";
            tblDatPhong.Columns[6].HeaderText = "Ngày nhận";
            tblDatPhong.Columns[7].HeaderText = "Ngày trả";
            tblDatPhong.Columns[8].HeaderText = "Trạng thái";

            tblThuePhong.DataSource            = tp.danhSachPhieuThue(null);
            tblThuePhong.Columns[0].HeaderText = "Mã phiếu thuê";
            tblThuePhong.Columns[1].HeaderText = "Mã nv";
            tblThuePhong.Columns[2].HeaderText = "CMND";
            tblThuePhong.Columns[3].HeaderText = "Họ tên";
            tblThuePhong.Columns[4].HeaderText = "Điện thoại";
            tblThuePhong.Columns[5].HeaderText = "Phòng";
            tblThuePhong.Columns[6].HeaderText = "Ngày thuê";
            tblThuePhong.Columns[7].HeaderText = "Ngày trả";
            tblThuePhong.Columns[8].HeaderText = "Trạng thái";
        }