zhuguifei
2026-03-10 58402bd5e762361363a0f7d7907153c77dbb819f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>成型机监控-ZL26C</title>
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="上海兰宝数据采集系统,卷接包数据采集" />
<meta name="author" content="leejean" />
<jsp:include page="../../initlib/initAll.jsp"></jsp:include>
<style type="text/css">
*{font-family: "Microsoft YaHei","微软雅黑","宋体",Arial;list-style-type :none;padding:0px;margin:0px;}
    .outIn-tab{margin-left:30px;}
    .outIn-tab tr{height:25px;}
    .outIn-title{width: 140px;text-align: right;font-weight: bold;color: #257cbe;font-size: 14px;float: left;}
    .outIn-value{color: blue;font-weight: bold;float: left;}    
    #error-tab tr{height:30px;}
    .error-flag{width:20px;height:20px;display: block;margin-top: 7px;background:url(${pageContext.request.contextPath}/pms/isp/img/red.gif) no-repeat;background-size: 100%;}
    .normal-flag{width:20px;height:20px;display: block;    background:url(${pageContext.request.contextPath}/pms/isp/img/green.gif) no-repeat;background-size: 100%;}    
    .craft-tab tr{height:25px;}
    .craft-title{float: left;font-size: 14px;width:100px;text-align: right;font-weight: bold;color: #257cbe;}
    .craft-value{float: left;font-size: 14px;width:110px;text-align: left;font-weight: bold;color: blue;}
        .info_box{
        width: 100%;
        height:190px;
        overflow: hidden;
        padding-bottom: 10px;
        min-width: 1315px;
    }
    #tt,.tt_title{min-width:1330px;}
    h1 {
        margin: 10px 0;
        font-size: 16px;
        font-weight: bold;
        text-align: center;
        line-height: 26px;
        border: 1px solid #95B8E7;
        border-bottom: 1px solid #008597;
        background: linear-gradient(top , rgb(222, 244, 250) 8% , rgb(198, 234, 246) 94%);
        background: -o-linear-gradient(top , rgb(222, 244, 250) 8% , rgb(198, 234, 246) 94%);
        background: -ms-linear-gradient(top , rgb(222, 244, 250) 8% , rgb(198, 234, 246) 94%);
        background: -moz-linear-gradient(top , rgb(222, 244, 250) 8% , rgb(198, 234, 246) 94%);
        background: -webkit-linear-gradient(top , rgb(222, 244, 250) 8% , rgb(198, 234, 246) 94%);
        color: #257cbe;
        border-radius: 4px 4px 0px 0px;
        margin-bottom: 2px;
    }
    .tt_title{
        margin: 10px 0;
        font-size: 18px;
        font-weight: bold;
        text-align: center;
        line-height: 38px;
        border: 1px solid #95B8E7;
        border-bottom: 2px solid #008597;
        background-color: #E0ECFF;
        background: -webkit-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
        background: -moz-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
        background: -o-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
        background: linear-gradient(to bottom,#EFF5FF 0,#E0ECFF 100%);
        background-repeat: repeat-x;
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#E0ECFF,GradientType=0);
        border-color: #95B8E7;
        color: #299DD3;
        border-radius: 4px 4px 0px 0px;
        margin-bottom: 2px;
    }
    .zb45{
        float: left;
        border: 1px solid #95B8E7;
        margin-top: 10px;
        font-size: 14px;
        font-weight: bold;
        padding-top: 8px;
        border-radius: 4px;
        background: radial-gradient(center , circle cover , rgb(251, 253, 253) , rgb(211, 236, 236) 95%);
        background: -o-radial-gradient(center , circle cover , rgb(251, 253, 253) , rgb(211, 236, 236) 95%);
        background: -ms-radial-gradient(center , circle cover , rgb(251, 253, 253) , rgb(211, 236, 236) 95%);
        background: -moz-radial-gradient(center , circle cover , rgb(251, 253, 253) , rgb(211, 236, 236) 95%);
        background: -webkit-radial-gradient(center , circle cover , rgb(251, 253, 253) , rgb(211, 236, 236) 95%);
        color: #257cbe;
        width: 44%;
        min-width:596px;
        height: 170px;
    }
    .info-div {
        float: left;
        border: 1px solid #95B8E7;
        width:18%;
        min-width: 240px;
        margin-left: 15px;
        height: 170px;
        margin-top: 10px;
        font-size: 14px;
        font-weight: bold;
        padding-top: 8px;
        border-radius: 4px;
        background: linear-gradient(top , rgb(222, 244, 250) 8% , rgb(198, 234, 246) 94%);
        background: -o-linear-gradient(top , rgb(222, 244, 250) 8% , rgb(198, 234, 246) 94%);
        background: -ms-linear-gradient(top , rgb(222, 244, 250) 8% , rgb(198, 234, 246) 94%);
        background: -moz-linear-gradient(top , rgb(222, 244, 250) 8% , rgb(198, 234, 246) 94%);
        background: -webkit-linear-gradient(top , rgb(222, 244, 250) 8% , rgb(198, 234, 246) 94%);
        color: #257cbe;
    }
    .info-tab{font-size:14px;width:250px;margin-left: 20px;}
    .info-tab tr{height:25px;}
    .tab-val{color:blue;width:65px;}
    .tab-tt{width:90px;font-weight:bold;}
    .info_gy{width: 34.5%;min-width: 458px;float: left;margin-left: 15px;margin-top: 0px;}
    .outIn-tab {padding-left: 8px;border-radius: 4px;border: 1px solid #95B8E7;height: 148px;margin: 0;}
</style>
<script type="text/javascript">
    function getArgsFromHref(sArgName){ 
        var sHref = window.location.href; 
        //CuPlayer.com提示:测试数据 
        //实际情况是用window.location.href得到URL 
        var args = sHref.split("?"); 
        var retval = ""; 
        if(args[0] == sHref) /*参数为空*/ 
        { 
            return retval; /*CuPlayer.com提示:无需做任何处理*/ 
        } 
        var str = args[1]; 
        args = str.split("&"); 
        for(var i = 0; i < args.length; i++ ) 
        { 
        str = args[i]; 
        var arg = str.split("="); 
        if(arg.length <= 1) continue; 
        if(arg[0] == sArgName) retval = arg[1]; 
        } 
        return retval; 
    }
    var code = getArgsFromHref("code");
    function loadData(){
        var error={"width":"20px","height":"20px","display":" block","margin-top":" 7px","background":"url(${pageContext.request.contextPath}/pms/isp/img/red.gif) no-repeat","background-size":" 100%"}
        var normal={"width":"20px","height":"20px","display":" block","margin-top":" 7px","background":"url(${pageContext.request.contextPath}/pms/isp/img/green.gif) no-repeat","background-size":" 100%"}
            //刷新包装机
            //$.post("${pageContext.request.contextPath}/isp/getFormatted.do",{"code":code},function(json){
            $.post("${pageContext.request.contextPath}/isp/getAllData.do",{"machineType":3,"type":1},function(datas){
                if(datas.success){
                    datas=datas.msg;
                    datas=$.parseJSON(datas);
                    console.info(datas.length);
                    for(var i=0;i<datas.length;i++){
                        var json = datas[i];
                        var code2= json.equipmentCode;
                        if(code2==code){
                            var data = json.allData;
                            var online = json.online;
                            if(online==1){
                                $("#bzj-yxzt").html("网络正常");
                            }else{
                                $("#bzj-yxzt").html("网络断开");
                            }
                            //车速
                            $("#bzj-cur-speech").html(json.speed);
                            //产量
                            $("#bzj-clsj").html(json.qty);
                            //运行时间
                             $("#bzj-run-time").html((json.runTime/60).toFixed(2));
                            //停机时间
                             $("#bzj-stop-time").html((json.stopTime/60).toFixed(2));
                            //停机次数
                            $("#bzj-stop-times").html(json.stopTimes);
                            //剔除
                            $("#bzj-tc").html(json.badQty);
                            //盘纸消耗
                            $("#bzj-pzxh").html(json.panzhiVal);
                        }//--if
                    }}
        },"JSON");    
    }                    
    window.setInterval("loadData()",6000);
</script>
 
</head>
<body>
<div class="tt_title"> 实时监控</div>
<div id="tt"  style="width:100%;height:100%;" >  
    <div class="info_box" >
        <div class="zb45">        
             <img src="${pageContext.request.contextPath}/pms/isp/img/filter_det.png" style="width:538px;height:169px;margin: 0 auto;display: block;"/>
         </div>
         <div class="info-div">
             <table class="info-tab">
                 <tr>
                     <td class="tab-tt">运行状态:</td>
                     <td id="bzj-yxzt" colspan="2"></td>
                 </tr>
                 <tr>
                     <td class="tab-tt">车&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;速:</td>
                     <td id="bzj-cur-speech" class="tab-val">0</td>
                     <td class="unit">包/分</td>
                 </tr>
                 <tr>
                     <td class="tab-tt">运行时间:</td>
                     <td id="bzj-run-time" class="tab-val">0</td>
                     <td class="unit">分钟</td>
                 </tr>                 
                 <tr>
                     <td class="tab-tt">停机次数:</td>
                     <td id="bzj-stop-times" class="tab-val">0</td>
                     <td class="unit">次</td>
                 </tr>
                 <tr>
                     <td class="tab-tt">停机时间:</td>
                     <td id="bzj-stop-time" class="tab-val">0</td>
                     <td class="unit">分钟</td>
                 </tr>
             </table>
         </div>
         <%-- <div class="info_gy">
            <h1>工艺数据</h1>
            <div class="outIn-tab">
                <table style="margin-top:15px;line-height: 35px;" class="craft-tab">
                    <tr>
                        <td class="craft-title">工艺数据1:</td><td class="craft-value"><span>10</span>单位</td>
                        <td class="craft-title">工艺数据2:</td><td class="craft-value"><span>10</span>包</td>
                        <td class="craft-title">工艺数据3:</td><td class="craft-value"><span>10</span>单位</td>
                        <td class="craft-title">工艺数据4:</td><td class="craft-value"><span>10</span>单位</td>
                        <td class="craft-title">工艺数据5:</td><td class="craft-value"><span>10</span>单位</td>
                    </tr>
                </table>
            </div>
            <div style="clear:both;"></div>
        </div>  
         <div style="clear:both;"></div> --%>
    </div> 
    <div>  
    <h1>产耗数据</h1>
            <div style="padding: 10px 0px 0px 30px;line-height:53px;">
            <ul >
                <li style="border-bottom: 1px solid #008597;width: 98%;">
                    <div colspan="5" style="text-align:left;font-size:16px;font-weight:bold;color:green;float: left;">产量</div>
                    <div class="outIn-title">实时产量:</div><div class="outIn-value"><span id="bzj-clsj">0</span>万支</div>
                    <div class="outIn-title">实时剔除:</div><div class="outIn-value"><span id="bzj-tc">0</span>支</div>
                    <div class="outIn-title">盘纸消耗:</div><div class="outIn-value"><span id="bzj-pzxh">0</span>米</div>
                </li>
                
                <div style="clear:both;"></div>
            </ul>
            </div>
    </div>
      
</div>
 
</body>
</html>