Ejemplo n.º 1
0
 def create_model(self, form):
     '''添加集团'''
     form_dict = form_to_dict(form)
     return self.stores_admin_service.create_stores(self.session, form_dict,
                                                    Stores, self.ARGS,
                                                    request.files,
                                                    self.SPECIAL_ARGS)
Ejemplo n.º 2
0
 def update_model(self, form, model):
     '''修改餐厅'''
     form_dict = form_to_dict(form)
     return self.stores_admin_service.update_stores(self.session, form_dict,
                                                    model, self.ARGS,
                                                    request.files,
                                                    self.SPECIAL_ARGS)
 def create_model(self, form):
     form_dict = form_to_dict(form)
     shop_assistant_admin = ShopAssistantAdmin()
     create_success = shop_assistant_admin.create_shop_assistant(
         self.session, form_dict, ShopAssistant, self.ARGS,
         self.SPECIAL_ARGS)
     return create_success
Ejemplo n.º 4
0
 def create_model(self, form):
     form_dict = form_to_dict(form)
     package_service = PackageService()
     sort_list = request.form.getlist('dish_sort_id')
     success = package_service.create_package(self.session, form_dict,
                                              Package, self.ARGS,
                                              self.SPECIAL_ARGS, sort_list)
     return success
Ejemplo n.º 5
0
 def create_model(self, form):
     form_dict = form_to_dict(form)
     success = self.dish_sort_service.create_dish_sort(self.session, form_dict, DishSort, self.ARGS, self.SPECIAL_ARGS)
     return success
Ejemplo n.º 6
0
 def update_model(self, form, model):
     """修改餐厅"""
     form_dict = form_to_dict(form)
     return self.stores_admin_service.update_stores(
         self.session, form_dict, model, self.ARGS, request.files, self.SPECIAL_ARGS
     )
Ejemplo n.º 7
0
 def create_model(self, form):
     """添加集团"""
     form_dict = form_to_dict(form)
     return self.stores_admin_service.create_stores(
         self.session, form_dict, Stores, self.ARGS, request.files, self.SPECIAL_ARGS
     )
Ejemplo n.º 8
0
 def create_model(self, form):
     form_dict = form_to_dict(form)
     package_service = PackageService()
     sort_list = request.form.getlist('dish_sort_id')
     success = package_service.create_package(self.session, form_dict, Package, self.ARGS, self.SPECIAL_ARGS, sort_list)
     return success
Ejemplo n.º 9
0
 def create_model(self, form):
     '''添加集团'''
     form_dict = form_to_dict(form)
     return self.brand_admin_service.create_brand(self.session, form_dict,
                                                  Brand, self.ARGS,
                                                  self.SPECIAL_ARGS)
Ejemplo n.º 10
0
 def update_model(self, form, model):
     form_dict = form_to_dict(form)
     shop_assistant_admin = ShopAssistantAdmin()
     success = shop_assistant_admin.update_shop_assistant(self.session, form_dict, model, self.ARGS, self.SPECIAL_ARGS)
     return success
Ejemplo n.º 11
0
 def update_model(self, form, model):
     form_dict = form_to_dict(form)
     return self.group_admin_service.update_group(self.session, form_dict,
                                                  model, self.ARGS,
                                                  self.SPECIAL_ARGS)
Ejemplo n.º 12
0
 def update_model(self, form, model):
     form_dict = form_to_dict(form)
     success = self.dish_sort_service.update_dish_sort(self.session, form_dict, model, self.ARGS, self.SPECIAL_ARGS)
     return success
Ejemplo n.º 13
0
 def create_model(self, form):
     '''添加集团'''
     form_dict = form_to_dict(form)
     return self.group_admin_service.create_group(self.session, form_dict,
                                                  Group, self.ARGS,
                                                  self.SPECIAL_ARGS)
Ejemplo n.º 14
0
 def update_model(self, form, model):
     '''添加集团'''
     form_dict = form_to_dict(form)
     return self.brand_admin_service.update_brand(self.session, form_dict, model, self.ARGS, self.SPECIAL_ARGS)
Ejemplo n.º 15
0
 def create_model(self, form):
     '''添加集团'''
     form_dict = form_to_dict(form)
     return self.brand_admin_service.create_brand(self.session, form_dict, Brand, self.ARGS, self.SPECIAL_ARGS)
Ejemplo n.º 16
0
 def create_model(self, form):
     form_dict = form_to_dict(form)
     success = self.dish_service.create_dish(self.session, form_dict, Dish, self.ARGS, request.files, self.SPECIAL_ARGS)
     return success
Ejemplo n.º 17
0
 def update_model(self, form, model):
     form_dict = form_to_dict(form)
     package_service = PackageService()
     package_service.update_package(self.session, form_dict, model, self.ARGS, self.SPECIAL_ARGS)
Ejemplo n.º 18
0
 def create_model(self, form):
     form_dict = form_to_dict(form)
     shop_assistant_admin = ShopAssistantAdmin()
     create_success = shop_assistant_admin.create_shop_assistant(self.session, form_dict, ShopAssistant, self.ARGS, self.SPECIAL_ARGS)
     return create_success
Ejemplo n.º 19
0
 def create_model(self, form):
     '''覆盖创建model'''
     form_dict = form_to_dict(form)
     return self.table_type_service.create_table_type(
         self.session, form_dict, QueueSetting, self.ARGS,
         self.SPECIAL_ARGS)
Ejemplo n.º 20
0
 def update_model(self, form, model):
     form_dict = form_to_dict(form)
     success = self.dish_service.update_dish(self.session, form_dict, model,
                                             self.ARGS, request.files,
                                             self.SPECIAL_ARGS)
     return success
Ejemplo n.º 21
0
 def update_model(self, form, model):
     '''覆盖更新model'''
     form_dict = form_to_dict(form)
     return self.table_type_service.update_table_type(
         self.session, form_dict, model, self.ARGS, self.SPECIAL_ARGS)
 def update_model(self, form, model):
     form_dict = form_to_dict(form)
     shop_assistant_admin = ShopAssistantAdmin()
     success = shop_assistant_admin.update_shop_assistant(
         self.session, form_dict, model, self.ARGS, self.SPECIAL_ARGS)
     return success
Ejemplo n.º 23
0
 def create_model(self, form):
     '''覆盖创建model'''
     form_dict = form_to_dict(form)
     return self.table_type_service.create_table_type(self.session, form_dict, QueueSetting, self.ARGS, self.SPECIAL_ARGS)
Ejemplo n.º 24
0
 def update_model(self, form, model):
     form_dict = form_to_dict(form)
     package_service = PackageService()
     package_service.update_package(self.session, form_dict, model,
                                    self.ARGS, self.SPECIAL_ARGS)
Ejemplo n.º 25
0
 def update_model(self, form, model):
     '''覆盖更新model'''
     form_dict = form_to_dict(form)
     return self.table_type_service.update_table_type(self.session, form_dict, model, self.ARGS, self.SPECIAL_ARGS)
Ejemplo n.º 26
0
 def update_model(self, form, model):
     '''添加集团'''
     form_dict = form_to_dict(form)
     return self.brand_admin_service.update_brand(self.session, form_dict,
                                                  model, self.ARGS,
                                                  self.SPECIAL_ARGS)
Ejemplo n.º 27
0
 def create_model(self, form):
     form_dict = form_to_dict(form)
     success = self.dish_sort_service.create_dish_sort(
         self.session, form_dict, DishSort, self.ARGS, self.SPECIAL_ARGS)
     return success