Files
SIPAIIS_WMS_JSSW/bin/WebRoot/jsp/quality/procedCustPrjResultEdit.jsp
2026-01-16 14:13:44 +08:00

86 lines
2.5 KiB
Plaintext

<!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 + "/quality/testingrecord/cpupdate.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() {
/*$('#procedureid').combobox({
url : ext.contextPath + '/process/taskprocedure/getprocedlist.do?random=' + Math.random(),
valueField:'id',
textField:'procedurename',
method:'get'
}); */
var cpr = "${pcpr.cpresult}";
if (cpr!="")
{
if (cpr == "OK")
{
$("input[id=cpresult][value=OK").attr("checked",true);
}
else
{
$("input[id=cpresult][value=NG]").attr("checked",true);
}
}
});
</script>
</head>
<body>
<form method="post" class="form">
<input name="id" type="hidden" value="${pcpr.id}"/>
<table class="table">
<tr>
<th>工序</th>
<td><input id="procedurename" name="procedurename" class="easyui-textbox"
data-options="required:true,validType:'isBlank'" readonly value="${pcpr.procedurename}"/>
<input name="procedureid" type="hidden" value="${pcpr.procedureid}"/>
</td>
</tr>
<tr>
<th>自定义项目名</th>
<td><input name="customprojname" class="easyui-textbox"
data-options="required:true,validType:'isBlank'" value="${pcpr.customprojname}" type="text" readonly />
</td>
</tr>
<tr>
<th>结果判定</th>
<td><input id="cpresult" type="radio" name="cpresult"
class="easyui-validatebox" value="NG"><label>NG</label></input>
<input id="cpresult" type="radio" name="cpresult"
class="easyui-validatebox" value="OK"><label>OK</label></input>
</td>
</tr>
<tr>
<th>上传附件</th>
<td>
<!-- 上传附件代码-->
</td>
</tr>
</table>
</form>
</body>
</html>