From 9c874af52e0eeff869fa0ef3b350bbb469080f26 Mon Sep 17 00:00:00 2001 From: Laurent Trinques Date: Wed, 6 Nov 2019 14:16:55 +0100 Subject: [PATCH] Nomenclature export : add coil and protection query --- sources/ui/bomexportdialog.cpp | 4 ++++ sources/ui/bomexportdialog.ui | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/sources/ui/bomexportdialog.cpp b/sources/ui/bomexportdialog.cpp index 134a3f41e..d0103207d 100644 --- a/sources/ui/bomexportdialog.cpp +++ b/sources/ui/bomexportdialog.cpp @@ -475,6 +475,10 @@ QString BOMExportDialog::queryStr() const where = " WHERE element_subtype = 'commutator'"; } else if (ui->m_terminal_rb->isChecked()) { 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; if(ui->m_format_as_bom_rb->isChecked()) diff --git a/sources/ui/bomexportdialog.ui b/sources/ui/bomexportdialog.ui index 6073e475e..5b27223ed 100644 --- a/sources/ui/bomexportdialog.ui +++ b/sources/ui/bomexportdialog.ui @@ -220,6 +220,20 @@ + + + + Contacteur et relais + + + + + + + Protection : disjoncteur, sectionneur, relais thermique + + +