assetStatusRecordList.jsp 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. loadAssetStatusList(params);
  20. });
  21. function loadAssetStatusList(params) {
  22. //var selectDeviceType = document.getElementById("selectDeviceType").value;
  23. var assetid=$("#asset_id").val();
  24. grid = $("#assetStatusGrid")
  25. .ligerGrid(
  26. {
  27. columns : [
  28. {
  29. display : '状态变更时间',
  30. name : 'create_date',
  31. width : 120
  32. },
  33. {
  34. display : '资产名称',
  35. name : 'asset_name',
  36. width : 120
  37. },
  38. {
  39. display : '资产编号',
  40. name : 'asset_id',
  41. width : 120
  42. },
  43. {
  44. display : '现状态',
  45. name : 'new_asset_status_name',
  46. width : 120,
  47. render: function(rowdata){
  48. var html="";
  49. var isvalid=rowdata.new_asset_status_name;
  50. if(isvalid=='1'){
  51. html+="借出";
  52. }else if(isvalid=='0'){
  53. html+="正常";
  54. }
  55. else if(isvalid=='2'){
  56. html+="报废";
  57. }
  58. return html;
  59. }
  60. },
  61. {
  62. display : '变更前原状态',
  63. name : 'old_asset_status_name',
  64. width : 120,
  65. render: function(rowdata){
  66. var html="";
  67. var isvalid=rowdata.old_asset_status_name;
  68. if(isvalid=='1'){
  69. html+="借出";
  70. }else if(isvalid=='0'){
  71. html+="正常";
  72. }
  73. else if(isvalid=='2'){
  74. html+="报废";
  75. }
  76. return html;
  77. }
  78. }],
  79. pageSize : 20,
  80. url : 'erpAssetStatus.do?task=viewStatusRecord&assetid='+assetid
  81. + '&time='
  82. + new Date().getTime(),
  83. pageParmName : 'p', //页索引参数名,(提交给服务器)
  84. pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
  85. width : '99.9%',
  86. height : '99.9%'
  87. });
  88. $("#pageloading").hide();
  89. $(".l-grid-hd-cell-btn-checkbox").css("display", "none"); //隱藏checkAll
  90. }
  91. </script>
  92. <style type="text/css">
  93. body {
  94. padding: 5px;
  95. margin: 0;
  96. }
  97. #layout1 {
  98. width: 100%;
  99. margin: 0;
  100. padding: 0;
  101. }
  102. .l-button {
  103. margin-left: 1px;
  104. }
  105. #deptBtn {
  106. width: 100%;
  107. background: #e5ecf9;
  108. text-align: center;
  109. height: 25px;
  110. padding-top: 3px
  111. }
  112. .l-layout-left {
  113. overflow-y: auto;
  114. }
  115. .forum-container-2 tr{height: 20px;line-height: 20px}
  116. .forum-container-2 table{width:100%; margin-top: 0px;margin-right: 0px; margin-left: 0px; }
  117. </style>
  118. </HEAD>
  119. <BODY>
  120. <%@ include file="/include/button.jsp"%>
  121. <%@ include file="/include/message.jsp"%>
  122. <div class="container">
  123. <input type="hidden" id="asset_id" name="asset_id" value="${assetid }" />
  124. <div class="forum-container-2">
  125. <table border="0" cellspacing="0" cellpadding="0">
  126. <thead><tr><th>
  127. 固资年限变更记录
  128. </th></tr></thead>
  129. </table>
  130. </div>
  131. <div style="overflow: hidden; clear: both;">
  132. <div id="assetStatusGrid" style="margin: 0; padding: 0"></div>
  133. </div>
  134. </div>
  135. </BODY>
  136. </HTML>