mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-27 19:45:43 +03:00
Correct SQL Delete Trainee query
This commit is contained in:
@@ -311,6 +311,12 @@ void AMMtasksWidget::preparationTreeWidget()
|
||||
{
|
||||
treeWidget->setColumnHidden(ColumnsTreeAMM::clmnAMM_ID, true);
|
||||
treeWidget->setColumnHidden(ColumnsTreeAMM::clmnAMM_status, true);
|
||||
|
||||
#ifdef PROJECT_TYPE_DEBUG
|
||||
treeWidget->setColumnHidden(ColumnsTreeAMM::clmnAMM_canplay, false);
|
||||
#else
|
||||
treeWidget->setColumnHidden(ColumnsTreeAMM::clmnAMM_canplay, true);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -152,10 +152,13 @@ void ListSubProc::slot_UpdateSubProcForDMCode(QString dmCode)
|
||||
{
|
||||
QList<SubProc> list = connectorToServer->getListSubProcForDMCode(dmCode);
|
||||
|
||||
if(!list.count())
|
||||
on_btnAssign_clicked();
|
||||
|
||||
for(SubProc subProc : list)
|
||||
{
|
||||
QTreeWidgetItem* item = new QTreeWidgetItem(treeWidget);
|
||||
item->setIcon(0, QIcon(":/resources/icons/link.png"));
|
||||
//item->setIcon(0, QIcon(":/resources/icons/link.png"));
|
||||
item->setText(ColumnsTreeSubProc::clmnSP_title, subProc.getTitle());
|
||||
item->setText(ColumnsTreeSubProc::clmnSP_code, subProc.getDmCode());
|
||||
item->setText(ColumnsTreeSubProc::clmnSP_canplay, subProc.getModeListStr());
|
||||
@@ -166,6 +169,8 @@ void ListSubProc::slot_UpdateSubProcForDMCode(QString dmCode)
|
||||
{
|
||||
item->setFlags(item->flags() | Qt::ItemIsUserCheckable);
|
||||
item->setCheckState(ColumnsTreeSubProc::clmnSP_title, Qt::Checked);
|
||||
|
||||
treeWidget->addTopLevelItem(item);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -173,9 +178,13 @@ void ListSubProc::slot_UpdateSubProcForDMCode(QString dmCode)
|
||||
item->setCheckState(ColumnsTreeSubProc::clmnSP_title, Qt::Unchecked);
|
||||
|
||||
item->setFlags(item->flags() ^ Qt::ItemIsEnabled);
|
||||
}
|
||||
|
||||
treeWidget->addTopLevelItem(item);
|
||||
#ifdef PROJECT_TYPE_DEBUG
|
||||
treeWidget->addTopLevelItem(item);
|
||||
#else
|
||||
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
waitAnimationWidget->hideWithStop();
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>400</width>
|
||||
<width>594</width>
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
@@ -49,7 +49,7 @@
|
||||
<item>
|
||||
<widget class="QLabel" name="label_SubProc">
|
||||
<property name="text">
|
||||
<string>Select subprocedures allowed to run in Auto mode:</string>
|
||||
<string>Select the sub-procedures that are allowed to be run by the trainee in automatic mode:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -72,7 +72,7 @@
|
||||
<string>Assign</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../InstructorsAndTrainees.qrc">
|
||||
<iconset resource="../../ServerLMS/ServerLMS.qrc">
|
||||
<normaloff>:/resources/icons/circleGreen.png</normaloff>:/resources/icons/circleGreen.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
@@ -93,7 +93,7 @@
|
||||
</layout>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="../InstructorsAndTrainees.qrc"/>
|
||||
<include location="../../ServerLMS/ServerLMS.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
||||
Reference in New Issue
Block a user