@SuppressWarnings("unchecked") private String search(String flag) { Map<String, Object> result = lyffService.search(page, lyff, flag); page = (Page) result.get(Constants.RESULT_MAP_PAGE); lyffs = (List<Lyff>) result.get(Constants.RESULT_MAP_LIST); return SUCCESS; }
/** * 本部门的领用申请 * * @return */ @SuppressWarnings("unchecked") public String listDeptSq() { Map<String, Object> result = lyffService.searchByDept(page, lyff, Constants.GZLC_SQ, getCurrentRyxx()); page = (Page) result.get(Constants.RESULT_MAP_PAGE); lyffs = (List<Lyff>) result.get(Constants.RESULT_MAP_LIST); return SUCCESS; }
public String update() { lyff = lyffService.update(lyff); if (lyff.getLylx().getZdbm().equals(LylxDto.LYLX_DEPT)) { return "dept"; } else { return "person"; } }
public String remove() { try { lyffService.remove(lyff); optSuccess(); } catch (Exception e) { e.printStackTrace(); optFailure(); } return SUCCESS; }
public String tj() { try { if (null == lyffService.tj(lyff)) { optFailure("请先添加领用明细再提交申请!"); } else { optSuccess(); } } catch (Exception e) { e.printStackTrace(); optFailure(); } return SUCCESS; }
public String view() { lyff = lyffService.get(lyff); return SUCCESS; }
public String updateForZx() { lyffService.update(lyff); return SUCCESS; }
public String editForZx() { lyff = lyffService.get(lyff); lyff.setLyzt(LyztDto.getwly()); return SUCCESS; }
public String save() { lyff.setSqr(getCurrentRyxx()); lyffService.save(lyff); return SUCCESS; }