first commit
This commit is contained in:
182
bin/WebRoot/jsp/quality/abnormalQualityAdd.jsp
Normal file
182
bin/WebRoot/jsp/quality/abnormalQualityAdd.jsp
Normal file
@ -0,0 +1,182 @@
|
||||
<!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"%>
|
||||
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
|
||||
<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/abnormalQuality/save.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');
|
||||
}
|
||||
}
|
||||
var productLock = function() {
|
||||
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '白片和丝印追溯',
|
||||
width:950,
|
||||
url : ext.contextPath + '/quality/abnormalQuality/trace.do',
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form method="post" class="form">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th >发出部门</th>
|
||||
<td ><input id="senddept" name="senddept" class="easyui-textbox" data-options="required:true,validType:'isBlank'" style="overflow:auto;" value="" /></td>
|
||||
<th >发件人</th>
|
||||
<td ><input id="sender" name="sender" class="easyui-textbox"data-options="required:true,validType:'isBlank'" style="overflow:auto;" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >发件时间</th>
|
||||
<td ><input id="sendtime" name="sendtime" class="Wdate"
|
||||
value="" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly/></td>
|
||||
<th >问题发生几栋几层</th>
|
||||
<td ><input id="formnumber" name="formnumber" class="easyui-textbox" data-options="required:true,prompt:'格式按照如:C2F'" style="overflow:auto;" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >接收部门</th>
|
||||
<td ><input id="acceptdept" name="acceptdept" class="easyui-textbox" data-options="required:true,validType:'isBlank'" style="overflow:auto;" value="" /></td>
|
||||
<th >接收人</th>
|
||||
<td ><input id="recipient" name="recipient" class="easyui-textbox" style="overflow:auto;" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >收件时间</th>
|
||||
<td ><input id="accepttime" name="accepttime" class="Wdate"
|
||||
value="" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly/></td>
|
||||
<th >收件确认</th>
|
||||
<td ><input id="confirmreceipt" name="confirmreceipt" class="easyui-textbox" style="overflow:auto;" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >问题发生区域</th>
|
||||
<td ><input id="problemarea" name="problemarea" class="easyui-textbox" style="overflow:auto;" value="" /></td>
|
||||
<th >严重程度</th>
|
||||
<td ><select id="severity" name="severity" class="easyui-combobox" data-options="panelHeight:'auto'">
|
||||
<option value="一般">一般</option>
|
||||
<option value="严重">严重</option>
|
||||
<option value="特严重">特严重</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >问题出现次数</th>
|
||||
<td ><input id="problemnumber" name="problemnumber" class="easyui-textbox" style="overflow:auto;" value="" /></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th >不良现象描述</th>
|
||||
<td colspan="3">
|
||||
<input id="descriptionbadphenomena" name="descriptionbadphenomena" class="easyui-textbox" data-options="multiline:true" style="overflow:auto;width:100%;height:100px;" value=""
|
||||
validtype="length[0,250]" invalidMessage="有效长度0-250"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="position:absolute; left:400px;top:240px;">确认:<input id="confirmor1" name="confirmor1" class="easyui-textbox" style="overflow:auto;" value="" /></td>
|
||||
<td style="position:absolute; left:660px;top:240px;">日期:<input id="date1" name="date1" class="Wdate"
|
||||
value="" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >原因分析</th>
|
||||
<td colspan="3"><input id="causeanalysis" name="causeanalysis" class="easyui-textbox" data-options="multiline:true" style="overflow:auto;width:100%;height:100px;" value=""
|
||||
validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="position:absolute; left:150px;top:340px;">
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton"
|
||||
onclick="productLock();">异常产品锁定</a>
|
||||
</td>
|
||||
<td style="position:absolute; left:260px;top:340px;">订制:<input id="todevelop" name="todevelop" class="easyui-textbox" style="overflow:auto;" value="" /></td>
|
||||
<td style="position:absolute; left:460px;top:340px;">确认:<input id="confirmor2" name="confirmor2" class="easyui-textbox" style="overflow:auto;" value="" /></td>
|
||||
<td style="position:absolute; left:660px;top:340px;">日期:<input id="date2" name="date2" class="Wdate"
|
||||
value="" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >应急解决措施</th>
|
||||
<td colspan="3">
|
||||
<input id="emergencymeasuresplan" name="emergencymeasuresplan" class="easyui-textbox" data-options="multiline:true" style="overflow:auto;width:100%;height:150px;" value=""
|
||||
validtype="length[0,250]" invalidMessage="有效长度0-250"/>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="position:absolute; left:323px;top:466px;">预计完成时限:<input id="estimatedfinishtime" name="estimatedfinishtime"class="Wdate"
|
||||
value="" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly /></td>
|
||||
<td style="position:absolute; left:623px;top:466px;">实际完成时间<input id="actualcompletiontime" name="actualcompletiontime" class="Wdate"
|
||||
value="" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="position:absolute; left:150px;top:490px;">
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton"
|
||||
onclick="productLock();">异常产品解定</a>
|
||||
</td>
|
||||
<td style="position:absolute; left:260px;top:490px;">订制:<input id="todevelop1" name="todevelop1" class="easyui-textbox" style="overflow:auto;" value="" /></td>
|
||||
<td style="position:absolute; left:460px;top:490px;">确认:<input id="confirmor3" name="confirmor3" class="easyui-textbox" style="overflow:auto;" value="" /></td>
|
||||
<td style="position:absolute; left:660px;top:490px;">日期:<input id="date3" name="date3" class="Wdate"
|
||||
value="" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >预防解决措施</th>
|
||||
<td colspan="3"><input id="preventivemeasures" name="preventivemeasures" class="easyui-textbox" data-options="multiline:true" style="overflow:auto;width:100%;height:150px;" value=""
|
||||
validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="position:absolute; left:323px;top:616px;">预计完成时限:<input id="estimatedfinishtime1" name="estimatedfinishtime1"class="Wdate"
|
||||
value="" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly /></td>
|
||||
<td style="position:absolute; left:623px;top:616px;">实际完成时间<input id="actualcompletiontime1" name="actualcompletiontime1" class="Wdate"
|
||||
value="" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td style="position:absolute; left:260px;top:648px;">订制:<input id="todevelop2" name="todevelop2" class="easyui-textbox" style="overflow:auto;" value="" /></td>
|
||||
<td style="position:absolute; left:460px;top:648px;">确认:<input id="confirmor4" name="confirmor4" class="easyui-textbox" style="overflow:auto;" value="" /></td>
|
||||
<td style="position:absolute; left:660px;top:648px;">日期:<input id="date4" name="date4" class="Wdate"
|
||||
value="" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >效果追踪</th>
|
||||
<td colspan="3"><input id="effecttracking" name="effecttracking" class="easyui-textbox" data-options="multiline:true" style="overflow:auto;width:100%;height:100px;" value=""
|
||||
validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="position:absolute; left:400px;top:748px;">确认:<input id="confirmor5" name="confirmor5" class="easyui-textbox" style="overflow:auto;" value="" /></td>
|
||||
<td style="position:absolute; left:660px;top:748px;">日期:<input id="date5" name="date5" class="Wdate"
|
||||
value="" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly /></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
201
bin/WebRoot/jsp/quality/abnormalQualityEdit.jsp
Normal file
201
bin/WebRoot/jsp/quality/abnormalQualityEdit.jsp
Normal file
@ -0,0 +1,201 @@
|
||||
<!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"%>
|
||||
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
|
||||
<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/abnormalQuality/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');
|
||||
}
|
||||
}
|
||||
var productLock = function() {
|
||||
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '白片和丝印追溯',
|
||||
width:950,
|
||||
url : ext.contextPath + '/quality/abnormalQuality/trace.do',
|
||||
|
||||
});
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form method="post" class="form">
|
||||
<table class="table">
|
||||
<input id="id" name="id" type="hidden" value="${ abnormalQuality.id}"/>
|
||||
<tr>
|
||||
<th >发出部门</th>
|
||||
<td ><input id="senddept" name="senddept" class="easyui-textbox" data-options="required:true,validType:'isBlank'" style="overflow:auto;" value="${abnormalQuality.senddept}" /></td>
|
||||
<th >发件人</th>
|
||||
<td ><input id="sender" name="sender" class="easyui-textbox"data-options="required:true,validType:'isBlank'" style="overflow:auto;" value="${abnormalQuality.sender}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >发件时间</th>
|
||||
<td ><input id="sendtime" name="sendtime" class="Wdate"
|
||||
value="${fn:substring(abnormalQuality.sendtime,0,19)}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly/></td>
|
||||
<th >表单号</th>
|
||||
<td ><input id="formnumber" name="formnumber" class="easyui-textbox" data-options="required:true" style="overflow:auto;" value="${abnormalQuality.formnumber}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >接收部门</th>
|
||||
<td ><input id="acceptdept" name="acceptdept" class="easyui-textbox" data-options="required:true,validType:'isBlank'" style="overflow:auto;" value="${abnormalQuality.acceptdept}" /></td>
|
||||
<th >接收人</th>
|
||||
<td ><input id="recipient" name="recipient" class="easyui-textbox" style="overflow:auto;" value="${abnormalQuality.recipient}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >收件时间</th>
|
||||
<td ><input id="accepttime" name="accepttime" class="Wdate"
|
||||
value="${fn:substring(abnormalQuality.accepttime,0,19)}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly/></td>
|
||||
<th >收件确认</th>
|
||||
<td ><input id="confirmreceipt" name="confirmreceipt" class="easyui-textbox" style="overflow:auto;" value="${abnormalQuality.confirmreceipt}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >问题发生区域</th>
|
||||
<td ><input id="problemarea" name="problemarea" class="easyui-textbox" style="overflow:auto;" value="${abnormalQuality.problemarea}" /></td>
|
||||
<th >严重程度</th>
|
||||
<td ><select id="severity" name="severity" class="easyui-combobox" data-options="panelHeight:'auto'">
|
||||
<option value="一般" <c:if test="${equipmentclass.severity=='一般' }">selected</c:if>>一般</option>
|
||||
<option value="严重" <c:if test="${equipmentclass.severity=='严重' }">selected</c:if>>严重</option>
|
||||
<option value="特严重" <c:if test="${equipmentclass.severity=='特严重' }">selected</c:if>>特严重</option>
|
||||
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >问题出现次数</th>
|
||||
<td ><input id="problemnumber" name="problemnumber" class="easyui-textbox" style="overflow:auto;" value="${abnormalQuality.problemnumber}" /></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<th >不良现象描述</th>
|
||||
<td colspan="3"><input id="descriptionbadphenomena" name="descriptionbadphenomena" class="easyui-textbox" data-options="multiline:true" style="overflow:auto;width:100%;height:80px;"
|
||||
value="${abnormalQuality.descriptionbadphenomena}"
|
||||
validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th >确认</th>
|
||||
<td ><input id="confirmor1" name="confirmor1" class="easyui-textbox" style="overflow:auto;" value="${abnormalQuality.confirmor1}" /></td>
|
||||
<th >日期</th>
|
||||
<td ><input id="date1" name="date1" class="Wdate"
|
||||
value="${fn:substring(abnormalQuality.date1,0,19)}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >原因分析</th>
|
||||
<td colspan="3"><input id="causeanalysis" name="causeanalysis" class="easyui-textbox" data-options="multiline:true" style="overflow:auto;width:100%;height:80px;" value="${abnormalQuality.causeanalysis}"
|
||||
validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >定制</th>
|
||||
<td ><input id="todevelop" name="todevelop" class="easyui-textbox" style="overflow:auto;" value="${abnormalQuality.todevelop}" /></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true"
|
||||
onclick="productLock();">异常产品锁定</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >确认</th>
|
||||
<td ><input id="confirmor2" name="confirmor2" class="easyui-textbox" style="overflow:auto;" value="${abnormalQuality.confirmor2}" /></td>
|
||||
<th >日期</th>
|
||||
<td ><input id="date2" name="date2" class="Wdate"
|
||||
value="${fn:substring(abnormalQuality.date2,0,19)}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >应急解决措施</th>
|
||||
<td colspan="3"><input id="emergencymeasuresplan" name="emergencymeasuresplan" class="easyui-textbox" data-options="multiline:true" style="overflow:auto;width:100%;height:80px;" value="${abnormalQuality.emergencymeasuresplan}"
|
||||
validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >预计完成时限</th>
|
||||
<td ><input id="estimatedfinishtime" name="estimatedfinishtime" class="Wdate"
|
||||
value="${fn:substring(abnormalQuality.estimatedfinishtime,0,19)}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly/></td>
|
||||
<th >实际完成时间</th>
|
||||
<td ><input id="actualcompletiontime" name="actualcompletiontime" class="Wdate"
|
||||
value="${fn:substring(abnormalQuality.actualcompletiontime,0,19)}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >定制</th>
|
||||
<td ><input id="todevelop1" name="todevelop1" class="easyui-textbox" style="overflow:auto;" value="${abnormalQuality.todevelop1}" /></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true"
|
||||
onclick="productLock();">异常产品解锁</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >确认</th>
|
||||
<td ><input id="confirmor3" name="confirmor3" class="easyui-textbox" style="overflow:auto;" value="${abnormalQuality.confirmor3}" /></td>
|
||||
<th >日期</th>
|
||||
<td ><input id="date3" name="date3" class="Wdate"
|
||||
value="${fn:substring(abnormalQuality.date3,0,19)}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >预防解决措施</th>
|
||||
<td colspan="3"><input id="preventivemeasures" name="preventivemeasures" class="easyui-textbox" data-options="multiline:true" style="overflow:auto;width:100%;height:80px;" value="${abnormalQuality.preventivemeasures}"
|
||||
validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >预计完成时限</th>
|
||||
<td ><input id="estimatedfinishtime1" name="estimatedfinishtime1" class="Wdate"
|
||||
value="${fn:substring(abnormalQuality.estimatedfinishtime1,0,19)}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly/></td>
|
||||
<th >实际完成时间</th>
|
||||
<td ><input id="actualcompletiontime1" name="actualcompletiontime1" class="Wdate"
|
||||
value="${fn:substring(abnormalQuality.actualcompletiontime1,0,19)}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >定制</th>
|
||||
<td ><input id="todevelop2" name="todevelop2" class="easyui-textbox" style="overflow:auto;" value="${abnormalQuality.todevelop2}" /></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th >确认</th>
|
||||
<td ><input id="confirmor4" name="confirmor4" class="easyui-textbox" style="overflow:auto;" value="${abnormalQuality.confirmor4}" /></td>
|
||||
<th >日期</th>
|
||||
<td ><input id="date4" name="date4" class="Wdate"
|
||||
value="${fn:substring(abnormalQuality.date4,0,19)}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >效果追踪</th>
|
||||
<td colspan="3"><input id="effecttracking" name="effecttracking" class="easyui-textbox" data-options="multiline:true" style="overflow:auto;width:100%;height:80px;" value=""
|
||||
validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >确认</th>
|
||||
<td ><input id="confirmor5" name="confirmor5" class="easyui-textbox" style="overflow:auto;" value="${abnormalQuality.confirmor5}" /></td>
|
||||
<th >日期</th>
|
||||
<td ><input id="date5" name="date5" class="Wdate"
|
||||
value="${fn:substring(abnormalQuality.date5,0,19)}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||||
readonly/></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
185
bin/WebRoot/jsp/quality/abnormalQualityList.jsp
Normal file
185
bin/WebRoot/jsp/quality/abnormalQualityList.jsp
Normal file
@ -0,0 +1,185 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.Date" %>
|
||||
<%@page import="java.text.SimpleDateFormat" %>
|
||||
<%@ page import="com.sipai.tools.SessionManager"%>
|
||||
<%
|
||||
SessionManager sessionManager = new SessionManager();
|
||||
%>
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<script type="text/javascript">
|
||||
var grid;
|
||||
var addFun = function() {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '新增品质异常单',
|
||||
width:950,
|
||||
url : ext.contextPath + '/quality/abnormalQuality/add.do',
|
||||
buttons : [ {
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.dosave(dialog, grid);
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var viewFun = function(id) {
|
||||
grid.datagrid('clearChecked');
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '查看品质异常单',
|
||||
url : ext.contextPath + '/quality/abnormalQuality/view.do?id=' + id,
|
||||
|
||||
});
|
||||
};
|
||||
var editFun = function(id) {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '编辑品质异常单',
|
||||
url : ext.contextPath + '/quality/abnormalQuality/edit.do?id=' + id,
|
||||
buttons : [ {
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.dosave(dialog, grid);
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var deleteFun = function(id) {
|
||||
parent.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/abnormalQuality/delete.do', {id : id}, function(data) {
|
||||
|
||||
if(data==1){
|
||||
top.$.messager.alert('提示','删除成功','info');
|
||||
grid.datagrid('reload');
|
||||
}else{
|
||||
top.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
var deletesFun = function() {
|
||||
var checkedItems = $('#grid').datagrid('getChecked');
|
||||
var datas="";
|
||||
$.each(checkedItems, function(index, item){
|
||||
datas+=item.id+",";
|
||||
});
|
||||
if(datas==""){
|
||||
top.$.messager.alert('提示', '请先选择要删除的记录','info');
|
||||
}else{
|
||||
top.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/abnormalQuality/deletes.do', {ids:datas} , function(data) {
|
||||
if(data>0){
|
||||
top.$.messager.alert('提示','成功删除'+data+'条记录','info');
|
||||
grid.datagrid('reload');
|
||||
grid.datagrid('clearChecked');
|
||||
}else{
|
||||
top.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
$(function() {
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/abnormalQuality/getAbnormalQualitys.do',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
ctrlSelect:true,
|
||||
singleSelect: false,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{checkbox:true , field : 'ck'},
|
||||
{width : '100', title : '发出部门', field: 'senddept', sortable : true, halign:'center' },
|
||||
{width : '100', title : '接受部门', field : 'acceptdept', sortable : true, halign:'center' },
|
||||
{width : '150', title : '表单号', field : 'formnumber', sortable : true, halign:'center'},
|
||||
{width : '120', title : '问题发生区域', field: 'problemarea', sortable : true, halign:'center' },
|
||||
{width : '80', title : '严重程度', field: 'severity', sortable : true, halign:'center' },
|
||||
{width : '120', title : '问题重复出现次数', field: 'problemnumber', sortable : true, halign:'center' },
|
||||
{title : '操作', field : 'action', width : '160', halign:'center', align:'center', formatter : function(value, row) {
|
||||
var str = '';
|
||||
str += '<img class="iconImg ext-icon-table" title="查看" onclick="viewFun(\''+row.id+'\');"/> ';
|
||||
<%if (sessionManager.havePermission(session,"quality/abnormalQuality/edit.do")) {%>
|
||||
str += '<img class="iconImg ext-icon-table_edit" title="编辑" onclick="editFun(\''+row.id+'\');"/> ';
|
||||
<%}%>
|
||||
<%if (sessionManager.havePermission(session,"quality/abnormalQuality/delete.do")) {%>
|
||||
str += '<img class="iconImg ext-icon-table_delete" title="删除" onclick="deleteFun(\''+row.id+'\');"/>';
|
||||
<%}%>
|
||||
return str;
|
||||
}
|
||||
}
|
||||
] ],
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div id="toolbar" style="display: none;">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<%if (sessionManager.havePermission(session,"quality/abnormalQuality/add.do")) {%>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true"
|
||||
onclick="addFun();">添加</a>
|
||||
</td>
|
||||
<%}%>
|
||||
<%if (sessionManager.havePermission(session,"quality/abnormalQuality/delete.do")) {%>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
|
||||
onclick="deletesFun();">删除</a>
|
||||
</td>
|
||||
<%}%>
|
||||
<!-- <td><div class="datagrid-btn-separator"></div></td>
|
||||
<td><a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-table_add',plain:true" onclick="">导入</a></td>
|
||||
<td><a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-table_go',plain:true" onclick="">导出</a></td> -->
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<form id="searchForm">
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
<td>表单号</td>
|
||||
<td><input name="search_name" class="easyui-textbox" data-options="prompt:'请输入关键字'" style="width: 150px;" value=""/></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-search',plain:true"
|
||||
onclick="grid.datagrid('load',ext.serializeObject($('#searchForm')));">搜索</a>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
|
||||
onclick="$('#searchForm').form('clear');grid.datagrid('load',{});">重置</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div data-options="region:'center',fit:true,border:false">
|
||||
<table id="grid" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
150
bin/WebRoot/jsp/quality/abnormalQualityLock.jsp
Normal file
150
bin/WebRoot/jsp/quality/abnormalQualityLock.jsp
Normal file
@ -0,0 +1,150 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.Date" %>
|
||||
<%@page import="java.text.SimpleDateFormat" %>
|
||||
<%@ page import="com.sipai.tools.SessionManager"%>
|
||||
<%
|
||||
SessionManager sessionManager = new SessionManager();
|
||||
%>
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<script type="text/javascript">
|
||||
var grid;
|
||||
var addFun = function() {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '新增品质异常单',
|
||||
width:950,
|
||||
url : ext.contextPath + '/quality/abnormalQuality/add.do',
|
||||
buttons : [ {
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.dosave(dialog, grid);
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var viewFun = function(id) {
|
||||
grid.datagrid('clearChecked');
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '查看品质异常单',
|
||||
url : ext.contextPath + '/quality/abnormalQuality/view.do?id=' + id,
|
||||
|
||||
});
|
||||
};
|
||||
var editFun = function(id) {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '编辑品质异常单',
|
||||
url : ext.contextPath + '/quality/abnormalQuality/edit.do?id=' + id,
|
||||
buttons : [ {
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.dosave(dialog, grid);
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var deleteFun = function(id) {
|
||||
parent.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/abnormalQuality/delete.do', {id : id}, function(data) {
|
||||
|
||||
if(data==1){
|
||||
top.$.messager.alert('提示','删除成功','info');
|
||||
grid.datagrid('reload');
|
||||
}else{
|
||||
top.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
var deletesFun = function() {
|
||||
var checkedItems = $('#grid').datagrid('getChecked');
|
||||
var datas="";
|
||||
$.each(checkedItems, function(index, item){
|
||||
datas+=item.id+",";
|
||||
});
|
||||
if(datas==""){
|
||||
top.$.messager.alert('提示', '请先选择要删除的记录','info');
|
||||
}else{
|
||||
top.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/abnormalQuality/deletes.do', {ids:datas} , function(data) {
|
||||
if(data>0){
|
||||
top.$.messager.alert('提示','成功删除'+data+'条记录','info');
|
||||
grid.datagrid('reload');
|
||||
grid.datagrid('clearChecked');
|
||||
}else{
|
||||
top.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
$(function() {
|
||||
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/abnormalQuality/getAbnormalQualitysLock.do?CNCClean=${CNCClean}',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
ctrlSelect:true,
|
||||
singleSelect: false,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{checkbox:true , field : 'ck'},
|
||||
{width : '100', title : 'CNC清洗全检工位', field: 'procedureno', sortable : true, halign:'center' },
|
||||
|
||||
] ],
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div id="toolbar" style="display: none;">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true"
|
||||
onclick="addFun();">加锁</a>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
|
||||
onclick="deletesFun();">解锁</a>
|
||||
</td>
|
||||
|
||||
<!-- <td><div class="datagrid-btn-separator"></div></td>
|
||||
<td><a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-table_add',plain:true" onclick="">导入</a></td>
|
||||
<td><a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-table_go',plain:true" onclick="">导出</a></td> -->
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<div data-options="region:'center',fit:true,border:false">
|
||||
<table id="grid" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
179
bin/WebRoot/jsp/quality/abnormalQualityTrace.jsp
Normal file
179
bin/WebRoot/jsp/quality/abnormalQualityTrace.jsp
Normal file
@ -0,0 +1,179 @@
|
||||
<!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"%>
|
||||
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="../inc.jsp"></jsp:include>
|
||||
<script type="text/javascript">
|
||||
var gettrace = function() {
|
||||
var rfid=$("#search_rfid").textbox('getValue');
|
||||
var trace=$("input[name='search_trace'][checked]").val();
|
||||
// $.post(ext.contextPath + '/quality/abnormalQuality/trace1.do?search_rfid='+rfid +'&search_trace=' + trace,function(data) {
|
||||
// console.log(data);
|
||||
/* data.map(function(ele){
|
||||
if(ele.keywords==""){
|
||||
}
|
||||
$("#a").html(ele.id);
|
||||
for(var i=0;i<data.length;i++){
|
||||
|
||||
data[i]
|
||||
}
|
||||
}); */
|
||||
//});
|
||||
$("#cuttingMachine").combobox({
|
||||
url : ext.contextPath + '/quality/abnormalQuality/trace1.do?search_rfid='+rfid +'&search_trace=' + trace,
|
||||
valueField : 'workstation',
|
||||
textField : 'workstation',
|
||||
method:'get',
|
||||
panelHeight:'auto',
|
||||
editable: false,
|
||||
onLoadSuccess: function (data) {
|
||||
var data1 = $("#cuttingMachine").combobox('getData'); //赋默认值
|
||||
if (data1.length > 0) {
|
||||
$("#cuttingMachine").combobox('select', data1[0].workstation);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
$("#CNC").combobox({
|
||||
url : ext.contextPath + '/quality/abnormalQuality/trace2.do?search_rfid='+rfid +'&search_trace=' + trace,
|
||||
valueField : 'workstation',
|
||||
textField : 'workstation',
|
||||
method:'get',
|
||||
panelHeight:'auto',
|
||||
editable: false,
|
||||
onLoadSuccess: function (data) {
|
||||
var data1 = $("#CNC").combobox('getData'); //赋默认值
|
||||
if (data1.length > 0) {
|
||||
$("#CNC").combobox('select', data1[0].workstation);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
$("#CNCClean").combobox({
|
||||
url : ext.contextPath + '/quality/abnormalQuality/trace3.do?search_rfid='+rfid +'&search_trace=' + trace,
|
||||
valueField : 'workstation',
|
||||
textField : 'workstation',
|
||||
method:'get',
|
||||
panelHeight:'auto',
|
||||
editable: false,
|
||||
onLoadSuccess: function (data) {
|
||||
var data1 = $("#CNCClean").combobox('getData'); //赋默认值
|
||||
if (data1.length > 0) {
|
||||
$("#CNCClean").combobox('select', data1[0].workstation);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
$("#temperingFurnace").combobox({
|
||||
url : ext.contextPath + '/quality/abnormalQuality/trace4.do?search_rfid='+rfid +'&search_trace=' + trace,
|
||||
valueField : 'workstation',
|
||||
textField : 'workstation',
|
||||
method:'get',
|
||||
panelHeight:'auto',
|
||||
editable: false,
|
||||
onLoadSuccess: function (data) {
|
||||
var data1 = $("#temperingFurnace").combobox('getData'); //赋默认值
|
||||
if (data1.length > 0) {
|
||||
$("#temperingFurnace").combobox('select', data1[0].workstation);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
var CNCCleanFun = function() {
|
||||
var CNCClean=$("#CNCClean").textbox('getValue');
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '加锁与解锁',
|
||||
width:950,
|
||||
url : ext.contextPath + '/quality/abnormalQuality/lock.do?CNCClean='+CNCClean,
|
||||
|
||||
});
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form id="searchForm" method="post" class="form">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>RFID识别码:</th>
|
||||
<td><input id="search_rfid"name="search_rfid" class="easyui-textbox" value=""/></td>
|
||||
</tr>
|
||||
<tr id="client_check1">
|
||||
<th>白片/丝印:</th>
|
||||
<td><input id="search_trace" type="radio" name="search_trace"
|
||||
class="easyui-validatebox" checked="checked" value="0"><label>白片追溯</label></input>
|
||||
<input id="search_trace" type="radio" name="search_trace"
|
||||
class="easyui-validatebox" value="1"><label>丝印追溯</label></input>
|
||||
</td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-search',plain:true"
|
||||
onclick="gettrace();">查询</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<th >开料机台:</th>
|
||||
<td ><input id="cuttingMachine" name="cuttingMachine" class="easyui-combobox" data-options="validType:'isBlank'"></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton"
|
||||
onclick="addFun();">相同开料机台分析</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >CNC成型机台:</th>
|
||||
<td ><input id="CNC" name="CNC" class="easyui-combobox" data-options="validType:'isBlank'"></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton"
|
||||
onclick="addFun('');">相同成型机台分析</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >CNC清洗全检工位:</th>
|
||||
<td ><input id="CNCClean" name="CNCClean" class="easyui-combobox" data-options="validType:'isBlank'"></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton"
|
||||
onclick="CNCCleanFun();">相同CNC全检工位分析</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >钢化炉号:</th>
|
||||
<td ><input id="temperingFurnace" name="temperingFurnace" class="easyui-combobox" data-options="validType:'isBlank'"></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton"
|
||||
onclick="addFun();">相同钢化炉分析</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >Q白全检工位:</th>
|
||||
<td ><input id="allInspectionStation" name="allInspectionStation" class="easyui-combobox" data-options="validType:'isBlank'"></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton"
|
||||
onclick="addFun();">相同Q白全检工位分析</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >油墨:</th>
|
||||
<td ><input id="ink" name="ink" class="easyui-combobox" data-options="validType:'isBlank'"></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton"
|
||||
onclick="addFun();">相同油墨分析</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >丝印印刷机台号:</th>
|
||||
<td ><input id="screenPrinting " name="screenPrinting" class="easyui-combobox" data-options="validType:'isBlank'"></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton"
|
||||
onclick="addFun();">相同印刷机分析</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
162
bin/WebRoot/jsp/quality/abnormalQualityView.jsp
Normal file
162
bin/WebRoot/jsp/quality/abnormalQualityView.jsp
Normal file
@ -0,0 +1,162 @@
|
||||
<!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"%>
|
||||
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="../inc.jsp"></jsp:include>
|
||||
<script type="text/javascript">
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form method="post" class="form">
|
||||
<table class="table">
|
||||
|
||||
<tr>
|
||||
<th >发出部门</th>
|
||||
<td >${abnormalQuality.senddept}</td>
|
||||
<th >发件人</th>
|
||||
<td >${abnormalQuality.sender}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th >发件时间</th>
|
||||
<td >${fn:substring(abnormalQuality.sendtime,0,10)}</td>
|
||||
<th >表单号</th>
|
||||
<td >${abnormalQuality.formnumber}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >接收部门</th>
|
||||
<td >${abnormalQuality.acceptdept}</td>
|
||||
<th >接收人</th>
|
||||
<td >${abnormalQuality.recipient}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th >收件时间</th>
|
||||
<td >${fn:substring(abnormalQuality.accepttime,0,10)}</td>
|
||||
<th >收件确认</th>
|
||||
<td >${abnormalQuality.confirmreceipt}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >问题发生区域</th>
|
||||
<td >${abnormalQuality.problemarea}</td>
|
||||
<th >严重程度</th>
|
||||
<td >${abnormalQuality.severity}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th >问题出现次数</th>
|
||||
<td >${abnormalQuality.problemnumber}</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th >不良现象描述</th>
|
||||
<td colspan="3">
|
||||
<input name="descriptionbadphenomena" class="easyui-textbox" value="${abnormalQuality.descriptionbadphenomena}" validtype="length[0,250]" invalidMessage="有效长度0-250"
|
||||
data-options="multiline:true" style="width:100%;height:100px"/>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th >确认</th>
|
||||
<td >${abnormalQuality.confirmor1}</td>
|
||||
<th >日期</th>
|
||||
<td >${fn:substring(abnormalQuality.date1,0,10)}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >原因分析</th>
|
||||
<td colspan="3">
|
||||
<input name="causeanalysis" class="easyui-textbox" value="${abnormalQuality.causeanalysis}" validtype="length[0,250]" invalidMessage="有效长度0-250"
|
||||
data-options="multiline:true" style="width:100%;height:100px"/>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th >定制</th>
|
||||
<td >${abnormalQuality.todevelop}</td>
|
||||
<!-- <td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true"
|
||||
onclick="addFun();">异常产品锁定</a>
|
||||
</td> -->
|
||||
</tr>
|
||||
<tr>
|
||||
<th >确认</th>
|
||||
<td >${abnormalQuality.confirmor2}</td>
|
||||
<th >日期</th>
|
||||
<td >${fn:substring(abnormalQuality.date2,0,10)}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >应急解决措施</th>
|
||||
<td colspan="3">
|
||||
<input name="emergencymeasuresplan" class="easyui-textbox" value="${abnormalQuality.emergencymeasuresplan}" validtype="length[0,250]" invalidMessage="有效长度0-250"
|
||||
data-options="multiline:true" style="width:100%;height:100px"/>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th >预计完成时限</th>
|
||||
<td >${fn:substring(abnormalQuality.estimatedfinishtime,0,10)}</td>
|
||||
<th >实际完成时间</th>
|
||||
<td >${fn:substring(abnormalQuality.actualcompletiontime,0,10)}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >定制</th>
|
||||
<td >${abnormalQuality.todevelop1}</td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true"
|
||||
onclick="addFun();">异常产品解锁</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >确认</th>
|
||||
<td >${abnormalQuality.confirmor3}</td>
|
||||
<th >日期</th>
|
||||
<td >${fn:substring(abnormalQuality.date3,0,10)}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >预防解决措施</th>
|
||||
<td colspan="3">
|
||||
<input name="preventivemeasures" class="easyui-textbox" value="${abnormalQuality.preventivemeasures}" validtype="length[0,250]" invalidMessage="有效长度0-250"
|
||||
data-options="multiline:true" style="width:100%;height:100px"/>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th >预计完成时限</th>
|
||||
<td >${fn:substring(abnormalQuality.estimatedfinishtime1,0,10)}</td>
|
||||
<th >实际完成时间</th>
|
||||
<td >${fn:substring(abnormalQuality.actualcompletiontime1,0,10)}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >定制</th>
|
||||
<td >${abnormalQuality.todevelop2}</td>
|
||||
<!-- <td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true"
|
||||
onclick="addFun();">异常产品解锁</a>
|
||||
</td> -->
|
||||
</tr>
|
||||
<tr>
|
||||
<th >确认</th>
|
||||
<td >${abnormalQuality.confirmor4}</td>
|
||||
<th >日期</th>
|
||||
<td >${fn:substring(abnormalQuality.date4,0,10)}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th >效果追踪</th>
|
||||
<td colspan="3">
|
||||
<input name="effecttracking" class="easyui-textbox" value="${abnormalQuality.effecttracking}" validtype="length[0,250]" invalidMessage="有效长度0-250"
|
||||
data-options="multiline:true" style="width:100%;height:100px"/>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th >确认</th>
|
||||
<td >${abnormalQuality.confirmor5}</td>
|
||||
<th >日期</th>
|
||||
<td >${fn:substring(abnormalQuality.date5,0,10)}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
174
bin/WebRoot/jsp/quality/adTestingRecordAdd.jsp
Normal file
174
bin/WebRoot/jsp/quality/adTestingRecordAdd.jsp
Normal file
@ -0,0 +1,174 @@
|
||||
<!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"%>
|
||||
<%request.setAttribute("Type_Standard",com.sipai.entity.quality.TestingRecord.Type_Standard);%>
|
||||
<%request.setAttribute("Type_Debugging",com.sipai.entity.quality.TestingRecord.Type_Debugging);%>
|
||||
<%request.setAttribute("Type_First_Inspection",com.sipai.entity.quality.TestingRecord.Type_First_Inspection);%>
|
||||
<%request.setAttribute("Type_Routing_Inspection",com.sipai.entity.quality.TestingRecord.Type_Routing_Inspection);%>
|
||||
<%request.setAttribute("Type_Random_Inspection",com.sipai.entity.quality.TestingRecord.Type_Random_Inspection);%>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="../inc.jsp"></jsp:include>
|
||||
<script type="text/javascript">
|
||||
function dosave(dialog,gridad) {
|
||||
if ($(".form").form('validate')) {
|
||||
$.post(ext.contextPath + "/quality/testingrecord/saveAD.do", $(".form").serialize(), function(data) {
|
||||
if (data.res == 1) {
|
||||
top.$.messager.alert('提示', "保存成功", 'info', function() {
|
||||
gridad.datagrid('reload');
|
||||
dialog.dialog('destroy');
|
||||
});
|
||||
}else if(data.res == 0){
|
||||
top.$.messager.alert('提示', "保存失败", 'info');
|
||||
}else{
|
||||
top.$.messager.alert('提示', data.res, 'info');
|
||||
}
|
||||
},'json');
|
||||
}
|
||||
}
|
||||
function getwo(){
|
||||
$('#workorderid').combobox({
|
||||
url : ext.contextPath + '/quality/testingrecord/getwolist.do?sdate=' + $('#time').val(),
|
||||
valueField:'workorderid',
|
||||
textField:'workorderno',
|
||||
method:'get'
|
||||
});
|
||||
}
|
||||
|
||||
//获取当前时间
|
||||
function getNowFormatDate() {
|
||||
var date = new Date();
|
||||
var seperator1 = "-";
|
||||
var seperator2 = ":";
|
||||
var month = date.getMonth() + 1;
|
||||
var strDate = date.getDate();
|
||||
if (month >= 1 && month <= 9) {
|
||||
month = "0" + month;
|
||||
}
|
||||
if (strDate >= 0 && strDate <= 9) {
|
||||
strDate = "0" + strDate;
|
||||
}
|
||||
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
||||
+ " " + date.getHours() + seperator2 + date.getMinutes()
|
||||
/*+ seperator2 + date.getSeconds();*/
|
||||
return currentdate;
|
||||
}
|
||||
|
||||
$(function() {
|
||||
document.getElementById('time').value=getNowFormatDate();//设置默认时间
|
||||
|
||||
$('#workorderid').combobox({
|
||||
url : ext.contextPath + '/quality/testingrecord/getwolist.do?sdate=' + $('#time').val(),
|
||||
valueField:'id',
|
||||
textField:'workorderno',
|
||||
method:'get',
|
||||
onSelect: function () {
|
||||
$('#procedureid').combobox({
|
||||
url : ext.contextPath + '/quality/testingrecord/getprocedurelist.do?woid=' + $('#workorderid').combobox('getValue'),
|
||||
valueField:'procedurecode',
|
||||
textField:'procedurename',
|
||||
method:'get',
|
||||
onSelect: function () {
|
||||
$('#equipmentid').combogrid({
|
||||
delay: 500,
|
||||
mode: 'remote',
|
||||
panelWidth:253,
|
||||
url : ext.contextPath + '/quality/testingrecord/getequlist.do?procedcode=' + $('#procedureid').combobox('getValue') + '&woid=' + $('#workorderid').combobox('getValue'),
|
||||
idField: 'equipmentid',
|
||||
textField: 'equdisplayname',
|
||||
columns: [[
|
||||
//{field:'equipmentid',title:'equipmentid',width:120,sortable:true},
|
||||
{field:'equipmentcardid',title:'设备编号',width:150,sortable:true,formatter:function(value,row){
|
||||
return row.equipmentCard.equipmentcardid;
|
||||
}
|
||||
},
|
||||
{field:'equipmentname',title:'设备名称',width:100,sortable:true,formatter:function(value,row){
|
||||
return row.equipmentCard.equipmentname;
|
||||
}
|
||||
}
|
||||
]]
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</head>
|
||||
<body link="blue" vlink="purple">
|
||||
<form method="post" class="form">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>记录编码</th>
|
||||
<td><input id="recordcode" name="recordcode" class="easyui-textbox"
|
||||
data-options="required:true,validType:'isBlank'" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>日期</th>
|
||||
<td><input id="time" name="time" class="Wdate" data-options="required:true,validType:'isBlank'"
|
||||
onfocus="WdatePicker({dateFmt:'yyyy-M-d H:mm',minDate:'%y-%M-%d 00:00',maxDate:'%y-%M-%d 23:59'})" readonly/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>工单</th>
|
||||
<td>
|
||||
<input id="workorderid" name="workorderid" class="easyui-combobox"data-options="required:true,validType:'isBlank'" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>工序</th>
|
||||
<td><input id="procedureid" name="procedureid" class="easyui-combobox"
|
||||
data-options="required:true,validType:'isBlank'" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>机台</th>
|
||||
<td>
|
||||
<input id="equipmentid" name="equipmentid" class="easyui-combogrid"
|
||||
data-options="required:true,validType:'isBlank'" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>记录类型(外观:AD,二次元:QE)</th>
|
||||
<td>
|
||||
<select id="recordtype" name="recordtype" class="easyui-combobox" data-options="panelHeight:'auto'">
|
||||
<option value="AD" selected>外观</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>检测类型(首检,巡检,抽检)</th>
|
||||
<td>
|
||||
<select id="testingtype" name="testingtype" class="easyui-combobox" data-options="panelHeight:'auto'">
|
||||
<option value="${Type_First_Inspection}" selected>首检</option>
|
||||
<option value="${Type_Routing_Inspection}">巡检</option>
|
||||
<option value="${Type_Random_Inspection}">抽检</option>
|
||||
<option value="${Type_Debugging}">调机</option>
|
||||
<option value="${Type_Standard}">标准</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>结果</th>
|
||||
<td>
|
||||
<select id="result" name="result" class="easyui-combobox" data-options="panelHeight:'auto'">
|
||||
<option value="OK" selected>OK</option>
|
||||
<option value="NG">NG</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>说明</th>
|
||||
<td>
|
||||
<input name="instruction" class="easyui-textbox" style="height:100px;width:300px"
|
||||
value=""data-options="multiline:true" validtype="length[0,250]" invalidMessage="有效长度0-250" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
166
bin/WebRoot/jsp/quality/adTestingRecordEdit.jsp
Normal file
166
bin/WebRoot/jsp/quality/adTestingRecordEdit.jsp
Normal file
@ -0,0 +1,166 @@
|
||||
<!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"%>
|
||||
<%request.setAttribute("Type_Standard",com.sipai.entity.quality.TestingRecord.Type_Standard);%>
|
||||
<%request.setAttribute("Type_Debugging",com.sipai.entity.quality.TestingRecord.Type_Debugging);%>
|
||||
<%request.setAttribute("Type_First_Inspection",com.sipai.entity.quality.TestingRecord.Type_First_Inspection);%>
|
||||
<%request.setAttribute("Type_Routing_Inspection",com.sipai.entity.quality.TestingRecord.Type_Routing_Inspection);%>
|
||||
<%request.setAttribute("Type_Random_Inspection",com.sipai.entity.quality.TestingRecord.Type_Random_Inspection);%>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="../inc.jsp"></jsp:include>
|
||||
<script type="text/javascript">
|
||||
function dosave(dialog,gridad) {
|
||||
if ($(".form").form('validate')) {
|
||||
$.post(ext.contextPath + "/quality/testingrecord/updateAD.do", $(".form").serialize(), function(data) {
|
||||
if (data.res == 1) {
|
||||
top.$.messager.alert('提示', "保存成功", 'info', function() {
|
||||
gridad.datagrid('reload');
|
||||
dialog.dialog('destroy');
|
||||
});
|
||||
}else if(data.res == 0){
|
||||
top.$.messager.alert('提示', "保存失败", 'info');
|
||||
}else{
|
||||
top.$.messager.alert('提示', data.res, 'info');
|
||||
}
|
||||
},'json');
|
||||
}
|
||||
}
|
||||
function getwo(){
|
||||
$('#workorderid').combobox({
|
||||
url : ext.contextPath + '/quality/testingrecord/getwolist.do?sdate=' + $('#time').val(),
|
||||
valueField:'workorderid',
|
||||
textField:'workorderno',
|
||||
method:'get'
|
||||
});
|
||||
}
|
||||
|
||||
/* //获取当前时间
|
||||
function getNowFormatDate() {
|
||||
var date = new Date();
|
||||
var seperator1 = "-";
|
||||
var seperator2 = ":";
|
||||
var month = date.getMonth() + 1;
|
||||
var strDate = date.getDate();
|
||||
if (month >= 1 && month <= 9) {
|
||||
month = "0" + month;
|
||||
}
|
||||
if (strDate >= 0 && strDate <= 9) {
|
||||
strDate = "0" + strDate;
|
||||
}
|
||||
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
||||
+ " " + date.getHours() + seperator2 + date.getMinutes()
|
||||
//+ seperator2 + date.getSeconds();
|
||||
return currentdate;
|
||||
}*/
|
||||
|
||||
$(function() {
|
||||
//document.getElementById('time').value=getNowFormatDate();//设置默认时间
|
||||
$('#workorderid').combobox({
|
||||
url : ext.contextPath + '/quality/testingrecord/getwolist.do?sdate=' + $('#time').val(),
|
||||
valueField:'id',
|
||||
textField:'workorderno',
|
||||
method:'get',
|
||||
onLoadSuccess:function(data){
|
||||
$('#workorderid').combobox('select',"${tra.workorderid}");
|
||||
$('#procedureid').combobox('select',"${tra.procedureid}");
|
||||
$('#equipmentid').combobox('select',"${tra.equipmentid}");
|
||||
},
|
||||
onSelect: function () {
|
||||
$('#procedureid').combobox({
|
||||
url : ext.contextPath + '/quality/testingrecord/getprocedurelist.do?woid=' + $('#workorderid').combobox('getValue'),
|
||||
valueField:'procedurecode',
|
||||
textField:'procedurename',
|
||||
method:'get',
|
||||
onSelect: function () {
|
||||
$('#equipmentid').combobox({
|
||||
url : ext.contextPath + '/quality/testingrecord/getequlist.do?procedcode=' + $('#procedureid').combobox('getValue') + '&woid=' + $('#workorderid').combobox('getValue'),
|
||||
valueField:'equipmentid',
|
||||
textField:'equdisplayname',
|
||||
method:'get'
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</head>
|
||||
<body link="blue" vlink="purple">
|
||||
<form method="post" class="form">
|
||||
<input name="id" type="hidden" value="${tra.id}" />
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>记录编码</th>
|
||||
<td><input id="recordcode" name="recordcode" class="easyui-textbox"
|
||||
data-options="required:true,validType:'isBlank'" value="${tra.recordcode}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>日期</th>
|
||||
<td><input id="time" name="time" class="Wdate" data-options="required:true,validType:'isBlank'" value="${tra.time}"
|
||||
onfocus="WdatePicker({dateFmt:'yyyy-M-d H:mm',minDate:'%y-%M-%d 00:00',maxDate:'%y-%M-%d 23:59'})" readonly/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>工单</th>
|
||||
<td>
|
||||
<input id="workorderid" name="workorderid" class="easyui-combobox"data-options="required:true,validType:'isBlank'" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>工序</th>
|
||||
<td><input id="procedureid" name="procedureid" class="easyui-combobox"
|
||||
data-options="required:true,validType:'isBlank'" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>机台</th>
|
||||
<td>
|
||||
<input id="equipmentid" name="equipmentid" class="easyui-combobox"
|
||||
data-options="required:true,validType:'isBlank'" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>记录类型(外观:AD,二次元:QE)</th>
|
||||
<td>
|
||||
<select id="recordtype" name="recordtype" class="easyui-combobox" data-options="panelHeight:'auto'">
|
||||
<option value="AD" selected>外观</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>检测类型(首检,巡检,抽检)</th>
|
||||
<td>
|
||||
<select id="testingtype" name="testingtype" class="easyui-combobox" data-options="panelHeight:'auto'">
|
||||
<option value="${Type_First_Inspection}" <c:if test="${tra.testingtype==Type_First_Inspection}">selected</c:if>>首检</option>
|
||||
<option value="${Type_Routing_Inspection}" <c:if test="${tra.testingtype==Type_Routing_Inspection}">selected</c:if>>巡检</option>
|
||||
<option value="${Type_Random_Inspection}" <c:if test="${tra.testingtype==Type_Random_Inspection}">selected</c:if>>抽检</option>
|
||||
<option value="${Type_Debugging}" <c:if test="${tra.testingtype==Type_Debugging}">selected</c:if>>调机</option>
|
||||
<option value="${Type_Standard}" <c:if test="${tra.testingtype==Type_Standard}">selected</c:if>>标准</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>结果</th>
|
||||
<td>
|
||||
<select id="result" name="result" class="easyui-combobox" data-options="panelHeight:'auto'">
|
||||
<option value="OK" <c:if test="${tra.result=='OK'}">selected</c:if>>OK</option>
|
||||
<option value="NG" <c:if test="${tra.result=='NG'}">selected</c:if>>NG</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>说明</th>
|
||||
<td>
|
||||
<input name="instruction" class="easyui-textbox" style="height:100px;width:300px" value="${tra.instruction}"
|
||||
data-options="multiline:true" validtype="length[0,250]" invalidMessage="有效长度0-250" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
78
bin/WebRoot/jsp/quality/autoImportTestingRecord.jsp
Normal file
78
bin/WebRoot/jsp/quality/autoImportTestingRecord.jsp
Normal file
@ -0,0 +1,78 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>导入人员</title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<script>
|
||||
var uploader,state;
|
||||
|
||||
$(function() {
|
||||
var $ = jQuery,
|
||||
$list = $('#thelist'),
|
||||
state = 'pending';
|
||||
uploader = WebUploader.create({
|
||||
// swf文件路径
|
||||
swf: ext.contextPath+'/JS/webuploader-0.1.5/Uploader.swf',
|
||||
// 文件接收服务端。
|
||||
server: ext.contextPath+'/quality/testingrecord/downloadConfigFile.do',
|
||||
// 选择文件的按钮。可选。
|
||||
// 内部根据当前运行是创建,可能是input元素,也可能是flash.
|
||||
pick: {
|
||||
id: '#picker',
|
||||
multiple: false
|
||||
},
|
||||
// 不压缩image, 默认如果是jpeg,文件上传前会压缩一把再上传!
|
||||
resize: false,
|
||||
accept: {
|
||||
title: 'Excel',
|
||||
extensions: 'xls,xlsx',
|
||||
mimeTypes: 'excel/*'
|
||||
}
|
||||
});
|
||||
//当有文件被添加进队列的时候
|
||||
uploader.on( 'fileQueued', function( file ) {
|
||||
$list.append( '<div id="' + file.id + '" class="item">' +
|
||||
'<h4 class="info">' + file.name + '</h4>' +
|
||||
'<p class="state">等待上传...</p>' +
|
||||
'</div>' );
|
||||
});
|
||||
});
|
||||
|
||||
var doimport = function(dialog, grid){
|
||||
//执行上传功能
|
||||
if ( state === 'uploading' ) {
|
||||
alert("文件正在上传中,请稍等");
|
||||
} else {
|
||||
uploader.upload();
|
||||
}
|
||||
|
||||
uploader.on( 'uploadError', function( file ) {
|
||||
$( '#'+file.id ).find('p.state').text('上传出错');
|
||||
});
|
||||
|
||||
uploader.on( 'uploadSuccess', function( file,response ) {
|
||||
$( '#'+file.id ).find('p.state').text('已上传');
|
||||
if(response.feedback!=null&&response.feedback!=""){
|
||||
alert(response.feedback);
|
||||
grid.datagrid('reload');
|
||||
dialog.dialog('destroy');
|
||||
}else{
|
||||
alert("导入未完成!");
|
||||
dialog.dialog('destroy');
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="uploader" class="wu-example">
|
||||
<div class="btns">
|
||||
<div id="picker">选择文件</div>
|
||||
</div>
|
||||
<!--用来存放文件信息-->
|
||||
<div id="thelist" class="uploader-list"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
171
bin/WebRoot/jsp/quality/equTestingRecordCountList.jsp
Normal file
171
bin/WebRoot/jsp/quality/equTestingRecordCountList.jsp
Normal file
@ -0,0 +1,171 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ page import="com.sipai.tools.SessionManager"%>
|
||||
<%
|
||||
SessionManager sessionManager = new SessionManager();
|
||||
%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<script type="text/javascript">
|
||||
function selectEquipmentCard(search_equ,equipmentcode){
|
||||
localStorage.setItem("search_equ",$("#search_equ").val().split(","));
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '选择设备',
|
||||
width: 800,
|
||||
height:550,
|
||||
url : ext.contextPath + '/equipment/showEquipmentCardForSelect.do?iframeId=inkInfoAdd',
|
||||
buttons : [{
|
||||
text : '确定',
|
||||
iconCls:'icon-ok',
|
||||
handler : function() {
|
||||
var res=dialog.find('iframe').get(0).contentWindow.selectFun();
|
||||
|
||||
if(res!=null){
|
||||
$("#"+search_equ).val(res.id);
|
||||
$("#"+equipmentcode).textbox('setValue',res.equipmentname+res.equipmentcardid);
|
||||
}
|
||||
dialog.dialog('destroy');
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
text : '取消',
|
||||
iconCls:'icon-cancel',
|
||||
handler : function() {
|
||||
dialog.dialog('destroy');
|
||||
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
//获取当前时间
|
||||
function getNowFormatDate() {
|
||||
var date = new Date();
|
||||
var seperator1 = "-";
|
||||
//var seperator2 = ":";
|
||||
var month = date.getMonth() + 1;
|
||||
var strDate = date.getDate();
|
||||
if (month >= 1 && month <= 9) {
|
||||
month = "0" + month;
|
||||
}
|
||||
if (strDate >= 0 && strDate <= 9) {
|
||||
strDate = "0" + strDate;
|
||||
}
|
||||
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
||||
/*+ " " + date.getHours() + seperator2 + date.getMinutes()
|
||||
+ seperator2 + date.getSeconds();*/
|
||||
return currentdate;
|
||||
}
|
||||
$(function() {
|
||||
document.getElementById('search_date').value=getNowFormatDate();//设置默认时间
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/equtestingrecord/getQECountlist.do',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
singleSelect: false,
|
||||
ctrlSelect:true,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{width : '150', title : '设备编号', field : 'equipmentcardid',halign:'center',align:'center'},
|
||||
{width : '150', title : '设备名称', field : 'equipmentname',halign:'center',align:'center'},
|
||||
{width : '100', title : '首检结果', field : 'result', halign:'center',align:'center',formatter:function(value,row){
|
||||
if(row.testingrecord == null)
|
||||
{
|
||||
return '异常';
|
||||
}
|
||||
else
|
||||
{
|
||||
return row.testingrecord.result;
|
||||
}
|
||||
}},
|
||||
{width : '150', title : '巡检次数', field : 'routingcount',halign:'center',align:'center',formatter:function(value,row){
|
||||
if(value == "")
|
||||
{
|
||||
value = 0;
|
||||
}
|
||||
return value;
|
||||
}},
|
||||
{width : '150', title : '抽检次数', field : 'randomcount', halign:'center',align:'center',formatter:function(value,row){
|
||||
if(value == "")
|
||||
{
|
||||
value = '0';
|
||||
}
|
||||
return value;
|
||||
}},
|
||||
] ],
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
},
|
||||
});
|
||||
$('#search_proced').combobox({
|
||||
url : ext.contextPath + '/process/taskprocedure/getprocedlist.do?random=' + Math.random(),
|
||||
valueField:'procedurecode',
|
||||
textField:'procedurename',
|
||||
method:'get'
|
||||
});
|
||||
|
||||
$("#equipmentcode").textbox('textbox').bind("click", function () {
|
||||
selectEquipmentCard("search_equ","equipmentcode");
|
||||
});
|
||||
/* $('#mm').switchbutton({
|
||||
onChange: function(checked){
|
||||
if(checked==true){
|
||||
$('#notdisplayinvalid').val("1");
|
||||
}else{
|
||||
$('#notdisplayinvalid').val("");
|
||||
}
|
||||
//alert($('#mm').switchbutton('options').checked);
|
||||
$('#pid').val('${dailyplansummary.id }');
|
||||
grid.datagrid('load',ext.serializeObject($('#searchForm')));//搜索
|
||||
}
|
||||
});*/
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div id="toolbar" style="display: none;">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<form id="searchForm">
|
||||
<table class="tooltable">
|
||||
<tr>
|
||||
<td>设备</td>
|
||||
<td><input id="equipmentcode" name="equipmentcode" class="easyui-textbox"
|
||||
data-options="prompt:'单击选择'" value="" readonly/>
|
||||
<input id="search_equ" name = "search_equ" type="hidden"/>
|
||||
</td>
|
||||
<td>日期</td>
|
||||
<td><input id="search_date" name="search_date" class="Wdate" value=""
|
||||
onfocus="WdatePicker({startDate:'%y',dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-{%d}'})" readonly/></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-search',plain:true"
|
||||
onclick="grid.datagrid('load',ext.serializeObject($('#searchForm')));">搜索</a>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
|
||||
onclick="$('#searchForm').form('clear');grid.datagrid('load',{});">重置</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div data-options="region:'center',fit:true,border:false">
|
||||
<table id="grid" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
298
bin/WebRoot/jsp/quality/equTestingRecordHView.jsp
Normal file
298
bin/WebRoot/jsp/quality/equTestingRecordHView.jsp
Normal file
@ -0,0 +1,298 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ page import="com.sipai.tools.SessionManager"%>
|
||||
<%
|
||||
SessionManager sessionManager = new SessionManager();
|
||||
%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<script type="text/javascript">
|
||||
var grid;
|
||||
var gridad;
|
||||
function searchFun(){
|
||||
grid.datagrid('load',ext.serializeObject($('#searchForm')));
|
||||
gridad.datagrid('load',ext.serializeObject($('#searchForm')));
|
||||
|
||||
}
|
||||
|
||||
function resetFun(){
|
||||
document.getElementById('search_fdate').value=startdateOrder();//设置默认时间
|
||||
document.getElementById('search_tdate').value=getNowFormatDate();//设置默认时间
|
||||
grid.datagrid('load',ext.serializeObject($('#searchForm')));
|
||||
gridad.datagrid('load',ext.serializeObject($('#searchForm')));
|
||||
}
|
||||
|
||||
//当前日期前7天
|
||||
var startdateFun = function(n){
|
||||
var now = new Date;
|
||||
now.setDate(now.getDate() - n);
|
||||
return now;
|
||||
};
|
||||
|
||||
var startdateOrder = function(){
|
||||
var syear = startdateFun(7).getFullYear();
|
||||
var smonth = startdateFun(7).getMonth()+1;
|
||||
if(smonth<10)
|
||||
{
|
||||
smonth="0"+smonth;
|
||||
}
|
||||
var sdate = startdateFun(7).getDate();
|
||||
if(sdate<10)
|
||||
{
|
||||
sdate="0"+sdate;
|
||||
}
|
||||
stD = dateToString(new Date(syear+"-"+smonth+"-"+sdate));
|
||||
return stD;
|
||||
};
|
||||
|
||||
//将日期转换为“YYYY-MM-DD”格式的日期
|
||||
var dateToString = function(date) {
|
||||
var today = new Date(date);
|
||||
var year = today.getFullYear();
|
||||
var month = today.getMonth() + 1;
|
||||
var day = today.getDate();
|
||||
return year + "-" + paddingZero(month) + "-" + paddingZero(day);
|
||||
}
|
||||
|
||||
//空位补零
|
||||
var paddingZero = function(n) {
|
||||
//return n<10 ? "0" + n : "" + n;
|
||||
return (Array(2).join('0') + n).slice(-2);
|
||||
}
|
||||
|
||||
//获取当前时间
|
||||
function getNowFormatDate() {
|
||||
var date = new Date();
|
||||
var seperator1 = "-";
|
||||
//var seperator2 = ":";
|
||||
var month = date.getMonth() + 1;
|
||||
var strDate = date.getDate();
|
||||
if (month >= 1 && month <= 9) {
|
||||
month = "0" + month;
|
||||
}
|
||||
if (strDate >= 0 && strDate <= 9) {
|
||||
strDate = "0" + strDate;
|
||||
}
|
||||
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
||||
/*+ " " + date.getHours() + seperator2 + date.getMinutes()
|
||||
+ seperator2 + date.getSeconds();*/
|
||||
return currentdate;
|
||||
}
|
||||
$(function() {
|
||||
document.getElementById('search_fdate').value=startdateOrder();//设置默认时间
|
||||
document.getElementById('search_tdate').value=getNowFormatDate();//设置默认时间
|
||||
//radio监听器
|
||||
for(var i = 0; i < $(".radioSpan input").length; i++){
|
||||
$(".radioSpan input")[i].addEventListener("click",function(){
|
||||
//grid.datagrid('load',ext.serializeObject($('#searchForm')));
|
||||
grid.datagrid('reload');
|
||||
//console.log("dsasaddd",$(this).val());
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/equtestingrecord/getHQElist.do?equid=${equid}',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
singleSelect: false,
|
||||
ctrlSelect:true,
|
||||
nowrap:false,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{checkbox:true , field : 'ck'},
|
||||
{width : '100', title : '记录编码', field : 'recordcode', sortable : true, halign:'center'},
|
||||
{width : '80', title : '记录类型', field : 'recordtype', sortable : true, halign:'center',formatter:function(value,row){
|
||||
switch (value) {
|
||||
case 'QE':
|
||||
return '二次元';
|
||||
case 'AD':
|
||||
return '外观';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}},
|
||||
{width : '80', title : '检测类型', field : 'testingtype', sortable : true, halign:'center',formatter:function(value,row){
|
||||
switch (value) {
|
||||
case '0':
|
||||
return '标准';
|
||||
case '1':
|
||||
return '调机';
|
||||
case '2':
|
||||
return '首检';
|
||||
case '3':
|
||||
return '巡检';
|
||||
case '4':
|
||||
return '抽检';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}},
|
||||
{width : '140', title : '日期', field : 'time', sortable : true, halign:'center',formatter:function(value,row){
|
||||
var str = value.substring(0,16);
|
||||
return str;
|
||||
}},
|
||||
{width : '80', title : '结果判定', field : 'result', sortable : true, halign:'center'},
|
||||
{width : '100', title : '工单号', field : 'workorderno', halign:'center'},
|
||||
{width : '170', title : '备注(NG原因)', field : 'instruction', sortable : true, halign:'center'}
|
||||
] ],
|
||||
toolbar : '#toolbarqe',
|
||||
rowStyler: function(index,row){//如果调机时,该行隐藏
|
||||
if (row.testingtype=='1'&&$('input:radio[name="havingdebugs"]:checked').val()==0){
|
||||
return 'display:none'; // return inline style
|
||||
}
|
||||
},
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
gridad = $('#gridad').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/equtestingrecord/getHADlist.do?equid=${equid}',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
singleSelect: false,
|
||||
ctrlSelect:true,
|
||||
nowrap:false,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{checkbox:true , field : 'ck'},
|
||||
{width : '80', title : '记录编码', field : 'recordcode', sortable : true, halign:'center'},
|
||||
{width : '80', title : '记录类型', field : 'recordtype', sortable : true, halign:'center',formatter:function(value,row){
|
||||
switch (value) {
|
||||
case 'QE':
|
||||
return '二次元';
|
||||
case 'AD':
|
||||
return '外观';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}},
|
||||
{width : '80', title : '检测类型', field : 'testingtype', sortable : true, halign:'center',formatter:function(value,row){
|
||||
switch (value) {
|
||||
case '0':
|
||||
return '标准';
|
||||
case '1':
|
||||
return '调机';
|
||||
case '2':
|
||||
return '首检';
|
||||
case '3':
|
||||
return '巡检';
|
||||
case '4':
|
||||
return '抽检';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}},
|
||||
{width : '140', title : '日期', field : 'time', sortable : true, halign:'center',formatter:function(value,row){
|
||||
var str = value.substring(0,16);
|
||||
return str;
|
||||
}},
|
||||
{width : '80', title : '结果判定', field : 'result', sortable : true, halign:'center'},
|
||||
{width : '100', title : '工单号', field : 'workorderno', halign:'center'},
|
||||
{width : '170', title : '备注(NG原因)', field : 'instruction', sortable : true, halign:'center'}
|
||||
] ],
|
||||
toolbar : '#toolbarad',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
$('#search_proced').combobox({
|
||||
url : ext.contextPath + '/process/taskprocedure/getprocedlist.do?random=' + Math.random(),
|
||||
valueField:'procedurecode',
|
||||
textField:'procedurename',
|
||||
method:'get'
|
||||
});
|
||||
|
||||
/* $('#mm').switchbutton({
|
||||
onChange: function(checked){
|
||||
if(checked==true){
|
||||
$('#notdisplayinvalid').val("1");
|
||||
}else{
|
||||
$('#notdisplayinvalid').val("");
|
||||
}
|
||||
//alert($('#mm').switchbutton('options').checked);
|
||||
$('#pid').val('${dailyplansummary.id }');
|
||||
grid.datagrid('load',ext.serializeObject($('#searchForm')));//搜索
|
||||
}
|
||||
});*/
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body class="easyui-layout" data-options="fit:true,border:false">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<form id="searchForm">
|
||||
<table class="tooltable">
|
||||
<tr>
|
||||
<td>日期从</td>
|
||||
<td><input id="search_fdate" name="search_fdate" class="Wdate" value=""
|
||||
onfocus="WdatePicker({startDate:'%y',dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-{%d}'})" readonly/></td>
|
||||
<td>到</td>
|
||||
<td><input id="search_tdate" name="search_tdate" class="Wdate" value=""
|
||||
onfocus="WdatePicker({startDate:'%y',dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-{%d}'})" readonly/></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-search',plain:true"
|
||||
onclick=" searchFun()">搜索</a>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
|
||||
onclick="resetFun()">重置</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="easyui-tabs" style="width:100%;height:100%;" >
|
||||
<div title="二次元检测" style="padding:0px;">
|
||||
<div id="toolbarqe" style="display: none;">
|
||||
<form id="gridqeForm">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="radioSpan">
|
||||
<input type="radio" name="havingdebugs" checked="checked" value="0">不包含调试记录</input>
|
||||
<input type="radio" name="havingdebugs" value="1">包含调试记录</input>
|
||||
</span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<div id="cc" class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div data-options="region:'center',fit:true,border:false">
|
||||
<table id="grid" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="adtab" title="外观检测" closable="true" data-options="closable:false">
|
||||
<div id="toolbarad" style="display: none;">
|
||||
|
||||
</div>
|
||||
<div id="adcc" class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div data-options="region:'center',fit:true,border:false">
|
||||
<table id="gridad" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
258
bin/WebRoot/jsp/quality/equTestingRecordList.jsp
Normal file
258
bin/WebRoot/jsp/quality/equTestingRecordList.jsp
Normal file
@ -0,0 +1,258 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ page import="com.sipai.tools.SessionManager"%>
|
||||
<%
|
||||
SessionManager sessionManager = new SessionManager();
|
||||
%>
|
||||
<%request.setAttribute("Type_Standard",com.sipai.entity.quality.TestingRecord.Type_Standard);%>
|
||||
<%request.setAttribute("Type_Debugging",com.sipai.entity.quality.TestingRecord.Type_Debugging);%>
|
||||
<%request.setAttribute("Type_First_Inspection",com.sipai.entity.quality.TestingRecord.Type_First_Inspection);%>
|
||||
<%request.setAttribute("Type_Routing_Inspection",com.sipai.entity.quality.TestingRecord.Type_Routing_Inspection);%>
|
||||
<%request.setAttribute("Type_Random_Inspection",com.sipai.entity.quality.TestingRecord.Type_Random_Inspection);%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<script type="text/javascript">
|
||||
var grid;
|
||||
var viewPFun = function(id) {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '查看当天信息',
|
||||
width: 1100,
|
||||
height:600,
|
||||
url : ext.contextPath + '/quality/equtestingrecord/viewPresent.do?id=' + id
|
||||
});
|
||||
};
|
||||
var viewHFun = function(id) {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '查看往期信息',
|
||||
width: 800,
|
||||
height:600,
|
||||
url : ext.contextPath + '/quality/equtestingrecord/viewHistory.do?id=' + id
|
||||
});
|
||||
};
|
||||
|
||||
var viewCountFun = function() {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '查看设备检测次数',
|
||||
width: 770,
|
||||
height:600,
|
||||
url : ext.contextPath + '/quality/equtestingrecord/viewCount.do'
|
||||
});
|
||||
};
|
||||
|
||||
function selectEquipmentCard(search_equ,equipmentcode){
|
||||
localStorage.setItem("search_equ",$("#search_equ").val().split(","));
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '选择设备',
|
||||
width: 800,
|
||||
height:550,
|
||||
url : ext.contextPath + '/equipment/showEquipmentCardForSelect.do?iframeId=inkInfoAdd',
|
||||
buttons : [{
|
||||
text : '确定',
|
||||
iconCls:'icon-ok',
|
||||
handler : function() {
|
||||
var res=dialog.find('iframe').get(0).contentWindow.selectFun();
|
||||
|
||||
if(res!=null){
|
||||
$("#"+search_equ).val(res.id);
|
||||
$("#"+equipmentcode).textbox('setValue',res.equipmentname+res.equipmentcardid);
|
||||
}
|
||||
dialog.dialog('destroy');
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
text : '取消',
|
||||
iconCls:'icon-cancel',
|
||||
handler : function() {
|
||||
dialog.dialog('destroy');
|
||||
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
$(function() {
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/equtestingrecord/getlist.do',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
singleSelect: false,
|
||||
ctrlSelect:true,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{checkbox:true , field : 'ck'},
|
||||
{width : '150', title : '设备编号', field : 'equipmentcardid',halign:'center',align:'center'},
|
||||
{width : '150', title : '设备名称', field : 'equipmentname',halign:'center',align:'center'},
|
||||
{width : '150', title : '记录类型', field : 'recordtype', halign:'center',align:'center',formatter:function(value,row){
|
||||
if(row.testingrecord == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (row.testingrecord.recordtype) {
|
||||
case 'QE':
|
||||
return '二次元检测';
|
||||
case 'AD':
|
||||
return '外观检测';
|
||||
|
||||
}
|
||||
}
|
||||
}},
|
||||
{width : '100', title : '结果', field : 'result', halign:'center',align:'center',formatter:function(value,row){
|
||||
if(row.testingrecord == null)
|
||||
{
|
||||
return '异常';
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (row.testingrecord.testingtype) {
|
||||
case '${Type_Standard}':
|
||||
return '标准' + row.testingrecord.result;
|
||||
case '${Type_Debugging}':
|
||||
return '调机' + row.testingrecord.result;
|
||||
case '${Type_First_Inspection}':
|
||||
return '首检' + row.testingrecord.result;
|
||||
case '${Type_Routing_Inspection}':
|
||||
return '巡检' + row.testingrecord.result;
|
||||
case '${Type_Random_Inspection}':
|
||||
return '抽检' + row.testingrecord.result;
|
||||
}
|
||||
}
|
||||
}},
|
||||
{width : '150', title : '工序', field : 'procedurename',halign:'center',align:'center',formatter:function(value,row){
|
||||
if(row.testingrecord == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
else
|
||||
{
|
||||
return row.procedurename;
|
||||
}
|
||||
}},
|
||||
{width : '200', title : '记录检测时间', field : 'time', halign:'center',align:'center',formatter:function(value,row){
|
||||
if(row.testingrecord == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
else
|
||||
{
|
||||
return row.testingrecord.time;
|
||||
}
|
||||
}},
|
||||
{title : '操作', field : 'action', width : '120', halign:'center', align:'center', formatter : function(value, row) {
|
||||
var str = '';
|
||||
str += '<img class="iconImg ext-icon-table" title="当天检测记录查询" onclick="viewPFun(\''+row.id+'\');"/>';
|
||||
str += '<img class="iconImg ext-icon-table_multiple" title="往期状态查询" onclick="viewHFun(\''+row.id+'\');"/>';
|
||||
return str;
|
||||
}
|
||||
}
|
||||
] ],
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
},
|
||||
rowStyler:function(index,row) {
|
||||
if (row.testingrecord == null){
|
||||
// return 'background-color:green;' ;
|
||||
return 'background-color:#FF5151;' ;
|
||||
}
|
||||
else if (row.testingrecord.result == 'NG'){
|
||||
return 'background-color:#FF2D2D;' ;
|
||||
}
|
||||
else{
|
||||
return 'background-color:#28FF28;' ;
|
||||
}
|
||||
}
|
||||
});
|
||||
$('#search_proced').combobox({
|
||||
url : ext.contextPath + '/process/taskprocedure/getprocedlist.do?random=' + Math.random(),
|
||||
valueField:'procedurecode',
|
||||
textField:'procedurename',
|
||||
method:'get'
|
||||
});
|
||||
|
||||
$("#equipmentcode").textbox('textbox').bind("click", function () {
|
||||
selectEquipmentCard("search_equ","equipmentcode");
|
||||
});
|
||||
/* $('#mm').switchbutton({
|
||||
onChange: function(checked){
|
||||
if(checked==true){
|
||||
$('#notdisplayinvalid').val("1");
|
||||
}else{
|
||||
$('#notdisplayinvalid').val("");
|
||||
}
|
||||
//alert($('#mm').switchbutton('options').checked);
|
||||
$('#pid').val('${dailyplansummary.id }');
|
||||
grid.datagrid('load',ext.serializeObject($('#searchForm')));//搜索
|
||||
}
|
||||
});*/
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div id="toolbar" style="display: none;">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<form id="searchForm">
|
||||
<table >
|
||||
<tr>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-table',plain:true"
|
||||
onclick="viewCountFun()">设备检测次数一览</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input id="recordtype" type="radio" name="recordtype"
|
||||
class="easyui-validatebox" value="QE" ><label>二次元检测</label></input>
|
||||
<input id="recordtype" type="radio" name="recordtype"
|
||||
class="easyui-validatebox" value="AD"><label>外观检测</label></input>
|
||||
</td>
|
||||
<!-- <td>
|
||||
<input id="mm"
|
||||
class="easyui-switchbutton" style="height:22px;width:50px;"
|
||||
data-options="onText:'二次元检测',offText:'外观检测'" unchecked></td>
|
||||
<td><input id="notdisplayinvalid" name="notdisplayinvalid" type="hidden"
|
||||
value="" />
|
||||
</td> -->
|
||||
</tr>
|
||||
</table>
|
||||
<table class="tooltable">
|
||||
<tr>
|
||||
<td>设备</td>
|
||||
<td><input id="equipmentcode" name="equipmentcode" class="easyui-textbox"
|
||||
data-options="prompt:'单击选择'" value="" readonly/>
|
||||
<input id="search_equ" name = "search_equ" type="hidden"/>
|
||||
</td>
|
||||
<td>工序</td>
|
||||
<td><input id="search_proced" name="search_proced" class="easyui-combobox" /></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-search',plain:true"
|
||||
onclick="grid.datagrid('load',ext.serializeObject($('#searchForm')));">搜索</a>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
|
||||
onclick="$('#searchForm').form('clear');grid.datagrid('load',{});">重置</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div data-options="region:'center',fit:true,border:false">
|
||||
<table id="grid" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
227
bin/WebRoot/jsp/quality/equTestingRecordPView.jsp
Normal file
227
bin/WebRoot/jsp/quality/equTestingRecordPView.jsp
Normal file
@ -0,0 +1,227 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ page import="com.sipai.tools.SessionManager"%>
|
||||
<%
|
||||
SessionManager sessionManager = new SessionManager();
|
||||
%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<script type="text/javascript">
|
||||
var grid;
|
||||
var gridad;
|
||||
function searchFun(){
|
||||
grid.datagrid('load',ext.serializeObject($('#searchForm')));
|
||||
gridad.datagrid('load',ext.serializeObject($('#searchForm')));
|
||||
|
||||
}
|
||||
|
||||
$(function() {
|
||||
//radio监听器
|
||||
for(var i = 0; i < $(".radioSpan input").length; i++){
|
||||
$(".radioSpan input")[i].addEventListener("click",function(){
|
||||
//grid.datagrid('load',ext.serializeObject($('#searchForm')));
|
||||
grid.datagrid('reload');
|
||||
//console.log("dsasaddd",$(this).val());
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/equtestingrecord/getPQElist.do?equid=${equid}',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
singleSelect: false,
|
||||
ctrlSelect:true,
|
||||
nowrap:false,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{width : '100', title : '记录编码', field : 'recordcode', sortable : true, halign:'center'},
|
||||
{width : '80', title : '记录类型', field : 'recordtype', sortable : true, halign:'center',formatter:function(value,row){
|
||||
switch (value) {
|
||||
case 'QE':
|
||||
return '二次元';
|
||||
case 'AD':
|
||||
return '外观';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}},
|
||||
{width : '80', title : '检测类型', field : 'testingtype', sortable : true, halign:'center',formatter:function(value,row){
|
||||
switch (value) {
|
||||
case '0':
|
||||
return '标准';
|
||||
case '1':
|
||||
return '调机';
|
||||
case '2':
|
||||
return '首检';
|
||||
case '3':
|
||||
return '巡检';
|
||||
case '4':
|
||||
return '抽检';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}},
|
||||
{width : '140', title : '日期', field : 'time', sortable : true, halign:'center',formatter:function(value,row){
|
||||
var str = value.substring(0,16);
|
||||
return str;
|
||||
}},
|
||||
{width : '80', title : '结果判定', field : 'result', sortable : true, halign:'center'},
|
||||
{width : '200', title : '工单号', field : 'workorderno', halign:'center'},
|
||||
{width : '170', title : '备注(NG原因)', field : 'instruction', sortable : true, halign:'center'}
|
||||
] ],
|
||||
toolbar : '#toolbarqe',
|
||||
rowStyler: function(index,row){//如果调机时,该行隐藏
|
||||
if (row.testingtype=='1'&&$('input:radio[name="havingdebugs"]:checked').val()==0){
|
||||
return 'display:none'; // return inline style
|
||||
}
|
||||
},
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
gridad = $('#gridad').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/equtestingrecord/getPADlist.do?equid=${equid}',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
singleSelect: false,
|
||||
ctrlSelect:true,
|
||||
nowrap:false,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{width : '100', title : '记录编码', field : 'recordcode', sortable : true, halign:'center'},
|
||||
{width : '80', title : '记录类型', field : 'recordtype', sortable : true, halign:'center',formatter:function(value,row){
|
||||
switch (value) {
|
||||
case 'QE':
|
||||
return '二次元';
|
||||
case 'AD':
|
||||
return '外观';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}},
|
||||
{width : '80', title : '检测类型', field : 'testingtype', sortable : true, halign:'center',formatter:function(value,row){
|
||||
switch (value) {
|
||||
case '0':
|
||||
return '标准';
|
||||
case '1':
|
||||
return '调机';
|
||||
case '2':
|
||||
return '首检';
|
||||
case '3':
|
||||
return '巡检';
|
||||
case '4':
|
||||
return '抽检';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}},
|
||||
{width : '140', title : '日期', field : 'time', sortable : true, halign:'center',formatter:function(value,row){
|
||||
var str = value.substring(0,16);
|
||||
return str;
|
||||
}},
|
||||
{width : '80', title : '结果判定', field : 'result', sortable : true, halign:'center'},
|
||||
{width : '200', title : '工单号', field : 'workorderno', halign:'center'},
|
||||
{width : '170', title : '备注(NG原因)', field : 'instruction', sortable : true, halign:'center'}
|
||||
] ],
|
||||
toolbar : '#toolbarad',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
$('#search_proced').combobox({
|
||||
url : ext.contextPath + '/process/taskprocedure/getprocedlist.do?random=' + Math.random(),
|
||||
valueField:'procedurecode',
|
||||
textField:'procedurename',
|
||||
method:'get'
|
||||
});
|
||||
|
||||
/* $('#mm').switchbutton({
|
||||
onChange: function(checked){
|
||||
if(checked==true){
|
||||
$('#notdisplayinvalid').val("1");
|
||||
}else{
|
||||
$('#notdisplayinvalid').val("");
|
||||
}
|
||||
//alert($('#mm').switchbutton('options').checked);
|
||||
$('#pid').val('${dailyplansummary.id }');
|
||||
grid.datagrid('load',ext.serializeObject($('#searchForm')));//搜索
|
||||
}
|
||||
});*/
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body class="easyui-layout" data-options="fit:true,border:false">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<form id="searchForm">
|
||||
<table class="tooltable">
|
||||
<tr>
|
||||
<td>检测编号</td>
|
||||
<td><input id="search_recordcode" name="search_recordcode" class="easyui-textbox" /></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-search',plain:true"
|
||||
onclick=" searchFun()">搜索</a>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
|
||||
onclick="$('#searchForm').form('clear');grid.datagrid('load',{});gridad.datagrid('load',{});">重置</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="easyui-tabs" style="width:100%;height:100%;" >
|
||||
<div title="二次元检测" style="padding:0px;">
|
||||
<div id="toolbarqe" style="display: none;">
|
||||
<form id="gridqeForm">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="radioSpan">
|
||||
<input type="radio" name="havingdebugs" checked="checked" value="0">不包含调试记录</input>
|
||||
<input type="radio" name="havingdebugs" value="1">包含调试记录</input>
|
||||
</span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<div id="cc" class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div data-options="region:'center',fit:true,border:false">
|
||||
<table id="grid" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="adtab" title="外观检测" closable="true" data-options="closable:false">
|
||||
<div id="toolbarad" style="display: none;">
|
||||
|
||||
</div>
|
||||
<div id="adcc" class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div data-options="region:'center',fit:true,border:false">
|
||||
<table id="gridad" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
79
bin/WebRoot/jsp/quality/importStatistics_CI_sub.jsp
Normal file
79
bin/WebRoot/jsp/quality/importStatistics_CI_sub.jsp
Normal file
@ -0,0 +1,79 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>导入人员</title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<script>
|
||||
var uploader,state;
|
||||
$(function() {
|
||||
var $ = jQuery,
|
||||
$list = $('#thelist'),
|
||||
state = 'pending';
|
||||
|
||||
uploader = WebUploader.create({
|
||||
// swf文件路径
|
||||
swf: ext.contextPath+'/JS/webuploader-0.1.5/Uploader.swf',
|
||||
// 文件接收服务端。
|
||||
server: ext.contextPath+'/quality/statistics_CI/importstatistics_CI_sub.do',
|
||||
// 选择文件的按钮。可选。
|
||||
// 内部根据当前运行是创建,可能是input元素,也可能是flash.
|
||||
pick: {
|
||||
id: '#picker',
|
||||
multiple: false
|
||||
},
|
||||
// 不压缩image, 默认如果是jpeg,文件上传前会压缩一把再上传!
|
||||
resize: false,
|
||||
accept: {
|
||||
title: 'Excel',
|
||||
extensions: 'xls,xlsx',
|
||||
mimeTypes: 'excel/*'
|
||||
}
|
||||
});
|
||||
//当有文件被添加进队列的时候
|
||||
uploader.on( 'fileQueued', function( file ) {
|
||||
$list.append( '<div id="' + file.id + '" class="item">' +
|
||||
'<h4 class="info">' + file.name + '</h4>' +
|
||||
'<p class="state">等待上传...</p>' +
|
||||
'</div>' );
|
||||
});
|
||||
});
|
||||
|
||||
var doimport = function(dialog, grid){
|
||||
//执行上传功能
|
||||
if ( state === 'uploading' ) {
|
||||
alert("文件正在上传中,请稍等");
|
||||
} else {
|
||||
uploader.upload();
|
||||
}
|
||||
|
||||
uploader.on( 'uploadError', function( file ) {
|
||||
$( '#'+file.id ).find('p.state').text('上传出错');
|
||||
});
|
||||
|
||||
uploader.on( 'uploadSuccess', function( file,response ) {
|
||||
$( '#'+file.id ).find('p.state').text('已上传');
|
||||
if(response.feedback!=null&&response.feedback!=""){
|
||||
|
||||
alert(response.feedback);
|
||||
grid.datagrid('reload');
|
||||
dialog.dialog('destroy');
|
||||
}else{
|
||||
alert("导入未完成!");
|
||||
dialog.dialog('destroy');
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="uploader" class="wu-example">
|
||||
<div class="btns">
|
||||
<div id="picker">选择文件</div>
|
||||
</div>
|
||||
<!--用来存放文件信息-->
|
||||
<div id="thelist" class="uploader-list"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
78
bin/WebRoot/jsp/quality/importTestingRecord.jsp
Normal file
78
bin/WebRoot/jsp/quality/importTestingRecord.jsp
Normal file
@ -0,0 +1,78 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>导入人员</title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<script>
|
||||
var uploader,state;
|
||||
|
||||
$(function() {
|
||||
var $ = jQuery,
|
||||
$list = $('#thelist'),
|
||||
state = 'pending';
|
||||
uploader = WebUploader.create({
|
||||
// swf文件路径
|
||||
swf: ext.contextPath+'/JS/webuploader-0.1.5/Uploader.swf',
|
||||
// 文件接收服务端。
|
||||
server: ext.contextPath+'/quality/testingrecord/importTestingRecord.do',
|
||||
// 选择文件的按钮。可选。
|
||||
// 内部根据当前运行是创建,可能是input元素,也可能是flash.
|
||||
pick: {
|
||||
id: '#picker',
|
||||
multiple: false
|
||||
},
|
||||
// 不压缩image, 默认如果是jpeg,文件上传前会压缩一把再上传!
|
||||
resize: false,
|
||||
accept: {
|
||||
title: 'Excel',
|
||||
extensions: 'xls,xlsx',
|
||||
mimeTypes: 'excel/*'
|
||||
}
|
||||
});
|
||||
//当有文件被添加进队列的时候
|
||||
uploader.on( 'fileQueued', function( file ) {
|
||||
$list.append( '<div id="' + file.id + '" class="item">' +
|
||||
'<h4 class="info">' + file.name + '</h4>' +
|
||||
'<p class="state">等待上传...</p>' +
|
||||
'</div>' );
|
||||
});
|
||||
});
|
||||
|
||||
var doimport = function(dialog, grid){
|
||||
//执行上传功能
|
||||
if ( state === 'uploading' ) {
|
||||
alert("文件正在上传中,请稍等");
|
||||
} else {
|
||||
uploader.upload();
|
||||
}
|
||||
|
||||
uploader.on( 'uploadError', function( file ) {
|
||||
$( '#'+file.id ).find('p.state').text('上传出错');
|
||||
});
|
||||
|
||||
uploader.on( 'uploadSuccess', function( file,response ) {
|
||||
$( '#'+file.id ).find('p.state').text('已上传');
|
||||
if(response.feedback!=null&&response.feedback!=""){
|
||||
alert(response.feedback);
|
||||
grid.datagrid('reload');
|
||||
dialog.dialog('destroy');
|
||||
}else{
|
||||
alert("导入未完成!");
|
||||
dialog.dialog('destroy');
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="uploader" class="wu-example">
|
||||
<div class="btns">
|
||||
<div id="picker">选择文件</div>
|
||||
</div>
|
||||
<!--用来存放文件信息-->
|
||||
<div id="thelist" class="uploader-list"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
385
bin/WebRoot/jsp/quality/leaveFactoryCheckAdd.jsp
Normal file
385
bin/WebRoot/jsp/quality/leaveFactoryCheckAdd.jsp
Normal file
@ -0,0 +1,385 @@
|
||||
<!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"%>
|
||||
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
|
||||
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<meta name="ProgId" content="Excel.Sheet"/>
|
||||
<meta name="Generator" content="WPS Office ET"/>
|
||||
<style>
|
||||
<!-- @page
|
||||
{margin:0.39in 0.28in 0.39in 0.32in;
|
||||
mso-header-margin:0.51in;
|
||||
mso-footer-margin:0.51in;}
|
||||
--> </style>
|
||||
<!--[if gte mso 9]>
|
||||
<xml>
|
||||
<x:WorksheetOptions>
|
||||
<x:DefaultRowHeight>285</x:DefaultRowHeight>
|
||||
<x:Selected/>
|
||||
<x:Panes>
|
||||
<x:Pane>
|
||||
<x:Number>3</x:Number>
|
||||
<x:ActiveCol>4</x:ActiveCol>
|
||||
<x:ActiveRow>15</x:ActiveRow>
|
||||
<x:RangeSelection>E16:M16</x:RangeSelection>
|
||||
</x:Pane>
|
||||
</x:Panes>
|
||||
<x:ProtectContents>False</x:ProtectContents>
|
||||
<x:ProtectObjects>False</x:ProtectObjects>
|
||||
<x:ProtectScenarios>False</x:ProtectScenarios>
|
||||
<x:PageBreakZoom>100</x:PageBreakZoom>
|
||||
<x:Print>
|
||||
<x:ValidPrinterInfo/>
|
||||
<x:PaperSizeIndex>9</x:PaperSizeIndex>
|
||||
<x:HorizontalResolution>600</x:HorizontalResolution>
|
||||
</x:Print>
|
||||
</x:WorksheetOptions>
|
||||
</xml>
|
||||
<![endif]-->
|
||||
<jsp:include page="../inc.jsp"></jsp:include>
|
||||
<link rel="Stylesheet" href="${ctx}/CSS/LeaveFactoryCheck.css"/>
|
||||
<script language="JavaScript">
|
||||
// if (window.name!="frSheet")
|
||||
// window.location.replace("../质检.htm");
|
||||
// else
|
||||
// parent.fnUpdateTabs(0);
|
||||
function dosave(dialog,grid) {
|
||||
if($('#inspector').val()==""){
|
||||
alert("检验员编号为必填项,不可为空");
|
||||
$('#inspector').focus();
|
||||
return ;
|
||||
}
|
||||
if($('#inspectdate').val()==""){
|
||||
alert("检验日期为必填项,不可为空");
|
||||
$('#inspectdate').focus();
|
||||
return ;
|
||||
}
|
||||
if ($("#form").form('validate')) {
|
||||
$.post(ext.contextPath + "/quality/leavefactorycheck/save.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');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body link="blue" vlink="purple">
|
||||
<form method="post" id="form" >
|
||||
<table width="878" border="0" cellpadding="0" cellspacing="0" style='width:658.50pt;border-collapse:collapse;table-layout:fixed;'>
|
||||
<col width="31" style='mso-width-source:userset;mso-width-alt:992;'/>
|
||||
<col width="47" style='mso-width-source:userset;mso-width-alt:1504;'/>
|
||||
<col width="54" style='mso-width-source:userset;mso-width-alt:1728;'/>
|
||||
<col width="34" style='mso-width-source:userset;mso-width-alt:1088;'/>
|
||||
<col width="72" span="3" style='width:54.00pt;'/>
|
||||
<col width="65" style='mso-width-source:userset;mso-width-alt:2080;'/>
|
||||
<col width="31" style='mso-width-source:userset;mso-width-alt:992;'/>
|
||||
<col width="28" span="2" style='mso-width-source:userset;mso-width-alt:896;'/>
|
||||
<col width="17" style='mso-width-source:userset;mso-width-alt:544;'/>
|
||||
<col width="33" style='mso-width-source:userset;mso-width-alt:1056;'/>
|
||||
<col width="50" style='mso-width-source:userset;mso-width-alt:1600;'/>
|
||||
<col width="54" style='mso-width-source:userset;mso-width-alt:1728;'/>
|
||||
<col width="46" style='mso-width-source:userset;mso-width-alt:1472;'/>
|
||||
<col width="72" span="2" style='width:54.00pt;'/>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" width="78" colspan="2" style='height:14.25pt;width:58.50pt;mso-ignore:colspan;' x:str>Q/JBSC9389</td>
|
||||
<td class="xl66" width="54" style='width:40.50pt;'></td>
|
||||
<td class="xl66" width="34" style='width:25.50pt;'></td>
|
||||
<td class="xl66" width="72" style='width:54.00pt;'></td>
|
||||
<td class="xl66" width="72" style='width:54.00pt;'></td>
|
||||
<td class="xl66" width="72" style='width:54.00pt;'></td>
|
||||
<td class="xl66" width="65" style='width:48.75pt;'></td>
|
||||
<td class="xl66" width="31" style='width:23.25pt;'></td>
|
||||
<td class="xl66" width="28" style='width:21.00pt;'></td>
|
||||
<td class="xl66" width="28" style='width:21.00pt;'></td>
|
||||
<td class="xl66" width="17" style='width:12.75pt;'></td>
|
||||
<td class="xl66" width="33" style='width:24.75pt;'></td>
|
||||
<td class="xl66" width="50" style='width:37.50pt;'></td>
|
||||
<td class="xl66" width="54" style='width:40.50pt;'></td>
|
||||
<td class="xl66" width="46" style='width:34.50pt;'></td>
|
||||
<td width="72" style='width:54.00pt;'></td>
|
||||
<td width="72" style='width:54.00pt;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl67" height="38" colspan="16" rowspan="2" style='height:28.50pt;border-right:none;border-bottom:none;' x:str><input id="equipmentname" name="equipmentname" class="easyui-textbox" data-options="required:true,validType:'isBlank',prompt:'设备型号及名称'" value=""/> 出厂检验记录单</td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="27" style='height:20.25pt;'>
|
||||
<td class="xl65" height="27" style='height:20.25pt;'></td>
|
||||
<td class="xl66" colspan="3" style='mso-ignore:colspan;'></td>
|
||||
<td class="xl66" colspan="3" style='mso-ignore:colspan;'></td>
|
||||
<td class="xl66" colspan="3" style='mso-ignore:colspan;'></td>
|
||||
<td class="xl68" colspan="3" style='border-right:none;border-bottom:none;' x:str>出厂编号</td>
|
||||
<td class="xl88" colspan="3" style='mso-ignore:colspan;border-right:none;border-bottom:none;' x:str><input id="leavefactoryno" name="leavefactoryno" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value=""/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" colspan="3" style='height:14.25pt;mso-ignore:colspan;' x:str><span style='mso-spacerun:yes;'> </span>主要技术参数</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" colspan="2" style='height:14.25pt;mso-ignore:colspan;' x:str><span style='mso-spacerun:yes;'> </span>额定电压</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" x:str><input id="ratedvoltage" name="ratedvoltage" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value=""/></td>
|
||||
<td class="xl65"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>电操机构电压</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>
|
||||
<input id="poweroperationv" name="poweroperationv" class="easyui-textbox" data-options="required:true,validType:'isBlank',prompt:'无数值请输入‘-’'" value=""/>
|
||||
</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" colspan="2" style='height:14.25pt;mso-ignore:colspan;' x:str><span style='mso-spacerun:yes;'> </span>额定电流</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" x:str><input id="ratedcurrent" name="ratedcurrent" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value=""/></td>
|
||||
<td class="xl65"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>分励脱扣器电压</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>
|
||||
<input id="shuntreleasev" name="shuntreleasev" class="easyui-textbox" data-options="required:true,validType:'isBlank',prompt:'无数值请输入‘-’'" value=""/>
|
||||
</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" colspan="2" style='height:14.25pt;mso-ignore:colspan;' x:str><span style='mso-spacerun:yes;'> </span>安装型式</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str><input id="installationtype" name="installationtype" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value=""/></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>合闸电磁铁电压</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>
|
||||
<input id="closingemv" name="closingemv" class="easyui-textbox" data-options="required:true,validType:'isBlank',prompt:'无数值请输入‘-’'" value=""/>
|
||||
</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" colspan="3" style='height:14.25pt;mso-ignore:colspan;' x:str><span style='mso-spacerun:yes;'> </span>智能脱扣器型号及规格</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>
|
||||
<input id="releasemodel" name="releasemodel" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value=""/>
|
||||
</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>欠压脱扣器电压</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" x:str>
|
||||
<input id="undervreleasev" name="undervreleasev" class="easyui-textbox" data-options="required:true,validType:'isBlank',prompt:'无数值请输入‘-’'" value=""/>
|
||||
</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" colspan="2" style='height:14.25pt;mso-ignore:colspan;' x:str><span style='mso-spacerun:yes;'> </span>外部附件</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" x:str>
|
||||
<input id="appendix" name="appendix" class="easyui-textbox" data-options="required:true,validType:'isBlank',prompt:'无数值请输入‘-’'" value=""/>
|
||||
</td>
|
||||
<td class="xl65"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" x:str>备注</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>
|
||||
<input id="remarkoverall" name="remarkoverall" class="easyui-textbox" data-options="required:true,validType:'isBlank',prompt:'无数值请输入‘-’'" value=""/>
|
||||
</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="24" style='height:18.00pt;mso-height-source:userset;mso-height-alt:360;'>
|
||||
<td class="xl66" height="24" colspan="4" style='height:18.00pt;mso-ignore:colspan;'></td>
|
||||
<td class="xl66" colspan="3" style='mso-ignore:colspan;'></td>
|
||||
<td class="xl66" colspan="9" style='mso-ignore:colspan;'></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl69" height="56" style='height:42.00pt;' x:str>序号</td>
|
||||
<td class="xl70" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>检验项目<br/>Inspection Item</td>
|
||||
<td class="xl70" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>技术要求<br/>Technical Requirement</td>
|
||||
<td class="xl70" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>实测结果<br/>Result</td>
|
||||
<td class="xl70" x:str>备注<br/>Remark</td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="60" style='height:45.00pt;mso-height-source:userset;mso-height-alt:900;'>
|
||||
<td class="xl73" height="60" style='height:45.00pt;' x:num>1</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>一般检查<font class="font4"><br/>Check Appearance</font></td>
|
||||
<td class="xl76" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span><font class="font1">金属件、铭牌、二次回路、装配、接地、电气间隙、爬电距离、抽屉座等</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>Nameplate,secondary loop,Assembly,Earth Marking,<br/><span style='mso-spacerun:yes;'> </span>clearance,creepage distance,draw-out and so on</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74"><input id="remark1" name="remark1" class="easyui-textbox" style='width:60px;overflow:auto;height:40px;' data-options="multiline:true" value="" validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="89.33" style='height:67.00pt;mso-height-source:userset;mso-height-alt:1340;'>
|
||||
<td class="xl73" height="89.33" style='height:67.00pt;' x:num>2</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>机械操作特性检查<font class="font4"><br/>Check Mechcanical Operation Performance</font></td>
|
||||
<td class="xl78" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>手动操作断路器:两次闭合,两次断开;两次自由脱扣操作。电动操作断路<font class="font4"> </font><font class="font1">器:在额定控制电源的</font><font class="font4">110%</font><font class="font1">和</font><font class="font4">85%</font><font class="font1">时两次闭合,断开操作;两次自由脱扣操作</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>Manual operation: close and break the breaker twice;make free trip twice.Power operation:close and break the breaker at 110% and 85% rated control power;make free trip twice.</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74"><input id="remark2" name="remark2" class="easyui-textbox" style='width:60px;overflow:auto;height:40px;' data-options="multiline:true" value=""validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="70.67" style='height:53.00pt;mso-height-source:userset;mso-height-alt:1060;'>
|
||||
<td class="xl73" height="70.67" style='height:53.00pt;' x:num>3</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>长延时<font class="font4">Ir1<br/>Long-Delay Ir1</font></td>
|
||||
<td class="xl76" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>1.05Ir1>2h<font class="font1">不动作</font><font class="font4">, 1.05Ir1<1h</font><font class="font1">动作</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>1.05Ir1>2h</font><font class="font1"> Without Action</font><font class="font4">, 1.05Ir1<1h Action</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>A<font class="font27">相</font><font class="font4">
|
||||
<input id="phasea" name="phasea" class="easyui-textbox" data-options="required:true,validType:'isBlank'" style='width:50px' value=""/>
|
||||
</font><font class="font27">合格</font><font class="font4"><br/>B</font><font class="font27">相</font><font class="font4">
|
||||
<input id="phaseb" name="phaseb" class="easyui-textbox" data-options="required:true,validType:'isBlank'" style='width:50px' value=""/>
|
||||
</font><font class="font27">合格</font><font class="font4"><br/>C</font><font class="font27">相</font><font class="font4">
|
||||
<input id="phasec" name="phasec" class="easyui-textbox" data-options="required:true,validType:'isBlank'" style='width:50px' value=""/>
|
||||
</font><font class="font27">合格</font><font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74"><input id="remark3" name="remark3" class="easyui-textbox" style='width:60px;overflow:auto;height:40px;' data-options="multiline:true" value=""validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl73" height="56" style='height:42.00pt;' x:num>4</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>短延时<font class="font4">Ir2<br/>Short-Delay Ir2</font></td>
|
||||
<td class="xl76" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>0.9Ir2<font class="font1">不动作</font><font class="font4">, 1.1Ir2</font><font class="font1">定时限动作</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>0.9Ir2 Without Action, 1.1Ir2 Delay Action</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74"><input id="remark4" name="remark4" class="easyui-textbox" style='width:60px;overflow:auto;height:40px;' data-options="multiline:true" value=""validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl73" height="56" style='height:42.00pt;' x:num>5</td>
|
||||
<td class="xl79" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>瞬时<font class="font4">Ir3<br/>Instantaneous Ir3</font></td>
|
||||
<td class="xl76" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>0.85Ir3<font class="font1">不动作</font><font class="font4">, 1.15Ir3</font><font class="font1">瞬时动作</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>0.85Ir3 Without Action, 1.15Ir3 Instantaneous Action(t<100ms)</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74"><input id="remark5" name="remark5" class="easyui-textbox" style='width:60px;overflow:auto;height:40px;' data-options="multiline:true" value=""validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="66.67" style='height:50.00pt;mso-height-source:userset;mso-height-alt:1000;'>
|
||||
<td class="xl73" height="66.67" style='height:50.00pt;' x:num>6</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>欠压脱扣器<font class="font4"><br/>Under voltage Release</font></td>
|
||||
<td class="xl80" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>≧<font class="font4">85%Ue </font><font class="font1">可靠吸合</font><font class="font4">,(35% -70%)Ue </font><font class="font1">瞬时或延时断开</font><font class="font4">,<35%Ue</font><font class="font1">不合闸</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span></font><font class="font1">≧</font><font class="font4">85%Ue Reliable Closing<br/><span style='mso-spacerun:yes;'> </span>(35% -70%)Ue Instantaneous or Delay Break<br/><span style='mso-spacerun:yes;'> </span><35%Ue Refuse to Close</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>-</td>
|
||||
<td class="xl74"><input id="remark6" name="remark6" class="easyui-textbox" style='width:60px;overflow:auto;height:40px;' data-options="multiline:true" value=""validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl73" height="56" style='height:42.00pt;' x:num>7</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>分励脱扣器<font class="font4"><br/>Shunt Release</font></td>
|
||||
<td class="xl76" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>(70%-100%)Ue <font class="font1">应可靠动作</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>(70%-110%)Ue Reliable Action</font></td>
|
||||
<td class="xl79" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74"><input id="remark7" name="remark7" class="easyui-textbox" style='width:60px;overflow:auto;height:40px;' data-options="multiline:true" value=""validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl73" height="56" style='height:42.00pt;' x:num>8</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>释能脱扣器<font class="font4"><br/>Energy Releasing Release</font></td>
|
||||
<td class="xl76" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>(85%-100%)Ue <font class="font1">应可靠动作</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>(85%-110%)Ue Reliable Action</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74"><input id="remark8" name="remark8" class="easyui-textbox" style='width:60px;overflow:auto;height:40px;' data-options="multiline:true" value=""validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl73" height="56" style='height:42.00pt;' x:num>9</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>耐压试验<font class="font4"><br/>Voltage Releasing Test</font></td>
|
||||
<td class="xl78" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>主回路2500V/1s,控制回路1890V/1s,不允许有闪烙、击穿现象<font class="font4"><br/><span style='mso-spacerun:yes;'> </span>Major Loop 2500V/1s,Control Loop 1890V/1s.<br/><span style='mso-spacerun:yes;'> </span>No flashover and destructive phenomenon should be allowed.</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74"><input id="remark9" name="remark9" class="easyui-textbox" style='width:60px;overflow:auto;height:40px;' data-options="multiline:true" value=""validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl81" height="56" style='height:42.00pt;' x:num>10</td>
|
||||
<td class="xl82" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:none;' x:str>包装检查<font class="font4"><br/>Packing inspection</font></td>
|
||||
<td class="xl84" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:none;' x:str>断路器实物必须与箱内外标识的规格一致,箱内附件必须齐全<font class="font4">(</font><font class="font1">对照附件表</font><font class="font4">)<br/>Products must be consistent with the specifications of identity, accessories in the boxes must be complete(according to the upfile).</font></td>
|
||||
<td class="xl82" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:none;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl82"><input id="remark10" name="remark10" class="easyui-textbox" style='width:60px;overflow:auto;height:40px;' data-options="multiline:true" value=""validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="40" style='height:30.00pt;mso-height-source:userset;mso-height-alt:600;'>
|
||||
<td class="xl74" height="40" colspan="4" style='height:30.00pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>结论<font class="font4"><br/>Conclusion</font></td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74" x:str>检验员<font class="font4"><br/>Inspector</font></td>
|
||||
<td class="xl91" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>检<font class="font4">
|
||||
<input id="inspector" name="inspector" style='width:40px' class="easyui-textbox,prompt:'输入检验员序号,如‘77’'" data-options="required:true,validType:'isBlank'" value=""/>
|
||||
</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>日期<font class="font4"><br/>Date</font></td>
|
||||
<td class="xl94" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:num="42319.">
|
||||
<input name="inspectdate" id="inspectdate" class="Wdate" value="${nowdate }" style='width:100px' onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'});" readonly>
|
||||
</td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td height="19" colspan="4" style='height:14.25pt;mso-ignore:colspan;'></td>
|
||||
<td colspan="3" style='mso-ignore:colspan;'></td>
|
||||
<td colspan="9" style='mso-ignore:colspan;'></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<!-- <td class="xl86" height="19" colspan="4" style='height:14.25pt;border-right:none;border-bottom:none;' x:str>2015.11.11 11:11:11AM</td>
|
||||
<td colspan="3" style='mso-ignore:colspan;'></td>
|
||||
<td colspan="9" style='mso-ignore:colspan;'></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td> -->
|
||||
</tr>
|
||||
<![if supportMisalignedColumns]>
|
||||
<tr width="0" style='display:none;'>
|
||||
<td width="31" style='width:23;'></td>
|
||||
<td width="47" style='width:35;'></td>
|
||||
<td width="54" style='width:41;'></td>
|
||||
<td width="34" style='width:26;'></td>
|
||||
<td width="65" style='width:49;'></td>
|
||||
<td width="31" style='width:23;'></td>
|
||||
<td width="28" style='width:21;'></td>
|
||||
<td width="17" style='width:13;'></td>
|
||||
<td width="33" style='width:25;'></td>
|
||||
<td width="50" style='width:38;'></td>
|
||||
<td width="54" style='width:41;'></td>
|
||||
<td width="46" style='width:35;'></td>
|
||||
</tr>
|
||||
<![endif]>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
388
bin/WebRoot/jsp/quality/leaveFactoryCheckEdit.jsp
Normal file
388
bin/WebRoot/jsp/quality/leaveFactoryCheckEdit.jsp
Normal file
@ -0,0 +1,388 @@
|
||||
<!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"%>
|
||||
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
|
||||
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<meta name="ProgId" content="Excel.Sheet"/>
|
||||
<meta name="Generator" content="WPS Office ET"/>
|
||||
<style>
|
||||
<!-- @page
|
||||
{margin:0.39in 0.28in 0.39in 0.32in;
|
||||
mso-header-margin:0.51in;
|
||||
mso-footer-margin:0.51in;}
|
||||
--> </style>
|
||||
<!--[if gte mso 9]>
|
||||
<xml>
|
||||
<x:WorksheetOptions>
|
||||
<x:DefaultRowHeight>285</x:DefaultRowHeight>
|
||||
<x:Selected/>
|
||||
<x:Panes>
|
||||
<x:Pane>
|
||||
<x:Number>3</x:Number>
|
||||
<x:ActiveCol>4</x:ActiveCol>
|
||||
<x:ActiveRow>15</x:ActiveRow>
|
||||
<x:RangeSelection>E16:M16</x:RangeSelection>
|
||||
</x:Pane>
|
||||
</x:Panes>
|
||||
<x:ProtectContents>False</x:ProtectContents>
|
||||
<x:ProtectObjects>False</x:ProtectObjects>
|
||||
<x:ProtectScenarios>False</x:ProtectScenarios>
|
||||
<x:PageBreakZoom>100</x:PageBreakZoom>
|
||||
<x:Print>
|
||||
<x:ValidPrinterInfo/>
|
||||
<x:PaperSizeIndex>9</x:PaperSizeIndex>
|
||||
<x:HorizontalResolution>600</x:HorizontalResolution>
|
||||
</x:Print>
|
||||
</x:WorksheetOptions>
|
||||
</xml>
|
||||
<![endif]-->
|
||||
<jsp:include page="../inc.jsp"></jsp:include>
|
||||
<link rel="Stylesheet" href="${ctx}/CSS/LeaveFactoryCheck.css"/>
|
||||
<script language="JavaScript">
|
||||
// if (window.name!="frSheet")
|
||||
// window.location.replace("../质检.htm");
|
||||
// else
|
||||
// parent.fnUpdateTabs(0);
|
||||
function dosave(dialog,grid) {
|
||||
if($('#inspector').val()==""){
|
||||
alert("检验员编号为必填项,不可为空");
|
||||
$('#inspector').focus();
|
||||
return ;
|
||||
}
|
||||
if($('#inspectdate').val()==""){
|
||||
alert("检验日期为必填项,不可为空");
|
||||
$('#inspectdate').focus();
|
||||
return ;
|
||||
}
|
||||
if ($("#form").form('validate')) {
|
||||
$.post(ext.contextPath + "/quality/leavefactorycheck/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');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body link="blue" vlink="purple">
|
||||
<form method="post" id="form" >
|
||||
|
||||
<table width="878" border="0" cellpadding="0" cellspacing="0" style='width:658.50pt;border-collapse:collapse;table-layout:fixed;'>
|
||||
<input type="hidden" id="id" name="id" value="${leavefactorycheck.id}"/>
|
||||
<col width="31" style='mso-width-source:userset;mso-width-alt:992;'/>
|
||||
<col width="47" style='mso-width-source:userset;mso-width-alt:1504;'/>
|
||||
<col width="54" style='mso-width-source:userset;mso-width-alt:1728;'/>
|
||||
<col width="34" style='mso-width-source:userset;mso-width-alt:1088;'/>
|
||||
<col width="72" span="3" style='width:54.00pt;'/>
|
||||
<col width="65" style='mso-width-source:userset;mso-width-alt:2080;'/>
|
||||
<col width="31" style='mso-width-source:userset;mso-width-alt:992;'/>
|
||||
<col width="28" span="2" style='mso-width-source:userset;mso-width-alt:896;'/>
|
||||
<col width="17" style='mso-width-source:userset;mso-width-alt:544;'/>
|
||||
<col width="33" style='mso-width-source:userset;mso-width-alt:1056;'/>
|
||||
<col width="50" style='mso-width-source:userset;mso-width-alt:1600;'/>
|
||||
<col width="54" style='mso-width-source:userset;mso-width-alt:1728;'/>
|
||||
<col width="46" style='mso-width-source:userset;mso-width-alt:1472;'/>
|
||||
<col width="72" span="2" style='width:54.00pt;'/>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" width="78" colspan="2" style='height:14.25pt;width:58.50pt;mso-ignore:colspan;' x:str>Q/JBSC9389</td>
|
||||
<td class="xl66" width="54" style='width:40.50pt;'></td>
|
||||
<td class="xl66" width="34" style='width:25.50pt;'></td>
|
||||
<td class="xl66" width="72" style='width:54.00pt;'></td>
|
||||
<td class="xl66" width="72" style='width:54.00pt;'></td>
|
||||
<td class="xl66" width="72" style='width:54.00pt;'></td>
|
||||
<td class="xl66" width="65" style='width:48.75pt;'></td>
|
||||
<td class="xl66" width="31" style='width:23.25pt;'></td>
|
||||
<td class="xl66" width="28" style='width:21.00pt;'></td>
|
||||
<td class="xl66" width="28" style='width:21.00pt;'></td>
|
||||
<td class="xl66" width="17" style='width:12.75pt;'></td>
|
||||
<td class="xl66" width="33" style='width:24.75pt;'></td>
|
||||
<td class="xl66" width="50" style='width:37.50pt;'></td>
|
||||
<td class="xl66" width="54" style='width:40.50pt;'></td>
|
||||
<td class="xl66" width="46" style='width:34.50pt;'></td>
|
||||
<td width="72" style='width:54.00pt;'></td>
|
||||
<td width="72" style='width:54.00pt;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl67" height="38" colspan="16" rowspan="2" style='height:28.50pt;border-right:none;border-bottom:none;' x:str><input id="equipmentname" name="equipmentname" class="easyui-textbox" data-options="required:true,validType:'isBlank',prompt:'设备型号及名称'" value="${leavefactorycheck.equipmentname}"/> 出厂检验记录单</td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="27" style='height:20.25pt;'>
|
||||
<td class="xl65" height="27" style='height:20.25pt;'></td>
|
||||
<td class="xl66" colspan="3" style='mso-ignore:colspan;'></td>
|
||||
<td class="xl66" colspan="3" style='mso-ignore:colspan;'></td>
|
||||
<td class="xl66" colspan="3" style='mso-ignore:colspan;'></td>
|
||||
<td class="xl68" colspan="3" style='border-right:none;border-bottom:none;' x:str>出厂编号</td>
|
||||
<td class="xl88" colspan="3" style='mso-ignore:colspan;border-right:none;border-bottom:none;' x:str><input id="leavefactoryno" name="leavefactoryno" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${leavefactorycheck.leavefactoryno}"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" colspan="3" style='height:14.25pt;mso-ignore:colspan;' x:str><span style='mso-spacerun:yes;'> </span>主要技术参数</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" colspan="2" style='height:14.25pt;mso-ignore:colspan;' x:str><span style='mso-spacerun:yes;'> </span>额定电压</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" x:str><input id="ratedvoltage" name="ratedvoltage" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${leavefactorycheck.ratedvoltage}"/></td>
|
||||
<td class="xl65"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>电操机构电压</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>
|
||||
<input id="poweroperationv" name="poweroperationv" class="easyui-textbox" data-options="required:true,validType:'isBlank',prompt:'无数值请输入‘-’'" value="${leavefactorycheck.poweroperationv}"/>
|
||||
</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" colspan="2" style='height:14.25pt;mso-ignore:colspan;' x:str><span style='mso-spacerun:yes;'> </span>额定电流</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" x:str><input id="ratedcurrent" name="ratedcurrent" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${leavefactorycheck.ratedcurrent}"/></td>
|
||||
<td class="xl65"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>分励脱扣器电压</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>
|
||||
<input id="shuntreleasev" name="shuntreleasev" class="easyui-textbox" data-options="required:true,validType:'isBlank',prompt:'无数值请输入‘-’'" value="${leavefactorycheck.shuntreleasev}"/>
|
||||
</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" colspan="2" style='height:14.25pt;mso-ignore:colspan;' x:str><span style='mso-spacerun:yes;'> </span>安装型式</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str><input id="installationtype" name="installationtype" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${leavefactorycheck.installationtype}"/></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>合闸电磁铁电压</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>
|
||||
<input id="closingemv" name="closingemv" class="easyui-textbox" data-options="required:true,validType:'isBlank',prompt:'无数值请输入‘-’'" value="${leavefactorycheck.closingemv}"/>
|
||||
</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" colspan="3" style='height:14.25pt;mso-ignore:colspan;' x:str><span style='mso-spacerun:yes;'> </span>智能脱扣器型号及规格</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>
|
||||
<input id="releasemodel" name="releasemodel" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${leavefactorycheck.releasemodel}"/>
|
||||
</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>欠压脱扣器电压</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" x:str>
|
||||
<input id="undervreleasev" name="undervreleasev" class="easyui-textbox" data-options="required:true,validType:'isBlank',prompt:'无数值请输入‘-’'" value="${leavefactorycheck.undervreleasev}"/>
|
||||
</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" colspan="2" style='height:14.25pt;mso-ignore:colspan;' x:str><span style='mso-spacerun:yes;'> </span>外部附件</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" x:str>
|
||||
<input id="appendix" name="appendix" class="easyui-textbox" data-options="required:true,validType:'isBlank',prompt:'无数值请输入‘-’'" value="${leavefactorycheck.appendix}"/>
|
||||
</td>
|
||||
<td class="xl65"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" x:str>备注</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>
|
||||
<input id="remarkoverall" name="remarkoverall" class="easyui-textbox" data-options="required:true,validType:'isBlank',prompt:'无数值请输入‘-’'" value="${leavefactorycheck.remarkoverall}"/>
|
||||
</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="24" style='height:18.00pt;mso-height-source:userset;mso-height-alt:360;'>
|
||||
<td class="xl66" height="24" colspan="4" style='height:18.00pt;mso-ignore:colspan;'></td>
|
||||
<td class="xl66" colspan="3" style='mso-ignore:colspan;'></td>
|
||||
<td class="xl66" colspan="9" style='mso-ignore:colspan;'></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl69" height="56" style='height:42.00pt;' x:str>序号</td>
|
||||
<td class="xl70" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>检验项目<br/>Inspection Item</td>
|
||||
<td class="xl70" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>技术要求<br/>Technical Requirement</td>
|
||||
<td class="xl70" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>实测结果<br/>Result</td>
|
||||
<td class="xl70" x:str>备注<br/>Remark</td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="60" style='height:45.00pt;mso-height-source:userset;mso-height-alt:900;'>
|
||||
<td class="xl73" height="60" style='height:45.00pt;' x:num>1</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>一般检查<font class="font4"><br/>Check Appearance</font></td>
|
||||
<td class="xl76" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span><font class="font1">金属件、铭牌、二次回路、装配、接地、电气间隙、爬电距离、抽屉座等</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>Nameplate,secondary loop,Assembly,Earth Marking,<br/><span style='mso-spacerun:yes;'> </span>clearance,creepage distance,draw-out and so on</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74"><input id="remark1" name="remark1" class="easyui-textbox" style='width:60px;overflow:auto;height:40px;' data-options="multiline:true" value="${remark1}" validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="89.33" style='height:67.00pt;mso-height-source:userset;mso-height-alt:1340;'>
|
||||
<td class="xl73" height="89.33" style='height:67.00pt;' x:num>2</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>机械操作特性检查<font class="font4"><br/>Check Mechcanical Operation Performance</font></td>
|
||||
<td class="xl78" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>手动操作断路器:两次闭合,两次断开;两次自由脱扣操作。电动操作断路<font class="font4"> </font><font class="font1">器:在额定控制电源的</font><font class="font4">110%</font><font class="font1">和</font><font class="font4">85%</font><font class="font1">时两次闭合,断开操作;两次自由脱扣操作</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>Manual operation: close and break the breaker twice;make free trip twice.Power operation:close and break the breaker at 110% and 85% rated control power;make free trip twice.</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74"><input id="remark2" name="remark2" class="easyui-textbox" style='width:60px;overflow:auto;height:40px;' data-options="multiline:true" value="${remark2}" validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="70.67" style='height:53.00pt;mso-height-source:userset;mso-height-alt:1060;'>
|
||||
<td class="xl73" height="70.67" style='height:53.00pt;' x:num>3</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>长延时<font class="font4">Ir1<br/>Long-Delay Ir1</font></td>
|
||||
<td class="xl76" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>1.05Ir1>2h<font class="font1">不动作</font><font class="font4">, 1.05Ir1<1h</font><font class="font1">动作</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>1.05Ir1>2h</font><font class="font1"> Without Action</font><font class="font4">, 1.05Ir1<1h Action</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>A<font class="font27">相</font><font class="font4">
|
||||
<input id="phasea" name="phasea" class="easyui-textbox" data-options="required:true,validType:'isBlank'" style='width:50px' value="${leavefactorycheck.phasea}"/>
|
||||
</font><font class="font27">合格</font><font class="font4"><br/>B</font><font class="font27">相</font><font class="font4">
|
||||
<input id="phaseb" name="phaseb" class="easyui-textbox" data-options="required:true,validType:'isBlank'" style='width:50px' value="${leavefactorycheck.phaseb}"/>
|
||||
</font><font class="font27">合格</font><font class="font4"><br/>C</font><font class="font27">相</font><font class="font4">
|
||||
<input id="phasec" name="phasec" class="easyui-textbox" data-options="required:true,validType:'isBlank'" style='width:50px' value="${leavefactorycheck.phasec}"/>
|
||||
</font><font class="font27">
|
||||
</font><font class="font27">合格</font><font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74"><input id="remark3" name="remark3" class="easyui-textbox" style='width:60px;overflow:auto;height:40px;' data-options="multiline:true" value="${remark3}" validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl73" height="56" style='height:42.00pt;' x:num>4</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>短延时<font class="font4">Ir2<br/>Short-Delay Ir2</font></td>
|
||||
<td class="xl76" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>0.9Ir2<font class="font1">不动作</font><font class="font4">, 1.1Ir2</font><font class="font1">定时限动作</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>0.9Ir2 Without Action, 1.1Ir2 Delay Action</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74"><input id="remark4" name="remark4" class="easyui-textbox" style='width:60px;overflow:auto;height:40px;' data-options="multiline:true" value="${remark4}" validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl73" height="56" style='height:42.00pt;' x:num>5</td>
|
||||
<td class="xl79" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>瞬时<font class="font4">Ir3<br/>Instantaneous Ir3</font></td>
|
||||
<td class="xl76" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>0.85Ir3<font class="font1">不动作</font><font class="font4">, 1.15Ir3</font><font class="font1">瞬时动作</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>0.85Ir3 Without Action, 1.15Ir3 Instantaneous Action(t<100ms)</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74"><input id="remark5" name="remark5" class="easyui-textbox" style='width:60px;overflow:auto;height:40px;' data-options="multiline:true" value="${remark5}" validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="66.67" style='height:50.00pt;mso-height-source:userset;mso-height-alt:1000;'>
|
||||
<td class="xl73" height="66.67" style='height:50.00pt;' x:num>6</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>欠压脱扣器<font class="font4"><br/>Under voltage Release</font></td>
|
||||
<td class="xl80" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>≧<font class="font4">85%Ue </font><font class="font1">可靠吸合</font><font class="font4">,(35% -70%)Ue </font><font class="font1">瞬时或延时断开</font><font class="font4">,<35%Ue</font><font class="font1">不合闸</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span></font><font class="font1">≧</font><font class="font4">85%Ue Reliable Closing<br/><span style='mso-spacerun:yes;'> </span>(35% -70%)Ue Instantaneous or Delay Break<br/><span style='mso-spacerun:yes;'> </span><35%Ue Refuse to Close</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>-</td>
|
||||
<td class="xl74"><input id="remark6" name="remark6" class="easyui-textbox" style='width:60px;overflow:auto;height:40px;' data-options="multiline:true" value="${remark6}" validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl73" height="56" style='height:42.00pt;' x:num>7</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>分励脱扣器<font class="font4"><br/>Shunt Release</font></td>
|
||||
<td class="xl76" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>(70%-100%)Ue <font class="font1">应可靠动作</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>(70%-110%)Ue Reliable Action</font></td>
|
||||
<td class="xl79" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74"><input id="remark7" name="remark7" class="easyui-textbox" style='width:60px;overflow:auto;height:40px;' data-options="multiline:true" value="${remark7}" validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl73" height="56" style='height:42.00pt;' x:num>8</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>释能脱扣器<font class="font4"><br/>Energy Releasing Release</font></td>
|
||||
<td class="xl76" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>(85%-100%)Ue <font class="font1">应可靠动作</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>(85%-110%)Ue Reliable Action</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74"><input id="remark8" name="remark8" class="easyui-textbox" style='width:60px;overflow:auto;height:40px;' data-options="multiline:true" value="${remark8}" validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl73" height="56" style='height:42.00pt;' x:num>9</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>耐压试验<font class="font4"><br/>Voltage Releasing Test</font></td>
|
||||
<td class="xl78" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>主回路2500V/1s,控制回路1890V/1s,不允许有闪烙、击穿现象<font class="font4"><br/><span style='mso-spacerun:yes;'> </span>Major Loop 2500V/1s,Control Loop 1890V/1s.<br/><span style='mso-spacerun:yes;'> </span>No flashover and destructive phenomenon should be allowed.</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74"><input id="remark9" name="remark9" class="easyui-textbox" style='width:60px;overflow:auto;height:40px;' data-options="multiline:true" value="${remark9}" validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl81" height="56" style='height:42.00pt;' x:num>10</td>
|
||||
<td class="xl82" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:none;' x:str>包装检查<font class="font4"><br/>Packing inspection</font></td>
|
||||
<td class="xl84" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:none;' x:str>断路器实物必须与箱内外标识的规格一致,箱内附件必须齐全<font class="font4">(</font><font class="font1">对照附件表</font><font class="font4">)<br/>Products must be consistent with the specifications of identity, accessories in the boxes must be complete(according to the upfile).</font></td>
|
||||
<td class="xl82" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:none;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl82"><input id="remark10" name="remark10" class="easyui-textbox" style='width:60px;overflow:auto;height:40px;' data-options="multiline:true" value="${remark10}" validtype="length[0,250]" invalidMessage="有效长度0-250"/></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="40" style='height:30.00pt;mso-height-source:userset;mso-height-alt:600;'>
|
||||
<td class="xl74" height="40" colspan="4" style='height:30.00pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>结论<font class="font4"><br/>Conclusion</font></td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74" x:str>检验员<font class="font4"><br/>Inspector</font></td>
|
||||
<td class="xl91" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>检<font class="font4">
|
||||
<input id="inspector" name="inspector" style='width:40px' class="easyui-textbox,prompt:'输入检验员序号,如‘77’'" data-options="required:true,validType:'isBlank'" value="${leavefactorycheck.inspector}"/>
|
||||
</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>日期<font class="font4"><br/>Date</font></td>
|
||||
<td class="xl94" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:num="42319.">
|
||||
<input name="inspectdate" class="Wdate" value="${fn:substring(leavefactorycheck.inspectdate,0,10)}" style='width:100px' onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'});" readonly>
|
||||
</td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td height="19" colspan="4" style='height:14.25pt;mso-ignore:colspan;'></td>
|
||||
<td colspan="3" style='mso-ignore:colspan;'></td>
|
||||
<td colspan="9" style='mso-ignore:colspan;'></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<!-- <td class="xl86" height="19" colspan="4" style='height:14.25pt;border-right:none;border-bottom:none;' x:str>2015.11.11 11:11:11AM</td>
|
||||
<td colspan="3" style='mso-ignore:colspan;'></td>
|
||||
<td colspan="9" style='mso-ignore:colspan;'></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td> -->
|
||||
</tr>
|
||||
<![if supportMisalignedColumns]>
|
||||
<tr width="0" style='display:none;'>
|
||||
<td width="31" style='width:23;'></td>
|
||||
<td width="47" style='width:35;'></td>
|
||||
<td width="54" style='width:41;'></td>
|
||||
<td width="34" style='width:26;'></td>
|
||||
<td width="65" style='width:49;'></td>
|
||||
<td width="31" style='width:23;'></td>
|
||||
<td width="28" style='width:21;'></td>
|
||||
<td width="17" style='width:13;'></td>
|
||||
<td width="33" style='width:25;'></td>
|
||||
<td width="50" style='width:38;'></td>
|
||||
<td width="54" style='width:41;'></td>
|
||||
<td width="46" style='width:35;'></td>
|
||||
</tr>
|
||||
<![endif]>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
189
bin/WebRoot/jsp/quality/leaveFactoryCheckList.jsp
Normal file
189
bin/WebRoot/jsp/quality/leaveFactoryCheckList.jsp
Normal file
@ -0,0 +1,189 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.Date" %>
|
||||
<%@page import="java.text.SimpleDateFormat" %>
|
||||
<%@ page import="com.sipai.tools.SessionManager"%>
|
||||
<%
|
||||
SessionManager sessionManager = new SessionManager();
|
||||
%>
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<script type="text/javascript">
|
||||
var grid;
|
||||
var addFun = function() {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '新增出厂检验单',
|
||||
width:950,
|
||||
url : ext.contextPath + '/quality/leavefactorycheck/add.do',
|
||||
buttons : [ {
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.dosave(dialog, grid);
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var viewFun = function(id) {
|
||||
grid.datagrid('clearChecked');
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '查看检验单信息',
|
||||
url : ext.contextPath + '/quality/leavefactorycheck/view.do?id=' + id,
|
||||
buttons : [ {
|
||||
text : '打印',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.doprint(dialog, grid);
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var editFun = function(id) {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '编辑检验单信息',
|
||||
url : ext.contextPath + '/quality/leavefactorycheck/edit.do?id=' + id,
|
||||
buttons : [ {
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.dosave(dialog, grid);
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var deleteFun = function(id) {
|
||||
parent.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/leavefactorycheck/delete.do', {id : id}, function(data) {
|
||||
if(data==1){
|
||||
top.$.messager.alert('提示','删除成功','info');
|
||||
grid.datagrid('reload');
|
||||
}else{
|
||||
top.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
var deletesFun = function() {
|
||||
var checkedItems = $('#grid').datagrid('getChecked');
|
||||
var datas="";
|
||||
$.each(checkedItems, function(index, item){
|
||||
datas+=item.id+",";
|
||||
});
|
||||
if(datas==""){
|
||||
top.$.messager.alert('提示', '请先选择要删除的记录','info');
|
||||
}else{
|
||||
top.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/leavefactorycheck/deletes.do', {ids:datas} , function(data) {
|
||||
if(data>0){
|
||||
top.$.messager.alert('提示','成功删除'+data+'条记录','info');
|
||||
grid.datagrid('reload');
|
||||
grid.datagrid('clearChecked');
|
||||
}else{
|
||||
top.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
$(function() {
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/leavefactorycheck/getLeaveFactoryChecks.do',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
ctrlSelect:true,
|
||||
singleSelect: false,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{checkbox:true , field : 'ck'},
|
||||
{width : '80', title : '出厂编号', field: 'leavefactoryno', sortable : true, halign:'center' },
|
||||
{width : '100', title : '设备名称', field : 'equipmentname', sortable : true, halign:'center' },
|
||||
{width : '150', title : '检验日期', field : 'inspectdate', sortable : true, halign:'center', formatter : function(value, row){
|
||||
return value.substring(0,19);
|
||||
} },
|
||||
{width : '80', title : '检验员', field: 'inspector', sortable : true, halign:'center' },
|
||||
{title : '操作', field : 'action', width : '160', halign:'center', align:'center', formatter : function(value, row) {
|
||||
var str = '';
|
||||
str += '<img class="iconImg ext-icon-table" title="查看" onclick="viewFun(\''+row.id+'\');"/> ';
|
||||
<%if (sessionManager.havePermission(session,"quality/leavefactorycheck/edit.do")) {%>
|
||||
str += '<img class="iconImg ext-icon-table_edit" title="编辑" onclick="editFun(\''+row.id+'\');"/> ';
|
||||
<%}%>
|
||||
<%if (sessionManager.havePermission(session,"quality/leavefactorycheck/delete.do")) {%>
|
||||
str += '<img class="iconImg ext-icon-table_delete" title="删除" onclick="deleteFun(\''+row.id+'\');"/>';
|
||||
<%}%>
|
||||
return str;
|
||||
}
|
||||
}
|
||||
] ],
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div id="toolbar" style="display: none;">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<%if (sessionManager.havePermission(session,"quality/leavefactorycheck/add.do")) {%>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true"
|
||||
onclick="addFun();">添加</a>
|
||||
</td>
|
||||
<%}%>
|
||||
<%if (sessionManager.havePermission(session,"quality/leavefactorycheck/delete.do")) {%>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
|
||||
onclick="deletesFun();">删除</a>
|
||||
</td>
|
||||
<%}%>
|
||||
<!-- <td><div class="datagrid-btn-separator"></div></td>
|
||||
<td><a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-table_add',plain:true" onclick="">导入</a></td>
|
||||
<td><a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-table_go',plain:true" onclick="">导出</a></td> -->
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<form id="searchForm">
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
<td>名称</td>
|
||||
<td><input name="search_name" class="easyui-textbox" data-options="prompt:'请输入关键字'" style="width: 150px;" value=""/></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-search',plain:true"
|
||||
onclick="grid.datagrid('load',ext.serializeObject($('#searchForm')));">搜索</a>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
|
||||
onclick="$('#searchForm').form('clear');grid.datagrid('load',{});">重置</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div data-options="region:'center',fit:true,border:false">
|
||||
<table id="grid" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
378
bin/WebRoot/jsp/quality/leaveFactoryCheckView.jsp
Normal file
378
bin/WebRoot/jsp/quality/leaveFactoryCheckView.jsp
Normal file
@ -0,0 +1,378 @@
|
||||
<!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"%>
|
||||
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
|
||||
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<meta name="ProgId" content="Excel.Sheet"/>
|
||||
<meta name="Generator" content="WPS Office ET"/>
|
||||
<style>
|
||||
<!-- @page
|
||||
{margin:0.39in 0.28in 0.39in 0.32in;
|
||||
mso-header-margin:0.51in;
|
||||
mso-footer-margin:0.51in;}
|
||||
--> </style>
|
||||
<!--[if gte mso 9]>
|
||||
<xml>
|
||||
<x:WorksheetOptions>
|
||||
<x:DefaultRowHeight>285</x:DefaultRowHeight>
|
||||
<x:Selected/>
|
||||
<x:Panes>
|
||||
<x:Pane>
|
||||
<x:Number>3</x:Number>
|
||||
<x:ActiveCol>4</x:ActiveCol>
|
||||
<x:ActiveRow>15</x:ActiveRow>
|
||||
<x:RangeSelection>E16:M16</x:RangeSelection>
|
||||
</x:Pane>
|
||||
</x:Panes>
|
||||
<x:ProtectContents>False</x:ProtectContents>
|
||||
<x:ProtectObjects>False</x:ProtectObjects>
|
||||
<x:ProtectScenarios>False</x:ProtectScenarios>
|
||||
<x:PageBreakZoom>100</x:PageBreakZoom>
|
||||
<x:Print>
|
||||
<x:ValidPrinterInfo/>
|
||||
<x:PaperSizeIndex>9</x:PaperSizeIndex>
|
||||
<x:HorizontalResolution>600</x:HorizontalResolution>
|
||||
</x:Print>
|
||||
</x:WorksheetOptions>
|
||||
</xml>
|
||||
<![endif]-->
|
||||
<jsp:include page="../inc.jsp"></jsp:include>
|
||||
<link rel="Stylesheet" href="${ctx}/CSS/LeaveFactoryCheck.css"/>
|
||||
<script language="JavaScript">
|
||||
// if (window.name!="frSheet")
|
||||
// window.location.replace("../质检.htm");
|
||||
// else
|
||||
// parent.fnUpdateTabs(0);
|
||||
function doprint(dialog, grid){
|
||||
alert("该功能即将开放");
|
||||
/* var strStyleCSS = "<link rel='StyleSheet' href='"+${ctx}+"'/CSS/LeaveFactoryCheck.css' type='text/css' />";
|
||||
var strFormHtml = strStyleCSS + "<body>"
|
||||
+ document.getElementById("body").innerHTML + "</body>";
|
||||
LODOP = getLodop(document.getElementById('LODOP_OB'), document
|
||||
.getElementById('LODOP_EM'));
|
||||
LODOP.PRINT_INIT("");
|
||||
//LODOP.ADD_PRINT_HTM("10px","0px","97%","98%","<div style='width:100%;text-align:center'>"+
|
||||
//"设备维修通知单</div>");
|
||||
LODOP.ADD_PRINT_HTM("1.5cm", "0.8cm", "RightMargin:0.8cm",
|
||||
"BottomMargin:1.5cm", strFormHtml);
|
||||
LODOP.SET_PRINT_PAGESIZE(1, "", "", "A4");
|
||||
LODOP.SET_PRINT_STYLEA(0, "Vorient", 3);
|
||||
LODOP.SET_PRINT_STYLEA(0, "Horient", 3);
|
||||
LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT", "70%");
|
||||
//LODOP.SET_PRINT_MODE("FULL_WIDTH_FOR_OVERFLOW",true);
|
||||
//LODOP.SET_PRINT_MODE("FULL_HEIGHT_FOR_OVERFLOW",true);
|
||||
LODOP.SET_SHOW_MODE("LANDSCAPE_DEFROTATED", 1);
|
||||
LODOP.PREVIEW(); */
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body link="blue" vlink="purple">
|
||||
<form method="post" id="form" >
|
||||
<table width="878" border="0" cellpadding="0" cellspacing="0" style='width:658.50pt;border-collapse:collapse;table-layout:fixed;'>
|
||||
<col width="31" style='mso-width-source:userset;mso-width-alt:992;'/>
|
||||
<col width="47" style='mso-width-source:userset;mso-width-alt:1504;'/>
|
||||
<col width="54" style='mso-width-source:userset;mso-width-alt:1728;'/>
|
||||
<col width="34" style='mso-width-source:userset;mso-width-alt:1088;'/>
|
||||
<col width="72" span="3" style='width:54.00pt;'/>
|
||||
<col width="65" style='mso-width-source:userset;mso-width-alt:2080;'/>
|
||||
<col width="31" style='mso-width-source:userset;mso-width-alt:992;'/>
|
||||
<col width="28" span="2" style='mso-width-source:userset;mso-width-alt:896;'/>
|
||||
<col width="17" style='mso-width-source:userset;mso-width-alt:544;'/>
|
||||
<col width="33" style='mso-width-source:userset;mso-width-alt:1056;'/>
|
||||
<col width="50" style='mso-width-source:userset;mso-width-alt:1600;'/>
|
||||
<col width="54" style='mso-width-source:userset;mso-width-alt:1728;'/>
|
||||
<col width="46" style='mso-width-source:userset;mso-width-alt:1472;'/>
|
||||
<col width="72" span="2" style='width:54.00pt;'/>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" width="78" colspan="2" style='height:14.25pt;width:58.50pt;mso-ignore:colspan;' x:str>Q/JBSC9389</td>
|
||||
<td class="xl66" width="54" style='width:40.50pt;'></td>
|
||||
<td class="xl66" width="34" style='width:25.50pt;'></td>
|
||||
<td class="xl66" width="72" style='width:54.00pt;'></td>
|
||||
<td class="xl66" width="72" style='width:54.00pt;'></td>
|
||||
<td class="xl66" width="72" style='width:54.00pt;'></td>
|
||||
<td class="xl66" width="65" style='width:48.75pt;'></td>
|
||||
<td class="xl66" width="31" style='width:23.25pt;'></td>
|
||||
<td class="xl66" width="28" style='width:21.00pt;'></td>
|
||||
<td class="xl66" width="28" style='width:21.00pt;'></td>
|
||||
<td class="xl66" width="17" style='width:12.75pt;'></td>
|
||||
<td class="xl66" width="33" style='width:24.75pt;'></td>
|
||||
<td class="xl66" width="50" style='width:37.50pt;'></td>
|
||||
<td class="xl66" width="54" style='width:40.50pt;'></td>
|
||||
<td class="xl66" width="46" style='width:34.50pt;'></td>
|
||||
<td width="72" style='width:54.00pt;'></td>
|
||||
<td width="72" style='width:54.00pt;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl67" height="38" colspan="16" rowspan="2" style='height:28.50pt;border-right:none;border-bottom:none;' x:str>${leavefactorycheck.equipmentname}出厂检验记录单</td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="27" style='height:20.25pt;'>
|
||||
<td class="xl65" height="27" style='height:20.25pt;'></td>
|
||||
<td class="xl66" colspan="3" style='mso-ignore:colspan;'></td>
|
||||
<td class="xl66" colspan="3" style='mso-ignore:colspan;'></td>
|
||||
<td class="xl66" colspan="3" style='mso-ignore:colspan;'></td>
|
||||
<td class="xl68" colspan="3" style='border-right:none;border-bottom:none;' x:str>出厂编号</td>
|
||||
<td class="xl88" colspan="3" style='mso-ignore:colspan;border-right:none;border-bottom:none;' x:str>${leavefactorycheck.leavefactoryno}</td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" colspan="3" style='height:14.25pt;mso-ignore:colspan;' x:str><span style='mso-spacerun:yes;'> </span>主要技术参数</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" colspan="2" style='height:14.25pt;mso-ignore:colspan;' x:str><span style='mso-spacerun:yes;'> </span>额定电压</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" x:str>${leavefactorycheck.ratedvoltage}</td>
|
||||
<td class="xl65"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>电操机构电压</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>
|
||||
${leavefactorycheck.poweroperationv}
|
||||
</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" colspan="2" style='height:14.25pt;mso-ignore:colspan;' x:str><span style='mso-spacerun:yes;'> </span>额定电流</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" x:str>${leavefactorycheck.ratedcurrent}</td>
|
||||
<td class="xl65"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>分励脱扣器电压</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>
|
||||
${leavefactorycheck.shuntreleasev}
|
||||
</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" colspan="2" style='height:14.25pt;mso-ignore:colspan;' x:str><span style='mso-spacerun:yes;'> </span>安装型式</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>${leavefactorycheck.installationtype}</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>合闸电磁铁电压</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>
|
||||
${leavefactorycheck.closingemv}
|
||||
</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" colspan="3" style='height:14.25pt;mso-ignore:colspan;' x:str><span style='mso-spacerun:yes;'> </span>智能脱扣器型号及规格</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>
|
||||
${leavefactorycheck.releasemodel}
|
||||
</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>欠压脱扣器电压</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" x:str>
|
||||
${leavefactorycheck.undervreleasev}
|
||||
</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td class="xl65" height="19" colspan="2" style='height:14.25pt;mso-ignore:colspan;' x:str><span style='mso-spacerun:yes;'> </span>外部附件</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" x:str>
|
||||
${leavefactorycheck.appendix}
|
||||
</td>
|
||||
<td class="xl65"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" x:str>备注</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66" colspan="2" style='mso-ignore:colspan;' x:str>
|
||||
${leavefactorycheck.remarkoverall}
|
||||
</td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td class="xl66"></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="24" style='height:18.00pt;mso-height-source:userset;mso-height-alt:360;'>
|
||||
<td class="xl66" height="24" colspan="4" style='height:18.00pt;mso-ignore:colspan;'></td>
|
||||
<td class="xl66" colspan="3" style='mso-ignore:colspan;'></td>
|
||||
<td class="xl66" colspan="9" style='mso-ignore:colspan;'></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl69" height="56" style='height:42.00pt;' x:str>序号</td>
|
||||
<td class="xl70" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>检验项目<br/>Inspection Item</td>
|
||||
<td class="xl70" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>技术要求<br/>Technical Requirement</td>
|
||||
<td class="xl70" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>实测结果<br/>Result</td>
|
||||
<td class="xl70" x:str>备注<br/>Remark</td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="60" style='height:45.00pt;mso-height-source:userset;mso-height-alt:900;'>
|
||||
<td class="xl73" height="60" style='height:45.00pt;' x:num>1</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>一般检查<font class="font4"><br/>Check Appearance</font></td>
|
||||
<td class="xl76" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span><font class="font1">金属件、铭牌、二次回路、装配、接地、电气间隙、爬电距离、抽屉座等</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>Nameplate,secondary loop,Assembly,Earth Marking,<br/><span style='mso-spacerun:yes;'> </span>clearance,creepage distance,draw-out and so on</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74">${remark1}</td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="89.33" style='height:67.00pt;mso-height-source:userset;mso-height-alt:1340;'>
|
||||
<td class="xl73" height="89.33" style='height:67.00pt;' x:num>2</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>机械操作特性检查<font class="font4"><br/>Check Mechcanical Operation Performance</font></td>
|
||||
<td class="xl78" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>手动操作断路器:两次闭合,两次断开;两次自由脱扣操作。电动操作断路<font class="font4"> </font><font class="font1">器:在额定控制电源的</font><font class="font4">110%</font><font class="font1">和</font><font class="font4">85%</font><font class="font1">时两次闭合,断开操作;两次自由脱扣操作</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>Manual operation: close and break the breaker twice;make free trip twice.Power operation:close and break the breaker at 110% and 85% rated control power;make free trip twice.</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74">${remark2}</td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="70.67" style='height:53.00pt;mso-height-source:userset;mso-height-alt:1060;'>
|
||||
<td class="xl73" height="70.67" style='height:53.00pt;' x:num>3</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>长延时<font class="font4">Ir1<br/>Long-Delay Ir1</font></td>
|
||||
<td class="xl76" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>1.05Ir1>2h<font class="font1">不动作</font><font class="font4">, 1.05Ir1<1h</font><font class="font1">动作</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>1.05Ir1>2h</font><font class="font1"> Without Action</font><font class="font4">, 1.05Ir1<1h Action</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>A<font class="font27">相</font><font class="font4">
|
||||
${leavefactorycheck.phasea}
|
||||
</font><font class="font27">合格</font><font class="font4"><br/>B</font><font class="font27">相</font><font class="font4">
|
||||
${leavefactorycheck.phaseb}
|
||||
</font><font class="font27">合格</font><font class="font4"><br/>C</font><font class="font27">相</font><font class="font4">
|
||||
${leavefactorycheck.phasec}
|
||||
</font><font class="font27">合格</font><font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74">${remark3}</td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl73" height="56" style='height:42.00pt;' x:num>4</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>短延时<font class="font4">Ir2<br/>Short-Delay Ir2</font></td>
|
||||
<td class="xl76" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>0.9Ir2<font class="font1">不动作</font><font class="font4">, 1.1Ir2</font><font class="font1">定时限动作</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>0.9Ir2 Without Action, 1.1Ir2 Delay Action</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74">${remark4}</td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl73" height="56" style='height:42.00pt;' x:num>5</td>
|
||||
<td class="xl79" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>瞬时<font class="font4">Ir3<br/>Instantaneous Ir3</font></td>
|
||||
<td class="xl76" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>0.85Ir3<font class="font1">不动作</font><font class="font4">, 1.15Ir3</font><font class="font1">瞬时动作</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>0.85Ir3 Without Action, 1.15Ir3 Instantaneous Action(t<100ms)</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74">${remark5}</td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="66.67" style='height:50.00pt;mso-height-source:userset;mso-height-alt:1000;'>
|
||||
<td class="xl73" height="66.67" style='height:50.00pt;' x:num>6</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>欠压脱扣器<font class="font4"><br/>Under voltage Release</font></td>
|
||||
<td class="xl80" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>≧<font class="font4">85%Ue </font><font class="font1">可靠吸合</font><font class="font4">,(35% -70%)Ue </font><font class="font1">瞬时或延时断开</font><font class="font4">,<35%Ue</font><font class="font1">不合闸</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span></font><font class="font1">≧</font><font class="font4">85%Ue Reliable Closing<br/><span style='mso-spacerun:yes;'> </span>(35% -70%)Ue Instantaneous or Delay Break<br/><span style='mso-spacerun:yes;'> </span><35%Ue Refuse to Close</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>-</td>
|
||||
<td class="xl74">${remark6}</td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl73" height="56" style='height:42.00pt;' x:num>7</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>分励脱扣器<font class="font4"><br/>Shunt Release</font></td>
|
||||
<td class="xl76" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>(70%-100%)Ue <font class="font1">应可靠动作</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>(70%-110%)Ue Reliable Action</font></td>
|
||||
<td class="xl79" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74">${remark7}</td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl73" height="56" style='height:42.00pt;' x:num>8</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>释能脱扣器<font class="font4"><br/>Energy Releasing Release</font></td>
|
||||
<td class="xl76" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>(85%-100%)Ue <font class="font1">应可靠动作</font><font class="font4"><br/><span style='mso-spacerun:yes;'> </span>(85%-110%)Ue Reliable Action</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74">${remark8}</td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl73" height="56" style='height:42.00pt;' x:num>9</td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>耐压试验<font class="font4"><br/>Voltage Releasing Test</font></td>
|
||||
<td class="xl78" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str><span style='mso-spacerun:yes;'> </span>主回路2500V/1s,控制回路1890V/1s,不允许有闪烙、击穿现象<font class="font4"><br/><span style='mso-spacerun:yes;'> </span>Major Loop 2500V/1s,Control Loop 1890V/1s.<br/><span style='mso-spacerun:yes;'> </span>No flashover and destructive phenomenon should be allowed.</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74">${remark9}</td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="56" style='height:42.00pt;mso-height-source:userset;mso-height-alt:840;'>
|
||||
<td class="xl81" height="56" style='height:42.00pt;' x:num>10</td>
|
||||
<td class="xl82" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:none;' x:str>包装检查<font class="font4"><br/>Packing inspection</font></td>
|
||||
<td class="xl84" colspan="9" style='border-right:.5pt solid windowtext;border-bottom:none;' x:str>断路器实物必须与箱内外标识的规格一致,箱内附件必须齐全<font class="font4">(</font><font class="font1">对照附件表</font><font class="font4">)<br/>Products must be consistent with the specifications of identity, accessories in the boxes must be complete(according to the upfile).</font></td>
|
||||
<td class="xl82" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:none;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl82">${remark10}</td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="40" style='height:30.00pt;mso-height-source:userset;mso-height-alt:600;'>
|
||||
<td class="xl74" height="40" colspan="4" style='height:30.00pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>结论<font class="font4"><br/>Conclusion</font></td>
|
||||
<td class="xl74" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>合格<font class="font4"><br/>Qualification</font></td>
|
||||
<td class="xl74" x:str>检验员<font class="font4"><br/>Inspector</font></td>
|
||||
<td class="xl91" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>检<font class="font4">
|
||||
${leavefactorycheck.inspector}
|
||||
</font></td>
|
||||
<td class="xl74" colspan="2" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:str>日期<font class="font4"><br/>Date</font></td>
|
||||
<td class="xl94" colspan="3" style='border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;' x:num="42319.">
|
||||
${fn:substring(leavefactorycheck.inspectdate,0,10)}
|
||||
</td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<td height="19" colspan="4" style='height:14.25pt;mso-ignore:colspan;'></td>
|
||||
<td colspan="3" style='mso-ignore:colspan;'></td>
|
||||
<td colspan="9" style='mso-ignore:colspan;'></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td>
|
||||
</tr>
|
||||
<tr height="19" style='height:14.25pt;'>
|
||||
<!-- <td class="xl86" height="19" colspan="4" style='height:14.25pt;border-right:none;border-bottom:none;' x:str>2015.11.11 11:11:11AM</td>
|
||||
<td colspan="3" style='mso-ignore:colspan;'></td>
|
||||
<td colspan="9" style='mso-ignore:colspan;'></td>
|
||||
<td colspan="2" style='mso-ignore:colspan;'></td> -->
|
||||
</tr>
|
||||
<![if supportMisalignedColumns]>
|
||||
<tr width="0" style='display:none;'>
|
||||
<td width="31" style='width:23;'></td>
|
||||
<td width="47" style='width:35;'></td>
|
||||
<td width="54" style='width:41;'></td>
|
||||
<td width="34" style='width:26;'></td>
|
||||
<td width="65" style='width:49;'></td>
|
||||
<td width="31" style='width:23;'></td>
|
||||
<td width="28" style='width:21;'></td>
|
||||
<td width="17" style='width:13;'></td>
|
||||
<td width="33" style='width:25;'></td>
|
||||
<td width="50" style='width:38;'></td>
|
||||
<td width="54" style='width:41;'></td>
|
||||
<td width="46" style='width:35;'></td>
|
||||
</tr>
|
||||
<![endif]>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
58
bin/WebRoot/jsp/quality/procedCustPrjAdd.jsp
Normal file
58
bin/WebRoot/jsp/quality/procedCustPrjAdd.jsp
Normal file
@ -0,0 +1,58 @@
|
||||
<!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/procedcustprj/save.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'
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form method="post" class="form">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>工序</th>
|
||||
<td><input id="procedureid" name="procedureid" class="easyui-combobox"
|
||||
data-options="required:true,validType:'isBlank'" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>自定义项目名</th>
|
||||
<td><input name="customprojname" class="easyui-textbox" data-options="required:true,validType:'isBlank'" type="text" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
59
bin/WebRoot/jsp/quality/procedCustPrjEdit.jsp
Normal file
59
bin/WebRoot/jsp/quality/procedCustPrjEdit.jsp
Normal file
@ -0,0 +1,59 @@
|
||||
<!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/procedcustprj/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() {
|
||||
$('#procedureid').combobox({
|
||||
url : ext.contextPath + '/process/taskprocedure/getprocedlist.do?random=' + Math.random(),
|
||||
valueField:'id',
|
||||
textField:'procedurename',
|
||||
method:'get'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form method="post" class="form">
|
||||
<input name="id" type="hidden" value="${procedcustprj.id}"/>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>工序</th>
|
||||
<td><input id="procedureid" name="procedureid" class="easyui-combobox"
|
||||
data-options="required:true,validType:'isBlank'" value="${procedcustprj.procedureid}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>自定义项目名</th>
|
||||
<td><input name="customprojname" class="easyui-textbox"
|
||||
data-options="required:true,validType:'isBlank'" value="${procedcustprj.customprojname}" type="text" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
171
bin/WebRoot/jsp/quality/procedCustPrjList.jsp
Normal file
171
bin/WebRoot/jsp/quality/procedCustPrjList.jsp
Normal file
@ -0,0 +1,171 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ page import="com.sipai.tools.SessionManager"%>
|
||||
<%
|
||||
SessionManager sessionManager = new SessionManager();
|
||||
%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<script type="text/javascript">
|
||||
var grid;
|
||||
var addFun = function(){
|
||||
var dialog = top.ext.modalDialog({
|
||||
title : '添加自定义项',
|
||||
width : 600,
|
||||
height : 500,
|
||||
resizable:true,
|
||||
url : ext.contextPath + '/quality/procedcustprj/add.do',
|
||||
buttons : [{
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.dosave(dialog, grid);
|
||||
}
|
||||
}]
|
||||
});
|
||||
}
|
||||
var editFun = function(id) {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '编辑自定义项',
|
||||
url : ext.contextPath + '/quality/procedcustprj/edit.do?id=' + id,
|
||||
buttons : [ {
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.dosave(dialog, grid);
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var deleteFun = function(id) {
|
||||
parent.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/procedcustprj/delete.do', {id : id}, function(data) {
|
||||
if(data==1){
|
||||
parent.$.messager.alert('提示','删除成功','info',function(){
|
||||
grid.datagrid('reload');
|
||||
});
|
||||
}else{
|
||||
parent.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
var deletesFun = function() {
|
||||
var checkedItems = $('#grid').datagrid('getChecked');
|
||||
var datas="";
|
||||
$.each(checkedItems, function(index, item){
|
||||
datas+=item.id+",";
|
||||
});
|
||||
//alert(datas);
|
||||
if(datas==""){
|
||||
top.$.messager.alert('提示', '请先选择要删除的记录','info');
|
||||
}else{
|
||||
parent.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/procedcustprj/deletes.do', {ids:datas} , function(data) {
|
||||
if(data>0){
|
||||
parent.$.messager.alert('提示','成功删除'+data+'条记录','info',function(){
|
||||
grid.datagrid('reload');
|
||||
grid.datagrid('clearChecked');
|
||||
});
|
||||
}else{
|
||||
parent.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
$(function() {
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/procedcustprj/getlist.do',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
singleSelect: false,
|
||||
ctrlSelect:true,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{checkbox:true , field : 'ck'},
|
||||
{width : '250', title : '工序', field : 'procedurename', sortable : true, halign:'center',align:'center'},
|
||||
{width : '250', title : '自定义项目名', field : 'customprojname', sortable : true, halign:'center',align:'center'},
|
||||
{title : '操作', field : 'action', width : '120', halign:'center', align:'center', formatter : function(value, row) {
|
||||
var str = '';
|
||||
<%if (sessionManager.havePermission(session,"quality/procedcustprj/edit.do")) {%>
|
||||
str += '<img class="iconImg ext-icon-table_edit" title="编辑" onclick="editFun(\''+row.id+'\');"/>';
|
||||
<%}%>
|
||||
<%if (sessionManager.havePermission(session,"quality/procedcustprj/delete.do")) {%>
|
||||
str += '<img class="iconImg ext-icon-table_delete" title="删除" onclick="deleteFun(\''+row.id+'\');"/>';
|
||||
<%}%>
|
||||
return str;
|
||||
}
|
||||
}
|
||||
] ],
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$('#search_proced').combobox({
|
||||
url : ext.contextPath + '/process/taskprocedure/getprocedlist.do?random=' + Math.random(),
|
||||
valueField:'id',
|
||||
textField:'procedurename',
|
||||
method:'get'
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div id="toolbar" style="display: none;">
|
||||
<table>
|
||||
<tr>
|
||||
<%if (sessionManager.havePermission(session,"quality/procedcustprj/add.do")) {%>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true"
|
||||
onclick="addFun();">添加</a>
|
||||
</td>
|
||||
<%}%>
|
||||
<%if (sessionManager.havePermission(session,"quality/procedcustprj/delete.do")) {%>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
|
||||
onclick="deletesFun();">删除</a>
|
||||
</td>
|
||||
<%}%>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<form id="searchForm">
|
||||
<table class="tooltable">
|
||||
<tr>
|
||||
<td>工序</td>
|
||||
<td><input id="search_proced" name="search_proced" class="easyui-combobox" /></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-search',plain:true"
|
||||
onclick="grid.datagrid('load',ext.serializeObject($('#searchForm')));">搜索</a>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
|
||||
onclick="$('#searchForm').form('clear');grid.datagrid('load',{});">重置</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div data-options="region:'center',fit:true,border:false">
|
||||
<table id="grid" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
85
bin/WebRoot/jsp/quality/procedCustPrjResultEdit.jsp
Normal file
85
bin/WebRoot/jsp/quality/procedCustPrjResultEdit.jsp
Normal file
@ -0,0 +1,85 @@
|
||||
<!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>
|
||||
114
bin/WebRoot/jsp/quality/processQualityManagementList.jsp
Normal file
114
bin/WebRoot/jsp/quality/processQualityManagementList.jsp
Normal file
@ -0,0 +1,114 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ page import="com.sipai.tools.SessionManager"%>
|
||||
<%
|
||||
SessionManager sessionManager = new SessionManager();
|
||||
%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<script type="text/javascript">
|
||||
var grid;
|
||||
var viewHFun = function(pdname,procedureid) {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : pdname,
|
||||
width: 550,
|
||||
height:600,
|
||||
url : ext.contextPath + '/quality/testingrecord/showTimeAmountList.do?procedureid=' + procedureid
|
||||
});
|
||||
};
|
||||
|
||||
function getNowFormatDate() {
|
||||
var date = new Date();
|
||||
var seperator1 = "-";
|
||||
//var seperator2 = ":";
|
||||
var month = date.getMonth() + 1;
|
||||
var strDate = date.getDate();
|
||||
if (month >= 1 && month <= 9) {
|
||||
month = "0" + month;
|
||||
}
|
||||
if (strDate >= 0 && strDate <= 9) {
|
||||
strDate = "0" + strDate;
|
||||
}
|
||||
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
||||
/*+ " " + date.getHours() + seperator2 + date.getMinutes()
|
||||
+ seperator2 + date.getSeconds();*/
|
||||
return currentdate;
|
||||
}
|
||||
$(function() {
|
||||
document.getElementById('search_date').value=getNowFormatDate();//设置默认时间
|
||||
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/testingrecord/getAmountList.do',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
singleSelect: false,
|
||||
ctrlSelect:true,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{width : '150', title : '工序', field : 'procedurename', halign:'center',align:'center'},
|
||||
{width : '100', title : '接收数量', field : 'receivedquantity', sortable : true, halign:'center',align:'center'},
|
||||
{width : '100', title : '返回数量', field : 'returnquantity', sortable : true, halign:'center',align:'center'},
|
||||
{width : '100', title : '报废数量', field : 'scrapquantity', sortable : true,halign:'center',align:'center'},
|
||||
{width : '100', title : '说明', field : 'instruction', halign:'center',align:'center'},
|
||||
{title : '操作', field : 'action', width : '120', halign:'center', align:'center', formatter : function(value, row) {
|
||||
var str = '';
|
||||
str += '<img class="iconImg ext-icon-table_multiple" title="往期状态查询" onclick="viewHFun(\''+row.procedurename+'\',\''+row.procedureid+'\');"/>';
|
||||
return str;
|
||||
}
|
||||
}
|
||||
] ],
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
$('#search_proced').combobox({
|
||||
url : ext.contextPath + '/process/taskprocedure/getprocedlist.do?random=' + Math.random(),
|
||||
valueField:'procedurecode',
|
||||
textField:'procedurename',
|
||||
method:'get'
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div id="toolbar" style="display: none;">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<form id="searchForm">
|
||||
<table class="tooltable">
|
||||
<tr>
|
||||
<td>日期</td>
|
||||
<td><input id="search_date" name="search_date" class="Wdate" value=""
|
||||
onfocus="WdatePicker({startDate:'%y',dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-{%d}'})" readonly/></td>
|
||||
<td>工序</td>
|
||||
<td><input id="search_proced" name="search_proced" class="easyui-combobox" /></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-search',plain:true"
|
||||
onclick="grid.datagrid('load',ext.serializeObject($('#searchForm')));">搜索</a>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
|
||||
onclick="$('#searchForm').form('clear');grid.datagrid('load',{});">重置</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div data-options="region:'center',fit:true,border:false">
|
||||
<table id="grid" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
97
bin/WebRoot/jsp/quality/processQualityManagementTimeList.jsp
Normal file
97
bin/WebRoot/jsp/quality/processQualityManagementTimeList.jsp
Normal file
@ -0,0 +1,97 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ page import="com.sipai.tools.SessionManager"%>
|
||||
<%
|
||||
SessionManager sessionManager = new SessionManager();
|
||||
%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<script type="text/javascript">
|
||||
var grid;
|
||||
|
||||
function getNowFormatDate() {
|
||||
var date = new Date();
|
||||
var seperator1 = "-";
|
||||
//var seperator2 = ":";
|
||||
var month = date.getMonth() + 1;
|
||||
var strDate = date.getDate();
|
||||
if (month >= 1 && month <= 9) {
|
||||
month = "0" + month;
|
||||
}
|
||||
if (strDate >= 0 && strDate <= 9) {
|
||||
strDate = "0" + strDate;
|
||||
}
|
||||
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
||||
/*+ " " + date.getHours() + seperator2 + date.getMinutes()
|
||||
+ seperator2 + date.getSeconds();*/
|
||||
return currentdate;
|
||||
}
|
||||
$(function() {
|
||||
document.getElementById('search_fdate').value=getNowFormatDate();//设置默认时间
|
||||
document.getElementById('search_tdate').value=getNowFormatDate();//设置默认时间
|
||||
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/testingrecord/getTimeAmountList.do?procedureid=${procedureid}',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
singleSelect: false,
|
||||
ctrlSelect:true,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
showFooter:true,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{width : '150', title : '日期', field : 'time', halign:'center',align:'center',formatter:function(value){
|
||||
return value.substring(0,10);
|
||||
}},
|
||||
{width : '115', title : '接收数量', field : 'receivedquantity', sortable : true, halign:'center',align:'center'},
|
||||
{width : '115', title : '返回数量', field : 'returnquantity', sortable : true, halign:'center',align:'center'},
|
||||
{width : '115', title : '报废数量', field : 'scrapquantity', sortable : true,halign:'center',align:'center'} ] ],
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div id="toolbar" style="display: none;">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<form id="searchForm">
|
||||
<table class="tooltable">
|
||||
<tr>
|
||||
<td>日期从</td>
|
||||
<td><input id="search_fdate" name="search_fdate" class="Wdate" value=""
|
||||
onfocus="WdatePicker({startDate:'%y',dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-{%d}'})" readonly/></td>
|
||||
<td>到</td>
|
||||
<td><input id="search_tdate" name="search_tdate" class="Wdate" value=""
|
||||
onfocus="WdatePicker({startDate:'%y',dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-{%d}'})" readonly/></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-search',plain:true"
|
||||
onclick="grid.datagrid('load',ext.serializeObject($('#searchForm')));">搜索</a>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
|
||||
onclick="$('#searchForm').form('clear');grid.datagrid('load',{});">重置</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div data-options="region:'center',fit:true,border:false">
|
||||
<table id="grid" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
64
bin/WebRoot/jsp/quality/qeProjectAdd.jsp
Normal file
64
bin/WebRoot/jsp/quality/qeProjectAdd.jsp
Normal file
@ -0,0 +1,64 @@
|
||||
<!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/qeproject/save.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'
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form method="post" class="form">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>工序</th>
|
||||
<td><input id="procedureid" name="procedureid" class="easyui-combobox"
|
||||
data-options="required:true,validType:'isBlank'" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>产品编码</th>
|
||||
<td><input id="productno" name="productno" class="easyui-textbox"
|
||||
data-options="required:true,validType:'isBlank'" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>项目名</th>
|
||||
<td><input name="projectname" class="easyui-textbox" data-options="required:true,validType:'isBlank'" type="text" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
65
bin/WebRoot/jsp/quality/qeProjectEdit.jsp
Normal file
65
bin/WebRoot/jsp/quality/qeProjectEdit.jsp
Normal file
@ -0,0 +1,65 @@
|
||||
<!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/qeproject/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() {
|
||||
$('#procedureid').combobox({
|
||||
url : ext.contextPath + '/process/taskprocedure/getprocedlist.do?random=' + Math.random(),
|
||||
valueField:'id',
|
||||
textField:'procedurename',
|
||||
method:'get'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form method="post" class="form">
|
||||
<input name="id" type="hidden" value="${qeProject.id}"/>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>工序</th>
|
||||
<td><input id="procedureid" name="procedureid" class="easyui-combobox"
|
||||
data-options="required:true,validType:'isBlank'" value="${qeProject.procedureid}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>工序</th>
|
||||
<td><input id="productno" name="productno" class="easyui-combobox"
|
||||
data-options="required:true,validType:'isBlank'" value="${qeProject.productno}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>自定义项目名</th>
|
||||
<td><input name="projectname" class="easyui-textbox"
|
||||
data-options="required:true,validType:'isBlank'" value="${qeProject.projectname}" type="text" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
176
bin/WebRoot/jsp/quality/qeProjectList.jsp
Normal file
176
bin/WebRoot/jsp/quality/qeProjectList.jsp
Normal file
@ -0,0 +1,176 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ page import="com.sipai.tools.SessionManager"%>
|
||||
<%
|
||||
SessionManager sessionManager = new SessionManager();
|
||||
%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<script type="text/javascript">
|
||||
var grid;
|
||||
var addFun = function(){
|
||||
var dialog = top.ext.modalDialog({
|
||||
title : '添加二次元检测项',
|
||||
width : 600,
|
||||
height : 500,
|
||||
resizable:true,
|
||||
url : ext.contextPath + '/quality/qeproject/add.do',
|
||||
buttons : [{
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.dosave(dialog, grid);
|
||||
}
|
||||
}]
|
||||
});
|
||||
}
|
||||
var editFun = function(id) {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '编辑自定义项',
|
||||
width : 600,
|
||||
height : 500,
|
||||
url : ext.contextPath + '/quality/qeproject/edit.do?id=' + id,
|
||||
buttons : [ {
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.dosave(dialog, grid);
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var deleteFun = function(id) {
|
||||
parent.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/qeproject/delete.do', {id : id}, function(data) {
|
||||
if(data==1){
|
||||
parent.$.messager.alert('提示','删除成功','info',function(){
|
||||
grid.datagrid('reload');
|
||||
});
|
||||
}else{
|
||||
parent.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
var deletesFun = function() {
|
||||
var checkedItems = $('#grid').datagrid('getChecked');
|
||||
var datas="";
|
||||
$.each(checkedItems, function(index, item){
|
||||
datas+=item.id+",";
|
||||
});
|
||||
//alert(datas);
|
||||
if(datas==""){
|
||||
top.$.messager.alert('提示', '请先选择要删除的记录','info');
|
||||
}else{
|
||||
parent.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/qeproject/deletes.do', {ids:datas} , function(data) {
|
||||
if(data>0){
|
||||
parent.$.messager.alert('提示','成功删除'+data+'条记录','info',function(){
|
||||
grid.datagrid('reload');
|
||||
grid.datagrid('clearChecked');
|
||||
});
|
||||
}else{
|
||||
parent.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
$(function() {
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/qeproject/getlist.do',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
singleSelect: false,
|
||||
ctrlSelect:true,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{checkbox:true , field : 'ck'},
|
||||
{width : '250', title : '工序', field : 'procedurename', sortable : true, halign:'center',align:'center'},
|
||||
{width : '250', title : '产品编码', field : 'productno', sortable : true, halign:'center',align:'center'},
|
||||
{width : '250', title : '项目名', field : 'projectname', sortable : true, halign:'center',align:'center'},
|
||||
{title : '操作', field : 'action', width : '120', halign:'center', align:'center', formatter : function(value, row) {
|
||||
var str = '';
|
||||
<%if (sessionManager.havePermission(session,"quality/qeproject/edit.do")) {%>
|
||||
str += '<img class="iconImg ext-icon-table_edit" title="编辑" onclick="editFun(\''+row.id+'\');"/>';
|
||||
<%}%>
|
||||
<%if (sessionManager.havePermission(session,"quality/qeproject/delete.do")) {%>
|
||||
str += '<img class="iconImg ext-icon-table_delete" title="删除" onclick="deleteFun(\''+row.id+'\');"/>';
|
||||
<%}%>
|
||||
return str;
|
||||
}
|
||||
}
|
||||
] ],
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$('#search_proced').combobox({
|
||||
url : ext.contextPath + '/process/taskprocedure/getprocedlist.do?random=' + Math.random(),
|
||||
valueField:'id',
|
||||
textField:'procedurename',
|
||||
method:'get'
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div id="toolbar" style="display: none;">
|
||||
<table>
|
||||
<tr>
|
||||
<%if (sessionManager.havePermission(session,"quality/qeproject/add.do")) {%>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true"
|
||||
onclick="addFun();">添加</a>
|
||||
</td>
|
||||
<%}%>
|
||||
<%if (sessionManager.havePermission(session,"quality/qeproject/delete.do")) {%>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
|
||||
onclick="deletesFun();">删除</a>
|
||||
</td>
|
||||
<%}%>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<form id="searchForm">
|
||||
<table class="tooltable">
|
||||
<tr>
|
||||
<td>工序</td>
|
||||
<td><input id="search_proced" name="search_proced" class="easyui-combobox" /></td>
|
||||
<td>产品编码</td>
|
||||
<td><input id="search_prodno" name="search_prodno" class="easyui-textbox" /></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-search',plain:true"
|
||||
onclick="grid.datagrid('load',ext.serializeObject($('#searchForm')));">搜索</a>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
|
||||
onclick="$('#searchForm').form('clear');grid.datagrid('load',{});">重置</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div data-options="region:'center',fit:true,border:false">
|
||||
<table id="grid" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
259
bin/WebRoot/jsp/quality/qeTestingRecordAdd.jsp
Normal file
259
bin/WebRoot/jsp/quality/qeTestingRecordAdd.jsp
Normal file
@ -0,0 +1,259 @@
|
||||
<!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"%>
|
||||
<%request.setAttribute("Type_Standard",com.sipai.entity.quality.TestingRecord.Type_Standard);%>
|
||||
<%request.setAttribute("Type_Debugging",com.sipai.entity.quality.TestingRecord.Type_Debugging);%>
|
||||
<%request.setAttribute("Type_First_Inspection",com.sipai.entity.quality.TestingRecord.Type_First_Inspection);%>
|
||||
<%request.setAttribute("Type_Routing_Inspection",com.sipai.entity.quality.TestingRecord.Type_Routing_Inspection);%>
|
||||
<%request.setAttribute("Type_Random_Inspection",com.sipai.entity.quality.TestingRecord.Type_Random_Inspection);%>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="../inc.jsp"></jsp:include>
|
||||
<script type="text/javascript">
|
||||
var gridadd;
|
||||
function dosave(dialog,gridad) {
|
||||
if ($(".form").form('validate')) {
|
||||
$.post(ext.contextPath + "/quality/testingrecord/saveQE.do", $(".form").serialize(), function(data) {
|
||||
if (data.res == 1) {
|
||||
$.post(ext.contextPath + "/quality/qeproject/saveGridData.do",{testingid:data.id,griddata:getGriddata()},function(data1){
|
||||
if(JSON.parse(data1).res>0)
|
||||
{
|
||||
top.$.messager.alert('提示', "保存成功", 'info', function() {
|
||||
localStorage.setItem("dt", getNowFormatDate().substring(0, 10))
|
||||
localStorage.setItem("woid", $('#workorderid').combobox('getValue') );
|
||||
localStorage.setItem("procedid", $('#procedureid').combobox('getValue') );
|
||||
localStorage.setItem("equid", $('#equipmentid').combobox('getValue') );
|
||||
dialog.dialog('destroy');
|
||||
});
|
||||
}
|
||||
else if(JSON.parse(data1).res == 0){
|
||||
top.$.messager.alert('提示', "保存失败", 'info');
|
||||
dialog.dialog('destroy');
|
||||
}else{
|
||||
top.$.messager.alert('提示', data1.res, 'info');
|
||||
}
|
||||
});
|
||||
}else if(data.res == 0){
|
||||
top.$.messager.alert('提示', "保存失败", 'info');
|
||||
}else{
|
||||
top.$.messager.alert('提示', data.res, 'info');
|
||||
}
|
||||
},'json');
|
||||
}
|
||||
}
|
||||
|
||||
function opengrid() {
|
||||
console.log("yes","yes")
|
||||
$('#gridadd').datagrid('load',ext.serializeObject($('#addForm')));
|
||||
}
|
||||
|
||||
function getwo(){
|
||||
$('#workorderid').combobox({
|
||||
url : ext.contextPath + '/quality/testingrecord/getwolist.do?sdate=' + $('#time').val(),
|
||||
valueField:'id',
|
||||
textField:'workorderno',
|
||||
method:'get'
|
||||
});
|
||||
}
|
||||
|
||||
//获取当前时间
|
||||
function getNowFormatDate() {
|
||||
var date = new Date();
|
||||
var seperator1 = "-";
|
||||
var seperator2 = ":";
|
||||
var month = date.getMonth() + 1;
|
||||
var strDate = date.getDate();
|
||||
if (month >= 1 && month <= 9) {
|
||||
month = "0" + month;
|
||||
}
|
||||
if (strDate >= 0 && strDate <= 9) {
|
||||
strDate = "0" + strDate;
|
||||
}
|
||||
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
||||
+ " " + date.getHours() + seperator2 + date.getMinutes()
|
||||
/*+ seperator2 + date.getSeconds();*/
|
||||
return currentdate;
|
||||
}
|
||||
|
||||
var editno;
|
||||
$(function() {
|
||||
document.getElementById('time').value=getNowFormatDate();//设置默认时间
|
||||
|
||||
$('#workorderid').combobox({
|
||||
url : ext.contextPath + '/quality/testingrecord/getwolist.do?sdate=' + $('#time').val(),
|
||||
valueField:'id',
|
||||
textField:'workorderno',
|
||||
method:'get',
|
||||
editable:false,
|
||||
onLoadSuccess:function(data){
|
||||
if(localStorage.getItem("dt") == getNowFormatDate().substring(0, 10))
|
||||
{
|
||||
$('#workorderid').combobox('select',localStorage.getItem("woid"));
|
||||
$('#procedureid').combobox('select',localStorage.getItem("procedid"));
|
||||
$('#equipmentid').combobox('select',localStorage.getItem("equid"));
|
||||
}
|
||||
},
|
||||
onSelect: function () {
|
||||
$('#procedureid').combobox({
|
||||
url : ext.contextPath + '/quality/testingrecord/getprocedurelist.do?woid=' + $('#workorderid').combobox('getValue'),
|
||||
valueField:'procedurecode',
|
||||
textField:'procedurename',
|
||||
method:'get',
|
||||
editable:false,
|
||||
onSelect: function () {
|
||||
opengrid();
|
||||
$('#equipmentid').combogrid({
|
||||
delay: 500,
|
||||
mode: 'remote',
|
||||
panelWidth:253,
|
||||
url : ext.contextPath + '/quality/testingrecord/getequlist.do?procedcode=' + $('#procedureid').combobox('getValue') + '&woid=' + $('#workorderid').combobox('getValue'),
|
||||
idField: 'equipmentid',
|
||||
textField: 'equdisplayname',
|
||||
columns: [[
|
||||
//{field:'equipmentid',title:'equipmentid',width:120,sortable:true},
|
||||
{field:'equipmentcardid',title:'设备编号',width:150,sortable:true,formatter:function(value,row){
|
||||
return row.equipmentCard.equipmentcardid;
|
||||
}
|
||||
},
|
||||
{field:'equipmentname',title:'设备名称',width:100,sortable:true,formatter:function(value,row){
|
||||
return row.equipmentCard.equipmentname;
|
||||
}
|
||||
}
|
||||
]]
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$('#gridadd').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/qeproject/getaddlist.do',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
height:500,
|
||||
pagination : true,
|
||||
singleSelect: false,
|
||||
ctrlSelect:true,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{width : '250', title : '项目名', field : 'projectname',halign:'center',align:'center'},
|
||||
{width : '250', title : '结果', field : 'projresult', halign:'center',align:'center',editor:{type:'numberbox',options:{precision:1}}},
|
||||
]],
|
||||
onDblClickCell: function(index,field,value){
|
||||
$('#gridadd').datagrid('endEdit', editno);
|
||||
$(this).datagrid('beginEdit', index);
|
||||
var ed = $(this).datagrid('getEditor', {index:index,field:field});
|
||||
$(ed.target).focus();
|
||||
editno = index;
|
||||
},
|
||||
onClickRow : function(index,row){
|
||||
$('#gridadd').datagrid('endEdit', editno);
|
||||
},
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
function getGriddata(){
|
||||
var gridrows= $('#gridadd').datagrid("getRows");
|
||||
var griddata= '[';
|
||||
$.each(gridrows, function(index, item){
|
||||
if(index == 0){
|
||||
griddata+='{"projectid":"'+item.id+'","projresult":"'+item.projresult+'"}';
|
||||
}
|
||||
else{
|
||||
griddata+=',{"projectid":"'+item.id+'","projresult":"'+item.projresult+'"}';
|
||||
}
|
||||
});
|
||||
griddata+= ']';
|
||||
return griddata;
|
||||
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form id="addForm" method="post" class="form">
|
||||
<div id="qeinfo" class="easyui-panel" title="二次元检测信息" style="width:100%;height:257px;padding:10px;background:#fafafa;">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>记录编码</th>
|
||||
<td><input id="recordcode" name="recordcode" class="easyui-textbox"
|
||||
data-options="required:true,validType:'isBlank'" /></td>
|
||||
<th>日期</th>
|
||||
<td><input id="time" name="time" class="Wdate" data-options="required:true,validType:'isBlank'"
|
||||
onfocus="WdatePicker({dateFmt:'yyyy-M-d H:mm',minDate:'%y-%M-%d 00:00',maxDate:'%y-%M-%d 23:59'})" readonly/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>工单</th>
|
||||
<td>
|
||||
<input id="workorderid" name="workorderid" class="easyui-combobox"data-options="required:true,validType:'isBlank'" />
|
||||
</td>
|
||||
<th>工序</th>
|
||||
<td><input id="procedureid" name="procedureid" class="easyui-combobox"
|
||||
data-options="required:true,validType:'isBlank'" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>机台</th>
|
||||
<td>
|
||||
<input id="equipmentid" name="equipmentid" class="easyui-combogrid"
|
||||
data-options="required:true,validType:'isBlank'" />
|
||||
</td>
|
||||
|
||||
<th>记录类型(外观:AD,二次元:QE)</th>
|
||||
<td>
|
||||
<select id="recordtype" name="recordtype" class="easyui-combobox" data-options="panelHeight:'auto'">
|
||||
<option value="QE" selected>二次元</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>检测类型(首检,巡检,抽检)</th>
|
||||
<td>
|
||||
<select id="testingtype" name="testingtype" class="easyui-combobox" data-options="panelHeight:'auto'">
|
||||
<option value="${Type_First_Inspection}" selected>首检</option>
|
||||
<option value="${Type_Routing_Inspection}">巡检</option>
|
||||
<option value="${Type_Random_Inspection}">抽检</option>
|
||||
<option value="${Type_Debugging}">调机</option>
|
||||
<option value="${Type_Standard}">标准</option>
|
||||
</select>
|
||||
</td>
|
||||
<th>结果</th>
|
||||
<td>
|
||||
<select id="result" name="result" class="easyui-combobox" data-options="panelHeight:'auto'">
|
||||
<option value="OK" selected>OK</option>
|
||||
<option value="NG">NG</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>说明</th>
|
||||
<td>
|
||||
<input name="instruction" class="easyui-textbox" style="height:80px;width:90%"
|
||||
data-options="multiline:true" validtype="length[0,250]" invalidMessage="有效长度0-250" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
<br />
|
||||
<div id="qerecord" class="easyui-panel" title="二次元检测记录" style="width:100%;height:180px;">
|
||||
<div >
|
||||
<table id="gridadd" data-options="border:false"></table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
232
bin/WebRoot/jsp/quality/qeTestingRecordEdit.jsp
Normal file
232
bin/WebRoot/jsp/quality/qeTestingRecordEdit.jsp
Normal file
@ -0,0 +1,232 @@
|
||||
<!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"%>
|
||||
<%request.setAttribute("Type_Standard",com.sipai.entity.quality.TestingRecord.Type_Standard);%>
|
||||
<%request.setAttribute("Type_Debugging",com.sipai.entity.quality.TestingRecord.Type_Debugging);%>
|
||||
<%request.setAttribute("Type_First_Inspection",com.sipai.entity.quality.TestingRecord.Type_First_Inspection);%>
|
||||
<%request.setAttribute("Type_Routing_Inspection",com.sipai.entity.quality.TestingRecord.Type_Routing_Inspection);%>
|
||||
<%request.setAttribute("Type_Random_Inspection",com.sipai.entity.quality.TestingRecord.Type_Random_Inspection);%>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="../inc.jsp"></jsp:include>
|
||||
<script type="text/javascript">
|
||||
var gridedit;
|
||||
function dosave(dialog,gridad) {
|
||||
if ($(".form").form('validate')) {
|
||||
$.post(ext.contextPath + "/quality/testingrecord/updateQE.do", $(".form").serialize(), function(data) {
|
||||
if (data.res == 1) {
|
||||
$.post(ext.contextPath + "/quality/qeproject/updateGridData.do",{testingid:data.id,griddata:getGriddata()},function(data1){
|
||||
if(JSON.parse(data1).res>0)
|
||||
{
|
||||
top.$.messager.alert('提示', "保存成功", 'info', function() {
|
||||
dialog.dialog('destroy');
|
||||
});
|
||||
}
|
||||
else if(JSON.parse(data1).res == 0){
|
||||
top.$.messager.alert('提示', "保存失败", 'info');
|
||||
dialog.dialog('destroy');
|
||||
}else{
|
||||
top.$.messager.alert('提示', data1.res, 'info');
|
||||
}
|
||||
});
|
||||
}else if(data.res == 0){
|
||||
top.$.messager.alert('提示', "保存失败", 'info');
|
||||
}else{
|
||||
top.$.messager.alert('提示', data.res, 'info');
|
||||
}
|
||||
},'json');
|
||||
}
|
||||
}
|
||||
function getwo(){
|
||||
$('#workorderid').combobox({
|
||||
url : ext.contextPath + '/quality/testingrecord/getwolist.do?sdate=' + $('#time').val(),
|
||||
valueField:'id',
|
||||
textField:'workorderno',
|
||||
method:'get'
|
||||
});
|
||||
}
|
||||
|
||||
//获取当前时间
|
||||
function getNowFormatDate() {
|
||||
var date = new Date();
|
||||
var seperator1 = "-";
|
||||
var seperator2 = ":";
|
||||
var month = date.getMonth() + 1;
|
||||
var strDate = date.getDate();
|
||||
if (month >= 1 && month <= 9) {
|
||||
month = "0" + month;
|
||||
}
|
||||
if (strDate >= 0 && strDate <= 9) {
|
||||
strDate = "0" + strDate;
|
||||
}
|
||||
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
||||
+ " " + date.getHours() + seperator2 + date.getMinutes()
|
||||
/*+ seperator2 + date.getSeconds();*/
|
||||
return currentdate;
|
||||
}
|
||||
var editno;
|
||||
$(function() {
|
||||
document.getElementById('time').value=getNowFormatDate();//设置默认时间
|
||||
$('#workorderid').combobox({
|
||||
url : ext.contextPath + '/quality/testingrecord/getwolist.do?sdate=' + $('#time').val(),
|
||||
valueField:'id',
|
||||
textField:'workorderno',
|
||||
method:'get',
|
||||
editable:false,
|
||||
onLoadSuccess:function(data){
|
||||
$('#workorderid').combobox('select',"${tra.workorderid}");
|
||||
$('#procedureid').combobox('select',"${tra.procedureid}");
|
||||
$('#equipmentid').combobox('select',"${tra.equipmentid}");
|
||||
},
|
||||
onSelect: function () {
|
||||
$('#procedureid').combobox({
|
||||
url : ext.contextPath + '/quality/testingrecord/getprocedurelist.do?woid=' + $('#workorderid').combobox('getValue'),
|
||||
valueField:'procedurecode',
|
||||
textField:'procedurename',
|
||||
method:'get',
|
||||
editable:false,
|
||||
onSelect: function () {
|
||||
$('#equipmentid').combobox({
|
||||
url : ext.contextPath + '/quality/testingrecord/getequlist.do?procedcode=' + $('#procedureid').combobox('getValue') + '&woid=' + $('#workorderid').combobox('getValue'),
|
||||
valueField:'equipmentid',
|
||||
textField:'equdisplayname',
|
||||
method:'get',
|
||||
editable:false,
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$('#gridedit').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/qeproject/geteditlist.do?workorderid=${tra.workorderid}&procedureid=${tra.procedureid}&testingid=${tra.id}',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
height:500,
|
||||
pagination : true,
|
||||
singleSelect: false,
|
||||
ctrlSelect:true,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{width : '250', title : '项目名', field : 'projectname',halign:'center',align:'center'},
|
||||
{width : '250', title : '结果', field : 'projresult', halign:'center',align:'center',editor:{type:'numberbox',options:{precision:1}}},
|
||||
]],
|
||||
onDblClickCell: function(index,field,value){
|
||||
$('#gridedit').datagrid('endEdit', editno);
|
||||
$(this).datagrid('beginEdit', index);
|
||||
var ed = $(this).datagrid('getEditor', {index:index,field:field});
|
||||
$(ed.target).focus();
|
||||
editno = index;
|
||||
console.log("editno",editno);
|
||||
},
|
||||
onClickRow : function(index,row){
|
||||
$('#gridedit').datagrid('endEdit', editno);
|
||||
},
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
function getGriddata(){
|
||||
var gridrows= $('#gridedit').datagrid("getRows");
|
||||
var griddata= '[';
|
||||
$.each(gridrows, function(index, item){
|
||||
if(index == 0){
|
||||
griddata+='{"projectid":"'+item.id+'","projresult":"'+item.projresult+'","id":"'+item.recordid+'"}';
|
||||
}
|
||||
else{
|
||||
griddata+=',{"projectid":"'+item.id+'","projresult":"'+item.projresult+'","id":"'+item.recordid+'"}';
|
||||
}
|
||||
});
|
||||
griddata+= ']';
|
||||
return griddata;
|
||||
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body link="blue" vlink="purple">
|
||||
<form id = "editform" method="post" class="form">
|
||||
<div id="qeinfo" class="easyui-panel" title="二次元检测信息" style="width:100%;height:257px;padding:10px;background:#fafafa;">
|
||||
<input name="id" type="hidden" value="${tra.id}" />
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>记录编码</th>
|
||||
<td><input id="recordcode" name="recordcode" class="easyui-textbox"
|
||||
data-options="required:true,validType:'isBlank'" value="${tra.recordcode}"/></td>
|
||||
<th>日期</th>
|
||||
<td><input id="time" name="time" class="Wdate" data-options="required:true,validType:'isBlank'"
|
||||
onfocus="WdatePicker({dateFmt:'yyyy-M-d H:mm',minDate:'%y-%M-%d 00:00',maxDate:'%y-%M-%d 23:59'})" value="${tra.time}" readonly/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>工单</th>
|
||||
<td>
|
||||
<input id="workorderid" name="workorderid" class="easyui-combobox" disabled/>
|
||||
</td>
|
||||
<th>工序</th>
|
||||
<td><input id="procedureid" name="procedureid" class="easyui-combobox"
|
||||
data-options="required:true,validType:'isBlank'" disabled/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>机台</th>
|
||||
<td>
|
||||
<input id="equipmentid" name="equipmentid" class="easyui-combobox"
|
||||
data-options="required:true,validType:'isBlank'" disabled/>
|
||||
</td>
|
||||
|
||||
<th>记录类型(外观:AD,二次元:QE)</th>
|
||||
<td>
|
||||
<select id="recordtype" name="recordtype" class="easyui-combobox" data-options="panelHeight:'auto'">
|
||||
<option value="QE" selected>二次元</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>检测类型(首检,巡检,抽检)</th>
|
||||
<td>
|
||||
<select id="testingtype" name="testingtype" class="easyui-combobox" data-options="panelHeight:'auto'">
|
||||
<option value="${Type_First_Inspection}" <c:if test="${tra.testingtype==Type_First_Inspection}">selected</c:if>>首检</option>
|
||||
<option value="${Type_Routing_Inspection}" <c:if test="${tra.testingtype==Type_Routing_Inspection}">selected</c:if>>巡检</option>
|
||||
<option value="${Type_Random_Inspection}" <c:if test="${tra.testingtype==Type_Random_Inspection}">selected</c:if>>抽检</option>
|
||||
<option value="${Type_Debugging}" <c:if test="${tra.testingtype==Type_Debugging}">selected</c:if>>调机</option>
|
||||
<option value="${Type_Standard}" <c:if test="${tra.testingtype==Type_Standard}">selected</c:if>>标准</option>
|
||||
</select>
|
||||
</td>
|
||||
<th>结果</th>
|
||||
<td>
|
||||
<select id="result" name="result" class="easyui-combobox" data-options="panelHeight:'auto'">
|
||||
<option value="OK" <c:if test="${tra.result=='OK'}">selected</c:if>>OK</option>
|
||||
<option value="NG" <c:if test="${tra.result=='NG'}">selected</c:if>>NG</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>说明</th>
|
||||
<td>
|
||||
<input name="instruction" class="easyui-textbox" style="height:80px;width:90%" value="${tra.instruction}"
|
||||
data-options="multiline:true" validtype="length[0,250]" invalidMessage="有效长度0-250" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
<div id="qerecord" class="easyui-panel" title="二次元检测记录" style="width:100%;height:180px;padding:10px;background:#fafafa;">
|
||||
<div >
|
||||
<table id="gridedit" data-options="border:false"></table>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
178
bin/WebRoot/jsp/quality/statistics_CI_subAdd.jsp
Normal file
178
bin/WebRoot/jsp/quality/statistics_CI_subAdd.jsp
Normal file
@ -0,0 +1,178 @@
|
||||
<!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"%>
|
||||
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
|
||||
<html >
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<jsp:include page="../inc.jsp"></jsp:include>
|
||||
<script language="JavaScript">
|
||||
// if (window.name!="frSheet")
|
||||
// window.location.replace("../质检.htm");
|
||||
// else
|
||||
// parent.fnUpdateTabs(0);
|
||||
function dosave(dialog,grid) {
|
||||
if ($(".form").form('validate')) {
|
||||
$.post(ext.contextPath + "/quality/statistics_CI/saveCISub.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() {
|
||||
|
||||
}) ;
|
||||
</script>
|
||||
</head>
|
||||
<body link="blue" vlink="purple">
|
||||
<form id="form" method="post" class="form">
|
||||
<input id="id" name="id" type="hidden" value="" />
|
||||
<input id="workorderno" name="workorderno" type="hidden" value="${param.workorderno}" />
|
||||
<input id="procedureno" name="procedureno" type="hidden" value="${param.procedureno}" />
|
||||
<table class="table" >
|
||||
<caption style="background-color:LightGrey;width=100px;padding:6px 6px;">
|
||||
基本信息
|
||||
</caption>
|
||||
<tr>
|
||||
<th>检测工位</th>
|
||||
<td><input id="workstationno" name="workstationno" class="easyui-textbox"
|
||||
data-options="required:true,validType:'isBlank'" value="" />
|
||||
</td>
|
||||
<th>作业员</th>
|
||||
<td><input id="operator" name="operator" class="easyui-textbox"
|
||||
data-options="required:true,validType:'isBlank'" value="" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>产品型号</th>
|
||||
<td><input id="productionno" name="productionno" class="easyui-textbox"
|
||||
data-options="validType:'isBlank'" value="" />
|
||||
</td>
|
||||
<th>CNC机台</th>
|
||||
<td>
|
||||
<input id="cncstationno" name="cncstationno" class="easyui-textbox"
|
||||
data-options="validType:'isBlank'" value="" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<br />
|
||||
<table class="table">
|
||||
<caption style="background-color:LightGrey;width=100px;padding:6px 6px;">基本参数</caption>
|
||||
<tr>
|
||||
<th>投入数</th>
|
||||
<td>
|
||||
<input id="inputnum" name="inputnum" class="easyui-textbox"/>
|
||||
</td>
|
||||
<th>良品数</th>
|
||||
<td>
|
||||
<input id="goodproductionnum" name="goodproductionnum" class="easyui-textbox"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>返磨数</th>
|
||||
<td>
|
||||
<input id="remonum" name="remonum" class="easyui-textbox"/>
|
||||
</td>
|
||||
<th>报废数</th>
|
||||
<td>
|
||||
<input id="scrapnum" name="scrapnum" class="easyui-textbox"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>返洗数</th>
|
||||
<td>
|
||||
<input id="rewashnum" name="rewashnum" class="easyui-textbox"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<table class="table">
|
||||
<caption style="background-color:LightGrey;width=100px;padding:6px 6px;">不良类型(返磨)</caption>
|
||||
<tr>
|
||||
<th>插架伤痕</th>
|
||||
<td>
|
||||
<input id="cjsh" name="cjsh" class="easyui-textbox"/>
|
||||
</td>
|
||||
<th>轻微沙边</th>
|
||||
<td>
|
||||
<input id="qwsb" name="qwsb" class="easyui-textbox"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<th>研磨伤痕</th>
|
||||
<td>
|
||||
<input id="ymsh" name="ymsh" class="easyui-textbox"/>
|
||||
</td>
|
||||
<th>发霉/未磨透</th>
|
||||
<td>
|
||||
<input id="fmorwmt" name="fmorwmt" class="easyui-textbox" data-options="validType:'isBlank'"/>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th>磨粉点</th>
|
||||
<td>
|
||||
<input id="mfd" name="mfd" class="easyui-textbox" data-options="validType:'isBlank'"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<table class="table">
|
||||
<caption style="background-color:LightGrey;width=100px;padding:6px 6px;">不良类型(报废)</caption>
|
||||
<tr>
|
||||
<th>崩边</th>
|
||||
<td>
|
||||
<input id="bb" name="bb" class="easyui-textbox"/>
|
||||
</td>
|
||||
<th>深花</th>
|
||||
<td>
|
||||
<input id="sh" name="sh" class="easyui-textbox"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<th>起点凹点</th>
|
||||
<td>
|
||||
<input id="qdad" name="qdad" class="easyui-textbox"/>
|
||||
</td>
|
||||
<th>破裂</th>
|
||||
<td>
|
||||
<input id="pl" name="pl" class="easyui-textbox" data-options="validType:'isBlank'"/>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th>严重沙边</th>
|
||||
<td>
|
||||
<input id="yzsb" name="yzsb" class="easyui-textbox" data-options="validType:'isBlank'"/>
|
||||
</td>
|
||||
<th>摆不正</th>
|
||||
<td>
|
||||
<input id="bbz" name="bbz" class="easyui-textbox" data-options="validType:'isBlank'"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>备注</th>
|
||||
<td>
|
||||
<input name="remark" class="easyui-textbox" style="width:100%;height:100px" value=""
|
||||
data-options="multiline:true" validtype="length[0,250]" invalidMessage="有效长度0-250" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
179
bin/WebRoot/jsp/quality/statistics_CI_subEdit.jsp
Normal file
179
bin/WebRoot/jsp/quality/statistics_CI_subEdit.jsp
Normal file
@ -0,0 +1,179 @@
|
||||
<!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"%>
|
||||
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
|
||||
<html >
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<jsp:include page="../inc.jsp"></jsp:include>
|
||||
<script language="JavaScript">
|
||||
// if (window.name!="frSheet")
|
||||
// window.location.replace("../质检.htm");
|
||||
// else
|
||||
// parent.fnUpdateTabs(0);
|
||||
function dosave(dialog,grid) {
|
||||
if ($(".form").form('validate')) {
|
||||
$.post(ext.contextPath + "/quality/statistics_CI/updateCISub.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() {
|
||||
|
||||
}) ;
|
||||
</script>
|
||||
</head>
|
||||
<body link="blue" vlink="purple">
|
||||
<form id="form" method="post" class="form">
|
||||
<input id="id" name="id" type="hidden" value="${statistics_CI_Sub.id}" />
|
||||
<input id="workorderno" name="workorderno" type="hidden" value="${statistics_CI_Sub.workorderno}" />
|
||||
<input id="procedureno" name="procedureno" type="hidden" value="${statistics_CI_Sub.procedureno}" />
|
||||
<input id="status" name="status" type="hidden" value="${statistics_CI_Sub.status}" />
|
||||
<table class="table" >
|
||||
<caption style="background-color:LightGrey;width=100px;padding:6px 6px;">
|
||||
基本信息
|
||||
</caption>
|
||||
<tr>
|
||||
<th>检测工位</th>
|
||||
<td><input id="workstationno" name="workstationno" class="easyui-textbox"
|
||||
data-options="required:true,validType:'isBlank'" value="${statistics_CI_Sub.workstationno}" />
|
||||
</td>
|
||||
<th>作业员</th>
|
||||
<td><input id="operator" name="operator" class="easyui-textbox"
|
||||
data-options="required:true,validType:'isBlank'" value="${statistics_CI_Sub.operator}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>产品型号</th>
|
||||
<td><input id="productionno" name="productionno" class="easyui-textbox"
|
||||
data-options="validType:'isBlank'" value="${statistics_CI_Sub.productionno}" />
|
||||
</td>
|
||||
<th>CNC机台</th>
|
||||
<td>
|
||||
<input id="cncstationno" name="cncstationno" class="easyui-textbox"
|
||||
data-options="validType:'isBlank'" value="${statistics_CI_Sub.cncstationno}" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<br />
|
||||
<table class="table">
|
||||
<caption style="background-color:LightGrey;width=100px;padding:6px 6px;">基本参数</caption>
|
||||
<tr>
|
||||
<th>投入数</th>
|
||||
<td>
|
||||
<input id="inputnum" name="inputnum" class="easyui-textbox" value="${statistics_CI_Sub.inputnum}"/>
|
||||
</td>
|
||||
<th>良品数</th>
|
||||
<td>
|
||||
<input id="goodproductionnum" name="goodproductionnum" class="easyui-textbox" value="${statistics_CI_Sub.goodproductionnum}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>返磨数</th>
|
||||
<td>
|
||||
<input id="remonum" name="remonum" class="easyui-textbox" value="${statistics_CI_Sub.remonum}"/>
|
||||
</td>
|
||||
<th>报废数</th>
|
||||
<td>
|
||||
<input id="scrapnum" name="scrapnum" class="easyui-textbox" value="${statistics_CI_Sub.scrapnum}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>返洗数</th>
|
||||
<td>
|
||||
<input id="rewashnum" name="rewashnum" class="easyui-textbox" value="${statistics_CI_Sub.rewashnum}"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<table class="table">
|
||||
<caption style="background-color:LightGrey;width=100px;padding:6px 6px;">不良类型(返磨)</caption>
|
||||
<tr>
|
||||
<th>插架伤痕</th>
|
||||
<td>
|
||||
<input id="cjsh" name="cjsh" class="easyui-textbox" value="${statistics_CI_Sub.cjsh}"/>
|
||||
</td>
|
||||
<th>轻微沙边</th>
|
||||
<td>
|
||||
<input id="qwsb" name="qwsb" class="easyui-textbox" value="${statistics_CI_Sub.qwsb}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<th>研磨伤痕</th>
|
||||
<td>
|
||||
<input id="ymsh" name="ymsh" class="easyui-textbox" value="${statistics_CI_Sub.ymsh}"/>
|
||||
</td>
|
||||
<th>发霉/未磨透</th>
|
||||
<td>
|
||||
<input id="fmorwmt" name="fmorwmt" class="easyui-textbox" value="${statistics_CI_Sub.fmorwmt}"/>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th>磨粉点</th>
|
||||
<td>
|
||||
<input id="mfd" name="mfd" class="easyui-textbox" value="${statistics_CI_Sub.mfd}"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<table class="table">
|
||||
<caption style="background-color:LightGrey;width=100px;padding:6px 6px;">不良类型(报废)</caption>
|
||||
<tr>
|
||||
<th>崩边</th>
|
||||
<td>
|
||||
<input id="bb" name="bb" class="easyui-textbox" value="${statistics_CI_Sub.bb}"/>
|
||||
</td>
|
||||
<th>深花</th>
|
||||
<td>
|
||||
<input id="sh" name="sh" class="easyui-textbox" value="${statistics_CI_Sub.sh}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<th>起点凹点</th>
|
||||
<td>
|
||||
<input id="qdad" name="qdad" class="easyui-textbox" value="${statistics_CI_Sub.qdad}"/>
|
||||
</td>
|
||||
<th>破裂</th>
|
||||
<td>
|
||||
<input id="pl" name="pl" class="easyui-textbox" value="${statistics_CI_Sub.pl}"/>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th>严重沙边</th>
|
||||
<td>
|
||||
<input id="yzsb" name="yzsb" class="easyui-textbox" value="${statistics_CI_Sub.yzsb}"/>
|
||||
</td>
|
||||
<th>摆不正</th>
|
||||
<td>
|
||||
<input id="bbz" name="bbz" class="easyui-textbox" value="${statistics_CI_Sub.bbz}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>备注</th>
|
||||
<td>
|
||||
<input name="remark" class="easyui-textbox" style="width:100%;height:100px" value="${statistics_CI_Sub.remark}"
|
||||
data-options="multiline:true" validtype="length[0,250]" invalidMessage="有效长度0-250" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
424
bin/WebRoot/jsp/quality/statistics_CI_subList.jsp
Normal file
424
bin/WebRoot/jsp/quality/statistics_CI_subList.jsp
Normal file
@ -0,0 +1,424 @@
|
||||
<%@page import="com.sipai.entity.quality.Statistics_CI_Sub"%>
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.Date" %>
|
||||
<%@page import="java.text.SimpleDateFormat" %>
|
||||
<%@ page import="com.sipai.tools.SessionManager"%>
|
||||
<%
|
||||
SessionManager sessionManager = new SessionManager();
|
||||
%>
|
||||
<%request.setAttribute("TimePeriod",Statistics_CI_Sub.TimePeriod);%>
|
||||
<%request.setAttribute("Flag_Edit",Statistics_CI_Sub.Flag_Edit);%>
|
||||
<%request.setAttribute("Flag_Submit",Statistics_CI_Sub.Flag_Submit);%>
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<style type="text/css">
|
||||
.subtotal { font-weight: bold; }/*合计单元格样式*/
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var grid;
|
||||
var addFun = function() {
|
||||
if($('#nowdate').val()==""){
|
||||
alert("请选择日期");
|
||||
return ;
|
||||
}
|
||||
if($('#workorderno').combobox('getValue')==""){
|
||||
alert("请选择工单");
|
||||
return ;
|
||||
}
|
||||
if($('#procedureno').combobox('getValue')==""){
|
||||
alert("请选择工序");
|
||||
return ;
|
||||
}
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '新增统计条目',
|
||||
width:950,
|
||||
url : ext.contextPath + '/quality/statistics_CI/addCISub.do?workorderno='+$('#workorderno').combobox('getValue')+'&procedureno='+$('#procedureno').combobox('getValue'),
|
||||
buttons : [ {
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.dosave(dialog, grid);
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var viewFun = function(id) {
|
||||
grid.datagrid('clearChecked');
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '查看检验单信息',
|
||||
width:950,
|
||||
url : ext.contextPath + '/quality/statistics_CI/viewCISub.do?id=' + id,
|
||||
buttons : [ {
|
||||
text : '关闭',
|
||||
handler : function() {
|
||||
dialog.dialog('destroy');
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var editFun = function(id) {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '编辑',
|
||||
width:950,
|
||||
url : ext.contextPath + '/quality/statistics_CI/editCISub.do?id=' + id,
|
||||
buttons : [ {
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.dosave(dialog, grid);
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var deleteFun = function(id) {
|
||||
parent.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/statistics_CI/deleteCISub.do', {id : id}, function(data) {
|
||||
if(data==1){
|
||||
top.$.messager.alert('提示','删除成功','info');
|
||||
grid.datagrid('reload');
|
||||
}else{
|
||||
top.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
var deletesFun = function() {
|
||||
var checkedItems = $('#grid').datagrid('getChecked');
|
||||
var datas="";
|
||||
$.each(checkedItems, function(index, item){
|
||||
datas+=item.id+",";
|
||||
});
|
||||
if(datas==""){
|
||||
top.$.messager.alert('提示', '请先选择要删除的记录','info');
|
||||
}else{
|
||||
top.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/statistics_CI/deletesCISub.do', {ids:datas} , function(data) {
|
||||
if(data>0){
|
||||
top.$.messager.alert('提示','成功删除'+data+'条记录','info');
|
||||
grid.datagrid('reload');
|
||||
grid.datagrid('clearChecked');
|
||||
}else{
|
||||
top.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
var updateStatusFun = function() {
|
||||
var checkedItems = $('#grid').datagrid('getChecked');
|
||||
var datas="";
|
||||
$.each(checkedItems, function(index, item){
|
||||
if(datas!=""){
|
||||
datas+=",";
|
||||
}
|
||||
datas+=item.id;
|
||||
});
|
||||
if(datas==""){
|
||||
top.$.messager.alert('提示', '请先选择要提交的记录','info');
|
||||
}else{
|
||||
top.$.messager.confirm('提示', '您确定要提交此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/statistics_CI/updateStatusCISubs.do', {ids:datas} , function(data) {
|
||||
if(data.res>0){
|
||||
top.$.messager.alert('提示','成功提交','info');
|
||||
grid.datagrid('reload');
|
||||
grid.datagrid('clearChecked');
|
||||
}else{
|
||||
top.$.messager.alert('提示','提交失败','info');
|
||||
}
|
||||
},'json');
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
// 日期,在原有日期基础上,增加days天数,默认增加1天
|
||||
function addDate(date, hours) {
|
||||
if (hours == undefined || hours == '') {
|
||||
hours = 2;
|
||||
}
|
||||
var date = new Date(date);
|
||||
date.setHours(date.getHours() + hours);
|
||||
var month = date.getMonth() + 1;
|
||||
var day = date.getDate();
|
||||
var h = date.getHours();
|
||||
var mm = date.getMinutes();
|
||||
return date.getFullYear() + '-' + getFormatDate(month) + '-' + getFormatDate(day)+' '+getFormatDate(h)+':'+getFormatDate(mm);
|
||||
}
|
||||
|
||||
// 日期月份/天的显示,如果是1位数,则在前面加上'0'
|
||||
function getFormatDate(arg) {
|
||||
if (arg == undefined || arg == '') {
|
||||
return '00';
|
||||
}
|
||||
|
||||
var re = arg + '';
|
||||
if (re.length < 2) {
|
||||
re = '0' + re;
|
||||
}
|
||||
|
||||
return re;
|
||||
}
|
||||
function onchangedate(){
|
||||
var date=$("#nowdate").val();
|
||||
loadworkorders(date);
|
||||
$("#periodtime").combobox('reload',ext.contextPath +'/work/groupManage/getTimePeriod.do?nowdate='+date+'&timeperiod=${TimePeriod}')
|
||||
}
|
||||
function loadworkorders(date){
|
||||
$("#workorderno").combobox({
|
||||
url : ext.contextPath + '/work/workorder/getActlist4Select.do?nowdate='+date,
|
||||
valueField : 'workorderno',
|
||||
textField : 'workorderno',
|
||||
method:'get',
|
||||
panelHeight:'auto',
|
||||
onSelect: function () {
|
||||
var workorderno = $("#workorderno").combobox('getValue');
|
||||
$("#procedureno").combobox({
|
||||
url : ext.contextPath + '/work/workorder/getProcedurelist4Select.do?workorderno='+workorderno,
|
||||
valueField : 'id',
|
||||
textField : 'name',
|
||||
method:'get',
|
||||
panelHeight:'auto',
|
||||
onLoadSuccess: function(record){
|
||||
if($("#procedureno").combobox('getData').length>0){
|
||||
$("#procedureno").combobox('select','${sessionScope.procedure}');
|
||||
}
|
||||
},
|
||||
onSelect: function () {
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function loadgridItems(sdt,edt){
|
||||
if(sdt==""){
|
||||
sdt=$("#sdt").val();
|
||||
}
|
||||
if(edt==""){
|
||||
edt=$("#edt").val();
|
||||
}
|
||||
var workorderno = $("#workorderno").combobox('getValue');
|
||||
var procedureno=$('#procedureno').combobox('getValue');
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/statistics_CI/getCISublist.do?workorderno='+workorderno+'&procedureno='+procedureno+'&sdt='+sdt+'&edt='+edt,
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
ctrlSelect:true,
|
||||
singleSelect: false,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{checkbox:true , field : 'ck'},
|
||||
{width : '80', title : '检测工位', field: 'workstationno', halign:'center' , align:'center'},
|
||||
{width : '100', title : '作业员', field : 'operator', halign:'center' , align:'center'},
|
||||
{width : '80', title : '产品型号', field: 'productionno', halign:'center' , align:'center'},
|
||||
{width : '80', title : '投入数', field: 'inputnum', halign:'center' },
|
||||
{width : '80', title : '良品数', field: 'goodproductionnum', halign:'center' },
|
||||
{width : '80', title : '返磨数', field: 'remonum', halign:'center' },
|
||||
{width : '80', title : '报废数', field: 'scrapnum', halign:'center' },
|
||||
{width : '90', title : '状态', field: 'status', halign:'center' , align:'center',formatter : function(value, row){
|
||||
switch(value){
|
||||
case '${Flag_Edit}': return "未提交";
|
||||
case '${Flag_Submit}': return "已提交";
|
||||
default: return value;
|
||||
}
|
||||
} ,sortable:false},
|
||||
{title : '操作', field : 'action', width : '160', halign:'center', align:'center', formatter : function(value, row) {
|
||||
var str = '';
|
||||
if(row.id!=null){
|
||||
str += '<img class="iconImg ext-icon-table" title="查看" onclick="viewFun(\''+row.id+'\');"/> ';
|
||||
}
|
||||
if(row.status=='${Flag_Edit}'){
|
||||
<%if (sessionManager.havePermission(session,"quality/statistics_CI/editCISub.do")) {%>
|
||||
str += '<img class="iconImg ext-icon-table_edit" title="编辑" onclick="editFun(\''+row.id+'\');"/> ';
|
||||
<%}%>
|
||||
<%if (sessionManager.havePermission(session,"quality/statistics_CI/deleteCISub.do")) {%>
|
||||
str += '<img class="iconImg ext-icon-table_delete" title="删除" onclick="deleteFun(\''+row.id+'\');"/>';
|
||||
<%}%>
|
||||
}
|
||||
return str;
|
||||
}
|
||||
}
|
||||
] ],
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
var gnum=compute('goodproductionnum');
|
||||
var inum=compute('inputnum');
|
||||
$('#grid').datagrid('appendRow', {
|
||||
ck:'',
|
||||
workstationno: '<span class="subtotal">合计</span>',
|
||||
inputnum: '<span class="subtotal">'+inum+'</span>',
|
||||
goodproductionnum:'<span class="subtotal">'+gnum +'</span>',
|
||||
remonum: '<span class="subtotal">'+compute('remonum')+'</span>',
|
||||
scrapnum: '<span class="subtotal">'+compute('scrapnum')+'</span>',
|
||||
status:'<span class="subtotal">良率:'+((gnum/inum)*100).toFixed(2)+'%</span>'
|
||||
});
|
||||
var length= $('#grid').datagrid('getData').rows.length;
|
||||
$('#grid').datagrid('mergeCells',{
|
||||
index: length-1,
|
||||
field: 'workstationno',
|
||||
colspan: 3
|
||||
});
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
}
|
||||
//指定列求和
|
||||
function compute(colName) {
|
||||
var rows = $('#grid').datagrid('getRows');
|
||||
var total = 0;
|
||||
for (var i = 0; i < rows.length; i++) {
|
||||
total += parseFloat(rows[i][colName]);
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
|
||||
var importFun = function() {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '选择文件',
|
||||
width: 600,
|
||||
height:300,
|
||||
closeOnEscape:true,
|
||||
url : ext.contextPath + '/quality/statistics_CI/doimport.do',
|
||||
buttons : [ {
|
||||
text : '导入数据',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.doimport(dialog, grid);
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
|
||||
$(function() {
|
||||
|
||||
loadworkorders('${dt}');
|
||||
|
||||
$("#periodtime").combobox({
|
||||
url : ext.contextPath + '/work/groupManage/getTimePeriod.do?nowdate=${dt}&timeperiod=${TimePeriod}',
|
||||
valueField : 'id',
|
||||
textField : 'value',
|
||||
method:'get',
|
||||
panelHeight:'auto',
|
||||
onSelect: function () {
|
||||
var sdt = $("#periodtime").combobox('getValue');
|
||||
var per=parseInt('${TimePeriod}');
|
||||
var edt =addDate(sdt,per);
|
||||
$("#sdt").val(sdt);
|
||||
$("#edt").val(edt);
|
||||
|
||||
if($('#workorderno').combobox('getValue')==""){
|
||||
return ;
|
||||
}
|
||||
if($('#procedureno').combobox('getValue')==""){
|
||||
return ;
|
||||
}
|
||||
loadgridItems(sdt,edt);
|
||||
},
|
||||
onLoadSuccess: function () {
|
||||
$("#periodtime").combobox('select',null);
|
||||
$("#sdt").val('');
|
||||
$("#edt").val('');
|
||||
}
|
||||
});
|
||||
//$('#periodtime').combobox('disable');
|
||||
loadgridItems();
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div id="toolbar" style="display: none;">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<%if (sessionManager.havePermission(session,"quality/statistics_CI/addCISub.do")) {%>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true"
|
||||
onclick="addFun();">添加</a>
|
||||
</td>
|
||||
<%}%>
|
||||
<%if (sessionManager.havePermission(session,"quality/statistics_CI/deleteCISub.do")) {%>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
|
||||
onclick="deletesFun();">删除</a>
|
||||
</td>
|
||||
<%}%>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true"
|
||||
onclick="updateStatusFun();">提交</a>
|
||||
</td>
|
||||
<td><a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-table_add',plain:true" onclick="importFun();">导入</a></td>
|
||||
|
||||
<!-- <td><div class="datagrid-btn-separator"></div></td>
|
||||
<td><a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-table_add',plain:true" onclick="">导入</a></td>
|
||||
<td><a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-table_go',plain:true" onclick="">导出</a></td> -->
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<form id="searchForm">
|
||||
<table>
|
||||
<tr>
|
||||
<td>日期</td>
|
||||
<td><input id="nowdate" name="nowdate" class="Wdate" value="${dt }" style="width: 180px;"
|
||||
onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',onpicked:onchangedate})"
|
||||
></td>
|
||||
<td>工单</td>
|
||||
<td><input id="workorderno" name="workorderno" class="easyui-combobox" style="width: 180px;" value=""/></td>
|
||||
<td>工序</td>
|
||||
<td><input id="procedureno" name="procedureno" class="easyui-combobox" style="width: 180px;" value=""/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
|
||||
<td>时间段</td>
|
||||
<td><input id="periodtime" name="periodtime" class="easyui-combobox" style="width: 180px;" value=""/></td>
|
||||
<td>起始时间</td>
|
||||
<td><input id="sdt" name="sdt" class="Wdate" value="${param.sdt }" style="width: 180px;"
|
||||
onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',maxDate:'#F{$dp.$D(\'edt\')}'})"
|
||||
readonly></td>
|
||||
<td>结束时间</td>
|
||||
<td><input id="edt" name="edt" class="Wdate" value="${param.edt }" style="width: 180px;"
|
||||
onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',minDate:'#F{$dp.$D(\'sdt\')}'})"
|
||||
readonly></td>
|
||||
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-search',plain:true"
|
||||
onclick="loadgridItems('','');">搜索</a>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
|
||||
onclick="$('#searchForm').form('clear');grid.datagrid('load',{});">重置</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</br>
|
||||
<table>
|
||||
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div data-options="region:'center',border:false">
|
||||
<table id="grid" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
174
bin/WebRoot/jsp/quality/statistics_CI_subView.jsp
Normal file
174
bin/WebRoot/jsp/quality/statistics_CI_subView.jsp
Normal file
@ -0,0 +1,174 @@
|
||||
<!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"%>
|
||||
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
|
||||
<html >
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<jsp:include page="../inc.jsp"></jsp:include>
|
||||
<script language="JavaScript">
|
||||
// if (window.name!="frSheet")
|
||||
// window.location.replace("../质检.htm");
|
||||
// else
|
||||
// parent.fnUpdateTabs(0);
|
||||
function dosave(dialog,grid) {
|
||||
if ($(".form").form('validate')) {
|
||||
$.post(ext.contextPath + "/quality/statistics_CI/updateCISub.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() {
|
||||
|
||||
}) ;
|
||||
</script>
|
||||
</head>
|
||||
<body link="blue" vlink="purple">
|
||||
<form id="form" method="post" class="form">
|
||||
<input id="id" name="id" type="hidden" value="${statistics_CI_Sub.id}" />
|
||||
<input id="workorderno" name="workorderno" type="hidden" value="${statistics_CI_Sub.workorderno}" />
|
||||
<input id="procedureno" name="procedureno" type="hidden" value="${statistics_CI_Sub.procedureno}" />
|
||||
<input id="status" name="status" type="hidden" value="${statistics_CI_Sub.status}" />
|
||||
<table class="table" >
|
||||
<caption style="background-color:LightGrey;width=100px;padding:6px 6px;">
|
||||
基本信息
|
||||
</caption>
|
||||
<tr>
|
||||
<th>检测工位</th>
|
||||
<td>${statistics_CI_Sub.workstationno}
|
||||
</td>
|
||||
<th>作业员</th>
|
||||
<td>${statistics_CI_Sub.operator}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>产品型号</th>
|
||||
<td>${statistics_CI_Sub.productionno}
|
||||
</td>
|
||||
<th>CNC机台</th>
|
||||
<td>
|
||||
${statistics_CI_Sub.cncstationno}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<br />
|
||||
<table class="table">
|
||||
<caption style="background-color:LightGrey;width=100px;padding:6px 6px;">基本参数</caption>
|
||||
<tr>
|
||||
<th>投入数</th>
|
||||
<td>
|
||||
${statistics_CI_Sub.inputnum}
|
||||
</td>
|
||||
<th>良品数</th>
|
||||
<td>
|
||||
${statistics_CI_Sub.goodproductionnum}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>返磨数</th>
|
||||
<td>
|
||||
${statistics_CI_Sub.remonum}
|
||||
</td>
|
||||
<th>报废数</th>
|
||||
<td>
|
||||
${statistics_CI_Sub.scrapnum}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>返洗数</th>
|
||||
<td>
|
||||
${statistics_CI_Sub.rewashnum}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<table class="table">
|
||||
<caption style="background-color:LightGrey;width=100px;padding:6px 6px;">不良类型(返磨)</caption>
|
||||
<tr>
|
||||
<th>插架伤痕</th>
|
||||
<td>
|
||||
${statistics_CI_Sub.cjsh}
|
||||
</td>
|
||||
<th>轻微沙边</th>
|
||||
<td>
|
||||
${statistics_CI_Sub.qwsb}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<th>研磨伤痕</th>
|
||||
<td>
|
||||
${statistics_CI_Sub.ymsh}
|
||||
</td>
|
||||
<th>发霉/未磨透</th>
|
||||
<td>
|
||||
${statistics_CI_Sub.fmorwmt}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th>磨粉点</th>
|
||||
<td>
|
||||
${statistics_CI_Sub.mfd}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<table class="table">
|
||||
<caption style="background-color:LightGrey;width=100px;padding:6px 6px;">不良类型(报废)</caption>
|
||||
<tr>
|
||||
<th>崩边</th>
|
||||
<td>
|
||||
${statistics_CI_Sub.bb}
|
||||
</td>
|
||||
<th>深花</th>
|
||||
<td>
|
||||
${statistics_CI_Sub.sh}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<th>起点凹点</th>
|
||||
<td>
|
||||
${statistics_CI_Sub.qdad}
|
||||
</td>
|
||||
<th>破裂</th>
|
||||
<td>
|
||||
${statistics_CI_Sub.pl}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th>严重沙边</th>
|
||||
<td>
|
||||
${statistics_CI_Sub.yzsb}
|
||||
</td>
|
||||
<th>摆不正</th>
|
||||
<td>
|
||||
${statistics_CI_Sub.bbz}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>备注</th>
|
||||
<td>
|
||||
${statistics_CI_Sub.remark}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
904
bin/WebRoot/jsp/quality/testingRecordList.jsp
Normal file
904
bin/WebRoot/jsp/quality/testingRecordList.jsp
Normal file
@ -0,0 +1,904 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ page import="com.sipai.tools.SessionManager"%>
|
||||
<%
|
||||
SessionManager sessionManager = new SessionManager();
|
||||
%>
|
||||
<%request.setAttribute("Type_Standard",com.sipai.entity.quality.TestingRecord.Type_Standard);%>
|
||||
<%request.setAttribute("Type_Debugging",com.sipai.entity.quality.TestingRecord.Type_Debugging);%>
|
||||
<%request.setAttribute("Type_First_Inspection",com.sipai.entity.quality.TestingRecord.Type_First_Inspection);%>
|
||||
<%request.setAttribute("Type_Routing_Inspection",com.sipai.entity.quality.TestingRecord.Type_Routing_Inspection);%>
|
||||
<%request.setAttribute("Type_Random_Inspection",com.sipai.entity.quality.TestingRecord.Type_Random_Inspection);%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<style>
|
||||
|
||||
.textsuccess {
|
||||
position: relative;
|
||||
border: 1px solid #95B8E7;
|
||||
background-color: #28FF28;
|
||||
color:#FFFFFF;
|
||||
text-align:center;
|
||||
width:100% ;
|
||||
height:100%;
|
||||
line-height:90px;
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-moz-border-radius: 5px 5px 5px 5px;
|
||||
-webkit-border-radius: 5px 5px 5px 5px;
|
||||
border-radius: 5px 5px 5px 5px;
|
||||
}
|
||||
|
||||
.texterror {
|
||||
position: relative;
|
||||
border: 1px solid #95B8E7;
|
||||
background-color: red;
|
||||
color:#FFFFFF;
|
||||
text-align:center;
|
||||
width:100% ;
|
||||
height:100%;
|
||||
line-height:90px;
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-moz-border-radius: 5px 5px 5px 5px;
|
||||
-webkit-border-radius: 5px 5px 5px 5px;
|
||||
border-radius: 5px 5px 5px 5px;
|
||||
}
|
||||
|
||||
.textuntest {
|
||||
position: relative;
|
||||
border: 1px solid #95B8E7;
|
||||
background-color: #46A3FF;
|
||||
color:#FFFFFF;
|
||||
text-align:center;
|
||||
width:100% ;
|
||||
height:100%;
|
||||
line-height:90px;
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-moz-border-radius: 5px 5px 5px 5px;
|
||||
-webkit-border-radius: 5px 5px 5px 5px;
|
||||
border-radius: 5px 5px 5px 5px;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var grid;
|
||||
var gridad;
|
||||
var selectcustprjid ="";//工序与自定义检测项关联id
|
||||
var addQEFun = function() {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
iframeId:'iframeadd',
|
||||
title : '添加二次元检测记录',
|
||||
width: 850,
|
||||
height:550,
|
||||
url : ext.contextPath + '/quality/testingrecord/addQE.do?iframeId=iframeadd',
|
||||
buttons : [ {
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.dosave(dialog, grid);
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var editQEFun = function(id) {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '编辑二次元检测记录',
|
||||
width: 850,
|
||||
height:550,
|
||||
url : ext.contextPath + '/quality/testingrecord/editQE.do?id=' + id,
|
||||
buttons : [ {
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.dosave(dialog, grid);
|
||||
doDisplayGrid();
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var editADFun = function(id) {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '编辑外观检测记录',
|
||||
iframeId:'iframeedit',
|
||||
url : ext.contextPath + '/quality/testingrecord/editAD.do?id=' + id,
|
||||
buttons : [ {
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.dosave(dialog, gridad);
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var viewFun = function(id) {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '查看用户信息',
|
||||
url : ext.contextPath + '/work/group/view.do?id=' + id
|
||||
});
|
||||
};
|
||||
var deleteQEFun = function(id) {
|
||||
parent.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/testingrecord/deleteQE.do', {id : id}, function(data) {
|
||||
if(data>=1){
|
||||
parent.$.messager.alert('提示','删除成功','info',function(){
|
||||
doDisplayGrid();
|
||||
});
|
||||
}else{
|
||||
parent.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
var deletesQEFun = function() {
|
||||
var checkedItems = $('#grid').datagrid('getChecked');
|
||||
var datas="";
|
||||
$.each(checkedItems, function(index, item){
|
||||
datas+=item.id+",";
|
||||
});
|
||||
//alert(datas);
|
||||
if(datas==""){
|
||||
top.$.messager.alert('提示', '请先选择要删除的记录','info');
|
||||
}else{
|
||||
parent.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/testingrecord/deletesQE.do', {ids:datas} , function(data) {
|
||||
if(data>0){
|
||||
parent.$.messager.alert('提示','成功删除'+data+'条记录','info',function(){
|
||||
doDisplayGrid();
|
||||
grid.datagrid('clearChecked');
|
||||
});
|
||||
}else{
|
||||
parent.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
var addADFun = function() {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
iframeId:'iframeadd',
|
||||
title : '添加外观检测记录',
|
||||
url : ext.contextPath + '/quality/testingrecord/addAD.do',
|
||||
buttons : [ {
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.dosave(dialog, gridad);
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
|
||||
var deleteADFun = function(id) {
|
||||
parent.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/testingrecord/deleteAD.do', {id : id}, function(data) {
|
||||
if(data==1){
|
||||
parent.$.messager.alert('提示','删除成功','info',function(){
|
||||
gridad.datagrid('reload');
|
||||
});
|
||||
}else{
|
||||
parent.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
var deletesADFun = function() {
|
||||
var checkedItems = $('#gridad').datagrid('getChecked');
|
||||
var datas="";
|
||||
$.each(checkedItems, function(index, item){
|
||||
datas+=item.id+",";
|
||||
});
|
||||
//alert(datas);
|
||||
if(datas==""){
|
||||
top.$.messager.alert('提示', '请先选择要删除的记录','info');
|
||||
}else{
|
||||
parent.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/testingrecord/deletesAD.do', {ids:datas} , function(data) {
|
||||
if(data>0){
|
||||
parent.$.messager.alert('提示','成功删除'+data+'条记录','info',function(){
|
||||
gridad.datagrid('reload');
|
||||
gridad.datagrid('clearChecked');
|
||||
});
|
||||
}else{
|
||||
parent.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
//获取当前时间
|
||||
function getNowFormatDate() {
|
||||
var date = new Date();
|
||||
var seperator1 = "-";
|
||||
//var seperator2 = ":";
|
||||
var month = date.getMonth() + 1;
|
||||
var strDate = date.getDate();
|
||||
if (month >= 1 && month <= 9) {
|
||||
month = "0" + month;
|
||||
}
|
||||
if (strDate >= 0 && strDate <= 9) {
|
||||
strDate = "0" + strDate;
|
||||
}
|
||||
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
||||
/*+ " " + date.getHours() + seperator2 + date.getMinutes()
|
||||
+ seperator2 + date.getSeconds();*/
|
||||
return currentdate;
|
||||
}
|
||||
|
||||
//时间选择后获取工单
|
||||
function getwo(){
|
||||
|
||||
$('#search_wo').combobox({
|
||||
url : ext.contextPath + '/quality/testingrecord/getwolist.do?sdate=' + $('#search_date').val(),
|
||||
valueField:'id',
|
||||
textField:'workorderno',
|
||||
method:'get'
|
||||
});
|
||||
grid.datagrid('loadData', { total: 0, rows: [] });
|
||||
gridad.datagrid('loadData', { total: 0, rows: [] });
|
||||
|
||||
if($('#search_date').val() == getNowFormatDate())
|
||||
{
|
||||
$("#adadd").linkbutton("enable");
|
||||
$("#addel").linkbutton("enable");
|
||||
$("#qeadd").linkbutton("enable");
|
||||
$("#qedel").linkbutton("enable");
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#adadd").linkbutton("disable");
|
||||
$("#addel").linkbutton("disable");
|
||||
$("#qeadd").linkbutton("disable");
|
||||
$("#qedel").linkbutton("disable");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function searchFun(){
|
||||
gridad.datagrid('load',ext.serializeObject($('#searchForm')));
|
||||
$("#custprjpool").empty();
|
||||
doDisplayGrid();
|
||||
doDisplayCustPrj();
|
||||
|
||||
}
|
||||
//二次元表格组装
|
||||
var arr;
|
||||
function doDisplayGrid(){
|
||||
$.getJSON(ext.contextPath +"/quality/qeproject/getQEProject.do?procedcode=" + $('#search_proced').combobox('getValue') + "&woid=" + $('#search_wo').combobox('getValue'),cbgrid);
|
||||
}
|
||||
function cbgrid(data){
|
||||
pcarrL = data.length;
|
||||
sessionStorage.setItem("arr",JSON.stringify(data));
|
||||
$.getJSON(ext.contextPath +"/quality/testingrecord/getlist.do?search_proced=" + $('#search_proced').combobox('getValue') + "&search_wo=" + $('#search_wo').combobox('getValue') + "&search_equ=" + $('#search_equ').combobox('getValue') +"&search_date=" + $('#search_date').val(),function (data){
|
||||
initQERecordData(pcarrL,data);
|
||||
fLoadTable(JSON.parse(sessionStorage.getItem("arr")));
|
||||
});
|
||||
}
|
||||
|
||||
var configColumns = function(arr) {
|
||||
var columns = [];
|
||||
// 配置表头
|
||||
columns.push(configProject(arr));
|
||||
return columns;
|
||||
}
|
||||
|
||||
var configProject = function(arr) {
|
||||
var project = [];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
project.push({
|
||||
title:arr[i].projectname,
|
||||
field:"u"+i,
|
||||
width:100,
|
||||
halign:'center',
|
||||
align:'center',
|
||||
});
|
||||
}
|
||||
project.push(
|
||||
{title : '操作', field : 'action', width : '120', halign:'center', align:'center', formatter : function(value, row) {
|
||||
var str = '';
|
||||
<%if (sessionManager.havePermission(session,"quality/testingrecord/editQE.do")) {%>
|
||||
if($('#search_date').val() == getNowFormatDate())
|
||||
{
|
||||
str += '<img class="iconImg ext-icon-table_edit" title="编辑二次元检测记录" onclick="editQEFun(\''+row.id+'\');"/>';
|
||||
}
|
||||
<%}%>
|
||||
<%if (sessionManager.havePermission(session,"quality/testingrecord/deleteQE.do")) {%>
|
||||
if($('#search_date').val() == getNowFormatDate())
|
||||
{
|
||||
str += '<img class="iconImg ext-icon-table_delete" title="删除二次元检测记录" onclick="deleteQEFun(\''+row.id+'\');"/>';
|
||||
}
|
||||
<%}%>
|
||||
return str;
|
||||
}
|
||||
}
|
||||
)
|
||||
return project;
|
||||
}
|
||||
|
||||
var fLoadTable = function(data) {
|
||||
//console.log("d2",JSON.parse(sessionStorage.getItem("displaydata")));
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
data: JSON.parse(sessionStorage.getItem("displaydata")).rows,
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
//pagination : true,
|
||||
singleSelect: false,
|
||||
ctrlSelect:true,
|
||||
nowrap:false,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
frozenColumns : [ [
|
||||
{checkbox:true , field : 'ck'},
|
||||
{width : '100', title : '记录编码', field : 'recordcode', align:'center', halign:'center'},
|
||||
{width : '80', title : '检测类型', field : 'testingtype', align:'center', halign:'center',formatter:function(value,row){
|
||||
switch (value) {
|
||||
case '${Type_Standard}':
|
||||
return '标准';
|
||||
case '${Type_Debugging}':
|
||||
return '调机';
|
||||
case '${Type_First_Inspection}':
|
||||
return '首检';
|
||||
case '${Type_Routing_Inspection}':
|
||||
return '巡检';
|
||||
case '${Type_Random_Inspection}':
|
||||
return '抽检';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}},
|
||||
{width : '100', title : '结果', field : 'result', halign:'center',align:'center'},
|
||||
] ],
|
||||
columns: configColumns(data),
|
||||
toolbar : '#toolbarqe',
|
||||
rowStyler: function(index,row){//如果调机时,该行隐藏
|
||||
if (row.testingtype=='${Type_Debugging}'&&$('input:radio[name="havingdebugs"]:checked').val()==0){
|
||||
return 'display:none'; // return inline style
|
||||
}
|
||||
},
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//对象的克隆函数
|
||||
var cloneObj = function(obj) {
|
||||
var str, newobj = obj.constructor === Array ? [] : {};
|
||||
if (typeof obj !== 'object') {
|
||||
return;
|
||||
} else if (window.JSON) {
|
||||
str = JSON.stringify(obj), //系列化对象
|
||||
newobj = JSON.parse(str); //还原
|
||||
} else {
|
||||
for (var i in obj) {
|
||||
newobj[i] = typeof obj[i] === 'object' ?
|
||||
cloneObj(obj[i]) : obj[i];
|
||||
}
|
||||
}
|
||||
return newobj;
|
||||
};
|
||||
|
||||
var makeData = function(QErecord,temArr){
|
||||
QErecord.map( function(ele, index){
|
||||
if(ele.projectid != "sss"){
|
||||
var jj;
|
||||
var arrproj = JSON.parse(sessionStorage.getItem("arr"));
|
||||
for(var i=0;i<arrproj.length;i++)
|
||||
{
|
||||
//console.log("ele.taskcode",ele.taskcode);
|
||||
//console.log("arr[i]",arr[i].procedurecode);
|
||||
if(ele.projectid == arrproj[i].id)
|
||||
{
|
||||
jj=i;
|
||||
}
|
||||
}
|
||||
if (jj>=0){
|
||||
temArr[jj] = {"projresult":ele.projresult,"projectid":ele.projectid};
|
||||
}
|
||||
}
|
||||
})
|
||||
for (var i = 0; i < temArr.length; i++) {
|
||||
if (temArr[i] == undefined) {
|
||||
temArr[i] = PlainResult("sss");
|
||||
}
|
||||
}
|
||||
//console.log("temArr",temArr);
|
||||
return temArr;
|
||||
}
|
||||
|
||||
var PlainResult = function(projectid) {
|
||||
return {
|
||||
projresult: '',
|
||||
projectid: projectid,
|
||||
}
|
||||
}
|
||||
|
||||
// 处理后台数据
|
||||
var initQERecordData = function(pcarrL,arr) {
|
||||
var QERecordData = cloneObj(arr);
|
||||
for(var i = 0;i < QERecordData.rows.length; i++){
|
||||
var temArr = new Array(pcarrL);
|
||||
var tas = makeData(QERecordData.rows[i].QErecord,temArr);
|
||||
//console.log("tas",tas);
|
||||
for(var j=0;j<tas.length;j++){
|
||||
var fieldid="u"+j;
|
||||
QERecordData.rows[i][fieldid] = tas[j].projresult;
|
||||
}
|
||||
}
|
||||
//console.log("tod",QERecordData);
|
||||
sessionStorage.setItem("displaydata",JSON.stringify(QERecordData));
|
||||
}
|
||||
|
||||
//获取自定义项目结果
|
||||
function doDisplayCustPrj(){
|
||||
$.getJSON(ext.contextPath +"/quality/testingrecord/getCustPrjJson.do?pid="+$('#search_proced').combobox('getValue'),cbcustprj);
|
||||
}
|
||||
function cbcustprj(data){
|
||||
//console.log("d",data);
|
||||
for(var i = 0;i<data.rows.length;i++){
|
||||
var subDiv = document.createElement("div");
|
||||
subDiv.style.width = "10%";
|
||||
subDiv.style.height = "50px";
|
||||
subDiv.style.float = "left";
|
||||
subDiv.style.margin = "3%";
|
||||
document.getElementById("custprjpool").appendChild(subDiv);
|
||||
if(data.rows[i].cpresult == "NG")
|
||||
{
|
||||
var subInput = document.createElement("input");
|
||||
subInput.className = "texterror";
|
||||
subInput.value = data.rows[i].customprojname;
|
||||
subInput.setAttribute("cpId",data.rows[i].id);//工序与自定义检测项关联id
|
||||
//subInput.value = subInput.getAttribute("cpId");
|
||||
//subInput.setAttribute("cpre",data.rows[i].cpresult);//自定义检测项结果
|
||||
subInput.readOnly = true;
|
||||
subDiv.appendChild(subInput);
|
||||
}
|
||||
else if(data.rows[i].cpresult == "OK")
|
||||
{
|
||||
var subInput = document.createElement("input");
|
||||
subInput.className = "textsuccess";
|
||||
subInput.value = data.rows[i].customprojname;
|
||||
subInput.setAttribute("cpId",data.rows[i].id);//工序与自定义检测项关联id
|
||||
subInput.readOnly = true;
|
||||
subDiv.appendChild(subInput);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
var subInput = document.createElement("input");
|
||||
subInput.className = "textuntest";
|
||||
subInput.value = data.rows[i].customprojname;
|
||||
subInput.setAttribute("cpId",data.rows[i].id);//工序与自定义检测项关联id
|
||||
subInput.readOnly = true;
|
||||
subDiv.appendChild(subInput);
|
||||
}
|
||||
|
||||
}
|
||||
$("input.textsuccess").bind("click", function () {
|
||||
selectcustprjid =$(this).attr("cpId");
|
||||
editcpFun();
|
||||
});
|
||||
|
||||
$("input.texterror").bind("click", function () {
|
||||
selectcustprjid =$(this).attr("cpId");
|
||||
editcpFun();
|
||||
});
|
||||
|
||||
$("input.textuntest").bind("click", function () {
|
||||
selectcustprjid =$(this).attr("cpId");
|
||||
editcpFun();
|
||||
});
|
||||
|
||||
/* $("input.textsuccess").focus(function(){
|
||||
//让当前得到焦点的文本框改变其背景色和文字颜色
|
||||
$(this).css("background","white");
|
||||
$(this).css("color","black");
|
||||
selectcustprjid=$(this).attr("cpId");
|
||||
$("input.texterror").css("background","red");
|
||||
$("input.texterror").css("color","white");
|
||||
$("input.texterror").css("border-color","#6b9cde");
|
||||
$("input.textuntest").css("background","#46A3FF");
|
||||
$("input.textuntest").css("color","white");
|
||||
$("input.textuntest").css("border-color","#6b9cde");
|
||||
});
|
||||
//找到文本框,并注册失去焦点事件
|
||||
/*$("input.textsuccess").blur(function(){
|
||||
//让当前失去焦点的文本框背景色文字颜色
|
||||
$(this).css("background","#28FF28");
|
||||
$(this).css("color","white");
|
||||
$(this).css("border-color","#6b9cde");
|
||||
selectcustprjid="";
|
||||
});
|
||||
$("input.texterror").focus(function(){
|
||||
//让当前得到焦点的文本框改变其背景色和文字颜色
|
||||
$(this).css("background","white");
|
||||
$(this).css("color","black");
|
||||
selectcustprjid=$(this).attr("cpId");
|
||||
$("input.textsuccess").css("background","#28FF28");
|
||||
$("input.textsuccess").css("color","white");
|
||||
$("input.textsuccess").css("border-color","#6b9cde");
|
||||
$("input.textuntest").css("background","#46A3FF");
|
||||
$("input.textuntest").css("color","white");
|
||||
$("input.textuntest").css("border-color","#6b9cde");
|
||||
|
||||
});
|
||||
//找到文本框,并注册失去焦点事件
|
||||
/*$("input.texterror").blur(function(){
|
||||
//让当前失去焦点的文本框背景色文字颜色
|
||||
$(this).css("background","red");
|
||||
$(this).css("color","white");
|
||||
$(this).css("border-color","#6b9cde");
|
||||
selectcustprjid="";
|
||||
});
|
||||
$("input.textuntest").focus(function(){
|
||||
//让当前得到焦点的文本框改变其背景色和文字颜色
|
||||
$(this).css("background","white");
|
||||
$(this).css("color","black");
|
||||
selectcustprjid=$(this).attr("cpId");
|
||||
$("input.texterror").css("background","red");
|
||||
$("input.texterror").css("color","white");
|
||||
$("input.texterror").css("border-color","#6b9cde");
|
||||
$("input.textsuccess").css("background","#28FF28");
|
||||
$("input.textsuccess").css("color","white");
|
||||
$("input.textsuccess").css("border-color","#6b9cde");
|
||||
});
|
||||
//找到文本框,并注册失去焦点事件
|
||||
/*$("input.textuntest").blur(function(){
|
||||
//让当前失去焦点的文本框背景色文字颜色
|
||||
$(this).css("background","#46A3FF");
|
||||
$(this).css("color","white");
|
||||
$(this).css("border-color","#6b9cde");
|
||||
selectcustprjid="";
|
||||
});*/
|
||||
}
|
||||
|
||||
var editcpFun = function() {
|
||||
if (selectcustprjid!="")
|
||||
{
|
||||
var dialog = parent.ext.modalDialog({
|
||||
iframeId:'iframeedit',
|
||||
title : '编辑自定义检测项结果',
|
||||
width: 750,
|
||||
height:250,
|
||||
url : ext.contextPath + '/quality/testingrecord/editcp.do?iframeId=iframeedit&id=' + selectcustprjid,
|
||||
buttons : [ {
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.dosave(dialog, grid);
|
||||
$("#custprjpool").empty();
|
||||
doDisplayCustPrj();
|
||||
}
|
||||
} ]
|
||||
});
|
||||
}
|
||||
else{
|
||||
alert("请选择自定义检测项!");
|
||||
}
|
||||
};
|
||||
|
||||
var importFun = function() {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '选择文件',
|
||||
width: 600,
|
||||
height:300,
|
||||
closeOnEscape:true,
|
||||
url : ext.contextPath + '/quality/testingrecord/doimport.do',
|
||||
buttons : [ {
|
||||
text : '导入数据',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.doimport(dialog, grid);
|
||||
|
||||
}
|
||||
} ]
|
||||
});
|
||||
grid.datagrid('reload');
|
||||
};
|
||||
|
||||
$(function() {
|
||||
|
||||
document.getElementById('search_date').value=getNowFormatDate();//设置默认时间
|
||||
|
||||
|
||||
//radio监听器
|
||||
for(var i = 0; i < $(".radioSpan input").length; i++){
|
||||
$(".radioSpan input")[i].addEventListener("click",function(){
|
||||
doDisplayGrid();
|
||||
//console.log("dsasaddd",$(this).val());
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
//pagination : true,
|
||||
singleSelect: false,
|
||||
ctrlSelect:true,
|
||||
nowrap:false,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
frozenColumns : [ [
|
||||
{checkbox:true , field : 'ck'},
|
||||
{width : '100', title : '记录编码', field : 'recordcode', sortable : true, halign:'center'},
|
||||
{width : '80', title : '检测类型', field : 'testingtype', sortable : true, halign:'center',formatter:function(value,row){
|
||||
switch (value) {
|
||||
case '${Type_Standard}':
|
||||
return '标准';
|
||||
case '${Type_Debugging}':
|
||||
return '调机';
|
||||
case '${Type_First_Inspection}':
|
||||
return '首检';
|
||||
case '${Type_Routing_Inspection}':
|
||||
return '巡检';
|
||||
case '${Type_Random_Inspection}':
|
||||
return '抽检';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}}
|
||||
] ],
|
||||
toolbar : '#toolbarqe',
|
||||
rowStyler: function(index,row){//如果调机时,该行隐藏
|
||||
if (row.testingtype=='1'&&$('input:radio[name="havingdebugs"]:checked').val()==0){
|
||||
return 'display:none'; // return inline style
|
||||
}
|
||||
},
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
gridad = $('#gridad').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/testingrecord/getadlist.do',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
singleSelect: false,
|
||||
ctrlSelect:true,
|
||||
nowrap:false,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{checkbox:true , field : 'ck'},
|
||||
{width : '80', title : '记录编码', field : 'recordcode', sortable : true, halign:'center'},
|
||||
{width : '80', title : '检测类型', field : 'testingtype', sortable : true, halign:'center',formatter:function(value,row){
|
||||
switch (value) {
|
||||
case '${Type_Standard}':
|
||||
return '标准';
|
||||
case '${Type_Debugging}':
|
||||
return '调机';
|
||||
case '${Type_First_Inspection}':
|
||||
return '首检';
|
||||
case '${Type_Routing_Inspection}':
|
||||
return '巡检';
|
||||
case '${Type_Random_Inspection}':
|
||||
return '抽检';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}},
|
||||
{width : '140', title : '日期', field : 'time', sortable : true, halign:'center',formatter:function(value,row){
|
||||
var str = value.substring(0,16);
|
||||
return str;
|
||||
}},
|
||||
{width : '80', title : '结果判定', field : 'result', sortable : true, halign:'center'},
|
||||
{width : '200', title : '工单号', field : 'workorderno', sortable : true, halign:'center'},
|
||||
{width : '170', title : '备注(NG原因)', field : 'instruction', sortable : true, halign:'center'},
|
||||
{title : '操作', field : 'action', width : '120', halign:'center', align:'center', formatter : function(value, row) {
|
||||
var str = '';
|
||||
<%if (sessionManager.havePermission(session,"quality/testingrecord/editAD.do")) {%>
|
||||
if($('#search_date').val() == getNowFormatDate())
|
||||
{
|
||||
str += '<img class="iconImg ext-icon-table_edit" title="编辑外观检测记录" onclick="editADFun(\''+row.id+'\');"/>';
|
||||
}
|
||||
<%}%>
|
||||
<%if (sessionManager.havePermission(session,"quality/testingrecord/deleteAD.do")) {%>
|
||||
if($('#search_date').val() == getNowFormatDate())
|
||||
{
|
||||
str += '<img class="iconImg ext-icon-table_delete" title="删除外观检测记录" onclick="deleteADFun(\''+row.id+'\');"/>';
|
||||
}
|
||||
<%}%>
|
||||
return str;
|
||||
}
|
||||
}
|
||||
] ],
|
||||
toolbar : '#toolbarad',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
|
||||
$('#search_wo').combobox({
|
||||
url : ext.contextPath + '/quality/testingrecord/getwolist.do?sdate=' + $('#search_date').val(),
|
||||
valueField:'id',
|
||||
textField:'workorderno',
|
||||
method:'get',
|
||||
onSelect: function () {
|
||||
$('#search_proced').combobox({
|
||||
url : ext.contextPath + '/quality/testingrecord/getprocedurelist.do?woid=' + $('#search_wo').combobox('getValue'),
|
||||
valueField:'procedurecode',
|
||||
textField:'procedurename',
|
||||
method:'get',
|
||||
onSelect: function () {
|
||||
$('#search_equ').combogrid({
|
||||
delay: 500,
|
||||
mode: 'remote',
|
||||
panelWidth:253,
|
||||
url : ext.contextPath + '/quality/testingrecord/getequlist.do?procedcode=' + $('#search_proced').combobox('getValue') + '&woid=' + $('#search_wo').combobox('getValue'),
|
||||
idField: 'equipmentid',
|
||||
textField: 'equdisplayname',
|
||||
columns: [[
|
||||
//{field:'equipmentid',title:'equipmentid',width:120,sortable:true},
|
||||
{field:'equipmentcardid',title:'设备编号',width:150,sortable:true,formatter:function(value,row){
|
||||
return row.equipmentCard.equipmentcardid;
|
||||
}
|
||||
},
|
||||
{field:'equipmentname',title:'设备名称',width:100,sortable:true,formatter:function(value,row){
|
||||
return row.equipmentCard.equipmentname;
|
||||
}
|
||||
}
|
||||
]]
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div id="testing" class="easyui-panel" title="检测记录" style="width:100%;height:100%;padding:10px;background:#fafafa;">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<form id="searchForm">
|
||||
<table class="tooltable">
|
||||
<tr>
|
||||
<td>日期</td>
|
||||
<td><input id="search_date" name="search_date" class="Wdate" value=""
|
||||
onfocus="WdatePicker({onpicked:getwo(),startDate:'%y',dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-{%d}'})" readonly/></td>
|
||||
<td>工单</td>
|
||||
<td>
|
||||
<input id="search_wo" name="search_wo" class="easyui-combobox" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>工序</td>
|
||||
<td><input id="search_proced" name="search_proced" class="easyui-combobox" /></td>
|
||||
<td>机台</td>
|
||||
<td><input id="search_equ" name="search_equ" class="easyui-combogrid" /></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-search',plain:true"
|
||||
onclick=" searchFun()">搜索</a>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
|
||||
onclick="$('#searchForm').form('clear');document.getElementById('search_date').value=getNowFormatDate();grid.datagrid('load',{});gridad.datagrid('load',{});">重置</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<div class="easyui-tabs" style="width:1100px;height:300px;" >
|
||||
<div title="二次元检测" style="padding:0px;">
|
||||
<div id="toolbarqe" style="display: none;">
|
||||
<form id="gridquForm">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="radioSpan">
|
||||
<input type="radio" name="havingdebugs" checked="checked" value="0">不包含调试记录</input>
|
||||
<input type="radio" name="havingdebugs" value="1">包含调试记录</input>
|
||||
</span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<%if (sessionManager.havePermission(session,"quality/testingrecord/addQE.do")) {%>
|
||||
<td>
|
||||
<a id ="qeadd" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true"
|
||||
onclick="addQEFun();">添加</a>
|
||||
</td>
|
||||
<%}%>
|
||||
<%if (sessionManager.havePermission(session,"quality/testingrecord/deleteQE.do")) {%>
|
||||
<td>
|
||||
<a id ="qedel" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
|
||||
onclick="deletesQEFun();">删除</a>
|
||||
</td>
|
||||
<%}%>
|
||||
<td><div class="datagrid-btn-separator"></div></td>
|
||||
<%if (sessionManager.havePermission(session,"quality/testingrecord/importTestingRecord.do")) {%>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'iconImg ext-icon-table_save',plain:true"
|
||||
onclick="importFun();">导入</a>
|
||||
<%}%>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<div id="cc" class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div data-options="region:'center',fit:true,border:false">
|
||||
<table id="grid" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="adtab" title="外观检测" closable="true" data-options="closable:false">
|
||||
<div id="toolbarad" style="display: none;">
|
||||
<table>
|
||||
<tr>
|
||||
<%if (sessionManager.havePermission(session,"quality/testingrecord/addAD.do")) {%>
|
||||
<td>
|
||||
<a id ="adadd" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true"
|
||||
onclick="addADFun();">添加</a>
|
||||
</td>
|
||||
<%}%>
|
||||
<%if (sessionManager.havePermission(session,"quality/testingrecord/deleteAD.do")) {%>
|
||||
<td>
|
||||
<a id ="addel" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
|
||||
onclick="deletesADFun();">删除</a>
|
||||
</td>
|
||||
<%}%>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="adcc" class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div data-options="region:'center',fit:true,border:false">
|
||||
<table id="gridad" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div id="pool" class="easyui-panel" title="自定义检测项(绿色正常,红色异常,蓝色未检测)" style="width:1100px;height:300px;padding:10px;background:#fafafa;">
|
||||
<!-- <table class="tooltable">
|
||||
<tr>
|
||||
<td>
|
||||
<a id="getcpbtn" class="easyui-linkbutton" onclick="editcpFun()" data-options="iconCls:'ext-icon-lorry_add'">选中</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table> -->
|
||||
<div id = "custprjpool" ></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
212
bin/WebRoot/jsp/quality/yieldStatistic_EveryDay.jsp
Normal file
212
bin/WebRoot/jsp/quality/yieldStatistic_EveryDay.jsp
Normal file
@ -0,0 +1,212 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.Date" %>
|
||||
<%@page import="java.text.SimpleDateFormat" %>
|
||||
<%@ page import="com.sipai.tools.SessionManager"%>
|
||||
<%
|
||||
SessionManager sessionManager = new SessionManager();
|
||||
%>
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<style type="text/css">
|
||||
.subtotal { font-weight: bold; }/*合计单元格样式*/
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var grid;
|
||||
var viewFun = function(id) {
|
||||
grid.datagrid('clearChecked');
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '查看检验单信息',
|
||||
width:950,
|
||||
url : ext.contextPath + '/quality/statistics_CI/viewCISub.do?id=' + id,
|
||||
buttons : [ {
|
||||
text : '关闭',
|
||||
handler : function() {
|
||||
dialog.dialog('destroy');
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var editFun = function(id) {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '编辑',
|
||||
width:950,
|
||||
url : ext.contextPath + '/quality/statistics_CI/editCISub.do?id=' + id,
|
||||
buttons : [ {
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.dosave(dialog, grid);
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var deleteFun = function(id) {
|
||||
parent.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/statistics_CI/deleteCISub.do', {id : id}, function(data) {
|
||||
if(data==1){
|
||||
top.$.messager.alert('提示','删除成功','info');
|
||||
grid.datagrid('reload');
|
||||
}else{
|
||||
top.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
var deletesFun = function() {
|
||||
var checkedItems = $('#grid').datagrid('getChecked');
|
||||
var datas="";
|
||||
$.each(checkedItems, function(index, item){
|
||||
datas+=item.id+",";
|
||||
});
|
||||
if(datas==""){
|
||||
top.$.messager.alert('提示', '请先选择要删除的记录','info');
|
||||
}else{
|
||||
top.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/statistics_CI/deletesCISub.do', {ids:datas} , function(data) {
|
||||
if(data>0){
|
||||
top.$.messager.alert('提示','成功删除'+data+'条记录','info');
|
||||
grid.datagrid('reload');
|
||||
grid.datagrid('clearChecked');
|
||||
}else{
|
||||
top.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
// 日期,在原有日期基础上,增加days天数,默认增加1天
|
||||
function addDate(date, hours) {
|
||||
if (hours == undefined || hours == '') {
|
||||
hours = 2;
|
||||
}
|
||||
var date = new Date(date);
|
||||
date.setHours(date.getHours() + hours);
|
||||
var month = date.getMonth() + 1;
|
||||
var day = date.getDate();
|
||||
var h = date.getHours();
|
||||
var mm = date.getMinutes();
|
||||
return date.getFullYear() + '-' + getFormatDate(month) + '-' + getFormatDate(day)+' '+getFormatDate(h)+':'+getFormatDate(mm);
|
||||
}
|
||||
|
||||
// 日期月份/天的显示,如果是1位数,则在前面加上'0'
|
||||
function getFormatDate(arg) {
|
||||
if (arg == undefined || arg == '') {
|
||||
return '00';
|
||||
}
|
||||
|
||||
var re = arg + '';
|
||||
if (re.length < 2) {
|
||||
re = '0' + re;
|
||||
}
|
||||
|
||||
return re;
|
||||
}
|
||||
function onchangedate(){
|
||||
var date=$("#nowdate").val();
|
||||
loadworkorders(date);
|
||||
}
|
||||
function loadworkorders(date){
|
||||
$("#workorderno").combobox({
|
||||
url : ext.contextPath + '/work/workorder/getActlist4Select.do?nowdate='+date,
|
||||
valueField : 'workorderno',
|
||||
textField : 'workorderno',
|
||||
method:'get',
|
||||
panelHeight:'auto',
|
||||
onSelect: function () {
|
||||
/* var workorderno = $("#workorderno").combobox('getValue');
|
||||
$("#procedureno").combobox({
|
||||
url : ext.contextPath + '/work/workorder/getProcedurelist4Select.do?workorderno='+workorderno,
|
||||
valueField : 'id',
|
||||
textField : 'name',
|
||||
method:'get',
|
||||
panelHeight:'auto',
|
||||
onLoadSuccess: function(record){
|
||||
if($("#procedureno").combobox('getData').length>0){
|
||||
$("#procedureno").combobox('select','${sessionScope.procedure}');
|
||||
}
|
||||
},
|
||||
onSelect: function () {
|
||||
}
|
||||
}); */
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function loadgridItems(){
|
||||
var workorderno = $("#workorderno").combobox('getValue');
|
||||
var dt=$('#nowdate').val();
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/statistics_Yield/getDayYield.do?workorderno='+workorderno+'&dt='+dt,
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
ctrlSelect:true,
|
||||
singleSelect: false,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{width : '80', title : '工序', field: 'procedureName', halign:'center' , align:'center'},
|
||||
{width : '80', title : '工单产品数', field: 'outputNum', halign:'center' , align:'center'},
|
||||
{width : '100', title : '生产投入数', field : 'inputNum', halign:'center' , align:'center'},
|
||||
{width : '80', title : '直通率', field: 'rolledYield', halign:'center' , align:'center'},
|
||||
{width : '80', title : '一次返工率', field: 'repair1Yield', halign:'center', align:'center'},
|
||||
{width : '80', title : '二次返工率', field: 'repair2Yield', halign:'center',align:'center' },
|
||||
{width : '80', title : '综合良率', field: 'comprehensiveYield', halign:'center', align:'center'},
|
||||
] ],
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
}
|
||||
$(function() {
|
||||
|
||||
loadworkorders('${dt}');
|
||||
loadgridItems();
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div id="toolbar" style="display: none;">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<form id="searchForm">
|
||||
<table>
|
||||
<tr>
|
||||
<td>日期</td>
|
||||
<td><input id="nowdate" name="nowdate" class="Wdate" value="${dt }" style="width: 180px;"
|
||||
onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',onpicked:onchangedate})"
|
||||
></td>
|
||||
<td>工单</td>
|
||||
<td><input id="workorderno" name="workorderno" class="easyui-combobox" style="width: 180px;" value=""/></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-search',plain:true"
|
||||
onclick="loadgridItems('','');">搜索</a>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
|
||||
onclick="$('#searchForm').form('clear');grid.datagrid('load',{});">重置</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div data-options="region:'center',border:false">
|
||||
<table id="grid" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
217
bin/WebRoot/jsp/quality/yieldStatistic_Procedure.jsp
Normal file
217
bin/WebRoot/jsp/quality/yieldStatistic_Procedure.jsp
Normal file
@ -0,0 +1,217 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.Date" %>
|
||||
<%@page import="java.text.SimpleDateFormat" %>
|
||||
<%@ page import="com.sipai.tools.SessionManager"%>
|
||||
<%
|
||||
SessionManager sessionManager = new SessionManager();
|
||||
%>
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<style type="text/css">
|
||||
.subtotal { font-weight: bold; }/*合计单元格样式*/
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var grid;
|
||||
var viewFun = function(id) {
|
||||
grid.datagrid('clearChecked');
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '查看检验单信息',
|
||||
width:950,
|
||||
url : ext.contextPath + '/quality/statistics_CI/viewCISub.do?id=' + id,
|
||||
buttons : [ {
|
||||
text : '关闭',
|
||||
handler : function() {
|
||||
dialog.dialog('destroy');
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var editFun = function(id) {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '编辑',
|
||||
width:950,
|
||||
url : ext.contextPath + '/quality/statistics_CI/editCISub.do?id=' + id,
|
||||
buttons : [ {
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.dosave(dialog, grid);
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var deleteFun = function(id) {
|
||||
parent.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/statistics_CI/deleteCISub.do', {id : id}, function(data) {
|
||||
if(data==1){
|
||||
top.$.messager.alert('提示','删除成功','info');
|
||||
grid.datagrid('reload');
|
||||
}else{
|
||||
top.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
var deletesFun = function() {
|
||||
var checkedItems = $('#grid').datagrid('getChecked');
|
||||
var datas="";
|
||||
$.each(checkedItems, function(index, item){
|
||||
datas+=item.id+",";
|
||||
});
|
||||
if(datas==""){
|
||||
top.$.messager.alert('提示', '请先选择要删除的记录','info');
|
||||
}else{
|
||||
top.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/statistics_CI/deletesCISub.do', {ids:datas} , function(data) {
|
||||
if(data>0){
|
||||
top.$.messager.alert('提示','成功删除'+data+'条记录','info');
|
||||
grid.datagrid('reload');
|
||||
grid.datagrid('clearChecked');
|
||||
}else{
|
||||
top.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
// 日期,在原有日期基础上,增加days天数,默认增加1天
|
||||
function addDate(date, hours) {
|
||||
if (hours == undefined || hours == '') {
|
||||
hours = 2;
|
||||
}
|
||||
var date = new Date(date);
|
||||
date.setHours(date.getHours() + hours);
|
||||
var month = date.getMonth() + 1;
|
||||
var day = date.getDate();
|
||||
var h = date.getHours();
|
||||
var mm = date.getMinutes();
|
||||
return date.getFullYear() + '-' + getFormatDate(month) + '-' + getFormatDate(day)+' '+getFormatDate(h)+':'+getFormatDate(mm);
|
||||
}
|
||||
|
||||
// 日期月份/天的显示,如果是1位数,则在前面加上'0'
|
||||
function getFormatDate(arg) {
|
||||
if (arg == undefined || arg == '') {
|
||||
return '00';
|
||||
}
|
||||
|
||||
var re = arg + '';
|
||||
if (re.length < 2) {
|
||||
re = '0' + re;
|
||||
}
|
||||
|
||||
return re;
|
||||
}
|
||||
/* function onchangedate(){
|
||||
var date=$("#nowdate").val();
|
||||
loadworkorders(date);
|
||||
} */
|
||||
function loadprocedures(){
|
||||
$("#procedureno").combobox({
|
||||
url : ext.contextPath + '/process/taskprocedure/getAllProcedurelist4Select.do',
|
||||
valueField : 'procedurecode',
|
||||
textField : 'procedurename',
|
||||
method:'get',
|
||||
panelHeight:'auto',
|
||||
onSelect: function () {
|
||||
/* var workorderno = $("#workorderno").combobox('getValue');
|
||||
$("#procedureno").combobox({
|
||||
url : ext.contextPath + '/work/workorder/getProcedurelist4Select.do?workorderno='+workorderno,
|
||||
valueField : 'id',
|
||||
textField : 'name',
|
||||
method:'get',
|
||||
panelHeight:'auto',
|
||||
onLoadSuccess: function(record){
|
||||
if($("#procedureno").combobox('getData').length>0){
|
||||
$("#procedureno").combobox('select','${sessionScope.procedure}');
|
||||
}
|
||||
},
|
||||
onSelect: function () {
|
||||
}
|
||||
}); */
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function loadgridItems(){
|
||||
var sdt = $("#sdt").val();
|
||||
var edt = $("#edt").val();
|
||||
var procedureno = $("#procedureno").combobox('getValue');
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/statistics_Yield/getProcedureYield.do?procedureno='+procedureno+'&sdt='+sdt+'&edt='+edt,
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
ctrlSelect:true,
|
||||
singleSelect: false,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{width : '80', title : '工单编号', field: 'workorderno', halign:'center' , align:'center'},
|
||||
{width : '80', title : '工单产品数', field: 'outputNum', halign:'center' , align:'center'},
|
||||
{width : '100', title : '生产投入数', field : 'inputNum', halign:'center' , align:'center'},
|
||||
{width : '80', title : '直通率', field: 'rolledYield', halign:'center' , align:'center'},
|
||||
{width : '80', title : '一次返工率', field: 'repair1Yield', halign:'center', align:'center'},
|
||||
{width : '80', title : '二次返工率', field: 'repair2Yield', halign:'center',align:'center' },
|
||||
{width : '80', title : '综合良率', field: 'comprehensiveYield', halign:'center', align:'center'},
|
||||
] ],
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
}
|
||||
$(function() {
|
||||
|
||||
loadprocedures();
|
||||
loadgridItems();
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div id="toolbar" style="display: none;">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<form id="searchForm">
|
||||
<table>
|
||||
<tr>
|
||||
<td>开始日期</td>
|
||||
<td><input id="sdt" name=sdt class="Wdate" value="${dt }" style="width: 180px;"
|
||||
onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
|
||||
></td>
|
||||
<td>结束日期</td>
|
||||
<td><input id="edt" name="edt" class="Wdate" value="${dt }" style="width: 180px;"
|
||||
onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
|
||||
></td>
|
||||
<td>工序</td>
|
||||
<td><input id="procedureno" name="procedureno" class="easyui-combobox" style="width: 180px;" value=""/></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-search',plain:true"
|
||||
onclick="loadgridItems('','');">搜索</a>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
|
||||
onclick="$('#searchForm').form('clear');grid.datagrid('load',{});">重置</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div data-options="region:'center',border:false">
|
||||
<table id="grid" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
150
bin/WebRoot/jsp/quality/yieldStatistic_TaskOrder.jsp
Normal file
150
bin/WebRoot/jsp/quality/yieldStatistic_TaskOrder.jsp
Normal file
@ -0,0 +1,150 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.Date" %>
|
||||
<%@page import="java.text.SimpleDateFormat" %>
|
||||
<%@ page import="com.sipai.tools.SessionManager"%>
|
||||
<%
|
||||
SessionManager sessionManager = new SessionManager();
|
||||
%>
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<style type="text/css">
|
||||
.subtotal { font-weight: bold; }/*合计单元格样式*/
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var grid;
|
||||
var viewFun = function(id) {
|
||||
grid.datagrid('clearChecked');
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '查看检验单信息',
|
||||
width:950,
|
||||
url : ext.contextPath + '/quality/statistics_CI/viewCISub.do?id=' + id,
|
||||
buttons : [ {
|
||||
text : '关闭',
|
||||
handler : function() {
|
||||
dialog.dialog('destroy');
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var showDetailFun = function(id) {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '详情',
|
||||
width:950,
|
||||
url : ext.contextPath + '/quality/statistics_Yield/showTaskOrderYieldDetail.do?taskorderid=' + id,
|
||||
buttons : [ {
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.dialog('destroy');;
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
function onchangedate(){
|
||||
var date=$("#nowdate").val();
|
||||
loadtaskorders(date);
|
||||
}
|
||||
function loadtaskorders(date){
|
||||
$("#taskorderno").combobox({
|
||||
url : ext.contextPath + '/plan/taskorder/getTaskOrderList4Combo.do?dt='+date,
|
||||
valueField : 'id',
|
||||
textField : 'tasklistcode',
|
||||
method:'get',
|
||||
panelHeight:'auto',
|
||||
onSelect: function () {
|
||||
/* var workorderno = $("#workorderno").combobox('getValue');
|
||||
$("#procedureno").combobox({
|
||||
url : ext.contextPath + '/work/workorder/getProcedurelist4Select.do?workorderno='+workorderno,
|
||||
valueField : 'id',
|
||||
textField : 'name',
|
||||
method:'get',
|
||||
panelHeight:'auto',
|
||||
onLoadSuccess: function(record){
|
||||
if($("#procedureno").combobox('getData').length>0){
|
||||
$("#procedureno").combobox('select','${sessionScope.procedure}');
|
||||
}
|
||||
},
|
||||
onSelect: function () {
|
||||
}
|
||||
}); */
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function loadgridItems(){
|
||||
var taskorderno = $("#taskorderno").combobox('getValue');
|
||||
var dt=$("#nowdate").val();
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/statistics_Yield/getTaskOrderYield.do?taskorderno='+taskorderno+'&dt='+dt,
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
ctrlSelect:true,
|
||||
singleSelect: false,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{width : '280', title : '任务单编号', field: 'tasklistcode', halign:'center' , align:'center'},
|
||||
{width : '180', title : '产品编号', field: 'productno', halign:'center' , align:'center'},
|
||||
{width : '80', title : '产品数量', field: 'prodamount', halign:'center' , align:'center'},
|
||||
{width : '80', title : '直通率', field: 'rolledYield', halign:'center' , align:'center'},
|
||||
{width : '100', title : '综合良率', field : 'comprehensiveYield', halign:'center' , align:'center'},
|
||||
{width : '80', title : '报废率', field: 'scrapYield', halign:'center' , align:'center'},
|
||||
] ],
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
},
|
||||
onDblClickRow: function (rowIndex, rowData) {
|
||||
var id= rowData.id;
|
||||
showDetailFun(id);
|
||||
}
|
||||
});
|
||||
}
|
||||
$(function() {
|
||||
|
||||
loadtaskorders('${dt}');
|
||||
loadgridItems();
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div id="toolbar" style="display: none;">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<form id="searchForm">
|
||||
<table>
|
||||
<tr>
|
||||
<td>日期</td>
|
||||
<td><input id="nowdate" name="nowdate" class="Wdate" value="${dt }" style="width: 180px;"
|
||||
onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',onpicked:onchangedate})"
|
||||
></td>
|
||||
<td>任务单编号</td>
|
||||
<td><input id="taskorderno" name="taskorderno" class="easyui-combobox" style="width: 280px;" value=""/></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-search',plain:true"
|
||||
onclick="loadgridItems('','');">搜索</a>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
|
||||
onclick="$('#searchForm').form('clear');grid.datagrid('load',{});">重置</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div data-options="region:'center',border:false">
|
||||
<table id="grid" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
127
bin/WebRoot/jsp/quality/yieldStatistic_TaskOrderDetail.jsp
Normal file
127
bin/WebRoot/jsp/quality/yieldStatistic_TaskOrderDetail.jsp
Normal file
@ -0,0 +1,127 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.Date" %>
|
||||
<%@page import="java.text.SimpleDateFormat" %>
|
||||
<%@ page import="com.sipai.tools.SessionManager"%>
|
||||
<%
|
||||
SessionManager sessionManager = new SessionManager();
|
||||
%>
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<style type="text/css">
|
||||
.subtotal { font-weight: bold; }/*合计单元格样式*/
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var grid;
|
||||
var viewFun = function(id) {
|
||||
grid.datagrid('clearChecked');
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '查看检验单信息',
|
||||
width:950,
|
||||
url : ext.contextPath + '/quality/statistics_CI/viewCISub.do?id=' + id,
|
||||
buttons : [ {
|
||||
text : '关闭',
|
||||
handler : function() {
|
||||
dialog.dialog('destroy');
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var editFun = function(id) {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '编辑',
|
||||
width:950,
|
||||
url : ext.contextPath + '/quality/statistics_CI/editCISub.do?id=' + id,
|
||||
buttons : [ {
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.find('iframe').get(0).contentWindow.dosave(dialog, grid);
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var deleteFun = function(id) {
|
||||
parent.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/statistics_CI/deleteCISub.do', {id : id}, function(data) {
|
||||
if(data==1){
|
||||
top.$.messager.alert('提示','删除成功','info');
|
||||
grid.datagrid('reload');
|
||||
}else{
|
||||
top.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
var deletesFun = function() {
|
||||
var checkedItems = $('#grid').datagrid('getChecked');
|
||||
var datas="";
|
||||
$.each(checkedItems, function(index, item){
|
||||
datas+=item.id+",";
|
||||
});
|
||||
if(datas==""){
|
||||
top.$.messager.alert('提示', '请先选择要删除的记录','info');
|
||||
}else{
|
||||
top.$.messager.confirm('提示', '您确定要删除此记录?', function(r) {
|
||||
if (r) {
|
||||
$.post(ext.contextPath + '/quality/statistics_CI/deletesCISub.do', {ids:datas} , function(data) {
|
||||
if(data>0){
|
||||
top.$.messager.alert('提示','成功删除'+data+'条记录','info');
|
||||
grid.datagrid('reload');
|
||||
grid.datagrid('clearChecked');
|
||||
}else{
|
||||
top.$.messager.alert('提示','删除失败','info');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
function onchangedate(){
|
||||
var date=$("#nowdate").val();
|
||||
loadtaskorders(date);
|
||||
}
|
||||
|
||||
function loadgridItems(){
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/statistics_Yield/getTaskOrderYieldDetail.do?taskorderid=${param.taskorderid}',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
ctrlSelect:true,
|
||||
singleSelect: false,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{width : '280', title : '工单编号', field: 'workorderno', halign:'center' , align:'center'},
|
||||
{width : '80', title : '直通率', field: 'rolledYield', halign:'center' , align:'center'},
|
||||
{width : '100', title : '综合良率', field : 'comprehensiveYield', halign:'center' , align:'center'},
|
||||
{width : '80', title : '报废率', field: 'scrapYield', halign:'center' , align:'center'},
|
||||
] ],
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
}
|
||||
$(function() {
|
||||
|
||||
loadgridItems();
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div data-options="region:'center',border:false">
|
||||
<table id="grid" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user