//获取Top的数据 rewinjson.client.getTopData = function(method){ new rewinjson.rewinAjax("/gkzq/JSONService/topService.jsp", new rewinjson.tool.parameter("json","","",""), method, "POST", "" ); } //获取Bottom的数据 rewinjson.client.getBottomData = function(method){ new rewinjson.rewinAjax("/gkzq/JSONService/bottomService.jsp", new rewinjson.tool.parameter("json","","",""), method, "POST", "" ); } //获取Left的数据 rewinjson.client.getLeftData = function(method,classid){ //alert("classid = "+classid); new rewinjson.rewinAjax("JSONService/leftService.jsp", new rewinjson.tool.parameter("json","classid="+classid,"",""), method, "POST", "" ); } //获取右侧信息详情的数据 rewinjson.client.getInfoDetailData = function(method,classid){ //alert("classid = "+classid); new rewinjson.rewinAjax("JSONService/infoDetail.jsp", new rewinjson.tool.parameter("style","classid="+classid,"",""), method, "POST", "" ); } var jsonStatic = 100; //在静态页面转换中设置的条数,要一致这里 var isfrom = true; //表示数据来自静态页面 rewinjson.client.notFund = function(objName,method,param){ isfrom = false; new rewinjson.rewinAjax("JSONService/rewinJsonInfoListMore.jsp", param, method, "POST", objName.id ); } //获取list的数据 rewinjson.client.getListData = function(objId,classid,method,pageIndex,param){ //alert("classid = "+classid); var rewinjson_divnum = objId.substring(objId.lastIndexOf("_")+1); if(!isNaN(rewinjson_divnum)){ //alert("rewinjson_divnum = "+rewinjson_divnum); var nowCount = pageIndex*(parseInt(rewinjson_divnum)); //alert(nowCount+"-----"+jsonStatic)//数据量 //if(nowCount>jsonStatic){//需要从动态页面获取 if(true){//一直从动态页面获取 isfrom = false; new rewinjson.rewinAjax("JSONService/rewinJsonInfoListMore.jsp", new rewinjson.tool.parameter("json","classid="+classid+"&pageIndex="+pageIndex,"",""), method, "POST", objId ); }else{//从静态文件中获取 isfrom = true; new rewinjson.rewinAjax("/classHTML/"+classid+".html", new rewinjson.tool.parameter("json","classid="+classid+"&pageIndex="+pageIndex,"",""), method, "POST", objId, rewinjson.client.notFund ); } }else{ return; } } //非信息、并带有样式的AJAX处理方法; rewinjson.client.StyleText = function (repText,divID){ //alert(repText); if(repText != null && repText.length > 0){ repText = repText.trim();//去掉二头空格 repText = repText.replaceAll("\r\n",""); divID.innerHTML = repText; } } //显示翻页信息 rewinjson.client.FenYe = function (pageIndex,totalCounts,pageSize,class_id){ //alert("---------------pageIndex------"+pageIndex+"--totalCounts-"+totalCounts+"--pageSize-"+pageSize+"---totalPages-"+totalPages+"---classid-"+class_id); //new rewinjson.tool.parameter("style","pageIndex="+pageIndex+"&totalCounts="+totalCounts+"&pageSize="+pageSize+"&totalPages="+totalPages+"&classid="+class_id,"","1=1"), new rewinjson.rewinAjax("JSONService/fenye.jsp", new rewinjson.tool.parameter("style","pageIndex="+pageIndex+"&totalCounts="+totalCounts+"&pageSize="+pageSize+"&classid="+class_id,"","1=1"), rewinjson.client.StyleText, "GET", "rewin_fenye" ); } //获取内容详细页的内容 rewinjson.client.getInfoShowData = function(method,classid,infoid){ //alert("classid = "+classid+"------->infoid = "+infoid) new rewinjson.rewinAjax("JSONService/infoShow.jsp", new rewinjson.tool.parameter("style","classid="+classid+"&infoid="+infoid,"",""), method, "POST", "" ); } //获取内附件的信息 rewinjson.client.getInfoShowAttachmentData = function(method,classid,infoid){ //alert("classid = "+classid+"------->infoid = "+infoid) new rewinjson.rewinAjax("JSONService/infoShowAttachment.jsp", new rewinjson.tool.parameter("style","classid="+classid+"&infoid="+infoid,"",""), method, "POST", "" ); } //显示翻页信息2 rewinjson.client.FenYe2 = function (pageIndex,totalCounts,pageSize,class_id,totalPages){ //alert("---------------pageIndex------"+pageIndex+"--totalCounts-"+totalCounts+"--pageSize-"+pageSize+"---totalPages-"+totalPages+"---classid-"+class_id); new rewinjson.rewinAjax("JSONService/fenye.jsp", new rewinjson.tool.parameter("style","pageIndex="+pageIndex+"&totalCounts="+totalCounts+"&pageSize="+pageSize+"&totalPages="+totalPages+"&classid="+class_id,"","1=1"), rewinjson.client.StyleText, "GET", "rewin_fenye" ); } //获取内附件的信息 rewinjson.client.getZgcpInfoDetailData = function(method,classid,pageIndex,pageSize){ //alert("classid = "+classid+"------->infoid = "+infoid) new rewinjson.rewinAjax("JSONService/zgcpIndexService.jsp", new rewinjson.tool.parameter("style","classid="+classid+"&pageIndex="+pageIndex+"&pageSize="+pageSize,"",""), method, "POST", "" ); } //获取内附件的信息 rewinjson.client.getZplbInfoDetailData = function(method,classid,pageIndex,pageSize){ //alert("classid = "+classid+"------->infoid = "+infoid) new rewinjson.rewinAjax("JSONService/zplbIndexService.jsp", new rewinjson.tool.parameter("style","classid="+classid+"&pageIndex="+pageIndex+"&pageSize="+pageSize,"",""), method, "POST", "" ); } //代销基金 rewinjson.client.getDxjjData = function(method){ new rewinjson.rewinAjax("wsyyt/server/dxjjService.jsp", new rewinjson.tool.parameter("json","","",""), method, "POST", "" ); } //主承项目 rewinjson.client.getZcxmData = function(method){ new rewinjson.rewinAjax("zqyw/server/zqywService.jsp", new rewinjson.tool.parameter("json","","",""), method, "POST", "" ); } //获取list的数据 rewinjson.client.getListData_simple = function(objId,classid,method,pageIndex,param){ //alert("classid = "+classid); var rewinjson_divnum = objId.substring(objId.lastIndexOf("_")+1); if(!isNaN(rewinjson_divnum)){ //alert("rewinjson_divnum = "+rewinjson_divnum); var nowCount = pageIndex*(parseInt(rewinjson_divnum)); //alert(nowCount+"-----"+jsonStatic)//数据量 //if(nowCount>jsonStatic){//需要从动态页面获取 if(true){//一直从动态页面获取 //alert("classid======:"+classid); isfrom = false; new rewinjson.rewinAjax("JSONService/rewinJsonInfoListMore_simple.jsp", new rewinjson.tool.parameter("json","classid="+classid+"&pageIndex="+pageIndex,"",""), method, "POST", objId ); }else{//从静态文件中获取 isfrom = true; new rewinjson.rewinAjax("/classHTML/"+classid+".html", new rewinjson.tool.parameter("json","classid="+classid+"&pageIndex="+pageIndex,"",""), method, "POST", objId, rewinjson.client.notFund ); } }else{ return; } }