private void DongPhieuMuon()
        {
            PhieuMuonSach pms = new PhieuMuonSach();

            pms.MaPhieuMuon = int.Parse(txtConfirmMaPhieu.Text);
            pms.NgayTraSach = dtpConfirmNgayTra.Value;

            PhieuMuonSachBLL pmsbll     = new PhieuMuonSachBLL();
            bool             closephieu = pmsbll.DongPhieuMuon(pms);

            Sach sac = new Sach();

            sac.ID = int.Parse(txtMaSach.Text);
            SachBLL scbll     = new SachBLL();
            bool    trangthai = scbll.CapNhatPhieuMuon(sac);

            if (closephieu && trangthai)
            {
                MessageBox.Show("Nhấn nút cập nhật nhé!!!", "Thông Báo");
                this.Close();
            }
        }
        private void XuLySachLoi()
        {
            PhieuMuonSach pms = new PhieuMuonSach();

            pms.MaPhieuMuon = int.Parse(txtTHMaP.Text);
            PhieuMuonSachBLL pmsbll = new PhieuMuonSachBLL();
            bool             xyly   = pmsbll.XuLySachLoi(pms);

            Sach idsach = new Sach();

            idsach.ID = int.Parse(txtTHMaS.Text);
            SachBLL trasachbll = new SachBLL();
            bool    capnhat    = trasachbll.CapNhatPhieuMuon(idsach);

            if (xyly && capnhat)
            {
                MessageBox.Show("Đã lưu thông tin", "Thông Báo");
            }
            else
            {
                MessageBox.Show("Stuck");
            }
        }
        private void TraSach()
        {
            PhieuMuonSach pms = new PhieuMuonSach();

            pms.MaPhieuMuon = int.Parse(txtTSMaP.Text);
            pms.NgayTraSach = dtTSNgayTra.Value;

            PhieuMuonSachBLL pmsbll  = new PhieuMuonSachBLL();
            bool             trasach = pmsbll.DongPhieuMuon(pms);
            Sach             idtra   = new Sach();

            idtra.ID = int.Parse(txtTSMaS.Text);
            SachBLL trasachbll = new SachBLL();
            bool    capnhat    = trasachbll.CapNhatPhieuMuon(idtra);

            if (trasach && capnhat)
            {
                MessageBox.Show("Đã lưu thông tin", "Thông Báo");
            }
            else
            {
                MessageBox.Show("Stuck");
            }
        }