Scan tab Patient information logic and protocol logic.
This commit is contained in:
@@ -11,4 +11,26 @@ PatientInformationForm::PatientInformationForm(QWidget *parent) :
|
||||
PatientInformationForm::~PatientInformationForm()
|
||||
{
|
||||
delete ui;
|
||||
if (inf) delete inf;
|
||||
}
|
||||
|
||||
void PatientInformationForm::setPatientInformation(PatientInformation* information) {
|
||||
ui->lbl_ID->setText(information->ID);
|
||||
ui->lbl_Date->setText(information->BirthDate);
|
||||
ui->lbl_Name->setText(information->Name);
|
||||
ui->lbl_Sex->setText(information->Sex);
|
||||
inf = information;
|
||||
}
|
||||
|
||||
void PatientInformationForm::setProtocol(int type) {
|
||||
switch(type)
|
||||
{
|
||||
case 0:
|
||||
ui->lbl_Protocol->setText("LEFT ONLY");
|
||||
break;
|
||||
case 1:
|
||||
default:
|
||||
ui->lbl_Protocol->setText("RIGHT ONLY");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user