Пример #1
0
 /*    */ @RequestMapping({"/board/list.jsp"})
 /*    */ public String list(
     Integer pageNo,
     Integer count,
     HttpServletRequest request,
     HttpServletResponse response,
     ModelMap model)
       /*    */ {
   /* 69 */ Site site = ContextTools.getSite(request);
   /* 70 */ Page page =
       this.service.getPage(
           null,
           site.getId(),
           Boolean.valueOf(true),
           null,
           null,
           /* 71 */ pageNo.intValue(),
           count.intValue());
   /* 72 */ model.addAttribute("page", page);
   /* 73 */ ViewTools.frontData(request, model, site);
   /* 74 */ response.setHeader("Cache-Control", "no-cache");
   /* 75 */ response.setContentType("text/json;charset=UTF-8");
   /* 76 */ return ViewTools.getTplPath(
       null, site.getSolutionPath(), /* 77 */ "common/tags", "board_list");
   /*    */ }
Пример #2
0
 /* 36 */ @RequiresPermissions({"admin:workflow:list"})
 /*    */ @RequestMapping({"/workflow/v_list.do"})
 /*    */ public String list(Integer pageNo, HttpServletRequest request, ModelMap model) {
   Site site = ContextTools.getSite(request);
   /* 37 */ List list = this.roleService.getListBySite(site.getId());
   /* 38 */ model.addAttribute("list", list);
   /* 39 */ return "docCenter/config/workflow/list";
 }
Пример #3
0
 /*    */ @RequestMapping({"/visitViews.jsp"})
 /*    */ public void visitViews(HttpServletRequest request, HttpServletResponse response)
       /*    */ {
   /* 21 */ Site site = ContextTools.getSite(request);
   /* 22 */ String url = ServicesUtils.getQueryParam(request, "url");
   /* 23 */ String ip = ServicesUtils.getIpAddr(request);
   /* 24 */ String cookie = ContextTools.getIdentityCookie(request, response);
   /* 25 */ this.statisticsService.save(site, url, ip, cookie);
   /*    */ }
Пример #4
0
 /*    */ @RequiresPermissions({"admin:workflow:save"})
 /*    */ @RequestMapping({"/workflow/o_save.do"})
 /*    */ public String save(
     WorkFlow bean, Integer[] step, Integer[] roleIds, HttpServletRequest request, ModelMap model)
       /*    */ {
   /* 46 */ Site site = ContextTools.getSite(request);
   /* 47 */ bean = this.service.save(bean, site, step, roleIds);
   /* 48 */ log.info("save WorkFlow id={}", bean.getId());
   /* 49 */ return "redirect:v_list.do";
   /*    */ }
Пример #5
0
 /*    */ @RequestMapping(
     value = {"/messageboard.jsp"},
     method = {org.springframework.web.bind.annotation.RequestMethod.GET})
 /*    */ public String input(HttpServletRequest request, ModelMap model) /*    */ {
   /* 42 */ Site site = ContextTools.getSite(request);
   /* 43 */ List typeList = this.typeService.getList(site.getId(), null, /* 44 */ null);
   /* 45 */ model.addAttribute("typeList", typeList);
   /* 46 */ ViewTools.frontData(request, model, site);
   /* 47 */ return ViewTools.getTplPath(
       request, site.getSolutionPath(), /* 48 */ "extrafunc/board", "tpl.boardInput");
   /*    */ }
Пример #6
0
 /*    */ @RequiresPermissions({"admin:keyword:save"})
 /*    */ @RequestMapping({"/keyword/o_save.do"})
 /*    */ public String save(Keyword bean, HttpServletRequest request, ModelMap model) {
   /* 38 */ Site site = ContextTools.getSite(request);
   /* 39 */ bean = this.service.save(bean, site);
   /* 40 */ log.info("save Keyword id={}", bean.getId());
   /* 41 */ this.logService.operating(
       request, "添加关键字", "id=" + bean.getId() + ";name=" + /* 42 */ bean.getName());
   /* 43 */ model.addAttribute("msg", "关键字添加成功!");
   /* 44 */ return list();
   /*    */ }
Пример #7
0
 /*    */ @RequestMapping({"/workflow/o_ajax_find.do"})
 /*    */ public String workflowFind(
     Integer id, HttpServletRequest request, HttpServletResponse response, ModelMap model)
       /*    */ {
   /* 92 */ Site site = ContextTools.getSite(request);
   /* 93 */ WorkFlow wf = this.service.findById(id);
   /* 94 */ List list = this.roleService.getListBySite(site.getId());
   /* 95 */ model.addAttribute("list", list);
   /* 96 */ model.addAttribute("wf", wf);
   /* 97 */ response.setHeader("Cache-Control", "no-cache");
   /* 98 */ response.setContentType("text/json;charset=UTF-8");
   /* 99 */ return "docCenter/config/workflow/stepData";
   /*    */ }
Пример #8
0
 /*    */ @RequestMapping({"/keyword/jsonData.do"})
 /*    */ public String dataPageByJosn(
     String name,
     Integer departId,
     String sortname,
     String sortorder,
     HttpServletRequest request,
     HttpServletResponse response,
     ModelMap model)
       /*    */ {
   /* 62 */ Site site = ContextTools.getSite(request);
   /* 63 */ List list =
       this.service.getListBySiteId(site.getId(), false, /* 64 */ false, sortname, sortorder);
   /* 65 */ model.addAttribute("list", list);
   /* 66 */ response.setHeader("Cache-Control", "no-cache");
   /* 67 */ response.setContentType("text/json;charset=UTF-8");
   /* 68 */ return "dataCenter/docData/keyword/listdata";
   /*    */ }
Пример #9
0
 /*    */ @RequestMapping({"/workflow/jsonData.do"})
 /*    */ public String dataPageByJosn(
     String sortname,
     String sortorder,
     Integer page,
     Integer pagesize,
     HttpServletRequest request,
     HttpServletResponse response,
     ModelMap model)
       /*    */ {
   /* 65 */ Site site = ContextTools.getSite(request);
   /* 66 */ Page p =
       this.service.getPage(
           site.getId(), sortname, /* 67 */ sortorder, page.intValue(), pagesize.intValue());
   /* 68 */ model.addAttribute("p", p);
   /* 69 */ response.setHeader("Cache-Control", "no-cache");
   /* 70 */ response.setContentType("text/json;charset=UTF-8");
   /* 71 */ return "docCenter/config/workflow/dataJson";
   /*    */ }
Пример #10
0
 @RequestMapping(
     value = {"/messageboard.jsp"},
     method = {org.springframework.web.bind.annotation.RequestMethod.POST})
 public void submit(
     String title,
     String name,
     String mobile,
     String email,
     String address,
     String zipcode,
     Integer typeId,
     String content,
     HttpServletRequest request,
     HttpServletResponse response)
     throws JSONException {
   Site site = ContextTools.getSite(request);
   JSONObject json = new JSONObject();
   this.service.save(title, name, mobile, email, address, zipcode, typeId, content, site);
   json.put("success", true);
   json.put("status", 1);
   ResponseUtils.renderJson(response, json.toString());
 }