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

104 lines
3.9 KiB
Plaintext
Raw Normal View History

2026-01-16 14:13:44 +08:00
<%@ 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 viewFun = function(id,equid) {
var dialog = parent.ext.modalDialog({
title : '查看刀具信息',
width:1000,
height:600,
url : ext.contextPath + '/material/cuttercncinfo/cutterDetailInfo.do?equid=' + equid+'&id='+id
});
};
var equid = "${equid}";//设备id号
var showSpeedFun = function() {
$("#rightCutterSpeed").attr("src",ext.contextPath+"/material/cuttercncinfo/cutterSpeedInfo.do?equid="+equid);
};
var showStatusFun = function() {
$("#leftCutterStatus").attr("src",ext.contextPath+"/material/cuttercncinfo/cutterStatusInfo.do?equid="+equid);
};
$(function() {
showStatusFun();
showSpeedFun();
grid = $('#grid').datagrid({
title : '',
url : ext.contextPath + '/material/cuttercncinfo/getlist.do?equid='+equid,
striped : true,
rownumbers : true,
pagination : true,
singleSelect: false,
ctrlSelect: true,
selectOnCheck: false,
checkOnSelect: false,
idField : 'id',
pageSize : 50,
pageList : [ 20, 50, 100],
columns : [ [
{width : '100', title : '刀具编号', field : 'cutterno', sortable : true, align:'center',halign:'center'},
{width : '110', title : '刀补开关', field : 'cutterswitchvalue', halign:'center', align:'center', formatter : function(value, row) {
var str = '';
if(value == 1)
{
str += '<img class="iconImg ext-icon-tick" title="开" onclick="changeSwitchFun(\''+row.id+'\');"/>';
}
else
{
str += '<img class="iconImg ext-icon-cancel" title="关" onclick="changeSwitchFun(\''+row.id+'\');"/>';
}
return str;
} },
{width : '120', title : '刀补量', field : 'cutteramountvalue', align:'center', halign:'center'},
{width : '100', title : '首补片数', field : 'firstpiecenovalue', align:'center',halign:'center'},
{width : '100', title : '首补量', field : 'firstamountvalue', align:'center', halign:'center'},
{width : '110', title : '自补频率', field : 'autofreqvalue', align:'center', halign:'center'},
{width : '110', title : '自补量', field : 'autoamountvalue', align:'center',halign:'center'},
{title : '操作', field : 'action', width : '100', halign:'center', align:'center', formatter : function(value, row) {
var str = '';
<%if (sessionManager.havePermission(session,"material/cutterpointset/edit.do")) {%>
str += '<img class="iconImg ext-icon-table_edit" title="编辑" onclick="editFun(\''+row.id+'\');"/>';
<%}%>
return str;
}
}
] ],
onDblClickRow: function(index, row){
viewFun(row.id,equid);
},
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="mainDiv">
<div id="upDiv" style="height:300px">
<div id="statusDiv" style="float:left;height:100%;width:30%">
<iframe id="leftCutterStatus" src="" allowTransparency="true" style="border: 0; width: 100%; height: 100%;"
frameBorder="0" scrolling="auto"></iframe>
</div>
<div id="speedDiv" style="float:right;height:100%;width:70%">
<iframe id="rightCutterSpeed" src="" allowTransparency="true" style="border: 0; width: 100%; height: 100%;"
frameBorder="0" scrolling="auto"></iframe>
</div>
</div>
<div id="pool" class="easyui-panel" title="CNC刀具(双击显示曲线图)" style="float:left;width:980px;height:340px;padding:10px;background:#fafafa;">
<table id="grid" data-options="fit:true,border:false"></table>
</div>
</div>
</body>
</html>