<%--
MosP - Mind Open Source Project    http://www.mosp.jp/
Copyright (C) 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       = "32kb"
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.payroll.vo.PaidHolidayOldCardVo"
%><%
PaidHolidayOldCardVo vo = (PaidHolidayOldCardVo)request.getAttribute(MospConst.ATT_VO);
String[][] aryPaidHoliday	= vo.getAryPaidHoliday();
%>
<%= HtmlUtility.getHeader(vo) %>
<%= HtmlUtility.getSubTitle(vo) %>

<%@page import="jp.mosp.common.common.BaseVo"%><div class="Body" id="yukyuPersonalCard">
	<%=HtmlUtility.getMessages(vo)%>
	<div class="Search">
		<table>
			<tr>
				<td>
					<%= vo.NAM_K_CODE %><%= CommonConst.STR_TITLE_SEPARATOR %><%= vo.getEscLblKCode() %>
					<input type="hidden" id="<%= PaidHolidayOldCardVo.PRM_HID_SELECT_K_CODE %>" name="<%= PaidHolidayOldCardVo.PRM_HID_SELECT_K_CODE %>" value="<%= BaseVo.escapeHTML(vo.getHidSelectKCode()) %>" />
				</td>
				<td>
					<%= vo.NAM_K_NAME %><%= CommonConst.STR_TITLE_SEPARATOR %><%= vo.getEscLblKName() %>
				</td>
				<td>
					<%= vo.NAM_STATION %><%= CommonConst.STR_TITLE_SEPARATOR %><%= vo.getEscLblSectionName() %>
				</td>
				<td class="ButtonTd">
					<button type="button" onclick="doSubmit(document.form, 'P1112')">
						<%= CommonConst.NAM_TO_LIST %>
					</button>
				</td>
			</tr>
		</table>
	</div>
	<div class="Card">
		<table >
			<tr>
				<td class="TitleTd"><%= vo.NAM_SELECT_YEAR_MONTH %><%=CommonConst.STR_TITLE_SEPARATOR %></td>
				<td colspan="6">
					<%= BaseVo.escapeHTML(vo.getLblSelectYearMonth()) %>
					<input type="hidden" id="<%= PaidHolidayOldCardVo.PRM_HID_SELECT_YEAR_MONTH %>" name="<%= PaidHolidayOldCardVo.PRM_HID_SELECT_YEAR_MONTH %>" value="<%= BaseVo.escapeHTML(vo.getHidSelectYearMonth()) %>"	/>
				</td>
			</tr>
			<tr>
				<td class="TitleTd">
					&nbsp;
				</td>
				<td class="IndexTd">
					<%= vo.NAM_TOTAL %>
				</td>
				<td class="IndexTd">
					<%= vo.NAM_LAST_YEAR %>
				</td>
				<td class="IndexTd">
					<%= vo.NAM_THIS_YEAR %>
				</td>
			</tr>
			<tr>
				<td class="TotalTitleTd"><%= CommonConst.NAM_CHANGING_BEFORE %><%=CommonConst.STR_TITLE_SEPARATOR %></td>
				<td class="TotalTd">
					<%= BaseVo.escapeHTML(vo.getLblTotalRemain()) %><%= CommonConst.NAM_COMMON_DAY %>
				</td>
				<td class="TotalTd">
					<%= BaseVo.escapeHTML(vo.getLblLastRemain()) %><%= CommonConst.NAM_COMMON_DAY %>
				</td>
				<td class="TotalTd">
					<%= BaseVo.escapeHTML(vo.getLblThisRemain()) %><%= CommonConst.NAM_COMMON_DAY %>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%= vo.NAM_SUPPLY %><%=CommonConst.STR_TITLE_SEPARATOR %></td>
				<td class="txtViewTd" colspan="2">
					<input type="text" class="NumberTextBox" id="<%= PaidHolidayOldCardVo.PRM_TXT_LAST_SUPPLY %>" name="<%= PaidHolidayOldCardVo.PRM_TXT_LAST_SUPPLY %>" value="<%= BaseVo.escapeHTML(vo.getTxtLastSupply()) %>"
							onChange="makeValue('<%= PaidHolidayOldCardVo.PRM_HID_LAST_REMAIN %>'
													,'<%= PaidHolidayOldCardVo.PRM_TXT_LAST_SUPPLY %>'
													,'<%= PaidHolidayOldCardVo.PRM_TXT_LAST_WASTE %>'
													,'<%= PaidHolidayOldCardVo.PRM_TXT_LAST_REMAIN %>');">
					<%= CommonConst.NAM_COMMON_DAY %>
					<%= CommonConst.NAM_ADDITION %>
				</td>
				<td class="txtViewTd">
					<input type="text" class="NumberTextBox" id="<%= PaidHolidayOldCardVo.PRM_TXT_THIS_SUPPLY %>" name="<%= PaidHolidayOldCardVo.PRM_TXT_THIS_SUPPLY %>" value="<%= BaseVo.escapeHTML(vo.getTxtThisSupply()) %>"
							onChange="makeValue('<%= PaidHolidayOldCardVo.PRM_HID_THIS_REMAIN %>'
													,'<%= PaidHolidayOldCardVo.PRM_TXT_THIS_SUPPLY %>'
													,'<%= PaidHolidayOldCardVo.PRM_TXT_THIS_WASTE %>'
													,'<%= PaidHolidayOldCardVo.PRM_TXT_THIS_REAMIN %>');">
					<%= CommonConst.NAM_COMMON_DAY %>
					<%= CommonConst.NAM_ADDITION %>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%= vo.NAM_WASTE %><%=CommonConst.STR_TITLE_SEPARATOR %></td>
				<td class="txtViewTd" colspan="2">
					<input type="text" class="NumberTextBox" id="<%= PaidHolidayOldCardVo.PRM_TXT_LAST_WASTE %>" name="<%= PaidHolidayOldCardVo.PRM_TXT_LAST_WASTE %>" value="<%= BaseVo.escapeHTML(vo.getTxtLastWaste()) %>"
							onChange="makeValue('<%= PaidHolidayOldCardVo.PRM_HID_LAST_REMAIN %>'
													,'<%= PaidHolidayOldCardVo.PRM_TXT_LAST_SUPPLY %>'
													,'<%= PaidHolidayOldCardVo.PRM_TXT_LAST_WASTE %>'
													,'<%= PaidHolidayOldCardVo.PRM_TXT_LAST_REMAIN %>');">
					<%= CommonConst.NAM_COMMON_DAY %>
					<%= CommonConst.NAM_SUBTRACTION %>
				</td>
				<td class="txtViewTd">
					<input type="text" class="NumberTextBox" id="<%= PaidHolidayOldCardVo.PRM_TXT_THIS_WASTE %>" name="<%= PaidHolidayOldCardVo.PRM_TXT_THIS_WASTE %>" value="<%= BaseVo.escapeHTML(vo.getTxtThisWaste()) %>"
							onChange="makeValue('<%= PaidHolidayOldCardVo.PRM_HID_THIS_REMAIN %>'
													,'<%= PaidHolidayOldCardVo.PRM_TXT_THIS_SUPPLY %>'
													,'<%= PaidHolidayOldCardVo.PRM_TXT_THIS_WASTE %>'
													,'<%= PaidHolidayOldCardVo.PRM_TXT_THIS_REAMIN %>');">
					<%= CommonConst.NAM_COMMON_DAY %>
					<%= CommonConst.NAM_SUBTRACTION %>
				</td>
			</tr>
			<tr>
				<td class="Arrow" colspan="4"><%=CommonConst.STR_ARROW_SIDE %></td>
			</tr>
			<tr>
				<td class="TotalTitleTd"><%= CommonConst.NAM_CHANGING_AFTER%><%=CommonConst.STR_TITLE_SEPARATOR %></td>
				<td class="TotalTd">
					<input type="text" class="NumberTextBox" id="<%= PaidHolidayOldCardVo.PRM_TXT_TOTAL_REMAIN %>" name="<%= PaidHolidayOldCardVo.PRM_TXT_TOTAL_REMAIN %>" value="<%= BaseVo.escapeHTML(vo.getTxtTotalRemain()) %>" />
					<%= CommonConst.NAM_COMMON_DAY %>
				</td>
				<td class="TotalTd">
					<input type="text" class="NumberTextBox" id="<%= PaidHolidayOldCardVo.PRM_TXT_LAST_REMAIN %>" name="<%= PaidHolidayOldCardVo.PRM_TXT_LAST_REMAIN %>" value="<%= BaseVo.escapeHTML(vo.getTxtLastRemain()) %>" />
					<%= CommonConst.NAM_COMMON_DAY %>
				</td>
				<td class="TotalTd">
					<input type="text" class="NumberTextBox" id="<%= PaidHolidayOldCardVo.PRM_TXT_THIS_REAMIN %>" name="<%= PaidHolidayOldCardVo.PRM_TXT_THIS_REAMIN %>" value="<%= BaseVo.escapeHTML(vo.getTxtThisRemain()) %>" />
					<%= CommonConst.NAM_COMMON_DAY %>
				</td>
			</tr>
		</table>		
	</div>
	<div >
		<button type="button" id="btnRegist" class="ExecuteButton" onclick="submitForm(document.form)">
			<%=CommonConst.NAM_REGIST %>
		</button>
		<button type="button" id="btnRegist" class="ExecuteButton" onclick="doSubmitKey(document.form, 'P1118', '<%= BaseVo.escapeHTML(vo.getHidSelectKCode()) %>', '<%= BaseVo.escapeHTML(vo.getHidSelectYearMonth()) %>')">
			<%= CommonConst.NAM_RE_SEARCH %>
		</button>
	</div>
	<div class="List">
		<table id="list">
			<thead>
				<tr>
					<th class="thDate"><%= vo.NAM_YEAR_MONTH %></th>
					<th class="thRest"><%= vo.NAM_LAST_YEAR %></th>
					<th class="thRest"><%= vo.NAM_THIS_YEAR %></th>
					<th><%= vo.NAM_SUPPLY %></th>
					<th><%= vo.NAM_WASTE %></th>
					<th><%= vo.NAM_USE %></th>
				</tr>
			</thead>
			<tbody>
