attendance_check_Off_over_day.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:
电子政务应用
开发平台:
Java
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <BODY text=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <STYLE>
- #ssm2 A {
- FONT-SIZE: 12px; COLOR: black; FONT-FAMILY: verdana; TEXT-DECORATION: none
- }
- #ssm2 A:hover {
- COLOR: red
- }
- </STYLE>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <SCRIPT language=JavaScript1.2>
- function forWardIndex()
- {
- window.location = "/vnex/index.jsp";
- }
- </SCRIPT>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.util.FieldUtil" %>
- <%@ page import = "com.vnex.intranet.attendance.attendance.proxy.AttendanceProxyBean, com.vnex.intranet.attendance.statistic.value.AttendanceStatisticValueBean" %>
- <%@ page import = "com.vnex.intranet.hr.employer_info.proxy.DivAttTimeProxy"%>
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <%
- AttendanceProxyBean attProxy = new AttendanceProxyBean();
- int empId = -1;
- if ( BusinessName.getEmpId() != 0)
- empId = BusinessName.getEmpId();
- AttendanceStatisticValueBean statValue = new AttendanceStatisticValueBean();
- statValue.setStartYear(request.getParameter("lastNotOffYear"));
- statValue.setStartMonth(request.getParameter("lastNotOffMonth"));
- statValue.setStartDay(request.getParameter("lastNotOffDay"));
- String checkOffNotes = " ";
- checkOffNotes = request.getParameter("checkOffNotes");
- %>
- <DIV align=center>
- <form name="form1" method="post" action="">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <TBODY>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center" class="iframestyle" valign="top"> <br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr valign="top">
- <td >
- <table width="100%" cellpadding="0" cellspacing="0">
- <tr>
- <td colspan="6" bgcolor="#666666"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>>><a href="/mainctrl/attendance/attendance/employeeAttendance"><font color="#FFFFFF">登记考勤</font></a>>>下班登记</font>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td colspan="6"></td>
- </tr>
- </table>
- <table class=title width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
- <tr bgcolor="#e0e0e0">
- <td width="25%"><font class=strong> 你好: </font></td>
- <td width="75%"><font class=strong><%=BusinessName.getEmpName()%></font></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="25%"><font class=strong> 您登录的上班时间是:</font>
- </td>
- <%
- Calendar nowTime=Calendar.getInstance();
- int nowHour = 0;
- int nowMinute = 0;
- String amPm = "";
- String whetherCheckOff = "";
- String whetherCheckIn = "";
- String lastNotOffDate = "";
- int lateCount= 0;
- nowHour = nowTime.get( Calendar.HOUR_OF_DAY );
- nowMinute = nowTime.get( Calendar.MINUTE );
- amPm = "";
- if (nowHour < 12 )
- {
- amPm = "AM";
- }
- if( nowHour >= 12)
- {
- amPm = "PM";
- }
- %>
- <td width="75%"> <%=nowHour%>:<%=nowMinute%> <%=amPm%></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="25%"><font class=strong> 您的规定下班时间是:</font>
- </td>
- <%
- DivAttTimeProxy datProxy = new DivAttTimeProxy();
- int setOffDutyHour = datProxy.getOffDutyHour(empId);
- %>
- <td width="75%"> <%=setOffDutyHour%> : <%=datProxy.getOffDutyMinute(empId)%> <%=setOffDutyHour>11?"PM":"AM"%></td>
- </tr>
- <%
- if ( !checkOffNotes.equals(""))
- {
- %>
- <tr valign="top" bgcolor="#fafafa">
- <td width="25%"> <font class=strong> 您的备注是:</font>
- </td>
- <td width="75%"> <%=FieldUtil.filterScriptTag(FieldUtil.filterQuotTag(checkOffNotes))%>
- <%
- }
- attProxy.addOverDayCheckOffRecord( empId,checkOffNotes,statValue );
- %>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td height="30" bgcolor="#e0e0e0" align="center" colspan="2">
- <input onClick="location='/mainctrl/home/index'" type="button" value="返回" name="Button" class="file">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form></DIV>
- </BODY></HTML>