<%--
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.AttendanceQuitCardVo"
import = "jp.mosp.common.vo.MosPVo"
%><%
AttendanceQuitCardVo vo = (AttendanceQuitCardVo) 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="quitCard">
	<%=HtmlUtility.getMessages(vo)%>
	<jsp:include page="attendanceMenu.jsp" />
	<div id="divTitle"><span id="spnMode"></span></div>
	<div class="Card">
		<table id="tblQuit">
			<thead>
				<tr>
					<th id="thTime" colspan="3">
						<%= CommonConst.NAM_QUIT_TIME %><%= CommonConst.NAM_COMMON_ITEM %>
					</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td class="TitleTd">
						<%= HtmlUtility.getRequiredMark() %><%= AttendanceQuitCardVo.NAM_QUIT_TIME %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<input type="text" class="NumberTextBox" id="<%= AttendanceQuitCardVo.PRM_TXT_QUIT_HOUR %>" name="<%= AttendanceQuitCardVo.PRM_TXT_QUIT_HOUR %>" value="<%= vo.getEscTxtQuitHour() %>" />
						<%=CommonConst.STR_TIME_SEPARATOR%>
						<input type="text" class="NumberTextBox" id="<%= AttendanceQuitCardVo.PRM_TXT_QUIT_MIN %>" name="<%= AttendanceQuitCardVo.PRM_TXT_QUIT_MIN %>" value="<%=vo.getEscTxtQuitMin() %>" />
					</td>
					<td>
						<%= CommonConst.MSG_QUIT_TIME_NEXT_DAY %>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%=AttendanceQuitCardVo.NAM_WORKING_TYPE%><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd" colspan="2">
						<%= vo.getEscLblWorkType() %>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%=AttendanceQuitCardVo.NAM_HALF_HOLIDAY%><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd" colspan="2">
						<select id="<%= AttendanceQuitCardVo.PRM_PLT_HALF_HOLIDAY %>" name="<%= AttendanceQuitCardVo.PRM_PLT_HALF_HOLIDAY %>">
							<option value=""></option>
							<%=HtmlUtility.getSelectOption(vo.aryPltHalfHoliday, vo.getPltHalfHoliday())%>
						</select>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%= AttendanceQuitCardVo.NAM_WORKING_TIME %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd" colspan="2">
						<input type="text" class="NumberTextBox" id="<%= AttendanceQuitCardVo.PRM_TXT_WORK_HOUR %>" name="<%= AttendanceQuitCardVo.PRM_TXT_WORK_HOUR %>" value="<%= vo.getEscTxtWorkHour() %>" />
						<%=CommonConst.NAM_COMMON_TIME %>
						<input type="text" class="NumberTextBox" id="<%= AttendanceQuitCardVo.PRM_TXT_WORK_MIN %>" name="<%= AttendanceQuitCardVo.PRM_TXT_WORK_MIN %>" value="<%=vo.getEscTxtWorkMin() %>" />
						<%=CommonConst.NAM_MINUTES %>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%= AttendanceQuitCardVo.NAM_INTERVAL_TIME %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd" colspan="2">
						<input type="text" class="NumberTextBox" id="<%= AttendanceQuitCardVo.PRM_TXT_BREAK_HOUR %>" name="<%= AttendanceQuitCardVo.PRM_TXT_BREAK_HOUR %>" value="<%= vo.getEscTxtBreakHour() %>" />
						<%=CommonConst.NAM_COMMON_TIME %>
						<input type="text" class="NumberTextBox" id="<%= AttendanceQuitCardVo.PRM_TXT_BREAK_MIN %>" name="<%= AttendanceQuitCardVo.PRM_TXT_BREAK_MIN %>" value="<%=vo.getEscTxtBreakMin() %>" />
						<%=CommonConst.NAM_MINUTES %>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%= AttendanceQuitCardVo.NAM_ACTUAL_WORK_TIME %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd" colspan="2">
						<%= vo.getEscLblActualHour() %>
						<%=CommonConst.NAM_COMMON_TIME %>
						<%= vo.getEscLblActualMin() %>
						<%=CommonConst.NAM_MINUTES %>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%= AttendanceQuitCardVo.NAM_LEAVE_EARLY_REASON %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd" colspan="2">
						<select class="SectionSelect" id="<%= AttendanceQuitCardVo.PRM_PLT_LEAVE_EARLY_REASON %>" name="<%= AttendanceQuitCardVo.PRM_PLT_LEAVE_EARLY_REASON %>">
							<option value=""></option>
							<%=HtmlUtility.getSelectOption(vo.aryPltLeaveEarlyReason, vo.getPltLeaveEarlyReason())%>
						</select>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%= AttendanceQuitCardVo.NAM_LEAVE_EARLY_TIME %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd" colspan="2">
						<input type="text" class="NumberTextBox" id="<%= AttendanceQuitCardVo.PRM_TXT_LEAVE_EARLY_HOUR %>" name="<%= AttendanceQuitCardVo.PRM_TXT_LEAVE_EARLY_HOUR %>" value="<%= vo.getEscTxtLeaveEarlyHour() %>" />
						<%=CommonConst.NAM_COMMON_TIME %>
						<input type="text" class="NumberTextBox" id="<%= AttendanceQuitCardVo.PRM_TXT_LEAVE_EARLY_MIN %>" name="<%= AttendanceQuitCardVo.PRM_TXT_LEAVE_EARLY_MIN %>" value="<%=vo.getEscTxtLeaveEarlyMin() %>" />
						<%=CommonConst.NAM_MINUTES %>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%= AttendanceQuitCardVo.NAM_LEAVE_EARLY_CERTIFICATE %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd" colspan="2">
						<select id="<%= AttendanceQuitCardVo.PRM_PLT_LEAVE_EARLY_CERTIFICATE %>" name="<%= AttendanceQuitCardVo.PRM_PLT_LEAVE_EARLY_CERTIFICATE %>">
							<option value=""></option>
							<%=HtmlUtility.getSelectOption(vo.aryPltLeaveEarlyCertificate, vo.getPltLeaveEarlyCertificate())%>
						</select>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%= AttendanceQuitCardVo.NAM_LEAVE_EARLY_COMMENT %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd" colspan="2">
						<input type="text" class="TextBox" id="<%= AttendanceQuitCardVo.PRM_TXT_LEAVE_EARLY_COMMENT %>" name="<%= AttendanceQuitCardVo.PRM_TXT_LEAVE_EARLY_COMMENT %>" value="<%= vo.getEscTxtLeaveEarlyComment() %>" />
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%= AttendanceQuitCardVo.NAM_OVER_TIME %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd" colspan="2">
						<input type="text" class="NumberTextBox" id="<%= AttendanceQuitCardVo.PRM_TXT_OVER_HOUR %>" name="<%= AttendanceQuitCardVo.PRM_TXT_OVER_HOUR %>" value="<%= vo.getEscTxtOverHour() %>" />
						<%=CommonConst.NAM_COMMON_TIME %>
						<input type="text" class="NumberTextBox" id="<%= AttendanceQuitCardVo.PRM_TXT_OVER_MIN %>" name="<%= AttendanceQuitCardVo.PRM_TXT_OVER_MIN %>" value="<%=vo.getEscTxtOverMin() %>" />
						<%=CommonConst.NAM_MINUTES %>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%= AttendanceQuitCardVo.NAM_WORK_ON_HOLIDAY %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd" colspan="2">
						<input type="text" class="NumberTextBox" id="<%= AttendanceQuitCardVo.PRM_TXT_WORK_ON_HOLIDAY_HOUR %>" name="<%= AttendanceQuitCardVo.PRM_TXT_WORK_ON_HOLIDAY_HOUR %>" value="<%= vo.getEscTxtWorkOnHolidayHour() %>" />
						<%=CommonConst.NAM_COMMON_TIME %>
						<input type="text" class="NumberTextBox" id="<%= AttendanceQuitCardVo.PRM_TXT_WORK_ON_HOLIDAY_MIN %>" name="<%= AttendanceQuitCardVo.PRM_TXT_WORK_ON_HOLIDAY_MIN %>" value="<%=vo.getEscTxtWorkOnHolidayMin() %>" />
						<%=CommonConst.NAM_MINUTES %>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%= AttendanceQuitCardVo.NAM_LATE_NIGHT %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd" colspan="2">
						<input type="text" class="NumberTextBox" id="<%= AttendanceQuitCardVo.PRM_TXT_LATE_NIGHT_HOUR %>" name="<%= AttendanceQuitCardVo.PRM_TXT_LATE_NIGHT_HOUR %>" value="<%= vo.getEscTxtLateNightHour() %>" />
						<%=CommonConst.NAM_COMMON_TIME %>
						<input type="text" class="NumberTextBox" id="<%= AttendanceQuitCardVo.PRM_TXT_LATE_NIGHT_MIN %>" name="<%= AttendanceQuitCardVo.PRM_TXT_LATE_NIGHT_MIN %>" value="<%=vo.getEscTxtLateNightMin() %>" />
						<%=CommonConst.NAM_MINUTES %>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%= AttendanceQuitCardVo.NAM_ALLOWANCE %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="checkTd">
						<div>
							<%= aryAllowance[8][1] %><%=CommonConst.STR_TITLE_SEPARATOR%>
							<%= AttendanceQuitCardVo.getCheckBox(AttendanceQuitCardVo.PRM_CKB_SYOKUJI, AttendanceQuitCardVo.PRM_CKB_SYOKUJI, vo.getEscCkbSyokuji()) %>					
						</div>
						<div>
							<%= aryAllowance[9][1] %><%=CommonConst.STR_TITLE_SEPARATOR%>
							<%= AttendanceQuitCardVo.getCheckBox(AttendanceQuitCardVo.PRM_CKB_CYOKU1, AttendanceQuitCardVo.PRM_CKB_CYOKU1, vo.getEscCkbCyoku1()) %>					
						</div>
						<div>
							<%= aryAllowance[10][1] %><%=CommonConst.STR_TITLE_SEPARATOR%>
							<%= AttendanceQuitCardVo.getCheckBox(AttendanceQuitCardVo.PRM_CKB_CYOKU2, AttendanceQuitCardVo.PRM_CKB_CYOKU2, vo.getEscCkbCyoku2()) %>					
						</div>
						<div>
							<%= aryAllowance[11][1] %><%=CommonConst.STR_TITLE_SEPARATOR%>
							<%= AttendanceQuitCardVo.getCheckBox(AttendanceQuitCardVo.PRM_CKB_CYOKU3, AttendanceQuitCardVo.PRM_CKB_CYOKU3, vo.getEscCkbCyoku3()) %>					
						</div>
					</td>	
					<td class="checkTd">	
						<div>
							<%= aryAllowance[12][1] %><%=CommonConst.STR_TITLE_SEPARATOR%>
							<%= AttendanceQuitCardVo.getCheckBox(AttendanceQuitCardVo.PRM_CKB_HOKA1, AttendanceQuitCardVo.PRM_CKB_HOKA1, vo.getEscCkbHoka1()) %>					
						</div>
						<div>
							<%= aryAllowance[13][1] %><%=CommonConst.STR_TITLE_SEPARATOR%>
							<%= AttendanceQuitCardVo.getCheckBox(AttendanceQuitCardVo.PRM_CKB_HOKA2, AttendanceQuitCardVo.PRM_CKB_HOKA2, vo.getEscCkbHoka2()) %>					
						</div>
						<div>
							<%= aryAllowance[14][1] %><%=CommonConst.STR_TITLE_SEPARATOR%>
							<%= AttendanceQuitCardVo.getCheckBox(AttendanceQuitCardVo.PRM_CKB_HOKA3, AttendanceQuitCardVo.PRM_CKB_HOKA3, vo.getEscCkbHoka3()) %>					
						</div>
						<div>
							<%= aryAllowance[15][1] %><%=CommonConst.STR_TITLE_SEPARATOR%>
							<%= AttendanceQuitCardVo.getCheckBox(AttendanceQuitCardVo.PRM_CKB_HOKA4, AttendanceQuitCardVo.PRM_CKB_HOKA4, vo.getEscCkbHoka4()) %>					
						</div>
						<div>
							<%= aryAllowance[16][1] %><%=CommonConst.STR_TITLE_SEPARATOR%>
							<%= AttendanceQuitCardVo.getCheckBox(AttendanceQuitCardVo.PRM_CKB_HOKA5, AttendanceQuitCardVo.PRM_CKB_HOKA5, vo.getEscCkbHoka5()) %>					
						</div>
					</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, 'K1113','QC0002' ,'')"><%= CommonConst.NAM_DELETE %></button>
	</div>
</div>
<%=HtmlUtility.getFooter(vo)%>
