diff --git a/bin/xyylMCWEACSystem.exe b/bin/xyylMCWEACSystem.exe index 8ac1659..206e365 100644 Binary files a/bin/xyylMCWEACSystem.exe and b/bin/xyylMCWEACSystem.exe differ diff --git a/xyylMCWEACSystem/medicalrecordmanager.cpp b/xyylMCWEACSystem/medicalrecordmanager.cpp index 7b50dab..564b95e 100644 --- a/xyylMCWEACSystem/medicalrecordmanager.cpp +++ b/xyylMCWEACSystem/medicalrecordmanager.cpp @@ -10,7 +10,141 @@ MedicalRecordManager::MedicalRecordManager(QWidget * parent):QWidget(parent) initLay(); initConnect(); initTable(); - m_btnOpen.setStyleSheet("QPushButton{background-color:rgb(43,144,238); border-radius:10px;padding:7px 40px;}"); + m_btnOpen.setStyleSheet("QPushButton{\ + background: white;\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:hover{\ + background: rgb(85, 85, 85);\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:pressed{\ + background: rgb(80, 80, 80);\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:checked{\ + background: #0d9ddb;\ + border-radius:10px;padding:7px 10px;\ + }"); + m_btnEdit.setStyleSheet("QPushButton{\ + background: white;\ + color: green;\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:hover{\ + background: rgb(85, 85, 85);\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:pressed{\ + background: rgb(80, 80, 80);\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:checked{\ + background: #0d9ddb;\ + border-radius:10px;padding:7px 10px;\ + }"); + m_btnExport.setStyleSheet("QPushButton{\ + background: white;\ + color: blue;\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:hover{\ + background: rgb(85, 85, 85);\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:pressed{\ + background: rgb(80, 80, 80);\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:checked{\ + background: #0d9ddb;\ + border-radius:10px;padding:7px 10px;\ + }"); + m_btnDelete.setStyleSheet("QPushButton{\ + background: red;\ + color:white;\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:hover{\ + background: rgb(85, 85, 85);\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:pressed{\ + background: rgb(80, 80, 80);\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:checked{\ + background: #0d9ddb;\ + border-radius:10px;padding:7px 10px;\ + }"); + //上一页 + m_btnUpPage.setStyleSheet("QPushButton{\ + background: white;\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:hover{\ + background: rgb(85, 85, 85);\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:pressed{\ + background: rgb(80, 80, 80);\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:checked{\ + background: #0d9ddb;\ + border-radius:10px;padding:7px 10px;\ + }"); + //下一页 + m_btnNetPage.setStyleSheet("QPushButton{\ + background: white;\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:hover{\ + background: rgb(85, 85, 85);\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:pressed{\ + background: rgb(80, 80, 80);\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:checked{\ + background: #0d9ddb;\ + border-radius:10px;padding:7px 10px;\ + }"); + //首页 + m_btnfirstPage.setStyleSheet("QPushButton{\ + background: white;\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:hover{\ + background: rgb(85, 85, 85);\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:pressed{\ + background: rgb(80, 80, 80);\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:checked{\ + background: #0d9ddb;\ + border-radius:10px;padding:7px 10px;\ + }"); + //尾页 + m_btnlastPage.setStyleSheet("QPushButton{\ + background: white;\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:hover{\ + background: rgb(85, 85, 85);\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:pressed{\ + background: rgb(80, 80, 80);\ + border-radius:10px;padding:7px 10px;\ + }\ + QPushButton:checked{\ + background: #0d9ddb;\ + border-radius:10px;padding:7px 10px;\ + }"); } MedicalRecordManager::~MedicalRecordManager() @@ -44,9 +178,9 @@ void MedicalRecordManager::init() //下一页 m_btnNetPage.setText(tr("下一页")); //首页 - m_btnfirstPage.setText(tr("")); + m_btnfirstPage.setText(tr("首页")); //尾页 - m_btnlastPage.setText(tr("")); + m_btnlastPage.setText(tr("尾页")); } @@ -65,9 +199,9 @@ void MedicalRecordManager::initLay() hlay2->addWidget(&m_btnExport); hlay2->addWidget(&m_btnDelete); hlay2->addStretch(); + hlay2->addWidget(&m_btnfirstPage); hlay2->addWidget(&m_btnUpPage); hlay2->addWidget(&m_btnNetPage); - hlay2->addWidget(&m_btnfirstPage); hlay2->addWidget(&m_btnlastPage); QVBoxLayout * vlay = new QVBoxLayout; @@ -80,6 +214,10 @@ void MedicalRecordManager::initLay() m_btnEdit.setFixedSize(tempSize); m_btnExport.setFixedSize(tempSize); m_btnDelete.setFixedSize(tempSize); + m_btnfirstPage.setFixedSize(tempSize); + m_btnUpPage.setFixedSize(tempSize); + m_btnNetPage.setFixedSize(tempSize); + m_btnlastPage.setFixedSize(tempSize); } bool MedicalRecordManager::initConnect() { diff --git a/xyylMCWEACSystem/systemsettingwidget.cpp b/xyylMCWEACSystem/systemsettingwidget.cpp index 94dc8c7..6730b59 100644 --- a/xyylMCWEACSystem/systemsettingwidget.cpp +++ b/xyylMCWEACSystem/systemsettingwidget.cpp @@ -21,6 +21,9 @@ SystemSettingWidget::~SystemSettingWidget() void SystemSettingWidget::init() { + m_stackedWidget.addWidget(&m_MedicalRecordWidget); + m_stackedWidget.addWidget(&m_MedicalRecordManagerWidget); + //this->setStyleSheet("QWidget{background: rgb(47, 61, 82);border:0px}"); this->setStyleSheet("QWidget{background: rgb(47, 61, 82);}"); m_labDes.setStyleSheet("border-image:url(:/image/systemsetting.png);}"); @@ -94,11 +97,18 @@ void SystemSettingWidget::slotClickedChanged() } void SystemSettingWidget::slotClickedBtn(QString strName) { + if(strName.compare("fill-in-the-Case")==0) { - m_stackedWidget.addWidget(&m_MedicalRecordWidget); + m_stackedWidget.setCurrentWidget(&m_MedicalRecordWidget); } + else if(strName.compare("case-management")==0) + { + + m_stackedWidget.setCurrentWidget(&m_MedicalRecordManagerWidget); + + } } diff --git a/xyylMCWEACSystem/systemsettingwidget.h b/xyylMCWEACSystem/systemsettingwidget.h index 6c3ccbe..1b99f3b 100644 --- a/xyylMCWEACSystem/systemsettingwidget.h +++ b/xyylMCWEACSystem/systemsettingwidget.h @@ -10,6 +10,7 @@ #include #include #include "medicalrecordwidget.h" +#include "medicalrecordmanager.h" class SystemSettingWidget: public QWidget { Q_OBJECT @@ -44,5 +45,6 @@ private: MedicalRecordWidget m_MedicalRecordWidget; + MedicalRecordManager m_MedicalRecordManagerWidget; }; #endif // SYSTEMSETTINGWIDGET_H