EditSignType.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:11k
源码类别:
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); %>
- <%
- Request m_request = new Request(request);
- int iID = m_request.GetInt("ID");
- int iPage = m_request.GetInt("Page");
- Vector vt = SignTypeManager.getRecordByID(iID);
- String strTypeName="";
- String strRemark="";
- String strNoSignUserIDs = "";
- String strWorkDay = "";
- String strAfterEnd = "";
- String strBeforeBeign = "";
- String strStartTime = "";
- String strEndTime = "";
- try {
- if(vt.size()==1)
- {
- strTypeName=((Vector)vt.get(0)).get(1).toString();
- strStartTime = ((Vector)vt.get(0)).get(2).toString();
- strEndTime = ((Vector)vt.get(0)).get(3).toString();
- strBeforeBeign = ((Vector)vt.get(0)).get(4).toString();
- strAfterEnd = ((Vector)vt.get(0)).get(5).toString();
- strRemark=((Vector)vt.get(0)).get(6).toString();
- strWorkDay = ((Vector)vt.get(0)).get(7).toString();
- strNoSignUserIDs = ((Vector)vt.get(0)).get(8).toString();
- }
- }
- catch (Exception ex) {
- }
- %>
- <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 checkEditSignType()
- {
- with(document.editsigntype)
- {
- 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(StartTime.value>EndTime.value)
- {
- alert("开始签到时间不能比签到结束时间晚!");
- StartTimeHour.focus();
- return false;
- }
- 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="editsigntype" action="EditSignTypeAction.jsp" method="post" onSubmit="javascript:return checkEditSignType();">
- <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="38" value="<%=strTypeName%>"></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" value="<%=strStartTime%>">
- <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>分(原值:<%=strStartTime%>)
- </td>
- <td>
- <%
- if(strNoSignUserIDs.length()>0)
- {
- String[] strNoSignUserID = strNoSignUserIDs.split(",");
- for(int j=0;j<strNoSignUserID.length;j++)
- {
- out.print(UserManager.getPersonnelNameByUserID(Integer.parseInt(strNoSignUserID[j])) + " ");
- }
- }
- else
- {
- out.print(" ");
- }
- %>
- </td>
- </tr>
- <tr>
- <td bgcolor="<%=m_session.GetString("TitleColor")%>">签到结束时间:</td>
- <td>
- <input type="Hidden" name="EndTime" value="<%=strEndTime%>">
- <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>分(原值:<%=strEndTime%>)
- </td>
- <td rowspan="6" 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 name="BeforeBeign" type="text" maxlength="50" size="30" value="<%=strBeforeBeign%>"></td>
- </tr>
- <tr>
- <td bgcolor="<%=m_session.GetString("TitleColor")%>">晚签到描述:</td>
- <td><input name="AfterEnd" type="text" maxlength="50" size="30" value="<%=strAfterEnd%>"></td>
- </tr>
- <tr>
- <td bgcolor="<%=m_session.GetString("TitleColor")%>">签到有效日:</td>
- <td>
- <input type="checkbox" name="WorkDay" value="0" <%=strWorkDay.indexOf("0")>=0?"Checked":""%>>星期天
- <input type="checkbox" name="WorkDay" value="1" <%=strWorkDay.indexOf("1")>=0?"Checked":""%>>星期一
- <input type="checkbox" name="WorkDay" value="2" <%=strWorkDay.indexOf("2")>=0?"Checked":""%>>星期二
- <input type="checkbox" name="WorkDay" value="3" <%=strWorkDay.indexOf("3")>=0?"Checked":""%>>星期三 <br>
- <input type="checkbox" name="WorkDay" value="4" <%=strWorkDay.indexOf("4")>=0?"Checked":""%>>星期四
- <input type="checkbox" name="WorkDay" value="5" <%=strWorkDay.indexOf("5")>=0?"Checked":""%>>星期五
- <input type="checkbox" name="WorkDay" value="6" <%=strWorkDay.indexOf("6")>=0?"Checked":""%>>星期六
- </td>
- </tr>
- <tr>
- <td bgcolor="<%=m_session.GetString("TitleColor")%>">备注:</td>
- <td><textarea name="Remark" cols="30" rows="6"><%=strRemark%></textarea></td>
- </tr>
- <tr>
- <td>
- <input name="NoSignUserIDs" type="hidden"><input name="ID" type="hidden" value="<%=iID%>"><input name="Page" type="hidden" value="<%=iPage%>">
- </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>