attendance_check_Off_over_day.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:

电子政务应用

开发平台:

Java

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML>
  3. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  4. <BODY text=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  5. <STYLE>
  6. #ssm2 A {
  7. FONT-SIZE: 12px; COLOR: black; FONT-FAMILY: verdana; TEXT-DECORATION: none
  8. }
  9. #ssm2 A:hover {
  10. COLOR: red
  11. }
  12. </STYLE>
  13. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  14. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  15.   <SCRIPT language=JavaScript1.2>
  16. function forWardIndex()
  17. {
  18.     window.location = "/vnex/index.jsp";
  19. }
  20. </SCRIPT>
  21.   
  22. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  23. <%@ page import="com.vnex.intranet.util.FieldUtil" %> 
  24. <%@ page import = "com.vnex.intranet.attendance.attendance.proxy.AttendanceProxyBean, com.vnex.intranet.attendance.statistic.value.AttendanceStatisticValueBean" %>
  25. <%@ page import = "com.vnex.intranet.hr.employer_info.proxy.DivAttTimeProxy"%>
  26. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  27. <%
  28.     AttendanceProxyBean attProxy = new AttendanceProxyBean(); 
  29.     int empId = -1;
  30.     if ( BusinessName.getEmpId() != 0)
  31.        empId = BusinessName.getEmpId();
  32.        
  33.     AttendanceStatisticValueBean statValue = new AttendanceStatisticValueBean();    
  34.     statValue.setStartYear(request.getParameter("lastNotOffYear"));
  35.     statValue.setStartMonth(request.getParameter("lastNotOffMonth"));
  36.     statValue.setStartDay(request.getParameter("lastNotOffDay"));
  37.     
  38.     String checkOffNotes = " ";
  39.     checkOffNotes = request.getParameter("checkOffNotes");
  40.  
  41. %>
  42. <DIV align=center>
  43. <form name="form1" method="post" action="">
  44.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  45.     <TBODY> 
  46.    <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  47.     <TR> 
  48.         <TD colSpan=3 align="center" class="iframestyle" valign="top"> <br>
  49.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  50.             <tr valign="top"> 
  51.               <td >
  52.                  <table width="100%" cellpadding="0" cellspacing="0">
  53.                     <tr> 
  54.                       
  55.                     <td colspan="6" bgcolor="#666666"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>&gt;&gt;<a href="/mainctrl/attendance/attendance/employeeAttendance"><font color="#FFFFFF">登记考勤</font></a>&gt;&gt;下班登记</font> 
  56.                     </td>
  57.                     </tr>
  58.                     <tr bgcolor="#fafafa"> 
  59.                       <td colspan="6"></td>
  60.                     </tr>
  61.                   </table> 
  62.           
  63.                       <table class=title width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
  64.                         <tr bgcolor="#e0e0e0"> 
  65.                           <td width="25%"><font class=strong>&nbsp;你好: </font></td>
  66.                           <td width="75%"><font class=strong><%=BusinessName.getEmpName()%></font></td>
  67.                         </tr>
  68.                         <tr bgcolor="#fafafa"> 
  69.                           <td width="25%"><font class=strong>&nbsp;您登录的上班时间是:</font> 
  70.                           </td>
  71.                           <%
  72.                             Calendar nowTime=Calendar.getInstance();
  73.                             int nowHour = 0;
  74.                             int nowMinute = 0;
  75.                             String amPm = "";
  76.                             String whetherCheckOff = "";
  77.                             String whetherCheckIn = "";
  78.                             String lastNotOffDate = "";
  79.                             int lateCount= 0; 
  80.                             
  81.                             nowHour = nowTime.get( Calendar.HOUR_OF_DAY );
  82.                             nowMinute = nowTime.get( Calendar.MINUTE ); 
  83.                             amPm = "";
  84.                             if (nowHour < 12 )
  85.                             {
  86.                                 amPm = "AM";
  87.                             } 
  88.                             if( nowHour >= 12)
  89.                             {
  90.                                 amPm = "PM";
  91.                             }
  92.                           %>  
  93.                           <td width="75%"> <%=nowHour%>:<%=nowMinute%> <%=amPm%></td>
  94.                         </tr>
  95.                          <tr bgcolor="#e0e0e0"> 
  96.                           <td width="25%"><font class=strong>&nbsp;您的规定下班时间是:</font> 
  97.                           </td>
  98.                           <%
  99.                            DivAttTimeProxy datProxy = new DivAttTimeProxy();
  100.                            int setOffDutyHour = datProxy.getOffDutyHour(empId);
  101.                           %>
  102.                           <td width="75%">&nbsp;<%=setOffDutyHour%>&nbsp;:&nbsp;<%=datProxy.getOffDutyMinute(empId)%>&nbsp;&nbsp;<%=setOffDutyHour>11?"PM":"AM"%></td>
  103.                         </tr>
  104.                          <%
  105.                              if ( !checkOffNotes.equals(""))
  106.                              {
  107.                              %>
  108.                                 
  109.                         <tr valign="top" bgcolor="#fafafa"> 
  110.                           <td width="25%"> <font class=strong>&nbsp;您的备注是:</font> 
  111.                           </td>
  112.                           <td width="75%"> <%=FieldUtil.filterScriptTag(FieldUtil.filterQuotTag(checkOffNotes))%>
  113.                              <% 
  114.                               }
  115.                               
  116.                                attProxy.addOverDayCheckOffRecord( empId,checkOffNotes,statValue );
  117.                              %>
  118.                           </td>
  119.                         </tr>
  120.                         <tr bgcolor="#fafafa"> 
  121.                           <td height="30" bgcolor="#e0e0e0" align="center" colspan="2"> 
  122.                             <input onClick="location='/mainctrl/home/index'" type="button" value="返回" name="Button" class="file">
  123.                           </td>
  124.                         </tr>
  125.                       </table>
  126.                     
  127.               </td>
  128.             </tr>
  129.           </table>
  130.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  131. </TD>
  132.     </TR>
  133.  <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  134.     </TBODY> 
  135.   </TABLE>
  136.   <BR>
  137.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  138. </form></DIV>
  139. </BODY></HTML>