DelDocTempletFields.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:2k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html;charset=gb2312" %>
  2. <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
  3. <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  7. <title>文档模版字段管理-- GForce OA 2.0</title>
  8. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  9. </head>
  10. <%
  11. DocTempletFieldsManager manager = new DocTempletFieldsManager();
  12. Request m_request = new Request(request);
  13. int iSysDirID = m_request.GetInt("SysDirID");
  14. int iTempletID = m_request.GetInt("TempletID");
  15. int intErrCode = 0;
  16. int iTempletFieldsID = m_request.GetInt("ID");
  17. Vector vt = DocTempletFieldsManager.getRecordBySearch(iTempletFieldsID+"","","","","","","","","","","","","","","","","","","","");
  18. if(vt.size()==1)
  19. {
  20. if(iTempletFieldsID<1)
  21. {
  22. %>
  23. <script language="JavaScript" type="text/JavaScript">
  24. alert("请选择正确的字段,删除失败!");
  25. history.back();
  26. </script>
  27. <%
  28. }
  29. else
  30. {
  31. intErrCode = manager.DeleteByID(iTempletFieldsID);
  32. if(intErrCode>=0)
  33. {
  34. %>
  35. <script language="JavaScript" type="text/JavaScript">
  36. alert("字段删除成功!");
  37. window.location="DocTempletFieldsManage.jsp?SysDirID=<%=iSysDirID%>&ID=<%=iTempletID%>";
  38. </script>
  39. <%
  40. }
  41. else
  42. {
  43. %>
  44. <script language="JavaScript" type="text/JavaScript">
  45. alert("未知错误,删除失败,请与管理员联系!");
  46. history.back();
  47. </script>
  48. <%
  49. }
  50. }
  51. }
  52. else
  53. {
  54. %>
  55. <script language="JavaScript" type="text/JavaScript">
  56. alert("该字段不存在,删除失败!");
  57. history.back();
  58. </script>
  59. <%
  60. }
  61. %>
  62. </html>