zhuguifei
2026-03-10 2c1fd10c6fbabb8e9f0e9f07fe66fb36c008e883
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
<%@ 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" src="${pageContext.request.contextPath }/pms/pub/combobox/comboboxUtil.js" charset="utf-8"></script>
<script type="text/javascript">
$(function(){
    $.loadComboboxData($("#eqpTypebox"),"EQPTYPE","true");
});
 
//
 
</script>
<div class="easyui-layout" data-options="fit:true,border:false">
    <div data-options="region:'center',border:false" title="" style="overflow: hidden;padding:5px">
        <form id="form" method="post">
            <fieldset>
                <legend>一级数据修改</legend>
                <table class="table" style="width: 100%;">
                     
                    <tr>
                        <th>一级编码</th>
                        <td><input name="id" type="hidden" value="${mdCategory.id}"/>
                            <input type="text" name="code" class="easyui-validatebox" data-options="required:true" value="${mdCategory.code }" />
                        </td>
                        <th>一级名称</th>
                        <td>
                            <input type="text" name="name" class="easyui-validatebox" data-options="required:true" value="${mdCategory.name }"/>
                        </td>
                    </tr>
                    <tr>
                        <th>数据描述</th>
                        <td>
                            <input type="text" name="des" class="easyui-validatebox" data-options="required:true" value="${mdCategory.des }"/>
                        </td>
                        <th>是否启用</th>
                        <td>
                            <c:if test="${mdCategory.enable==1}">
                                <select name="enable" class="easyui-combobox fselect"
                                    data-options="panelHeight:'auto',width:176,editable:false,required:true"
                                    value="${mdCategory.enable}">
                                        <option value="1" selected="selected">启用</option>
                                        <option value="0" >禁用</option>
                                </select>
                            </c:if>
                            <c:if test="${mdCategory.enable==0}">
                                <select name="enable" class="easyui-combobox fselect"
                                    data-options="panelHeight:'auto',width:176,editable:false,required:true"
                                    value="${mdCategory.enable}">
                                        <option value="1" >启用</option>
                                        <option value="0" selected="selected">禁用</option>
                                </select>
                            </c:if>
                        </td>
                    </tr>
                    <tr>
                        <th>设备机型</th>
                        <td>
                            <input id="eqpTypebox" type="text" name="eqpType" class="easyui-combobox" value="${mdCategory.eqpType }"  />
                        </td>
                        <th>保养类别</th>
                        <td>
                            <select name="maintainaceType" class="easyui-combobox fselect"
                                data-options="panelHeight:'auto',width:176,editable:false,required:true">
                                    <option value="1" <c:if test="${mdCategory.maintainaceType=='1'}">selected="selected"</c:if>>轮保</option>
                                    <option value="2" <c:if test="${mdCategory.maintainaceType=='2'}">selected="selected"</c:if>>润滑</option>
                                    <option value="3" <c:if test="${mdCategory.maintainaceType=='3'}">selected="selected"</c:if>>检修</option>
                                    <option value="4" <c:if test="${mdCategory.maintainaceType=='4'}">selected="selected"</c:if>>周期性保养</option>
                                    <option value="5" <c:if test="${mdCategory.maintainaceType=='5'}">selected="selected"</c:if>>点检</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th>周期类型</th>
                        <td>
                            <select name="cycleType" class="easyui-combobox fselect"
                                data-options="panelHeight:'auto',width:176,editable:false,required:true">
                                    <option value="">全部</option>
                                    
                                    <option value="4" <c:if test="${mdCategory.cycleType=='4'}">selected="selected"</c:if>>年</option>
                            <option value="1" <c:if test="${mdCategory.cycleType=='1'}">selected="selected"</c:if>>月</option><!--1月检,2周检,3日检 -->
                                    <option value="2" <c:if test="${mdCategory.cycleType=='2'}">selected="selected"</c:if>>周</option>
                                    <option value="3" <c:if test="${mdCategory.cycleType=='3'}">selected="selected"</c:if>>日</option>        
                            </select>
                        </td>
                        <th>周期时间</th>
                        <td>
                            <select name="cycleNum" class="easyui-combobox fselect"
                                data-options="panelHeight:'300',width:176,editable:false,required:true">
                                    <option value="">全部</option>
                                    <option value="1" <c:if test="${mdCategory.cycleNum=='1'}">selected="selected"</c:if> >1</option><!-- H:小时 S:班  D:天  W:周   M:月  Y:年 -->
                                    <option value="2" <c:if test="${mdCategory.cycleNum=='2'}">selected="selected"</c:if> >2</option>
                                    <option value="3" <c:if test="${mdCategory.cycleNum=='3'}">selected="selected"</c:if> >3</option>
                                    <option value="4" <c:if test="${mdCategory.cycleNum=='4'}">selected="selected"</c:if> >4</option>
                                    <option value="5" <c:if test="${mdCategory.cycleNum=='5'}">selected="selected"</c:if> >5</option>
                                    <option value="6" <c:if test="${mdCategory.cycleNum=='6'}">selected="selected"</c:if> >6</option>
                                    <option value="7" <c:if test="${mdCategory.cycleNum=='7'}">selected="selected"</c:if> >7</option>
                                    <option value="8" <c:if test="${mdCategory.cycleNum=='8'}">selected="selected"</c:if> >8</option>
                                    <option value="9" <c:if test="${mdCategory.cycleNum=='9'}">selected="selected"</c:if> >9</option>
                            </select>
                        </td>
                    </tr>
                </table>
            </fieldset>
        </form>
    </div>
</div>