erste callback methoden implementiert.
This commit is contained in:
+23
-4
@@ -1,3 +1,4 @@
|
||||
import json
|
||||
class CadItem():
|
||||
"""
|
||||
This item contains all data for writing all necessary data to the solid edg cad file
|
||||
@@ -27,9 +28,19 @@ class CadItem():
|
||||
"TOS_Trolley_Projekte", "TOS_Trolley_Omniflo",
|
||||
"TOS_Trolley_Spinnerei", "TOS_Trolley_ILS", "Änderungsbeschreibung",
|
||||
"Freigabevermerk", "ZusaetzlicheInformationen"]
|
||||
gui_data_keys = [ "pdm_kategorie_neu", "neuaufbau",
|
||||
"lebenszyklus_status_neu", "aus_halbzeug_neu",
|
||||
"zusatzinfos_txt_neu"]
|
||||
gui_data_keys = [ "teilenummer",
|
||||
"pdm_kategorie_neu",
|
||||
"neuaufbau",
|
||||
"lebenszyklus_status_neu",
|
||||
"aus_halbzeug_neu",
|
||||
"zusatzinfos_txt_neu",
|
||||
"bezeichnung_sivas", "bezeichnung_neu",
|
||||
"beschaffungsart_sivas","beschaffungsart_neu"
|
||||
"mengeneinheit_sivas","mengeneinheit_neu"
|
||||
"halbzeug_sivas","halbzeug_neu",
|
||||
"tos_gruppe_sivas","tos_gruppe_neu"
|
||||
# TODO siehe Layout Entwurf svg
|
||||
]
|
||||
|
||||
def __init__(self, asm_id):
|
||||
""" is initalized with its unique id"""
|
||||
@@ -48,6 +59,7 @@ class CadItem():
|
||||
return self.prt_id
|
||||
def set_part_id(self, prt_id):
|
||||
self.prt_id = prt_id
|
||||
self.gui_data["teilenummer"] = prt_id
|
||||
|
||||
|
||||
def set_parent_children(self, parent_children_mapping):
|
||||
@@ -100,8 +112,15 @@ class CadItem():
|
||||
return self.gui_data
|
||||
|
||||
def load():
|
||||
pass
|
||||
#try:
|
||||
# with open('data.json', 'r') as f:
|
||||
# self.model.todos = json.load(f)
|
||||
#except Exception:
|
||||
# pass
|
||||
pass
|
||||
def save():
|
||||
#with open('data.json', 'w') as f:
|
||||
# data = json.dump(self.model.data, f)
|
||||
pass
|
||||
|
||||
class CadItemRepository:
|
||||
|
||||
Reference in New Issue
Block a user