assetDepreciationList.jsp 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. $(document).ready(function(){
  17. var params="";
  18. loadAssetDepreciationList(params);
  19. });
  20. function loadAssetDepreciationList(params) {
  21. var grid = null;
  22. //var selectDeviceType = document.getElementById("selectDeviceType").value;
  23. grid = $("#assetDepreciationGrid")
  24. .ligerGrid(
  25. {
  26. columns : [
  27. {
  28. display : '折旧法',
  29. name : 'depreciation_method_name',
  30. width : 150
  31. },
  32. {
  33. display : '年折旧率',
  34. name : 'depreciation_year_rate',
  35. width : 450
  36. },
  37. {
  38. display : '年折旧额',
  39. name : 'depreciation_year_value',
  40. width : 380
  41. },
  42. {
  43. display : '操作',
  44. width : 135,
  45. isAllowHide : false,
  46. render : function(row) {
  47. var html = '<a href=\"#\" onclick=\"delAssetDepreciation('
  48. + row.universalid
  49. + ')\">删除</a>&nbsp;';
  50. return html;
  51. }
  52. }],
  53. pageSize : 20,
  54. url : 'assetDepreciationAction.do?task=assetDepreciationList'+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 delAssetDepreciation(id){
  65. if (window.confirm("确定要删除吗?")){
  66. var param={'id':id};
  67. sendAjaxParam(param,"assetDepreciationAction.do?task=delAssetDepreciation",'json',delProcess);
  68. }
  69. }
  70. function delProcess(data){
  71. var msg=data.error;
  72. if(msg!=null){
  73. showAjaxError(null, data.error);
  74. }
  75. var msg2=data.success;
  76. if(msg2!=null){
  77. $.ligerDialog.success(msg2);
  78. }
  79. var params="";
  80. loadAssetDepreciationList(params);
  81. }
  82. </script>
  83. <style type="text/css">
  84. body {
  85. padding: 5px;
  86. margin: 0;
  87. }
  88. #layout1 {
  89. width: 100%;
  90. margin: 0;
  91. padding: 0;
  92. }
  93. .l-button {
  94. margin-left: 1px;
  95. }
  96. #deptBtn {
  97. width: 100%;
  98. background: #e5ecf9;
  99. text-align: center;
  100. height: 25px;
  101. padding-top: 3px
  102. }
  103. .l-layout-left {
  104. overflow-y: auto;
  105. }
  106. </style>
  107. </HEAD>
  108. <BODY>
  109. <%@ include file="/include/button.jsp"%>
  110. <%@ include file="/include/message.jsp"%>
  111. <div class="container-layout">
  112. <div id="title" class="form-button">
  113. <input type="button" class="l-button" value="新增" onclick="window.parent.f_addTab(new Date().getTime(), '新增', '${pageContext.request.contextPath }/assetDepreciationAction.do?task=toCreate&tabid=' + getCurrentTabId());"/>
  114. </div>
  115. <div style="overflow: hidden; clear: both;">
  116. <div id="assetDepreciationGrid" style="margin: 0; padding: 0"></div>
  117. </div>
  118. </div>
  119. </BODY>
  120. </HTML>