| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- %>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <!-- 避免IE使用兼容模式 -->
- <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
- <meta name="renderer" content="webkit">
- <!-- 导入公共样式 -->
- <%@ include file="ap.jsp" %>
- <title>工序列表</title>
- </head>
- <body id="body">
- <div data-toggle="topjui-layout" data-options="fit:true">
- <div data-options="region:'center',iconCls:'icon-reload',title:'',split:true,border:false,bodyCls:'border_left_right'">
- <!-- datagrid表格 -->
- <table data-toggle="topjui-datagrid"
- data-options="id:'userDg',
- singleSelect:true,
- selectOnCheck:false,
- checkOnSelect:false,
- url:'teList.action',
- childTabs: [{id:'eastTabs'}],
- filter: [{
- field: 'userName',
- type: 'textbox',
- op: ['contains', 'equal', 'notequal', 'less', 'greater']
- },{
- field: 'sex',
- type: 'combobox',
- options: {
- valueField: 'value',
- textField: 'label',
- data: [{
- label: '男',
- value: '1'
- }, {
- label: '女',
- value: '2'
- }]
- },
- op: ['contains', 'equal', 'notequal', 'less', 'greater']
- },{
- field: 'post',
- type: 'combobox',
- options: {
- valueField: 'value',
- textField: 'label',
- multiple: true,
- data: [{
- label: 'CEO',
- value: 'CEO'
- }, {
- label: 'COO',
- value: 'COO'
- }, {
- label: 'CTO',
- value: 'CTO'
- }]
- },
- op: ['contains', 'equal', 'notequal', 'less', 'greater']
- }]">
- <thead>
- <tr>
- <th data-options="field:'id',title:'UUID',checkbox:true"></th>
- <!-- <th data-options="field:'number', title: '工序编号',sortable:true"></th> -->
- <th data-options="field:'name', title: '工序名称',sortable:true"></th>
- <th data-options="field:'group_id', title: '工序分类',sortable:true,
- formatter:function(value,row,index){
- if (value == 1) {
- return '<font color=orange>A</font>';
- } else if (value == 2) {
- return '<font color=red>B</font>';
- } else if (value == 3){
- return '<font color=green>C</font>';
- } else if (value == 4){
- return '<font color=blue>D</font>';
- } else if (value == 5){
- return '<font color=purple>E</font>';
- }else{
- return '';
- }
- }"> </th> </tr>
- </thead>
- </table>
- </div>
- </div>
- <!-- 表格工具栏开始 -->
- <div id="userDg-toolbar" class="topjui-toolbar"
- data-options="grid:{
- type:'datagrid',
- id:'userDg'
- }">
- <a href="javascript:void(0)"
- data-toggle="topjui-menubutton"
- data-options="method:'openDialog',
- extend: '#userDg-toolbar',
- iconCls: 'fa fa-plus',
- dialog:{
- width: 400,
- height: 270,
- id:'userAddDialog',
- href:'add_gong.jsp',
- buttonsGroup:[
- {text:'保存',url:'teadd.action',iconCls:'fa fa-plus',handler:'ajaxForm',btnCls:'topjui-btn-brown'}
- ]
- }">新增工序</a>
-
- <a href="javascript:void(0)"
- data-toggle="topjui-menubutton"
- data-options="method: 'openDialog',
- extend: '#userDg-toolbar',
- iconCls: 'fa fa-pencil',
- btnCls: 'topjui-btn-green',
- grid: {
- type: 'datagrid',
- id: 'userDg'
- },
- dialog: {
- width: 410,
- height: 270,
- href: 'add_gong.jsp?id={id}',
- url:'tefindById.action?id={id}',
- buttonsGroup: [
- {
- text: '更新',
- url: 'teupdate.action',
- iconCls: 'fa fa-save',
- handler: 'ajaxForm',
- btnCls: 'topjui-btn-green'
- }
- ]
- }">编辑工序</a>
- <a href="javascript:void(0)"
- data-toggle="topjui-menubutton"
- data-options="method:'doAjax',
- extend: '#userDg-toolbar',
- btnCls:'topjui-btn-brown',
- iconCls:'fa fa-trash',
- url:'tedelete.action',
- grid: {uncheckedMsg:'请先勾选要删除的数据',param:'id:id'}">删除工序</a>
- </div>
- <!-- 表格工具栏结束 -->
- </body>
- </html>
|