<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
<!DOCTYPE html>
|
<html>
|
<head>
|
<title>数据字典(设备点检)</title>
|
<jsp:include page="../../../initlib/initAll.jsp"></jsp:include>
|
<script type="text/javascript" src="${pageContext.request.contextPath }/pms/pub/combobox/comboboxUtil.js"
|
charset="utf-8"></script>
|
<script type="text/javascript">
|
var twoGrid = null;
|
$(function () {
|
twoGrid = $('#twoGrid').datagrid({
|
rownumbers: true,
|
idField: 'id',
|
fit: true,
|
singleSelect: true,
|
fitColumns: false,
|
border: false,
|
striped: true,
|
nowrap: true,
|
remoteSort: false,
|
checkOnSelect: false,
|
selectOnCheck: false,
|
columns: [[{
|
field: 'id',
|
title: '二级ID',
|
checkbox: true
|
}, {
|
field: 'num',
|
title: '序号',
|
width: 50,
|
align: 'center',
|
sortable: true
|
}, {
|
field: 'systemName',
|
title: '系统名称',
|
width: 80,
|
align: 'center'
|
}, {
|
field: 'partsName',
|
title: '部件名称',
|
width: 70,
|
align: 'center'
|
}, {
|
field: 'sparePartsname',
|
title: '零件名称',
|
width: 70,
|
align: 'center'
|
}, {
|
field: 'fixedPoints',
|
title: '点数',
|
width: 50,
|
align: 'center',
|
sortable: true
|
}, {
|
field: 'shiftId',
|
title: '班次',
|
width: 50,
|
align: 'center',
|
sortable: false,
|
formatter: function (value, row, index) {
|
var str;
|
if (value == 0) {
|
str = "全部";
|
} else if (value == 1) {
|
str = "早班";
|
} else if (value == 2) {
|
str = "中班";
|
} else {
|
str = "晚班";
|
}
|
return str;
|
}
|
}, {
|
field: 'importance',
|
title: '重要程度',
|
width: 70,
|
align: 'center',
|
sortable: true
|
}, {
|
field: 'safetyWarning',
|
title: '安全提示',
|
width: 70,
|
align: 'center'
|
}, {
|
field: 'checkContents',
|
title: '点检内容',
|
width: 70,
|
align: 'center'
|
}, {
|
field: 'cycle',
|
title: '周期',
|
width: 50,
|
align: 'center'
|
}, {
|
field: 'deviceStatus',
|
title: '设备状态',
|
width: 55,
|
align: 'center'
|
}, {
|
field: 'checkMethod',
|
title: '点检方法',
|
width: 55,
|
align: 'center'
|
}, {
|
field: 'judgementStandard',
|
title: '判定标准',
|
width: 55,
|
align: 'center'
|
}, {
|
field: 'brk',
|
title: '备用字段',
|
width: 70,
|
align: 'center'
|
}, {
|
field: 'mainMethod',
|
title: '维护工具/方法',
|
width: 100,
|
align: 'center'
|
}, {
|
field: 'mainStandards',
|
title: '维护标准',
|
width: 55,
|
align: 'center'
|
}, {
|
field: 'spePerson',
|
title: '责任人',
|
width: 100,
|
align: 'center'
|
}, {
|
field: 'recMeasures',
|
title: '建议措施',
|
width: 100,
|
align: 'center'
|
}, {
|
field: 'des',
|
title: '备注',
|
width: 100,
|
align: 'center'
|
}, {
|
field: 'enable',
|
title: '是否启用',
|
align: 'center',
|
width: 70,
|
formatter: function (value, row, index) {
|
return value == '1' ? '<span style="color:green;background-color:white">启用<span>' : '<span style="color:red">禁用<span>';
|
}
|
}, {
|
field: 'createUserName',
|
title: '创建人姓名',
|
align: 'center',
|
width: 70,
|
sortable: true,
|
hidden: 'true'
|
}, {
|
field: 'createTime',
|
title: '创建时间',
|
align: 'center',
|
width: 150,
|
sortable: true,
|
hidden: 'true'
|
}, {
|
field: 'updateUserName',
|
title: '修改人姓名',
|
align: 'center',
|
width: 70,
|
sortable: true,
|
hidden: 'true'
|
}, {
|
field: 'lastUpdateTime',
|
title: '最后修改时间',
|
align: 'center',
|
width: 130,
|
sortable: true,
|
}]],
|
toolbar: '#typeToolbar',
|
onLoadSuccess: function () {
|
$(this).datagrid('tooltip');
|
},
|
onRowContextMenu: function (e, rowIndex, rowData) {
|
e.preventDefault();
|
$(this).datagrid('unselectAll').datagrid('uncheckAll');
|
$(this).datagrid('selectRow', rowIndex);
|
$('#typeMenu').menu('show', {
|
left: e.pageX - 10,
|
top: e.pageY - 5
|
});
|
}
|
});
|
});
|
|
/* 点击主菜单,查询相应的数据 */
|
function queryMdTypeByCategory(id) {
|
//重新加载datagrid的数据
|
//$("#twoGrid").datagrid('reload');
|
twoGrid.datagrid({
|
url: "${pageContext.request.contextPath}/pms/eqmInspection/queryInspectionById.do?maintainaceType=5&id=" + id,
|
queryParams: $("#typeSearchForm").form("getData")
|
});
|
|
}
|
|
//查询数据
|
function queryMdType() {
|
var row = categoryGrid.datagrid('getSelected');
|
if (row == null) {
|
queryMdTypeByCategory("");
|
} else {
|
queryMdTypeByCategory(row.id);
|
}
|
}
|
|
//删除数据
|
function deleteMdType() {
|
//按钮是否点击标志(默认为true:可被点击)
|
var isClick = true;
|
var row = twoGrid.datagrid('getSelected');
|
parent.$.messager.confirm('操作提示', '您是否要删除当前数据?', function (b) {
|
if (b) {
|
//未点击过则执行里面的内容
|
if (isClick) {
|
//改变为点击无效状态
|
isClick = false;
|
$.post('${pageContext.request.contextPath}/pms/eqmInspection/deleteInspection.do', {
|
id: row.id
|
}, function (json) {
|
//恢复点击有效状态
|
isClick = true;
|
if (json.success) {
|
$.messager.show('提示', json.msg, 'info');
|
queryMdType();
|
} else {
|
$.messager.show('提示', json.msg, 'error');
|
}
|
}, 'JSON');
|
}
|
}
|
});
|
}
|
|
/**
|
* 批量删除二级数据
|
*/
|
function beatchDeleteMdType() {
|
//按钮是否点击标志(默认为true:可被点击)
|
var isClick = true;
|
var rows = twoGrid.datagrid('getChecked');
|
var ids = [];
|
console.info(rows);
|
|
if (rows.length > 0) {
|
parent.$.messager.confirm('确认', '请确认批量删除当前数据?', function (r) {
|
if (r) {
|
for (var i = 0; i < rows.length; i++) {
|
ids.push(rows[i].id);
|
}
|
console.info(ids);
|
parent.$.messager.progress({
|
title: '提示',
|
text: '数据处理中,请稍后....'
|
});
|
//未点击过则执行里面的内容
|
if (isClick) {
|
//改变为点击无效状态
|
isClick = false;
|
$.post('${pageContext.request.contextPath}/pms/eqmInspection/batchDeleteInspection.do',
|
{
|
ids: ids.join(','),
|
|
}, function (json) {
|
//恢复点击有效状态
|
isClick = true;
|
parent.$.messager.progress('close');
|
if (json.success) {
|
$.messager.show('提示', json.msg, 'info');
|
queryMdType();
|
} else {
|
$.messager.show('提示', json.msg, 'info');
|
}
|
}, "JSON");
|
}
|
}
|
});
|
} else {
|
parent.$.messager.show({
|
title: '提示',
|
msg: '请勾选要需要操作的数据!'
|
});
|
}
|
}
|
|
//跳转到保养添加页面
|
function gotoLubiCycle() {
|
//按钮是否点击标志(默认为true:可被点击)
|
var isClick = true;
|
var row = categoryGrid.datagrid('getSelected');
|
if (row != null) {
|
var dialog = parent.$.modalDialog({
|
title: '保养明细数据添加',
|
width: 720,
|
height: 600,
|
href: '${pageContext.request.contextPath}/pms/eqmInspection/goToAddInspection.do?cateid=' + row.id,
|
buttons: [{
|
text: '保存',
|
iconCls: 'icon-standard-disk',
|
handler: function () {
|
var f = dialog.find("#form");
|
if (f.form("validate")) {
|
//未点击过则执行里面的内容
|
if (isClick) {
|
//改变为点击无效状态
|
isClick = false;
|
$.post("${pageContext.request.contextPath}/pms/eqmInspection/addInspection.do", f.form("getData"), function (json) {
|
//恢复点击有效状态
|
isClick = true;
|
if (json.success) {
|
$.messager.show('提示', json.msg, 'info');
|
dialog.dialog('destroy');
|
queryMdType();
|
} else {
|
$.messager.show('提示', json.msg, 'error');
|
}
|
}, "JSON");
|
}
|
}
|
}
|
}]
|
});
|
} else {
|
$.messager.show('提示', "请先选择数据!", 'error');
|
}
|
}
|
|
//跳转到编辑页面
|
function gotoTypeEdit() {
|
//按钮是否点击标志(默认为true:可被点击)
|
var isClick = true;
|
var dialog = parent.$.modalDialog({
|
title: '数据编辑',
|
width: 720,
|
height: 600,
|
href: '${pageContext.request.contextPath}/pms/eqmInspection/goToEditInspection.do?id=' + twoGrid.datagrid('getSelected').id,
|
buttons: [{
|
text: '保存',
|
iconCls: 'icon-standard-disk',
|
handler: function () {
|
var f = dialog.find("#form");
|
if (f.form("validate")) {
|
//未点击过则执行里面的内容
|
if (isClick) {
|
//改变为点击无效状态
|
isClick = false;
|
$.post("${pageContext.request.contextPath}/pms/eqmInspection/editInspection.do", f.form("getData"), function (json) {
|
//恢复点击有效状态
|
isClick = true;
|
if (json.success) {
|
$.messager.show('提示', json.msg, 'info');
|
dialog.dialog('destroy');
|
queryMdType();
|
} else {
|
$.messager.show('提示', json.msg, 'error');
|
}
|
}, "JSON");
|
}
|
}
|
}
|
}]
|
});
|
}
|
|
var categoryGrid = null;
|
$(function () {
|
|
categoryGrid = $('#categoryGrid').datagrid({
|
fit: true,
|
fitColumns: true,//fitColumns= true就会自动适应宽度(无滚动条)
|
border: false,
|
pagination: true,
|
idField: 'id',
|
striped: true,
|
remoteSort: false,
|
pageSize: 20,
|
pageList: [10, 20, 30, 40, 50],
|
sortName: 'id',
|
sortOrder: 'desc',
|
singleSelect: true,
|
rownumbers: true,
|
checkOnSelect: false,
|
selectOnCheck: false,
|
nowrap: true,
|
showPageList: false,
|
columns: [[{
|
field: 'id',
|
title: '一级ID',
|
checkbox: true
|
}, {
|
field: 'name',
|
title: '一级名称',
|
width: 170,
|
align: 'center'
|
}, {
|
field: 'des',
|
title: '描述',
|
width: 150,
|
align: 'center'
|
}/* , {
|
field : 'enable',
|
title : '是否启用',
|
align:'center',
|
width : 50,
|
formatter : function(value, row, index) {
|
return value==1?'<span style="color:green;background-color:white">启用<span>':'<span style="color:red">禁用<span>';
|
}
|
} */, {
|
field: 'createUserName',
|
title: '创建人姓名',
|
align: 'center',
|
width: 70,
|
sortable: true,
|
hidden: 'true'
|
}, {
|
field: 'createUserTime',
|
title: '创建时间',
|
align: 'center',
|
width: 150,
|
sortable: true,
|
hidden: 'true'
|
}, {
|
field: 'updateUserName',
|
title: '修改人姓名',
|
align: 'center',
|
width: 70,
|
sortable: true,
|
hidden: 'true'
|
}, {
|
field: 'updateUserTime',
|
title: '最后修改时间',
|
align: 'center',
|
width: 130,
|
sortable: true,
|
hidden: 'true'
|
}]],
|
toolbar: '#categoryToolbar',
|
url: "${pageContext.request.contextPath}/pms/sys/eqpcategory/queryMdCategory.do?maintainaceType=5",
|
queryParams: $("#categroyForm").form("getData"),
|
onLoadSuccess: function () {
|
$(this).datagrid('tooltip');
|
},
|
onRowContextMenu: function (e, rowIndex, rowData) {
|
e.preventDefault();
|
$(this).datagrid('unselectAll').datagrid('uncheckAll');
|
$(this).datagrid('selectRow', rowIndex);
|
$('#categoryMenu').menu('show', {
|
left: e.pageX - 10,
|
top: e.pageY - 5
|
});
|
},
|
onClickRow: function (rowIndex, rowData) {
|
queryMdTypeByCategory(rowData.id);
|
}
|
});
|
});
|
|
/**
|
* 查询数据
|
*/
|
function queryMdCategory() {
|
categoryGrid.datagrid({
|
url: "${pageContext.request.contextPath}/pms/sys/eqpcategory/queryMdCategory.do?maintainaceType=5",
|
queryParams: $("#categroyForm").form("getData")
|
});
|
}
|
|
function deleteCategory() {
|
//按钮是否点击标志(默认为true:可被点击)
|
var isClick = true;
|
var row = categoryGrid.datagrid('getSelected');
|
parent.$.messager.confirm('操作提示', '您是否要删除当前数据?', function (b) {
|
if (b) {
|
//未点击过则执行里面的内容
|
if (isClick) {
|
//改变为点击无效状态
|
isClick = false;
|
$.post('${pageContext.request.contextPath}/pms/sys/eqpcategory/deleteMdCategory.do', {
|
id: row.id
|
}, function (json) {
|
//恢复点击有效状态
|
isClick = true;
|
if (json.success) {
|
$.messager.show('提示', json.msg, 'info');
|
queryMdCategory();
|
} else {
|
$.messager.show('提示', json.msg, 'error');
|
}
|
}, 'JSON');
|
}
|
}
|
});
|
}
|
|
/**
|
* 批量删除一级数据
|
*/
|
function beatchDeleteCategory() {
|
//按钮是否点击标志(默认为true:可被点击)
|
var isClick = true;
|
var rows = categoryGrid.datagrid('getChecked');
|
var ids = [];
|
|
if (rows.length > 0) {
|
parent.$.messager.confirm('确认', '请确认批量删除当前数据?', function (r) {
|
if (r) {
|
for (var i = 0; i < rows.length; i++) {
|
ids.push(rows[i].id);
|
}
|
parent.$.messager.progress({
|
title: '提示',
|
text: '数据处理中,请稍后....'
|
});
|
//未点击过则执行里面的内容
|
if (isClick) {
|
//改变为点击无效状态
|
isClick = false;
|
$.post('${pageContext.request.contextPath}/pms/sys/eqpcategory/batchDeleteMdCategory.do',
|
{
|
ids: ids.join(','),
|
|
}, function (json) {
|
//恢复点击有效状态
|
isClick = true;
|
parent.$.messager.progress('close');
|
if (json.success) {
|
$.messager.show('提示', json.msg, 'info');
|
queryMdCategory();
|
} else {
|
$.messager.show('提示', json.msg, 'info');
|
}
|
}, "JSON");
|
}
|
}
|
});
|
} else {
|
parent.$.messager.show({
|
title: '提示',
|
msg: '请勾选要需要操作的数据!'
|
});
|
}
|
}
|
|
function gotoCategoryAdd() {
|
//按钮是否点击标志(默认为true:可被点击)
|
var isClick = true;
|
var dialog = parent.$.modalDialog({
|
title: '添加',
|
width: 620,
|
height: 290,
|
href: '${pageContext.request.contextPath}/pms/sys/eqpcategory/addMdCategoryJsp.do',
|
buttons: [{
|
text: '保存',
|
iconCls: 'icon-standard-disk',
|
handler: function () {
|
var f = dialog.find("#formcategory");
|
if (f.form("validate")) {
|
//未点击过则执行里面的内容
|
if (isClick) {
|
//改变为点击无效状态
|
isClick = false;
|
$.post("${pageContext.request.contextPath}/pms/sys/eqpcategory/addMdCategory.do", f.form("getData"), function (json) {
|
//恢复点击有效状态
|
isClick = true;
|
if (json.success) {
|
$.messager.show('提示', json.msg, 'info');
|
dialog.dialog('destroy');
|
queryMdCategory();
|
} else {
|
$.messager.show('提示', json.msg, 'error');
|
}
|
}, "JSON");
|
}
|
}
|
}
|
}]
|
});
|
}
|
|
function gotoCategoryEdit() {
|
//按钮是否点击标志(默认为true:可被点击)
|
var isClick = true;
|
var dialog = parent.$.modalDialog({
|
title: '数据编辑',
|
width: 620,
|
height: 290,
|
href: '${pageContext.request.contextPath}/pms/sys/eqpcategory/gotoMdCategoryJsp.do?id=' + categoryGrid.datagrid('getSelected').id,
|
buttons: [{
|
text: '修改',
|
iconCls: 'icon-standard-disk',
|
handler: function () {
|
var f = dialog.find("#form");
|
if (f.form("validate")) {
|
//未点击过则执行里面的内容
|
if (isClick) {
|
//改变为点击无效状态
|
isClick = false;
|
$.post("${pageContext.request.contextPath}/pms/sys/eqpcategory/updatecategory.do", f.form("getData"), function (json) {
|
//恢复点击有效状态
|
isClick = true;
|
if (json.success) {
|
$.messager.show('提示', json.msg, 'info');
|
dialog.dialog('destroy');
|
queryMdCategory();
|
} else {
|
$.messager.show('提示', json.msg, 'error');
|
}
|
}, "JSON");
|
}
|
}
|
}
|
}]
|
});
|
}
|
|
/**清空*/
|
function cleanOneQuery() {
|
$('#categroyForm input').val(null);
|
}
|
|
/**清空*/
|
function cleanTwoQuery() {
|
$('#typeSearchForm input').val(null);
|
}
|
|
/**一级上传图片**/
|
function uploadImages() {
|
var row = categoryGrid.datagrid('getSelected');
|
if (row != null) {
|
var dialog = parent.$.modalDialog({
|
title: '文件上传',
|
width: 620,
|
height: 450,
|
href: '${pageContext.request.contextPath}/pms/sys/eqpcategory/uploadJsp.do',
|
buttons: [{
|
text: '保存',
|
iconCls: 'icon-standard-disk',
|
handler: function () {
|
var f = dialog.find("#form");
|
if (f.form("validate")) {
|
var isTempUpload = f.form("getData").isUploadFile;//读取隐藏域中的值
|
if (isTempUpload == "true") {//表示临时 上传文件了
|
$.post("${pageContext.request.contextPath}/pms/sys/eqpcategory/updateFile.do?id=" + row.id, f.form("getData"), function (json) {
|
if (json.success) {
|
//queryProManage(rowSelected.id);
|
$.messager.show('提示', json.msg, 'info');
|
dialog.dialog('destroy');
|
queryMdCategory();//重新查询 父类
|
queryMdType();//重新查询下 子类
|
} else {
|
$.messager.show('提示', json.msg, 'error');
|
}
|
}, "JSON");
|
} else {
|
alert('请选择至少一个文件进行上传!');
|
}
|
}
|
}
|
}]
|
});
|
} else {
|
$.messager.show('提示', "请先选择一行数据!", 'info');
|
}
|
}
|
|
//一级预览图片
|
function yjLookImages() {
|
//这个 可以先查询出 图片的上传路径 通过传值的方式 让 hotspot.jsp 加载图片
|
var row = categoryGrid.datagrid('getSelected');
|
if (row == null || row == '') {
|
$.messager.show('提示', "请先选择一行数据!", 'info');
|
return;
|
}
|
if (row.uploadUrl != null && row.uploadUrl != '') {
|
if (row != null) {
|
var dialog = parent.$.modalDialog({
|
title: '预览',
|
width: 820,
|
height: 750,
|
href: '${pageContext.request.contextPath}/pms/sys/eqpcategory/lookMdCategoryJsp.do?uploadUrl=' + row.uploadUrl
|
});
|
} else {
|
$.messager.show('提示', "请先选择一行数据!", 'info');
|
}
|
} else {
|
$.messager.show('提示', "请先上传图片!", 'info');
|
}
|
}
|
|
function lookImages() {
|
var oneRow = categoryGrid.datagrid('getSelected');
|
if (oneRow == null || oneRow == '') {
|
$.messager.show('提示', "请先选择一行数据!", 'info');
|
return;
|
}
|
if (oneRow.uploadUrl != null && oneRow.uploadUrl != '') {
|
var twoRow = twoGrid.datagrid('getSelected');
|
var contextPath = "${pageContext.request.contextPath}";
|
if (twoRow != null) {
|
//var url ='${pageContext.request.contextPath}/pms/sys/datadict/imagesHotspot/hotspot.jsp?uploadUrl='+oneRow.uploadUrl
|
// +"&twoRowId="+twoRow.id+"&contextPath="+contextPath;
|
var url = '${pageContext.request.contextPath}/pms/sys/eqptype/gotoHotspotJsp.do?uploadUrl=' + oneRow.uploadUrl
|
+ "&twoRowId=" + twoRow.id + "&contextPath=" + contextPath;
|
|
var iWidth = 1024; //弹出窗口的宽度;
|
var iHeight = 800; //弹出窗口的高度;
|
var iTop = (window.screen.availHeight - 30 - iHeight) / 2; //获得窗口的垂直位置;
|
var iLeft = (window.screen.availWidth - 10 - iWidth) / 2; //获得窗口的水平位置;
|
window.open(url, "", "toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no,height=" + iHeight + ", width=" + iWidth + ", top=" + iTop + ", left=" + iLeft);
|
} else {
|
$.messager.show('提示', "请先选择一行数据!", 'info');
|
}
|
} else {
|
$.messager.show('提示', "请先上传图片!", 'info');
|
}
|
}
|
|
//批量导入
|
function inputExcelDatas() {
|
dialog = parent.$.modalDialog({
|
title: '批量导入',
|
width: 700,
|
height: 350,
|
href: '${pageContext.request.contextPath}/pms/sys/eqpcategory/DatadictinputExcel.do',
|
//href : '${pageContext.request.contextPath}/pms/sys/datadict/iframPage.jsp',
|
});
|
}
|
|
|
</script>
|
</head>
|
<body class="easyui-layout" data-options="fit : true,border : false">
|
<div data-options="region:'west',border:true,split:false,title:'数据字典【可单击表格】'" style="width: 400px;">
|
<div id="categoryToolbar" style="display: none;">
|
<form id="categroyForm" style="margin:4px 0px 0px 0px">
|
<div class="topTool">
|
<fieldset>
|
<!-- <div >
|
<span class="label">一级编号:</span>
|
<span><input type="text" name="code" class="easyui-validatebox " data-options="prompt: '请输入数据编号'"/></span>
|
</div> -->
|
<div>
|
<span class="label">一级名称:</span>
|
<input type="text" name="name" class="easyui-validatebox "
|
data-options="prompt: '请输入数据名称',width:120"/>
|
</div>
|
<div>
|
<span class="label">设备类型:</span>
|
<select name="eqpType"
|
class="easyui-combobox"
|
data-options="panelHeight:'auto',editable:false,width:120">
|
<!-- 1-月 2-周 3-日 -->
|
<option value="">全部</option>
|
<option value="卷烟机">卷烟机</option>
|
<option value="包装机">包装机</option>
|
<option value="装封箱机">装封箱机</option>
|
<option value="发射机">发射机</option>
|
<option value="成型机">成型机</option>
|
</select>
|
</div>
|
<div>
|
<span class="label">点检周期:</span>
|
<select name="cycleType"
|
class="easyui-combobox"
|
data-options="panelHeight:'auto',editable:false,width:120">
|
<!-- 1-月 2-周 3-日 -->
|
<option value="">全部</option>
|
<option value="1">月</option>
|
<option value="2">周</option>
|
<option value="3">日</option>
|
</select>
|
</div>
|
</fieldset>
|
</div>
|
</form>
|
<div class="easyui-toolbar" style="width:400px;">
|
<c:if test="${not empty sessionInfo.resourcesMap['/pms/sys/eqpcategory/queryMdCategory.do/djsj']}">
|
<a onclick="queryMdCategory()" href="javascript:void(0);" class="easyui-linkbutton"
|
data-options="plain:true,iconCls:'icon-standard-zoom'">查询</a>
|
</c:if>
|
<c:if test="${not empty sessionInfo.resourcesMap['/pms/sys/eqpcategory/addMdCategoryJsp.do/djsj']}">
|
<a onclick="gotoCategoryAdd();" href="javascript:void(0);" class="easyui-linkbutton"
|
data-options="plain:true,iconCls:'icon-standard-plugin-add'">点检新增</a>
|
</c:if>
|
<c:if test="${not empty sessionInfo.resourcesMap['/pms/sys/eqpcategory/batchDeleteMdCategory.do/djsj']}">
|
<a onclick="beatchDeleteCategory();" href="javascript:void(0);" class="easyui-linkbutton"
|
data-options="iconCls:'icon-standard-cancel',plain:true">批量删除</a>
|
</c:if>
|
</div>
|
</div>
|
<table id="categoryGrid"></table>
|
</div>
|
<div id="categoryMenu" class="easyui-menu" style="width: 80px; display: none;">
|
<c:if test="${not empty sessionInfo.resourcesMap['/pms/sys/eqpcategory/gotoMdCategoryJsp.do/djsj']}">
|
<div onclick="gotoCategoryEdit()" data-options="iconCls:'icon-standard-plugin-add'">编辑</div>
|
</c:if>
|
<c:if test="${not empty sessionInfo.resourcesMap['/pms/sys/eqpcategory/deleteMdCategory.do/djsj']}">
|
<div onclick="deleteCategory();" data-options="iconCls:'icon-standard-plugin-delete'">删除</div>
|
</c:if>
|
</div>
|
|
|
<div data-options="region:'center',border:true,title:'二级数据'">
|
<div id="typeToolbar" style="display: none;">
|
<form id="typeSearchForm" style="margin:4px 0px 0px 0px">
|
<div class="topTool">
|
<fieldset>
|
<div>
|
<span class="label">责任人:</span>
|
<span><input type="text" name="spePerson" id="spePerson" class="easyui-validatebox "
|
data-options="prompt: '请输入责任人',width:120"/></span>
|
</div>
|
<div>
|
<span class="label">系统名称:</span>
|
<input type="text" name="systemName" id="systemName" class="easyui-validatebox "
|
data-options="prompt: '请输入系统名称',width:120"/>
|
</div>
|
<div>
|
<span class="label">班次:</span>
|
<input type="text" name="code" id="code" class="easyui-combobox " value="4" data-options="prompt: '请选择班次',width:120,
|
valueField: 'value',
|
textField: 'text',
|
data: [{
|
text: '全部',
|
value: 0
|
},{
|
text: '早班',
|
value: 1
|
},{
|
text: '中班',
|
value: 2
|
},{
|
text: '晚班',
|
value: 3
|
},{
|
text: ' --查询所有-- ',
|
value: 4
|
}]"/>
|
</div>
|
</fieldset>
|
</div>
|
</form>
|
<div class="easyui-toolbar">
|
<c:if test="${not empty sessionInfo.resourcesMap['/pms/sys/eqptype/queryMdType.do/djbw']}">
|
<a onclick="queryMdType()" href="javascript:void(0);" class="easyui-linkbutton"
|
data-options="plain:true,iconCls:'icon-standard-zoom'">查询</a>
|
</c:if>
|
<c:if test="${not empty sessionInfo.resourcesMap['/pms/eqmInspection/goToAddInspection.do/djbw']}">
|
<a onclick="gotoLubiCycle();" href="javascript:void(0);" class="easyui-linkbutton"
|
data-options="plain:true,iconCls:'icon-standard-plugin-add'">新增</a>
|
</c:if>
|
<c:if test="${not empty sessionInfo.resourcesMap['/pms/sys/eqptype/cleanTwoQuery.do/djbw']}">
|
<a onclick="cleanTwoQuery();" href="javascript:void(0);" class="easyui-linkbutton"
|
data-options="iconCls:'icon-standard-arrow-refresh',plain:true">重置</a>
|
</c:if>
|
<c:if test="${not empty sessionInfo.resourcesMap['/pms/eqmInspection/batchDeleteInspection.do/djbw']}">
|
<a onclick="beatchDeleteMdType();" href="javascript:void(0);" class="easyui-linkbutton"
|
data-options="iconCls:'icon-standard-cancel',plain:true">批量删除</a>
|
</c:if>
|
<%-- <c:if test="${not empty sessionInfo.resourcesMap['/pms/sys/datadict/uploadImages.do']}">
|
<a onclick="lookImages();" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-standard-arrow-refresh',plain:true">设置图片</a>
|
</c:if>
|
<c:if test="${not empty sessionInfo.resourcesMap['/pms/sys/datadict/uploadImages.do']}">
|
<a onclick="inputExcelDatas();" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-standard-plugin-add',plain:true">批量导入</a>
|
</c:if>
|
--%>
|
</div>
|
</div>
|
<table id="twoGrid"></table>
|
</div>
|
<div id="typeMenu" class="easyui-menu" style="width: 80px; display: none;">
|
<c:if test="${not empty sessionInfo.resourcesMap['/pms/eqmInspection/editInspection.do/djbw']}">
|
<div onclick="gotoTypeEdit()" data-options="iconCls:'icon-standard-plugin-add'">编辑</div>
|
</c:if>
|
<c:if test="${not empty sessionInfo.resourcesMap['/pms/eqmInspection/deleteInspection.do/djbw']}">
|
<div onclick="deleteMdType();" data-options="iconCls:'icon-standard-plugin-delete'">删除</div>
|
</c:if>
|
</div>
|
</body>
|
</html>
|