Nomenclature export : add coil and protection query

This commit is contained in:
Laurent Trinques
2019-11-06 14:16:55 +01:00
parent ce190dd323
commit 9c874af52e
2 changed files with 18 additions and 0 deletions

View File

@@ -475,6 +475,10 @@ QString BOMExportDialog::queryStr() const
where = " WHERE element_subtype = 'commutator'"; where = " WHERE element_subtype = 'commutator'";
} else if (ui->m_terminal_rb->isChecked()) { } else if (ui->m_terminal_rb->isChecked()) {
where = " WHERE element_type = 'Terminale'"; where = " WHERE element_type = 'Terminale'";
} else if (ui->m_coil_rb->isChecked()) {
where = " WHERE element_subtype = 'coil'";
} else if (ui->m_protection_rb ->isChecked()) {
where = " WHERE element_subtype = 'protection'";
} }
QString where_bom; QString where_bom;
if(ui->m_format_as_bom_rb->isChecked()) if(ui->m_format_as_bom_rb->isChecked())

View File

@@ -220,6 +220,20 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QRadioButton" name="m_coil_rb">
<property name="text">
<string>Contacteur et relais</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="m_protection_rb">
<property name="text">
<string> Protection : disjoncteur, sectionneur, relais thermique</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>