From a25057fa3541597ca844cb81017371b75e8743ad Mon Sep 17 00:00:00 2001 From: "work-zym\\zhangyiming" <1131393555@qq.com> Date: Thu, 21 Nov 2024 17:20:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=8A=E4=B8=80=E9=A1=B5?= =?UTF-8?q?=E5=92=8C=E4=B8=8B=E4=B8=80=E9=A1=B5=E7=9A=84=E7=BF=BB=E9=A1=B5?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xyylMCWEACSystem/medicalrecordmanager.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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()