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

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.     <script language="JavaScript" src="/js/changestyle.js"></script>
  10.     <script language="JavaScript" type="text/javascript">
  11.     function checkAddSignType()
  12.     {
  13.         with(document.addsigntype)
  14.         {
  15.             if(TypeName.value=="")
  16.             {
  17.                 alert("请输入签到类型名称!");
  18.                 TypeName.focus();
  19.                 return false;
  20.             }
  21.             StartTime.value=StartTimeHour.options[StartTimeHour.selectedIndex].text + ":" + StartTimeMinute.options[StartTimeMinute.selectedIndex].text;
  22.             EndTime.value=EndTimeHour.options[EndTimeHour.selectedIndex].text + ":" + EndTimeMinute.options[EndTimeMinute.selectedIndex].text;
  23.             if(BeforeBeign.value=="")
  24.             {
  25.                 alert("请输入早签到描述!");
  26.                 BeforeBeign.focus();
  27.                 return false;
  28.             }
  29.             if(AfterEnd.value=="")
  30.             {
  31.                 alert("请输入晚签到描述!");
  32.                 AfterEnd.focus();
  33.                 return false;
  34.             }
  35.             NoSignUserIDs.value="";
  36.             try
  37.             {
  38.               for(var i=0;i<self.selectuser.document.selectuser.userid.length;i++)
  39.               {
  40.                 if(self.selectuser.document.selectuser.userid[i].checked)
  41.                 {
  42.                   NoSignUserIDs.value+="," + self.selectuser.document.selectuser.userid[i].value;
  43.                 }
  44.               }
  45.               if(NoSignUserIDs.value.length>0)
  46.               {
  47.                 NoSignUserIDs.value = NoSignUserIDs.value.substr(1);
  48.               }
  49.             }
  50.             catch(ex)
  51.             {
  52.             }
  53.         }
  54.         return true;
  55.     }
  56.     </script>
  57.     <style type="text/css">
  58.       <!--
  59.       .imgtd {
  60.           border: 1px solid #0A0A0A;
  61.       }
  62.       -->
  63.     </style>
  64.   </head>
  65.   <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  66.     <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  67.       <tr>
  68.         <td align="center" valign="top"><p>&nbsp;</p>
  69.           <form name="addsigntype" action="AddSignTypeAction.jsp" method="post" onSubmit="javascript:return checkAddSignType();">
  70.             <table width="90%" border="1" cellspacing="0" cellpadding="0">
  71.               <tr>
  72.                 <td width="20%" bgcolor="<%=m_session.GetString("TitleColor")%>">签到类型名称:</td>
  73.                 <td width="50%"><input name="TypeName" type="text" id="Title" maxlength="60" size="40"></td>
  74.                 <td width="30%" bgcolor="<%=m_session.GetString("TitleColor")%>">不用签到的人员:</td>
  75.               </tr>
  76.               <tr>
  77.                 <td bgcolor="<%=m_session.GetString("TitleColor")%>">签到开始时间:</td>
  78.                 <td>
  79.                   <input type="Hidden" name="StartTime">
  80.                   <select name="StartTimeHour">
  81.                     <option>00</option>
  82.                     <option>01</option>
  83.                     <option>02</option>
  84.                     <option>03</option>
  85.                     <option>04</option>
  86.                     <option>05</option>
  87.                     <option>06</option>
  88.                     <option>07</option>
  89.                     <option selected>08</option>
  90.                     <option>09</option>
  91.                     <option>10</option>
  92.                     <option>11</option>
  93.                     <option>12</option>
  94.                     <option>13</option>
  95.                     <option>14</option>
  96.                     <option>15</option>
  97.                     <option>16</option>
  98.                     <option>17</option>
  99.                     <option>18</option>
  100.                     <option>19</option>
  101.                     <option>20</option>
  102.                     <option>21</option>
  103.                     <option>22</option>
  104.                     <option>23</option>
  105.                   </select>点
  106.                   <select name="StartTimeMinute">
  107.                     <option selected>00</option>
  108.                     <option>05</option>
  109.                     <option>10</option>
  110.                     <option>15</option>
  111.                     <option>20</option>
  112.                     <option>25</option>
  113.                     <option>30</option>
  114.                     <option>35</option>
  115.                     <option>40</option>
  116.                     <option>45</option>
  117.                     <option>50</option>
  118.                     <option>55</option>
  119.                   </select>分
  120.                 </td>
  121.                 <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>
  122.               </tr>
  123.               <tr>
  124.                 <td bgcolor="<%=m_session.GetString("TitleColor")%>">签到结束时间:</td>
  125.                 <td>
  126.                   <input type="Hidden" name="EndTime">
  127.                   <select name="EndTimeHour">
  128.                     <option>00</option>
  129.                     <option>01</option>
  130.                     <option>02</option>
  131.                     <option>03</option>
  132.                     <option>04</option>
  133.                     <option>05</option>
  134.                     <option>06</option>
  135.                     <option>07</option>
  136.                     <option selected>08</option>
  137.                     <option>09</option>
  138.                     <option>10</option>
  139.                     <option>11</option>
  140.                     <option>12</option>
  141.                     <option>13</option>
  142.                     <option>14</option>
  143.                     <option>15</option>
  144.                     <option>16</option>
  145.                     <option>17</option>
  146.                     <option>18</option>
  147.                     <option>19</option>
  148.                     <option>20</option>
  149.                     <option>21</option>
  150.                     <option>22</option>
  151.                     <option>23</option>
  152.                   </select>点
  153.                   <select name="EndTimeMinute">
  154.                     <option>00</option>
  155.                     <option>05</option>
  156.                     <option>10</option>
  157.                     <option>15</option>
  158.                     <option>20</option>
  159.                     <option>25</option>
  160.                     <option selected>30</option>
  161.                     <option>35</option>
  162.                     <option>40</option>
  163.                     <option>45</option>
  164.                     <option>50</option>
  165.                     <option>55</option>
  166.                   </select>分
  167.                 </td>
  168.               </tr>
  169.               <tr>
  170.                 <td bgcolor="<%=m_session.GetString("TitleColor")%>">早签到描述:</td>
  171.                 <td><input name="BeforeBeign" value="" type="text" maxlength="50" size="30"></td>
  172.               </tr>
  173.               <tr>
  174.                 <td bgcolor="<%=m_session.GetString("TitleColor")%>">晚签到描述:</td>
  175.                 <td><input name="AfterEnd" value="" type="text" maxlength="50" size="30"></td>
  176.               </tr>
  177.               <tr>
  178.                 <td bgcolor="<%=m_session.GetString("TitleColor")%>">签到有效日:</td>
  179.                 <td>
  180.                   <input type="checkbox" name="WorkDay" value="0">星期天&nbsp;
  181.                   <input type="checkbox" name="WorkDay" value="1">星期一&nbsp;
  182.                   <input type="checkbox" name="WorkDay" value="2">星期二&nbsp;
  183.                   <input type="checkbox" name="WorkDay" value="3">星期三&nbsp;<br>
  184.                   <input type="checkbox" name="WorkDay" value="4">星期四&nbsp;
  185.                   <input type="checkbox" name="WorkDay" value="5">星期五&nbsp;
  186.                   <input type="checkbox" name="WorkDay" value="6">星期六&nbsp;
  187.                 </td>
  188.               </tr>
  189.               <tr>
  190.                 <td bgcolor="<%=m_session.GetString("TitleColor")%>">备注:</td>
  191.                 <td><textarea name="Remark" cols="30" rows="6"></textarea></td>
  192.               </tr>
  193.               <tr>
  194.                 <td>
  195.                   <input name="NoSignUserIDs" type="hidden">
  196.                 </td>
  197.                 <td align="center"><input type="submit" name="Submit" value="添加"><input type="reset" name="Submit2" value="重置">
  198.                   <input name="Submit3" type="button" onClick="self.location='SignTypeManage.jsp';" value="返回">
  199.                 </td>
  200.               </tr>
  201.             </table>
  202.           </form>
  203.         </td>
  204.       </tr>
  205.     </table>
  206.   </body>
  207. </html>