AddSignType.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:9k
源码类别:
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="/js/changestyle.js"></script>
- <script language="JavaScript" type="text/javascript">
- function checkAddSignType()
- {
- with(document.addsigntype)
- {
- if(TypeName.value=="")
- {
- alert("请输入签到类型名称!");
- TypeName.focus();
- return false;
- }
- StartTime.value=StartTimeHour.options[StartTimeHour.selectedIndex].text + ":" + StartTimeMinute.options[StartTimeMinute.selectedIndex].text;
- EndTime.value=EndTimeHour.options[EndTimeHour.selectedIndex].text + ":" + EndTimeMinute.options[EndTimeMinute.selectedIndex].text;
- if(BeforeBeign.value=="")
- {
- alert("请输入早签到描述!");
- BeforeBeign.focus();
- return false;
- }
- if(AfterEnd.value=="")
- {
- alert("请输入晚签到描述!");
- AfterEnd.focus();
- return false;
- }
- NoSignUserIDs.value="";
- try
- {
- for(var i=0;i<self.selectuser.document.selectuser.userid.length;i++)
- {
- if(self.selectuser.document.selectuser.userid[i].checked)
- {
- NoSignUserIDs.value+="," + self.selectuser.document.selectuser.userid[i].value;
- }
- }
- if(NoSignUserIDs.value.length>0)
- {
- NoSignUserIDs.value = NoSignUserIDs.value.substr(1);
- }
- }
- catch(ex)
- {
- }
- }
- return true;
- }
- </script>
- <style type="text/css">
- <!--
- .imgtd {
- border: 1px solid #0A0A0A;
- }
- -->
- </style>
- </head>
- <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"><p> </p>
- <form name="addsigntype" action="AddSignTypeAction.jsp" method="post" onSubmit="javascript:return checkAddSignType();">
- <table width="90%" border="1" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20%" bgcolor="<%=m_session.GetString("TitleColor")%>">签到类型名称:</td>
- <td width="50%"><input name="TypeName" type="text" id="Title" maxlength="60" size="40"></td>
- <td width="30%" bgcolor="<%=m_session.GetString("TitleColor")%>">不用签到的人员:</td>
- </tr>
- <tr>
- <td bgcolor="<%=m_session.GetString("TitleColor")%>">签到开始时间:</td>
- <td>
- <input type="Hidden" name="StartTime">
- <select name="StartTimeHour">
- <option>00</option>
- <option>01</option>
- <option>02</option>
- <option>03</option>
- <option>04</option>
- <option>05</option>
- <option>06</option>
- <option>07</option>
- <option selected>08</option>
- <option>09</option>
- <option>10</option>
- <option>11</option>
- <option>12</option>
- <option>13</option>
- <option>14</option>
- <option>15</option>
- <option>16</option>
- <option>17</option>
- <option>18</option>
- <option>19</option>
- <option>20</option>
- <option>21</option>
- <option>22</option>
- <option>23</option>
- </select>点
- <select name="StartTimeMinute">
- <option selected>00</option>
- <option>05</option>
- <option>10</option>
- <option>15</option>
- <option>20</option>
- <option>25</option>
- <option>30</option>
- <option>35</option>
- <option>40</option>
- <option>45</option>
- <option>50</option>
- <option>55</option>
- </select>分
- </td>
- <td rowspan="7" style="height:100%;"><iframe id="selectuser" frameborder=0 src="/SelectUser.jsp" width="100%" height="100%" scrolling="auto" style="width:100%;height:100%;"></iframe></td>
- </tr>
- <tr>
- <td bgcolor="<%=m_session.GetString("TitleColor")%>">签到结束时间:</td>
- <td>
- <input type="Hidden" name="EndTime">
- <select name="EndTimeHour">
- <option>00</option>
- <option>01</option>
- <option>02</option>
- <option>03</option>
- <option>04</option>
- <option>05</option>
- <option>06</option>
- <option>07</option>
- <option selected>08</option>
- <option>09</option>
- <option>10</option>
- <option>11</option>
- <option>12</option>
- <option>13</option>
- <option>14</option>
- <option>15</option>
- <option>16</option>
- <option>17</option>
- <option>18</option>
- <option>19</option>
- <option>20</option>
- <option>21</option>
- <option>22</option>
- <option>23</option>
- </select>点
- <select name="EndTimeMinute">
- <option>00</option>
- <option>05</option>
- <option>10</option>
- <option>15</option>
- <option>20</option>
- <option>25</option>
- <option selected>30</option>
- <option>35</option>
- <option>40</option>
- <option>45</option>
- <option>50</option>
- <option>55</option>
- </select>分
- </td>
- </tr>
- <tr>
- <td bgcolor="<%=m_session.GetString("TitleColor")%>">早签到描述:</td>
- <td><input name="BeforeBeign" value="" type="text" maxlength="50" size="30"></td>
- </tr>
- <tr>
- <td bgcolor="<%=m_session.GetString("TitleColor")%>">晚签到描述:</td>
- <td><input name="AfterEnd" value="" type="text" maxlength="50" size="30"></td>
- </tr>
- <tr>
- <td bgcolor="<%=m_session.GetString("TitleColor")%>">签到有效日:</td>
- <td>
- <input type="checkbox" name="WorkDay" value="0">星期天
- <input type="checkbox" name="WorkDay" value="1">星期一
- <input type="checkbox" name="WorkDay" value="2">星期二
- <input type="checkbox" name="WorkDay" value="3">星期三 <br>
- <input type="checkbox" name="WorkDay" value="4">星期四
- <input type="checkbox" name="WorkDay" value="5">星期五
- <input type="checkbox" name="WorkDay" value="6">星期六
- </td>
- </tr>
- <tr>
- <td bgcolor="<%=m_session.GetString("TitleColor")%>">备注:</td>
- <td><textarea name="Remark" cols="30" rows="6"></textarea></td>
- </tr>
- <tr>
- <td>
- <input name="NoSignUserIDs" type="hidden">
- </td>
- <td align="center"><input type="submit" name="Submit" value="添加"><input type="reset" name="Submit2" value="重置">
- <input name="Submit3" type="button" onClick="self.location='SignTypeManage.jsp';" value="返回">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>