Enable the worklist to retrieve more results based on different combinations of Patient ID and accession number.
This commit is contained in:
@@ -40,6 +40,7 @@ public:
|
||||
: QObject()
|
||||
{
|
||||
}
|
||||
QString ScheduledStartDate;
|
||||
PatientInformation* Copy()
|
||||
{
|
||||
PatientInformation* n=new PatientInformation;
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <QHeaderView>
|
||||
#include <QUuid>
|
||||
#include <QDate>
|
||||
#include <QSqlRecord>
|
||||
#include <QDebug>
|
||||
|
||||
#include "components/SlideTableView.h"
|
||||
@@ -85,10 +86,7 @@ void SelectFormWidget::initGeneralButtons(QHBoxLayout *layout) {
|
||||
connect(mBtnAccount, &QToolButton::clicked, DialogManager::Default(),&DialogManager::requestEditSelfAccount);
|
||||
connect(mBtnWorklist, &QToolButton::clicked, [&]()
|
||||
{
|
||||
if (DialogManager::Default()->requestGetWorkList(mModel) == QDialog::Accepted)
|
||||
{
|
||||
mPatTable->selectRow(0);
|
||||
}
|
||||
DialogManager::Default()->requestGetWorkList(mModel, mPatTable);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -237,7 +235,7 @@ void SelectFormWidget::initTableView(QHBoxLayout *contentLayout) {// TableView f
|
||||
|
||||
void SelectFormWidget::initDataModel() {//TODO:单独初始化预防SQL错误
|
||||
mModel = SQLHelper::getTable("Patient");
|
||||
mModel->sort(5, Qt::DescendingOrder);
|
||||
mModel->sort(mModel->record().indexOf("AddDate"), Qt::DescendingOrder);
|
||||
mModel->select();
|
||||
mModel->setHeaderData(1, Qt::Horizontal, "ID");
|
||||
mModel->setHeaderData(2, Qt::Horizontal, tr("AccessionNumber"));
|
||||
|
||||
Reference in New Issue
Block a user