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

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. <%
  5. Request m_request = new Request(request);
  6. int iSysDirID = m_request.GetInt("SysDirID");
  7. int intErrandApplyID = m_request.GetInt("ID");
  8. if(intErrandApplyID<1)
  9. {
  10. %>
  11. <script language="JavaScript" type="text/JavaScript">
  12. alert("请选择正确的出差申请,修改失败!");
  13. history.back();
  14. </script>
  15. <%
  16. }
  17. else
  18. {
  19. Vector vt = ErrandApplyManager.getRecordByID(intErrandApplyID);
  20. if(vt.size()==1)
  21. {
  22. %>
  23. <html>
  24. <head>
  25. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  26. <title>出差审批管理-- GForce OA 2.0</title>
  27. <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
  28. <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
  29. <script language="JavaScript" type="text/javascript">
  30. function checkEditErrandApply()
  31. {
  32.        if(document.EditErrandApply.CompanyTo.value=="")
  33.     {
  34.         alert("请输入出差目的单位名称!");
  35.         document.EditErrandApply.CompanyTo.focus();
  36.         return false;
  37.     }
  38. }
  39. </script>
  40. </head>
  41. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  42. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  43.     <tr>
  44.         <td align="center" valign="top"><p>&nbsp;</p>
  45.             <form name="EditErrandApply" action="/Operation/EditErrandApplyCheckAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return checkEditErrandApply();">
  46.             <table  border="0" cellpadding="0" cellspacing="0" width="90%">
  47.                 <tr>
  48.                     <td align="right" valign="middle"><font color="#0A0A0A">目的单位名称:</font></td>
  49.                     <td align="left" valign="middle" nowrap>
  50.                         <input name="ID" type="Hidden" value="<%=((Vector)vt.get(0)).get(0).toString()%>" >
  51.                         <input name="SysDirID" type="Hidden" value="<%=((Vector)vt.get(0)).get(14).toString()%>" >
  52.                         <input name="ApplyUserID" type="hidden" value="<%=((Vector)vt.get(0)).get(11).toString()%>">
  53.                         <input name="ConfirmUserID" type="hidden" value="<%=((Vector)vt.get(0)).get(13).toString()%>">
  54.                         <input name="ApplyTime" type="hidden" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(12).toString(),"yyyy-MM-dd HH:mm:ss")%>">
  55.                         <input name="RealStartTime" type="hidden" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"yyyy-MM-dd HH:mm:ss")%>">
  56.                         <input name="PlanStartTime" type="hidden" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(1).toString(),"yyyy-MM-dd HH:mm:ss")%>">
  57.                         <input name="RealEndTime" type="hidden" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(4).toString(),"yyyy-MM-dd HH:mm:ss")%>">
  58.                         <input name="PlanEndTime" type="hidden" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"yyyy-MM-dd HH:mm:ss")%>">
  59.                         <input name="CompanyTo" type="text" maxlength="150" size="37" value="<%=((Vector)vt.get(0)).get(5).toString()%>">
  60.                     </td>
  61.                 </tr>
  62.                 <tr>
  63.                     <td align="right" valign="middle"><font color="#0A0A0A">目的城市:</font></td>
  64.                     <td align="left" valign="middle" nowrap>
  65.                         <input name="CityTo" type="text" maxlength="60" size="37" value="<%=((Vector)vt.get(0)).get(6).toString()%>">
  66.                     </td>
  67.                 </tr>
  68.                 <tr>
  69.                     <td align="right" valign="middle"><font color="#0A0A0A">出差事由:</font></td>
  70.                     <td align="left" valign="middle" nowrap>
  71.                         <input name="ErrandTitle" type="text" maxlength="150" size="37" value="<%=((Vector)vt.get(0)).get(7).toString()%>">
  72.                     </td>
  73.                 </tr>
  74.                 <tr>
  75.                     <td align="right" valign="middle"><font color="#0A0A0A">出差事由描述:</font></td>
  76.                     <td align="left" valign="middle" nowrap>
  77.                       <textarea name="ErrandContent" cols="30" rows="2"><%=((Vector)vt.get(0)).get(8).toString()%></textarea>
  78.                     </td>
  79.                 </tr>
  80.                 <tr>
  81.                     <td align="right" valign="middle"><font color="#0A0A0A">出差人员:</font></td>
  82.                     <td align="left" valign="middle" nowrap>
  83.                         <input name="Personnels" type="text" maxlength="200" size="37" value="<%=((Vector)vt.get(0)).get(9).toString()%>">
  84.                     </td>
  85.                 </tr>
  86.                <tr>
  87.                     <td align="right" valign="middle"><font color="#0A0A0A">备注:</font></td>
  88.                     <td align="left" valign="middle" nowrap>
  89.                       <textarea name="Remark" cols="30" rows="2"><%=((Vector)vt.get(0)).get(10).toString()%></textarea>
  90.                     </td>
  91.                 </tr>
  92.                  <tr>
  93.                     <td align="right" valign="middle">&nbsp;</td>
  94.                     <td align="left" valign="middle" nowrap>
  95.                     </td>
  96.                 </tr>
  97.                 <tr>
  98.                     <td align="right" valign="middle">&nbsp;</td>
  99.                     <td align="left" valign="middle" nowrap>
  100.                         <input type="submit" value="修改">&nbsp;&nbsp; <input type="reset" value="重填">&nbsp;&nbsp; <input type="button" value="返回" onclick="window.location='ErrandApplyCheckManage.jsp?SysDirID=<%=iSysDirID%>';">
  101.                    </td>
  102.                 </tr>
  103.             </table>
  104.             </form>
  105.         </td>
  106.     </tr>
  107. </table>
  108. </body>
  109. </html>
  110. <%
  111. }
  112. else
  113. {
  114. %>
  115. <script language="JavaScript" type="text/JavaScript">
  116. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  117. history.back();
  118. </script>
  119. <%
  120. }
  121. }
  122. %>