check_off_only.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:
电子政务应用
开发平台:
Java
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#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>
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <%@ page import = "com.vnex.intranet.attendance.attendance.proxy.AttendanceProxyBean" %>
- <%@ page import="com.vnex.intranet.util.FieldUtil" %>
- <%@ page import = "com.vnex.intranet.hr.employer_info.proxy.DivAttTimeProxy"%>
- <%
- AttendanceProxyBean attProxy = new AttendanceProxyBean();
- int empId = -1;
- if ( BusinessName.getEmpId() != 0)
- empId = BusinessName.getEmpId();
- %>
- <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="600" border="0" cellspacing="0" cellpadding="2">
- <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 width="100%" cellpadding="0" cellspacing="0">
- <tr align="center" bgcolor="#fafafa">
- <td colspan="6">
- <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>
- <%
- String checkOffNotes = " ";
- checkOffNotes = request.getParameter("checkOffNotes");
- lateCount = attProxy.calculateEarlyLeaveTime(empId);
- if(lateCount > 0)
- {
- %>
- <tr valign="top" bgcolor="#fafafa">
- <td width="25%"> <font class=strong> 状态:早退时间:</font>
- </td>
- <td width="75%">
- <%=lateCount%>
- </td>
- </tr><%
- }
- if ( !checkOffNotes.equals(""))
- {
- %>
- <tr valign="top" bgcolor="#e0e0e0">
- <td width="25%"> <font class=strong> 您的备注是:</font>
- </td>
- <td width="75%"> <%=FieldUtil.filterScriptTag(FieldUtil.filterQuotTag(checkOffNotes))%>
- </td>
- </tr>
- <%
- }
- attProxy.addCheckOffRecordOnly( empId,checkOffNotes );
- %>
- <tr bgcolor="#fafafa">
- <td height="30" bgcolor="#fafafa" align="center" colspan="2">
- <input onClick="location='/mainctrl/home/index'" type="button" value="返回" name="Button" class="file">
- </td>
- </tr>
- </table>
- </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>