Updating AddEdit to hopefully include ReagentAdd

This commit is contained in:
lwark
2025-01-06 09:15:43 -06:00
parent b55258f677
commit 8662bbdc2f
9 changed files with 67 additions and 12 deletions

View File

@@ -19,6 +19,7 @@ from backend.db import (
from pprint import pformat
from .pop_ups import QuestionAsker, AlertPop
from .misc import AddReagentForm
from .omni_add_edit import AddEdit
from typing import List, Tuple
from datetime import date
@@ -139,6 +140,15 @@ class SubmissionFormContainer(QWidget):
self.layout().addWidget(self.form)
return report
def new_add_reagent(self):
instance = Reagent()
dlg = AddEdit(parent=self, instance=instance)
if dlg.exec():
obj = dlg.parse_form()
print(obj)
@report_result
def add_reagent(self, reagent_lot: str | None = None, reagent_role: str | None = None, expiry: date | None = None,
name: str | None = None, kit: str | KitType | None = None) -> Tuple[PydReagent, Report]: