assetYearsChangeRecordList.jsp 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. loadAssetYearsChangeList(params);
  20. });
  21. function loadAssetYearsChangeList(params) {
  22. //var selectDeviceType = document.getElementById("selectDeviceType").value;
  23. var assetid=$("#asset_id").val();
  24. grid = $("#assetYearsChangeGrid")
  25. .ligerGrid(
  26. {
  27. columns : [
  28. {
  29. display : '年限变更时间',
  30. name : 'asset_yearschange_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 : 'asset_type_name',
  46. width : 120
  47. },
  48. {
  49. display : '现预计使用年限',
  50. name : 'asset_plan_years_now',
  51. width : 120
  52. },
  53. {
  54. display : '现已使用年限',
  55. name : 'asset_used_years_now',
  56. width : 120
  57. },
  58. {
  59. display : '原预计使用年限',
  60. name : 'asset_plan_years_before',
  61. width : 120
  62. },
  63. {
  64. display : '原已使用年限',
  65. name : 'asset_used_years_before',
  66. width : 120
  67. }],
  68. pageSize : 20,
  69. url : 'erpAssetYearsChange.do?task=viewYearsChangeRecord&assetid='+assetid
  70. + '&time='
  71. + new Date().getTime(),
  72. pageParmName : 'p', //页索引参数名,(提交给服务器)
  73. pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
  74. width : '99.9%',
  75. height : '99.9%'
  76. });
  77. $("#pageloading").hide();
  78. $(".l-grid-hd-cell-btn-checkbox").css("display", "none"); //隱藏checkAll
  79. }
  80. </script>
  81. <style type="text/css">
  82. body {
  83. padding: 5px;
  84. margin: 0;
  85. }
  86. #layout1 {
  87. width: 100%;
  88. margin: 0;
  89. padding: 0;
  90. }
  91. .l-button {
  92. margin-left: 1px;
  93. }
  94. #deptBtn {
  95. width: 100%;
  96. background: #e5ecf9;
  97. text-align: center;
  98. height: 25px;
  99. padding-top: 3px
  100. }
  101. .l-layout-left {
  102. overflow-y: auto;
  103. }
  104. .forum-container-2 tr{height: 20px;line-height: 20px}
  105. .forum-container-2 table{width:100%; margin-top: 0px;margin-right: 0px; margin-left: 0px; }
  106. </style>
  107. </HEAD>
  108. <BODY>
  109. <%@ include file="/include/button.jsp"%>
  110. <%@ include file="/include/message.jsp"%>
  111. <div class="container">
  112. <input type="hidden" id="asset_id" name="asset_id" value="${assetid }" />
  113. <div class="forum-container-2">
  114. <table border="0" cellspacing="0" cellpadding="0">
  115. <thead><tr><th>
  116. 固资年限变更记录
  117. </th></tr></thead>
  118. </table>
  119. </div>
  120. <div style="overflow: hidden; clear: both;">
  121. <div id="assetYearsChangeGrid" style="margin: 0; padding: 0"></div>
  122. </div>
  123. </div>
  124. </BODY>
  125. </HTML>