wip
This commit is contained in:
commit
485594d44b
@ -28,7 +28,7 @@ bucket_id: MACHINE
|
||||
|
||||
[label_printer]
|
||||
platform: windows
|
||||
printer:
|
||||
printer: zd421
|
||||
|
||||
|
||||
[tecna_t3]
|
||||
|
||||
@ -61,6 +61,26 @@ if admin is None or not admin.is_admin:
|
||||
Users.register(username="USER", password="user")
|
||||
|
||||
|
||||
Recipes.replace(
|
||||
id=0,
|
||||
name="Ferrari 923578",
|
||||
client="Ferrari",
|
||||
part_number="923578",
|
||||
spec={"steps": []},
|
||||
description="Tubo plastica doppia biforcazione con termorestringente centrale",
|
||||
archived=False,
|
||||
).execute()
|
||||
Recipes.replace(
|
||||
id=1,
|
||||
name="BLOW-BY 5802814210",
|
||||
client="",
|
||||
part_number="5802814210",
|
||||
spec={"steps": []},
|
||||
description="Tubo blow-by",
|
||||
archived=False,
|
||||
).execute()
|
||||
|
||||
|
||||
if True:
|
||||
# crud_db must be imported after db and models_reference are available
|
||||
from .crud_db import Crud_DB
|
||||
|
||||
@ -25,7 +25,7 @@ class Recipe_Selection(Widget):
|
||||
"client": "Cliente",
|
||||
"part_number": "N° disegno",
|
||||
"spec": "Specifica",
|
||||
"description": "Desccrizione",
|
||||
"description": "Descrizione",
|
||||
"archived": "Archiviata",
|
||||
}
|
||||
filters = None
|
||||
@ -36,7 +36,7 @@ class Recipe_Selection(Widget):
|
||||
"client": "Cliente",
|
||||
"part_number": "N° disegno",
|
||||
"spec": "Specifica",
|
||||
"description": "Desccrizione",
|
||||
"description": "Descrizione",
|
||||
# "archived": "Archiviata",
|
||||
}
|
||||
filters = {"archived": False}
|
||||
@ -69,6 +69,12 @@ class Recipe_Selection(Widget):
|
||||
self.crud.modified.connect(self.check_modified)
|
||||
self.crud.selected.connect(self.check_selected)
|
||||
self.crud.emit()
|
||||
self.crud.db_tw.setColumnWidth(0, 25)
|
||||
self.crud.db_tw.setColumnWidth(1, 200)
|
||||
self.crud.db_tw.setColumnWidth(2, 200)
|
||||
self.crud.db_tw.setColumnWidth(3, 200)
|
||||
self.crud.db_tw.setColumnWidth(4, 200)
|
||||
self.crud.db_tw.setColumnWidth(5, 400)
|
||||
# TESTING
|
||||
if "--auto-select" in sys.argv or "--test" in sys.argv:
|
||||
drawing = "TEST"
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QPushButton" name="save_steps_b">
|
||||
<property name="text">
|
||||
<string>Salva configurasione
|
||||
<string>Salva configurazione
|
||||
Fasi di Test</string>
|
||||
</property>
|
||||
</widget>
|
||||
|
||||
@ -12,7 +12,7 @@ class Recipes_Management(Widget):
|
||||
"client": "Cliente",
|
||||
"part_number": "N° disegno",
|
||||
"spec": "Specifica",
|
||||
"description": "Desccrizione",
|
||||
"description": "Descrizione",
|
||||
"archived": "Archiviata",
|
||||
}
|
||||
self.crud = Crud(
|
||||
|
||||
@ -63,7 +63,7 @@ class Steps_Management(Widget):
|
||||
"name": "Fase di test",
|
||||
"type": "Tipo",
|
||||
"spec": "Specifica",
|
||||
"description": "Desccrizione",
|
||||
"description": "Descrizione",
|
||||
"archived": "Archiviata",
|
||||
}
|
||||
self.crud = Crud(
|
||||
|
||||
@ -282,7 +282,6 @@ class Test(Widget):
|
||||
"DATETIME": str(archived.time.isoformat()),
|
||||
"SHIFT": "-",
|
||||
"STATION": "-",
|
||||
"SHIFT": "-",
|
||||
"OPERATOR": str(Users.get_session().user.username),
|
||||
"PMAX": "-",
|
||||
"PMIN": "-",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user