Files
SIPAIIS_WMS_JSSW/bin/WebRoot/jsp/material/inkInfoEdit.jsp

114 lines
3.5 KiB
Plaintext
Raw Permalink Normal View History

2026-01-16 14:13:44 +08:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<html>
<head>
<title></title>
<jsp:include page="../inc.jsp"></jsp:include>
<script type="text/javascript">
function dosave(dialog,grid) {
if ($(".form").form('validate')) {
$.post(ext.contextPath + "/material/inkinfo/update.do", $(".form").serialize(), function(data) {
if (data.res == 1) {
top.$.messager.alert('提示', "保存成功", 'info', function() {
//刷新列表
grid.datagrid('reload');
dialog.dialog('destroy');
});
}else if(data.res == 0){
top.$.messager.alert('提示', "保存失败", 'info');
}else{
top.$.messager.alert('提示', data.res, 'info');
}
},'json');
}
}
function selectEquipmentCard(equipmentcardid,equipmentcode){
var dialog = parent.ext.modalDialog({
title : '选择设备',
width: 800,
height:550,
url : ext.contextPath + '/equipment/showEquipmentCardForSelect.do?iframeId=inkInfoEdit',
buttons : [{
text : '确定',
iconCls:'icon-ok',
handler : function() {
var res=dialog.find('iframe').get(0).contentWindow.selectFun();
if(res!=null){
$("#"+equipmentcardid).val(res.id);
$("#"+equipmentcode).textbox('setValue',res.equipmentcardid);
$("#equipmentname").html(res.equipmentname);
}
dialog.dialog('destroy');
}
},
{
text : '取消',
iconCls:'icon-cancel',
handler : function() {
dialog.dialog('destroy');
}
}
]
});
}
$(function() {
$("#equipmentcode").textbox('textbox').bind("click", function () {
selectEquipmentCard("equipmentcardid","equipmentcode");
});
});
</script>
</head>
<body>
<form method="post" class="form">
<input type="hidden" name="id" value="${inkInfo.id }"/>
<input id="equipmentcardid" name="equipmentcardid" type="hidden" value="${inkInfo.equipmentcardid }"/>
<table class="table">
<tr>
<th>设备编号</th>
<td><input id="equipmentcode" name="equipmentcode" class="easyui-textbox"
data-options="required:true,validType:'isBlank'," value="${inkInfo.equipmentcode}" readonly/>
</td>
</tr>
<tr>
<th>设备名称</th>
<td>${inkInfo.equipmentname}
</td>
</tr>
<tr>
<th>参数上次修改时间</th>
<td><input name="time" class="easyui-textbox"
disabled="disabled" value="${fn:substring(inkInfo.time,0,19) }" /></td>
</tr>
<tr>
<th>修改者</th>
<td>
<input name="operator" class="easyui-textbox"
disabled="disabled" value="admin" />
</td>
</tr>
<tr>
<th>油墨更换提醒间隔时间</th>
<td><input name="parameter1" class="easyui-textbox"
data-options="required:true,validType:'isBlank'" value="${inkInfo.parameter1 }" />&nbsp;&nbsp;分钟</td>
</tr>
<tr>
<th>稀释剂添加提醒间隔时间</th>
<td><input name="parameter2" class="easyui-textbox"
data-options="required:true,validType:'isBlank'" value="${inkInfo.parameter2 }" />&nbsp;&nbsp;分钟</td>
</tr>
<tr>
<th>网板更换提醒间隔时间</th>
<td><input name="parameter3" class="easyui-textbox"
data-options="required:true,validType:'isBlank'" value="${inkInfo.parameter3 }" />&nbsp;&nbsp;分钟</td>
</tr>
</table>
</form>
</body>
</html>