viewFlowDirHistory.jsp 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  7. <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  8. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  9. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  10. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
  12. <script type="text/javascript" src="/shares/js/constant.js"></script>
  13. <script type="text/javascript" src="/shares/js/common.js"></script>
  14. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerTab.js" type="text/javascript"></script>
  15. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script>
  16. <script type="text/javascript">
  17. var grid = null;
  18. $(document).ready(function(){
  19. searchByKword();
  20. });
  21. function loadAssetEmployList(params) {
  22. grid = $("#assetDirectionGrid")
  23. .ligerGrid(
  24. {
  25. columns : [
  26. {
  27. display : '资产编号',
  28. name : 'asset_id',
  29. width : 120
  30. },
  31. {
  32. display : '资产名称',
  33. name : 'asset_name',
  34. width : 120
  35. },
  36. {
  37. display : '当前状态',
  38. name : 'cur_state',
  39. width : 120,
  40. render : function(row){
  41. var html = "";
  42. var state = row.cur_state;
  43. if(state=='1'){
  44. html+="闲置";
  45. }else if(state=='2'){
  46. html+="领用";
  47. }else if(state=='3'){
  48. html+="维修";
  49. }else if(state=='4'){
  50. html+="借出";
  51. }else if(state=='5'){
  52. html+="报废";
  53. }
  54. return html;
  55. }
  56. },
  57. {
  58. display : '业务类型',
  59. name : 'work_type',
  60. width : 120,
  61. render : function(row){
  62. var html = "";
  63. var state = row.work_type;
  64. if(state=='1'){
  65. html+="归还";
  66. }else if(state=='2'){
  67. html+="领用";
  68. }else if(state=='3'){
  69. html+="维修";
  70. }else if(state=='4'){
  71. html+="借出";
  72. }else if(state=='5'){
  73. html+="报废";
  74. }
  75. return html;
  76. }
  77. },
  78. {
  79. display : '日期',
  80. name : 'cur_date',
  81. width : 120
  82. },
  83. {
  84. display : '负责部门',
  85. name : 'cur_dept_name',
  86. width : 180
  87. },
  88. {
  89. display : '负责人',
  90. name : 'cur_user_name',
  91. width : 120
  92. }],
  93. pageSize : 20,
  94. url : 'assetFlowDirectionAction.do?task=assetFlowDirectionList&assetid=${assetid}'+params
  95. + '&time='
  96. + new Date().getTime(),
  97. pageParmName : 'p', //页索引参数名,(提交给服务器)
  98. pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
  99. width : '99.9%',
  100. height : '99.9%'
  101. });
  102. $("#pageloading").hide();
  103. }
  104. function searchByKword(){
  105. var params="";
  106. loadAssetEmployList(params);
  107. }
  108. </script>
  109. <style type="text/css">
  110. body {
  111. padding: 5px;
  112. margin: 0;
  113. }
  114. #layout1 {
  115. width: 100%;
  116. margin: 0;
  117. padding: 0;
  118. }
  119. .l-button {
  120. margin-left: 1px;
  121. width:100px;
  122. }
  123. #deptBtn {
  124. width: 100%;
  125. background: #e5ecf9;
  126. text-align: center;
  127. height: 25px;
  128. padding-top: 3px
  129. }
  130. .l-layout-left {
  131. overflow-y: auto;
  132. }
  133. </style>
  134. </HEAD>
  135. <BODY>
  136. <%@ include file="/include/button.jsp"%>
  137. <%@ include file="/include/message.jsp"%>
  138. <div class="container">
  139. <form id="report" action="assetFlowDirectionAction.do" method="post" target="_blank">
  140. <div class="forum-container" >
  141. <table border="0" cellspacing="1" cellpadding="0" class="l-table-edit line">
  142. <th>资产流向历史</th>
  143. </table>
  144. </div>
  145. <div style="overflow: hidden; clear: both;">
  146. <div id="assetDirectionGrid" style="margin: 0; padding: 0"></div>
  147. </div>
  148. </form>
  149. </div>
  150. </BODY>
  151. </HTML>