예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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')
예제 #4
0
 def edit_company(var, self):
     sql.Company_SQL().load_company_field(var, self)
     M.app.show_frame(Ap.Edit_Company)
예제 #5
0
 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)
예제 #6
0
 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)
예제 #7
0
 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')
예제 #8
0
 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')
예제 #9
0
 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')
예제 #10
0
 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')
예제 #11
0
 def view_equipment(var, self):
     sql.Company_SQL().load_equipment_field(var, self)
     M.app.show_frame(Ap.Edit_Information)