public void upMatter() { try { if (getMatterId() != null) { onlineOfficeFac.upMatter(getMatterId()); Struts2Util.renderJson(JSONUtil.toJSON("true")); } else { Struts2Util.renderJson(JSONUtil.toJSON("false")); } } catch (Exception e) { Struts2Util.renderJson(JSONUtil.toJSON("false")); } }
@Override protected void deleteOperator(Integer pk) { try { onlineOfficeFac.delMatter(pk); } catch (Exception e) { Struts2Util.renderJson(JSONUtil.toJSON("false")); } }
public void findZoningCodeAll() { List<ZoningCode> zoningCodes = particularFac.findZoningCodeAll(); if (zoningCodes != null) { List<ComboBoxString> comboBoxStrings = new ArrayList<ComboBoxString>(); ComboBoxString comboBox = null; for (ZoningCode zoningCode : zoningCodes) { comboBox = new ComboBoxString(); comboBox.setId(zoningCode.getCode()); comboBox.setText(zoningCode.getName()); if (getProjectBasicId() != null) { Boolean isEntity = particularFac.findZoningCodeSelected(getProjectBasicId(), zoningCode.getCode()); if (isEntity) comboBox.setSelected(true); } comboBoxStrings.add(comboBox); } Struts2Util.renderJson(JSONUtil.toJSON(comboBoxStrings.toArray(new ComboBoxString[0]))); } }
/*========================== 政民互动统计 =================================*/ public void advisoryTable() { List<TreeGridNode> nodes = visitFac.findAdvisory(getStartDate(), getEndDate()); Struts2Util.renderJson(JSONUtil.toJSON(nodes)); }
/*========================== 政民互动统计 =================================*/ public void interactiveTable() { List<TreeGridNode> nodes = visitFac.findInteractive(getStartDate(), getEndDate()); Struts2Util.renderJson(JSONUtil.toJSON(nodes)); }