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

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("add")) {
  37. AssetTypeMgr am = new AssetTypeMgr();
  38. boolean re = false;
  39. try {
  40.   re = am.create(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. <table width="494" height="89" border="0" align="center" cellpadding="0" cellspacing="0" class="tableframe">
  54.   <tr> 
  55.     <td height="23" valign="bottom" background="../images/top-right.gif" class="right-title">&nbsp;&nbsp;<span>添加资产类别</span></td>
  56.   </tr>
  57.   <tr> 
  58.     <td valign="top"><table width="100%" bgcolor="#FFFFFF">
  59.       <form action="?op=add" method="post" name="form1" id="form1" onSubmit="">
  60.         <tbody>
  61.           <tr>
  62.             <td align="right" width="20%">类别名称:</td>
  63.             <td width="30%"><input maxlength="100" name="name" /></td>
  64.             <td align="right" width="20%"></td>
  65.             <td width="30%"></td>
  66.           </tr>
  67.           <tr>
  68.             <td align="right">月折旧率:</td>
  69.             <td><input maxlength="10" value="0" name="depreciationRate" /></td>
  70.             <td align="right">资产折旧年限:</td>
  71.             <td><input maxlength="9" value="0" name="depreciationYears" /></td>
  72.           </tr>
  73.           <tr>
  74.             <td> </td>
  75.             <td colspan="3">资产月折旧率是按资产购置时间的下个月开始计算折旧</td>
  76.           </tr>
  77.           <tr>
  78.             <td align="right">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 注:</td>
  79.             <td colspan="3"><textarea name="abstracts"></textarea></td>
  80.           </tr>
  81.           <tr>
  82.             <td colspan="4" align="center"><input name="button2" type="submit" class="button1" value="确  定">
  83.                &nbsp;&nbsp;&nbsp;&nbsp; 
  84.                 <INPUT name="button" type="button" class="button1" onClick="window.close()" value="取  消">
  85.                               </td>
  86.             </tr>
  87.         </tbody>
  88.       </form>
  89.     </table></td>
  90.   </tr>
  91. </table>
  92. <br>
  93. <br>
  94. </body>
  95. </html>