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)
 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
Exemple #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
 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
 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)
     return self.stores_admin_service.create_stores(
         self.session, form_dict, Stores, self.ARGS, request.files, self.SPECIAL_ARGS
     )
 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
 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)
 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
Exemple #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)
 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
Exemple #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)
 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)
 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)
Exemple #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
 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)
 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
Exemple #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)
 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
Exemple #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
 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)
Exemple #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)
 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)
     return self.brand_admin_service.update_brand(self.session, form_dict,
                                                  model, self.ARGS,
                                                  self.SPECIAL_ARGS)
 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