<%@ 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">
|
|
var zjId =$("#EqpLubriBeanId").val();
|
/**请求所有角色名称 */
|
var roleId = '${bean.roleId}';
|
$.ajax( {
|
type:'POST',
|
url:'${pageContext.request.contextPath}/pms/eqMaintain/getRoleAll.do',// 跳转到 action
|
data:null,
|
asyn:false,
|
dataType:'json',
|
success:function(data) {
|
data.unshift({name:"全部",id:""});
|
$("#roleId").combobox({
|
data:data,
|
textField:'name',
|
valueField:'id',
|
onSelect: function () {
|
$("#spePerson").attr("value",$("#roleId").combobox('getText'));
|
}
|
})
|
$("#roleId").combobox('setValue',roleId);
|
},error:function() {
|
alert("异常!");
|
}
|
});
|
</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>
|
<table class="table" style="width:97%;">
|
<tr>
|
<th>一级名称</th>
|
<td>
|
<samp>${bean.categoryName }</samp>
|
<input type="hidden" name="categoryId" value="${bean.categoryId }"/>
|
</td>
|
<th>是否启用</th>
|
<td>
|
<c:if test="${bean.enable==1}">
|
<select name="enable" class="easyui-combobox fselect"
|
data-options="panelHeight:'auto',width:176,editable:false,required:true"
|
value="${bean.enable}">
|
<option value="1" selected="selected">启用</option>
|
<option value="0" >禁用</option>
|
</select>
|
</c:if>
|
<c:if test="${bean.enable==0}">
|
<select name="enable" class="easyui-combobox fselect"
|
data-options="panelHeight:'auto',width:176,editable:false,required:true"
|
value="${bean.enable}">
|
<option value="1" >启用</option>
|
<option value="0" selected="selected">禁用</option>
|
</select>
|
</c:if>
|
</td>
|
</tr>
|
<tr>
|
<th>润滑序号</th>
|
<td>
|
<input name="id" id="EqpLubriBeanId" type="hidden" value="${bean.id}"/>
|
<input name="num" id="num" type="text" class="easyui-validatebox" data-options="width:176,editable:true,prompt:'请输入设备序号'" value="${bean.num}"/>
|
|
</td>
|
<th>设备部位</th>
|
<td>
|
<input id="equLocation" name="equLocation" type="text" class="easyui-validatebox" data-options="width:176,editable:true,prompt:'请输入设备部位'" value="${bean.equLocation}"/>
|
</td>
|
|
</tr>
|
<tr>
|
<th>润滑部位</th>
|
<td>
|
<input id="lubPosition" name="lubPosition" type="text" class="easyui-validatebox" data-options="panelHeight:'auto',width:175,editable:false,prompt:'请输入润滑部位'" value="${bean.lubPosition}"/>
|
</td>
|
<th>定点点数</th>
|
<td>
|
<input id="fixedPoints" name="fixedPoints" type="text" class="easyui-validatebox" data-options="panelHeight:'auto',width:175,editable:false,prompt:'请输入定点点数'" value="${bean.fixedPoints}"/>
|
</td>
|
</tr>
|
<tr>
|
<th>定质润滑油(脂)</th>
|
<td>
|
<input id="lubOil" name="lubOil" type="text" class="easyui-validatebox" data-options="width:176,editable:false,prompt:'请输入定质润滑油(脂)'" value="${bean.lubOil}"/>
|
</td>
|
<th>定法润滑方式</th>
|
<td>
|
<input id="lubMethod" name="lubMethod" type="text" class="easyui-validatebox" data-options="panelHeight:'auto',width:175,editable:false,prompt:'请输入定法润滑方式'" value="${bean.lubMethod}"/>
|
</td>
|
</tr>
|
<tr>
|
<th>标准用量</th>
|
<td>
|
<input id="changeOilDosage" name="changeOilDosage" type="text" class="easyui-validatebox" data-options="width:176,editable:false,prompt:'请输入标准用量'" value="${bean.changeOilDosage}"/>
|
</td>
|
<th>标准周期</th>
|
<td>
|
<input id="changeOilCycle" name="changeOilCycle" type="text" class="easyui-validatebox" data-options="panelHeight:'auto',width:175,editable:false,prompt:'请输入标准周期'" value="${bean.changeOilCycle}"/>
|
</td>
|
</tr>
|
<tr>
|
<th>定量数量</th>
|
<td>
|
<input id="quaQuantity" name="quaQuantity" type="text" class="easyui-validatebox" data-options="width:176,editable:false,prompt:'请选择定量数量'" value="${bean.quaQuantity}"/>
|
</td>
|
<th>定量单位</th>
|
<td>
|
<input id="quaUnit" name="quaUnit" type="text" class="easyui-validatebox" data-options="panelHeight:'auto',width:175,editable:false,prompt:'请选择定量单位'" value="${bean.quaUnit}"/>
|
</td>
|
</tr>
|
<tr>
|
<th>备注</th>
|
<td>
|
<input id="des" name="des" type="text" class="easyui-validatebox" data-options="required:false'" value="${bean.des}"/>
|
</td>
|
<%-- <th>最后修改人</th>
|
<td>
|
<input id="lastUpdateName" name="lastUpdateName" class="easyui-combobox" data-options="required:true" value="${bean.lastUpdateName}"/>
|
</td> --%>
|
<th>指定人</th>
|
<td >
|
<select id="roleId" name="roleId" class="easyui-combobox" data-options="width:176,editable:false" >
|
<option value="">全选</option>
|
<option value="111111">操作工</option>
|
<option value="22222">润滑工</option>
|
</select>
|
<input type="hidden" id="spePerson" name="spePerson" value="${bean.spePerson}" class="easyui-validatebox"/>
|
</td>
|
</tr>
|
<!-- <tr>
|
<th>角色ID</th>
|
<td>
|
<input id="roleId" name="roleId" class="easyui-combobox" data-options="panelHeight:'auto',width:175,editable:false,required:true,prompt:'请选择角色ID'"/>
|
</td>
|
</tr> -->
|
<tr>
|
|
<th>班次</th>
|
<td>
|
<input id="shiftId" name="shiftId" class="easyui-combobox" value="${bean.shiftId }" data-options="panelHeight:'auto',width:175,editable:false,required:true,prompt:'请选择班次',
|
valueField: 'value',
|
textField: 'label',
|
data: [{
|
label: '全部',
|
value: 0
|
},{
|
label: '早班',
|
value: 1
|
},{
|
label: '中班',
|
value: 2
|
},{
|
label: '晚班',
|
value: 3
|
}]"
|
|
/>
|
</td>
|
</tr>
|
</table>
|
</fieldset>
|
</form>
|
</div>
|
</div>
|