123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619 |
- (function($j){$j.positionFixed=function(el){$j(el).each(function(){new fixed(this)});return el;};$j.fn.positionFixed=function(){return $j.positionFixed(this)}
- var fixed=$j.positionFixed.impl=function(el){var o=this;o.sts={target:$j(el).css('position','fixed'),container:$j(window)}
- o.sts.currentCss={top:o.sts.target.css('top'),right:o.sts.target.css('right'),bottom:o.sts.target.css('bottom'),left:o.sts.target.css('left')}
- if(!o.ie6)return;o.bindEvent();}
- $j.extend(fixed.prototype,{ie6:false,bindEvent:function(){var o=this;o.sts.target.css('position','absolute')
- o.overRelative().initBasePos();o.sts.target.css(o.sts.basePos)
- o.sts.container.scroll(o.scrollEvent()).resize(o.resizeEvent());o.setPos();},overRelative:function(){var o=this;var relative=o.sts.target.parents().filter(function(){if($j(this).css('position')=='relative')return this;})
- if(relative.size()>0)relative.after(o.sts.target)
- return o;},initBasePos:function(){var o=this;o.sts.basePos={top:o.sts.target.offset().top-(o.sts.currentCss.top=='auto'?o.sts.container.scrollTop():0),left:o.sts.target.offset().left-(o.sts.currentCss.left=='auto'?o.sts.container.scrollLeft():0)}
- return o;},setPos:function(){var o=this;o.sts.target.css({top:o.sts.container.scrollTop()+o.sts.basePos.top,left:o.sts.container.scrollLeft()+o.sts.basePos.left})},scrollEvent:function(){var o=this;return function(){o.setPos();}},resizeEvent:function(){var o=this;return function(){setTimeout(function(){o.sts.target.css(o.sts.currentCss)
- o.initBasePos();o.setPos()},1)}}})})(jQuery);(function($){$.fn.popWin=function(options){var def={PopSelector:"",CloseSelector:"",slideTime:600};var options=$.extend(def,options);
- var noie6=!(false&&!$.support.style);
- var PopSelector=options.PopSelector,CloseSelector=options.CloseSelector,slideTime=options.slideTime;
- if(noie6){$(PopSelector).slideDown(slideTime)}
- else{$(PopSelector).fadeIn(slideTime);var thisPop=$(PopSelector);jQuery(function($j){$j(thisPop).positionFixed()})}
- if(noie6){$(CloseSelector).click(function(){$(PopSelector).slideUp(slideTime);});}
- else{$(CloseSelector).click(function(){$(PopSelector).fadeOut(slideTime);});}}})(jQuery);
- var basePath=contextPath;
-
- function changeBoatTab(n,m){
- for(var i=0;i<m;i++)
- {
- var boat_menu=document.getElementById('boat_menu_' + i);
- var boat_main=document.getElementById('boat_main_' + i);
- var boat_menu_img=boat_menu.getElementsByTagName('img');
- boat_menu.className=i==n?'boat_hover':'';
- for(var j=0;j<boat_menu_img.length;j++){
- boat_menu_img[j].src=i==n? '${basePath}/static/image/pop/tab_hover.png': '${basePath}/static/image/pop/tab.png';
- }
- boat_main.style.display=i==n?'block':'none';
- }
- }
-
- function changepopxkzTab(n,m){
- for(var i=0;i<m;i++)
- {
- var pop_xkz_menu=document.getElementById('pop_xkz_menu_' + i);
- var pop_xkz_main=document.getElementById('pop_xkz_main_' + i);
- var pop_xkz_menu_img=pop_xkz_menu.getElementsByTagName('img');
- pop_xkz_menu.className=i==n?'pop_xkz_hover':'';
- for(var j=0;j<pop_xkz_menu_img.length;j++){
- pop_xkz_menu_img[j].src=i==n? '../static/image/pop/tab_hover.png': '../static/image/pop/tab.png';
- }
- pop_xkz_main.style.display=i==n?'block':'none';
- }
- }
-
- function queryJYRByGKIdX(data){
- for(var i in arguments){
- alert(arguments[i]);
- }
- }
-
- function progressdiv(v){
- var progressdiv=document.getElementById("progressdiv");
- //alert(v)
- if(progressdiv&&v){
- if(v=='show'){
- progressdiv.style.display="";
- }else{
- progressdiv.style.display="none";
- }
- }
- }
-
-
- function showBodyConfig(data){
- //console.log(data);
- if(data&&data.attrs.BodyConfig&&data.attrs.BodyConfig.length){
- //alert(data.attrs.BodyConfig.length);
- //progressdiv('show');
-
- var lengthT=data.attrs.BodyConfig.length;
- popBody = '';
- popBody += '<table style="margin-top: 5px;font-size:13px;" class="table table-striped table-bordered">';
- popBody += '<tr class="fisrtTr">';
- for(var i =0;i<lengthT;i++){
- var ishidden=data.attrs.BodyConfig[i].hidden;
- if(!ishidden||ishidden!=1){
- var title = data.attrs.BodyConfig[i].title;
- popBody += '<th >'+ title +'</th>';
- }
- }
- popBody += '</tr>';
-
- var trtip="双击可定位到该处";
- var listEntity = data.attrs.Entity;
- var funname=data.attrs.BodyFunConfigBean['function'];
- var isfuntr = data.attrs.BodyFunConfigBean&&funname&&gis.script.isNotBlank(funname);
- if(isfuntr){
- gis.script.toastmessage({text:'双击表格条目可定位。',type:'success'});
- }
- for(var i in listEntity){
- var trhtml="<tr>";
- var p=listEntity[i];
- if(isfuntr&&listEntity[i]){
- //escape
- //alert(encodeURIComponent("1234'4"))
- //var args="unescape('"+escape("1234'4")+"')";
- var functionParameter =data.attrs.BodyFunConfigBean.functionParameter;
- var args=[];
- //args.push("unescape('"+escape("1234'4")+"')");args.push("unescape('"+escape("1234'4")+"')");
- if(functionParameter&&functionParameter.length){
- for(var jj=0;jj<functionParameter.length;jj++){
- //console.log(listEntity[i]);console.log(functionParameter[jj]);
-
- args.push("unescape('"+escape(p[functionParameter[jj]])+"')");
- }
- }
- trhtml="<tr title='"+trtip+"' style='cursor:pointer;' ondblclick=\""+funname+"("+args.join(",")+")"+"\">";
- }
-
- popBody += trhtml;
- for(var j=0;j<lengthT;j++){
- //console.log(p);
- var ishidden=data.attrs.BodyConfig[j].hidden;
- //console.log(data.attrs.BodyConfig[j]);
- if(!ishidden||ishidden!=1){
- var attrname = data.attrs.BodyConfig[j].attrname;
- popBody += "<td "+(data.attrs.BodyConfig[j].tdStyle?" style='"+data.attrs.BodyConfig[j].tdStyle+";' ":"")+">"+ p[attrname] +"</td>";
- }
-
- }
- popBody += "</tr>";
- }
- popBody += '</table>'
-
-
- document.getElementById('popTitle').innerHTML=data.attrs.Title;
- document.getElementById('popHtml').innerHTML=popBody;
-
- //progressdiv("hide");
- }
- initpopupRightD0();
- }
-
-
-
-
- var fdtableShowConfig={};
- //港口经营人信息
- fdtableShowConfig.queryJYRById={"BodyConfig":[{"attrname":"gkjyr","attrval":"","hidden":"","tdStyle":"width:10%","title":"港口经营人名称"},{"attrname":"sfwhqy","attrval":"","hidden":"","tdStyle":"width:10%","title":"是否危货企业"},{"attrname":"zyhz","attrval":"","hidden":"","tdStyle":"","title":"主营货种"},{"attrname":"jyfw","attrval":"","hidden":"","tdStyle":"","title":"经营范围"},{"attrname":"jyfw","attrval":"","hidden":"","tdStyle":"","title":"经营地域"},{"attrname":"zyid","attrval":"","hidden":"1","tdStyle":"","title":"zyid"}],"BodyConfigType":"2","BodyFunConfigBean":{"function":"queryJYRByGKId","functionParameter":["zyid"]},"Title":"港口经营人信息"};
- //港区信息
- fdtableShowConfig.queryGQByGKId={"BodyConfig":[{"attrname":"gqmc","attrval":"","hidden":"","tdStyle":"","title":"港区名称"},{"attrname":"gqms","attrval":"","hidden":"","tdStyle":"","title":"港区功能描述"},{"attrname":"gqmj","attrval":"","hidden":"","tdStyle":"","title":"港区面积(万平方米)"},{"attrname":"lymj","attrval":"","hidden":"","tdStyle":"","title":"陆域面积(万平方米)"},{"attrname":"symj","attrval":"","hidden":"","tdStyle":"","title":"水域面积(万平方米)"},{"attrname":"gqdm","attrval":"","hidden":"1","tdStyle":"","title":"gqdm"}],"BodyConfigType":"2","BodyFunConfigBean":{"function":"queryGQByGKId","functionParameter":["gqdm"]},"Title":"港区信息"};
- //泊位信息
- fdtableShowConfig.queryBWById={"BodyConfig":[{"attrname":"bwmc","attrval":"","hidden":"","tdStyle":"","title":"泊位名称"},{"attrname":"gqmc","attrval":"","hidden":"","tdStyle":"","title":"所在港区"},{"attrname":"ssjyrname","attrval":"","hidden":"","tdStyle":"","title":"所属经营人"},{"attrname":"bwytcode","attrval":"","hidden":"","tdStyle":"","title":"主要用途"},{"attrname":"sjkpnl","attrval":"","hidden":"","tdStyle":"","title":"设计靠泊能力(吨)"},{"attrname":"bwcd","attrval":"","hidden":"","tdStyle":"","title":"长度(米)"},{"attrname":"sfkfcode","attrval":"","hidden":"","tdStyle":"","title":"是否对外开放泊位"},{"attrname":"sfwhcode","attrval":"","hidden":"","tdStyle":"","title":"是否危化品泊位"},{"attrname":"qysjsh","attrval":"","hidden":"","tdStyle":"","title":"前沿设计水深(米)"},{"attrname":"nhwtgnl","attrval":"","hidden":"","tdStyle":"","title":"泊位设计年货物通过能力"},{"attrname":"njzxtgnl","attrval":"","hidden":"","tdStyle":"","title":"泊位年集装箱通过能力"},{"attrname":"zyid","attrval":"","hidden":"1","tdStyle":"","title":"zyid"}],"BodyConfigType":"2","BodyFunConfigBean":{"function":"queryBWByGKId","functionParameter":["zyid"]},"Title":"泊位信息"};
- //储罐信息
- fdtableShowConfig.queryWHCGById={"BodyConfig":[{"attrname":"cgqmc","attrval":"","hidden":"","tdStyle":"","title":"储罐区名称"},{"attrname":"cgmc","attrval":"","hidden":"","tdStyle":"","title":"储罐名称"},{"attrname":"zdwxycggs","attrval":"","hidden":"","tdStyle":"","title":"重大危险源储罐个数(个)"},{"attrname":"zdwxycgrl","attrval":"","hidden":"","tdStyle":"","title":"重大危险源储罐容量(升)"},{"attrname":"szgqname","attrval":"","hidden":"","tdStyle":"","title":"所在港区"},{"attrname":"szdname","attrval":"","hidden":"","tdStyle":"","title":"所在地"}],"BodyConfigType":"2","Title":"储罐信息"};
- //岸线信息
- fdtableShowConfig.queryAXById={"BodyConfig":[{"attrname":"axmc","tdStyle":"","title":"岸线名称"},{"attrname":"axgncode","tdStyle":"","title":"岸线功能类型"},{"attrname":"bz","title":"规划主要用途描述"},{"attrname":"axcd","title":"长度(米)"},{"attrname":"lyzt","title":"利用状态"},{"attrname":"axlxcode","title":"是否深水岸线"},{"attrname":"gqmc","title":"所在港区"}],"BodyConfigType":"2","Title":"岸线信息"};
- //锚地信息
- fdtableShowConfig.queryMDByGKId={"BodyConfig":[{"attrname":"mdmc","tdStyle":"","title":"锚地名称"},{"attrname":"zyyt","tdStyle":"","title":"主要用途"},{"attrname":"xbnl","title":"锚泊能力"},{"attrname":"mdmj","title":"面积(万平方米)"},{"attrname":"mdcd","title":"长度(米)"},{"attrname":"mdcd","title":"宽度(米)"},{"attrname":"mdss","title":"水深(米)"}],"BodyConfigType":"2","BodyFunConfigBean":{"function":"queryMDByGKId","functionParameter":["zyid"]},"Title":"锚地信息"};
- //作业区信息
- fdtableShowConfig.queryZYQById={"BodyConfig":[{"attrname":"zyqmc","attrval":"","hidden":"","tdStyle":"","title":"作业区名称"},{"attrname":"zyqyt","attrval":"","hidden":"","tdStyle":"","title":"作业区功能描述"},{"attrname":"szgkname","attrval":"","hidden":"","tdStyle":"","title":"所在港口"},{"attrname":"szgqname","attrval":"","hidden":"","tdStyle":"","title":"所在港区"},{"attrname":"zyid","attrval":"","hidden":"1","tdStyle":"","title":"zyid"}],"BodyConfigType":"2","BodyFunConfigBean":{"function":"queryZYQbyZYID","functionParameter":["zyid"]},"Title":"作业区信息"};
- //海事申报作业信息
- fdtableShowConfig.queryDRHSSB={"BodyConfig":[{"attrname":"cbbh","tdStyle":"","title":"船舶编号"},{"attrname":"sbdlb","tdStyle":"","title":"申报单类别"},{"attrname":"zwcm","title":"中文船名"},{"attrname":"ywcm","title":"英文船名"},{"attrname":"kszysj","title":"开始作业时间"},{"attrname":"jszysj","title":"结束作业时间"},{"attrname":"zqysmczw","title":"作业品名"},{"attrname":"sl","title":"作业数量"},{"attrname":"sbrqtochar","title":"申报时间"}],"BodyConfigType":"2","Title":"海事申报作业信息","namespace":"2"};
- //危货附证信息
- fdtableShowConfig.queryWHZYFZByJYRId={"BodyConfig":[{"attrname":"fzsqh","tdStyle":"","title":"附证编号"},{"attrname":"zycstext","tdStyle":"","title":"作业区域范围"},{"attrname":"zyfs","title":"作业方式"},{"attrname":"wxhwpm","title":"作业危险货物品名"},{"attrname":"fzjg","title":"发证机关"},{"attrname":"fzsjtime","title":"发证日期"},{"attrname":"yxqjssjtime","title":"有效期至"},{"attrname":"zszt","title":"证书状态"},{"attrdefval":"详情","attrname":"","tdFunction":{"changelessParameter":["queryWHZYFZById.html","queryWHZYFZByJYRId.html"],"function":"showMesgWHXQ","functionParameter":["id","ssjyr"]},"title":"查看详情"}],"BodyConfigType":"2","Title":"危货附证信息"};
-
- function showMesg2(id,action,actionSplit){
- //console.log(id,action+"|"+actionSplit);
-
- var paras="";
- try{
-
- if(fdtableShowConfig&&action&&gis.script.isNotBlank(action)){
- var actSplit = action.split("?");
- if(actSplit&&actSplit.length>=2){
- paras+="?"+actSplit[1];
- }
- }
- }catch(e){
-
- }
- progressdiv('show');
- var tableInfo=fdtableShowConfig[actionSplit[0]];
- //gis.script.jsonAjax({url:contextPath+"/zygl/fdTableshow.html"+paras,contentType:'application/json;charset=utf-8',async:true,data:JSON.stringify({sqlid:"queryJYRinfo",szgk:id})},
- gis.script.jsonAjax({url:contextPath+"/zygl/fdTableshow.html"+paras,async:true,data:{sqlid:actionSplit[0],id:id,namespace:tableInfo.namespace||"2"}},
- function(data){
- //alert(JSON.stringify(data));
- newTableHtml(tableInfo,data);
- progressdiv('hide');
- },function(jqXHR, textStatus, errorThrown){
- //alert(jqXHR.responseText);
- newTableHtml(tableInfo,null);
- progressdiv('hide');
- });
- }
-
- function newTableHtml(tinfo,data){
-
- if(tinfo&&tinfo.BodyConfig&&tinfo.BodyConfig.length){
- var lengthT=tinfo.BodyConfig.length;
-
- popBody = '';
- popBody += '<table style="margin-top: 5px;font-size:13px;" class="table table-striped table-bordered">';
- popBody += '<tr class="fisrtTr">';
- for(var i =0;i<lengthT;i++){
- var ishidden=tinfo.BodyConfig[i].hidden;
- if(!ishidden||ishidden!=1){
- var title = tinfo.BodyConfig[i].title;
- popBody += '<th >'+ title +'</th>';
- }
- }
- popBody += '</tr>';
-
-
- if(data&&data.length){
- var trtip="双击可定位到该处";
-
- var listEntity = data;
- var funname=tinfo.BodyFunConfigBean?tinfo.BodyFunConfigBean['function']:null;
- var isfuntr = tinfo.BodyFunConfigBean&&funname&&gis.script.isNotBlank(funname);
- if(isfuntr){
- gis.script.toastmessage({text:'双击表格条目可定位。',type:'success'});
- }
- for(var i in listEntity){
- var trhtml="<tr>";
- var p=listEntity[i];
- if(isfuntr){
- if(p){
- var functionParameter =tinfo.BodyFunConfigBean.functionParameter;
- var args=[];
- //args.push("unescape('"+escape("1234'4")+"')");args.push("unescape('"+escape("1234'4")+"')");
- if(functionParameter&&functionParameter.length){
- for(var jj=0;jj<functionParameter.length;jj++){
- //console.log(listEntity[i]);
- //console.log("--",functionParameter[jj]);
- var parameterVal=p[functionParameter[jj]];
- if(parameterVal!=null){
- args.push("unescape('"+escape(parameterVal)+"')");
- }else{
- args.push("''");
- }
-
- }
- }
- if(args.length>0){
- trhtml="<tr title='"+trtip+"' style='cursor:pointer;' onmouseover=\"funmouseover(this)\" onmouseout=\"funmouseout(this)\" ondblclick=\""+funname+"("+args.join(",")+")"+"\">";
- }
-
- }
-
- }
-
- popBody += trhtml;
- for(var j=0;j<lengthT;j++){
- //console.log(p);
- var ishidden=tinfo.BodyConfig[j].hidden;
- //console.log(tinfo.BodyConfig[j]);
- if(!ishidden||ishidden!=1){
-
- var tdFunction =tinfo.BodyConfig[j].tdFunction;
- var click="";
- if(tdFunction&&gis.script.isNotBlank(tdFunction['function'])){
- var args=[];
- //alert(tdFunction['function']);
- if(tdFunction.functionParameter&&tdFunction.functionParameter.length){
- for(var jj=0;jj<tdFunction.functionParameter.length;jj++){
- var parameterVal=p[tdFunction.functionParameter[jj]];
- if(parameterVal!=null){
- args.push("unescape('"+escape(parameterVal)+"')");
- }else{
- args.push("''");
- }
-
- }
- }
- if(tdFunction.changelessParameter&&tdFunction.changelessParameter.length){
- for(var jk=0;jk<tdFunction.changelessParameter.length;jk++){
- var parameterVal=tdFunction.changelessParameter[jk];
- if(parameterVal!=null){
- args.push("unescape('"+escape(parameterVal)+"')");
- }
-
- }
- }
-
- click="onclick="+tdFunction['function']+'('+args.join(",")+")";
- //console.log(click);
- }
-
-
- var attrname = tinfo.BodyConfig[j].attrname;
- var attrvalshow=p[attrname]||tinfo.BodyConfig[j].attrdefval;
- if(!attrvalshow){
- attrvalshow="";
- }
- if(gis.script.isNotBlank(click)){
- popBody += "<td "+(tinfo.BodyConfig[j].tdStyle?" style='"+tinfo.BodyConfig[j].tdStyle+";' ":" ")+"><a "+click+">"+ attrvalshow +"</a></td>";
- }else{
- popBody += "<td "+(tinfo.BodyConfig[j].tdStyle?" style='"+tinfo.BodyConfig[j].tdStyle+";' ":" ")+">"+ attrvalshow +"</td>";
- }
- //popBody += "<td "+(tinfo.BodyConfig[j].tdStyle?" style='"+tinfo.BodyConfig[j].tdStyle+";' ":" ")+">"+ attrvalshow +"</td>";
- }
-
- }
- popBody += "</tr>";
- }
- }
- popBody += '</table>'
-
- var bgrounddiv=$("#bgrounddiv");
- var popupRightD0=$("#popupRightD0");
- popupRightD0.css("width",bgrounddiv.width());
-
- document.getElementById('popTitle').innerHTML=tinfo.Title;
- document.getElementById('popHtml').innerHTML=popBody;
- }
-
- initpopupRightD0();
- }
-
-
- function showMesgWHXQ(id,id2,action,action2){
- //console.log(arguments);
- backMesg(id2,action2,false);
- showMesg(id,action);
-
-
- }
-
- function backMesg(id,action,isdisplay){
- document.getElementById('fanhui').style.display='';
- $("#fanhui").unbind('click').click(function(){
- //console.log(action);
- showMesg(id,action);
- if(!isdisplay){
- document.getElementById('fanhui').style.display='none';
- }
- });
- }
-
- function showMesg(id,action){
- try{
-
- if(fdtableShowConfig&&action&&gis.script.isNotBlank(action)){
- var actSplit = action.split(".");
- if(actSplit&&actSplit.length
- &&fdtableShowConfig[actSplit[0]]){
- return showMesg2(id,action,actSplit);
- }
- }
- }catch(e){
-
- }
- /*
- //如果是 危货附证 的点击事件,将该事件的ID和action保存下来。用作返回
- if(action == 'queryWHZYFZByJYRId.html'){
- fanhuiId = id;
- fanhuiAction = action;
-
- }
- //如果是 危货附证 显示列表的 展示点击事件,显示返回按钮。并添加onclick操作。
- if(action == 'queryWHZYFZById.html'){
- document.getElementById('fanhui').style.display='';
- $("#fanhui").unbind('click').click(function(){
- showMesg(fanhuiId,fanhuiAction);
- });
- }
- else{
- document.getElementById('fanhui').style.display='none';
- }
- */
-
- $.ajax({
- url : basePath + "/zygl/"+action,
- //data : [{"name":"id","value":id}],
- data:{id:id,xxx:'dd'},
- type : "post",
- dataType : "json",
- success : function(data) {// ajax返回的数据
- if (data.success) {
- var popBody = '';
- if(data.attrs.Entity){
- //console.log(1,data);
- if(data.attrs.BodyConfigType&&data.attrs.BodyConfigType==2){
- return showBodyConfig(data);
- }
-
- var listEntity = data.attrs.Entity;
- var listTitleName = data.attrs.BodyTitleName.split(",");
- var hiddenFunction = data.attrs.HiddenFunction;
- //var tip=data.attrs.Tip;
- var trtip="双击可定位到该处";
-
- var lengthT = listTitleName.length;
- //如果存在影藏方法,则说明最后一列为影藏方法所需属性值,无需展示。
- if(hiddenFunction){
- gis.script.toastmessage({text:'双击表格条目可定位。',type:'success'});
- lengthT = listTitleName.length-1;
- }
- popBody += '<table style="margin-top: 5px;font-size:13px;" class="table table-striped table-bordered">';
- popBody += '<tr class="fisrtTr">';
- for(var i =0;i<lengthT;i++){
- popBody += '<th >'+ listTitleName[i] +'</th>';
- }
- popBody += '</tr>';
-
- for(var i in listEntity){
- if(hiddenFunction){
- popBody += "<tr title='"+trtip+"' style='cursor:pointer;' ondblclick=\""+hiddenFunction+"('"+listEntity[i][listTitleName.length-1]+"')"+"\">";
- }
- else{
- popBody += "<tr>";
- }
- for(var j=0;j<lengthT;j++){
- popBody += '<td >'+ getBrMessage(listEntity[i][j],0) +'</td>';
- }
- popBody += '</tr>';
- }
- popBody += '</table>'
-
- }
- else {
- popBody = data.attrs.Html;
- }
- document.getElementById('popTitle').innerHTML=data.attrs.Title;
- document.getElementById('popHtml').innerHTML=popBody;
-
- /*
- $.fn.popWin({
- PopSelector:".popupRightD", //弹出的窗体
- CloseSelector:".popupRightD .close", //关闭窗体的触发开关
- lideTime:600 //窗体出场入场动画的时间
- })
- */
- initpopupRightD0();
- //var dheight=$(document.body).height();
- //alert($('.popupRightD').height());alert(dheight*33/100);
-
- } else {
- $.alert({
- title : '提示',
- content : data.message,
- confirm : function() {
- }
- });
- }
- }
- });
- }
- function initpopupRightD0(){
-
- if($('#popupRightD0').length){
- //$('.popupRightD').get(0).style.display="";
- //$('#popupRightD0').get(0).style.display="";
- //$('.popupRightDContent').css("height","555");
- $('.popupRightDContent').css("height","");
- $('#popupRightD0').css("display","");
- //$('#popupRightD0').css("height","33%");
- $('.popupRightDContent').css("overflow-y","scroll");
- $('.popupRightDContent').css("height",$('.popupRightD').height()-32);
-
- //alert($('#popupRightD0').find("#popupRightD0close").length)
- $('#popupRightD0close').get(0).onclick=function(){
- $('#popupRightD0').css("display","none");
- $('#fanhui').css("display","none");
- $("#fanhui").unbind('click');
- };
- }
-
- //alert($('#pop_xkz_main_0 table').length);
- if($('#pop_xkz_main_0 table').length && $('.popupRightD').length){
- //alert($('#pop_xkz_main_0 table').css("width")+"__"+$('.popupRightD').width());
- //alert($('.popupRightD').get(0).scrollWidth+"__"+$('.popupRightD').scrollHeight);
- $('#pop_xkz_main_0 table').css("width",$('.popupRightD').width()-26);
- }
- }
-
- function queryZYQbyZYID(id){
- gis.script.loadgisService({treeNodeType:"GK_BASIC_JSJY_GK_ZYQ"},{id:id,showPop:"true"});
- }
- function queryGQByGKId(id){
- gis.script.loadgisService({treeNodeType:"GK_BASIC_JSJY_GK_GQ"},{id:id,showPop:"true"});
- }
- function queryJYRByGKId(id){
- gis.script.loadgisService({treeNodeType:"GK_BASIC_JSJY_JYR"},{id:id,showPop:"true"});
- }
- function queryMTByGKId(id){
- gis.script.loadgisService({treeNodeType:"GK_BASIC_JSJY_JYR_MT"},{id:id,showPop:"true"});
- }
- function queryBWByGKId(id){
- gis.script.loadgisService({treeNodeType:"GK_BASIC_JSJY_JYR_BW"},{id:id,showPop:"true"});
- }
- function queryMDByGKId(id){
- //console.log(id);
- gis.script.loadgisService({treeNodeType:"GK_BASIC_JSJY_GK_MD"},{id:id,showPop:"true"});
- }
- function funmouseover(obj){
- //alert(obj);
- obj.style.background='#FFFFCC';
-
- }
- function funmouseout(obj){
- //alert(obj);
- obj.style.background='';
-
- }
- function getBrMessage(message,leng){
- if(typeof(message)=='undefined'||message==null){
- message="";
- }
- if(leng){
- var i = message.length;
- //排除操作列的换行
- //!i排除非字符项
- if( !i ||(i >0 && message.indexOf('showMesg')>-1)){
- return message;
- }
- var j = parseInt(i/leng)+1;
- var rsl='';
- for (var k=0;k<j;k++){
- rsl = rsl + message.substring(k*leng , (k+1)*leng) +'<br/>';
- }
- return rsl;
- }
- return message;
- }
- function showall() {
- $('div').css("display", "block");
- }
- function hideexcel(that) {
- $(that).parent().parent().css("display", "none");
- }
- function changeBoatTab(n, m) {
- for ( var i = 0; i < m; i++) {
- var boat_menu = document.getElementById("boat_menu_" + i);
- var boat_main = document.getElementById("boat_main_" + i);
- var boat_menu_img = boat_menu.getElementsByTagName("img");
- boat_menu.className = i == n ? "boat_hover" : "";
- for ( var j = 0; j < boat_menu_img.length; j++) {
- boat_menu_img[j].src = i == n ?contextPath+'/theme/images/tab_hover.png' : contextPath+'/theme/images/tab.png';
- }
- boat_main.style.display = i == n ? "block" : "none";
- }
- }
- function changePopTab(n, m) {
- for ( var i = 0; i < m; i++) {
- var pop_menu = document.getElementById("pop_menu_" + i);
- var pop_main = document.getElementById("pop_main_" + i);
- var pop_menu_img = document.getElementById("pop_ul")
- .getElementsByTagName("img");
- pop_menu.className = i == n ? "pop_hover" : "";
- pop_menu_img[i].src = i == n ? "img/pop_tab_hover.png"
- : "img/pop_tab.png";
- //
- // alert(pop_menu.style.zIndex);
- pop_main.style.display = i == n ? "block" : "none";
- }
- }
- function move_img(that) {
- var y_axis = parseInt($(that).css('height')) / 2;
- if ($(that).css('bottom') == "0px")
- $(that).css('bottom', y_axis + "px");
- else
- $(that).css('bottom', '0px');
- }
- //经营许可证图片
- function detailShow(objs){
- $("#overlay").fadeTo(500, 0.5);
- $("#divpop"+objs).html($("#dv"+objs).html());
- divpopup($("#divpop"+objs));
-
- //$("#divpop"+objs).show(500);
- //$("#divpop"+objs).css("left",pageWidth()*0.1);
- //$("#divpop"+objs).css("top",pageHeight()*0.1);
- }
- function detailHide(objs){
- $("#divpop"+objs).hide(300);
- $("#overlay").fadeOut(300);
- }
- function divpopup(popupName){
- _windowHeight = $(".smMap").height(),//获取当前窗口高度
- _windowWidth = $(".smMap").width(),//获取当前窗口宽度
- _popupHeight = popupName.height(),//获取弹出层高度
- _popupWeight = popupName.width();//获取弹出层宽度
- _posiTop = (_windowHeight - _popupHeight)/2;
- _posiLeft = (_windowWidth - _popupWeight)/2+450;
- popupName.css({"left": _posiLeft + "px","top":_posiTop + "px","display":"block"});//设置position
-
- }
|