AddErrandApply.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:19k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>出差申请管理-- GForce OA 2.0</title>
- <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
- <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
- <script language="JavaScript" type="text/javascript">
- function checkAddErrandApply()
- {
- if(document.AddErrandApply.CompanyTo.value=="")
- {
- alert("请输入出差目的单位名称!");
- document.AddErrandApply.CompanyTo.focus();
- return false;
- }
- if(!isDate(document.AddErrandApply.PlanStartDateD.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.AddErrandApply.PlanStartDateD.focus();
- return false;
- }
- if(!isDate(document.AddErrandApply.PlanEndDateD.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.AddErrandApply.PlanEndDateD.focus();
- return false;
- }
- for(var i=0;i<parseInt(document.AddErrandApply.ApproveLevel.selectedIndex)+1;i++)
- {
- if(parseInt(eval("document.AddErrandApply.ApproveUserID" + (i+1)).value)<1)
- {
- alert("请选择第" + (i+1) + "级审批用户!");
- eval("document.AddErrandApply.PersonnelName" + (i+1)).focus();
- return false;
- }
- }
- //计划开始时间,结束时间合成
- document.AddErrandApply.PlanStartTime.value = document.AddErrandApply.PlanStartDateD.value + " "+
- document.AddErrandApply.PlanStartDateT.value + ":00:00";
- document.AddErrandApply.PlanEndTime.value = document.AddErrandApply.PlanEndDateD.value + " "+
- document.AddErrandApply.PlanEndDateT.value + ":00:00";
- }
- function PopUpSelectUser(UserName,Number,UserID)
- {
- showx = event.screenX - event.offsetX; // + deltaX;
- showy = event.screenY - event.offsetY+18; // + deltaY;
- var retval = window.showModalDialog("/SelectUser1.jsp", "","dialogWidth:480px; dialogHeight:408px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; help:no; status:no; directories:yes;scrollbars:yes;Resizable=yes; ");
- if(retval!=null)
- {
- if(retval.indexOf("|!|")>0)
- {
- var strtemp = retval.split("|!|");
- UserName.value=strtemp[1];
- Number.value=strtemp[2];
- UserID.value=strtemp[0];
- }
- }
- }
- </script>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="50" valign="top" background="../images/dy-back.gif">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr valign="middle">
- <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
- <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">出差申请</font></strong></td>
- <td align="right" nowrap="nowrap" valign="bottom">
- <!-- 群增<img src="../images/MulAdd.gif" onMouseOver="this.src='../images/MulAdd_a.gif';" onMouseOut="this.src='../images/MulAdd.gif';" border="0" height="22" width="59"> -->
- <!--<img src="../images/Single.gif" onMouseOver="this.src='../images/Single_a.gif';" onMouseOut="this.src='../images/Single.gif';" border="0" height="22" width="59"> -->
- <!-- 修改<img src="../images/Update.gif" onMouseOver="this.src='../images/Update_a.gif';" onMouseOut="this.src='../images/Update.gif';" border="0" height="22" width="59"> -->
- <!-- 删除<img src="../images/Del.gif" onMouseOver="this.src='../images/Del_a.gif';" onMouseOut="this.src='../images/Del.gif';" border="0" height="22" width="59"> -->
- <!-- 查看<img src="../images/Query.gif" onMouseOver="this.src='../images/Query_a.gif';" onMouseOut="this.src='../images/Query.gif';" border="0" height="22" width="59"> -->
- <!-- 组合查询<img src="../images/GroupQuery.gif" onMouseOver="this.src='../images/GroupQuery_a.gif';" onMouseOut="this.src='../images/GroupQuery.gif';" border="0" height="22" width="79"> -->
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table><br>
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top"><p> </p>
- <%
- Request m_request = new Request(request);
- int iSysDirID = m_request.GetInt("SysDirID");
- int intUserID = m_session.GetInt("UserID");
- %>
- <form name="AddErrandApply" action="/Operation/AddErrandApplyAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return checkAddErrandApply();">
- <table border="0" cellpadding="0" cellspacing="0" width="90%">
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">目的单位名称:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="ApplyUserID" type="hidden" value="<%=intUserID%>">
- <input name="ConfirmUserID" type="hidden" value="<%=intUserID%>">
- <input name="SysDirID" type="hidden" value="<%=iSysDirID%>">
- <input name="CompanyTo" type="text" maxlength="150" size="37">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">目的城市:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="CityTo" type="text" maxlength="60" size="37">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">出差事由:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="ErrandTitle" type="text" maxlength="150" size="37">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">出差事由描述:</font></td>
- <td align="left" valign="middle" nowrap>
- <textarea name="ErrandContent" cols="30" rows="6"></textarea>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">出差人员:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="Personnels" type="text" maxlength="200" size="37">
- <%java.util.Date t_Date = new java.util.Date();%>
- <input name="ApplyTime" type="hidden" value="<%=StringNew.GetDateString(t_Date,"yyyy-MM-dd HH:mm:ss")%>">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">计划开始时间:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="PlanStartTime" type="hidden">
- <input name="PlanStartDateD" type="text" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="12" size="12" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
- <select name="PlanStartDateT">
- <option value="6">6</option>
- <option value="7">7</option>
- <option value="8">8</option>
- <option value="9" selected>9</option>
- <option value="10">10</option>
- <option value="11">11</option>
- <option value="12">12</option>
- <option value="13">13</option>
- <option value="14">14</option>
- <option value="15">15</option>
- <option value="16">16</option>
- <option value="17">17</option>
- <option value="18">18</option>
- <option value="19">19</option>
- <option value="20">20</option>
- </select>
- <font color="#0A0A0A">时</font> </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">计划结束时间:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="PlanEndTime" type="hidden">
- <input name="PlanEndDateD" type="text" onFocus="JavaScript:this.value=fPopUpCalendarDlg();" maxlength="12" size="12" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
- <select name="PlanEndDateT">
- <option value="6">6</option>
- <option value="7">7</option>
- <option value="8">8</option>
- <option value="9">9</option>
- <option value="10">10</option>
- <option value="11">11</option>
- <option value="12">12</option>
- <option value="13">13</option>
- <option value="14">14</option>
- <option value="15">15</option>
- <option value="16">16</option>
- <option value="17" selected>17</option>
- <option value="18">18</option>
- <option value="19">19</option>
- <option value="20">20</option>
- </select>
- <font color="#0A0A0A">时</font> </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">备注:</font></td>
- <td align="left" valign="middle" nowrap>
- <textarea name="Remark" cols="30" rows="3"></textarea>
- </td>
- </tr> <tr>
- <td align="right" valign="middle">审批级别:</td>
- <td align="left" valign="middle" nowrap>
- <select name="ApproveLevel" onchange="for(var i=0;i<7;i++){if(i>this.selectedIndex){eval('document.all.ApproveList' + (i+1)).style.display='none';}else{eval('document.all.ApproveList' + (i+1)).style.display='';}}">
- <option value="1" selected>1级</option>
- <option value="2">2级</option>
- <option value="3">3级</option>
- <option value="4">4级</option>
- <option value="5">5级</option>
- <option value="6">6级</option>
- <option value="7">7级</option>
- </select>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td align="center" valign="middle" nowrap>
- <table border="1" cellpadding="0" cellspacing="0" width="95%">
- <tr bgcolor="<%=m_session.GetString("TitleColor")%>">
- <th align="center" valign="middle" nowrap>级别</th>
- <th align="center" valign="middle" nowrap>员工姓名</th>
- <th align="center" valign="middle" nowrap>员工编号</th>
- </tr>
- <tr ID="ApproveList1">
- <td align="center" valign="middle" nowrap>一级</td>
- <td align="center" valign="middle" nowrap><input name="PersonnelName1" type="text" readonly size="20" onDblClick="PopUpSelectUser(document.AddErrandApply.PersonnelName1,document.AddErrandApply.PersonnelNumber1,document.AddErrandApply.ApproveUserID1);"><input name="ApproveUserID1" type="Hidden" value="0"><a href="" onclick="PopUpSelectUser(document.AddErrandApply.PersonnelName1,document.AddErrandApply.PersonnelNumber1,document.AddErrandApply.ApproveUserID1);return false;"><img src="/images/couple.gif" border='0' title="点击选择用户"></a></td>
- <td align="center" valign="middle" nowrap><input name="PersonnelNumber1" type="text" readonly size="20" onDblClick="PopUpSelectUser(document.AddErrandApply.PersonnelName1,document.AddErrandApply.PersonnelNumber1,document.AddErrandApply.ApproveUserID1);"></td>
- </tr>
- <tr ID="ApproveList2" style="display:none">
- <td align="center" valign="middle" nowrap>二级</td>
- <td align="center" valign="middle" nowrap><input name="PersonnelName2" type="text" readonly size="20" onDblClick="PopUpSelectUser(document.AddErrandApply.PersonnelName2,document.AddErrandApply.PersonnelNumber2,document.AddErrandApply.ApproveUserID2);"><input name="ApproveUserID2" type="Hidden" value="0"><a href="" onClick="PopUpSelectUser(document.AddErrandApply.PersonnelName2,document.AddErrandApply.PersonnelNumber2,document.AddErrandApply.ApproveUserID2);return false;"><img src="/images/couple.gif" border='0' title="点击选择用户"></a></td>
- <td align="center" valign="middle" nowrap><input name="PersonnelNumber2" type="text" readonly size="20" onDblClick="PopUpSelectUser(document.AddErrandApply.PersonnelName1,document.AddErrandApply.PersonnelNumber2,document.AddErrandApply.ApproveUserID1);" onDblClick="PopUpSelectUser(document.AddErrandApply.PersonnelName2,document.AddErrandApply.PersonnelNumber2,document.AddErrandApply.ApproveUserID2);"></td>
- </tr>
- <tr ID="ApproveList3" style="display:none">
- <td align="center" valign="middle" nowrap>三级</td>
- <td align="center" valign="middle" nowrap><input name="PersonnelName3" type="text" readonly size="20" onDblClick="PopUpSelectUser(document.AddErrandApply.PersonnelName3,document.AddErrandApply.PersonnelNumber3,document.AddErrandApply.ApproveUserID3);"><input name="ApproveUserID3" type="Hidden" value="0"><a href="" onClick="PopUpSelectUser(document.AddErrandApply.PersonnelName3,document.AddErrandApply.PersonnelNumber3,document.AddErrandApply.ApproveUserID3);return false;"><img src="/images/couple.gif" border='0' title="点击选择用户"></a></td>
- <td align="center" valign="middle" nowrap><input name="PersonnelNumber3" type="text" readonly size="20" onDblClick="PopUpSelectUser(document.AddErrandApply.PersonnelName3,document.AddErrandApply.PersonnelNumber3,document.AddErrandApply.ApproveUserID3);" onDblClick="PopUpSelectUser(document.AddErrandApply.PersonnelName3,document.AddErrandApply.PersonnelNumber3,document.AddErrandApply.ApproveUserID3);"></td>
- </tr>
- <tr ID="ApproveList4" style="display:none">
- <td align="center" valign="middle" nowrap>四级</td>
- <td align="center" valign="middle" nowrap><input name="PersonnelName4" type="text" readonly size="20" onDblClick="PopUpSelectUser(document.AddErrandApply.PersonnelName4,document.AddErrandApply.PersonnelNumber4,document.AddErrandApply.ApproveUserID4);"><input name="ApproveUserID4" type="Hidden" value="0"><a href="" onClick="PopUpSelectUser(document.AddErrandApply.PersonnelName4,document.AddErrandApply.PersonnelNumber4,document.AddErrandApply.ApproveUserID4);return false;"><img src="/images/couple.gif" border='0' title="点击选择用户"></a></td>
- <td align="center" valign="middle" nowrap><input name="PersonnelNumber4" type="text" readonly size="20" onDblClick="PopUpSelectUser(document.AddErrandApply.PersonnelName4,document.AddErrandApply.PersonnelNumber4,document.AddErrandApply.ApproveUserID4);" onDblClick="PopUpSelectUser(document.AddErrandApply.PersonnelName4,document.AddErrandApply.PersonnelNumber4,document.AddErrandApply.ApproveUserID4);"></td>
- </tr>
- <tr ID="ApproveList5" style="display:none">
- <td align="center" valign="middle" nowrap>五级</td>
- <td align="center" valign="middle" nowrap><input name="PersonnelName5" type="text" readonly size="20" onDblClick="PopUpSelectUser(document.AddErrandApply.PersonnelName5,document.AddErrandApply.PersonnelNumber5,document.AddErrandApply.ApproveUserID5);"><input name="ApproveUserID5" type="Hidden" value="0"><a href="" onClick="PopUpSelectUser(document.AddErrandApply.PersonnelName5,document.AddErrandApply.PersonnelNumber5,document.AddErrandApply.ApproveUserID5);return false;"><img src="/images/couple.gif" border='0' title="点击选择用户"></a></td>
- <td align="center" valign="middle" nowrap><input name="PersonnelNumber5" type="text" readonly size="20" onDblClick="PopUpSelectUser(document.AddErrandApply.PersonnelName5,document.AddErrandApply.PersonnelNumber5,document.AddErrandApply.ApproveUserID5);" onDblClick="PopUpSelectUser(document.AddErrandApply.PersonnelName5,document.AddErrandApply.PersonnelNumber5,document.AddErrandApply.ApproveUserID5);"></td>
- </tr>
- <tr ID="ApproveList6" style="display:none">
- <td align="center" valign="middle" nowrap>六级</td>
- <td align="center" valign="middle" nowrap><input name="PersonnelName6" type="text" readonly size="20" onDblClick="PopUpSelectUser(document.AddErrandApply.PersonnelName6,document.AddErrandApply.PersonnelNumber6,document.AddErrandApply.ApproveUserID6);"><input name="ApproveUserID6" type="Hidden" value="0"><a href="" onClick="PopUpSelectUser(document.AddErrandApply.PersonnelName6,document.AddErrandApply.PersonnelNumber6,document.AddErrandApply.ApproveUserID6);return false;"><img src="/images/couple.gif" border='0' title="点击选择用户"></a></td>
- <td align="center" valign="middle" nowrap><input name="PersonnelNumber6" type="text" readonly size="20" onDblClick="PopUpSelectUser(document.AddErrandApply.PersonnelName6,document.AddErrandApply.PersonnelNumber6,document.AddErrandApply.ApproveUserID6);" onDblClick="PopUpSelectUser(document.AddErrandApply.PersonnelName6,document.AddErrandApply.PersonnelNumber6,document.AddErrandApply.ApproveUserID6);"></td>
- </tr>
- <tr ID="ApproveList7" style="display:none">
- <td align="center" valign="middle" nowrap>七级</td>
- <td align="center" valign="middle" nowrap><input name="PersonnelName7" type="text" readonly size="20" onDblClick="PopUpSelectUser(document.AddErrandApply.PersonnelName7,document.AddErrandApply.PersonnelNumber7,document.AddErrandApply.ApproveUserID7);"><input name="ApproveUserID7" type="Hidden" value="0"><a href="" onClick="PopUpSelectUser(document.AddErrandApply.PersonnelName7,document.AddErrandApply.PersonnelNumber7,document.AddErrandApply.ApproveUserID7);return false;"><img src="/images/couple.gif" border='0' title="点击选择用户"></a></td>
- <td align="center" valign="middle" nowrap><input name="PersonnelNumber7" type="text" readonly size="20" onDblClick="PopUpSelectUser(document.AddErrandApply.PersonnelName7,document.AddErrandApply.PersonnelNumber7,document.AddErrandApply.ApproveUserID7);" onDblClick="PopUpSelectUser(document.AddErrandApply.PersonnelName7,document.AddErrandApply.PersonnelNumber7,document.AddErrandApply.ApproveUserID7);"></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td align="left" valign="middle" nowrap>
- <input type="submit" value="添加">
- <input type="reset" value="重填">
- <input type="button" value="返回" onclick="window.location='ErrandApplyManage.jsp?SysDirID=<%=iSysDirID%>';">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>