gong_xu.jsp 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%
  3. String path = request.getContextPath();
  4. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  5. %>
  6. <!DOCTYPE html>
  7. <html>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  10. <!-- 避免IE使用兼容模式 -->
  11. <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
  12. <meta name="renderer" content="webkit">
  13. <!-- 导入公共样式 -->
  14. <%@ include file="ap.jsp" %>
  15. <title>工序列表</title>
  16. </head>
  17. <body id="body">
  18. <div data-toggle="topjui-layout" data-options="fit:true">
  19. <div data-options="region:'center',iconCls:'icon-reload',title:'',split:true,border:false,bodyCls:'border_left_right'">
  20. <!-- datagrid表格 -->
  21. <table data-toggle="topjui-datagrid"
  22. data-options="id:'userDg',
  23. singleSelect:true,
  24. selectOnCheck:false,
  25. checkOnSelect:false,
  26. url:'teList.action',
  27. childTabs: [{id:'eastTabs'}],
  28. filter: [{
  29. field: 'userName',
  30. type: 'textbox',
  31. op: ['contains', 'equal', 'notequal', 'less', 'greater']
  32. },{
  33. field: 'sex',
  34. type: 'combobox',
  35. options: {
  36. valueField: 'value',
  37. textField: 'label',
  38. data: [{
  39. label: '男',
  40. value: '1'
  41. }, {
  42. label: '女',
  43. value: '2'
  44. }]
  45. },
  46. op: ['contains', 'equal', 'notequal', 'less', 'greater']
  47. },{
  48. field: 'post',
  49. type: 'combobox',
  50. options: {
  51. valueField: 'value',
  52. textField: 'label',
  53. multiple: true,
  54. data: [{
  55. label: 'CEO',
  56. value: 'CEO'
  57. }, {
  58. label: 'COO',
  59. value: 'COO'
  60. }, {
  61. label: 'CTO',
  62. value: 'CTO'
  63. }]
  64. },
  65. op: ['contains', 'equal', 'notequal', 'less', 'greater']
  66. }]">
  67. <thead>
  68. <tr>
  69. <th data-options="field:'id',title:'UUID',checkbox:true"></th>
  70. <!-- <th data-options="field:'number', title: '工序编号',sortable:true"></th> -->
  71. <th data-options="field:'name', title: '工序名称',sortable:true"></th>
  72. <th data-options="field:'group_id', title: '工序分类',sortable:true,
  73. formatter:function(value,row,index){
  74. if (value == 1) {
  75. return '<font color=orange>A</font>';
  76. } else if (value == 2) {
  77. return '<font color=red>B</font>';
  78. } else if (value == 3){
  79. return '<font color=green>C</font>';
  80. } else if (value == 4){
  81. return '<font color=blue>D</font>';
  82. } else if (value == 5){
  83. return '<font color=purple>E</font>';
  84. }else{
  85. return '';
  86. }
  87. }"> </th> </tr>
  88. </thead>
  89. </table>
  90. </div>
  91. </div>
  92. <!-- 表格工具栏开始 -->
  93. <div id="userDg-toolbar" class="topjui-toolbar"
  94. data-options="grid:{
  95. type:'datagrid',
  96. id:'userDg'
  97. }">
  98. <a href="javascript:void(0)"
  99. data-toggle="topjui-menubutton"
  100. data-options="method:'openDialog',
  101. extend: '#userDg-toolbar',
  102. iconCls: 'fa fa-plus',
  103. dialog:{
  104. width: 400,
  105. height: 270,
  106. id:'userAddDialog',
  107. href:'add_gong.jsp',
  108. buttonsGroup:[
  109. {text:'保存',url:'teadd.action',iconCls:'fa fa-plus',handler:'ajaxForm',btnCls:'topjui-btn-brown'}
  110. ]
  111. }">新增工序</a>
  112. <a href="javascript:void(0)"
  113. data-toggle="topjui-menubutton"
  114. data-options="method: 'openDialog',
  115. extend: '#userDg-toolbar',
  116. iconCls: 'fa fa-pencil',
  117. btnCls: 'topjui-btn-green',
  118. grid: {
  119. type: 'datagrid',
  120. id: 'userDg'
  121. },
  122. dialog: {
  123. width: 410,
  124. height: 270,
  125. href: 'add_gong.jsp?id={id}',
  126. url:'tefindById.action?id={id}',
  127. buttonsGroup: [
  128. {
  129. text: '更新',
  130. url: 'teupdate.action',
  131. iconCls: 'fa fa-save',
  132. handler: 'ajaxForm',
  133. btnCls: 'topjui-btn-green'
  134. }
  135. ]
  136. }">编辑工序</a>
  137. <a href="javascript:void(0)"
  138. data-toggle="topjui-menubutton"
  139. data-options="method:'doAjax',
  140. extend: '#userDg-toolbar',
  141. btnCls:'topjui-btn-brown',
  142. iconCls:'fa fa-trash',
  143. url:'tedelete.action',
  144. grid: {uncheckedMsg:'请先勾选要删除的数据',param:'id:id'}">删除工序</a>
  145. </div>
  146. <!-- 表格工具栏结束 -->
  147. </body>
  148. </html>