def save_equipment(var, self): sql.Company_SQL().save_edit_equipment(var, self) M.app.show_frame(Ap.Main) self.make_entry.delete(0, END) self.model_entry.delete(0, END) self.serial_entry.delete(0, END) self.number_entry.delete(0, END) var.edit_txt.delete(1.0, END)
def save_company(var, self): sql.Company_SQL().save_edit_customer(var, self) M.app.show_frame(Ap.Main) self.name_entry.delete(0, END) self.address_entry.delete(0, END) self.city_entry.delete(0, END) self.state_entry.delete(0, END) self.phone_entry.delete(0, END)
def load_lb(var, event, self): var.new_customer_lb.delete(*var.new_customer_lb.get_children()) sql.Company_SQL().load_company_lb(var, self) var.truck_lb.delete(*var.truck_lb.get_children()) var.edit_company_button.config(state='disabled') var.add_truck_button.config(state='disabled') var.view_information_button.config(state='disabled') var.delete_truck_button.config(state='disabled') var.truck_entry.config(state='disabled')
def edit_company(var, self): sql.Company_SQL().load_company_field(var, self) M.app.show_frame(Ap.Edit_Company)
def sort_truck(var, self, column): var.truck_lb.delete(*var.truck_lb.get_children()) var.view_information_button.config(state='disabled') var.delete_truck_button.config(state='disabled') sql.Company_SQL().sort_truck_lb(var, self, column)
def sort_status(var, self, column): var.new_customer_lb.delete(*var.new_customer_lb.get_children()) var.edit_company_button.config(state='disabled') var.add_truck_button.config(state='disabled') var.truck_entry.config(state='disabled') sql.Company_SQL().sort_company_lb(var, self, column)
def customer_lb_click(var, event, self): var.truck_lb.delete(*var.truck_lb.get_children()) sql.Company_SQL().load_equipment_lb(var, self) var.edit_company_button.config(state='normal') var.add_truck_button.config(state='normal') var.truck_entry.config(state='normal')
def truck_entry_search(var, self, *args): var.truck_lb.delete(*var.truck_lb.get_children()) sql.Company_SQL().search_truck_entry(var, self) var.view_information_button.config(state='disabled') var.delete_truck_button.config(state='disabled')
def company_entry_search(var, self, *args): var.new_customer_lb.delete(*var.new_customer_lb.get_children()) sql.Company_SQL().search_company_entry(var, self) var.edit_company_button.config(state='disabled') var.add_truck_button.config(state='disabled') var.truck_entry.config(state='disabled')
def remove_equipment(var, self): sql.Company_SQL().remove_equipment(var, self) var.truck_lb.delete(*var.truck_lb.get_children()) sql.Company_SQL().load_equipment_lb(var, self) var.view_information_button.config(state='disabled') var.delete_truck_button.config(state='disabled')
def view_equipment(var, self): sql.Company_SQL().load_equipment_field(var, self) M.app.show_frame(Ap.Edit_Information)