Esempio n. 1
0
 private void btnPrevious_Click(object sender, EventArgs e)
 {
     offset--;
     if (offset < 0)
     {
         offset++;
         return;
     }
     dtgDSPhieuThue.DataSource = PhieuThueDAO.LayDSPhieuThue(limit, offset);
 }
Esempio n. 2
0
 private void btnNext_Click(object sender, EventArgs e)
 {
     offset++;
     if (offset * limit >= total)
     {
         offset--;
         return;
     }
     dtgDSPhieuThue.DataSource = PhieuThueDAO.LayDSPhieuThue(limit, offset);
 }
Esempio n. 3
0
 private void ucThuePhong_Load(object sender, EventArgs e)
 {
     setUpCMBTinhTrangPhieuThue();
     total = PhieuThueDAO.LaySoLuongPhieuThue();
     dtgDSPhieuThue.DataSource = PhieuThueDAO.LayDSPhieuThue(limit, offset);
 }