<%--
MosP - Mind Open Source Project         http://www.mosp.jp/
Copyright (C) 1987-2008 MIND Co., Ltd.  http://www.e-mind.co.jp/

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
--%>
<%@ page
language     = "java"
pageEncoding = "Windows-31J"
buffer       = "128kb"
autoFlush    = "false"
errorPage    = "/jsp/common/error.jsp"
%><%@ page
import = "jp.mosp.common.common.MospConst"
import = "jp.mosp.common.common.HtmlUtility"
import = "jp.mosp.common.CommonConst"
import = "jp.mosp.kintai.vo.AttendanceCheckCardVo"
import = "jp.mosp.common.vo.MosPVo"
%><%
AttendanceCheckCardVo vo = (AttendanceCheckCardVo) request.getAttribute(MospConst.ATT_VO);
String[][] aryAllowance = vo.getAryAllowance();
%>
<%= HtmlUtility.getHeader(vo) %>
<%= vo.getSubTitle(vo.SUB_TITLE, vo.getCmdMenuButton(), vo.getCmdListButton(), vo.getNamListButton()) %>
<div class="Body" id="checkCard">
	<%=HtmlUtility.getMessages(vo)%>
	<jsp:include page="attendanceMenu.jsp" />
	<div id="divTitle"><span id="spnMode"></span></div>
	<div class="Card">
		<table id="tblAttend">
			<thead>
				<tr>
					<th id="thLate" colspan="5">
						<%= CommonConst.NAM_WORKING_TABLE_INFO %>
					</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td class="TitleTd">
						<%=AttendanceCheckCardVo.NAM_WORKING_TYPE%><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd" colspan="4">
						<select id="<%= AttendanceCheckCardVo.PRM_PLT_WORK_TYPE %>" name="<%= AttendanceCheckCardVo.PRM_PLT_WORK_TYPE %>">
							<%=HtmlUtility.getSelectOption(vo.aryPltWorkType, vo.getPltWorkType())%>
						</select>
					</td>
				</tr>
				<tr>
					<td class="TitleSTd">
						<%= HtmlUtility.getRequiredMark() %><%=AttendanceCheckCardVo.NAM_START_TIME%><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputSTd">
						<input type="text" class="NumberTextBox" id="<%= AttendanceCheckCardVo.PRM_TXT_START_HOUR %>" name="<%= AttendanceCheckCardVo.PRM_TXT_START_HOUR %>" value="<%= vo.getEscTxtStartHour() %>" />
						<%=CommonConst.STR_TIME_SEPARATOR%>
						<input type="text" class="NumberTextBox" id="<%= AttendanceCheckCardVo.PRM_TXT_START_MIN %>" name="<%= AttendanceCheckCardVo.PRM_TXT_START_MIN %>" value="<%=vo.getEscTxtStartMin() %>" />
					</td>
					<td rowspan="2">
						<span id="Arrow"><%= CommonConst.STR_ARROW %></span>
						
					</td>
					<td class="TitleQTd">
						<%= HtmlUtility.getRequiredMark() %><%= AttendanceCheckCardVo.NAM_QUIT_TIME %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputQTd">
						<input type="text" class="NumberTextBox" id="<%= AttendanceCheckCardVo.PRM_TXT_QUIT_HOUR %>" name="<%= AttendanceCheckCardVo.PRM_TXT_QUIT_HOUR %>" value="<%= vo.getEscTxtQuitHour() %>" />
						<%=CommonConst.STR_TIME_SEPARATOR%>
						<input type="text" class="NumberTextBox" id="<%= AttendanceCheckCardVo.PRM_TXT_QUIT_MIN %>" name="<%= AttendanceCheckCardVo.PRM_TXT_QUIT_MIN %>" value="<%=vo.getEscTxtQuitMin() %>" />
						<%= CommonConst.MSG_QUIT_TIME_NEXT_DAY %>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%=AttendanceCheckCardVo.NAM_START_HALF_HOLIDAY%><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<select id="<%= AttendanceCheckCardVo.PRM_PLT_START_HALF_HOLIDAY %>" name="<%= AttendanceCheckCardVo.PRM_PLT_START_HALF_HOLIDAY %>">
							<option value=""></option>
							<%=HtmlUtility.getSelectOption(vo.aryPltStartHalfHoliday, vo.getPltStartHalfHoliday())%>
						</select>
					</td>

					<td class="TitleTd">
						<%=AttendanceCheckCardVo.NAM_QUIT_HALF_HOLIDAY%><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<select id="<%= AttendanceCheckCardVo.PRM_PLT_QUIT_HALF_HOLIDAY %>" name="<%= AttendanceCheckCardVo.PRM_PLT_QUIT_HALF_HOLIDAY %>">
							<option value=""></option>
							<%=HtmlUtility.getSelectOption(vo.aryPltQuitHalfHoliday, vo.getPltQuitHalfHoliday())%>
						</select>
					</td>
				</tr>

			</tbody>
		</table>
		<table id="tblTime">
			<thead>
				<tr>
					<th id="thTime" colspan="8">
						<%= CommonConst.NAM_COMMON_TIME %><%= CommonConst.NAM_COMMON_ITEM %>
					</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td class="TitleTd">
						<%= AttendanceCheckCardVo.NAM_WORKING_TIME %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<input type="text" class="NumberTextBox" id="<%= AttendanceCheckCardVo.PRM_TXT_WORK_HOUR %>" name="<%= AttendanceCheckCardVo.PRM_TXT_WORK_HOUR %>" value="<%= vo.getEscTxtWorkHour() %>" />
						<%=CommonConst.NAM_COMMON_TIME %>
						<input type="text" class="NumberTextBox" id="<%= AttendanceCheckCardVo.PRM_TXT_WORK_MIN %>" name="<%= AttendanceCheckCardVo.PRM_TXT_WORK_MIN %>" value="<%=vo.getEscTxtWorkMin() %>" />
						<%=CommonConst.NAM_MINUTES %>
					</td>
					<td class="TitleTd">
						<%= AttendanceCheckCardVo.NAM_OVER_TIME %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<input type="text" class="NumberTextBox" id="<%= AttendanceCheckCardVo.PRM_TXT_OVER_HOUR %>" name="<%= AttendanceCheckCardVo.PRM_TXT_OVER_HOUR %>" value="<%= vo.getEscTxtOverHour() %>" />
						<%=CommonConst.NAM_COMMON_TIME %>
						<input type="text" class="NumberTextBox" id="<%= AttendanceCheckCardVo.PRM_TXT_OVER_MIN %>" name="<%= AttendanceCheckCardVo.PRM_TXT_OVER_MIN %>" value="<%=vo.getEscTxtOverMin() %>" />
						<%=CommonConst.NAM_MINUTES %>
					</td>
					<td class="TitleTd">
						<%= AttendanceCheckCardVo.NAM_LATE_NIGHT %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<input type="text" class="NumberTextBox" id="<%= AttendanceCheckCardVo.PRM_TXT_LATE_NIGHT_HOUR %>" name="<%= AttendanceCheckCardVo.PRM_TXT_LATE_NIGHT_HOUR %>" value="<%= vo.getEscTxtLateNightHour() %>" />
						<%=CommonConst.NAM_COMMON_TIME %>
						<input type="text" class="NumberTextBox" id="<%= AttendanceCheckCardVo.PRM_TXT_LATE_NIGHT_MIN %>" name="<%= AttendanceCheckCardVo.PRM_TXT_LATE_NIGHT_MIN %>" value="<%=vo.getEscTxtLateNightMin() %>" />
						<%=CommonConst.NAM_MINUTES %>
					</td>
					<td class="TitleTd"></td>
					<td class="InputTd"></td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%= AttendanceCheckCardVo.NAM_INTERVAL_TIME %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<input type="text" class="NumberTextBox" id="<%= AttendanceCheckCardVo.PRM_TXT_BREAK_HOUR %>" name="<%= AttendanceCheckCardVo.PRM_TXT_BREAK_HOUR %>" value="<%= vo.getEscTxtBreakHour() %>" />
						<%=CommonConst.NAM_COMMON_TIME %>
						<input type="text" class="NumberTextBox" id="<%= AttendanceCheckCardVo.PRM_TXT_BREAK_MIN %>" name="<%= AttendanceCheckCardVo.PRM_TXT_BREAK_MIN %>" value="<%=vo.getEscTxtBreakMin() %>" />
						<%=CommonConst.NAM_MINUTES %>
					</td>
					<td colspan="4">
						&nbsp;
					</td>
					<td class="TitleTd">
						<%= AttendanceCheckCardVo.NAM_ACTUAL_WORK_TIME %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<%= vo.getEscLblActualHour() %>
						<%=CommonConst.NAM_COMMON_TIME %>
						<%= vo.getEscLblActualMin() %>
						<%=CommonConst.NAM_MINUTES %>
					</td>
				</tr>
				
				<tr>
					<td class="TitleTd">
						<%=AttendanceCheckCardVo.NAM_WORK_ON_HOLIDAY%><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<select id="<%= AttendanceCheckCardVo.PRM_PLT_WORK_ON_HOLIDAY %>" name="<%= AttendanceCheckCardVo.PRM_PLT_WORK_ON_HOLIDAY %>">
							<option value=""></option>
							<%=HtmlUtility.getSelectOption(vo.aryPltWorkOnHoliday, vo.getPltWorkOnHoliday())%>
						</select>
					</td>
					<td class="TitleTd">
						<%= AttendanceCheckCardVo.NAM_WORK_ON_HOLIDAY_TIME %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<input type="text" class="NumberTextBox" id="<%= AttendanceCheckCardVo.PRM_TXT_WORK_ON_HOLIDAY_HOUR %>" name="<%= AttendanceCheckCardVo.PRM_TXT_WORK_ON_HOLIDAY_HOUR %>" value="<%= vo.getEscTxtWorkOnHolidayHour() %>" />
						<%=CommonConst.NAM_COMMON_TIME %>
						<input type="text" class="NumberTextBox" id="<%= AttendanceCheckCardVo.PRM_TXT_WORK_ON_HOLIDAY_MIN %>" name="<%= AttendanceCheckCardVo.PRM_TXT_WORK_ON_HOLIDAY_MIN %>" value="<%=vo.getEscTxtWorkOnHolidayMin() %>" />
						<%=CommonConst.NAM_MINUTES %>
					</td>
				</tr>
			</tbody>
		</table>
		<table id="tblLate">
			<thead>
				<tr>
					<th id="thLate" colspan="2">
						<%= CommonConst.NAM_ARRIVE_LATE %><%= CommonConst.NAM_COMMON_ITEM %>
					</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td class="TitleTd">
						<%=AttendanceCheckCardVo.NAM_LATE_REASON%><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<select class="SectionSelect" id="<%= AttendanceCheckCardVo.PRM_PLT_LATE_REASON %>" name="<%= AttendanceCheckCardVo.PRM_PLT_LATE_REASON %>">
							<option value=""></option>
							<%=HtmlUtility.getSelectOption(vo.aryPltLateReason, vo.getPltLateReason())%>
						</select>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%=AttendanceCheckCardVo.NAM_LATE_TIME%><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<input type="text" class="NumberTextBox" id="<%= AttendanceCheckCardVo.PRM_TXT_LATE_HOUR %>" name="<%= AttendanceCheckCardVo.PRM_TXT_LATE_HOUR %>" value="<%= vo.getEscTxtLateHour() %>" />
						<%=CommonConst.NAM_COMMON_TIME %>
						<input type="text" class="NumberTextBox" id="<%= AttendanceCheckCardVo.PRM_TXT_LATE_MIN %>" name="<%= AttendanceCheckCardVo.PRM_TXT_LATE_MIN %>" value="<%=vo.getEscTxtLateMin() %>" />
						<%=CommonConst.NAM_MINUTES %>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%=AttendanceCheckCardVo.NAM_LATE_CERTIFICATE%><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<select id="<%= AttendanceCheckCardVo.PRM_PLT_LATE_CERTIFICATE %>" name="<%= AttendanceCheckCardVo.PRM_PLT_LATE_CERTIFICATE %>">
							<option value=""></option>
							<%=HtmlUtility.getSelectOption(vo.aryPltLateCertificate, vo.getPltLateCertificate())%>
						</select>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%=AttendanceCheckCardVo.NAM_LATE_COMMENT%><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<input type="text" class="TextBox" id="<%= AttendanceCheckCardVo.PRM_TXT_LATE_COMMENT %>" name="<%= AttendanceCheckCardVo.PRM_TXT_LATE_COMMENT %>" value="<%= vo.getEscTxtLateComment() %>" />
					</td>
				</tr>			
			</tbody>
		</table>
		<table id="tblLeave">
			<thead>
				<tr>
					<th id="thLeave" colspan="2">
						<%= CommonConst.NAM_LEAVE_EARLY %><%= CommonConst.NAM_COMMON_ITEM %>
					</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td class="TitleTd">
						<%= AttendanceCheckCardVo.NAM_LEAVE_EARLY_REASON %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<select class="SectionSelect" id="<%= AttendanceCheckCardVo.PRM_PLT_LEAVE_EARLY_REASON %>" name="<%= AttendanceCheckCardVo.PRM_PLT_LEAVE_EARLY_REASON %>">
							<option value=""></option>
							<%=HtmlUtility.getSelectOption(vo.aryPltLeaveEarlyReason, vo.getPltLeaveEarlyReason())%>
						</select>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%= AttendanceCheckCardVo.NAM_LEAVE_EARLY_TIME %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<input type="text" class="NumberTextBox" id="<%= AttendanceCheckCardVo.PRM_TXT_LEAVE_EARLY_HOUR %>" name="<%= AttendanceCheckCardVo.PRM_TXT_LEAVE_EARLY_HOUR %>" value="<%= vo.getEscTxtLeaveEarlyHour() %>" />
						<%=CommonConst.NAM_COMMON_TIME %>
						<input type="text" class="NumberTextBox" id="<%= AttendanceCheckCardVo.PRM_TXT_LEAVE_EARLY_MIN %>" name="<%= AttendanceCheckCardVo.PRM_TXT_LEAVE_EARLY_MIN %>" value="<%=vo.getEscTxtLeaveEarlyMin() %>" />
						<%=CommonConst.NAM_MINUTES %>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%= AttendanceCheckCardVo.NAM_LEAVE_EARLY_CERTIFICATE %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<select id="<%= AttendanceCheckCardVo.PRM_PLT_LEAVE_EARLY_CERTIFICATE %>" name="<%= AttendanceCheckCardVo.PRM_PLT_LEAVE_EARLY_CERTIFICATE %>">
							<option value=""></option>
							<%=HtmlUtility.getSelectOption(vo.aryPltLeaveEarlyCertificate, vo.getPltLeaveEarlyCertificate())%>
						</select>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%= AttendanceCheckCardVo.NAM_LEAVE_EARLY_COMMENT %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<input type="text" class="TextBox" id="<%= AttendanceCheckCardVo.PRM_TXT_LEAVE_EARLY_COMMENT %>" name="<%= AttendanceCheckCardVo.PRM_TXT_LEAVE_EARLY_COMMENT %>" value="<%= vo.getEscTxtLeaveEarlyComment() %>" />
					</td>
				</tr>			
			</tbody>
		</table>
		<table id="tblAllowance">
			<thead>
				<tr>
					<th id="thAllowance" colspan="2">
						<%= CommonConst.NAM_ALLOWANCE %><%= CommonConst.NAM_COMMON_ITEM %>
					</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td class="TitleTd">
						<%= AttendanceCheckCardVo.NAM_ALLOWANCE %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="checkTd">
						<div id="Allowance1">
							<ul>
								<li>
									<%= aryAllowance[8][1] %><%=CommonConst.STR_TITLE_SEPARATOR%>
									<%= AttendanceCheckCardVo.getCheckBox(AttendanceCheckCardVo.PRM_CKB_SYOKUJI, AttendanceCheckCardVo.PRM_CKB_SYOKUJI, vo.getEscCkbSyokuji()) %>					
								</li>
								<li>
									<%= aryAllowance[9][1] %><%=CommonConst.STR_TITLE_SEPARATOR%>
									<%= AttendanceCheckCardVo.getCheckBox(AttendanceCheckCardVo.PRM_CKB_CYOKU1, AttendanceCheckCardVo.PRM_CKB_CYOKU1, vo.getEscCkbCyoku1()) %>					
								</li>
								<li>
									<%= aryAllowance[10][1] %><%=CommonConst.STR_TITLE_SEPARATOR%>
									<%= AttendanceCheckCardVo.getCheckBox(AttendanceCheckCardVo.PRM_CKB_CYOKU2, AttendanceCheckCardVo.PRM_CKB_CYOKU2, vo.getEscCkbCyoku2()) %>					
								</li>
								<li>
									<%= aryAllowance[11][1] %><%=CommonConst.STR_TITLE_SEPARATOR%>
									<%= AttendanceCheckCardVo.getCheckBox(AttendanceCheckCardVo.PRM_CKB_CYOKU3, AttendanceCheckCardVo.PRM_CKB_CYOKU3, vo.getEscCkbCyoku3()) %>							
								</li>
							</ul>
						</div>
						<div id="Allowance2">
							<ul>
								<li>
									<%= aryAllowance[12][1] %><%=CommonConst.STR_TITLE_SEPARATOR%>
									<%= AttendanceCheckCardVo.getCheckBox(AttendanceCheckCardVo.PRM_CKB_HOKA1, AttendanceCheckCardVo.PRM_CKB_HOKA1, vo.getEscCkbHoka1()) %>
								</li>
								<li>
									<%= aryAllowance[13][1] %><%=CommonConst.STR_TITLE_SEPARATOR%>
									<%= AttendanceCheckCardVo.getCheckBox(AttendanceCheckCardVo.PRM_CKB_HOKA2, AttendanceCheckCardVo.PRM_CKB_HOKA2, vo.getEscCkbHoka2()) %>
								</li>
								<li>
									<%= aryAllowance[14][1] %><%=CommonConst.STR_TITLE_SEPARATOR%>
									<%= AttendanceCheckCardVo.getCheckBox(AttendanceCheckCardVo.PRM_CKB_HOKA3, AttendanceCheckCardVo.PRM_CKB_HOKA3, vo.getEscCkbHoka3()) %>
								</li>
								<li>
									<%= aryAllowance[15][1] %><%=CommonConst.STR_TITLE_SEPARATOR%>
									<%= AttendanceCheckCardVo.getCheckBox(AttendanceCheckCardVo.PRM_CKB_HOKA4, AttendanceCheckCardVo.PRM_CKB_HOKA4, vo.getEscCkbHoka4()) %>
								</li>
								<li>
									<%= aryAllowance[16][1] %><%=CommonConst.STR_TITLE_SEPARATOR%>
									<%= AttendanceCheckCardVo.getCheckBox(AttendanceCheckCardVo.PRM_CKB_HOKA5, AttendanceCheckCardVo.PRM_CKB_HOKA5, vo.getEscCkbHoka5()) %>
								</li>
							</ul>
						</div>
					</td>
				</tr>			
			</tbody>
		</table>
		<table id="tblApproval">
			<thead>
				<tr>
					<th id="thApproval" colspan="2">
						<%= CommonConst.NAM_APPROVED %><%= CommonConst.NAM_COMMON_ITEM %>
					</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td class="TitleTd">
						<%= AttendanceCheckCardVo.NAM_APPROVAL_COMMENT %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<%= vo.getEscLblApprovalComment() %>
					</td>
				</tr>			
			</tbody>
		</table>
	</div>
	<div class="Footer">
		<button type="button" class="ExecuteButton" id="btnRegist" onclick="submitForm(document.form)"><%=CommonConst.NAM_REGIST%></button>
		<button type="button" class="ExecuteButton" id="btnDelete" onclick="doSubmitMessage(document.form, 'K1123','QC0002' ,'')"><%= CommonConst.NAM_DELETE %></button>
	</div>
</div>
<%=HtmlUtility.getFooter(vo)%>
