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
<%@ 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($("#mdEquCategoryType"),"EQPCATEGORY",false);
    });
</script>
    <div style="overflow: hidden;padding:5px">
        <form id="form" method="post">
            <fieldset>
            <c:if test="${mdEqpTypeBean.id==null }">
            <legend>设备型号新增</legend>
            </c:if>
            <c:if test="${mdEqpTypeBean.id!=null }">
            <legend>设备型号修改</legend>
            </c:if>
                <table class="table" style="width: 100%;">
 
                    <tr>
                        <th>设备类型名称</th>
                        <td>
                        <c:if test="${mdEqpTypeBean.id==null }">
                        <samp>${mdEqpTypeBean.categoryName }</samp>
                        <input type="hidden" name="categoryId"  value="${mdEqpTypeBean.categoryId }"/>            
                        </c:if>
                        <c:if test="${mdEqpTypeBean.id!=null }">
                        <input  id="mdEquCategoryType" name="categoryId" data-options="panelHeight:'auto',width:100,editable:false" value="${mdEqpTypeBean.categoryId }"/>            
                        </c:if>
                                        
                            
                        </td>
                        <th>设备型号名称</th>
                        <td>
                            <input type="text" name="name" class="easyui-validatebox" data-options="required:true" value="${mdEqpTypeBean.name }"/>
                        </td>
                    </tr>
                    <tr>
                        <th>设备型号编码</th>
                        <td>                     <input name="id" type="hidden" value="${mdEqpTypeBean.id}"/> 
                            <input type="text" name="code" class="easyui-validatebox" data-options="required:true" value="${mdEqpTypeBean.code }" />
                        </td>
                        <th>是否启用</th>
                        <td>
                            <select name="enable" class="easyui-combobox fselect" data-options="panelHeight:'auto'" value="${mdEqpTypeBean.enable }">
                                <option value="1">启用</option>
                                <option value="0">禁用</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th>设备型号描述</th>
                        <td>
                            <input type="text" name="des" class="easyui-validatebox" data-options="required:true" value="${mdEqpTypeBean.des }"/>
                        </td>
                        <th></th>
                        <td>
                        
                        </td>
                    </tr>
                
                </table>
            </fieldset>
        </form>
    </div>