7dae3bf6b1f75a40eefffeb2746213fc85caea16.svn-base 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <%@page language="java" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>外部应急资源</title>
  7. <!--框架必需start-->
  8. <%@include file="../../../../include1.jsp" %>
  9. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/pageNumber.js"></script>
  10. <script type="text/javascript" src="/nwyj/scripts/ECM_gridtemplate/changeFormat.js"></script>
  11. <link href="<%=path%>/scripts/ECM_gridtemplate/changeFormat.css" rel="stylesheet" type="text/css"/>
  12. <!--引用资源文件,JS CSS-->
  13. <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
  14. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
  15. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
  16. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
  17. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
  18. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.js"></script>
  19. <link href="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.css" rel="stylesheet" type="text/css"/>
  20. <!--基本选项卡start-->
  21. <!--框架必需end-->
  22. <!-- 按钮权限start -->
  23. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/common.js"></script>
  24. <!-- 按钮权限end -->
  25. <script type="text/javascript" src="../../../../../scripts/business/am/resource/resources/external_resources.js"></script>
  26. <script type="text/javascript">
  27. var g;
  28. /**定义变量**/
  29. var value1 = (window.location.href).split('?')[1];
  30. var value2 = (window.location.href).split('?')[2];
  31. var condition = "IS_DEL='0' AND SUB_UNIT = '"+value1+"' AND RESOURCE_TYPE ='"+value2+"'";
  32. var loadParams = {
  33. "listId" : '283',
  34. "condition" : condition,
  35. direction:'DESC',
  36. sort: 'UPDATEDATE'
  37. };
  38. function initComplete(){
  39. /**
  40. * 工具条
  41. */
  42. var roleCons = roleButtonArr();
  43. var toolBarOpt1 = {
  44. items:[],
  45. roleCons:roleCons
  46. };
  47. /**
  48. * 树形列
  49. */
  50. var grid_option1 = {
  51. columns: [
  52. { display: '资源名称', name: 'RESOURCE_NAME_283', align: 'center', width: "10%"/* ,isPrimaryKey:true,
  53. render : function(rowdata, value) {
  54. return '<a href="javascript:void(0)" '
  55. + 'onclick=jumpPage("'
  56. + rowdata.FD_OBJECTID283
  57. +'")>'+ rowdata.RESOURCE_NAME_283 +'</a>';
  58. } */
  59. },
  60. { display: '资源类别', name: 'RESOURCE_TYPE_283_SHOW', align: 'center', width: "10%"},
  61. { display: '规格型号', name: 'SPECIFICATION_MODEL_283', align: 'center', width: "10%"},
  62. { display: '参数', name: 'PARAMETER_283', align: 'center', width: "10%"},
  63. { display: '数量', name: 'NUM_283', align: 'center' , width: "10%"},
  64. { display: '所在地址', name: 'ADDRESS_283', align: 'center', width: "10%"},
  65. { display: '所属单位', name: 'SUB_UNIT_283_SHOW', align: 'center' , width: "10%"},
  66. { display: '联系人', name: 'LINKMAN_283', align: 'center', width: "10%" },
  67. { display: '座机', name: 'TELEPHONE_283', align: 'center', width: "10%"},
  68. { display: '手机', name: 'CELLPHONE_283', align: 'center', width: "10%" }
  69. ],
  70. rownumbers : true,
  71. checkbox : true,
  72. pageSize : 10,
  73. percentWidthMode : true
  74. };
  75. var options1={
  76. url :'/nwyj/ws/crud/CRUDService/queryQui',
  77. params:loadParams,
  78. height: '100%',
  79. width:"100%",
  80. gridOptions:grid_option1,
  81. singleRecodeOptions:{a:"aa"},
  82. paperOpration:{showInput:"true"},
  83. toolBarOptions:toolBarOpt1
  84. };
  85. g=gridAndSingleRecode=$("#maingrid").quickgridAndSingleRecode(options1);
  86. }
  87. </script>
  88. </head>
  89. <body>
  90. <div class="adding_right5">
  91. <div id="maingrid"></div>
  92. </div>
  93. </body>
  94. </html>