<%--
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       = "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.payroll.vo.YukyuPersonalCardVo"
%><%
YukyuPersonalCardVo vo = (YukyuPersonalCardVo)request.getAttribute(MospConst.ATT_VO);
String[] aryPayrollCalcY	= vo.getEscAryCalcYear();
String[] aryPayrollCalcM	= vo.getEscAryCalcMonth();
String[] aryThisGet			= vo.getEscAryGet();
String[] aryThisDispose		= vo.getEscAryDispose();
String[] aryThisRestTY		= vo.getEscAryThisRestTY();
String[] aryThisRestLY		= vo.getEscAryThisRestLY();
String[] aryUse				= vo.getEscAryUse();
%>
<%= HtmlUtility.getHeader(vo) %>
<%= vo.getSubTitle(vo.SUB_TITLE, vo.CMD_MENU_PAYROLL, vo.CMD_PAID_HOLIDAY_SEARCH , vo.TTL_PAID_HOLIDAY) %>
<div class="Body" id="yukyuPersonalCard">
	<%=HtmlUtility.getMessages(vo)%>
	<div class="Select">
		<table>
			<tr>
				<td>
					<%= YukyuPersonalCardVo.NAM_K_CODE %><%= CommonConst.STR_TITLE_SEPARATOR %><%= vo.getEscSelectKCode() %>
					<input type="hidden" id="<%= YukyuPersonalCardVo.PRM_SELECT_K_CODE %>" name="<%= YukyuPersonalCardVo.PRM_SELECT_K_CODE %>" value="<%=vo.getEscSelectKCode() %>"	/>
				</td>
				<td>
					<%= YukyuPersonalCardVo.NAM_K_NAME %><%= CommonConst.STR_TITLE_SEPARATOR %><%= vo.getEscSelectKName() %>
				</td>
				<td>
					<%= YukyuPersonalCardVo.NAM_STATION %><%= CommonConst.STR_TITLE_SEPARATOR %><%= vo.getEscSelectSectionName() %>
				</td>
				<td class="ButtonTd">
					<button type="button" onclick="doSubmit(document.form, 'P1110')"><%= vo.TTL_PAID_HOLIDAY %></button>
				</td>
			</tr>
		</table>
	</div>
	<div class="Card">
		<table >
			<tr>
				<td class="TitleTd"><%=YukyuPersonalCardVo.NAM_CALC_DATE %><%=CommonConst.STR_TITLE_SEPARATOR %></td>
				<td colspan="6">
					<%= vo.getEscLblCalcYear()%><%= CommonConst.NAM_YEAR %><%= vo.getEscLblCalcMonth()%><%= CommonConst.NAM_MONTH %>
					<input type="hidden" id="<%= YukyuPersonalCardVo.PRM_LBL_CALC_YEAR %>" name="<%= YukyuPersonalCardVo.PRM_LBL_CALC_YEAR %>" value="<%=vo.getEscLblCalcYear() %>"	/>
					<input type="hidden" id="<%= YukyuPersonalCardVo.PRM_LBL_CALC_MONTH %>" name="<%= YukyuPersonalCardVo.PRM_LBL_CALC_MONTH %>" value="<%=vo.getEscLblCalcMonth() %>"	/>
				</td>
			</tr>
			<tr>
				<td class="TitleTd">
					&nbsp;
				</td>
				<td class="IndexTd">
					<%= YukyuPersonalCardVo.NAM_TOTAL%>
				</td>
				<td class="IndexTd">
					<%= YukyuPersonalCardVo.NAM_LAST_YEAR%>
				</td>
				<td class="IndexTd">
					<%= YukyuPersonalCardVo.NAM_THIS_YEAR%>
				</td>
			</tr>
			<tr>
				<td class="TotalTitleTd"><%=YukyuPersonalCardVo.NAM_REST %><%= CommonConst.NAM_CHANGING_BEFORE%><%=CommonConst.STR_TITLE_SEPARATOR %></td>
				<td class="TotalTd">
					<%= vo.getEscLblThisRestTotal()%>
				</td>
				<td class="TotalTd">
					<%= vo.getEscLblThisRestLY()%>
				</td>
				<td class="TotalTd">
					<%= vo.getEscLblThisRestTY()%>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=YukyuPersonalCardVo.NAM_THIS_GET %><%=CommonConst.STR_TITLE_SEPARATOR %></td>
				<td class="txtViewTd" colspan="2">
					<input type="text" class="NumberTextBox" id="<%=YukyuPersonalCardVo.PRM_TXT_THIS_GET_LY %>" name="<%=YukyuPersonalCardVo.PRM_TXT_THIS_GET_LY %>" value="<%=vo.getEscTxtThisGetLY() %>"
							onChange="makeValue('<%= YukyuPersonalCardVo.PRM_HID_THIS_REST_LY %>'
													,'<%= YukyuPersonalCardVo.PRM_TXT_THIS_GET_LY %>'
													,'<%= YukyuPersonalCardVo.PRM_TXT_THIS_DISPOSE_LY %>'
													,'<%= YukyuPersonalCardVo.PRM_TXT_THIS_REST_LY %>');">
					<%= CommonConst.MSG_ADD_PAID_HOLIDAY %>
				</td>
				<td class="txtViewTd">
					<input type="text" class="NumberTextBox" id="<%=YukyuPersonalCardVo.PRM_TXT_THIS_GET_TY %>" name="<%=YukyuPersonalCardVo.PRM_TXT_THIS_GET_TY %>" value="<%=vo.getEscTxtThisGetTY() %>"
							onChange="makeValue('<%= YukyuPersonalCardVo.PRM_HID_THIS_REST_TY %>'
													,'<%= YukyuPersonalCardVo.PRM_TXT_THIS_GET_TY %>'
													,'<%= YukyuPersonalCardVo.PRM_TXT_THIS_DISPOSE_TY %>'
													,'<%= YukyuPersonalCardVo.PRM_TXT_THIS_REST_TY %>');">
					<%= CommonConst.MSG_ADD_PAID_HOLIDAY %>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=YukyuPersonalCardVo.NAM_THIS_DISPOSE %><%=CommonConst.STR_TITLE_SEPARATOR %></td>
				<td class="txtViewTd" colspan="2">
					<input type="text" class="NumberTextBox" id="<%=YukyuPersonalCardVo.PRM_TXT_THIS_DISPOSE_LY %>" name="<%=YukyuPersonalCardVo.PRM_TXT_THIS_DISPOSE_LY %>" value="<%=vo.getEscTxtThisDisposeLY() %>"
							onChange="makeValue('<%= YukyuPersonalCardVo.PRM_HID_THIS_REST_LY %>'
													,'<%= YukyuPersonalCardVo.PRM_TXT_THIS_GET_LY %>'
													,'<%= YukyuPersonalCardVo.PRM_TXT_THIS_DISPOSE_LY %>'
													,'<%= YukyuPersonalCardVo.PRM_TXT_THIS_REST_LY %>');">
					<%= CommonConst.MSG_REDUCE_PAID_HOLIDAY %>
				</td>
				<td class="txtViewTd">
					<input type="text" class="NumberTextBox" id="<%=YukyuPersonalCardVo.PRM_TXT_THIS_DISPOSE_TY %>" name="<%=YukyuPersonalCardVo.PRM_TXT_THIS_DISPOSE_TY %>" value="<%=vo.getEscTxtThisDisposeTY() %>"
							onChange="makeValue('<%= YukyuPersonalCardVo.PRM_HID_THIS_REST_TY %>'
													,'<%= YukyuPersonalCardVo.PRM_TXT_THIS_GET_TY %>'
													,'<%= YukyuPersonalCardVo.PRM_TXT_THIS_DISPOSE_TY %>'
													,'<%= YukyuPersonalCardVo.PRM_TXT_THIS_REST_TY %>');">
					<%= CommonConst.MSG_REDUCE_PAID_HOLIDAY %>
				</td>
			</tr>
			<tr>
				<td class="Arrow" colspan="4"><%=CommonConst.STR_ARROW_SIDE %></td>
			</tr>
			<tr>
				<td class="TotalTitleTd"><%=YukyuPersonalCardVo.NAM_REST %><%= CommonConst.NAM_CHANGING_AFTER%><%=CommonConst.STR_TITLE_SEPARATOR %></td>
				<td class="TotalTd">
					<input type="text" class="NumberTextBox" id="<%= YukyuPersonalCardVo.PRM_TXT_THIS_REST_TOTAL %>" name="<%= YukyuPersonalCardVo.PRM_TXT_THIS_REST_TOTAL %>" value="<%=vo.getEscTxtThisRestToTal() %>" />
				</td>
				<td class="TotalTd">
					<input type="text" class="NumberTextBox" id="<%= YukyuPersonalCardVo.PRM_TXT_THIS_REST_LY %>" name="<%= YukyuPersonalCardVo.PRM_TXT_THIS_REST_LY %>" value="<%=vo.getEscTxtThisRestLY() %>" />
				</td>
				<td class="TotalTd">
					<input type="text" class="NumberTextBox" id="<%= YukyuPersonalCardVo.PRM_TXT_THIS_REST_TY %>" name="<%= YukyuPersonalCardVo.PRM_TXT_THIS_REST_TY %>" value="<%=vo.getEscTxtThisRestTY() %>" />
				</td>
			</tr>
		</table>		
	</div>
	<div >
		<button type="button" id="btnRegist" class="ExecuteButton" onclick="submitForm(document.form)"><%=CommonConst.NAM_REGIST %></button>
	</div>
	<div class="List">
		<table id="list">
			<thead>
				<tr>
					<th class="thDate"><%= YukyuPersonalCardVo.NAM_CALC_DATE%></th>
					<th class="thRest"><%= YukyuPersonalCardVo.NAM_REST%><%= YukyuPersonalCardVo.NAM_LAST_YEAR%></th>
					<th class="thRest"><%= YukyuPersonalCardVo.NAM_REST%><%= YukyuPersonalCardVo.NAM_THIS_YEAR%></th>
					<th><%= YukyuPersonalCardVo.NAM_THIS_GET%></th>
					<th><%= YukyuPersonalCardVo.NAM_THIS_DISPOSE%></th>
					<th><%= YukyuPersonalCardVo.NAM_USE%></th>
				</tr>
			</thead>
			<tbody>
