コード例 #1
0
ファイル: user.py プロジェクト: KristinStefanova/Python101
 def add_new_repair_hour(self, date, hour):
     return RepairHourController().insert(date, hour)
コード例 #2
0
ファイル: user.py プロジェクト: KristinStefanova/Python101
 def list_all_busy_hours(self):
     return RepairHourController().list_all_busy_hours(self)
コード例 #3
0
ファイル: user.py プロジェクト: KristinStefanova/Python101
 def list_busy_hours(self, date):
     return RepairHourController().list_all_busy_hours_by_date(self, date)
コード例 #4
0
ファイル: user.py プロジェクト: KristinStefanova/Python101
 def delete_repair_hour(self, hour_id):
     return RepairHourController().delete_rapair_hour_for_client(
         hour_id)
コード例 #5
0
ファイル: user.py プロジェクト: KristinStefanova/Python101
 def find_customer_repair_hour_info(self, hour_id):
     return RepairHourController().find_repair_hour_info(hour_id)
コード例 #6
0
ファイル: user.py プロジェクト: KristinStefanova/Python101
 def update_repair_hour(self, hour_id, vehicle=None, service=None):
     return RepairHourController().update_rapair_hour_for_client(
         hour_id, vehicle, service)
コード例 #7
0
ファイル: user.py プロジェクト: KristinStefanova/Python101
 def save_repair_hour(self, hour_id, vehicle_id, service_id):
     return RepairHourController().add_rapair_hour_for_client(
         hour_id, vehicle_id, service_id)
コード例 #8
0
ファイル: user.py プロジェクト: KristinStefanova/Python101
 def list_free_hours(self, date):
     return RepairHourController().list_all_free_hours_by_date(date)
コード例 #9
0
ファイル: user.py プロジェクト: KristinStefanova/Python101
 def list_all_free_hours(self):
     return RepairHourController().list_all_free_hours()
コード例 #10
0
ファイル: user.py プロジェクト: KristinStefanova/Python101
 def update_repair_hour(self, hour_id, new_hour="", new_bill=0):
     return RepairHourController().update_rapair_hour_for_mechanic(
         hour_id, new_hour, new_bill)