first commit
This commit is contained in:
106
bin/WebRoot/jsp/material/boardChange.jsp
Normal file
106
bin/WebRoot/jsp/material/boardChange.jsp
Normal file
@ -0,0 +1,106 @@
|
||||
<!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/inkalert/saveboard.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 selectBoardbatchList(boardbatchno,No){
|
||||
localStorage.setItem("equid",$("#equipmentcardid").val());
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '选择可使用网板批次',
|
||||
width: 800,
|
||||
height:550,
|
||||
url : ext.contextPath + '/material/inkalert/showBoardbatchList.do',
|
||||
buttons : [{
|
||||
text : '确定',
|
||||
iconCls:'icon-ok',
|
||||
handler : function() {
|
||||
var res=dialog.find('iframe').get(0).contentWindow.selectFun();
|
||||
if(res!=null){
|
||||
$("#"+boardbatchno).val(res.id);
|
||||
$("#"+No).textbox('setValue',res.no);
|
||||
}
|
||||
dialog.dialog('destroy');
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
text : '取消',
|
||||
iconCls:'icon-cancel',
|
||||
handler : function() {
|
||||
dialog.dialog('destroy');
|
||||
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$("#No").textbox('textbox').bind("click", function () {
|
||||
selectBoardbatchList("boardbatchno","No");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form method="post" class="form">
|
||||
<input id="boardbatchno" name="boardbatchno" type="hidden"/>
|
||||
<input id="lastboardbatchno" name="lastboardbatchno" value="${inkalert.lastboardbatchno}" type="hidden"/>
|
||||
<input id="equipmentcardid" name="equipmentcardid" value="${inkalert.equipmentcardid}" type="hidden"/>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>设备</th>
|
||||
<td><input name="equipmentname" class="easyui-textbox"
|
||||
disabled="disabled" value="${inkalert.equipmentname}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>上次更换时间</th>
|
||||
<td><input name="starttime" class="easyui-textbox"
|
||||
disabled="disabled" value="${fn:substring(inkalert.starttime,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="no" class="easyui-textbox"
|
||||
disabled="disabled" value="${inkalert.no}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>可使用网板批次号</th>
|
||||
<td>
|
||||
<input id="No" name="No" class="easyui-textbox"
|
||||
data-options="required:true,validType:'isBlank',prompt:'单击选择'" value="" readonly/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user