first commit
This commit is contained in:
429
bin/WebRoot/jsp/material/cutterCNCPointEdit.jsp
Normal file
429
bin/WebRoot/jsp/material/cutterCNCPointEdit.jsp
Normal file
@ -0,0 +1,429 @@
|
||||
<!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/update.do", $(".form").serialize(), function(data) {
|
||||
if (data.res == 1) {
|
||||
top.$.messager.alert('提示', "保存成功", 'info', function() {
|
||||
//刷新列表
|
||||
grid.datagrid('reload');
|
||||
dialog.dialog('destroy');
|
||||
});
|
||||
}else if(data.res == 0){
|
||||
top.$.messager.alert('提示', "保存失败", 'info');
|
||||
}else{
|
||||
top.$.messager.alert('提示', data.res, 'info');
|
||||
}
|
||||
},'json');
|
||||
}
|
||||
}
|
||||
function selectEquipmentCard(equipmentid,equipmentcode){
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '选择设备',
|
||||
width: 800,
|
||||
height:550,
|
||||
url : ext.contextPath + '/equipment/showEquipmentCardForSelect.do?iframeId=cutterCNCPointEdit',
|
||||
buttons : [{
|
||||
text : '确定',
|
||||
iconCls:'icon-ok',
|
||||
handler : function() {
|
||||
var res=dialog.find('iframe').get(0).contentWindow.selectFun();
|
||||
|
||||
if(res!=null){
|
||||
$("#"+equid).val(res.id);
|
||||
$("#"+equipmentcode).textbox('setValue',res.equipmentcardid);
|
||||
$("#equipmentname").html(res.equipmentname);
|
||||
}
|
||||
dialog.dialog('destroy');
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
text : '取消',
|
||||
iconCls:'icon-cancel',
|
||||
handler : function() {
|
||||
dialog.dialog('destroy');
|
||||
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$("#equipmentcode").textbox('textbox').bind("click", function () {
|
||||
selectEquipmentCard("equipmentid","equipmentcode");
|
||||
});
|
||||
});
|
||||
|
||||
function selectPoint1(equstatus,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');
|
||||
$("#"+equstatus).textbox("setValue",res.id);
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
text : '取消',
|
||||
iconCls:'icon-cancel',
|
||||
handler : function() {
|
||||
// dialog.find('iframe').get(0).contentWindow.selectCancel();
|
||||
dialog.dialog('destroy');
|
||||
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
$(function() {
|
||||
$("#equstatus").textbox('textbox').bind("click", function () {
|
||||
selectPoint1("equstatus","id");
|
||||
});
|
||||
});
|
||||
function selectPoint2(equrunmode,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');
|
||||
$("#"+equrunmode).textbox("setValue",res.id);
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
text : '取消',
|
||||
iconCls:'icon-cancel',
|
||||
handler : function() {
|
||||
// dialog.find('iframe').get(0).contentWindow.selectCancel();
|
||||
dialog.dialog('destroy');
|
||||
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
$(function() {
|
||||
$("#equrunmode").textbox('textbox').bind("click", function () {
|
||||
selectPoint2("equrunmode","id");
|
||||
});
|
||||
});
|
||||
function selectPoint3(equgospeed,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');
|
||||
$("#"+equgospeed).textbox("setValue",res.id);
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
text : '取消',
|
||||
iconCls:'icon-cancel',
|
||||
handler : function() {
|
||||
// dialog.find('iframe').get(0).contentWindow.selectCancel();
|
||||
dialog.dialog('destroy');
|
||||
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
$(function() {
|
||||
$("#equgospeed").textbox('textbox').bind("click", function () {
|
||||
selectPoint3("equgospeed","id");
|
||||
});
|
||||
});
|
||||
function selectPoint4(equcaspeed,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');
|
||||
$("#"+equcaspeed).textbox("setValue",res.id);
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
text : '取消',
|
||||
iconCls:'icon-cancel',
|
||||
handler : function() {
|
||||
// dialog.find('iframe').get(0).contentWindow.selectCancel();
|
||||
dialog.dialog('destroy');
|
||||
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
$(function() {
|
||||
$("#equcaspeed").textbox('textbox').bind("click", function () {
|
||||
selectPoint4("equcaspeed","id");
|
||||
});
|
||||
});
|
||||
function selectPoint5(processcumno,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');
|
||||
$("#"+processcumno).textbox("setValue",res.id);
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
text : '取消',
|
||||
iconCls:'icon-cancel',
|
||||
handler : function() {
|
||||
// dialog.find('iframe').get(0).contentWindow.selectCancel();
|
||||
dialog.dialog('destroy');
|
||||
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
$(function() {
|
||||
$("#processcumno").textbox('textbox').bind("click", function () {
|
||||
selectPoint5("processcumno","id");
|
||||
});
|
||||
});
|
||||
function selectPoint6(mechandno,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');
|
||||
$("#"+mechandno).textbox("setValue",res.id);
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
text : '取消',
|
||||
iconCls:'icon-cancel',
|
||||
handler : function() {
|
||||
// dialog.find('iframe').get(0).contentWindow.selectCancel();
|
||||
dialog.dialog('destroy');
|
||||
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
$(function() {
|
||||
$("#mechandno").textbox('textbox').bind("click", function () {
|
||||
selectPoint6("mechandno","id");
|
||||
});
|
||||
});
|
||||
|
||||
function selectcutterlossno(cutterlossno,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');
|
||||
$("#"+cutterlossno).textbox("setValue",res.id);
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
text : '取消',
|
||||
iconCls:'icon-cancel',
|
||||
handler : function() {
|
||||
// dialog.find('iframe').get(0).contentWindow.selectCancel();
|
||||
dialog.dialog('destroy');
|
||||
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
$(function() {
|
||||
$("#cutterlossno").textbox('textbox').bind("click", function () {
|
||||
selectPoint6("cutterlossno","id");
|
||||
});
|
||||
});
|
||||
function selectcutterlossset(cutterlossset,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');
|
||||
$("#"+cutterlossset).textbox("setValue",res.id);
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
text : '取消',
|
||||
iconCls:'icon-cancel',
|
||||
handler : function() {
|
||||
// dialog.find('iframe').get(0).contentWindow.selectCancel();
|
||||
dialog.dialog('destroy');
|
||||
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
$(function() {
|
||||
$("#cutterlossset").textbox('textbox').bind("click", function () {
|
||||
selectPoint6("cutterlossset","id");
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form method="post" class="form">
|
||||
<input id="id" name="id" type="hidden" value="${cutterCNCPoint.id}"/>
|
||||
<input id="equid" name="equid" type="hidden" value="${cutterCNCPoint.equid}"/>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>设备编号</th>
|
||||
<td><input id="equipmentcode" name="equipmentcode" class="easyui-textbox"
|
||||
data-options="required:true,validType:'isBlank',prompt:'单击选择'" value="${cutterCNCPoint.equipmentcardid }" readonly/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>设备名称</th>
|
||||
<td>${cutterCNCPoint.equipmentname}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>设备状态</th>
|
||||
<td><input id="equstatus" name="equstatus" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${cutterCNCPoint.equstatus}" readonly/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>运行模式</th>
|
||||
<td><input id="equrunmode" name="equrunmode" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${cutterCNCPoint.equrunmode}" readonly/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>G1进给速度</th>
|
||||
<td><input id="equgospeed" name="equgospeed" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${cutterCNCPoint.equgospeed}" readonly/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>主轴转速</th>
|
||||
<td><input id="equcaspeed" name="equcaspeed" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${cutterCNCPoint.equcaspeed}" readonly/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>加工累计数</th>
|
||||
<td><input id="processcumno" name="processcumno" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${cutterCNCPoint.processcumno}" readonly/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>机械手计数</th>
|
||||
<td>
|
||||
<input id="mechandno" name="mechandno" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${cutterCNCPoint.mechandno}" readonly/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>刀损计数</th>
|
||||
<td>
|
||||
<input id="cutterlossno" name="cutterlossno" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${cutterCNCPoint.cutterlossno}" readonly/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>刀损设定</th>
|
||||
<td>
|
||||
<input id="cutterlossset" name="cutterlossset" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${cutterCNCPoint.cutterlossset}" readonly/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user