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 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");
            }
        }