示例#1
0
 @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;
 }
示例#2
0
 /**
  * 本部门的领用申请
  *
  * @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;
 }
示例#3
0
 public String update() {
   lyff = lyffService.update(lyff);
   if (lyff.getLylx().getZdbm().equals(LylxDto.LYLX_DEPT)) {
     return "dept";
   } else {
     return "person";
   }
 }
示例#4
0
 public String remove() {
   try {
     lyffService.remove(lyff);
     optSuccess();
   } catch (Exception e) {
     e.printStackTrace();
     optFailure();
   }
   return SUCCESS;
 }
示例#5
0
 public String tj() {
   try {
     if (null == lyffService.tj(lyff)) {
       optFailure("请先添加领用明细再提交申请!");
     } else {
       optSuccess();
     }
   } catch (Exception e) {
     e.printStackTrace();
     optFailure();
   }
   return SUCCESS;
 }
示例#6
0
 public String view() {
   lyff = lyffService.get(lyff);
   return SUCCESS;
 }
示例#7
0
 public String updateForZx() {
   lyffService.update(lyff);
   return SUCCESS;
 }
示例#8
0
 public String editForZx() {
   lyff = lyffService.get(lyff);
   lyff.setLyzt(LyztDto.getwly());
   return SUCCESS;
 }
示例#9
0
 public String save() {
   lyff.setSqr(getCurrentRyxx());
   lyffService.save(lyff);
   return SUCCESS;
 }