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

            pms.NguoiMuonSachId = this.madg;
            pms.SachId          = this.masach;
            pms.NgayMuon        = dtCMTCNgayMuon.Value;
            pms.NgayDuKienTra   = dtCMTCDuKienTra.Value;

            PhieuMuonSachBLL pmsbll   = new PhieuMuonSachBLL();
            bool             phieumoi = pmsbll.ThemPhieuMuon(pms);

            if (phieumoi)
            {
                MessageBox.Show("Đã Lưu thông tin mượn sách của đọc giả", "Thông Báo");
            }
        }
Exemple #2
0
        private void TaoPhieuMoi()
        {
            PhieuMuonSach pms = new PhieuMuonSach();

            pms.NguoiMuonSachId = int.Parse(txtConfirmMaDocGia.Text);
            pms.SachId          = int.Parse(txtConfirmMaSach.Text);
            pms.NgayMuon        = datetimeConfirmNgayMuon.Value;
            pms.NgayDuKienTra   = datetimeConfirmNgayDuKienTra.Value;

            PhieuMuonSachBLL pmsbll   = new PhieuMuonSachBLL();
            bool             phieumoi = pmsbll.ThemPhieuMuon(pms);

            if (phieumoi)
            {
                MessageBox.Show("Nhấn nút cập nhật nhé!!!", "Thông Báo");
                this.Close();
            }
        }