selectEmployAssetList.jsp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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. <SCRIPT type=text/javascript
  7. src="${pageContext.request.contextPath}/js/jquery-1.3.2.min.js"></SCRIPT>
  8. <link href="main.css" rel="stylesheet" type="text/css"></link>
  9. <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css"
  10. rel="stylesheet" type="text/css"></link>
  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. $(function() {
  18. searchByKword();
  19. });
  20. function loadAssetEntryList(params) {
  21. grid = $("#assetEntryGrid")
  22. .ligerGrid(
  23. {
  24. columns : [
  25. {
  26. display : '资产名称',
  27. name : 'asset_name',
  28. width : 120
  29. },
  30. {
  31. display : '资产编号',
  32. name : 'asset_id',
  33. width : 120
  34. },
  35. {
  36. display : '资产类型',
  37. name : 'asset_type_name',
  38. width : 120
  39. },
  40. {
  41. display : '数量',
  42. name : 'asset_number',
  43. width : 120
  44. }
  45. ,
  46. {
  47. display : '规格型号',
  48. name : 'asset_version',
  49. width : 120
  50. }
  51. ],
  52. pageSize : 20,
  53. checkbox: true,
  54. url : 'assetReturnAction.do?task=employRecordList'+params
  55. + '&time='
  56. + new Date().getTime(),
  57. pageParmName : 'p', //页索引参数名,(提交给服务器)
  58. pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
  59. width : '99.9%',
  60. height : '99.9%'
  61. });
  62. $("#pageloading").hide();
  63. }
  64. function searchByKword(){
  65. if(grid!=null){
  66. grid.set("newPage","1");
  67. }
  68. var asset_search_name=$("#asset_search_name").val();
  69. var params="&asset_search_name="+encodeURI(encodeURI(asset_search_name));
  70. var asset_search_id=$("#asset_search_id").val();
  71. params=params+"&asset_search_id="+encodeURI(encodeURI(asset_search_id));
  72. loadAssetEntryList(params);
  73. }
  74. function f_select() {
  75. var rows = grid.getCheckedRows();
  76. return rows;
  77. }
  78. </script>
  79. <style type="text/css">
  80. body {
  81. padding: 5px;
  82. margin: 0;
  83. }
  84. #layout1 {
  85. width: 100%;
  86. margin: 0;
  87. padding: 0;
  88. }
  89. .l-button {
  90. margin-left: 1px;
  91. }
  92. #deptBtn {
  93. width: 100%;
  94. background: #e5ecf9;
  95. text-align: center;
  96. height: 25px;
  97. padding-top: 3px
  98. }
  99. #leftBtn{
  100. width: 100%;
  101. background: #e5ecf9;
  102. height: 25px;
  103. padding-top: 3px
  104. }
  105. .l-layout-left {
  106. overflow-y: auto;
  107. }
  108. .default_search li{height:25px ;float:left;}
  109. .default_search ul{width:170px;float:left;padding-left: 2px;}
  110. .default_search li.searchvalue{float:left;width:100px;padding-top:5px;}
  111. .default_search li.searchname{float:left;width:70px;padding-top:9px;text-align: right;padding-left: 0px; font-size: 13px;font-weight: normal;}
  112. </style>
  113. </HEAD>
  114. <BODY>
  115. <%@ include file="/include/button.jsp"%>
  116. <%@ include file="/include/message.jsp"%>
  117. <div class="l-content">
  118. <form name="assetTypeForm" id="assetTypeForm" method="post" action="assetTypeAction.do?task=editAssetType">
  119. <div id="layout1">
  120. <div position="center" id="center" >
  121. <div class="default_search" style="margin: 0;">
  122. <ul class="default_search" style="">
  123. <li class="searchname">资产名称:</li>
  124. <li class="searchvalue"><input type="text" name="asset_search_name"
  125. id="asset_search_name" value=""/></li>
  126. </ul>
  127. <ul class="default_search" style="">
  128. <li class="searchname">资产编号:</li>
  129. <li class="searchvalue"><input type="text" name="asset_search_id"
  130. id="asset_search_id" value=""/></li>
  131. </ul>
  132. <input type="button" class='l-button' style="margin-top:9px;" name="search" onclick ="searchByKword()" value="查询" />
  133. </div>
  134. <div style="overflow: hidden; clear: both;">
  135. <div id="assetEntryGrid" style="margin: 0; padding: 0"></div>
  136. </div>
  137. </div>
  138. </div>
  139. </form>
  140. </div>
  141. </BODY>
  142. </HTML>