<%--
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.payroll.base.PayrollConst"
import = "jp.mosp.payroll.common.vo.InsuranceMonthlyCardVo"
%><%
InsuranceMonthlyCardVo vo  = (InsuranceMonthlyCardVo)request.getAttribute(MospConst.ATT_VO);
%>
<%= HtmlUtility.getHeader(vo) %>
<%= vo.getSubTitle(vo.SUB_TITLE, vo.CMD_MENU_PAYROLL) %>
<div class="Body" id="insuranceMonthlyCard">
	<%=HtmlUtility.getMessages(vo)%>
	<div class="Select">
		<table id="tblButton">
			<tbody>
				<tr>
					<td id="LabelTd">
						<%= vo.getEscLblTargetEra() %><%= vo.getEscLblTargetYear() %><%= PayrollConst.NAM_YEAR %><%= vo.getEscLblTargetMonth() %><%= PayrollConst.NAM_MONTH %>
						<input type="hidden" id="<%= InsuranceMonthlyCardVo.PRM_HID_TARGET_YEAR  %>" name="<%= InsuranceMonthlyCardVo.PRM_HID_TARGET_YEAR  %>" value="<%= vo.getEscHidTargetYear () %>" />
						<input type="hidden" id="<%= InsuranceMonthlyCardVo.PRM_HID_TARGET_MONTH %>" name="<%= InsuranceMonthlyCardVo.PRM_HID_TARGET_MONTH %>" value="<%= vo.getEscHidTargetMonth() %>" />
					</td>
					<td>
						<%= PayrollConst.STR_TITLE_SEPARATOR %><%= vo.getEscLblJyouken() %>
					</td>
					<td>
						&nbsp;&nbsp;&nbsp;<%= PayrollConst.NAM_CHANGE_K_CODE %><%= PayrollConst.STR_TITLE_SEPARATOR %>
					</td>
					<td>
						<input type="text" class="UserIdText" id="<%= InsuranceMonthlyCardVo.PRM_TXT_CHANGE_K_CODE %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_CHANGE_K_CODE %>" value="" >
					</td>
					<td>
						<button type="button" class="ExecuteButton" id="btnRegist" onclick="doSubmit(document.form, 'P4008')"><%= PayrollConst.NAM_KCODE_CHANGE %></button>
					</td>
					<td>
						&nbsp;&nbsp;&nbsp;&nbsp;<button type="button" class="ExecuteButton" id="btnRegist" onclick="submitForm(document.form)"><%= PayrollConst.NAM_REGIST %></button>
					</td>
					<td>
						<button type="button" class="ExecuteButton" id="btnRegist" onclick="doSubmit(document.form, 'P4006')"><%= PayrollConst.NAM_RECAL %></button>
					</td>
					<td>
						<button type="button" class="ExecuteButton" id="btnRegist" onclick="doSubmit(document.form, 'P4004')"><%= PayrollConst.NAME_BEFORE_KCODE %> </button>
					</td>
					<td>
						<button type="button" class="ExecuteButton" id="btnRegist" onclick="doSubmit(document.form, 'P4003')"><%= PayrollConst.NAME_NEXT_KCODE %></button>
					</td>
				</tr>
			</tbody>
		</table>
		<table id="tblKCode">
			<tbody>
				<tr>
					<td>
						<%= PayrollConst.NAM_STATION %><%= PayrollConst.STR_TITLE_SEPARATOR %>
					</td>
					<td class="LabelTd">
						<%= vo.getEscLblStationCode() %>&nbsp;<%= vo.getEscLblStationName() %>
					</td>
					<td>
						<%= PayrollConst.NAM_M_KIHON_KCODE %><%= PayrollConst.STR_TITLE_SEPARATOR %>
					</td>
					<td class="LabelTd">
						<%= vo.getEscLblKCode() %>
						<input type="hidden" id="<%= InsuranceMonthlyCardVo.PRM_HID_K_CODE  %>" name="<%= InsuranceMonthlyCardVo.PRM_HID_K_CODE  %>" value="<%= vo.getEscHidKCode() %>" />
					</td>
					<td>
						<%= PayrollConst.NAM_M_KIHON_SHIME %><%= PayrollConst.STR_TITLE_SEPARATOR %>
					</td>
					<td id="LabelTd">
						<%= vo.getEscLblKName() %>
					</td>
				</tr>
				<tr>
					<td>
						<%= PayrollConst.TNM_GENDER %><%= PayrollConst.STR_TITLE_SEPARATOR %>
					</td>
					<td class="LabelTd">
						<%= vo.getEscLblGender() %>
					</td>

					<td>
						&nbsp;<%= PayrollConst.NAM_BIRTH_DATE %><%= PayrollConst.STR_TITLE_SEPARATOR %>
					</td>
					<td class="LabelTd">
						<%= vo.getEscLblBirthDay() %>
					</td>
					<td>
						&nbsp;<%= PayrollConst.NAME_KENPO_NO %><%= PayrollConst.STR_TITLE_SEPARATOR %>
					</td>
					<td class="LabelTd">
						<%= vo.getEscLblKenpoNo() %>
					</td>
					<td>
						<%= PayrollConst.PARENTHESES_LEFT %><%= PayrollConst.NAME_KONEN_NO %><%= PayrollConst.STR_TITLE_SEPARATOR %>
					</td>
					<td class="LabelTd">
						<%= vo.getEscLblKonenNo() %><%= PayrollConst.PARENTHESES_RIGHT %>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
	<div class="Card">
		<table border="1" id="tblPayBasicDate">
			<tbody>
				<tr>
					<td colspan="2"><%= PayrollConst.NAM_PAY_BASIC_DATE        %></td>
					<td ><%= PayrollConst.NAM_PAY_AMOUNT                       %></td>
					<td ><%= PayrollConst.NAM_GOODS_AMOUNT                     %></td>
					<td ><%= PayrollConst.NAM_REWARD_TOTAL                     %></td>
					<td ><%= InsuranceMonthlyCardVo.NAM_REWARD_TOTAL_SUM        %></td>
					<td ><%= InsuranceMonthlyCardVo.NAM_EXPECTED_DATE           %></td>
					<td ><%= InsuranceMonthlyCardVo.NAM_RAISE_DOWN_SALARY_BASIS %></td>
					<td ><%= InsuranceMonthlyCardVo.NAM_CALC_RESULT             %></td>

				</tr>
				<tr>
					<td><input type="text" class="NumberTextBox" id="<%= InsuranceMonthlyCardVo.PRM_TXT_PAY_BASIC_MONTH1 %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_PAY_BASIC_MONTH1 %>" value="<%= vo.getEscTxtPayBasicMonth1() %>"></td>
					<td><input type="text" class="NumberTextBox" id="<%= InsuranceMonthlyCardVo.PRM_TXT_PAY_BASIC_DAY1   %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_PAY_BASIC_DAY1   %>" value="<%= vo.getEscTxtPayBasicDay1()   %>"></td>
					<td><input type="text" class="NumberTextBox" id="<%= InsuranceMonthlyCardVo.PRM_TXT_PAY_AMOUNT1      %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_PAY_AMOUNT1      %>" value="<%= vo.getEscTxtPayAmount1()     %>"></td>
					<td><input type="text" class="NumberTextBox" id="<%= InsuranceMonthlyCardVo.PRM_TXT_GOODS_AMOUNT1    %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_GOODS_AMOUNT1    %>" value="<%= vo.getEscTxtGoodsAmount1()   %>"></td>
					<td><input type="text" class="NumberTextBox" id="<%= InsuranceMonthlyCardVo.PRM_TXT_REWARD_TOTAL1    %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_REWARD_TOTAL1    %>" value="<%= vo.getEscTxtRewardTotal1()   %>"></td>
					<td><input type="text" class="NumberTextBox" id="<%= InsuranceMonthlyCardVo.PRM_TXT_REWARD_TOTAL_SUM       %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_REWARD_TOTAL_SUM        %>" value="<%= vo.getEscTxtRewardTotalSum() %>"></td>
					<td>
						<select id="<%= InsuranceMonthlyCardVo.PRM_PLT_EXPECTED_YEAR %>" name="<%= InsuranceMonthlyCardVo.PRM_PLT_EXPECTED_YEAR %>">
							<option value=""></option>
							<%= HtmlUtility.getSelectOption(vo.aryPltYear, vo.getPltExpectedYear()) %>
						</select><%= PayrollConst.NAM_YEAR %>
						<select id="<%= InsuranceMonthlyCardVo.PRM_PLT_EXPECTED_MONTH %>" name="<%= InsuranceMonthlyCardVo.PRM_PLT_EXPECTED_MONTH %>">
							<option value=""></option>
							<%= HtmlUtility.getSelectOption(vo.aryPltMonth, vo.getPltExpectedMonth()) %>
						</select><%= PayrollConst.NAM_MONTH %>
					</td>
					<td><input type="text" class="NumberTextBox" id="<%= InsuranceMonthlyCardVo.PRM_TXT_RAISE_DOWN_SALARY_BASIS         %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_RAISE_DOWN_SALARY_BASIS        %>" value="<%= vo.getEscTxtRaiseDownSalaryBasis() %>"></td>
					<td> <%= vo.getEscPltCalcResult() %>	</td>
					
				</tr>
				<tr>
					<td><input type="text" class="NumberTextBox" id="<%= InsuranceMonthlyCardVo.PRM_TXT_PAY_BASIC_MONTH2 %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_PAY_BASIC_MONTH2 %>" value="<%= vo.getEscTxtPayBasicMonth2() %>"></td>
					<td><input type="text" class="NumberTextBox" id="<%= InsuranceMonthlyCardVo.PRM_TXT_PAY_BASIC_DAY2   %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_PAY_BASIC_DAY2   %>" value="<%= vo.getEscTxtPayBasicDay2()   %>"></td>
					<td><input type="text" class="NumberTextBox" id="<%= InsuranceMonthlyCardVo.PRM_TXT_PAY_AMOUNT2      %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_PAY_AMOUNT2      %>" value="<%= vo.getEscTxtPayAmount2()     %>"></td>
					<td><input type="text" class="NumberTextBox" id="<%= InsuranceMonthlyCardVo.PRM_TXT_GOODS_AMOUNT2    %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_GOODS_AMOUNT2    %>" value="<%= vo.getEscTxtGoodsAmount2()   %>"></td>
					<td><input type="text" class="NumberTextBox" id="<%= InsuranceMonthlyCardVo.PRM_TXT_REWARD_TOTAL2    %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_REWARD_TOTAL2    %>" value="<%= vo.getEscTxtRewardTotal2()   %>"></td>
					<td ><%= InsuranceMonthlyCardVo.NAM_AVERAGE_THREE_MONTHS   %></td>
					<td ><%= InsuranceMonthlyCardVo.NAM_EDIT_AVERAGE           %></td>
					<td ><%= InsuranceMonthlyCardVo.NAM_RETROACTIVE_PAYMENT    %></td>
					<td ><%= InsuranceMonthlyCardVo.NAM_RAISE_DOWN_SALARY_DATE %></td>

				</tr>
				<tr>
					<td><input type="text" class="NumberTextBox" id="<%= InsuranceMonthlyCardVo.PRM_TXT_PAY_BASIC_MONTH3 %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_PAY_BASIC_MONTH3 %>" value="<%= vo.getEscTxtPayBasicMonth3() %>"></td>
					<td><input type="text" class="NumberTextBox" id="<%= InsuranceMonthlyCardVo.PRM_TXT_PAY_BASIC_DAY3   %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_PAY_BASIC_DAY3   %>" value="<%= vo.getEscTxtPayBasicDay3()   %>"></td>
					<td><input type="text" class="NumberTextBox" id="<%= InsuranceMonthlyCardVo.PRM_TXT_PAY_AMOUNT3      %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_PAY_AMOUNT3      %>" value="<%= vo.getEscTxtPayAmount3()     %>"></td>
					<td><input type="text" class="NumberTextBox" id="<%= InsuranceMonthlyCardVo.PRM_TXT_GOODS_AMOUNT3    %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_GOODS_AMOUNT3    %>" value="<%= vo.getEscTxtGoodsAmount3()   %>"></td>
					<td><input type="text" class="NumberTextBox" id="<%= InsuranceMonthlyCardVo.PRM_TXT_REWARD_TOTAL3    %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_REWARD_TOTAL3    %>" value="<%= vo.getEscTxtRewardTotal3()   %>"></td>
					<td><input type="text" class="NumberTextBox" id="<%= InsuranceMonthlyCardVo.PRM_TXT_AVERAGE_THREE_MONTHS %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_AVERAGE_THREE_MONTHS%>" value="<%= vo.getEscTxtAverageThreeMonths() %>"></td>
					<td><input type="text" class="NumberTextBox" id="<%= InsuranceMonthlyCardVo.PRM_TXT_EDIT_AVERAGE         %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_EDIT_AVERAGE        %>" value="<%= vo.getEscTxtEditAverage() %>"></td>
					<td><input type="text" class="NumberTextBox" id="<%= InsuranceMonthlyCardVo.PRM_TXT_RETROACTIVE_PAYMENT         %>" name="<%= InsuranceMonthlyCardVo.PRM_TXT_RETROACTIVE_PAYMENT        %>" value="<%= vo.getEscTxtRetroactivePayment() %>"></td>
					<td>
						<select id="<%= InsuranceMonthlyCardVo.PRM_PLT_RAISE_DOWN_SALARY_YEAR %>" name="<%= InsuranceMonthlyCardVo.PRM_PLT_RAISE_DOWN_SALARY_YEAR %>">
							<option value=""></option>
							<%= HtmlUtility.getSelectOption(vo.aryPltYear, vo.getPltRaiseDownSalaryYear()) %>
						</select><%= PayrollConst.NAM_YEAR %>
						<select id="<%= InsuranceMonthlyCardVo.PRM_PLT_RAISE_DOWN_SALARY_MONTH %>" name="<%= InsuranceMonthlyCardVo.PRM_PLT_RAISE_DOWN_SALARY_MONTH %>">
							<option value=""></option>
							<%= HtmlUtility.getSelectOption(vo.aryPltMonth, vo.getPltRaiseDownSalaryMonth()) %>
						</select><%= PayrollConst.NAM_MONTH %>
					</td>

				</tr>
			</tbody>
		</table>

		<table border="1" id="tblHealthPension">
			<tbody>
				<tr>
					<td colspan="2"><%= InsuranceMonthlyCardVo.NAM_HEALTH_BEF_GRADE %></td>
					<td colspan="2"><%= InsuranceMonthlyCardVo.NAM_HEALTH_DEC_GRADE %></td>
				</tr>
				<tr>
					<td ><%= vo.getEscTxtHealthBefGrade()   %></td>
					<td ><%= vo.getEscTxtHealthBefPremium() %></td>
					<td ><%= vo.getEscTxtHealthDecGrade()   %></td>
					<td ><%= vo.getEscTxtHealthDecPremium() %></td>
				</tr>
				<tr>
					<td colspan="2"><%= InsuranceMonthlyCardVo.NAM_PENSION_BEF_GRADE %></td>
					<td colspan="2"><%= InsuranceMonthlyCardVo.NAM_PENSION_DEC_GRADE %></td>
			
				</tr>
				<tr>
					<td ><%= vo.getEscTxtPensionBefGrade()    %></td>
					<td ><%= vo.getEscTxtPensionBefPremium()   %></td>
					<td ><%= vo.getEscTxtPensionDecGrade()     %></td>
					<td ><%= vo.getEscTxtPensionDecPremium()   %></td>
				</tr>
			</tbody>
		</table>
	</div>
</div>

<%= HtmlUtility.getFooter(vo) %>