<%
for (int i = 0; i < aryPayrollCalcY.length; i++) {
%>
				<tr>
					<td class="tdDate"><%= aryPayrollCalcY[i] %><%= CommonConst.NAM_YEAR %><%= aryPayrollCalcM[i] %><%= CommonConst.NAM_MONTH %></td>
					<td class="tdNumber"><%= aryThisRestLY[i] %></td>
					<td class="tdNumber"><%= aryThisRestTY[i] %></td>
					<td class="tdNumber"><%= aryThisGet[i] %></td>
					<td class="tdNumber"><%= aryThisDispose[i] %></td>
					<td class="tdNumber"><%= aryUse[i] %></td>
				</tr>
<%
}
%>
			</tbody>
		</table>
	</div>
	<input type="hidden" id="<%= YukyuPersonalCardVo.PRM_HID_GET 			%>" name="<%= YukyuPersonalCardVo.PRM_HID_GET 				%>" value="<%=vo.getEscHidTGet() %>" />
	<input type="hidden" id="<%= YukyuPersonalCardVo.PRM_HID_DISPOSE 		%>" name="<%= YukyuPersonalCardVo.PRM_HID_DISPOSE 			%>" value="<%=vo.getEscHidDispose() %>" />
	<input type="hidden" id="<%= YukyuPersonalCardVo.PRM_HID_THIS_REST_LY 	%>" name="<%= YukyuPersonalCardVo.PRM_HID_THIS_REST_LY 		%>" value="<%=vo.getEscHidThisRestLY() %>" />
	<input type="hidden" id="<%= YukyuPersonalCardVo.PRM_HID_THIS_REST_TY 	%>" name="<%= YukyuPersonalCardVo.PRM_HID_THIS_REST_TY 		%>" value="<%=vo.getEscHidThisRestTY() %>" />
	<input type="hidden" id="<%= YukyuPersonalCardVo.PRM_HID_THIS_REST_TOTAL%>" name="<%= YukyuPersonalCardVo.PRM_HID_THIS_REST_TOTAL 	%>" value="<%=vo.getEscHidThisRestToTal() %>" />
</div>
<%= HtmlUtility.getFooter(vo) %>
