📄 division_attendance_time_seting.jsp
字号:
<%
/**
* $RCSfile: employee_training_index.jsp $
* $Revision: 1.0 $
* Date: 2001/05/17 16:59:46 $
* /training/index
*/
%>
<%@ page errorPage="/vnex/ErrorPage.jsp" %>
<%@ page import="com.vnex.intranet.hr.employer_info.value.*"%>
<%@ page import="com.vnex.intranet.hr.employer_info.process.*"%>
<%@ page import="com.vnex.intranet.hr.util.*"%>
<%@ page import="com.vnex.intranet.budget.process.BudgetListDAO " %>
<%@ page import="com.vnex.intranet.budget.process.*" %>
<%@ page import="java.util.*" %>
<jsp:useBean id="divAttTimeProxy" class="com.vnex.intranet.hr.employer_info.proxy.DivAttTimeProxy" scope="application" />
<jsp:useBean id="businessSession" class="com.vnex.intranet.pub.BusinessSession" scope="session" />
<jsp:useBean id="divUtil" class="com.vnex.intranet.budget.process.BudgetListDAO" scope="page" />
<%
//处理同步与T_Division表的数据
System.out.println("\n\n\nEnter jsp*********");
divAttTimeProxy.synchronizeWithDivision();
String strDivisionId = "";
//处理保存修改上下班时间的提交
if(request.getParameter("doStore") != null)
{
System.out.println("\n**********in jsp Store mehtod");
Collection beforeStoreColDivAttTime = divAttTimeProxy.getAllDivAttTime();
Iterator beforeStoreIterAll = beforeStoreColDivAttTime.iterator();
Collection storeAllDivAttTime = new ArrayList();
while( beforeStoreIterAll.hasNext() )
{
System.out.println("\n\n***********Enter while loop");
DivAttTimeValueBean oldDatValue= (DivAttTimeValueBean) beforeStoreIterAll.next();
DivAttTimeValueBean storeDatValue= new DivAttTimeValueBean();
storeDatValue.setDivisionId(oldDatValue.getDivisionId());
String reqStr = "odh"+oldDatValue.getDivisionId();
storeDatValue.setOnDutyHour(new Integer(request.getParameter(reqStr)).intValue());
reqStr = "odm"+oldDatValue.getDivisionId();
storeDatValue.setOnDutyMinute(new Integer(request.getParameter(reqStr)).intValue());
reqStr = "fdh"+oldDatValue.getDivisionId();
storeDatValue.setOffDutyHour(new Integer(request.getParameter(reqStr)).intValue());
reqStr = "fdm"+oldDatValue.getDivisionId();
storeDatValue.setOffDutyMinute(new Integer(request.getParameter(reqStr)).intValue());
storeAllDivAttTime.add(storeDatValue);
}//end while
divAttTimeProxy.storeAllDivAttTime(storeAllDivAttTime);
}
//处理修改上下班模式的提交
if( request.getParameter("changeMode")!= null)
{
System.out.println("*****Enter changMode jsp");
divAttTimeProxy.setOnDutyMode(request.getParameter("onDutyMode"));
divAttTimeProxy.setOffDutyMode(request.getParameter("offDutyMode"));
}
//得到T_Division表的数据列表 Collection.
Collection colDivAttTime = divAttTimeProxy.getAllDivAttTime();
Iterator iterAll = colDivAttTime.iterator();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<jsp:include page="/vnex/page/FORM_HEAD.jsp" />
<script language ="javascript" >
function submitStore(strDivisionId)
{
//alert(strDivisionId);
checkData();
form1.action = "/mainctrl/hr/divAttTimeSeting?doStore=1";
form1.submit();
}
function checkData()
{
}
function changeDutyMode()
{
form1.action = "/mainctrl/hr/divAttTimeSeting?changeMode=1";
form1.submit();
}
</script>
<BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
<script language="JavaScript" src="/vnex/menu/dockmenu_hr.js"></script>
<script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
<DIV align=center>
<form name="form1" method=POST>
<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">
<br>
<!--休假事件表开始 -->
<table width="600" border="1" cellspacing="1" bordercolor="#666666">
<tr bgcolor="#666666">
<td colspan="3"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/hr/main"><font color="#FFFFFF">人力资源</font></a>>>部门考勤时间设置</font></td>
</tr>
<tr>
<td>
<table class=title cellspacing=1 cellpadding=2 border=0 width="600">
<tr bgcolor = "#e0e0e0">
<td width = "300">
当一个员工同时在多个部门担任职务时其规定的上班时间应该是:
</td>
<td width = "300">
当一个员工同时在多个部门担任职务时而且其中有几个部门的上班时间相等,其相应的下班时间应该是:
</td>
</tr>
<tr bgcolor = "#fafafa">
<td width = "300" align = "center">
标准模式:<input type = radio name = "onDutyMode" value = "MIN" onclick = changeDutyMode() <%=divAttTimeProxy.getOnDutyMode().equalsIgnoreCase("MIN")?"checked":""%>> 宽松模式:<input type = radio name = "onDutyMode" onclick = changeDutyMode() value = "MAX" <%=divAttTimeProxy.getOnDutyMode().equalsIgnoreCase("MAX")?"checked":""%>>
</td>
<td width = "300" align = "center">
标准模式:<input type = radio name = "offDutyMode" value = "MAX" onclick = changeDutyMode() <%=divAttTimeProxy.getOffDutyMode().equalsIgnoreCase("MAX")?"checked":""%>> 宽松模式:<input type = radio name = "offDutyMode" onclick = changeDutyMode() value = "MIN" <%=divAttTimeProxy.getOffDutyMode().equalsIgnoreCase("MIN")?"checked":""%>>
</td>
</tr>
<tr bgcolor = "#e0e0e0">
<td colspan = 2>
注:<font class = strong>标准模式</font>为选择多部门的上班时间中较早的上班时间做为员工的规定上班时间,或选择下班时间中的较晚时间做为员工规定的下班时间.<br>
<font class = strong>宽松模式</font>为选择多部门的上班时间中较晚的上班时间做为员工的规定上班时间,或选择下班时间中的较早时间做为员工规定的下班时间.<br>
此设置对所有员工有效.
</td>
</tr>
</table>
<table class=title cellspacing=1 cellpadding=2 border=0 width="600">
<tr>
<td width="200" align="center"><font class=strong>部门</font></td>
<td width="100" align="center"><font class=strong>上班小时</font></td>
<td width="100" align="center"><font class=strong>上班分钟</font></td>
<td width="100" align="center"><font class=strong>下班小时</font></td>
<td width="100" align="center"> <font class=strong>下班分钟</font></td>
</tr>
<%
String color = "";
int intColor = 0;
while(iterAll.hasNext())
{
DivAttTimeValueBean daValue =(DivAttTimeValueBean) iterAll.next();
intColor++;
if( intColor%2 == 0 )
{
color = "#e0e0e0";
}
else
{
color = "#fafafa";
}
%>
<tr bgcolor = "<%=color%>">
<td width="200" align="center">
<%
try
{
out.print(divUtil.divisionName( daValue.getDivisionId()));
strDivisionId += daValue.getDivisionId()+"_";
}
catch(BudgetProcessException e)
{
System.out.println("Exception in jsp:" + e.getMessage());
}
%>
</td>
<td width="100" align="center">
<select name = "odh<%=daValue.getDivisionId()%>">
<%
for(int i = 0; i<= 23 ; i++)
{
if(i == daValue.getOnDutyHour())
{
%>
<option value = '<%=i%>' selected><%=i%></option>
<%
}
else
{
%>
<option value = '<%=i%>' ><%=i%></option>
<%
}
}
%>
</select>
</td>
<td width="100" align="center">
<select name = "odm<%=daValue.getDivisionId()%>">
<%
for(int i = 0; i<= 59 ; i++)
{
if(i == daValue.getOnDutyMinute())
{
%>
<option value = '<%=i%>' selected><%=i%></option>
<%
}
else
{
%>
<option value = '<%=i%>' ><%=i%></option>
<%
}
}
%>
</select>
</td>
<td width="100" align="center">
<select name = "fdh<%=daValue.getDivisionId()%>">
<%
for(int i = 0; i<= 23 ; i++)
{
if(i == daValue.getOffDutyHour())
{
%>
<option value = '<%=i%>' selected><%=i%></option>
<%
}
else
{
%>
<option value = '<%=i%>' ><%=i%></option>
<%
}
}
%>
</select>
</td>
<td width="100" align="center">
<select name = "fdm<%=daValue.getDivisionId()%>">
<%
for(int i = 0; i<= 59 ; i++)
{
if(i == daValue.getOffDutyMinute())
{
%>
<option value = '<%=i%>' selected><%=i%></option>
<%
}
else
{
%>
<option value = '<%=i%>' ><%=i%></option>
<%
}
}
%>
</select>
</td>
</tr>
<%
}
%>
<tr>
<td bgcolor="#fafafa" colspan="5" height="30" align="center">
<input type="button" value="保存" name="B3" onClick=submitStore("<%=strDivisionId%>") class=text>
<input type="reset" value="重置" name="B2" class=text>
</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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -