private void btnThem_Click(object sender, EventArgs e)
        {
            PhieuMuon_DTO phieuMuon = lstPhieuMuon.SingleOrDefault(item => item.SoPhieuMuon.Trim() == txtSoPhieuMuon.Text);

            if (phieuMuon != null)
            {
                MessageBox.Show("Số phiếu mượn bạn nhập đã tồn tại. Xin kiểm tra lại");
                return;
            }
            else
            {
                PhieuMuon_DTO pm = new PhieuMuon_DTO();
                pm.SoPhieuMuon = txtSoPhieuMuon.Text;
                pm.NgayMuon    = dtpNgayMuon.Value;
                pm.NgayHenTra  = dtpNgayHenTra.Value;
                pm.MaNhanVien  = cboNhanVien.SelectedValue.ToString();
                pm.MaDocGia    = cboDocGia.SelectedValue.ToString();
                int kq = PhieuMuon_DAO.Instance.ThemPhieuMuon(pm);
                if (kq > 0)
                {
                    MessageBox.Show("Thêm phiếu mượn thành công", "Thông báo");
                    LoadPhieuMuon();
                    SoPhieuMuon = txtSoPhieuMuon.Text;
                    frmThemChiTietPhieuMuon frm = new frmThemChiTietPhieuMuon();
                    frm.ShowDialog();
                    LoadThongTinMuonTra();
                }
                else
                {
                    MessageBox.Show("Thêm phiếu mượn thất bại", "Thông báo");
                }
            }
        }
        private void dgvPhieuMuon_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int idx = e.RowIndex;

            SoPhieuMuon = dgvPhieuMuon.Rows[idx].Cells["SoPhieuMuon"].Value.ToString();
            frmThemChiTietPhieuMuon frm = new frmThemChiTietPhieuMuon();

            frm.ShowDialog();
            LoadThongTinMuonTra();
        }