-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathint_local_machine.py
More file actions
532 lines (469 loc) · 38.4 KB
/
int_local_machine.py
File metadata and controls
532 lines (469 loc) · 38.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.button import Button
from kivy.uix.textinput import TextInput
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.uix.scrollview import ScrollView
from kivy.uix.label import Label
from kivy.uix.filechooser import FileChooserIconView
from kivy.uix.spinner import Spinner
from kivy.uix.filechooser import FileChooserIconView
from kivy.uix.popup import Popup
from kivy.uix.image import Image
from kivy.uix.camera import Camera
from PIL import Image as PilImage # Pillow pour le traitement d'images (si nécessaire)
from kivy.lang import Builder
import shutil
import json
from app_data import AppData
class IntLocalMachine(Screen):
"""
Classe du menu local machine pour les intervenants
"""
def __init__(self, **kwargs):
"""
Visuel du menu local machine pour les intervenants
"""
super(IntLocalMachine, self).__init__(**kwargs)
app_data = AppData()
top_layout = BoxLayout(orientation='vertical', padding=20, spacing=20)
layout2 = GridLayout(cols=2, padding=20, spacing=20, size_hint=(1, 0.2))
layout2.bind(minimum_height=layout2.setter('height'))
scrollView = ScrollView(size_hint=(1,1))
layout = GridLayout(cols=3, padding=50, spacing=35, size_hint_y=None)
layout.bind(minimum_height=layout.setter('height'))
self.back_btn = Button(text="Retour", color=[1, 1, 1, 1], height=30)
self.back_btn.bind(on_press=self.go_to_modif_choix_categorie)
layout2.add_widget(self.back_btn)
layout2.add_widget(Label(text="Local Machine", size_hint=(1, None), height=100, bold=True, font_size=40))
layout.add_widget(Label(text="Dénomination :"))
layout.add_widget(Label(text="Valeur BE :"))
layout.add_widget(Label(text="Valeur Intervenant :"))
layout.add_widget(Label(text="Schema synoptique :"))
self.schema_synoptique = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_schema_synoptique = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False)
layout.add_widget(self.schema_synoptique)
layout.add_widget(self.int_schema_synoptique)
layout.add_widget(Label(text="Schema electrique :"))
self.schema_electrique = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_schema_electrique = TextInput(hint_text="", size_hint=(1, None), height=100,
multiline=False)
layout.add_widget(self.schema_electrique)
layout.add_widget(self.int_schema_electrique)
layout.add_widget(Label(text="Schema de bornier :"))
self.schema_bornier = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_schema_bornier = TextInput(hint_text="", size_hint=(1, None), height=100,
multiline=False)
layout.add_widget(self.schema_bornier)
layout.add_widget(self.int_schema_bornier)
layout.add_widget(Label(text="Schema de cablage :"))
self.schema_cablage = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_schema_cablage = TextInput(hint_text="", size_hint=(1, None), height=100,
multiline=False)
layout.add_widget(self.schema_cablage)
layout.add_widget(self.int_schema_cablage)
layout.add_widget(Label(text="Relevés de rinçages des circuits :"))
self.releves_rincages_circuits = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_releves_rincages_circuits = TextInput(hint_text="", size_hint=(1, None), height=100,
multiline=False)
layout.add_widget(self.releves_rincages_circuits)
layout.add_widget(self.int_releves_rincages_circuits)
layout.add_widget(Label(text="AS Niveau Bas NB1 :"))
self.as_niveau_bas_NB1 = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_as_niveau_bas_NB1 = TextInput(hint_text="", size_hint=(1, None), height=100,
multiline=False)
layout.add_widget(self.as_niveau_bas_NB1)
layout.add_widget(self.int_as_niveau_bas_NB1)
layout.add_widget(Label(text="AS Temperature Haute TH1 :"))
self.as_temperature_haute_TH1 = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_as_temperature_haute_TH1 = TextInput(hint_text="", size_hint=(1, None), height=100,
multiline=False)
layout.add_widget(self.as_temperature_haute_TH1)
layout.add_widget(self.int_as_temperature_haute_TH1)
layout.add_widget(Label(text="AS Controle ARU :"))
self.as_controle_ARU = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_as_controle_ARU = TextInput(hint_text="", size_hint=(1, None), height=100,
multiline=False)
layout.add_widget(self.as_controle_ARU)
layout.add_widget(self.int_as_controle_ARU)
layout.add_widget(Label(text="AS Alarme Hydraulique Voyant Defaut :"))
self.as_alarme_hydraulique_voyant_defaut = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_as_alarme_hydraulique_voyant_defaut = TextInput(hint_text="", size_hint=(1, None),
height=100, multiline=False)
layout.add_widget(self.as_alarme_hydraulique_voyant_defaut)
layout.add_widget(self.int_as_alarme_hydraulique_voyant_defaut)
layout.add_widget(Label(text="Pompe Principale 45/100 - Verif plein huile :"))
self.pompe_principale_45_100_verif_plein_huile = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_pompe_principale_45_100_verif_plein_huile = TextInput(hint_text="",
size_hint=(1, None), height=100, multiline=False)
layout.add_widget(self.pompe_principale_45_100_verif_plein_huile)
layout.add_widget(self.int_pompe_principale_45_100_verif_plein_huile)
layout.add_widget(Label(text="Pompe Principale 45/100 - Sens rotation :"))
self.pompe_principale_45_100_sens_rotation = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_pompe_principale_45_100_sens_rotation = TextInput(hint_text="", size_hint=(1, None),
height=100, multiline=False)
layout.add_widget(self.pompe_principale_45_100_sens_rotation)
layout.add_widget(self.int_pompe_principale_45_100_sens_rotation)
layout.add_widget(Label(text="Pompe Principale 45/100 - Embrayage pompe :"))
self.pompe_principale_45_100_embrayage_pompe = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_pompe_principale_45_100_embrayage_pompe = TextInput(hint_text="", size_hint=(1, None),
height=100, multiline=False)
layout.add_widget(self.pompe_principale_45_100_embrayage_pompe)
layout.add_widget(self.int_pompe_principale_45_100_embrayage_pompe)
layout.add_widget(Label(text="Pompe Principale 45/100 - Pression HP :"))
self.pompe_principale_45_100_pression_HP = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_pompe_principale_45_100_pression_HP = TextInput(hint_text="", size_hint=(1, None),
height=100, multiline=False)
layout.add_widget(self.pompe_principale_45_100_pression_HP)
layout.add_widget(self.int_pompe_principale_45_100_pression_HP)
layout.add_widget(Label(text="Pompe Principale 45/100 - Stand-by :"))
self.pompe_principale_45_100_stand_by = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_pompe_principale_45_100_stand_by = TextInput(hint_text="", size_hint=(1, None),
height=100, multiline=False)
layout.add_widget(self.pompe_principale_45_100_stand_by)
layout.add_widget(self.int_pompe_principale_45_100_stand_by)
layout.add_widget(Label(text="Pompe Principale HPR165/38 - Verif plein huile :"))
self.pompe_principale_HPR165_38_verif_plein_huile = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_pompe_principale_HPR165_38_verif_plein_huile = TextInput(hint_text="",
size_hint=(1, None), height=100, multiline=False)
layout.add_widget(self.pompe_principale_HPR165_38_verif_plein_huile)
layout.add_widget(self.int_pompe_principale_HPR165_38_verif_plein_huile)
layout.add_widget(Label(text="Pompe Principale HPR165/38 - Sens rotation :"))
self.pompe_principale_HPR165_38_sens_rotation = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_pompe_principale_HPR165_38_sens_rotation = TextInput(hint_text="", size_hint=(1, None),
height=100, multiline=False)
layout.add_widget(self.pompe_principale_HPR165_38_sens_rotation)
layout.add_widget(self.int_pompe_principale_HPR165_38_sens_rotation)
layout.add_widget(Label(text="Pompe Principale HPR165/38 - Embrayage pompe :"))
self.pompe_principale_HPR165_38_embrayage_pompe = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_pompe_principale_HPR165_38_embrayage_pompe = TextInput(hint_text="",
size_hint=(1, None), height=100, multiline=False)
layout.add_widget(self.pompe_principale_HPR165_38_embrayage_pompe)
layout.add_widget(self.int_pompe_principale_HPR165_38_embrayage_pompe)
layout.add_widget(Label(text="Pompe Principale HPR165/38 - Pression HP :"))
self.pompe_principale_HPR165_38_pression_HP = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_pompe_principale_HPR165_38_pression_HP = TextInput(hint_text="", size_hint=(1, None),
height=100, multiline=False)
layout.add_widget(self.pompe_principale_HPR165_38_pression_HP)
layout.add_widget(self.int_pompe_principale_HPR165_38_pression_HP)
layout.add_widget(Label(text="Pompe Principale HPR165/38 - Stand-by :"))
self.pompe_principale_HPR165_38_stand_by = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_pompe_principale_HPR165_38_stand_by = TextInput(hint_text="", size_hint=(1, None),
height=100, multiline=False)
layout.add_widget(self.pompe_principale_HPR165_38_stand_by)
layout.add_widget(self.int_pompe_principale_HPR165_38_stand_by)
layout.add_widget(Label(text="Groupe Secours Pompe 45 - Sens rotation :"))
self.groupe_secours_pompe_45_sens_rotation = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_groupe_secours_pompe_45_sens_rotation = TextInput(hint_text="", size_hint=(1, None),
height=100, multiline=False)
layout.add_widget(self.groupe_secours_pompe_45_sens_rotation)
layout.add_widget(self.int_groupe_secours_pompe_45_sens_rotation)
layout.add_widget(Label(text="Groupe Secours Pompe 45 - Calage :"))
self.groupe_secours_pompe_45_calage = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_groupe_secours_pompe_45_calage = TextInput(hint_text="", size_hint=(1, None),
height=100, multiline=False)
layout.add_widget(self.groupe_secours_pompe_45_calage)
layout.add_widget(self.int_groupe_secours_pompe_45_calage)
layout.add_widget(Label(text="Groupe Secours Pompe 45 - Serrage :"))
self.groupe_secours_pompe_45_serrage = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_groupe_secours_pompe_45_serrage = TextInput(hint_text="", size_hint=(1, None),
height=100, multiline=False)
layout.add_widget(self.groupe_secours_pompe_45_serrage)
layout.add_widget(self.int_groupe_secours_pompe_45_serrage)
layout.add_widget(Label(text="Groupe Secours Pompe 45 - Verif plein huile :"))
self.groupe_secours_pompe_45_verif_plein_huile = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_groupe_secours_pompe_45_verif_plein_huile = TextInput(hint_text="",
size_hint=(1, None), height=100, multiline=False)
layout.add_widget(self.groupe_secours_pompe_45_verif_plein_huile)
layout.add_widget(self.int_groupe_secours_pompe_45_verif_plein_huile)
layout.add_widget(Label(text="Groupe Secours Pompe 45 - Marche arret moteur :"))
self.groupe_secours_pompe_45_marche_arret_moteur = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_groupe_secours_pompe_45_marche_arret_moteur = TextInput(hint_text="",
size_hint=(1, None), height=100, multiline=False)
layout.add_widget(self.groupe_secours_pompe_45_marche_arret_moteur)
layout.add_widget(self.int_groupe_secours_pompe_45_marche_arret_moteur)
layout.add_widget(Label(text="Groupe Secours Pompe 45 - Pression HP :"))
self.groupe_secours_pompe_45_pression_HP = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_groupe_secours_pompe_45_pression_HP = TextInput(hint_text="", size_hint=(1, None),
height=100, multiline=False)
layout.add_widget(self.groupe_secours_pompe_45_pression_HP)
layout.add_widget(self.int_groupe_secours_pompe_45_pression_HP)
layout.add_widget(Label(text="Groupe Secours Pompe 45 - Stand-by :"))
self.groupe_secours_pompe_45_stand_by = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_groupe_secours_pompe_45_stand_by = TextInput(hint_text="", size_hint=(1, None),
height=100, multiline=False)
layout.add_widget(self.groupe_secours_pompe_45_stand_by)
layout.add_widget(self.int_groupe_secours_pompe_45_stand_by)
layout.add_widget(Label(text="Groupe Secours Pompe 45 - Courant demarrage :"))
self.groupe_secours_pompe_45_courant_demarrage = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_groupe_secours_pompe_45_courant_demarrage = TextInput(hint_text="",
size_hint=(1, None), height=100, multiline=False)
layout.add_widget(self.groupe_secours_pompe_45_courant_demarrage)
layout.add_widget(self.int_groupe_secours_pompe_45_courant_demarrage)
layout.add_widget(Label(text="Groupe Secours Pompe 45 - Courant service :"))
self.groupe_secours_pompe_45_courant_service = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_groupe_secours_pompe_45_courant_service = TextInput(hint_text="", size_hint=(1, None),
height=100, multiline=False)
layout.add_widget(self.groupe_secours_pompe_45_courant_service)
layout.add_widget(self.int_groupe_secours_pompe_45_courant_service)
layout.add_widget(Label(text="Réglage Limiteur Pression REP10 :"))
self.reglage_limiteur_pression_REP10 = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_reglage_limiteur_pression_REP10 = TextInput(hint_text="", size_hint=(1, None),
height=100, multiline=False)
layout.add_widget(self.reglage_limiteur_pression_REP10)
layout.add_widget(self.int_reglage_limiteur_pression_REP10)
layout.add_widget(Label(text="Réglage Pressostat Retour :"))
self.reglage_pressostat_retour = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_reglage_pressostat_retour = TextInput(hint_text="", size_hint=(1, None), height=100,
multiline=False)
layout.add_widget(self.reglage_pressostat_retour)
layout.add_widget(self.int_reglage_pressostat_retour)
layout.add_widget(Label(text="Réglage Réducteur Pression REP13 :"))
self.reglage_reducteur_pression_REP13 = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_reglage_reducteur_pression_REP13 = TextInput(hint_text="", size_hint=(1, None),
height=100, multiline=False)
layout.add_widget(self.reglage_reducteur_pression_REP13)
layout.add_widget(self.int_reglage_reducteur_pression_REP13)
layout.add_widget(Label(text="Réglage Réducteur Pression Grue REP16 :"))
self.reglage_reducteur_pression_grue_REP16 = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_reglage_reducteur_pression_grue_REP16 = TextInput(hint_text="", size_hint=(1, None),
height=100, multiline=False)
layout.add_widget(self.reglage_reducteur_pression_grue_REP16)
layout.add_widget(self.int_reglage_reducteur_pression_grue_REP16)
layout.add_widget(Label(text="Fonctionnement Sys Refrigeration Embrayage :"))
self.fonctionnement_sys_refrigeration_embrayage = TextInput(hint_text="", size_hint=(1, None), height=100, multiline=False, readonly=True)
self.int_fonctionnement_sys_refrigeration_embrayage = TextInput(hint_text="",
size_hint=(1, None), height=100, multiline=False)
layout.add_widget(self.fonctionnement_sys_refrigeration_embrayage)
layout.add_widget(self.int_fonctionnement_sys_refrigeration_embrayage)
top_layout.add_widget(layout2)
scrollView.add_widget(layout)
top_layout.add_widget(scrollView)
# Bouton Valider
self.submit_btn = Button(text="Valider", color=[1,1,1,1], size_hint=(0.3, 0.2))
self.submit_btn.bind(on_press=self.submit_form)
top_layout.add_widget(self.submit_btn)
self.add_widget(top_layout)
def on_enter(self, *args):
"""
Récupère et affiche les données précédemmment enregistrées
Args:
*args: arg de binding
Returns:
None
"""
self.update()
def update(self):
"""
Affiche les données précédemment enregistrées
"""
app_data = AppData()
self.schema_synoptique.text = app_data.data["Lm_schema_synoptique"]
self.schema_electrique.text = app_data.data["Lm_schema_electrique"]
self.schema_bornier.text = app_data.data["Lm_schema_bornier"]
self.schema_cablage.text = app_data.data["Lm_schema_cablage"]
self.releves_rincages_circuits.text = app_data.data["Lm_releves_rincages_circuits"]
self.as_niveau_bas_NB1.text = app_data.data["Lm_as_niveau_bas_NB1"]
self.as_temperature_haute_TH1.text = app_data.data["Lm_as_temperature_haute_TH1"]
self.as_controle_ARU.text = app_data.data["Lm_as_controle_ARU"]
self.as_alarme_hydraulique_voyant_defaut.text = app_data.data["Lm_as_alarme_hydraulique_voyant_defaut"]
self.pompe_principale_45_100_verif_plein_huile.text = app_data.data["Lm_pompe_principale_45_100_verif_plein_huile"]
self.pompe_principale_45_100_sens_rotation.text = app_data.data["Lm_pompe_principale_45_100_sens_rotation"]
self.pompe_principale_45_100_embrayage_pompe.text = app_data.data["Lm_pompe_principale_45_100_embrayage_pompe"]
self.pompe_principale_45_100_pression_HP.text = app_data.data["Lm_pompe_principale_45_100_pression_HP"]
self.pompe_principale_45_100_stand_by.text = app_data.data["Lm_pompe_principale_45_100_stand_by"]
self.pompe_principale_HPR165_38_verif_plein_huile.text = app_data.data["Lm_pompe_principale_HPR165_38_verif_plein_huile"]
self.pompe_principale_HPR165_38_sens_rotation.text = app_data.data["Lm_pompe_principale_HPR165_38_sens_rotation"]
self.pompe_principale_HPR165_38_embrayage_pompe.text = app_data.data["Lm_pompe_principale_HPR165_38_embrayage_pompe"]
self.pompe_principale_HPR165_38_pression_HP.text = app_data.data["Lm_pompe_principale_HPR165_38_pression_HP"]
self.pompe_principale_HPR165_38_stand_by.text = app_data.data["Lm_pompe_principale_HPR165_38_stand_by"]
self.groupe_secours_pompe_45_sens_rotation.text = app_data.data["Lm_groupe_secours_pompe_45_sens_rotation"]
self.groupe_secours_pompe_45_calage.text = app_data.data["Lm_groupe_secours_pompe_45_calage"]
self.groupe_secours_pompe_45_serrage.text = app_data.data["Lm_groupe_secours_pompe_45_serrage"]
self.groupe_secours_pompe_45_verif_plein_huile.text = app_data.data["Lm_groupe_secours_pompe_45_verif_plein_huile"]
self.groupe_secours_pompe_45_marche_arret_moteur.text = app_data.data["Lm_groupe_secours_pompe_45_marche_arret_moteur"]
self.groupe_secours_pompe_45_pression_HP.text = app_data.data["Lm_groupe_secours_pompe_45_pression_HP"]
self.groupe_secours_pompe_45_stand_by.text = app_data.data["Lm_groupe_secours_pompe_45_stand_by"]
self.groupe_secours_pompe_45_courant_demarrage.text = app_data.data["Lm_groupe_secours_pompe_45_courant_demarrage"]
self.groupe_secours_pompe_45_courant_service.text = app_data.data["Lm_groupe_secours_pompe_45_courant_service"]
self.reglage_limiteur_pression_REP10.text = app_data.data["Lm_reglage_limiteur_pression_REP10"]
self.reglage_pressostat_retour.text = app_data.data["Lm_reglage_pressostat_retour"]
self.reglage_reducteur_pression_REP13.text = app_data.data["Lm_reglage_reducteur_pression_REP13"]
self.reglage_reducteur_pression_grue_REP16.text = app_data.data["Lm_reglage_reducteur_pression_grue_REP16"]
self.fonctionnement_sys_refrigeration_embrayage.text = app_data.data["Lm_fonctionnement_sys_refrigeration_embrayage"]
self.int_schema_synoptique.text = app_data.data["int_Lm_schema_synoptique"]
self.int_schema_electrique.text = app_data.data["int_Lm_schema_electrique"]
self.int_schema_bornier.text = app_data.data["int_Lm_schema_bornier"]
self.int_schema_cablage.text = app_data.data["int_Lm_schema_cablage"]
self.int_releves_rincages_circuits.text = app_data.data["int_Lm_releves_rincages_circuits"]
self.int_as_niveau_bas_NB1.text = app_data.data["int_Lm_as_niveau_bas_NB1"]
self.int_as_temperature_haute_TH1.text = app_data.data["int_Lm_as_temperature_haute_TH1"]
self.int_as_controle_ARU.text = app_data.data["int_Lm_as_controle_ARU"]
self.int_as_alarme_hydraulique_voyant_defaut.text = app_data.data["int_Lm_as_alarme_hydraulique_voyant_defaut"]
self.int_pompe_principale_45_100_verif_plein_huile.text = app_data.data["int_Lm_pompe_principale_45_100_verif_plein_huile"]
self.int_pompe_principale_45_100_sens_rotation.text = app_data.data["int_Lm_pompe_principale_45_100_sens_rotation"]
self.int_pompe_principale_45_100_embrayage_pompe.text = app_data.data["int_Lm_pompe_principale_45_100_embrayage_pompe"]
self.int_pompe_principale_45_100_pression_HP.text = app_data.data["int_Lm_pompe_principale_45_100_pression_HP"]
self.int_pompe_principale_45_100_stand_by.text = app_data.data["int_Lm_pompe_principale_45_100_stand_by"]
self.int_pompe_principale_HPR165_38_verif_plein_huile.text = app_data.data[
"int_Lm_pompe_principale_HPR165_38_verif_plein_huile"]
self.int_pompe_principale_HPR165_38_sens_rotation.text = app_data.data["int_Lm_pompe_principale_HPR165_38_sens_rotation"]
self.int_pompe_principale_HPR165_38_embrayage_pompe.text = app_data.data[
"int_Lm_pompe_principale_HPR165_38_embrayage_pompe"]
self.int_pompe_principale_HPR165_38_pression_HP.text = app_data.data["int_Lm_pompe_principale_HPR165_38_pression_HP"]
self.int_pompe_principale_HPR165_38_stand_by.text = app_data.data["int_Lm_pompe_principale_HPR165_38_stand_by"]
self.int_groupe_secours_pompe_45_sens_rotation.text = app_data.data["int_Lm_groupe_secours_pompe_45_sens_rotation"]
self.int_groupe_secours_pompe_45_calage.text = app_data.data["int_Lm_groupe_secours_pompe_45_calage"]
self.int_groupe_secours_pompe_45_serrage.text = app_data.data["int_Lm_groupe_secours_pompe_45_serrage"]
self.int_groupe_secours_pompe_45_verif_plein_huile.text = app_data.data["int_Lm_groupe_secours_pompe_45_verif_plein_huile"]
self.int_groupe_secours_pompe_45_marche_arret_moteur.text = app_data.data[
"int_Lm_groupe_secours_pompe_45_marche_arret_moteur"]
self.int_groupe_secours_pompe_45_pression_HP.text = app_data.data["int_Lm_groupe_secours_pompe_45_pression_HP"]
self.int_groupe_secours_pompe_45_stand_by.text = app_data.data["int_Lm_groupe_secours_pompe_45_stand_by"]
self.int_groupe_secours_pompe_45_courant_demarrage.text = app_data.data["int_Lm_groupe_secours_pompe_45_courant_demarrage"]
self.int_groupe_secours_pompe_45_courant_service.text = app_data.data["int_Lm_groupe_secours_pompe_45_courant_service"]
self.int_reglage_limiteur_pression_REP10.text = app_data.data["int_Lm_reglage_limiteur_pression_REP10"]
self.int_reglage_pressostat_retour.text = app_data.data["int_Lm_reglage_pressostat_retour"]
self.int_reglage_reducteur_pression_REP13.text = app_data.data["int_Lm_reglage_reducteur_pression_REP13"]
self.int_reglage_reducteur_pression_grue_REP16.text = app_data.data["int_Lm_reglage_reducteur_pression_grue_REP16"]
self.int_fonctionnement_sys_refrigeration_embrayage.text = app_data.data[
"int_Lm_fonctionnement_sys_refrigeration_embrayage"]
self.int_schema_synoptique.hint_text = app_data.data["int_Lm_schema_synoptique"]
self.int_schema_electrique.hint_text = app_data.data["int_Lm_schema_electrique"]
self.int_schema_bornier.hint_text = app_data.data["int_Lm_schema_bornier"]
self.int_schema_cablage.hint_text = app_data.data["int_Lm_schema_cablage"]
self.int_releves_rincages_circuits.hint_text = app_data.data["int_Lm_releves_rincages_circuits"]
self.int_as_niveau_bas_NB1.hint_text = app_data.data["int_Lm_as_niveau_bas_NB1"]
self.int_as_temperature_haute_TH1.hint_text = app_data.data["int_Lm_as_temperature_haute_TH1"]
self.int_as_controle_ARU.hint_text = app_data.data["int_Lm_as_controle_ARU"]
self.int_as_alarme_hydraulique_voyant_defaut.hint_text = app_data.data["int_Lm_as_alarme_hydraulique_voyant_defaut"]
self.int_pompe_principale_45_100_verif_plein_huile.hint_text = app_data.data[
"int_Lm_pompe_principale_45_100_verif_plein_huile"]
self.int_pompe_principale_45_100_sens_rotation.hint_text = app_data.data["int_Lm_pompe_principale_45_100_sens_rotation"]
self.int_pompe_principale_45_100_embrayage_pompe.hint_text = app_data.data[
"int_Lm_pompe_principale_45_100_embrayage_pompe"]
self.int_pompe_principale_45_100_pression_HP.hint_text = app_data.data["int_Lm_pompe_principale_45_100_pression_HP"]
self.int_pompe_principale_45_100_stand_by.hint_text = app_data.data["int_Lm_pompe_principale_45_100_stand_by"]
self.int_pompe_principale_HPR165_38_verif_plein_huile.hint_text = app_data.data[
"int_Lm_pompe_principale_HPR165_38_verif_plein_huile"]
self.int_pompe_principale_HPR165_38_sens_rotation.hint_text = app_data.data[
"int_Lm_pompe_principale_HPR165_38_sens_rotation"]
self.int_pompe_principale_HPR165_38_embrayage_pompe.hint_text = app_data.data[
"int_Lm_pompe_principale_HPR165_38_embrayage_pompe"]
self.int_pompe_principale_HPR165_38_pression_HP.hint_text = app_data.data["int_Lm_pompe_principale_HPR165_38_pression_HP"]
self.int_pompe_principale_HPR165_38_stand_by.hint_text = app_data.data["int_Lm_pompe_principale_HPR165_38_stand_by"]
self.int_groupe_secours_pompe_45_sens_rotation.hint_text = app_data.data["int_Lm_groupe_secours_pompe_45_sens_rotation"]
self.int_groupe_secours_pompe_45_calage.hint_text = app_data.data["int_Lm_groupe_secours_pompe_45_calage"]
self.int_groupe_secours_pompe_45_serrage.hint_text = app_data.data["int_Lm_groupe_secours_pompe_45_serrage"]
self.int_groupe_secours_pompe_45_verif_plein_huile.hint_text = app_data.data[
"int_Lm_groupe_secours_pompe_45_verif_plein_huile"]
self.int_groupe_secours_pompe_45_marche_arret_moteur.hint_text = app_data.data[
"int_Lm_groupe_secours_pompe_45_marche_arret_moteur"]
self.int_groupe_secours_pompe_45_pression_HP.hint_text = app_data.data["int_Lm_groupe_secours_pompe_45_pression_HP"]
self.int_groupe_secours_pompe_45_stand_by.hint_text = app_data.data["int_Lm_groupe_secours_pompe_45_stand_by"]
self.int_groupe_secours_pompe_45_courant_demarrage.hint_text = app_data.data[
"int_Lm_groupe_secours_pompe_45_courant_demarrage"]
self.int_groupe_secours_pompe_45_courant_service.hint_text = app_data.data[
"int_Lm_groupe_secours_pompe_45_courant_service"]
self.int_reglage_limiteur_pression_REP10.hint_text = app_data.data["int_Lm_reglage_limiteur_pression_REP10"]
self.int_reglage_pressostat_retour.hint_text = app_data.data["int_Lm_reglage_pressostat_retour"]
self.int_reglage_reducteur_pression_REP13.hint_text = app_data.data["int_Lm_reglage_reducteur_pression_REP13"]
self.int_reglage_reducteur_pression_grue_REP16.hint_text = app_data.data["int_Lm_reglage_reducteur_pression_grue_REP16"]
self.int_fonctionnement_sys_refrigeration_embrayage.hint_text = app_data.data[
"int_Lm_fonctionnement_sys_refrigeration_embrayage"]
def link_data(self):
"""
Enregistre les données rentrées par l'utilisateur
"""
app_data = AppData()
self.case_number = app_data.case_number
app_data.Lm_schema_synoptique = self.schema_synoptique.text
app_data.Lm_schema_electrique = self.schema_electrique.text
app_data.Lm_schema_bornier = self.schema_bornier.text
app_data.Lm_schema_cablage = self.schema_cablage.text
app_data.Lm_releves_rincages_circuits = self.releves_rincages_circuits.text
app_data.Lm_as_niveau_bas_NB1 = self.as_niveau_bas_NB1.text
app_data.Lm_as_temperature_haute_TH1 = self.as_temperature_haute_TH1.text
app_data.Lm_as_controle_ARU = self.as_controle_ARU.text
app_data.Lm_as_alarme_hydraulique_voyant_defaut = self.as_alarme_hydraulique_voyant_defaut.text
app_data.Lm_pompe_principale_45_100_verif_plein_huile = self.pompe_principale_45_100_verif_plein_huile.text
app_data.Lm_pompe_principale_45_100_sens_rotation = self.pompe_principale_45_100_sens_rotation.text
app_data.Lm_pompe_principale_45_100_embrayage_pompe = self.pompe_principale_45_100_embrayage_pompe.text
app_data.Lm_pompe_principale_45_100_pression_HP = self.pompe_principale_45_100_pression_HP.text
app_data.Lm_pompe_principale_45_100_stand_by = self.pompe_principale_45_100_stand_by.text
app_data.Lm_pompe_principale_HPR165_38_verif_plein_huile = self.pompe_principale_HPR165_38_verif_plein_huile.text
app_data.Lm_pompe_principale_HPR165_38_sens_rotation = self.pompe_principale_HPR165_38_sens_rotation.text
app_data.Lm_pompe_principale_HPR165_38_embrayage_pompe = self.pompe_principale_HPR165_38_embrayage_pompe.text
app_data.Lm_pompe_principale_HPR165_38_pression_HP = self.pompe_principale_HPR165_38_pression_HP.text
app_data.Lm_pompe_principale_HPR165_38_stand_by = self.pompe_principale_HPR165_38_stand_by.text
app_data.Lm_groupe_secours_pompe_45_sens_rotation = self.groupe_secours_pompe_45_sens_rotation.text
app_data.Lm_groupe_secours_pompe_45_calage = self.groupe_secours_pompe_45_calage.text
app_data.Lm_groupe_secours_pompe_45_serrage = self.groupe_secours_pompe_45_serrage.text
app_data.Lm_groupe_secours_pompe_45_verif_plein_huile = self.groupe_secours_pompe_45_verif_plein_huile.text
app_data.Lm_groupe_secours_pompe_45_marche_arret_moteur = self.groupe_secours_pompe_45_marche_arret_moteur.text
app_data.Lm_groupe_secours_pompe_45_pression_HP = self.groupe_secours_pompe_45_pression_HP.text
app_data.Lm_groupe_secours_pompe_45_stand_by = self.groupe_secours_pompe_45_stand_by.text
app_data.Lm_groupe_secours_pompe_45_courant_demarrage = self.groupe_secours_pompe_45_courant_demarrage.text
app_data.Lm_groupe_secours_pompe_45_courant_service = self.groupe_secours_pompe_45_courant_service.text
app_data.Lm_reglage_limiteur_pression_REP10 = self.reglage_limiteur_pression_REP10.text
app_data.Lm_reglage_pressostat_retour = self.reglage_pressostat_retour.text
app_data.Lm_reglage_reducteur_pression_REP13 = self.reglage_reducteur_pression_REP13.text
app_data.Lm_reglage_reducteur_pression_grue_REP16 = self.reglage_reducteur_pression_grue_REP16.text
app_data.Lm_fonctionnement_sys_refrigeration_embrayage = self.fonctionnement_sys_refrigeration_embrayage.text
app_data.int_Lm_schema_synoptique = self.int_schema_synoptique.text
app_data.int_Lm_schema_electrique = self.int_schema_electrique.text
app_data.int_Lm_schema_bornier = self.int_schema_bornier.text
app_data.int_Lm_schema_cablage = self.int_schema_cablage.text
app_data.int_Lm_releves_rincages_circuits = self.int_releves_rincages_circuits.text
app_data.int_Lm_as_niveau_bas_NB1 = self.int_as_niveau_bas_NB1.text
app_data.int_Lm_as_temperature_haute_TH1 = self.int_as_temperature_haute_TH1.text
app_data.int_Lm_as_controle_ARU = self.int_as_controle_ARU.text
app_data.int_Lm_as_alarme_hydraulique_voyant_defaut = self.int_as_alarme_hydraulique_voyant_defaut.text
app_data.int_Lm_pompe_principale_45_100_verif_plein_huile = self.int_pompe_principale_45_100_verif_plein_huile.text
app_data.int_Lm_pompe_principale_45_100_sens_rotation = self.int_pompe_principale_45_100_sens_rotation.text
app_data.int_Lm_pompe_principale_45_100_embrayage_pompe = self.int_pompe_principale_45_100_embrayage_pompe.text
app_data.int_Lm_pompe_principale_45_100_pression_HP = self.int_pompe_principale_45_100_pression_HP.text
app_data.int_Lm_pompe_principale_45_100_stand_by = self.int_pompe_principale_45_100_stand_by.text
app_data.int_Lm_pompe_principale_HPR165_38_verif_plein_huile = self.int_pompe_principale_HPR165_38_verif_plein_huile.text
app_data.int_Lm_pompe_principale_HPR165_38_sens_rotation = self.int_pompe_principale_HPR165_38_sens_rotation.text
app_data.int_Lm_pompe_principale_HPR165_38_embrayage_pompe = self.int_pompe_principale_HPR165_38_embrayage_pompe.text
app_data.int_Lm_pompe_principale_HPR165_38_pression_HP = self.int_pompe_principale_HPR165_38_pression_HP.text
app_data.int_Lm_pompe_principale_HPR165_38_stand_by = self.int_pompe_principale_HPR165_38_stand_by.text
app_data.int_Lm_groupe_secours_pompe_45_sens_rotation = self.int_groupe_secours_pompe_45_sens_rotation.text
app_data.int_Lm_groupe_secours_pompe_45_calage = self.int_groupe_secours_pompe_45_calage.text
app_data.int_Lm_groupe_secours_pompe_45_serrage = self.int_groupe_secours_pompe_45_serrage.text
app_data.int_Lm_groupe_secours_pompe_45_verif_plein_huile = self.int_groupe_secours_pompe_45_verif_plein_huile.text
app_data.int_Lm_groupe_secours_pompe_45_marche_arret_moteur = self.int_groupe_secours_pompe_45_marche_arret_moteur.text
app_data.int_Lm_groupe_secours_pompe_45_pression_HP = self.int_groupe_secours_pompe_45_pression_HP.text
app_data.int_Lm_groupe_secours_pompe_45_stand_by = self.int_groupe_secours_pompe_45_stand_by.text
app_data.int_Lm_groupe_secours_pompe_45_courant_demarrage = self.int_groupe_secours_pompe_45_courant_demarrage.text
app_data.int_Lm_groupe_secours_pompe_45_courant_service = self.int_groupe_secours_pompe_45_courant_service.text
app_data.int_Lm_reglage_limiteur_pression_REP10 = self.int_reglage_limiteur_pression_REP10.text
app_data.int_Lm_reglage_pressostat_retour = self.int_reglage_pressostat_retour.text
app_data.int_Lm_reglage_reducteur_pression_REP13 = self.int_reglage_reducteur_pression_REP13.text
app_data.int_Lm_reglage_reducteur_pression_grue_REP16 = self.int_reglage_reducteur_pression_grue_REP16.text
app_data.int_Lm_fonctionnement_sys_refrigeration_embrayage = self.int_fonctionnement_sys_refrigeration_embrayage.text
def submit_form(self, instance):
"""
Enregistre les données rentrées par l'utilisateur et passe à la page suivante
Args:
instance: arg de binding
Returns:
None
"""
self.link_data()
app_data = AppData()
app_data.save_data_int_local_machine()
self.manager.current = 'int_treuils'
def go_to_modif_choix_categorie(self, instance):
"""
Passe au menu de choix de caracatéristiques affaire pour les intervenants
Args:
instance:
Returns:
"""
self.link_data()
app_data = AppData()
app_data.save_data_int_local_machine()
self.manager.current = 'int_carac_affaire'