Index: ssts-web/src/main/webapp/js/common.js =================================================================== diff -u -r27855 -r27876 --- ssts-web/src/main/webapp/js/common.js (.../common.js) (revision 27855) +++ ssts-web/src/main/webapp/js/common.js (.../common.js) (revision 27876) @@ -665,7 +665,7 @@ var posStatement="top="+top+",left="+left+",width="+width+",height="+height; var style='menubar=no,location=yes,directories=no,toolbar=no,statusbar=no,resizable=yes,' +posStatement+",scrollbars="+scrollbars; - var popwin=window.open(pageUrl,windowName,style); + var popwin=window.open(pageUrl+'&source=portalPage',windowName,style); if(popwin == null){ return false; } Index: ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.jsp =================================================================== diff -u -r27859 -r27876 --- ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.jsp (.../recycleForTouchScreen.jsp) (revision 27859) +++ ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.jsp (.../recycleForTouchScreen.jsp) (revision 27876) @@ -238,13 +238,98 @@ var params_departCoding = '${param.departCoding}'; //当前登录用户所属供应室类型 var params_type = ${supplyRoomType}; - +var source = '${param.source}'; layer.config({ extend: 'myskin/style.css', //加载您的扩展样式 skin: 'layer-ext-myskin' }); //layer.alert('layer皮肤-myskin'); +function isIE(value) { + var vals = value || ''; + if(!!window.ActiveXObject || "ActiveXObject" in window){ + if(vals !== ''){ + var DEFAULT_VERSION = 8.0; + var ua = navigator.userAgent.toLowerCase(); + var safariVersion = ua.match(/msie ([\d.]+)/) || ''; + if(safariVersion == ''){ + return false; + } + if(safariVersion[1] <= DEFAULT_VERSION ){ + return true; + }else { + return false; + } + } + return true; + }else{ + return false; +   } +} + +function getRatio(){ + var ratio=0; + var ratio=0; + var screen=window.screen; + var ua=navigator.userAgent.toLowerCase(); + + if(window.devicePixelRatio !== undefined){ + ratio=window.devicePixelRatio; + }else if(~ua.indexOf('msie')){ + if(screen.deviceXDPI && screen.logicalXDPI) + { + ratio=screen.deviceXDPI/screen.logicalXDPI; + } + }else if(window.outerWidth !== undefined && window.innerWidth !== undefined){ + ratio=window.outerWidth/window.innerWidth; + } + + if(ratio){ + ratio=Math.round(ratio*100); + } + + return ratio; +} + +function ChangeRatio(type){ + var ratio=0; + var screen=window.screen; + var ua=navigator.userAgent.toLowerCase(); + + if(window.devicePixelRatio !== undefined){ + ratio=window.devicePixelRatio; + }else if(~ua.indexOf('msie')){ + if(screen.deviceXDPI && screen.logicalXDPI) + { + ratio=screen.deviceXDPI/screen.logicalXDPI; + } + }else if(window.outerWidth !== undefined && window.innerWidth !== undefined){ + ratio=window.outerWidth/window.innerWidth; + } + + if(ratio){ + ratio=Math.round(ratio*100); + } + + var value; + if(type == 'width'){ + var width = window.screen.width; + if(isIE()){ + value = width*ratio/100; + }else { + value = width; + } + }else { + var height = window.screen.height; + if(isIE()){ + value = height*ratio/100; + }else { + value = height; + } + } + + return parseInt(value); +} $(document).ready(function() { if (notInWhiteList(sstsConfig, 'tousseSplitRecycle')) { @@ -253,6 +338,159 @@ $('#remark').click(function(){ openInputRemark(); }); + + var screenWidth = ChangeRatio('width'); + var screenHeight = ChangeRatio('height'); + + $('.mbody').css('width','100%'); + + if(screenWidth < 1030){ + var height = 800; + var bottom = 70; + if(source == ''){ + height = 770; + bottom = 100; + } + $('.mbody').css({'width':'1920px'}); + $('.add-form .name,.add-form .operator,.add-form .recyclingTime').css({'top':'-30px'}); + $('.add-form .depart,.add-form .appType,.add-form .applyTime').css({'top':'40px'}); + $('.add-form .remark,.add-form .communicationUserName').css({'top':'120px'}); + $('.add-form .add,.add-form .add2,.add-form .addQM').css({'margin-top':'170px'}); + $('#divElement').css({'margin-top':'250px','right':'180px'}); + + $('.data-table').css({'left':'40px','bottom':bottom+'px','height':height+'px'}); + $('#tousseItemBox').css({'height':(height-80)+'px'}); + $('.zhuangzai-table').css({'height':'1040px','bottom':'80px','right':'55px','width':'610px'}); + if(isIE()){ + $('.mbody').css({'zoom':0.5078*(105/getRatio())}); + } + }else if(screenWidth>1270 && screenWidth<1300){ + if(screenHeight<730){ + var height = 540; + var bottom = 90; + if(source == ''){ + height = 510; + bottom = 120; + } + $('.mbody').css({'width':'2030px'}); + $('.add-form .name,.add-form .operator,.add-form .recyclingTime').css({'top':'-30px'}); + $('.add-form .depart,.add-form .appType,.add-form .applyTime').css({'top':'40px'}); + $('.add-form .remark,.add-form .communicationUserName').css({'top':'110px'}); + $('.add-form .add,.add-form .add2').css({'margin-top':'170px'}); + $('#divElement').css({'margin-top':'250px'}); + + $('.data-table').css({'left':'40px','bottom':bottom+'px','height':height+'px','width':'1230px'}); + $('#tousseItemBox').css({'height':(height-80)+'px'}); + $('.zhuangzai-table').css({'height':(height+200)+'px','bottom':'90px','width':'650px'}); + + if(isIE()){ + $('.mbody').css('zoom',0.6*(105/getRatio())); + } + }else if(screenHeight>790 && screenHeight<810){ + $('.mbody').css({'width':'1920px'}); + $('.add-form .name,.add-form .operator,.add-form .recyclingTime').css({'top':'-30px'}); + $('.add-form .depart,.add-form .appType,.add-form .applyTime').css({'top':'40px'}); + $('.add-form .remark,.add-form .communicationUserName').css({'top':'110px'}); + $('.add-form .add,.add-form .add2').css({'margin-top':'170px'}); + $('#divElement').css({'margin-top':'250px','right':'180px'}); + + $('.data-table').css({'left':'40px','bottom':'55px','height':'580px'}); + $('#tousseItemBox').css({'height':'500px'}); + $('.zhuangzai-table').css({'height':'820px','bottom':'55px','right': '50px'}); + + if(isIE()){ + $('.mbody').css({'zoom':0.6348*(105/getRatio())}); + } + }else { + var height = 935; + var bottom = 80; + if(source == ''){ + height = 905; + bottom = 110; + } + $('.mbody').css({'width':'1920px','height':'1460px'}); + $('.add-form').css({'top':'45px'}); + $('.add-form .name,.add-form .operator,.add-form .recyclingTime').css({'top':'40px'}); + $('.add-form .depart,.add-form .appType,.add-form .applyTime').css({'top':'120px'}); + $('.add-form .remark,.add-form .communicationUserName').css({'top':'200px'}); + $('.add-form .add,.add-form .add2,.add-form .addQM').css({'margin-top':'240px'}); + $('#divElement').css({'margin-top':'325px','right':'180px'}); + + $('.data-table').css({'left':'30px','bottom':bottom+'px','height':height+'px'}); + $('#tousseItemBox').css({'height':(height-80)+'px'}); + $('.zhuangzai-table').css({'height':(height+200)+'px','bottom':'85px','right': '50px'}); + if(isIE()){ + $('.mbody').css('zoom',0.6348*(105/getRatio())); + } + } + }else if(screenWidth>1350 && screenWidth<1370){ + var height = 550; + var bottom = 80; + if(source == ''){ + height = 520; + bottom = 110; + } + $('.mbody').css({'width':'2030px'}); + $('.add-form .name,.add-form .operator,.add-form .recyclingTime').css({'top':'-30px'}); + $('.add-form .depart,.add-form .appType,.add-form .applyTime').css({'top':'40px'}); + $('.add-form .remark,.add-form .communicationUserName').css({'top':'110px'}); + $('.add-form .add,.add-form .add2').css({'margin-top':'170px'}); + $('#divElement').css({'margin-top':'250px'}); + + $('.data-table').css({'left':'40px','bottom':bottom+'px','height':height+'px','width':'1230px'}); + $('#tousseItemBox').css({'height':(height-80)+'px'}); + $('.zhuangzai-table').css({'height':(height+200)+'px','bottom':'100px','right': '75px'}); + + if(isIE()){ + $('.mbody').css('zoom',0.6416*(105/getRatio())); + } + }else if(screenWidth>1390 && screenWidth<1450){ + var height = 580; + $('.mbody').css({'width':'1920px'}); + $('.add-form .name,.add-form .operator,.add-form .recyclingTime').css({'top':'-30px'}); + $('.add-form .depart,.add-form .appType,.add-form .applyTime').css({'top':'40px'}); + $('.add-form .remark,.add-form .communicationUserName').css({'top':'110px'}); + $('.add-form .add,.add-form .add2').css({'margin-top':'170px'}); + $('#divElement').css({'margin-top':'255px','right':'180px'}); + + $('.data-table').css({'left':'40px','bottom':'50px','height':height+'px'}); + $('#tousseItemBox').css({'height':(height-80)+'px'}); + $('.zhuangzai-table').css({'height':(height+260)+'px','bottom':'70px','right': '50px'}); + + if(isIE()){ + $('.mbody').css({'zoom':0.714*(105/getRatio())}); + } + }else if(screenWidth>1590 && screenWidth<1610){ + var height = 570; + if(source == ''){ + height = 540; + } + $('.mbody').css({'width':'2010px','height':(height+510)+'px'}); + $('.add-form .name,.add-form .operator,.add-form .recyclingTime').css({'top':'-30px'}); + $('.add-form .depart,.add-form .appType,.add-form .applyTime').css({'top':'40px'}); + $('.add-form .remark,.add-form .communicationUserName').css({'top':'110px'}); + $('.add-form .add,.add-form .add2').css({'margin-top':'170px'}); + $('#divElement').css({'margin-top':'250px'}); + + $('.data-table').css({'left':'30px','bottom':'70px','height':height+'px','width':'1220px'}); + $('#tousseItemBox').css({'height':(height-80)+'px'}); + $('.zhuangzai-table').css({'height':(height+200)+'px','bottom':'100px','right': '75px'}); + if(isIE()){ + $('.mbody').css('zoom',0.7583*(105/getRatio())); + } + }else if(screenWidth>1910 && screenWidth<1930){ + var height = 570; + if(source == ''){ + height = 540; + } + $('.mbody').css({'width':'1994px'}); + $('.data-table').css({'left':'55px','bottom':'60px','height':height+'px','width':'1190px'}); + $('#tousseItemBox').css({'height':(height-80)+'px'}); + $('#divElement').css({'margin-top':'250px','right':'150px'}); + if(isIE()){ + $('.mbody').css('zoom',0.9166*(105/getRatio())); + } + } }); var newTimer = null; function newAlert(msg){ @@ -474,228 +712,6 @@ - Index: ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/awaitForRecycleList.jsp =================================================================== diff -u -r27858 -r27876 --- ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/awaitForRecycleList.jsp (.../awaitForRecycleList.jsp) (revision 27858) +++ ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/awaitForRecycleList.jsp (.../awaitForRecycleList.jsp) (revision 27876) @@ -22,6 +22,7 @@ 回收清点