コード例 #1
0
ファイル: ResumeAct.java プロジェクト: justice824/cms
 /**
  * 简历提交页
  *
  * @param request
  * @param response
  * @param model
  * @return
  * @throws IOException
  */
 @RequestMapping(value = "/member/resume.jspx", method = RequestMethod.POST)
 public String resumeSubmit(
     CmsUserResume resume,
     CmsUserExt ext,
     String nextUrl,
     HttpServletRequest request,
     HttpServletResponse response,
     ModelMap model)
     throws IOException {
   CmsSite site = CmsUtils.getSite(request);
   CmsUser user = CmsUtils.getUser(request);
   FrontUtils.frontData(request, model, site);
   MemberConfig mcfg = site.getConfig().getMemberConfig();
   // 没有开启会员功能
   if (!mcfg.isMemberOn()) {
     return FrontUtils.showMessage(request, model, "member.memberClose");
   }
   if (user == null) {
     return FrontUtils.showLogin(request, model, site);
   }
   ext.setId(user.getId());
   cmsUserExtMng.update(ext, user);
   resume.setId(user.getId());
   cmsUserResumeMng.update(resume, user);
   log.info("update CmsUserExt success. id={}", user.getId());
   return FrontUtils.showSuccess(request, model, nextUrl);
 }
コード例 #2
0
ファイル: ResumeAct.java プロジェクト: justice824/cms
 @RequestMapping(value = "/member/jobapply_delete.jspx")
 public String delete(
     Integer[] ids,
     HttpServletRequest request,
     String nextUrl,
     HttpServletResponse response,
     ModelMap model) {
   CmsSite site = CmsUtils.getSite(request);
   CmsUser user = CmsUtils.getUser(request);
   FrontUtils.frontData(request, model, site);
   MemberConfig mcfg = site.getConfig().getMemberConfig();
   // 没有开启会员功能
   if (!mcfg.isMemberOn()) {
     return FrontUtils.showMessage(request, model, "member.memberClose");
   }
   if (user == null) {
     return FrontUtils.showLogin(request, model, site);
   }
   WebErrors errors = validateDelete(ids, site, user, request);
   if (errors.hasErrors()) {
     return FrontUtils.showError(request, response, model, errors);
   }
   CmsJobApply[] arr = jobApplyMng.deleteByIds(ids);
   log.info("member contribute delete Content success. ids={}", StringUtils.join(arr, ","));
   return FrontUtils.showSuccess(request, model, nextUrl);
 }
コード例 #3
0
ファイル: LoginAct.java プロジェクト: justice824/cms
 /**
  * 客户端包含
  *
  * @param request
  * @param model
  * @return
  */
 @RequestMapping(value = "/login_csi.jspx")
 public String csi(HttpServletRequest request, ModelMap model) {
   CmsSite site = CmsUtils.getSite(request);
   // 将request中所有参数
   model.putAll(RequestUtils.getQueryParams(request));
   FrontUtils.frontData(request, model, site);
   return FrontUtils.getTplPath(request, site.getSolutionPath(), TPLDIR_CSI, LOGIN_CSI);
 }
コード例 #4
0
ファイル: CsiCustomAct.java プロジェクト: justice824/cms
 /**
  * 解析至自定义模板页
  *
  * @param tpl 自定义模板名称
  * @param request
  * @param response
  * @param model
  * @return
  */
 @RequestMapping(value = "/csi_custom.jspx")
 public String custom(
     String tpl, HttpServletRequest request, HttpServletResponse response, ModelMap model) {
   log.debug("visit csi custom template: {}", tpl);
   CmsSite site = CmsUtils.getSite(request);
   // 将request中所有参数保存至model中。
   model.putAll(RequestUtils.getQueryParams(request));
   FrontUtils.frontData(request, model, site);
   return FrontUtils.getTplPath(site.getSolutionPath(), TPLDIR_CSI_CUSTOM, tpl);
 }
コード例 #5
0
ファイル: ResumeAct.java プロジェクト: justice824/cms
 /**
  * 简历输入页
  *
  * @param request
  * @param response
  * @param model
  * @return
  */
 @RequestMapping(value = "/member/resume.jspx", method = RequestMethod.GET)
 public String resumeInput(
     HttpServletRequest request, HttpServletResponse response, ModelMap model) {
   CmsSite site = CmsUtils.getSite(request);
   CmsUser user = CmsUtils.getUser(request);
   FrontUtils.frontData(request, model, site);
   MemberConfig mcfg = site.getConfig().getMemberConfig();
   // 没有开启会员功能
   if (!mcfg.isMemberOn()) {
     return FrontUtils.showMessage(request, model, "member.memberClose");
   }
   if (user == null) {
     return FrontUtils.showLogin(request, model, site);
   }
   return FrontUtils.getTplPath(request, site.getSolutionPath(), TPLDIR_MEMBER, MEMBER_RESUME);
 }
コード例 #6
0
ファイル: ResumeAct.java プロジェクト: justice824/cms
 @RequestMapping(value = "/member/myapplys.jspx", method = RequestMethod.GET)
 public String myapplys(
     Integer pageNo, HttpServletRequest request, HttpServletResponse response, ModelMap model) {
   CmsSite site = CmsUtils.getSite(request);
   CmsUser user = CmsUtils.getUser(request);
   FrontUtils.frontData(request, model, site);
   FrontUtils.frontPageData(request, model);
   MemberConfig mcfg = site.getConfig().getMemberConfig();
   // 没有开启会员功能
   if (!mcfg.isMemberOn()) {
     return FrontUtils.showMessage(request, model, "member.memberClose");
   }
   if (user == null) {
     return FrontUtils.showLogin(request, model, site);
   }
   Pagination pagination =
       jobApplyMng.getPage(
           user.getId(), null, null, true, cpn(pageNo), CookieUtils.getPageSize(request));
   model.addAttribute("pagination", pagination);
   return FrontUtils.getTplPath(request, site.getSolutionPath(), TPLDIR_MEMBER, MEMBER_APPLYS);
 }