listFormEnumValue.jsp 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  7. <title>枚举列表</title>
  8. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  9. <script type="text/javascript" src="/shares/js/jquery-1.8.2.js"></script>
  10. <script type="text/javascript" src="/shares/js/yw/bpm/promptDefine.js"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  12. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  13. <script type="text/javascript" src="/shares/js/constant.js"></script>
  14. <script type="text/javascript" src="/shares/js/yw/bpm/oa.js"></script>
  15. <script type="text/javascript" src="/shares/js/yw/bpm/form/formEnumValue.js"></script>
  16. <script type="text/javascript" src="/shares/js/common.js"></script>
  17. <script type="text/javascript">
  18. var grid = null;
  19. $(function () {
  20. grid = $("#maingrid4").ligerGrid({
  21. columns: [
  22. { display: '枚举值名称', name: 'enumVname', width: 120 },
  23. { display: '枚举值', name: 'enumValue', width: 150 },
  24. {
  25. display: '操作', isAllowHide: false,
  26. render: function (row)
  27. {
  28. var html = '<a href=\"#\" onclick=\"location=\'${pageContext.request.contextPath }/FormEnumAction.do?task=toEditValue&enumVid='
  29. + row.enumVid + '\';\">编辑</a>&nbsp;';
  30. html += '<a href=\"#\" onclick=\"location=\'${pageContext.request.contextPath }/FormEnumAction.do?task=infoValue&enumVid='
  31. + row.enumVid + '\';\">查看</a>&nbsp;';
  32. html += '<a href=\"#\" onclick=\"del(\''
  33. + row.enumVid + '\');\">删除</a>&nbsp;';
  34. return html;
  35. }
  36. }
  37. ],
  38. pageSize:20,
  39. url: 'FormEnumAction.do?task=listValue&time=' + new Date().getTime(),
  40. parms: [{name: "enumId", value: "${param.enumId}"}],
  41. pageParmName: 'p', //页索引参数名,(提交给服务器)
  42. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  43. width: '99.9%',
  44. height: '99%',//getParentHeight()-67,
  45. });
  46. $("#pageloading").hide();
  47. });
  48. </script>
  49. </head>
  50. <body>
  51. <div id="title" class="form-button" style="width :100%;">
  52. <input type="button" class="l-button" style="width: 100px;" value="创建枚举值" onclick="location='${pageContext.request.contextPath }/FormEnumAction.do?task=toCreateValue&enumId=${param.enumId }';"/>
  53. </div>
  54. <div class="container-layout" style="padding-top:35px;">
  55. <div id="maingrid4" style="margin:0; padding:0"></div>
  56. <div style="display:none;">
  57. <!-- g data total ttt -->
  58. </div>
  59. </div>
  60. <%@ include file="/include/message.jsp"%>
  61. </body>
  62. </html>