public String projectRemove() throws Exception { String id = servletRequest.getParameter("id"); try { projectService.remove(id); } catch (ServiceException e) { LOGGER.error(e.getMessage()); } return SUCCESS; }
private void rejectToEnt(String year) { try { rejectService.updateEditableData(audit, year); } catch (ServiceException e) { // TODO Auto-generated catch block e.printStackTrace(); LOGGER.error(e.getCause() + "rejetc err"); } }
public String index() throws Exception { // UserModel userModel = (UserModel)session.get("USER"); baseModel = new EnterpriseBaseModel(); audit = new EnterpriseAudit(); try { audit.setAuditStatus(EnterpriseAudit.EStatus.Pass.getValue()); audit.setAuditSecondStatus(EnterpriseAudit.EStatus.Reject.getValue()); audit.setAuditType(1); PaginationSupport<EnterpriseAudit> page = auditService.getPageByYear( baseModel, audit, "", null, null, Constants.DefaultPageSize, 0, "priority", true); servletRequest.setAttribute("auditPage", page); } catch (ServiceException e) { LOGGER.debug(e.getMessage()); } return "index"; }
public String projectSave() throws Exception { String id = (String) session.get(BaseAction.BASEIDINSESSION); EnterpriseBaseModel baseModel = eBaseService.get(id); String year; if (baseModel.getEnterpriseStyle() == EnterpriseBaseModel.EStyle.NONE.getValue()) { year = (String) application.get(Constants.OPTION_SDDECLARE_YEAR); year = Integer.parseInt(year) - 1 + ""; } else year = (String) application.get(Constants.OPTION_NDDECLARE_YEAR); project.setDeclareYear(year); project.setBaseModel(baseModel); try { projectService.saveOrUpdate(project); } catch (ServiceException e) { LOGGER.error(e.getMessage()); } return SUCCESS; }
public String get() throws Exception { // UserModel userModel = (UserModel)session.get("USER"); // 查找审批情况 audit.setAuditType(1); audit.setAuditStatus(EnterpriseAudit.EStatus.Pass.getValue()); if (baseModel.getEnterpriseCity() != null && baseModel.getEnterpriseCity() != 0) { // 找到count audit.setAuditSecondStatus(EnterpriseAudit.EStatus.NotPass.getValue()); notPass = auditService.getCount(baseModel, audit); audit.setAuditSecondStatus(EnterpriseAudit.EStatus.Reject.getValue()); notAudit = auditService.getCount(baseModel, audit); audit.setAuditSecondStatus(EnterpriseAudit.EStatus.Pass.getValue()); pass = auditService.getCount(baseModel, audit); servletRequest.setAttribute("enterpriseCity", baseModel.getEnterpriseCity()); } int startIndex = (page - 1) * Constants.DefaultPageSize; try { audit.setAuditStatus(EnterpriseAudit.EStatus.Pass.getValue()); audit.setAuditSecondStatus(EnterpriseAudit.EStatus.Reject.getValue()); audit.setAuditType(1); PaginationSupport<EnterpriseAudit> audits = auditService.getPageByYear( baseModel, audit, "", null, null, Constants.DefaultPageSize, startIndex, "priority", true); servletRequest.setAttribute("auditPage", audits); } catch (ServiceException e) { LOGGER.debug(e.getMessage()); } return "datagrid"; }