2022-09-29 17:36:55 +08:00
|
|
|
#ifndef GUI_WORKLISTMANAGER_H
|
|
|
|
|
#define GUI_WORKLISTMANAGER_H
|
|
|
|
|
|
|
|
|
|
#include <QString>
|
2023-08-28 16:31:52 +08:00
|
|
|
#include <QList>
|
2022-09-29 17:36:55 +08:00
|
|
|
|
|
|
|
|
#include "forms/select/PatientInformation.h"
|
|
|
|
|
|
2024-04-01 16:02:40 +08:00
|
|
|
class QSqlTableModel;
|
|
|
|
|
class QTableView;
|
|
|
|
|
|
2022-09-29 17:36:55 +08:00
|
|
|
class WorkListManager
|
|
|
|
|
{
|
|
|
|
|
public:
|
2024-04-01 16:02:40 +08:00
|
|
|
static WorkListManager* getInstance();
|
2023-08-28 16:31:52 +08:00
|
|
|
static QList<PatientInformationPointer> getPatientFromWorkList(const QString& aAccessionNum, const QString& aPatientId);
|
2022-09-29 17:36:55 +08:00
|
|
|
|
2024-04-01 16:02:40 +08:00
|
|
|
void setTableModel(QSqlTableModel* aModel);
|
|
|
|
|
void setTableView(QTableView* aTableView);
|
|
|
|
|
void setSearchString(const QString& aSearchString);
|
|
|
|
|
QString getSearchString();
|
|
|
|
|
QSqlTableModel* getTableModel();
|
|
|
|
|
QTableView* getTableView();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
WorkListManager();
|
|
|
|
|
~WorkListManager();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QSqlTableModel* mTableModel;
|
|
|
|
|
QTableView* mTableView;
|
|
|
|
|
QString mSearchString;
|
|
|
|
|
|
2022-09-29 17:36:55 +08:00
|
|
|
};
|
|
|
|
|
|
2023-08-28 16:31:52 +08:00
|
|
|
#endif //GUI_WORKLISTMANAGER_H
|