/** * 清空回收站中的品牌 * * @return */ public String clean() { try { brandManager.clean(id); this.json = "{'result':0,'message':'删除成功'}"; } catch (RuntimeException e) { this.json = "{'result':1,'message':'删除失败'}"; } return this.JSON_MESSAGE; }
public String save() { if (logo != null) { if (FileUtil.isAllowUp(logoFileName)) { } else { this.msgs.add("不允许上传的文件格式,请上传gif,jpg,bmp格式文件。"); return this.MESSAGE; } } brand.setDisabled(0); brand.setFile(this.logo); brand.setFileFileName(this.logoFileName); brandManager.add(brand); this.msgs.add("品牌添加成功"); this.urls.put("品牌列表", "brand!list.do"); return this.MESSAGE; }
// 后台品牌列表 public String list() { this.webpage = brandManager.list(order, this.getPage(), this.getPageSize()); return "list"; }