|
java:
//查询任务计划列表
public static Table queryPMYuSXMRWBGTT(){
String mssql =" select distinct PM_XMXXB.fXMBH as fXMBH,PM_XMXXB.fXMMC as fXMMC,PM_YuSXMRWBGTT.fID,PM_YuSXMRWBGTT.tfXiangMXXBID as tfXiangMXXBID,PM_YuSXMRWBGTT.version as version,PM_XMRWGTT.banBH as banBH"+
" from PM_YuSXMRWBGTT "+
" join PM_XMXXB on PM_YuSXMRWBGTT.tfXiangMXXBID = PM_XMXXB.fid "+
" join PM_XMRWGTT on PM_YuSXMRWBGTT.fid = PM_XMRWGTT.tfXiangMRWID " ;
System.out.println(mssql);
HashMap<String,String> sqlMap = new HashMap<String,String>();
sqlMap.put(SQL.DEFAULT_DB_NAME,mssql);
sqlMap.put(DatabaseProduct.MYSQL.name(),mssql);
sqlMap.put(DatabaseProduct.SYBASE.name(),mssql);
Table t = SQL.select(sqlMap,null,"/PM/YuSGL/data");
return t;
}
js:
mainActivity.trigger2Click = function(event){
debugger
var param = new justep.Request.ActionParam();
justep.Request.sendBizRequest2({
dataType : "json",
action : "queryPMYuSXMRWBGTTAction",//查询任务计划列表
parameters : param,
callback : function(result) {
if (result.state) {
debugger;
alert(111);
var xzz = result.response;
var xxx = justep.xbl("dataMain2");
justep.xbl("dataMain2").loadData(result.response);
} else {
throw new Error("调用失败!" + result.response.message);
}
}
});
};
grid组件无法加载出来数据。
|
|