Report WH

This commit is contained in:
2025-12-24 17:24:01 +03:00
parent bfe586ee2e
commit a06f7653c5
6 changed files with 48 additions and 16 deletions

View File

@@ -27,6 +27,7 @@ CheckerTask::CheckerTask(ConnectorToServer* connectorToServer, TypeChecker type,
{
fimTasksWidget = new FIMtasksWidget(nullptr, TypeListTreeAMMFIM::listOneTask, this);
ui->verticalLayout_3->addWidget(fimTasksWidget);
fimTasksWidget->setMaximumHeight(300);
ui->lblName->setVisible(false);
ui->lblDMcode->setVisible(false);
@@ -202,7 +203,7 @@ void CheckerTask::outReport(FIMReport report)
*/
//Title
str = QString("<b>%1</b>").arg(item.procedure.title);
str = QString("<p style=\"color:blue;\">%1</p>").arg(item.procedure.title);
ui->plainText->appendHtml(str);
//DMcode
@@ -222,10 +223,10 @@ void CheckerTask::outReport(FIMReport report)
str = QString("<p style=\"color:green;\">%1</p>").arg(item.text);
ui->plainText->appendHtml(str);
ui->plainText->appendHtml("<br>");
//ui->plainText->appendHtml("<br>");
}
ui->plainText->appendHtml("<br>");
//ui->plainText->appendHtml("<br>");
//Устройства/приборы
bool flNeedMMEL = false;
@@ -258,19 +259,22 @@ void CheckerTask::outReport(FIMReport report)
str = QString("<p>%1</p>").arg(whItem.code);
ui->plainText->appendHtml(str);
ui->plainText->appendHtml("<br>");
//ui->plainText->appendHtml("<br>");
}
ui->plainText->appendHtml("<br>");
//ui->plainText->appendHtml("<br>");
if(flNeedMMEL)
{
QString strMMEL = tr("Trainee believes that:") + "\n";
QString strMMEL = tr("Trainee believes that:");
if(report.mmel)
str += tr("The aircraft may operate with its equipment removed in accordance with the \"Master Minimum Equipment List\"");
strMMEL += tr("The aircraft may operate with its equipment removed in accordance with the \"Master Minimum Equipment List\"");
else
str += tr("The aircraft cannot be flown with equipment removed in accordance with the \"Master Minimum Equipment List\"");
strMMEL += tr("The aircraft cannot be flown with equipment removed in accordance with the \"Master Minimum Equipment List\"");
str = QString("<p style=\"color:gray;\">%1</p>").arg(strMMEL);
ui->plainText->appendHtml(str);
}
}

View File

@@ -18,7 +18,7 @@ DialogChekerTask::DialogChekerTask(ConnectorToServer* connectorToServer, Checker
{
case CheckerTask::TypeChecker::fim_check:
this->setWindowTitle(tr("Check Task"));
this->setMinimumSize(1400, 700);
this->setMinimumSize(1400, 900);
//this->setWindowState(Qt::WindowMaximized);
break;
case CheckerTask::TypeChecker::amm_check: