| | |
| | | |
| | | List<ShelfRack> ranks = shelfRackDao.findBystate(); |
| | | for (ShelfRack rank : ranks) { |
| | | if (rank.getState().equals(RackState.IN_WORK) || rank.getState().equals(RackState.ON_WAITING)) { |
| | | if (rank.getRawPackage()!=null&&(rank.getState().equals(RackState.IN_WORK) || rank.getState().equals(RackState.ON_WAITING))) { |
| | | |
| | | html.append("<tr>"); |
| | | html.append("<td><input type='checkbox' name='id' value="+rank.getId() +" /></td>"); |
| | |
| | | <li class='item_divider'></li> |
| | | <li><a href="${ctx }/mesview/_ReportForm_merge"> åçåè£çæ¥è¡¨</a></li> |
| | | <li class='item_divider'></li> |
| | | <li><a href="${ctx }/mesview/_Edg_Statistics?group=1"> 磨边å¼åæ¥è¡¨</a></li> |
| | | <li class='item_divider'></li> |
| | | <li><a href="${ctx }/mesview/_DT_dapingxianshi" target="_blank"> 大屿¾ç¤º</a></li> |
| | | <li class='item_divider'></li> |
| | | </ul> |
| | |
| | | <li><a href="${ctx }/reportform/cutmanagerepoortform1"> å岿»æ¥è¡¨</a></li> |
| | | <li class='item_divider'></li> |
| | | <li><a href="${ctx }/mesview/_ReportForm_merge"> åçåè£çæ¥è¡¨</a></li> |
| | | <li class='item_divider'></li> |
| | | <li><a href="${ctx }/mesview/_Edg_Statistics?group=1"> 磨边å¼åæ¥è¡¨</a></li> |
| | | <li class='item_divider'></li> |
| | | </ul> |
| | | </div> |
| | |
| | | <li class='item_divider'></li> |
| | | <li><a href="${ctx }/mesview/_ReportForm_merge"> åçåè£çæ¥è¡¨</a></li> |
| | | <li class='item_divider'></li> |
| | | <li><a href="${ctx }/mesview/_Edg_Statistics?group=1"> 磨边å¼åæ¥è¡¨</a></li> |
| | | <li class='item_divider'></li> |
| | | <li><a href="${ctx }/mesview/_DT_dapingxianshi" target="_blank"> 大屿¾ç¤º</a></li> |
| | | <li class='item_divider'></li> |
| | | </ul> |
| | |
| | | <li class='item_divider'></li> |
| | | <li><a href="${ctx }/mesview/_ReportForm_merge"> åçåè£çæ¥è¡¨</a></li> |
| | | <li class='item_divider'></li> |
| | | <li><a href="${ctx }/mesview/_Edg_Statistics?group=1"> 磨边å¼åæ¥è¡¨</a></li> |
| | | <li class='item_divider'></li> |
| | | </ul> |
| | | </div> |
| | | </shiro:hasRole> |
| | |
| | | sn = mes.getMesDBHelper().createSession(false); |
| | | String strSQL = ""; |
| | | if ("æ¥è¯¢".equals(caozuo)) { |
| | | if ("磨边å¼åæ¥è¯¢".equals(leixing)) { |
| | | String stime = request.getParameter("stime"); |
| | | String etime = request.getParameter("etime"); |
| | | String trigger = request.getParameter("trigger"); |
| | | String Edg = request.getParameter("Edg"); |
| | | String banzu = request.getParameter("banzu"); |
| | | String gby=""; |
| | | //String isdb = request.getParameter("isdb"); |
| | | System.out.println(etime); |
| | | /* if("".equals(etime)||etime==null){ |
| | | etime="Now()"; |
| | | }else{ |
| | | etime="'"+etime+"'"; |
| | | } */ |
| | | if("".equals(Edg)||Edg==null||"0".equals(Edg)){ |
| | | Edg="width,height,SendTime,Line,count(*) as piece,ifnull(banzu,'')"; |
| | | gby="Recordsid"; |
| | | }else if("1".equals(Edg)){ |
| | | Edg="width,SendTime,Line,ifnull(banzu,''),count(*) as piece"; |
| | | gby="RecordsidW"; |
| | | }else if("2".equals(Edg)){ |
| | | Edg="height,SendTime,Line,ifnull(banzu,''),count(*) as piece"; |
| | | gby="RecordsidH"; |
| | | } |
| | | |
| | | if("".equals(banzu)||banzu==null||"0".equals(banzu)){ |
| | | banzu=""; |
| | | }else{ |
| | | banzu=" banzu='"+banzu+"' and"; |
| | | } |
| | | if("1".equals(trigger)){//æ¥è¯¢ |
| | | strSQL = "select "+Edg+" from Y_Edg_Statistics"+ |
| | | " where Line="+line+" and "+banzu+" SendTime>='"+stime+"' and SendTime<='"+etime+"'"+ |
| | | " GROUP BY "+gby; |
| | | }else{//é»è®¤ |
| | | strSQL ="select width,height,SendTime,Line,count(*) as piece,ifnull(banzu,'') from Y_Edg_Statistics"+ |
| | | " where Line="+line+" and SendTime>=CONCAT(DATE_FORMAT(Now(),'%Y-%m-%d'),' 00:00:00') and SendTime<=CONCAT(DATE_FORMAT(Now(),'%Y-%m-%d'),' 23:59:59')"+ |
| | | " GROUP BY Recordsid"; |
| | | } |
| | | System.out.println(strSQL); |
| | | |
| | | } |
| | | if ("æ¬¡ç ´ç±»å".equals(leixing)) { |
| | | strSQL = "select id,cipoleixing from cipoleixing"; |
| | | } |
| | |
| | | ], |
| | | yAxis: [ |
| | | { |
| | | type: 'value' |
| | | type: 'value', |
| | | min: 0, |
| | | max:80, |
| | | interval:10 |
| | | } |
| | | ], |
| | | series: [ |
| | |
| | | ], |
| | | yAxis: [ |
| | | { |
| | | type: 'value' |
| | | type: 'value', |
| | | min: 0, |
| | | max:80, |
| | | interval:10 |
| | | } |
| | | ], |
| | | series: [ |
| | |
| | | } |
| | | var gongyi = "磨边"; |
| | | var group = ${groups}; |
| | | var rTime = 20000; |
| | | var rTime = 5000; |
| | | </script> |
| | | <style> |
| | | .box table tr th, .box table tr td { |
| | |
| | | } |
| | | |
| | | //页é¢å®æ¶å·æ° æå æ¢å¤ |
| | | var interval = setInterval('refreshStatus()', rTime);//宿¶å·æ° |
| | | /* var interval = setInterval('refreshStatus()', rTime);//宿¶å·æ° |
| | | function refresh() { |
| | | interval = setInterval('refreshStatus()', rTime);//å·æ°æ¢å¤ |
| | | } |
| | | |
| | | function stopRefresh() { |
| | | clearInterval(interval);//忢巿° |
| | | } */ |
| | | var interval = setInterval('isStop()', rTime);//宿¶å·æ° |
| | | function isStop(){ //2024-1-10 yzx ä¿®æ¹ åå ï¼åå·æ°é¡µé¢æé®é¢ |
| | | var str=['baogong_info','div_banzu']; |
| | | var isInterval_=0; |
| | | for(var i=0;i<str.length;i++){ |
| | | var isdisplay=document.getElementById(str[i]).style.display; |
| | | if(isdisplay=='block'){ |
| | | //ä¸å·æ° |
| | | isInterval_=1; |
| | | break; |
| | | } |
| | | |
| | | $(function() { |
| | | } |
| | | if(isInterval_==0){ |
| | | //å·æ° |
| | | refreshStatus(); |
| | | } |
| | | } |
| | | /* $(function() { |
| | | |
| | | $('#baogong_info').on('hide.bs.modal', function() { |
| | | refresh(); |
| | |
| | | $('#div_banzu').on('show.bs.modal', function() { |
| | | stopRefresh(); |
| | | }) |
| | | }); |
| | | }); */ |
| | | |
| | | var st = ${able}; |
| | | if (st == 0) { |
| | |
| | | //qSQL = "update gmms_drop_frame_4 set rank = ?,sign=1 where Id = ?"; |
| | | qSQL = "update gmms_drop_frame_5 as dr left join gmms_drop_frame_5 as dr2 on dr.id="+Id+" and dr2.id="+liaoJiaId |
| | | +" set dr.rank=dr2.rank,dr.sign=0,dr2.sign=10" |
| | | +" where dr.id="+Id+" and dr2.id="+liaoJiaId+" and dr.rank is null"; |
| | | +" where dr.id="+Id+" and dr2.id="+liaoJiaId+" and dr.rank is null and dr.sign=0 and dr2.sign=0"; |
| | | sn.createSql(qSQL); |
| | | int s = sn.update(); |
| | | out.print(s); |
| | |
| | | String qSQL = ""; |
| | | |
| | | if ("è·åå表".equals(caozuo)) { |
| | | qSQL = "select id,galss_id,width,height,thickness,processcard_id,stop_rank,stop_position,work_procedure,work_state,gc_number,null from gmms_galss_task_shelf where work_procedure!='ä¸ç©ºä¸ç' and processcard_id=(select liuchengka from gmms_liuchengka where current_status='æ£å¨å·¥ä½' and current_work_position='çç' limit 0,1) order by processcard_id asc,stop_rank desc"; |
| | | qSQL = "select id,galss_id,width,height,thickness,processcard_id,stop_rank,stop_position,work_procedure,work_state,gc_number,null from gmms_galss_task_shelf " |
| | | + " where work_procedure!='ä¸ç©ºä¸ç' and processcard_id=(select lk.liuchengka from gmms_drop_frame_5 as dr5 " |
| | | + " left join gmms_shelf_rack_2 as sr on dr5.rank=sr.id " |
| | | + " left join gmms_liuchengka as lk on sr.processcard_id=lk.liuchengka " |
| | | + " where groups_=3 and drop_groups=1 and sr.id is not null and lk.liuchengka is not null and " |
| | | + " lk.current_status='æ£å¨å·¥ä½' and lk.current_work_position='çç' limit 0,1) order by processcard_id asc,stop_rank desc"; |
| | | } |
| | | |
| | | //System.out.println(qSQL); |
| | |
| | | } |
| | | if ("å½åçç»".equals(leixing)) { |
| | | gongyi = gongyi.contains("é¢å") ? "é¢å" : gongyi; |
| | | strSQL = "select banzu from gmms_user_current where gongyi= '" + gongyi + "' and chanxian = " |
| | | strSQL = "select banzu,isPaused from gmms_user_current where gongyi= '" + gongyi + "' and chanxian = " |
| | | + line; |
| | | } |
| | | if ("æµç¨å¡è¯¦æ
".equals(leixing)) { |
| | |
| | | if ("ä¿®æ¹".equals(caozuo)) { |
| | | if ("åæ´çç»".equals(leixing)) { |
| | | String bzinfo = request.getParameter("info"); |
| | | strSQL = "update gmms_user_current set banzu = '" + bzinfo + "' where gongyi = '" + gongyi |
| | | strSQL = "update gmms_user_current set banzu = '" + bzinfo + "',isPaused=null where gongyi = '" + gongyi |
| | | + "' and chanxian = " + line; |
| | | } |
| | | if("æ¬¡ç ´".equals(leixing)){ |
| | |
| | | sn.createSql(strSQL); |
| | | int s = sn.update(); |
| | | out.print(s); |
| | | |
| | | String bzSQL = "update gmms_user_current set isPaused='æå' where gongyi = '磨边' and chanxian = " + line; |
| | | sn.createSql(bzSQL); |
| | | int ps = sn.update(); |
| | | } |
| | | |
| | | |
| | |
| | | $("#cz_Zhuangtai").text("æå"); |
| | | //$("#cz_mingxi").text(data); |
| | | $("#CZ_Msg").modal('toggle'); |
| | | onChangeBanZu(); |
| | | }, |
| | | error : function(data) { |
| | | $("#CZ_Msg").modal('toggle'); |
| | |
| | | url : p_url, |
| | | success : function(data) { |
| | | var d = data[0][0]; |
| | | |
| | | var isstop=data[0][1]; |
| | | |
| | | if(d==null || d==""){ |
| | | //if(data.length==0){ |
| | |
| | | $("#btnBanZu").attr('style',"display:none"); */ |
| | | |
| | | } |
| | | if(isstop!=null &&isstop!=""){ |
| | | onChangeBanZu(); |
| | | } |
| | | |
| | | }, |
| | | error : function(data) { |
| | | |
| | |
| | | #Generated by Maven Integration for Eclipse |
| | | #Thu Jan 25 16:45:03 CST 2024 |
| | | #Tue May 07 16:23:17 CST 2024 |
| | | version=1.0-SNAPSHOT |
| | | groupId=com.northglass |
| | | m2e.projectName=MES_11 |
| | |
| | | #Generated by Maven |
| | | #Fri Dec 08 12:08:51 CST 2023 |
| | | #Mon Mar 18 11:50:57 CST 2024 |
| | | version=1.0-SNAPSHOT |
| | | groupId=com.northglass |
| | | artifactId=gmms2 |
| | |
| | | com\northglass\data\TaskData.class |
| | | com\northglass\repository\JpaMappingTest.class |
| | | com\northglass\repository\TaskDaoTest.class |
| | | com\northglass\QuickStartServer.class |
| | | com\northglass\service\account\AccountServiceTest.class |
| | | com\northglass\data\UserData.class |
| | |
| | | out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.evaluateExpression("${ctx }", java.lang.String.class, (PageContext)_jspx_page_context, null)); |
| | | out.write("/mesview/_ReportForm_merge\"> åçåè£çæ¥è¡¨</a></li>\r\n"); |
| | | out.write("\t\t\t\t\t<li class='item_divider'></li>\r\n"); |
| | | out.write("\t\t\t\t\t"); |
| | | out.write("\r\n"); |
| | | out.write("\t\t\t\t\t<li><a href=\""); |
| | | out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.evaluateExpression("${ctx }", java.lang.String.class, (PageContext)_jspx_page_context, null)); |
| | | out.write("/mesview/_DT_dapingxianshi\" target=\"_blank\"> 大屿¾ç¤º</a></li>\r\n"); |
| | |
| | | out.write("\t\t\t\t\t<li><a href=\""); |
| | | out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.evaluateExpression("${ctx }", java.lang.String.class, (PageContext)_jspx_page_context, null)); |
| | | out.write("/mesview/_ReportForm_merge\"> åçåè£çæ¥è¡¨</a></li>\r\n"); |
| | | out.write("\t\t\t\t\t<li class='item_divider'></li>\t\r\n"); |
| | | out.write("\t\t\t\t\t<li class='item_divider'></li>\r\n"); |
| | | out.write("\t\t\t\t\t"); |
| | | out.write("\r\n"); |
| | | out.write("\t\t\t\t</ul>\r\n"); |
| | | out.write("\t\t\t</div>\r\n"); |
| | | out.write("\t\t"); |
| | |
| | | out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.evaluateExpression("${ctx }", java.lang.String.class, (PageContext)_jspx_page_context, null)); |
| | | out.write("/mesview/_ReportForm_merge\"> åçåè£çæ¥è¡¨</a></li>\r\n"); |
| | | out.write("\t\t\t\t\t<li class='item_divider'></li>\r\n"); |
| | | out.write("\t\t\t\t\t"); |
| | | out.write("\r\n"); |
| | | out.write("\t\t\t\t\t<li><a href=\""); |
| | | out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.evaluateExpression("${ctx }", java.lang.String.class, (PageContext)_jspx_page_context, null)); |
| | | out.write("/mesview/_DT_dapingxianshi\" target=\"_blank\"> 大屿¾ç¤º</a></li>\r\n"); |
| | |
| | | out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.evaluateExpression("${ctx }", java.lang.String.class, (PageContext)_jspx_page_context, null)); |
| | | out.write("/mesview/_ReportForm_merge\"> åçåè£çæ¥è¡¨</a></li>\r\n"); |
| | | out.write("\t\t\t\t\t<li class='item_divider'></li>\r\n"); |
| | | out.write("\t\t\t\t\t"); |
| | | out.write("\r\n"); |
| | | out.write("\t\t\t\t</ul>\r\n"); |
| | | out.write("\t\t\t</div>\r\n"); |
| | | out.write("\t\t"); |
| | |
| | | sn = mes.getMesDBHelper().createSession(false); |
| | | String strSQL = ""; |
| | | if ("æ¥è¯¢".equals(caozuo)) { |
| | | if ("磨边å¼åæ¥è¯¢".equals(leixing)) { |
| | | String stime = request.getParameter("stime"); |
| | | String etime = request.getParameter("etime"); |
| | | String trigger = request.getParameter("trigger"); |
| | | String Edg = request.getParameter("Edg"); |
| | | String banzu = request.getParameter("banzu"); |
| | | String gby=""; |
| | | //String isdb = request.getParameter("isdb"); |
| | | System.out.println(etime); |
| | | /* if("".equals(etime)||etime==null){ |
| | | etime="Now()"; |
| | | }else{ |
| | | etime="'"+etime+"'"; |
| | | } */ |
| | | if("".equals(Edg)||Edg==null||"0".equals(Edg)){ |
| | | Edg="width,height,SendTime,Line,count(*) as piece,ifnull(banzu,'')"; |
| | | gby="Recordsid"; |
| | | }else if("1".equals(Edg)){ |
| | | Edg="width,SendTime,Line,ifnull(banzu,''),count(*) as piece"; |
| | | gby="RecordsidW"; |
| | | }else if("2".equals(Edg)){ |
| | | Edg="height,SendTime,Line,ifnull(banzu,''),count(*) as piece"; |
| | | gby="RecordsidH"; |
| | | } |
| | | |
| | | if("".equals(banzu)||banzu==null||"0".equals(banzu)){ |
| | | banzu=""; |
| | | }else{ |
| | | banzu=" banzu='"+banzu+"' and"; |
| | | } |
| | | if("1".equals(trigger)){//æ¥è¯¢ |
| | | strSQL = "select "+Edg+" from Y_Edg_Statistics"+ |
| | | " where Line="+line+" and "+banzu+" SendTime>='"+stime+"' and SendTime<='"+etime+"'"+ |
| | | " GROUP BY "+gby; |
| | | }else{//é»è®¤ |
| | | strSQL ="select width,height,SendTime,Line,count(*) as piece,ifnull(banzu,'') from Y_Edg_Statistics"+ |
| | | " where Line="+line+" and SendTime>=CONCAT(DATE_FORMAT(Now(),'%Y-%m-%d'),' 00:00:00') and SendTime<=CONCAT(DATE_FORMAT(Now(),'%Y-%m-%d'),' 23:59:59')"+ |
| | | " GROUP BY Recordsid"; |
| | | } |
| | | System.out.println(strSQL); |
| | | |
| | | } |
| | | if ("æ¬¡ç ´ç±»å".equals(leixing)) { |
| | | strSQL = "select id,cipoleixing from cipoleixing"; |
| | | } |