public String list() { /* 55 */ QueryFilter filter = new QueryFilter(getRequest()); /* 56 */ List list = this.archRecTypeService.getAll(filter); /* 59 */ StringBuffer buff = new StringBuffer("{success:true,'totalCounts':") /* 60 */ .append(filter.getPagingBean().getTotalItems()) .append(",result:"); /* 64 */ JSONSerializer serializer = new JSONSerializer(); /* 65 */ buff.append(serializer.exclude(new String[] {"class"}).serialize(list)); /* 66 */ buff.append("}"); /* 68 */ this.jsonString = buff.toString(); /* 70 */ return "success"; }
/* */ public String list() /* */ { /* 53 */ QueryFilter filter = new QueryFilter(getRequest()); /* 54 */ List<HolidayRecord> list = this.holidayRecordService.getAll(filter); /* */ /* 56 */ Type type = new TypeToken<List<HolidayRecord>>() {} /* 56 */.getType(); /* 57 */ StringBuffer buff = new StringBuffer("{success:true,'totalCounts':") /* 58 */ .append(filter.getPagingBean().getTotalItems()) .append(",result:"); /* */ /* 60 */ Gson gson = new GsonBuilder().setDateFormat("yyyy-MM-dd HH:mm:ss").create(); /* 61 */ buff.append(gson.toJson(list, type)); /* 62 */ buff.append("}"); /* */ /* 64 */ this.jsonString = buff.toString(); /* */ /* 66 */ return "success"; /* */ }
public String list() { /* 62 */ QueryFilter filter = new QueryFilter(getRequest()); /* 63 */ List<ArchRecUser> list = this.archRecUserService.getAll(filter); /* 65 */ Type type = new TypeToken<List<ArchRecUser>>() {}/* 65 */ .getType(); /* 66 */ StringBuffer buff = new StringBuffer("{success:true,'totalCounts':") /* 67 */ .append(filter.getPagingBean().getTotalItems()) .append(",result:"); /* 69 */ Gson gson = new Gson(); /* 70 */ buff.append(gson.toJson(list, type)); /* 71 */ buff.append("}"); /* 73 */ this.jsonString = buff.toString(); /* 75 */ return "success"; }
/* */ public String list() /* */ { /* 66 */ QueryFilter filter = new QueryFilter(getRequest()); /* 67 */ String archivesId = getRequest().getParameter("archivesId"); /* 68 */ if ((archivesId != null) && (!"".equals(archivesId))) { /* 69 */ filter.addFilter("Q_archives.archivesId_L_EQ", archivesId); /* */ } /* 71 */ List<ArchivesDoc> list = this.archivesDocService.getAll(filter); /* */ /* 73 */ Type type = new TypeToken<List<ArchivesDoc>>() {}/* 73 */ .getType(); /* 74 */ StringBuffer buff = new StringBuffer("{success:true,'totalCounts':") /* 75 */ .append(filter.getPagingBean().getTotalItems()) .append(",result:"); /* */ /* 77 */ Gson gson = new GsonBuilder().excludeFieldsWithoutExposeAnnotation().create(); /* 78 */ buff.append(gson.toJson(list, type)); /* 79 */ buff.append("}"); /* */ /* 81 */ this.jsonString = buff.toString(); /* */ /* 83 */ return "success"; /* */ }