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

297 lines
7.9 KiB
Plaintext
Raw Permalink Normal View History

2026-01-16 14:13:44 +08:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<html>
<head>
<title></title>
<jsp:include page="../inc.jsp"></jsp:include>
<script type="text/javascript">
function dosave(dialog,grid) {
if ($(".form").form('validate')) {
$.post(ext.contextPath + "/material/cutterpointset/updateCutter.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 selectPoint1(cutterswitch,id){
var dialog = parent.ext.modalDialog({
title : '选择设备状态监测点位',
width: 700,
height:420,
closeOnEscape:true,
url : ext.contextPath + '/work/mpoint/showlistForSelect.do?iframeId=cutterCNCPointEdit',
toolbar:'',
buttons : [{
text : '确定',
iconCls:'icon-ok',
handler : function() {
var res=dialog.find('iframe').get(0).contentWindow.selectOK();
if(res!=null){
dialog.dialog('destroy');
$("#"+cutterswitch).textbox("setValue",res.id);
}
}
},
{
text : '取消',
iconCls:'icon-cancel',
handler : function() {
// dialog.find('iframe').get(0).contentWindow.selectCancel();
dialog.dialog('destroy');
}
}
]
});
}
$(function() {
$("#cutterswitch").textbox('textbox').bind("click", function () {
selectPoint1("cutterswitch","id");
});
});
function selectPoint2(cutteramount,id){
var dialog = parent.ext.modalDialog({
title : '选择监测点位',
width: 700,
height:420,
closeOnEscape:true,
url : ext.contextPath + '/work/mpoint/showlistForSelect.do?iframeId=cutterCNCPointEdit',
toolbar:'',
buttons : [{
text : '确定',
iconCls:'icon-ok',
handler : function() {
var res=dialog.find('iframe').get(0).contentWindow.selectOK();
if(res!=null){
dialog.dialog('destroy');
$("#"+cutteramount).textbox("setValue",res.id);
}
}
},
{
text : '取消',
iconCls:'icon-cancel',
handler : function() {
// dialog.find('iframe').get(0).contentWindow.selectCancel();
dialog.dialog('destroy');
}
}
]
});
}
$(function() {
$("#cutteramount").textbox('textbox').bind("click", function () {
selectPoint2("cutteramount","id");
});
});
function selectPoint3(firstpieceno,id){
var dialog = parent.ext.modalDialog({
title : '选择监测点位',
width: 700,
height:420,
closeOnEscape:true,
url : ext.contextPath + '/work/mpoint/showlistForSelect.do?iframeId=cutterCNCPointEdit',
toolbar:'',
buttons : [{
text : '确定',
iconCls:'icon-ok',
handler : function() {
var res=dialog.find('iframe').get(0).contentWindow.selectOK();
if(res!=null){
dialog.dialog('destroy');
$("#"+firstpieceno).textbox("setValue",res.id);
}
}
},
{
text : '取消',
iconCls:'icon-cancel',
handler : function() {
// dialog.find('iframe').get(0).contentWindow.selectCancel();
dialog.dialog('destroy');
}
}
]
});
}
$(function() {
$("#firstpieceno").textbox('textbox').bind("click", function () {
selectPoint3("firstpieceno","id");
});
});
function selectPoint4(firstamount,id){
var dialog = parent.ext.modalDialog({
title : '选择监测点位',
width: 700,
height:420,
closeOnEscape:true,
url : ext.contextPath + '/work/mpoint/showlistForSelect.do?iframeId=cutterCNCPointEdit',
toolbar:'',
buttons : [{
text : '确定',
iconCls:'icon-ok',
handler : function() {
var res=dialog.find('iframe').get(0).contentWindow.selectOK();
if(res!=null){
dialog.dialog('destroy');
$("#"+firstamount).textbox("setValue",res.id);
}
}
},
{
text : '取消',
iconCls:'icon-cancel',
handler : function() {
// dialog.find('iframe').get(0).contentWindow.selectCancel();
dialog.dialog('destroy');
}
}
]
});
}
$(function() {
$("#firstamount").textbox('textbox').bind("click", function () {
selectPoint4("firstamount","id");
});
});
function selectPoint5(autofreq,id){
var dialog = parent.ext.modalDialog({
title : '选择监测点位',
width: 700,
height:420,
closeOnEscape:true,
url : ext.contextPath + '/work/mpoint/showlistForSelect.do?iframeId=cutterCNCPointAdd',
toolbar:'',
buttons : [{
text : '确定',
iconCls:'icon-ok',
handler : function() {
var res=dialog.find('iframe').get(0).contentWindow.selectOK();
if(res!=null){
dialog.dialog('destroy');
$("#"+autofreq).textbox("setValue",res.id);
}
}
},
{
text : '取消',
iconCls:'icon-cancel',
handler : function() {
// dialog.find('iframe').get(0).contentWindow.selectCancel();
dialog.dialog('destroy');
}
}
]
});
}
$(function() {
$("#autofreq").textbox('textbox').bind("click", function () {
selectPoint5("autofreq","id");
});
});
function selectPoint6(autoamount,id){
var dialog = parent.ext.modalDialog({
title : '选择监测点位',
width: 700,
height:420,
closeOnEscape:true,
url : ext.contextPath + '/work/mpoint/showlistForSelect.do?iframeId=cutterCNCPointEdit',
toolbar:'',
buttons : [{
text : '确定',
iconCls:'icon-ok',
handler : function() {
var res=dialog.find('iframe').get(0).contentWindow.selectOK();
if(res!=null){
dialog.dialog('destroy');
$("#"+autoamount).textbox("setValue",res.id);
}
}
},
{
text : '取消',
iconCls:'icon-cancel',
handler : function() {
// dialog.find('iframe').get(0).contentWindow.selectCancel();
dialog.dialog('destroy');
}
}
]
});
}
$(function() {
$("#autoamount").textbox('textbox').bind("click", function () {
selectPoint6("autoamount","id");
});
});
</script>
</head>
<body>
<form method="post" class="form">
<input id="id" name="id" type="hidden" value="${cutterPointSet.id}"/>
<table class="table">
<tr>
<th>刀具编号</th>
<td>${cutterPointSet.cutterno }</td>
</tr>
<tr>
<th>刀补开关</th>
<td><input id="cutterswitch" name="cutterswitch" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${cutterPointSet.cutterswitch}" readonly/>
</td>
</tr>
<tr>
<th>刀补量</th>
<td><input id="cutteramount" name="cutteramount" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${cutterPointSet.firstpieceno}" readonly/>
</td>
</tr>
<tr>
<th>首补片数</th>
<td><input id="firstpieceno" name="firstpieceno" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${cutterPointSet.firstpieceno}" readonly/>
</td>
</tr>
<tr>
<th>首补量</th>
<td><input id="firstamount" name="firstamount" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${cutterPointSet.firstamount}" readonly/>
</td>
</tr>
<tr>
<th>自补频率</th>
<td><input id="autofreq" name="autofreq" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${cutterPointSet.autofreq}" readonly/>
</td>
</tr>
<tr>
<th>自补量</th>
<td>
<input id="autoamount" name="autoamount" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${cutterPointSet.autoamount}" readonly/>
</td>
</tr>
</table>
</form>
</body>
</html>