Refactor forms select package.
This commit is contained in:
51
src/forms/select/PatientInformation.h
Normal file
51
src/forms/select/PatientInformation.h
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
//
|
||||||
|
// Created by Krad on 2022/6/14.
|
||||||
|
//
|
||||||
|
|
||||||
|
#ifndef GUI_PATIENTINFORMATION_H
|
||||||
|
#define GUI_PATIENTINFORMATION_H
|
||||||
|
#define ADD_PATIENT()\
|
||||||
|
ADD_PATIENT_PROPERTY(ID)\
|
||||||
|
ADD_PATIENT_PROPERTY(Name)\
|
||||||
|
ADD_PATIENT_PROPERTY(BirthDate)\
|
||||||
|
ADD_PATIENT_PROPERTY(Sex)\
|
||||||
|
ADD_PATIENT_PROPERTY(AddDate)\
|
||||||
|
ADD_PATIENT_PROPERTY(Comment)\
|
||||||
|
ADD_PATIENT_PROPERTY(Flag)
|
||||||
|
|
||||||
|
#define EDIT_PATIENT()\
|
||||||
|
ADD_PATIENT_PROPERTY(PatientUID)\
|
||||||
|
ADD_PATIENT()
|
||||||
|
|
||||||
|
enum PatientInformationEnum{
|
||||||
|
#define ADD_PATIENT_PROPERTY(val) val,
|
||||||
|
EDIT_PATIENT()
|
||||||
|
#undef ADD_PATIENT_PROPERTY
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief this class was designed to be a edit form,
|
||||||
|
* but now has been change to a detail display class.
|
||||||
|
*/
|
||||||
|
class PatientInformation:public QObject{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
#define ADD_PATIENT_PROPERTY(val) QString val;
|
||||||
|
EDIT_PATIENT();
|
||||||
|
#undef ADD_PATIENT_PROPERTY
|
||||||
|
PatientInformation(){
|
||||||
|
this->Flag = QString("0");
|
||||||
|
}
|
||||||
|
PatientInformation* Copy()
|
||||||
|
{
|
||||||
|
PatientInformation* n=new PatientInformation;
|
||||||
|
n->PatientUID = this->PatientUID;
|
||||||
|
n->ID = this->ID;
|
||||||
|
n->Name = this->Name;
|
||||||
|
n->BirthDate = this->BirthDate;
|
||||||
|
n->Sex = this->Sex;
|
||||||
|
n->Comment = this->Comment;
|
||||||
|
return n;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
#endif //GUI_PATIENTINFORMATION_H
|
||||||
@@ -30,285 +30,241 @@ SelectFormWidget::SelectFormWidget(QWidget* parent)
|
|||||||
, mBtnEdit(new QToolButton(this))
|
, mBtnEdit(new QToolButton(this))
|
||||||
, mBtnDelete(new QToolButton(this))
|
, mBtnDelete(new QToolButton(this))
|
||||||
, mBtnSelect(new QToolButton(this))
|
, mBtnSelect(new QToolButton(this))
|
||||||
|
, mPatTable(new SlideTableView(this))
|
||||||
|
, mModel(nullptr)
|
||||||
|
, mEditPatForm(new EditPatientForm(this))
|
||||||
{
|
{
|
||||||
//init command bar
|
//init command bar
|
||||||
auto layout = new QHBoxLayout();
|
auto layout = new QHBoxLayout();
|
||||||
ui->commandWidget->setLayout(layout);
|
ui->commandWidget->setLayout(layout);
|
||||||
INIT_TOOL_BTN(Account, ":/icons/account.png")
|
initGeneralButtons(layout);
|
||||||
INIT_TOOL_BTN(Worklist, ":/icons/setting.png")
|
layout->addSpacerItem(new QSpacerItem(20, 20, QSizePolicy::Expanding));
|
||||||
mBtnAccount->setText(tr("Account"));
|
|
||||||
mBtnWorklist->setText(tr("Worklist"));
|
|
||||||
|
|
||||||
layout->addSpacerItem(new QSpacerItem(20, 20, QSizePolicy::Expanding));
|
|
||||||
addVerticalLine(layout);
|
addVerticalLine(layout);
|
||||||
INIT_TOOL_BTN(Add, ":/icons/add.png")
|
initPatEditButtons(layout);
|
||||||
INIT_TOOL_BTN(Edit, ":/icons/details.png")
|
initDataModel();
|
||||||
INIT_TOOL_BTN(Delete, ":/icons/close_circle.png")
|
//Init content widget
|
||||||
INIT_TOOL_BTN(Select, ":/icons/selected.png")
|
|
||||||
mBtnAdd->setText(tr("Add"));
|
|
||||||
mBtnEdit->setText(tr("Edit"));
|
|
||||||
mBtnDelete->setText(tr("Delete"));
|
|
||||||
mBtnSelect->setText(tr("Select"));
|
|
||||||
|
|
||||||
//Init content widget
|
|
||||||
auto* contentLayout = new QHBoxLayout();
|
auto* contentLayout = new QHBoxLayout();
|
||||||
contentLayout->setContentsMargins(5, 5, 0, 5);
|
contentLayout->setContentsMargins(5, 5, 0, 5);
|
||||||
this->ui->contentWidget->setLayout(contentLayout);
|
this->ui->contentWidget->setLayout(contentLayout);
|
||||||
// TableView for patient
|
initTableView(contentLayout);
|
||||||
auto table = new SlideTableView(this);
|
|
||||||
table->setAlternatingRowColors(true);
|
|
||||||
table->setSelectionMode(QAbstractItemView::SingleSelection);
|
|
||||||
table->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
|
||||||
table->setSelectionBehavior(QAbstractItemView::SelectRows);
|
|
||||||
table->verticalHeader()->setDefaultSectionSize(38);
|
|
||||||
table->horizontalHeader()->setStretchLastSection(true);
|
|
||||||
//data from SQLITE
|
|
||||||
//
|
|
||||||
//avoid pan comsumed by tableview!
|
|
||||||
table->viewport()->ungrabGesture(Qt::PanGesture);
|
|
||||||
|
|
||||||
auto model = SQLHelper::getTable("Patient");
|
|
||||||
model->setFilter("Flag=0");
|
|
||||||
model->sort(5, Qt::DescendingOrder);
|
|
||||||
model->select();
|
|
||||||
model->setHeaderData(1, Qt::Horizontal, "ID");
|
|
||||||
model->setHeaderData(2, Qt::Horizontal, tr("Name"));
|
|
||||||
model->setHeaderData(3, Qt::Horizontal, tr("Birth Date"));
|
|
||||||
model->setHeaderData(4, Qt::Horizontal, tr("Gender"));
|
|
||||||
model->setHeaderData(5, Qt::Horizontal, tr("Add Date"));
|
|
||||||
model->setHeaderData(6, Qt::Horizontal, tr("Comment"));
|
|
||||||
table->setSortingEnabled(true); // enable sortingEnabled
|
|
||||||
|
|
||||||
table->setModel((QAbstractItemModel*)model);
|
|
||||||
table->hideColumn(0);
|
|
||||||
table->hideColumn(7);
|
|
||||||
table->show();
|
|
||||||
|
|
||||||
table->setColumnWidth(1, 250);
|
|
||||||
table->setColumnWidth(2, 250);
|
|
||||||
table->setColumnWidth(3, 160);
|
|
||||||
table->setColumnWidth(4, 120);
|
|
||||||
table->setColumnWidth(5, 250);
|
|
||||||
contentLayout->addWidget(table);
|
|
||||||
addVerticalLine(layout);
|
addVerticalLine(layout);
|
||||||
// prepare edit panel
|
initDetailPanel(contentLayout);
|
||||||
auto edit_patient = new EditPatientForm(this);
|
//select default row 0
|
||||||
edit_patient->setObjectName("edit_patient");
|
if (mModel->rowCount() > 0)
|
||||||
edit_patient->hide();
|
|
||||||
contentLayout->addWidget(edit_patient);
|
|
||||||
auto* btnShowEdit = new VerticalTextToolButton(this);
|
|
||||||
btnShowEdit->setObjectName("showeditBtn");
|
|
||||||
btnShowEdit->setIcon(QIcon(":/icons/edit.png"));
|
|
||||||
btnShowEdit->setIconSize(QSize(30, 30));
|
|
||||||
btnShowEdit->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
|
|
||||||
btnShowEdit->setFixedHeight(225);
|
|
||||||
btnShowEdit->setVerticalText("Patient Detail");
|
|
||||||
contentLayout->addWidget(btnShowEdit);
|
|
||||||
contentLayout->setAlignment(btnShowEdit, Qt::AlignmentFlag::AlignTop);
|
|
||||||
|
|
||||||
// btn show slot
|
|
||||||
connect(btnShowEdit, &QToolButton::clicked, [=]() {
|
|
||||||
edit_patient->show();
|
|
||||||
btnShowEdit->hide();
|
|
||||||
});
|
|
||||||
//btn hide slot
|
|
||||||
connect(edit_patient, &EditPatientForm::hideBtnClicked, [=]() {
|
|
||||||
edit_patient->hide();
|
|
||||||
btnShowEdit->show();
|
|
||||||
});
|
|
||||||
|
|
||||||
//select default row 0
|
|
||||||
if (model->rowCount() > 0)
|
|
||||||
{
|
{
|
||||||
table->selectRow(0);
|
mPatTable->selectRow(0);
|
||||||
setPatientDetail(table, model, edit_patient);
|
setPatientDetail(mPatTable, mModel, mEditPatForm);
|
||||||
}
|
}
|
||||||
//events----------------------------------------------------------------------
|
|
||||||
//prepare button state
|
|
||||||
auto prepareButtons = [=](bool disableALL){
|
|
||||||
bool state_flag = (table->currentIndex().row()>=0);
|
|
||||||
mBtnSelect->setEnabled(state_flag && !disableALL);
|
|
||||||
mBtnDelete->setEnabled(state_flag && !disableALL);
|
|
||||||
mBtnEdit->setEnabled(state_flag && !disableALL);
|
|
||||||
mBtnAdd->setEnabled(!disableALL);
|
|
||||||
};
|
|
||||||
//table current row selection changing event
|
|
||||||
connect(table, &SlideTableView::currentRowChanged, [=](int row) {
|
|
||||||
setPatientDetail(table, model, edit_patient);
|
|
||||||
prepareButtons(false);
|
|
||||||
});
|
|
||||||
|
|
||||||
// after sort by column
|
|
||||||
connect(table->horizontalHeader(),&QHeaderView::sectionClicked,[=](int index){
|
|
||||||
edit_patient->clearPatientInformation();
|
|
||||||
prepareButtons(false);
|
|
||||||
if(model->rowCount()>0){
|
|
||||||
table->selectRow(0);
|
|
||||||
model->selectRow(0);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// btn add slot
|
|
||||||
connect(mBtnAdd, &QToolButton::clicked, [=]() {
|
|
||||||
EditPatientDialog dialog(this);
|
|
||||||
dialog.clearPatientInformation();
|
|
||||||
dialog.setWindowModality(Qt::WindowModal);
|
|
||||||
dialog.setModel(model);
|
|
||||||
// accept change
|
|
||||||
if (dialog.exec() == QDialog::Accepted) {
|
|
||||||
table->selectRow(0);
|
|
||||||
model->selectRow(0);
|
|
||||||
LOG_USER_OPERATION(AddPatient)
|
|
||||||
mBtnSelect->setEnabled(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
// mBtn edit slot
|
|
||||||
connect(mBtnEdit, &QToolButton::clicked, [=]() {
|
|
||||||
EditPatientDialog dialog(this);
|
|
||||||
dialog.setPatientInformation(edit_patient->getPatientInformation());
|
|
||||||
dialog.setWindowModality(Qt::WindowModal);
|
|
||||||
dialog.setModel(model);
|
|
||||||
// accept change
|
|
||||||
if (dialog.exec() == QDialog::Accepted) {
|
|
||||||
table->clicked(table->currentIndex());
|
|
||||||
setPatientDetail(table, model, edit_patient);
|
|
||||||
LOG_USER_OPERATION(AddPatient)
|
|
||||||
mBtnSelect->setEnabled(true);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// mBtn add slot
|
|
||||||
connect(edit_patient, &EditPatientForm::editCancel, [=]() {
|
|
||||||
if (table->currentIndex().row()<0) return;
|
|
||||||
mBtnSelect->setEnabled(true);
|
|
||||||
});
|
|
||||||
|
|
||||||
// EditPatientForm editAccept slot
|
|
||||||
connect(edit_patient, &EditPatientForm::editAccept, [=](PatientInformation* inf, bool& result) {
|
|
||||||
int selectedRow = table->currentIndex().row();
|
|
||||||
bool isAdd = inf->PatientUID.isEmpty();
|
|
||||||
if (isAdd) {
|
|
||||||
selectedRow = model->rowCount();
|
|
||||||
inf->PatientUID = QUuid::createUuid().toString();
|
|
||||||
inf->AddDate = QDateTime::currentDateTime().toString("yyyy-MM-dd HH:mm:ss");
|
|
||||||
model->insertRow(0);
|
|
||||||
selectedRow = 0;
|
|
||||||
}
|
|
||||||
qDebug() << inf->PatientUID << inf->AddDate;
|
|
||||||
#define ADD_PATIENT_PROPERTY(val)\
|
|
||||||
model->setData(model->index(selectedRow,PatientInformationEnum:: val),inf-> val);
|
|
||||||
EDIT_PATIENT()
|
|
||||||
#undef ADD_PATIENT_PROPERTY
|
|
||||||
if (model->submitAll())
|
|
||||||
{
|
|
||||||
table->selectRow(selectedRow);
|
|
||||||
model->selectRow(selectedRow);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
//TODO:add some error handle logic
|
|
||||||
}
|
|
||||||
if (isAdd) {
|
|
||||||
LOG_USER_OPERATION(AddPatient)
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
LOG_USER_OPERATION(ChangePatientInfo)
|
|
||||||
}
|
|
||||||
mBtnSelect->setEnabled(true);
|
|
||||||
});
|
|
||||||
|
|
||||||
// btn delete slot
|
|
||||||
connect(mBtnDelete, &QToolButton::clicked, [=]() {
|
|
||||||
if (table->currentIndex().row()<0) return;
|
|
||||||
AlertDialog dialog(this);
|
|
||||||
dialog.setWindowModality(Qt::WindowModal);
|
|
||||||
QString pUid = model->index(table->currentIndex().row(), PatientInformationEnum::PatientUID).data().toString();
|
|
||||||
// patient has been selected as the scan patient!
|
|
||||||
if (selectedPatientUID == pUid){
|
|
||||||
dialog.setButtonMode(OkOnly);
|
|
||||||
dialog.setTitle(tr("Alert"));
|
|
||||||
dialog.setAlertMessage(QString(tr("Can't delete selected Patient !")));
|
|
||||||
dialog.exec();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// not the selected one, confirm!
|
|
||||||
dialog.setButtonMode(OkAndCancel);
|
|
||||||
dialog.setTitle("Confirm");
|
|
||||||
QString pat_name = model->index(table->currentIndex().row(), PatientInformationEnum::Name).data().toString();
|
|
||||||
dialog.setAlertMessage(QString(tr("Delete Patient \"%1\" ?")).arg(pat_name));
|
|
||||||
if (dialog.exec() != QDialog::Accepted) return;
|
|
||||||
// need delete clear edit panel detail
|
|
||||||
edit_patient->clearPatientInformation();
|
|
||||||
model->setData(model->index(table->currentIndex().row(), PatientInformationEnum::Flag), 9);
|
|
||||||
|
|
||||||
if (model->submitAll()) {
|
|
||||||
model->select();
|
|
||||||
if (model->rowCount() > 0) {
|
|
||||||
table->selectRow(0);
|
|
||||||
model->selectRow(0);
|
|
||||||
setPatientDetail(table, model, edit_patient);
|
|
||||||
LOG_USER_OPERATION(DeletePatient)
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
//TODO:error handle
|
|
||||||
dialog.setButtonMode(OkOnly);
|
|
||||||
dialog.setTitle(tr("Alert"));
|
|
||||||
dialog.setAlertMessage(QString(tr("Can't delete selected Patient , db submit error!")));
|
|
||||||
dialog.exec();
|
|
||||||
}
|
|
||||||
prepareButtons(false);
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
// mBtn select slot
|
|
||||||
connect(mBtnSelect, &QToolButton::clicked, [=]() {
|
|
||||||
|
|
||||||
EventCenter::Default()->triggerEvent(GUIEvents::PatientSelected, nullptr, edit_patient->getPatientInformation()->Copy());
|
|
||||||
selectedPatientUID = edit_patient->getPatientInformation()->PatientUID;
|
|
||||||
LOG_USER_OPERATION(SelectPatient)
|
|
||||||
});
|
|
||||||
|
|
||||||
// mBtn account slot
|
|
||||||
connect(mBtnAccount, &QToolButton::clicked, [=]() {
|
|
||||||
AccountFormDialog dia(this);
|
|
||||||
dia.setWindowModality(Qt::WindowModal);
|
|
||||||
dia.exec();
|
|
||||||
});
|
|
||||||
|
|
||||||
// event ResponsePreview slot
|
// event ResponsePreview slot
|
||||||
connect(EventCenter::Default(), &EventCenter::ResponsePreview, [=](QObject* sender, QObject* data) {
|
connect(EventCenter::Default(), &EventCenter::ResponsePreview, [=](QObject* sender, QObject* data) {
|
||||||
prepareButtons(true);
|
prepareButtons(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
// event ResponseStop slot
|
// event ResponseStop slot
|
||||||
connect(EventCenter::Default(), &EventCenter::ResponseStop, [=](QObject* sender, QObject* data) {
|
connect(EventCenter::Default(), &EventCenter::ResponseStop, [=](QObject* sender, QObject* data) {
|
||||||
prepareButtons(false);
|
prepareButtons(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
// event ReloadLanguage slot;
|
// event ReloadLanguage slot;
|
||||||
connect(EventCenter::Default(), &EventCenter::ReloadLanguage, [=]() {
|
connect(EventCenter::Default(), &EventCenter::ReloadLanguage, this, &SelectFormWidget::reloadLanguage);
|
||||||
|
|
||||||
model->setHeaderData(1, Qt::Horizontal, "ID");
|
|
||||||
model->setHeaderData(2, Qt::Horizontal, tr("Name"));
|
|
||||||
model->setHeaderData(3, Qt::Horizontal, tr("Birth Date"));
|
|
||||||
model->setHeaderData(4, Qt::Horizontal, tr("Gender"));
|
|
||||||
model->setHeaderData(5, Qt::Horizontal, tr("Add Date"));
|
|
||||||
model->setHeaderData(6, Qt::Horizontal, tr("Comment"));
|
|
||||||
|
|
||||||
mBtnAccount->setText(tr("Account"));
|
|
||||||
//mBtnWorklist->setText(tr("Worklist"));
|
|
||||||
mBtnAdd->setText(tr("Add"));
|
|
||||||
mBtnEdit->setText(tr("Edit"));
|
|
||||||
mBtnDelete->setText(tr("Delete"));
|
|
||||||
mBtnSelect->setText(tr("Select"));
|
|
||||||
});
|
|
||||||
|
|
||||||
//first prepare buttons!
|
//first prepare buttons!
|
||||||
prepareButtons(false);
|
prepareButtons(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SelectFormWidget::prepareButtons(bool disableALL) {
|
||||||
|
bool stateFlag = (mPatTable->currentIndex().row() >= 0);
|
||||||
|
mBtnSelect->setEnabled(stateFlag && !disableALL);
|
||||||
|
mBtnDelete->setEnabled(stateFlag && !disableALL);
|
||||||
|
mBtnEdit->setEnabled(stateFlag && !disableALL);
|
||||||
|
mBtnAdd->setEnabled(!disableALL);
|
||||||
|
}
|
||||||
|
|
||||||
|
void SelectFormWidget::initGeneralButtons(QHBoxLayout *layout) {
|
||||||
|
INIT_TOOL_BTN(Account, ":/icons/account.png")
|
||||||
|
INIT_TOOL_BTN(Worklist, ":/icons/setting.png")
|
||||||
|
mBtnAccount->setText(tr("Account"));
|
||||||
|
mBtnWorklist->setText(tr("Worklist"));
|
||||||
|
// mBtn account slot
|
||||||
|
connect(mBtnAccount, &QToolButton::clicked, [=]() {
|
||||||
|
AccountFormDialog dialog(this);
|
||||||
|
dialog.setWindowModality(Qt::WindowModal);
|
||||||
|
dialog.exec();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
void SelectFormWidget::initPatEditButtons(QHBoxLayout *layout) {
|
||||||
|
INIT_TOOL_BTN(Add, ":/icons/add.png")
|
||||||
|
INIT_TOOL_BTN(Edit, ":/icons/details.png")
|
||||||
|
INIT_TOOL_BTN(Delete, ":/icons/close_circle.png")
|
||||||
|
INIT_TOOL_BTN(Select, ":/icons/selected.png")
|
||||||
|
mBtnAdd->setText(tr("Add"));
|
||||||
|
mBtnEdit->setText(tr("Edit"));
|
||||||
|
mBtnDelete->setText(tr("Delete"));
|
||||||
|
mBtnSelect->setText(tr("Select"));
|
||||||
|
|
||||||
|
// btn add & edit slot
|
||||||
|
connect(mBtnAdd, &QToolButton::clicked, this, &SelectFormWidget::editPatient);
|
||||||
|
connect(mBtnEdit, &QToolButton::clicked, this, &SelectFormWidget::editPatient);
|
||||||
|
|
||||||
|
// btn delete slot
|
||||||
|
connect(mBtnDelete, &QToolButton::clicked, this, &SelectFormWidget::delPatient);
|
||||||
|
|
||||||
|
// mBtn select slot
|
||||||
|
connect(mBtnSelect, &QToolButton::clicked, this, &SelectFormWidget::selectPatient);
|
||||||
|
}
|
||||||
|
|
||||||
|
void SelectFormWidget::editPatient() {
|
||||||
|
bool addFlag = sender() == mBtnAdd;
|
||||||
|
EditPatientDialog dialog(this);
|
||||||
|
if (addFlag){
|
||||||
|
dialog.clearPatientInformation();
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
dialog.setPatientInformation(mEditPatForm->getPatientInformation());
|
||||||
|
}
|
||||||
|
|
||||||
|
dialog.setWindowModality(Qt::WindowModal);
|
||||||
|
dialog.setModel(mModel);
|
||||||
|
// accept change
|
||||||
|
if (dialog.exec() == QDialog::Accepted) {
|
||||||
|
if (addFlag){
|
||||||
|
mPatTable->selectRow(0);
|
||||||
|
mModel->selectRow(0);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
mPatTable->clicked(mPatTable->currentIndex());
|
||||||
|
setPatientDetail(mPatTable, mModel, mEditPatForm);
|
||||||
|
}
|
||||||
|
LOG_USER_OPERATION(AddPatient)
|
||||||
|
mBtnSelect->setEnabled(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void SelectFormWidget::delPatient() {
|
||||||
|
if (mPatTable->currentIndex().row() < 0) return;
|
||||||
|
AlertDialog dialog(this);
|
||||||
|
dialog.setWindowModality(Qt::WindowModal);
|
||||||
|
QString pUid = mModel->index(mPatTable->currentIndex().row(), PatientUID).data().toString();
|
||||||
|
// patient has been selected as the scan patient!
|
||||||
|
if (selectedPatientUID == pUid){
|
||||||
|
dialog.setButtonMode(OkOnly);
|
||||||
|
dialog.setTitle(tr("Alert"));
|
||||||
|
dialog.setAlertMessage(QString(tr("Can't delete selected Patient !")));
|
||||||
|
dialog.exec();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// not the selected one, confirm!
|
||||||
|
dialog.setButtonMode(OkAndCancel);
|
||||||
|
dialog.setTitle("Confirm");
|
||||||
|
QString pat_name = mModel->index(mPatTable->currentIndex().row(), Name).data().toString();
|
||||||
|
dialog.setAlertMessage(QString(tr("Delete Patient \"%1\" ?")).arg(pat_name));
|
||||||
|
if (dialog.exec() != QDialog::Accepted) return;
|
||||||
|
// need delete clear edit panel detail
|
||||||
|
mEditPatForm->clearPatientInformation();
|
||||||
|
mModel->setData(mModel->index(mPatTable->currentIndex().row(), Flag), 9);
|
||||||
|
|
||||||
|
if (mModel->submitAll()) {
|
||||||
|
mModel->select();
|
||||||
|
if (mModel->rowCount() > 0) {
|
||||||
|
mPatTable->selectRow(0);
|
||||||
|
mModel->selectRow(0);
|
||||||
|
setPatientDetail(mPatTable, mModel, mEditPatForm);
|
||||||
|
LOG_USER_OPERATION(DeletePatient)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
//TODO:error handle
|
||||||
|
dialog.setButtonMode(OkOnly);
|
||||||
|
dialog.setTitle(tr("Alert"));
|
||||||
|
dialog.setAlertMessage(QString(tr("Can't delete selected Patient , db submit error!")));
|
||||||
|
dialog.exec();
|
||||||
|
}
|
||||||
|
prepareButtons(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
void SelectFormWidget::selectPatient() {
|
||||||
|
EventCenter::Default()->triggerEvent(PatientSelected, nullptr, mEditPatForm->getPatientInformation()->Copy());
|
||||||
|
selectedPatientUID = mEditPatForm->getPatientInformation()->PatientUID;
|
||||||
|
LOG_USER_OPERATION(SelectPatient)
|
||||||
|
}
|
||||||
|
|
||||||
|
void SelectFormWidget::initDetailPanel(QHBoxLayout *contentLayout) {// prepare edit panel
|
||||||
|
mEditPatForm->setObjectName("edit_patient");
|
||||||
|
mEditPatForm->hide();
|
||||||
|
contentLayout->addWidget(mEditPatForm);
|
||||||
|
auto* btnShowEdit = new VerticalTextToolButton(this);
|
||||||
|
btnShowEdit->setObjectName("showeditBtn");
|
||||||
|
btnShowEdit->setIcon(QIcon(":/icons/edit.png"));
|
||||||
|
btnShowEdit->setIconSize(QSize(30, 30));
|
||||||
|
btnShowEdit->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
|
||||||
|
btnShowEdit->setFixedHeight(225);
|
||||||
|
btnShowEdit->setVerticalText("Patient Detail");
|
||||||
|
contentLayout->addWidget(btnShowEdit);
|
||||||
|
contentLayout->setAlignment(btnShowEdit, Qt::AlignTop);
|
||||||
|
|
||||||
|
// btn show slot
|
||||||
|
connect(btnShowEdit, &QToolButton::clicked, [=]() {
|
||||||
|
mEditPatForm->show();
|
||||||
|
btnShowEdit->hide();
|
||||||
|
});
|
||||||
|
//btn hide slot
|
||||||
|
connect(mEditPatForm, &EditPatientForm::hideBtnClicked, [=]() {
|
||||||
|
mEditPatForm->hide();
|
||||||
|
btnShowEdit->show();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
void SelectFormWidget::initTableView(QHBoxLayout *contentLayout) {// TableView for patient
|
||||||
|
mPatTable->setAlternatingRowColors(true);
|
||||||
|
mPatTable->setSelectionMode(QAbstractItemView::SingleSelection);
|
||||||
|
mPatTable->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||||
|
mPatTable->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||||
|
mPatTable->verticalHeader()->setDefaultSectionSize(38);
|
||||||
|
mPatTable->horizontalHeader()->setStretchLastSection(true);
|
||||||
|
//data from SQLITE
|
||||||
|
//
|
||||||
|
//avoid pan comsumed by tableview!
|
||||||
|
mPatTable->viewport()->ungrabGesture(Qt::PanGesture);
|
||||||
|
|
||||||
|
mPatTable->setSortingEnabled(true); // enable sortingEnabled
|
||||||
|
mPatTable->setModel((QAbstractItemModel*) mModel);
|
||||||
|
mPatTable->hideColumn(0);
|
||||||
|
mPatTable->hideColumn(7);
|
||||||
|
mPatTable->show();
|
||||||
|
|
||||||
|
mPatTable->setColumnWidth(1, 250);
|
||||||
|
mPatTable->setColumnWidth(2, 250);
|
||||||
|
mPatTable->setColumnWidth(3, 160);
|
||||||
|
mPatTable->setColumnWidth(4, 120);
|
||||||
|
mPatTable->setColumnWidth(5, 250);
|
||||||
|
contentLayout->addWidget(mPatTable);
|
||||||
|
//table current row selection changing event
|
||||||
|
connect(mPatTable, &SlideTableView::currentRowChanged, [=](int row) {
|
||||||
|
setPatientDetail(mPatTable, mModel, mEditPatForm);
|
||||||
|
prepareButtons(false);
|
||||||
|
});
|
||||||
|
|
||||||
|
// after sort by column
|
||||||
|
connect(mPatTable->horizontalHeader(), &QHeaderView::sectionClicked, [=](int index){
|
||||||
|
mEditPatForm->clearPatientInformation();
|
||||||
|
prepareButtons(false);
|
||||||
|
if(mModel->rowCount() > 0){
|
||||||
|
mPatTable->selectRow(0);
|
||||||
|
mModel->selectRow(0);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
void SelectFormWidget::initDataModel() {//TODO:单独初始化预防SQL错误
|
||||||
|
mModel = SQLHelper::getTable("Patient");
|
||||||
|
mModel->setFilter("Flag=0");
|
||||||
|
mModel->sort(5, Qt::DescendingOrder);
|
||||||
|
mModel->select();
|
||||||
|
mModel->setHeaderData(1, Qt::Horizontal, "ID");
|
||||||
|
mModel->setHeaderData(2, Qt::Horizontal, tr("Name"));
|
||||||
|
mModel->setHeaderData(3, Qt::Horizontal, tr("Birth Date"));
|
||||||
|
mModel->setHeaderData(4, Qt::Horizontal, tr("Gender"));
|
||||||
|
mModel->setHeaderData(5, Qt::Horizontal, tr("Add Date"));
|
||||||
|
mModel->setHeaderData(6, Qt::Horizontal, tr("Comment"));
|
||||||
|
}
|
||||||
|
|
||||||
void SelectFormWidget::setPatientDetail(const SlideTableView *table, const QSqlTableModel *model,
|
void SelectFormWidget::setPatientDetail(const SlideTableView *table, const QSqlTableModel *model,
|
||||||
EditPatientForm *edit_patient) const {
|
EditPatientForm *edit_patient) const {
|
||||||
PatientInformation pat;
|
PatientInformation pat;
|
||||||
@@ -319,5 +275,21 @@ void SelectFormWidget::setPatientDetail(const SlideTableView *table, const QSqlT
|
|||||||
edit_patient->setPatientInformation(&pat);
|
edit_patient->setPatientInformation(&pat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SelectFormWidget::reloadLanguage(){
|
||||||
|
mModel->setHeaderData(1, Qt::Horizontal, "ID");
|
||||||
|
mModel->setHeaderData(2, Qt::Horizontal, tr("Name"));
|
||||||
|
mModel->setHeaderData(3, Qt::Horizontal, tr("Birth Date"));
|
||||||
|
mModel->setHeaderData(4, Qt::Horizontal, tr("Gender"));
|
||||||
|
mModel->setHeaderData(5, Qt::Horizontal, tr("Add Date"));
|
||||||
|
mModel->setHeaderData(6, Qt::Horizontal, tr("Comment"));
|
||||||
|
|
||||||
|
mBtnAccount->setText(tr("Account"));
|
||||||
|
//mBtnWorklist->setText(tr("Worklist"));
|
||||||
|
mBtnAdd->setText(tr("Add"));
|
||||||
|
mBtnEdit->setText(tr("Edit"));
|
||||||
|
mBtnDelete->setText(tr("Delete"));
|
||||||
|
mBtnSelect->setText(tr("Select"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,20 @@ private:
|
|||||||
QToolButton* mBtnEdit;
|
QToolButton* mBtnEdit;
|
||||||
QToolButton* mBtnDelete;
|
QToolButton* mBtnDelete;
|
||||||
QToolButton* mBtnSelect;
|
QToolButton* mBtnSelect;
|
||||||
|
SlideTableView* mPatTable;
|
||||||
|
QSqlTableModel* mModel;
|
||||||
|
EditPatientForm* mEditPatForm;
|
||||||
|
|
||||||
|
void prepareButtons(bool disableALL);
|
||||||
|
void initGeneralButtons(QHBoxLayout *layout);
|
||||||
|
void initPatEditButtons(QHBoxLayout *layout);
|
||||||
|
void editPatient();
|
||||||
|
void delPatient();
|
||||||
|
void selectPatient();
|
||||||
|
void initDataModel();
|
||||||
|
void initDetailPanel(QHBoxLayout *contentLayout);
|
||||||
|
void initTableView(QHBoxLayout *contentLayout);
|
||||||
|
void reloadLanguage();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,80 +9,79 @@
|
|||||||
#include "event/EventCenter.h"
|
#include "event/EventCenter.h"
|
||||||
|
|
||||||
EditPatientForm::EditPatientForm(QWidget* parent) :
|
EditPatientForm::EditPatientForm(QWidget* parent) :
|
||||||
QWidget(parent),
|
QWidget(parent),
|
||||||
ui(new Ui::EditPatientForm)
|
mUI(new Ui::EditPatientForm)
|
||||||
{
|
{
|
||||||
// this->layout()->setContentsMargins(5,5,5,5);
|
mUI->setupUi(this);
|
||||||
ui->setupUi(this);
|
mUI->hideBtn->setSizePolicy(QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Preferred);
|
||||||
|
mUI->hideBtn->setObjectName("hideeditBtn");
|
||||||
ui->hideBtn->setSizePolicy(QSizePolicy::Policy::Expanding,QSizePolicy::Policy::Preferred);
|
mUI->hideBtn->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
||||||
ui->hideBtn->setObjectName("hideeditBtn");
|
mUI->hideBtn->setIcon(QIcon(":/icons/hidearrow.png"));
|
||||||
ui->hideBtn->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
mUI->hideBtn->setIconSize({30, 30});
|
||||||
ui->hideBtn->setIcon(QIcon(":/icons/hidearrow.png"));
|
mUI->hideBtn->setText(tr(" Hide Panel"));
|
||||||
ui->hideBtn->setIconSize({30,30});
|
connect(mUI->hideBtn, &QToolButton::clicked, [=](){
|
||||||
ui->hideBtn->setText(tr(" Hide Panel"));
|
|
||||||
connect(ui->hideBtn,&QToolButton::clicked,[=](){
|
|
||||||
emit hideBtnClicked();
|
emit hideBtnClicked();
|
||||||
});
|
});
|
||||||
ui->tbx_Dob->setDisplayFormat("yyyy/MM/dd");
|
mUI->tbxDob->setDisplayFormat("yyyy/MM/dd");
|
||||||
|
|
||||||
ui->tbx_ID->setEnabled(false);
|
mUI->tbxID->setEnabled(false);
|
||||||
ui->tbx_ID->setObjectName("display_tbx");
|
mUI->tbxID->setObjectName("display_tbx");
|
||||||
ui->tbx_Dob->setEnabled(false);
|
mUI->tbxDob->setEnabled(false);
|
||||||
ui->tbx_Dob->setObjectName("display_tbx");
|
mUI->tbxDob->setObjectName("display_tbx");
|
||||||
ui->tbx_Name->setEnabled(false);
|
mUI->tbxName->setEnabled(false);
|
||||||
ui->tbx_Name->setObjectName("display_tbx");
|
mUI->tbxName->setObjectName("display_tbx");
|
||||||
ui->tbx_Sex->setEnabled(false);
|
mUI->tbxSex->setEnabled(false);
|
||||||
ui->tbx_Sex->setObjectName("display_tbx");
|
mUI->tbxSex->setObjectName("display_tbx");
|
||||||
ui->rtbx_Comment->setEnabled(false);
|
mUI->rtbxComment->setEnabled(false);
|
||||||
ui->rtbx_Comment->setObjectName("display_tbx");
|
mUI->rtbxComment->setObjectName("display_tbx");
|
||||||
|
|
||||||
connect(EventCenter::Default(), &EventCenter::ReloadLanguage, [=]() {
|
connect(EventCenter::Default(), &EventCenter::ReloadLanguage, this,EditPatientForm::reloadLanguage);
|
||||||
|
|
||||||
ui->retranslateUi(this);
|
|
||||||
ui->tbx_Sex->setText(store.Sex == "F"?tr("Female"):(store.Sex=="M"?tr("Male"):tr("Other")));
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void EditPatientForm::reloadLanguage() {
|
||||||
|
mUI->retranslateUi(this);
|
||||||
|
mUI->tbxSex->setText(mStore.Sex == "F" ? tr("Female") : (mStore.Sex == "M" ? tr("Male") : tr("Other")));
|
||||||
|
}
|
||||||
|
|
||||||
EditPatientForm::~EditPatientForm()
|
EditPatientForm::~EditPatientForm()
|
||||||
{
|
{
|
||||||
delete ui;
|
delete mUI;
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditPatientForm::setPatientInformation(PatientInformation* information) {
|
void EditPatientForm::setPatientInformation(PatientInformation* information) {
|
||||||
if (information)
|
if (information)
|
||||||
{
|
{
|
||||||
ui->tbx_ID->setText(information->ID);
|
mUI->tbxID->setText(information->ID);
|
||||||
ui->tbx_Dob->setDate(QDate::fromString(information->BirthDate, "yyyy-MM-dd"));
|
mUI->tbxDob->setDate(QDate::fromString(information->BirthDate, "yyyy-MM-dd"));
|
||||||
ui->tbx_Name->setText(information->Name);
|
mUI->tbxName->setText(information->Name);
|
||||||
ui->rtbx_Comment->setText(information->Comment);
|
mUI->rtbxComment->setText(information->Comment);
|
||||||
ui->tbx_Sex->setText(information->Sex == "F"?tr("Female"):(information->Sex=="M"?tr("Male"):tr("Other")));
|
mUI->tbxSex->setText(information->Sex == "F" ? tr("Female") : (information->Sex == "M" ? tr("Male") : tr("Other")));
|
||||||
currentPatientUID = information->PatientUID;
|
mCurrentPatientUID = information->PatientUID;
|
||||||
AddDate = information->AddDate;
|
mAddDate = information->AddDate;
|
||||||
store.Sex = information->Sex;
|
mStore.Sex = information->Sex;
|
||||||
storePatientInformation();
|
storePatientInformation();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditPatientForm::clearPatientInformation() {
|
void EditPatientForm::clearPatientInformation() {
|
||||||
ui->tbx_ID->setText("");
|
mUI->tbxID->setText("");
|
||||||
ui->tbx_Dob->setDate(QDate::currentDate());
|
mUI->tbxDob->setDate(QDate::currentDate());
|
||||||
ui->tbx_Name->setText("");
|
mUI->tbxName->setText("");
|
||||||
ui->tbx_Sex->setText("");
|
mUI->tbxSex->setText("");
|
||||||
ui->rtbx_Comment->setText("");
|
mUI->rtbxComment->setText("");
|
||||||
currentPatientUID = "";
|
mCurrentPatientUID = "";
|
||||||
AddDate = "";
|
mAddDate = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditPatientForm::storePatientInformation() {
|
void EditPatientForm::storePatientInformation() {
|
||||||
store.PatientUID = currentPatientUID;
|
mStore.PatientUID = mCurrentPatientUID;
|
||||||
store.AddDate = AddDate;
|
mStore.AddDate = mAddDate;
|
||||||
store.ID = ui->tbx_ID->text();
|
mStore.ID = mUI->tbxID->text();
|
||||||
store.BirthDate = ui->tbx_Dob->date().toString("yyyy-MM-dd");
|
mStore.BirthDate = mUI->tbxDob->date().toString("yyyy-MM-dd");
|
||||||
store.Name = ui->tbx_Name->text();
|
mStore.Name = mUI->tbxName->text();
|
||||||
store.Comment = ui->rtbx_Comment->toPlainText();
|
mStore.Comment = mUI->rtbxComment->toPlainText();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,85 +1,32 @@
|
|||||||
#ifndef EDITPATIENTFORM_H
|
#ifndef EDITPATIENTFORM_H
|
||||||
#define EDITPATIENTFORM_H
|
#define EDITPATIENTFORM_H
|
||||||
|
|
||||||
#include <QWidget>
|
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class EditPatientForm;
|
class EditPatientForm;
|
||||||
}
|
}
|
||||||
|
#include <QWidget>
|
||||||
#define ADD_PATIENT()\
|
#include "PatientInformation.h"
|
||||||
ADD_PATIENT_PROPERTY(ID)\
|
|
||||||
ADD_PATIENT_PROPERTY(Name)\
|
|
||||||
ADD_PATIENT_PROPERTY(BirthDate)\
|
|
||||||
ADD_PATIENT_PROPERTY(Sex)\
|
|
||||||
ADD_PATIENT_PROPERTY(AddDate)\
|
|
||||||
ADD_PATIENT_PROPERTY(Comment)\
|
|
||||||
ADD_PATIENT_PROPERTY(Flag)
|
|
||||||
|
|
||||||
#define EDIT_PATIENT()\
|
|
||||||
ADD_PATIENT_PROPERTY(PatientUID)\
|
|
||||||
ADD_PATIENT()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
enum PatientInformationEnum{
|
|
||||||
#define ADD_PATIENT_PROPERTY(val) val,
|
|
||||||
EDIT_PATIENT()
|
|
||||||
#undef ADD_PATIENT_PROPERTY
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief this class was designed to be a edit form,
|
|
||||||
* but now has been change to a detail display class.
|
|
||||||
*/
|
|
||||||
class PatientInformation:public QObject{
|
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
#define ADD_PATIENT_PROPERTY(val) QString val;
|
|
||||||
EDIT_PATIENT();
|
|
||||||
#undef ADD_PATIENT_PROPERTY
|
|
||||||
PatientInformation(){
|
|
||||||
this->Flag = QString("0");
|
|
||||||
}
|
|
||||||
PatientInformation* Copy()
|
|
||||||
{
|
|
||||||
PatientInformation* n=new PatientInformation;
|
|
||||||
n->PatientUID = this->PatientUID;
|
|
||||||
n->ID = this->ID;
|
|
||||||
n->Name = this->Name;
|
|
||||||
n->BirthDate = this->BirthDate;
|
|
||||||
n->Sex = this->Sex;
|
|
||||||
n->Comment = this->Comment;
|
|
||||||
return n;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
class QToolButton;
|
class QToolButton;
|
||||||
class EditPatientForm : public QWidget
|
class EditPatientForm : public QWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit EditPatientForm(QWidget *parent = nullptr);
|
explicit EditPatientForm(QWidget *parent = nullptr);
|
||||||
~EditPatientForm();
|
~EditPatientForm();
|
||||||
void setPatientInformation(PatientInformation * information);
|
void setPatientInformation(PatientInformation * information);
|
||||||
PatientInformation * getPatientInformation(){
|
PatientInformation * getPatientInformation(){
|
||||||
return &store;
|
return &mStore;
|
||||||
}
|
}
|
||||||
void clearPatientInformation();
|
void clearPatientInformation();
|
||||||
void storePatientInformation();
|
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void editAccept(PatientInformation * detail,bool & accept);
|
|
||||||
void editCancel();
|
|
||||||
signals:
|
|
||||||
void hideBtnClicked();
|
void hideBtnClicked();
|
||||||
private:
|
private:
|
||||||
Ui::EditPatientForm *ui;
|
void storePatientInformation();
|
||||||
QString currentPatientUID;
|
void reloadLanguage();
|
||||||
QString AddDate;
|
Ui::EditPatientForm *mUI;
|
||||||
PatientInformation store;
|
QString mCurrentPatientUID;
|
||||||
|
QString mAddDate;
|
||||||
|
PatientInformation mStore;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // EDITPATIENTFORM_H
|
#endif // EDITPATIENTFORM_H
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="ULineEdit" name="tbx_ID" native="true">
|
<widget class="ULineEdit" name="tbxID" native="true">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
@@ -46,7 +46,8 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="ULineEdit" name="tbx_Name" native="true">
|
<item>
|
||||||
|
<widget class="ULineEdit" name="tbxName" native="true">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
@@ -63,7 +64,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="ULineEdit" name="tbx_Sex" native="true">
|
<widget class="ULineEdit" name="tbxSex" native="true">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
@@ -80,7 +81,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QDateEdit" name="tbx_Dob">
|
<widget class="QDateEdit" name="tbxDob">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
@@ -121,7 +122,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="UTextEdit" name="rtbx_Comment">
|
<widget class="UTextEdit" name="rtbxComment">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
Reference in New Issue
Block a user