<%
for (int i = 0; i < aryPaidHoliday.length; i++) {
%>
				<tr>
					<td class="tdDate"><%= aryPaidHoliday[i][0] %></td>
					<td class="tdNumber"><%= aryPaidHoliday[i][1] %></td>
					<td class="tdNumber"><%= aryPaidHoliday[i][2] %></td>
					<td class="tdNumber"><%= aryPaidHoliday[i][3] %></td>
					<td class="tdNumber"><%= aryPaidHoliday[i][4] %></td>
					<td class="tdNumber"><%= aryPaidHoliday[i][5] %></td>
				</tr>
<%
}
%>
			</tbody>
		</table>
	</div>
	<input type="hidden" id="<%= PaidHolidayOldCardVo.PRM_HID_SUPPLY %>" name="<%= PaidHolidayOldCardVo.PRM_HID_SUPPLY %>" value="<%= BaseVo.escapeHTML(vo.getHidSupply()) %>" />
	<input type="hidden" id="<%= PaidHolidayOldCardVo.PRM_HID_WASTE %>" name="<%= PaidHolidayOldCardVo.PRM_HID_WASTE %>" value="<%= BaseVo.escapeHTML(vo.getHidWaste()) %>" />
	<input type="hidden" id="<%= PaidHolidayOldCardVo.PRM_HID_LAST_REMAIN %>" name="<%= PaidHolidayOldCardVo.PRM_HID_LAST_REMAIN %>" value="<%= BaseVo.escapeHTML(vo.getHidLastRemain()) %>" />
	<input type="hidden" id="<%= PaidHolidayOldCardVo.PRM_HID_THIS_REMAIN %>" name="<%= PaidHolidayOldCardVo.PRM_HID_THIS_REMAIN %>" value="<%= BaseVo.escapeHTML(vo.getHidThisRemain()) %>" />
	<input type="hidden" id="<%= PaidHolidayOldCardVo.PRM_HID_TOTAL_REMAIN %>" name="<%= PaidHolidayOldCardVo.PRM_HID_TOTAL_REMAIN %>" value="<%= BaseVo.escapeHTML(vo.getHidTotalRemain()) %>" />
</div>
<%= HtmlUtility.getFooter(vo) %>
