<%--
/*
 * MosP - Mind Open Source Project         http://www.mosp.jp/
 * Copyright (C) 1987-2009 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       = "256kb"
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.payroll.vo.CompileAmendmentCardVo"
%><%
CompileAmendmentCardVo vo = (CompileAmendmentCardVo)request.getAttribute(MospConst.ATT_VO);
String[][] aryHolidayReason = vo.getAryHolidayReason();
String[][] aryAllowance 	= vo.getAryAllowance();
%>
<%=HtmlUtility.getHeader(vo)%>
<%= vo.getSubTitle(vo.SUB_TITLE, vo.CMD_MENU_PAYROLL, vo.CMD_ATT_CALCULATE_MENU ,vo.ATT_CALCULATE_MENU_TITLE) %>
<div class="Body" id="AmendmentCard">
	<%=HtmlUtility.getMessages(vo)%>
	<div class="divInfo">
		<table id="tblBasis">
			<tbody>
				<tr>
					<td id="tdKCode">
						<%= CommonConst.NAM_K_CODE %><%= CommonConst.STR_TITLE_SEPARATOR %><%= vo.getEscLblKCode() %>
					</td>
					<td id="tdKName">
						<%= CommonConst.NAM_K_NAME %><%= CommonConst.STR_TITLE_SEPARATOR %><%= vo.getEscLblKName() %>
					</td>
					<td id="tdSection">
						<%= CompileAmendmentCardVo.NAM_SECTION %><%= CommonConst.STR_TITLE_SEPARATOR %><%= vo.getEscLblSection() %>
					</td>
					<td id="tdDate">
						<%= CompileAmendmentCardVo.NAM_CALCULATE_TARGET %><%= CommonConst.STR_TITLE_SEPARATOR %><%= vo.getEscLblSelectDate() %>
					</td>
					<td id="tdButton">
						<button type="button" class="ExecuteButton" onclick="doSubmit(document.form, 'P1042')">
							<%= CommonConst.NAM_TO_LIST %>
						</button>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
	<div class="Card">
		<div id="divTb">
<!--	左	-->
			<div id="leftTb">
				<table>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%=CompileAmendmentCardVo.NAM_PRESENCE%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_PRESENCE %>" name="<%= CompileAmendmentCardVo.PRM_TXT_PRESENCE %>" value="<%= vo.getEscTxtPresence() %>" />
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%=CompileAmendmentCardVo.NAM_PRESENCE_NUMBER%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_PRESENCE_NUMBER %>" name="<%= CompileAmendmentCardVo.PRM_TXT_PRESENCE_NUMBER %>" value="<%= vo.getEscTxtPresenceNumber() %>" />
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%=CompileAmendmentCardVo.NAM_WORK_TIME%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_WORK_HOUR %>" name="<%= CompileAmendmentCardVo.PRM_TXT_WORK_HOUR %>" value="<%= vo.getEscTxtWorkHour() %>" />
							<%=CommonConst.NAM_COMMON_TIME %>
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_WORK_MIN %>"  name="<%= CompileAmendmentCardVo.PRM_TXT_WORK_MIN %>"  value="<%= vo.getEscTxtWorkMin() %>"  />
							<%=CommonConst.NAM_MINUTES %>
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%=CompileAmendmentCardVo.NAM_BREAK_TIME%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_BREAK_HOUR %>" name="<%= CompileAmendmentCardVo.PRM_TXT_BREAK_HOUR %>" value="<%= vo.getEscTxtBreakHour() %>" />
							<%=CommonConst.NAM_COMMON_TIME %>
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_BREAK_MIN %>"  name="<%= CompileAmendmentCardVo.PRM_TXT_BREAK_MIN %>"  value="<%= vo.getEscTxtBreakMin() %>"  />
							<%=CommonConst.NAM_MINUTES %>
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= aryHolidayReason[0][1] %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_PAID_HOLIDAY %>" name="<%= CompileAmendmentCardVo.PRM_TXT_PAID_HOLIDAY %>" value="<%= vo.getEscTxtPaidHoliday() %>" />
							<%=CommonConst.NAM_COMMON_DAY %>
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= aryHolidayReason[1][1] %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_PARTICULAR_HOLIDAY %>" name="<%= CompileAmendmentCardVo.PRM_TXT_PARTICULAR_HOLIDAY %>" value="<%= vo.getEscTxtParticularHoliday() %>" />
							<%=CommonConst.NAM_COMMON_DAY %>
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= aryHolidayReason[2][1] %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_ABSENCE %>" name="<%= CompileAmendmentCardVo.PRM_TXT_ABSENCE %>" value="<%= vo.getEscTxtAbsence() %>" />
							<%=CommonConst.NAM_COMMON_DAY %>
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= aryHolidayReason[3][1] %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_SICK %>" name="<%= CompileAmendmentCardVo.PRM_TXT_SICK %>" value="<%= vo.getEscTxtSick() %>" />
							<%=CommonConst.NAM_COMMON_DAY %>
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= aryHolidayReason[4][1] %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_COMPENSATION_DAY %>" name="<%= CompileAmendmentCardVo.PRM_TXT_COMPENSATION_DAY %>" value="<%= vo.getEscTxtCompensationDay() %>" />
							<%=CommonConst.NAM_COMMON_DAY %>
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= aryHolidayReason[5][1] %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_TRANSFER %>" name="<%= CompileAmendmentCardVo.PRM_TXT_TRANSFER %>" value="<%= vo.getEscTxtTransfer() %>" />
							<%=CommonConst.NAM_COMMON_DAY %>
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= CompileAmendmentCardVo.NAM_OTHER %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_OTHER %>" name="<%= CompileAmendmentCardVo.PRM_TXT_OTHER %>" value="<%= vo.getEscTxtOther() %>" />
							<%=CommonConst.NAM_COMMON_DAY %>
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= CompileAmendmentCardVo.NAM_LEAVE_AND_LATE %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_LEAVE_AND_LATE %>" name="<%= CompileAmendmentCardVo.PRM_TXT_LEAVE_AND_LATE %>" value="<%= vo.getEscTxtLeaveAndLate() %>" />
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= CompileAmendmentCardVo.NAM_LEAVE_AND_LATE_TIME %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_LEAVE_AND_LATE_HOUR %>" name="<%= CompileAmendmentCardVo.PRM_TXT_LEAVE_AND_LATE_HOUR %>" value="<%= vo.getEscTxtLeaveAndLateHour() %>" />
							<%=CommonConst.NAM_COMMON_TIME %>
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_LEAVE_AND_LATE_MIN %>"  name="<%= CompileAmendmentCardVo.PRM_TXT_LEAVE_AND_LATE_MIN %>"  value="<%= vo.getEscTxtLeaveAndLateMin() %>"  />
							<%=CommonConst.NAM_MINUTES %>
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= CompileAmendmentCardVo.NAM_OVER_TIME %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_OVER_HOUR %>" name="<%= CompileAmendmentCardVo.PRM_TXT_OVER_HOUR %>" value="<%= vo.getEscTxtOverHour() %>" />
							<%=CommonConst.NAM_COMMON_TIME %>
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_OVER_MIN %>"  name="<%= CompileAmendmentCardVo.PRM_TXT_OVER_MIN %>"  value="<%= vo.getEscTxtOverMin() %>"  />
							<%=CommonConst.NAM_MINUTES %>
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%=CompileAmendmentCardVo.NAM_WORK_ON_HOLIDAY_TIME%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_WORK_ON_HOLIDAY_HOUR %>" name="<%= CompileAmendmentCardVo.PRM_TXT_WORK_ON_HOLIDAY_HOUR %>" value="<%= vo.getEscTxtWorkOnHolidayHour() %>" />
							<%=CommonConst.NAM_COMMON_TIME %>
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_WORK_ON_HOLIDAY_MIN %>"  name="<%= CompileAmendmentCardVo.PRM_TXT_WORK_ON_HOLIDAY_MIN %>"  value="<%= vo.getEscTxtWorkOnHolidayMin() %>"  />
							<%=CommonConst.NAM_MINUTES %>
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%=CompileAmendmentCardVo.NAM_LATE_NIGHT_TIME%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_LATE_NIGHT_HOUR %>" name="<%= CompileAmendmentCardVo.PRM_TXT_LATE_NIGHT_HOUR %>" value="<%= vo.getEscTxtLateNightHour() %>" />
							<%=CommonConst.NAM_COMMON_TIME %>
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_LATE_NIGHT_MIN %>"  name="<%= CompileAmendmentCardVo.PRM_TXT_LATE_NIGHT_MIN %>"  value="<%= vo.getEscTxtLateNightMin() %>"  />
							<%=CommonConst.NAM_MINUTES %>
						</td>
					</tr>
				</table>
			</div>				
<!--	右	-->
			<div id="rightTb">
				<table>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%=CompileAmendmentCardVo.NAM_PERFECT_ATTENDANCE%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<select class="FlagSelect" id="<%= CompileAmendmentCardVo.PRM_PLT_PERFECT_ATTENDANCE %>" name="<%= CompileAmendmentCardVo.PRM_PLT_PERFECT_ATTENDANCE %>">
							<%=HtmlUtility.getSelectOption(vo.aryPerfectAttendanceFlag, vo.getPltPerfectAttendance())%>
							</select>
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= aryAllowance[8 ][1] %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_SYOKUJI %>" name="<%= CompileAmendmentCardVo.PRM_TXT_SYOKUJI %>" value="<%= vo.getEscTxtSyokuji() %>" />
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= aryAllowance[9 ][1] %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_CYOKU1 %>" name="<%= CompileAmendmentCardVo.PRM_TXT_CYOKU1 %>" value="<%= vo.getEscTxtCyoku1() %>" />
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= aryAllowance[10][1] %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_CYOKU2 %>" name="<%= CompileAmendmentCardVo.PRM_TXT_CYOKU2 %>" value="<%= vo.getEscTxtCyoku2() %>" />
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= aryAllowance[11][1] %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_CYOKU3 %>" name="<%= CompileAmendmentCardVo.PRM_TXT_CYOKU3 %>" value="<%= vo.getEscTxtCyoku3() %>" />
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= aryAllowance[12][1] %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_HOKA1 %>" name="<%= CompileAmendmentCardVo.PRM_TXT_HOKA1 %>" value="<%= vo.getEscTxtHoka1() %>" />
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= aryAllowance[13][1] %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_HOKA2 %>" name="<%= CompileAmendmentCardVo.PRM_TXT_HOKA2 %>" value="<%= vo.getEscTxtHoka2() %>" />
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= aryAllowance[14][1] %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_HOKA3 %>" name="<%= CompileAmendmentCardVo.PRM_TXT_HOKA3 %>" value="<%= vo.getEscTxtHoka3() %>" />
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= aryAllowance[15][1] %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_HOKA4 %>" name="<%= CompileAmendmentCardVo.PRM_TXT_HOKA4 %>" value="<%= vo.getEscTxtHoka4() %>" />
						</td>
					</tr>
					<tr>
						<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= aryAllowance[16][1] %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%= CompileAmendmentCardVo.PRM_TXT_HOKA5 %>" name="<%= CompileAmendmentCardVo.PRM_TXT_HOKA5 %>" value="<%= vo.getEscTxtHoka5() %>" />
						</td>
					</tr>
<!--	2008/10/16	m.yoshida	2時間年休	次期Verにて対応 -->
<!--
					<tr>
						<td class="TitleTd"><%//HtmlUtility.getRequiredMark()%><%// CompileAmendmentCardVo.NAM_2HOUR_HOLIDAY %><%//CommonConst.STR_TITLE_SEPARATOR%></td>
						<td class="InputTd">
							<input type="text" class="NumberTextBox" id="<%// CompileAmendmentCardVo.PRM_TXT_2HOUR_HOLIDAY %>" name="<%// CompileAmendmentCardVo.PRM_TXT_2HOUR_HOLIDAY %>" value="<%// vo.getEscTxt2HourHoliday() %>" />
						</td>
					</tr>
-->
				</table>
			</div>
			<div id="dummy"></div>
		</div>
		<input type="hidden" id="<%= CompileAmendmentCardVo.PRM_HID_K_CODE %>" 	name="<%= CompileAmendmentCardVo.PRM_HID_K_CODE %>" value="<%=vo.getHidKCode() %>" 	/>
		<input type="hidden" id="<%= CompileAmendmentCardVo.PRM_HID_YEAR %>" 	name="<%= CompileAmendmentCardVo.PRM_HID_YEAR %>" 	value="<%=vo.getHidYear() %>" 	/>
		<input type="hidden" id="<%= CompileAmendmentCardVo.PRM_HID_MONTH %>" 	name="<%= CompileAmendmentCardVo.PRM_HID_MONTH %>" 	value="<%=vo.getHidMonth() %>" 	/>
	</div>
</div>
<div class="Footer">
	<button type="button" id="btnRegist" class="ExecuteButton" onclick="submitForm(document.form)"><%= CommonConst.NAM_REGIST %></button>
</div>
<%= HtmlUtility.getFooter(vo) %>
