diff --git a/xyylMCWEACSystem/medicalrecordmanager.cpp b/xyylMCWEACSystem/medicalrecordmanager.cpp index 60fd076..38ad6b3 100644 --- a/xyylMCWEACSystem/medicalrecordmanager.cpp +++ b/xyylMCWEACSystem/medicalrecordmanager.cpp @@ -271,8 +271,9 @@ void MedicalRecordManager::initLay() } bool MedicalRecordManager::initConnect() { - connect(m_actSearch, SIGNAL(triggered(bool)), this, SLOT(slotSearch())); + connect(&m_btnUpPage,SIGNAL(clicked()),this,SLOT(slotPreviousPage())); + connect(&m_btnNetPage,SIGNAL(clicked()),this,SLOT(slotNextPage())); return true; } void MedicalRecordManager::slotSearch() @@ -353,11 +354,19 @@ void MedicalRecordManager::initTable() } void MedicalRecordManager::slotPreviousPage() { - + if (m_currentPage > 1) + { + m_currentPage = m_currentPage - 2; + } + else + { + return; + } + updateContext(); } void MedicalRecordManager::slotNextPage() { - + updateContext(); } void MedicalRecordManager::updateContext()