addAssetDepreciation.jsp 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <%@ include file="/include/head.jsp"%>
  2. <%@ page contentType="text/html;charset=GBK"%>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  4. <%@ taglib uri="/WEB-INF/tlds/taglib.tld" prefix="OA"%>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <HEAD>
  7. <TITLE>新增折旧方法</TITLE>
  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" rel="stylesheet" type="text/css" />
  10. <script type="text/javascript" src="/shares/js/jquery-1.3.2.min.js"></script>
  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/common.js"></script>
  14. <script type="text/javascript" src="/shares/js/constant.js"></script>
  15. <script type="text/javascript">
  16. $(document).ready(function(){
  17. });
  18. function addAssetDepreciation(){
  19. var rs = $.validate({name:"depreciation_method_name",model:[{type:"require",msg:"方式名称不能为空!"}]});
  20. rs &= $.validate({name:"depreciation_year_rate",model:[{type:"require",msg:"年折旧率不能为空!"}]});
  21. rs &= $.validate({name:"depreciation_year_value",model:[{type:"require",msg:"年折旧额不能为空!"}]});
  22. if(!rs)return;
  23. $("#addAssetDepreciationForm").submit();
  24. }
  25. </script>
  26. <style type="text/css">
  27. body {
  28. padding: 5px;
  29. margin: 0;
  30. }
  31. #layout1 {
  32. width: 100%;
  33. margin: 0;
  34. padding: 0;
  35. }
  36. .l-button {
  37. margin-left: 1px;
  38. }
  39. #deptBtn {
  40. width: 100%;
  41. background: #e5ecf9;
  42. text-align: center;
  43. height: 25px;
  44. padding-top: 3px
  45. }
  46. #leftBtn{
  47. width: 100%;
  48. background: #e5ecf9;
  49. height: 25px;
  50. padding-top: 3px
  51. }
  52. .l-layout-left {
  53. overflow-y: auto;
  54. }
  55. </style>
  56. </HEAD>
  57. <BODY>
  58. <%@ include file="/include/button.jsp"%>
  59. <%@ include file="/include/message.jsp"%>
  60. <div class="l-content">
  61. <form id="addAssetDepreciationForm" name="addAssetDepreciationForm" method="post" action="assetDepreciationAction.do?task=addDepreciation">
  62. <div id="layout1">
  63. <div position="center" id="center" title="新增折旧方法" class="forum-container">
  64. <input id="tabid" name="tabid" value="${param.tabid }" type="hidden"/>
  65. <div id="leftBtn">
  66. <input type="button" value="保存" class="l-button" onclick="addAssetDepreciation()" id="addAssetDepreciationBtn" />
  67. </div>
  68. <table border="0" cellspacing="1" cellpadding="0" class="l-table-edit line">
  69. <tr>
  70. <td class="l-table-edit-text">方法名<FONT COLOR="red">*</FONT>:</td>
  71. <td class="l-table-edit-td">
  72. <textarea id="depreciation_method_name" name="depreciation_method_name" rows="2" cols="80" class=""></textarea>
  73. <!-- <input id="depreciation_method_name" name="depreciation_method_name" type='text' value="" style="height: 20px;width: 400px;"/> -->
  74. </td>
  75. </tr>
  76. <tr>
  77. <td class="l-table-edit-text">年折旧率<FONT COLOR="red">*</FONT>:</td>
  78. <td class="l-table-edit-td">
  79. <textarea id="depreciation_year_rate" name="depreciation_year_rate" rows="3" cols="80" class=""></textarea>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td class="l-table-edit-text">年折旧额<FONT COLOR="red">*</FONT>:</td>
  84. <td class="l-table-edit-td">
  85. <textarea id="depreciation_year_value" name="depreciation_year_value" rows="3" cols="80" class=""></textarea>
  86. </td>
  87. </tr>
  88. <tr>
  89. <td class="l-table-edit-text">期折旧率:</td>
  90. <td class="l-table-edit-td">
  91. <textarea id="depreciation_period_rate" name="depreciation_period_rate" rows="3" cols="80" class=""></textarea>
  92. </td>
  93. </tr>
  94. <tr>
  95. <td class="l-table-edit-text">期折旧额:</td>
  96. <td class="l-table-edit-td">
  97. <textarea id="depreciation_period_value" name="depreciation_period_value" rows="3" cols="80" class=""></textarea>
  98. </td>
  99. </tr>
  100. </table>
  101. </div>
  102. <div class="forum-container">
  103. <table border="0" cellspacing="1" cellpadding="0" class="l-table-edit line">
  104. <tr><th colspan="11">可使用属性</th></tr>
  105. <tr>
  106. <td class="l-table-edit-td" width="20px">
  107. 资产原值
  108. </td>
  109. <td class="l-table-edit-td" width="20px" height="30px">
  110. 累计折旧
  111. </td>
  112. <td class="l-table-edit-td" width="20px">
  113. 减值准备
  114. </td>
  115. <td class="l-table-edit-td" width="20px">
  116. 预计净残值
  117. </td>
  118. <td class="l-table-edit-td" width="20px">
  119. 剩余使用年限
  120. </td>
  121. <td class="l-table-edit-td" width="20px">
  122. 预计使用期间数
  123. </td>
  124. <td class="l-table-edit-td" width="20px">
  125. 已折旧期间数
  126. </td>
  127. <td class="l-table-edit-td" width="20px">
  128. 预计工作总量
  129. </td>
  130. <td class="l-table-edit-td" width="20px">
  131. 已使用工作量
  132. </td>
  133. <td class="l-table-edit-td" width="20px">
  134. 当年工作量
  135. </td>
  136. <td class="l-table-edit-td" width="20px">
  137. 当期工作量
  138. </td>
  139. </tr>
  140. </table>
  141. </div>
  142. </div>
  143. </form>
  144. </div>
  145. </BODY>
  146. </HTML>