此功能已进入试用一周了,都没有问题,奇怪的是今天出现了问题??
复制代码 代码如下:
AjaxRequestObj.createEqStatusParameter=function() {
if (eqStatusArray.length < 1) {
return;
}
var paramNameArray = new Array();
var paramValueArray = new Array();
//取状态数组
for (var index = 0, step = eqStatusArray.length; index < step; index++) {
var tempEqStatusObj = eqStatusArray[index];
paramNameArray.push(tempEqStatusObj.eqCode + "`" + tempEqStatusObj.opDateTime);
paramValueArray.push(tempEqStatusObj.status);
}
//分解、生成请求串。
var paramStr = "";
paramStr = paramStr.concat("eqStatusNames=").concat(encodeURIComponent(paramNameArray.join(","))).concat("&");
paramStr = paramStr.concat("eqStatusValues=").concat(encodeURIComponent(paramValueArray.join("`")));
return paramStr;
};
复制代码 代码如下:
if ("doQueryRequest".equals(actParam)) {
EquipUtils equipUtilsObj = EquipUtils.getInstance();
//取查询参数、拼接
equipStatusMgrObj.setEquipCondition(equipUtilsObj.createEquipFilter(request));
equipStatusMgrObj.setEquipStatusCondition(equipUtilsObj.getEquipStatusDate(request));
//设备信息
List<DynaBean> equipArray = equipStatusMgrObj.queryEquip(null);
//设备状态
Map<String, Map<String, String>> equipStatusMapping =
equipStatusMgrObj.queryEquipState4Map(equipArray, null);
sessionObj.setAttribute("paginationEntity", equipStatusMgrObj.getPaginationEntity());
sessionObj.setAttribute("equipCondition", equipStatusMgrObj.getEquipCondition());
sessionObj.setAttribute("eqStatusCondition", equipStatusMgrObj.getEquipStatusCondition());
request.setAttribute("equipList", equipArray);
request.setAttribute("dateList", equipStatusMapping);
try {
request.getRequestDispatcher("/eq/detectPoint/InnerEqStatusRefresh.jsp").forward(request, response);
} catch (Exception e) {
e.printStackTrace();
}
} else if ("getPageToolBar".equals(actParam)) {
PaginationEntity pEntity = (PaginationEntity) sessionObj.getAttribute("paginationEntity");
String tempStr = pEntity.getPaginationTool();
OutputStream out;
try {
response.setContentType("text/html;charset=UTF-8");
out = response.getOutputStream();
out.write(tempStr.getBytes("UTF-8"));
out.flush();
out.close();
} catch (IOException e) {
e.printStackTrace();
}
}
新闻热点
疑难解答
图片精选