discard piece tbt
This commit is contained in:
parent
1ba6d062e6
commit
86b839aff3
|
|
@ -1,8 +1,8 @@
|
|||
codice_ricetta,cliente,codice_prodotto,descrizione,tempo_riempimento,tempo_assestamento,tempo_di_test,percentuale_minima_pressione_assestamento,percentuale_massima_pressione_assestamento,pressione_di_test_delta_minimo,pressione_di_test,pressione_di_test_delta_massimo,modello_etichetta
|
||||
5803112815,IVECO,5803112815,Daily Automatico,5,10,10,5,5,30,5000,5,ETA30x16_203dpi.prn
|
||||
5803112816,IVECO,5803112816,Daily Automatico,5,10,10,5,5,30,5000,5,ETA30x16_203dpi.prn
|
||||
000746453 REV.5,FERRARI,000746453 REV.5,TUBO RITORNO OLIO,10,30,20,5,5,25,10000,5,ferrari_stten8.prn
|
||||
MY83-6L701-AB,ASTON MARTIN,MY83-6L701-AB,TRANSMISSION OIL,5,10,10,5,5,30,7000,5,aston_martin.prn
|
||||
MY83-6L694-AB,ASTON MARTIN,MY83-6L694-AB,TRANSMISSION OIL,5,10,10,5,5,30,7000,5,aston_martin.prn
|
||||
MY83-6B747-BA,ASTON MARTIN,MY83-6B747-BA,ENGINE OIL,5,10,10,5,5,30,7000,5,aston_martin.prn
|
||||
MY83-6B748-BA,ASTON MARTIN,MY83-6B748-BA,ENGINE OIL,5,10,10,5,5,30,7000,5,aston_martin.prn
|
||||
codice_ricetta,cliente,codice_prodotto,descrizione,tempo_riempimento,tempo_assestamento,tempo_di_test,percentuale_minima_pressione_assestamento,percentuale_massima_pressione_assestamento,pressione_di_test_delta_minimo,pressione_di_test,pressione_di_test_delta_massimo,modello_etichetta,richiedi_inserimento_scarto
|
||||
5803112815,IVECO,5803112815,Daily Automatico,5,10,10,5,5,30,5000,5,ETA30x16_203dpi.prn,x
|
||||
5803112816,IVECO,5803112816,Daily Automatico,5,10,10,5,5,30,5000,5,ETA30x16_203dpi.prn,x
|
||||
000746453 REV.5,FERRARI,000746453 REV.5,TUBO RITORNO OLIO,10,30,20,5,5,25,10000,5,ferrari_stten8.prn,
|
||||
MY83-6L701-AB,ASTON MARTIN,MY83-6L701-AB,TRANSMISSION OIL,5,10,10,5,5,30,7000,5,aston_martin.prn,
|
||||
MY83-6L694-AB,ASTON MARTIN,MY83-6L694-AB,TRANSMISSION OIL,5,10,10,5,5,30,7000,5,aston_martin.prn,
|
||||
MY83-6B747-BA,ASTON MARTIN,MY83-6B747-BA,ENGINE OIL,5,10,10,5,5,30,7000,5,aston_martin.prn,
|
||||
MY83-6B748-BA,ASTON MARTIN,MY83-6B748-BA,ENGINE OIL,5,10,10,5,5,30,7000,5,aston_martin.prn,
|
||||
|
|
|
@ -103,6 +103,7 @@ cliente: specificare cliente
|
|||
part_number: specificare part number
|
||||
dimensione_lotto_abilitata: x
|
||||
dimensione_lotto: 0
|
||||
richiedi_inserimento_scarto:
|
||||
verifica_connettore_abilitata: x
|
||||
connettore: SCRx
|
||||
verifica_codice_a_barre_abilitata:
|
||||
|
|
|
|||
|
|
@ -6,5 +6,6 @@ class Count_Step_Editor(Editor):
|
|||
super().__init__(action=action, cell_widget=cell_widget)
|
||||
self.spec.update({
|
||||
"amount": self.amount_sb,
|
||||
"warning_img": self.warning_img_le
|
||||
"warning_img": self.warning_img_le,
|
||||
"require_discard_piece": self.require_discard_piece_cb
|
||||
})
|
||||
|
|
|
|||
|
|
@ -6,14 +6,40 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>692</width>
|
||||
<height>202</height>
|
||||
<width>798</width>
|
||||
<height>319</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Count Step Editor</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="1">
|
||||
<widget class="QGroupBox" name="groupBox_6">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
<weight>50</weight>
|
||||
<bold>false</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Istruzioni operative</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_9">
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_32">
|
||||
<property name="text">
|
||||
<string>Immagine warning iniziale</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2">
|
||||
<widget class="QLineEdit" name="warning_img_le"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="font">
|
||||
|
|
@ -44,29 +70,30 @@
|
|||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QGroupBox" name="groupBox_6">
|
||||
<item row="1" column="1">
|
||||
<widget class="QGroupBox" name="groupBox_2">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
<weight>50</weight>
|
||||
<italic>false</italic>
|
||||
<bold>false</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Istruzioni operative</string>
|
||||
<string>Contenitore di segregazione scarti</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_9">
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_32">
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="require_discard_piece_cb">
|
||||
<property name="layoutDirection">
|
||||
<enum>Qt::RightToLeft</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Immagine warning iniziale</string>
|
||||
<string>Richiedi inserimento pezzo di scarto dentro contenitore di segregazione</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2">
|
||||
<widget class="QLineEdit" name="warning_img_le"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
|||
|
|
@ -185,6 +185,7 @@ class Recipe_Selection(Widget):
|
|||
"count": {
|
||||
"amount": row.get("dimensione_lotto", defaults["dimensione_lotto"]),
|
||||
"warning_img": row.get("immagine_warning", ""),
|
||||
"require_discard_piece": row.get("richiedi_inserimento_scarto",defaults["richiedi_inserimento_scarto"])
|
||||
},
|
||||
"connector": {
|
||||
"connector": row.get("connettore", defaults["connettore"]),
|
||||
|
|
|
|||
|
|
@ -22,11 +22,12 @@ class Test_Fail(Test_Test):
|
|||
if show is False:
|
||||
return show
|
||||
if "discard_box" in self.parent.config["hardware_config"].keys():
|
||||
if self.parent_assembly_widget is not None :
|
||||
self.continue_b.setVisible(False)
|
||||
self.discard_timer.start(100)
|
||||
self.parent_assembly_widget().set_text(text="TEST KO - INSERIRE IL PEZZO COLLAUDATO NEL CONTENITORE DI SEGREGAZIONE SCARTI")
|
||||
self.io_connection=self.components["digital_io"].out.connect(self.wait_discard)
|
||||
if self.recipe["count"]["require_discard_piece"]:
|
||||
if self.parent_assembly_widget is not None :
|
||||
self.continue_b.setVisible(False)
|
||||
self.discard_timer.start(100)
|
||||
self.parent_assembly_widget().set_text(text="TEST KO - INSERIRE IL PEZZO COLLAUDATO NEL CONTENITORE DI SEGREGAZIONE SCARTI")
|
||||
self.io_connection=self.components["digital_io"].out.connect(self.wait_discard)
|
||||
|
||||
self.visualize()
|
||||
# TESTING
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user