def __init__(self, queries, store_func, parent, com_store): self.queries = queries self.type = "External" self.entries = { "equipment_calibration_entry_eal": 0, "equipment_calibration_entry_company": 1 } setup = { "glade_file": "Glade/equipment_calibration.glade", "widget_id": "equipment_calibration_page", "widget_scroll_id": "equipment_calibration_scroll_window", "widget_calander_id": "equipment_calibration_calendar_date", "timer_query": queries.calibration["select"], "store_setup": Gtk.ListStore(str, str, str, str, str, str, str), "column_numbers": (0, 1, 2, 3, 4, 5, 6), "column_headings": [ "EAL Number", "Calibration Company", "Calibration Type", "Calibration Date", "Calibration Recall", "Calibration Expiry", "Calibration Certificate" ], "entries": self.entries, "file_chooser": "equipment_calibration_file_certificate" } Widget.__init__(self, store_func, parent, queries, **setup) Function.entry_completion(self, com_store, "equipment_calibration_entry_eal", 0)
def __init__(self, queries, store_func, parent, com_store, proc_store): self.queries = queries self.entries = { "equipment_log_entry_eal": 0, "equipment_log_entry_from": 2, "equipment_log_entry_procedure": 3, "equipment_log_entry_message": 4 } setup = { "glade_file": "Glade/equipment_log.glade", "widget_id": "equipment_log_page", "widget_scroll_id": "equipment_log_scroll_window", "widget_calander_id": "equipment_log_calendar_date", "timer_query": queries.logbook["select"], "store_setup": Gtk.ListStore(str, str, str, str, str), "column_numbers": (0, 1, 2, 3, 4), "column_headings": ["EAL Number", "Log Date", "Location", "Documents", "Message"], "entries": self.entries, "file_chooser": None } Widget.__init__(self, store_func, parent, queries, **setup) Function.entry_completion(self, com_store, "equipment_log_entry_eal", 0) Function.entry_completion(self, proc_store, "equipment_log_entry_procedure", 2)
def __init__(self, queries, store_func, parent, com_store, proc_store): self.queries = queries self.entries = { "equipment_cleanliness_entry_eal": 0, "equipment_cleanliness_entry_pco": 1, "equipment_cleanliness_entry_dew": 2, "equipment_cleanliness_entry_procedure": 3, "equipment_cleanliness_entry_location": 7 } self.result = "Pass" setup = { "glade_file": "Glade/equipment_cleanliness.glade", "widget_id": "equipment_cleanliness_page", "widget_scroll_id": "equipment_cleanliness_scroll_window", "widget_calander_id": "equipment_cleanliness_calendar_date", "timer_query": queries.cleanliness["select"], "store_setup": Gtk.ListStore(str, str, str, str, str, str, str, str, str, str), "column_numbers": (0, 1, 2, 3, 4, 5, 6, 7, 8, 9), "column_headings": [ "EAL Number", "Particle Counter Number", "Dew Point Meter", "Procedure", "Cleanliness & Dryness Date", "Cleanliness & Dryness Recall", "Cleanliness & Dryness Expiry", "Test Location", "Result", "Proof Certificate" ], "entries": self.entries, "file_chooser": "equipment_cleanliness_file_certificate" } Widget.__init__(self, store_func, parent, queries, **setup) Function.entry_completion(self, com_store, "equipment_cleanliness_entry_eal", 0) Function.entry_completion(self, com_store, "equipment_cleanliness_entry_pco", 0) Function.entry_completion(self, com_store, "equipment_cleanliness_entry_dew", 0) Function.entry_completion(self, proc_store, "equipment_cleanliness_entry_procedure", 2)
def __init__(self, queries, store_func, parent): self.entries = { "equipment_add_entry_eal": 0, "equipment_add_entry_type": 1, "equipment_add_entry_manufacturer": 2, "equipment_add_entry_model": 3, "equipment_add_entry_pressure": 4, "equipment_add_entry_serial": 5 } self.queries = queries setup = { "glade_file": "Glade/equipment_add.glade", "widget_id": "equipment_add_page", "widget_scroll_id": "equipment_add_scroll_window", "widget_calander_id": None, "timer_query": queries.equipment["select"], "store_setup": Gtk.ListStore(str, str, str, str, int, str), "column_numbers": (0, 1, 2, 3, 4, 5), "column_headings": [ "EAL Number", "Equipment Type", "Manufacturer", "Model", "Pressure", "Serial Number" ], "entries": self.entries, "file_chooser": None } Widget.__init__(self, store_func, parent, queries, **setup) Function.entry_completion(self, self.store, "equipment_add_entry_eal", 0) Function.entry_completion(self, self.store, "equipment_add_entry_type", 1) Function.entry_completion(self, self.store, "equipment_add_entry_manufacturer", 2) Function.entry_completion(self, self.store, "equipment_add_entry_model", 3)
def __init__(self, queries, store_func, parent, com_store, proc_store): self.queries = queries self.entries = { "equipment_proof_entry_eal": 0, "equipment_proof_entry_bar": 1, "equipment_proof_entry_duration": 2, "equipment_proof_entry_pt": 3, "equipment_proof_entry_procedure": 4, "equipment_proof_entry_location": 8 } self.result = "Pass" setup = { "glade_file": "Glade/equipment_proof.glade", "widget_id": "equipment_proof_page", "widget_scroll_id": "equipment_proof_scroll_window", "widget_calander_id": "equipment_proof_calendar_date", "timer_query": queries.proof["select"], "store_setup": Gtk.ListStore(str, int, int, str, str, str, str, str, str, str, str), "column_numbers": (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10), "column_headings": [ "EAL Number", "Test Pressure", "Test Duration", "Transducer Number", "Procedure", "Proof Date", "Proof Recall", "Proof Expiry", "Test Location", "Result", "Proof Certificate" ], "entries": self.entries, "file_chooser": "equipment_proof_file_certificate" } Widget.__init__(self, store_func, parent, queries, **setup) Function.entry_completion(self, com_store, "equipment_proof_entry_eal", 0) Function.entry_completion(self, com_store, "equipment_proof_entry_pt", 0) Function.entry_completion(self, proc_store, "equipment_proof_entry_procedure", 2)
def __init__(self, queries, store_func, parent): self.queries = queries self.entries = { "documents_add_entry_for": 0, "documents_add_entry_ref": 1, "documents_add_entry_name": 2, "documents_add_entry_issue": 3, "documents_add_entry_reason": 4 } setup = { "glade_file": "Glade/documents.glade", "widget_id": "documents_add_page", "widget_scroll_id": "documents_add_scroll_window", "widget_calander_id": "documents_add_calendar_date", "timer_query": queries.documents["select"], "store_setup": Gtk.ListStore(str, str, str, int, str, str, str), "column_numbers": (0, 1, 2, 3, 4, 5, 6), "column_headings": [ "Client", "Reference", "Name", "Issue", "Reason for Issue", "Date", "File" ], "entries": self.entries, "file_chooser": "documents_add_file_path" } Widget.__init__(self, store_func, parent, queries, **setup) Function.entry_completion(self, self.store, "documents_add_entry_for", 0) Function.entry_completion(self, self.store, "documents_add_entry_ref", 1) Function.entry_completion(self, self.store, "documents_add_entry_name", 2)