def label_entries(self): self.entries = \ {'genus': LineEdit(self.ui.is_genusLE), 'species': LineEdit(self.ui.is_speciesLE), 'part': LineEdit(self.ui.is_partLE), 'solvent': ComboBox(self.ui.is_solventCombo), 'method': ComboBox(self.ui.is_methodCombo)}
def label_entries(self): self.entries = \ {'name_option' : ComboBox(self.ui.is_chem_nameCombo), 'name_typed' : LineEdit(self.ui.is_chem_nameLE), 'method' : ComboBox(self.ui.is_methodCombo), 'presence' : ComboBox(self.ui.is_presenceCombo, combo_type = 'true_false')} self.entries['presence'].\ set_true_false_indices(true_index = 0, false_index = 1)
def label_entries(self): self.entries = \ {'name_option': ComboBox(self.ui.is_assay_nameCombo), 'name_typed': LineEdit(self.ui.is_assay_nameLE), 'lower_bound': LineEdit(self.ui.is_assay_minLE, restrict_to = 'float'), 'upper_bound': LineEdit(self.ui.is_assay_maxLE, restrict_to = 'float'), 'units': ComboBox(self.ui.is_unitCombo), 'method': ComboBox(self.ui.is_methodCombo), 'dry_basis': CheckBox(self.ui.is_dbCB)}
def label_entries(self): self.basic_entries = \ {'item_id': LineEdit(self.ui.item_numberLE), 'lot_number': LineEdit(self.ui.lot_numberLE), 'vendor': LineEdit(self.ui.vendorLE), 'vendor_lot': LineEdit(self.ui.vendor_lotLE), 'lot_note': PlainText(self.ui.lot_notePT), 'units': ComboBox(self.ui.lot_unitsCombo)} self.receiving_entries = \ {'amount': LineEdit(self.ui.amount_receivedLE, restrict_to = 'float'), 'po': LineEdit(self.ui.receiving_poLE)} self.location_entries = \ {'facility': ComboBox(self.ui.facilityCombo), 'wh_code': LineEdit(self.ui.wh_codeLE)}
def label_entries(self): self.entries = \ {'units': ComboBox(self.ui.is_unitCombo), 'arsenic_max': LineEdit(self.ui.is_asLE, restrict_to = 'float'), 'cadmium_max': LineEdit(self.ui.is_cdLE, restrict_to = 'float'), 'lead_max': LineEdit(self.ui.is_pbLE, restrict_to = 'float'), 'mercury_max': LineEdit(self.ui.is_hgLE, restrict_to = 'float')}
def label_entries(self): self.microbe_entries = \ {'tpc_min': LineEdit(self.ui.is_tpc_minLE, restrict_to = 'int'), 'tpc_max': LineEdit(self.ui.is_tpc_maxLE, restrict_to = 'int'), 'ym_min': LineEdit(self.ui.is_ym_minLE, restrict_to = 'int'), 'ym_max': LineEdit(self.ui.is_ym_maxLE, restrict_to = 'int')} self.pathogen_entries = \ {'ecoli': ComboBox(self.ui.is_ecoliCombo, combo_type = 'true_false_none'), 'salmonella': ComboBox(self.ui.is_salmonellaCombo, combo_type = 'true_false_none'), 'staph': ComboBox(self.ui.is_staphCombo, combo_type = 'true_false_none')} for key, combo in self.pathogen_entries.items(): combo.set_true_false_indices(true_index=2, false_index=0, none_index=1)
def label_entries(self): self.item_entries = \ {'id': LineEdit(self.ui.is_item_numberLE, restrict_to = 'int'), 'name': LineEdit(self.ui.is_item_nameLE), 'note': PlainText(self.ui.is_item_notePT), 'fridge': CheckBox(self.ui.is_fridgeCB)} self.allergen_entries = \ {'egg': CheckBox(self.ui.is_eggCB), 'peanut': CheckBox(self.ui.is_peanutCB), 'soy': CheckBox(self.ui.is_soyCB), 'shellfish': CheckBox(self.ui.is_shellfishCB), 'fish': CheckBox(self.ui.is_fishCB), 'wheat': CheckBox(self.ui.is_wheatCB), 'milk': CheckBox(self.ui.is_milkCB), 'treenut': CheckBox(self.ui.is_treenutCB)} self.hm_entries = \ {'units': ComboBox(self.ui.is_unitCombo), 'arsenic_max': LineEdit(self.ui.is_asLE, restrict_to = 'float'), 'cadmium_max': LineEdit(self.ui.is_cdLE, restrict_to = 'float'), 'lead_max': LineEdit(self.ui.is_pbLE, restrict_to = 'float'), 'mercury_max': LineEdit(self.ui.is_hgLE, restrict_to = 'float')} self.microbe_entries = \ {'tpc_min': LineEdit(self.ui.is_tpc_minLE, restrict_to = 'int'), 'tpc_max': LineEdit(self.ui.is_tpc_maxLE, restrict_to = 'int'), 'ym_min': LineEdit(self.ui.is_ym_minLE, restrict_to = 'int'), 'ym_max': LineEdit(self.ui.is_ym_maxLE, restrict_to = 'int')} self.pathogen_entries = \ {'ecoli': ComboBox(self.ui.is_ecoliCombo, combo_type = 'true_false_none'), 'salmonella': ComboBox(self.ui.is_salmonellaCombo, combo_type = 'true_false_none'), 'staph': ComboBox(self.ui.is_staphCombo, combo_type = 'true_false_none')} for key, patho in self.pathogen_entries.items(): patho.set_true_false_indices(true_index=2, false_index=0, none_index=1)