登录 注册
当前位置:主页 > 资源下载 > 13 > Visual C++项目实例导航

Visual C++项目实例导航

  • 更新:2024-07-05 23:41:21
  • 大小:9.67MB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:C++ - 后端
  • 格式:RAR

资源介绍

m_lstBook.DeleteAllItems(); UpdateData(TRUE); m_strReaderName = ""; m_strReaderIDCard = ""; UpdateData(FALSE); if (m_strReaderID == "") { ::AfxMessageBox("请输入读者ID"); return; } m_ReaderSet.m_strFilter="READER_ID='"+m_strReaderID+"'"; m_ReaderSet.Open(); if (m_ReaderSet.IsEOF()) { AfxMessageBox("此读者ID号码不存在!"); m_ReaderSet.Close(); return; } m_strReaderName = m_ReaderSet.m_NAME ; m_strReaderIDCard = m_ReaderSet.m_IDCARD ; m_BorrowInfo.m_strFilter = "BOOK.BOOK_ID = BORROW.BOOK_ID AND READER_ID='" + m_strReaderID + "'"; m_BorrowInfo.Open(); LVITEM lvi; int nNumofCount; CString m_strTime; while (!m_BorrowInfo.IsEOF()) { lvi.mask = LVIF_TEXT | LVIF_IMAGE | LVIF_PARAM; nNumofCount = m_lstBook.GetItemCount(); lvi.iItem = nNumofCount; lvi.iSubItem = 0; lvi.pszText = m_BorrowInfo.m_strBookName.GetBuffer(0) ; m_lstBook.InsertItem(&lvi); m_strTime = m_BorrowInfo.m_dtBorrowDate.Format("%D"); m_lstBook.SetItemText(nNumofCount,1, m_strTime); m_BorrowInfo.MoveNext(); } UpdateData(FALSE); m_BorrowInfo.Close(); m_ReaderSet.Close();