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

电子政务应用

开发平台:

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 vLink=#000000 aLink=#000000 link=#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. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  23. <%@ page import = "com.vnex.intranet.attendance.attendance.proxy.AttendanceProxyBean" %>
  24. <%@ page import="com.vnex.intranet.util.FieldUtil" %> 
  25. <%@ page import = "com.vnex.intranet.hr.employer_info.proxy.DivAttTimeProxy"%>
  26. <%
  27.     AttendanceProxyBean attProxy = new AttendanceProxyBean(); 
  28.     int empId = -1;
  29.     if ( BusinessName.getEmpId() != 0)
  30.         empId = BusinessName.getEmpId();
  31.            
  32. %>
  33. <DIV align=center>
  34. <form name="form1" method="post" action="">
  35.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  36.     <TBODY> 
  37.    <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  38.     <TR> 
  39.         <TD colSpan=3 align="center" class="iframestyle" valign="top"> <br>
  40.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  41.             <tr valign="top"> 
  42.               <td >
  43.                 <table width="600" border="0" cellspacing="0" cellpadding="2">
  44.                   <tr> 
  45.                       
  46.                     <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> 
  47.                     </td>
  48.                     </tr>
  49.                     <tr bgcolor="#fafafa"> 
  50.                       <td colspan="6"></td>
  51.                     </tr>
  52.                   </table> 
  53.                  <table width="100%" cellpadding="0" cellspacing="0">
  54.                   
  55.                   <tr align="center" bgcolor="#fafafa"> 
  56.                     <td colspan="6"> 
  57.                       <table class=title width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
  58.                         <tr bgcolor="#e0e0e0"> 
  59.                           <td width="25%"><font class=strong>&nbsp;你好: </font></td>
  60.                           <td width="75%"><font class=strong> <%=BusinessName.getEmpName()%></font></td>
  61.                         </tr>
  62.                         <tr bgcolor="#fafafa"> 
  63.                           <td width="25%"><font class=strong>&nbsp;您登录的上班时间是:</font> 
  64.                           </td>
  65.                           <%
  66.                             Calendar nowTime=Calendar.getInstance();
  67.                             int nowHour = 0;
  68.                             int nowMinute = 0;
  69.                             String amPm = "";
  70.                             String whetherCheckOff = "";
  71.                             String whetherCheckIn = "";
  72.                             String lastNotOffDate = "";
  73.                             int lateCount= 0; 
  74.                             
  75.                             nowHour = nowTime.get( Calendar.HOUR_OF_DAY );
  76.                             nowMinute = nowTime.get( Calendar.MINUTE ); 
  77.                             amPm = "";
  78.                             if (nowHour < 12 )
  79.                             {
  80.                                 amPm = "AM";
  81.                             } 
  82.                             if( nowHour >= 12)
  83.                             {
  84.                                 amPm = "PM";
  85.                             }
  86.                           %>  
  87.                           <td width="75%"><%=nowHour%>:<%=nowMinute%> <%=amPm%></td>
  88.                         </tr>
  89.                         
  90.                         <tr bgcolor="#e0e0e0"> 
  91.                           <td width="25%"><font class=strong>&nbsp;您的规定下班时间是:</font> 
  92.                           </td>
  93.                           <%
  94.                            DivAttTimeProxy datProxy = new DivAttTimeProxy();
  95.                            int setOffDutyHour = datProxy.getOffDutyHour(empId);
  96.                           %>
  97.                           <td width="75%">&nbsp;<%=setOffDutyHour%>&nbsp;:&nbsp;<%=datProxy.getOffDutyMinute(empId)%>&nbsp;&nbsp;<%=setOffDutyHour>11?"PM":"AM"%></td>
  98.                         </tr>
  99.                          <%    
  100.                              String checkOffNotes = " ";
  101.                              checkOffNotes = request.getParameter("checkOffNotes");
  102.                              lateCount = attProxy.calculateEarlyLeaveTime(empId);
  103.                              if(lateCount > 0)
  104.                              {
  105.                                 %>
  106.                                 
  107.                                  <tr valign="top" bgcolor="#fafafa"> 
  108.                           <td width="25%"> <font class=strong>&nbsp;状态:早退时间:</font> 
  109.                           </td>
  110.                          <td width="75%"> 
  111.                                  <%=lateCount%>
  112.                           </td>
  113.                         </tr><%
  114.                                 }
  115.                                 
  116.                                  if ( !checkOffNotes.equals(""))
  117.                              {
  118.                              %>
  119.                         <tr valign="top" bgcolor="#e0e0e0"> 
  120.                           <td width="25%"> <font class=strong>&nbsp;您的备注是:</font> 
  121.                           </td>
  122.                           <td width="75%"> <%=FieldUtil.filterScriptTag(FieldUtil.filterQuotTag(checkOffNotes))%>
  123.                           </td>
  124.                         </tr>
  125.                         <%
  126.                         }
  127.                          attProxy.addCheckOffRecordOnly( empId,checkOffNotes );
  128.                         %>
  129.                         <tr bgcolor="#fafafa"> 
  130.                           <td height="30" bgcolor="#fafafa" align="center" colspan="2"> 
  131.                             <input onClick="location='/mainctrl/home/index'" type="button" value="返回" name="Button" class="file">
  132.                           </td>
  133.                         </tr>
  134.                       </table>
  135.                         </td>
  136.                     </tr>
  137.                     
  138.                   
  139.                   </table>
  140.               </td>
  141.             </tr>
  142.           </table>
  143.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  144. </TD>
  145.     </TR>
  146.   <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  147.     </TBODY> 
  148.   </TABLE>
  149.   <BR>
  150.  <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  151. </form></DIV>
  152. </BODY></HTML>