asset_type_edit.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:4k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ page import = "java.net.URLEncoder"%>
  3. <%@ page import = "java.util.*"%>
  4. <%@ page import = "cn.js.fan.util.*"%>
  5. <%@ page import = "com.redmoon.oa.asset.*"%>
  6. <%@ page import = "cn.js.fan.web.*"%>
  7. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  8. <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  11. <title>添加资产修改</title>
  12. <link href="../common.css" rel="stylesheet" type="text/css">
  13. <%@ include file="../inc/nocache.jsp"%>
  14. <script language="JavaScript" type="text/JavaScript">
  15. <!--
  16. //-->
  17. </script>
  18. <style type="text/css">
  19. <!--
  20. .style2 {font-size: 14px}
  21. .STYLE5 {color: #FF0000}
  22. .STYLE6 {color: #000000}
  23. -->
  24. </style>
  25. </head>
  26. <body background="" leftmargin="0" topmargin="5" marginwidth="0" marginheight="0">
  27. <jsp:useBean id="fchar" scope="page" class="cn.js.fan.util.StrUtil"/>
  28. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  29. <%
  30. String priv="oa.asset";
  31. if (!privilege.isUserPrivValid(request, priv)) {
  32. out.println(SkinUtil.makeErrMsg(request, SkinUtil.LoadString(request, "pvg_invalid")));
  33. return;
  34. }
  35. String op = ParamUtil.get(request, "op");
  36. if (op.equals("modify")) {
  37. AssetTypeMgr am = new AssetTypeMgr();
  38. boolean re = false;
  39. try {
  40.   re = am.modify(request);
  41. }
  42. catch (ErrMsgException e) {
  43. out.print(StrUtil.Alert(e.getMessage()));
  44. }
  45. if (re) {
  46. //out.print(StrUtil.Alert_Redirect("操作成功!", "officeequip_type_list.jsp"));
  47. %>
  48.     <script>
  49. window.opener.location.reload();
  50. window.close();
  51. </script>
  52. <% }
  53. }%>
  54. <%
  55. int id = ParamUtil.getInt(request, "id");
  56. AssetTypeDb atd = new AssetTypeDb();
  57. atd = atd.getAssetTypeDb(id);
  58. %>
  59. <table width="494" height="89" border="0" align="center" cellpadding="0" cellspacing="0">
  60.   <tr> 
  61.     <td height="23" valign="bottom" background="../images/top-right.gif" class="right-title">&nbsp;&nbsp;<span>修改资产类别</span></td>
  62.   </tr>
  63.   <tr> 
  64.     <td valign="top" background="../images/tab-b-back.gif"><table width="102%">
  65.       <form action="?op=modify" method="post" name="form1" id="form1" onSubmit="">
  66.         <tbody>
  67.           <tr>
  68.             <td align="right" width="23%">资产类别:</td>
  69.             <td width="30%"><input maxlength="100" name="name" value="<%=atd.getName()%>" /></td>
  70.             <td align="right" width="17%"></td>
  71.             <td width="30%"><input name="id" value="<%=atd.getId()%>" type=hidden></td>
  72.           </tr>
  73.           <tr>
  74.             <td align="right">净残值率:</td>
  75.             <td><input maxlength="10" value="<%=atd.getDepreciationRate()%>" name="depreciationRate" /></td>
  76.             <td align="right">折旧年限:</td>
  77.             <td><input maxlength="9" value="<%=atd.getDepreciationYears()%>" name="depreciationYears" /></td>
  78.           </tr>
  79.           <tr>
  80.             <td> </td>
  81.             <td colspan="3">资产月折旧率是按资产购置时间的下个月开始计算折旧</td>
  82.           </tr>
  83.           <tr>
  84.             <td align="right">备 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注:</td>
  85.             <td colspan="3"><textarea name="abstracts" value="<%=atd.getAbstracts()%>"></textarea></td>
  86.           </tr>
  87.           <tr>
  88.             <td colspan="4" align="center"><input name="button2" type="submit" class="button1" value="确  定">
  89.                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  90.                 <INPUT name="button" type="button" class="button1" onClick="window.close()" value="取  消">
  91.                               </td>
  92.             </tr>
  93.         </tbody>
  94.       </form>
  95.     </table></td>
  96.   </tr>
  97. </table>
  98. <br>
  99. <br>
  100. </body>
  101. </html>