generated from dopt-python/py311
adapt customer requirements, REQ 1006, 1007
This commit is contained in:
+8
-11
@@ -1142,15 +1142,15 @@ class Grunderfassung_SuchWidget(CustomFormWidget):
|
||||
self.person_search_input = cast(QComboBox, lookup[0]["widget"])
|
||||
self.person_search_input.currentIndexChanged.connect(self._selected_person)
|
||||
|
||||
self.CHANNEL_AWARENESS_KEY = "kanal_aufmerksamkeit"
|
||||
lookup = search_widgets_by_key(self.widget_registry, self.CHANNEL_AWARENESS_KEY)
|
||||
self.CHANNEL_CONTACT_KEY = "kontaktweg"
|
||||
lookup = search_widgets_by_key(self.widget_registry, self.CHANNEL_CONTACT_KEY)
|
||||
assert len(lookup) == 1
|
||||
self.channel_awareness = cast(QComboBox, lookup[0]["widget"])
|
||||
self.channel_contact = cast(QComboBox, lookup[0]["widget"])
|
||||
|
||||
self.DATA_EXPORT_FIELDS = (
|
||||
self.COMPANY_SEARCH_INPUT_KEY,
|
||||
self.PERSON_SEARCH_INPUT_KEY,
|
||||
self.CHANNEL_AWARENESS_KEY,
|
||||
self.CHANNEL_CONTACT_KEY,
|
||||
)
|
||||
|
||||
self.company_widgets: dict[str, QWidget] = {}
|
||||
@@ -1234,7 +1234,7 @@ class Grunderfassung_SuchWidget(CustomFormWidget):
|
||||
|
||||
def _clear_company_fields(self) -> None:
|
||||
self.person_search_input.clear()
|
||||
self.channel_awareness.setCurrentIndex(0)
|
||||
self.channel_contact.setCurrentIndex(0)
|
||||
for widget in self.company_widgets.values():
|
||||
widget = cast(QLineEdit, widget)
|
||||
widget.clear()
|
||||
@@ -3473,8 +3473,6 @@ class Page_InitRec(QWidget):
|
||||
# TODO saving logic to connect company and person if needed
|
||||
|
||||
def _reset(self) -> None:
|
||||
# TODO change to make these calls implicit in child modules via
|
||||
# TODO staes
|
||||
for form in self.STATE.child_modules:
|
||||
form.reset_form()
|
||||
self.STATE.ids = EntityIds()
|
||||
@@ -3494,9 +3492,9 @@ class Page_InitRec(QWidget):
|
||||
pers_id=5,
|
||||
)
|
||||
|
||||
# ids = EntityIds(
|
||||
# link_id=7,
|
||||
# )
|
||||
ids = EntityIds(
|
||||
link_id=7,
|
||||
)
|
||||
self.STATE.ids.update(ids, ignore_none=False)
|
||||
|
||||
if ids.empty():
|
||||
@@ -3752,7 +3750,6 @@ class Page_InitRec(QWidget):
|
||||
|
||||
try:
|
||||
logger_page_initrec.debug("[Page -- InitRec] Call Pydantic...")
|
||||
# validated_data = self.cfg.pydantic_model(**form_data)
|
||||
|
||||
for ent_type, state in self.STATE.initrec_form_states.items():
|
||||
logger_page_initrec.debug(
|
||||
|
||||
Reference in New Issue
Block a user