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
| <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
| <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
| <script type="text/javascript">
| var maintencemanGrid;
| $(function(){
| maintencemanGrid = $('#maintencemanGrid').datagrid({
| url: "${pageContext.request.contextPath}/pms/eqpMaintain/queryMaintenanceman.do",
| fit : true,
| fitColumns : true,
| border : false,
| striped : true,
| rownumbers :false,
| singleSelect:true,
| checkOnSelect : true,
| selectOnCheck : false,
| nowrap : false,
| showPageList:false,
| columns : [ [ {
| field : 'userId',
| title : '编号',
| width : 150,
| hidden:true
| },{
| field : 'shiftId',
| title : '班次id',
| align:'center',
| width : 80,
| hidden:true,
| sortable : true
| }, {
| field : 'path',
| title : '照片',
| align:'center',
| width : 80,
| height : 100,
| sortable : true,
| formatter : function(path,row){return'<img src='+path+' style="width:80px;height:100px;">'}
| }, {
| field : 'userName',
| title : '姓名',
| width : 60,
| align:'center',
| sortable : true
| }, {
| field : 'teamId',
| title : '班组',
| align:'center',
| width : 60,
| sortable : true
| }, {
| field : 'status',
| title : '状态',
| align:'center',
| width : 60,
| sortable : true,
| formatter: function(value,row,index){
| if (value==0){
| return '<font color="green">在线</font>';
| } else if(value==1){
| return '<font color="red">忙碌</font>';
| } else if(value==2){
| return '<font color="red">离线</font>';
| }
| }
| },{
| field : 'typeId',
| title : '维修工类别',
| align:'center',
| width : 100,
| formatter: function(value,row,index){
| if (value==1){
| return '<font>机械维修工</font>';
| } else if(value==2){
| return '<font >电气维修工</font>';
| } else if(value==3){
| return '<font >维修主管</font>';
| }
| },
| sortable : true
| },{
| field : 'eqpType',
| title : '维修设备',
| align:'center',
| width : 100,
| formatter:function(value,row,index){
| if (value==1){
| return '<font>卷烟机</font>';
| } else if(value==2){
| return '<font >包装机</font>';
| }
| }
| }] ],
| });
| });
| </script>
| <div class="easyui-layout" data-options="fit : true,border : false">
| <div data-options="region:'center',border:false">
| <table id="maintencemanGrid"></table>
| </div>
| </div>
|
|