function exceptCityList(){
var cityIds = '';
var rows = $('#cityDataGrid').datagrid('getSelections');
for (var index = 0; index < rows.length; index++) {
cityIds+=rows[index].id+",";
}
var link=getRootPath()+'/statis/supportcity/exceptCityXml/'+cityIds;
window.open(link);
return false;
}
/**
* This
* @param response
* @param cityIds
* @throws FileNotFoundException
*/
@RequestMapping(value ="/exceptCityXml/{cityIds}")
public void exceptCityXml(HttpServletResponse response,@PathVariable("cityIds") String cityIds)throws FileNotFoundException {
List
cityIDList = new ArrayList();
String[] ids = cityIds.split(",");
for (String string : ids) {
if (!string.isEmpty() && !"0".equals(string)) {
cityIDList.add(Integer.parseInt(string));
}
}
Element root = new Element("plist");
root.setAttribute("version","1.0");
Element array = new Element("array");
Document doc = new Document(root);
DocType docType = new DocType("plist");
docType.setPublicID("-//Apple//DTD PLIST 1.0//EN");
docType.setSystemID("http://www.apple.com/DTDs/PropertyList-1.0.dtd");
doc.setDocType(docType);
List