assetInfoList.jsp 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <%@ page contentType="text/html;charset=GBK"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <HEAD>
  5. <TITLE>设备管理</TITLE>
  6. <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  7. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  8. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  9. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  10. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  11. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js"
  12. type="text/javascript"></script>
  13. <script type="text/javascript" src="/shares/js/constant.js"></script>
  14. <script type="text/javascript" src="/shares/js/common.js"></script>
  15. <script type="text/javascript">
  16. var grid = null;
  17. $(document).ready(function(){
  18. var params="";
  19. loadAssetEntryList(params);
  20. });
  21. function loadAssetEntryList(params) {
  22. //var selectDeviceType = document.getElementById("selectDeviceType").value;
  23. grid = $("#assetEntryGrid")
  24. .ligerGrid(
  25. {
  26. columns : [
  27. {
  28. display : '资产名称(品名)',
  29. name : 'asset_name',
  30. width : 200
  31. },
  32. {
  33. display : '资产编码',
  34. name : 'asset_id',
  35. width : 120
  36. },
  37. {
  38. display : '规格型号',
  39. name : 'asset_specification_version',
  40. width : 120,
  41. render:function(row){
  42. var asset_specification=row.asset_specification;
  43. var asset_version=row.asset_version;
  44. if(asset_specification=="undefined"||asset_specification==undefined){
  45. asset_specification="";
  46. }
  47. if(asset_version=="undefined"||asset_version==undefined){
  48. asset_version="";
  49. }
  50. return asset_specification + " " + asset_version;
  51. }
  52. },
  53. {
  54. display : '资产分类',
  55. name : 'asset_type_name',
  56. width : 100
  57. },
  58. {
  59. display : '单价',
  60. name : 'asset_unit_price',
  61. width : 80
  62. },
  63. {
  64. display : '数量',
  65. name : 'asset_number',
  66. width : 80
  67. },
  68. {
  69. display : '单位',
  70. name : 'asset_measureunit_name',
  71. width : 80
  72. },
  73. {
  74. display : '使用部门',
  75. name : 'asset_use_dept',
  76. width : 100
  77. },
  78. {
  79. display : '设备责任人',
  80. name : 'asset_responsible_user',
  81. width : 100
  82. }],
  83. pageSize : 20,
  84. checkbox: true,
  85. onCheckRow : function(checked, rowdata, rowindex) {
  86. for ( var rowid in this.records)
  87. this.unselect(rowid);
  88. this.select(rowindex);
  89. },
  90. url : 'erpAssetEntry.do?task=assetEntryList'+params
  91. + '&time='
  92. + new Date().getTime(),
  93. pageParmName : 'p', //页索引参数名,(提交给服务器)
  94. pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
  95. width : '99.9%',
  96. height : '99.9%'
  97. });
  98. $("#pageloading").hide();
  99. $(".l-grid-hd-cell-btn-checkbox").css("display", "none"); //隱藏checkAll
  100. }
  101. function f_select() {
  102. var rows = grid.getCheckedRows();
  103. return rows;
  104. }
  105. function searchByKword(){
  106. var asset_search_name=$("#asset_search_name").val();
  107. var params="&asset_search_name="+encodeURI(encodeURI(asset_search_name));
  108. var asset_search_id=$("#asset_search_id").val();
  109. params=params+"&asset_search_id="+asset_search_id;
  110. var asset_search_type=$("#asset_search_type").val();
  111. params+="&asset_search_type="+asset_search_type;
  112. loadAssetEntryList(params);
  113. }
  114. </script>
  115. <style type="text/css">
  116. body {
  117. padding: 5px;
  118. margin: 0;
  119. }
  120. #layout1 {
  121. width: 100%;
  122. margin: 0;
  123. padding: 0;
  124. }
  125. .l-button {
  126. margin-left: 1px;
  127. }
  128. #deptBtn {
  129. width: 100%;
  130. background: #e5ecf9;
  131. text-align: center;
  132. height: 25px;
  133. padding-top: 3px
  134. }
  135. .l-layout-left {
  136. overflow-y: auto;
  137. }
  138. </style>
  139. </HEAD>
  140. <BODY>
  141. <%@ include file="/include/button.jsp"%>
  142. <%@ include file="/include/message.jsp"%>
  143. <div class="container">
  144. <%-- <div id="title" class="form-button">
  145. <input type="button" class="l-button" value="新增卡片" onclick="window.parent.f_addTab(new Date().getTime(), '新增卡片', '${pageContext.request.contextPath }/erpAssetEntry.do?task=toCreate&tabid=' + getCurrentTabId());"/>
  146. </div> --%>
  147. <div class="default_search" style="margin: 0;">
  148. <ul class="list_search">
  149. <li class="title">资产名称:</li>
  150. <li class="text"><input type="text" name="asset_search_name"
  151. id="asset_search_name" value=""/></li>
  152. </ul>
  153. <ul class="list_search">
  154. <li class="title">资产编号:</li>
  155. <li class="text"><input type="text" name="asset_search_id"
  156. id="asset_search_id" value=""/></li>
  157. </ul>
  158. <ul class="list_search">
  159. <li class="title">资产类型:</li>
  160. <li class="text">
  161. <select id="asset_search_type" name="asset_search_type" style="width:130px;">
  162. <option value="" selected="selected"></option>
  163. <c:forEach items="${typeList }" var="item">
  164. <option value="${item.universalid }" >${item.asset_type_name }</option>
  165. </c:forEach>
  166. </select>
  167. </li>
  168. </ul>
  169. <input type="button" class='l-button' style="margin-top:5px;"
  170. name="search" onclick="searchByKword()" value="查询" />
  171. </div>
  172. <div style="overflow: hidden; clear: both;">
  173. <div id="assetEntryGrid" style="margin: 0; padding: 0"></div>
  174. </div>
  175. </div>
  176. </BODY>
  177. </HTML>