<%@ 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.AdjustmentReferVo"
%><%
AdjustmentReferVo vo = (AdjustmentReferVo)request.getAttribute(MospConst.ATT_VO);
%><%= HtmlUtility.getHeader(vo) %>
<%= vo.getSubTitle(vo.SUB_TITLE, vo.CMD_MENU_PAYROLL) %>
<%-- <%= HtmlUtility.getHeader(vo) %> --%>
<%-- <%= HtmlUtility.getSubTitle(vo) %> --%>
<div class="Body" id="adjustmentRefer">
	<%=HtmlUtility.getMessages(vo)%>
	<div class="Change">
		<table id="tblOutList">
			<tbody>
				<tr>
					<td>
						<button type="button" class="ExecuteButton2" onclick="submitFile(document.form, 'P3031')"><%= PayrollConst.NAM_WITHHOLD_SLIP_EACH %></button>
					</td>
					<td>
						<button type="button" class="ExecuteButton2" onclick="submitFile(document.form, 'P3041')">     <%= PayrollConst.NAM_WITHHOLD_BOOK_EACH %></button>
					</td>
					<td>
						<button type="button" class="ExecuteButton2" onclick="submitFile(document.form, 'P3071')">      <%= PayrollConst.NAM_PAYMENT_LEDGER_EACH %></button>
						<%--
						<button type="button" class="ExecuteButton2" onclick="">      <%= PayrollConst.NAM_PAYMENT_LEDGER_EACH %></button>
						--%>
					</td>
				</tr>
			</tbody>
		</table>
		<table id="tblToList">
			<tbody>
				<tr>
					<td>
						<button type="button" class="ExecuteButton" onclick="doSubmit(document.form, 'P3001')">
							<%= PayrollConst.NAM_TO_ADJUSTMENT_CALC %>
						</button>
					</td>
					<td>
						<button type="button" class="ExecuteButton" onclick="doSubmit(document.form, 'P3011')">
							<%= PayrollConst.NAM_TO_ADJUSTMENT_LIST %>
						</button>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
	<hr />
	<div class="Select">
		<table id="tblEmployee">
			<tbody>
				<tr>
					<td>
						<%= PayrollConst.NAM_M_KIHON_KCODE %><%= PayrollConst.STR_TITLE_SEPARATOR %>
					</td>
					<td class="LabelTd" id= tdKCode>
						<%= vo.getLblChangeKCode() %>
						<input type="hidden" id="<%= AdjustmentReferVo.PRM_HID_K_CODE %>" name="<%= AdjustmentReferVo.PRM_HID_K_CODE %>" value="<%= vo.getLblChangeKCode() %>" />
						
					</td>
					<td>
						&nbsp;&nbsp;&nbsp;&nbsp;<%= PayrollConst.NAM_M_KIHON_SHIME %><%= PayrollConst.STR_TITLE_SEPARATOR %>
					</td>
					<td class="LabelTd" id="tdKName">
						<%= vo.getEscLblKName() %>
					</td>
				</tr>
				<tr>
					<td>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%= PayrollConst.NAM_STATION %><%= PayrollConst.STR_TITLE_SEPARATOR %>
					</td>
					<td class="LabelTd">
						<%-- 所属コード　：　<%= vo.getEscLblStationCode() %> --%>
						<%= vo.getEscLblStationName() %>
					</td>
					<td>
						&nbsp;&nbsp;&nbsp;&nbsp;<%= PayrollConst.NAM_POSITION %><%= PayrollConst.STR_TITLE_SEPARATOR %>
					</td>
					<td class="LabelTd">
						<%-- 役職コード :　<%= vo.getEscLblPositionCode() %> --%>
						<%= vo.getEscLblPositionName() %>
					</td>
				</tr>
				<tr>

					<td>
						&nbsp;&nbsp;<%= PayrollConst.NAM_INCOME_TAX_TYPE %><%= PayrollConst.STR_TITLE_SEPARATOR %>
					</td>
					<td class="LabelTd">
						<%= vo.getEscLblIncomeTaxType() %>
					</td>
					<td>
						<%= PayrollConst.NAM_ADJUSTMENT_TYPE %><%= PayrollConst.STR_TITLE_SEPARATOR %>
					</td>
					<td class="LabelTd">
						<%= vo.getEscLblAdjustmentType() %>
					</td>
				
				</tr>
				<tr>
					<td>
						&nbsp;&nbsp;<%= PayrollConst.NAM_BIRTH_DATE %><%= PayrollConst.STR_TITLE_SEPARATOR %>
					</td>
					<td class="LabelTd">
						<%= vo.getEscLblBirthDate() %>
						
					</td>
					<td>
						<%= PayrollConst.NAM_POSTAL_CODE %><%= PayrollConst.STR_TITLE_SEPARATOR %>
					</td>
					<td class="LabelTd"  >
						<%= vo.getEscLblPostalCode() %>
					</td>
				</tr>
				<tr>
					<td>
						&nbsp;&nbsp;&nbsp;&nbsp;<%= PayrollConst.NAM_ADDRESS %><%= PayrollConst.STR_TITLE_SEPARATOR %>
					</td>
					<td class="LabelTd" colspan="4">
						<%= vo.getEscLblAddress() %>
					</td>
					
				</tr>
			</tbody>
		</table>
		<table id="tblAdjustYear">
			<tbody>
				<tr>
					<td>
						&nbsp;<%= PayrollConst.NAM_ADJUST_YEAR %><%= PayrollConst.STR_TITLE_SEPARATOR %><%= vo.getHidAdjustYear() %><%= PayrollConst.NAM_YEAR %>&nbsp;
						<input type="hidden" id="<%= AdjustmentReferVo.PRM_HID_ADJUST_YEAR %>" name="<%= AdjustmentReferVo.PRM_HID_ADJUST_YEAR %>" value="<%= vo.getHidAdjustYear() %>" />
						
					</td>
				</tr>
			</tbody>
		</table>
		<table id="tblStatus">
			<tbody>
				<tr>
					<td>
						<%= PayrollConst.NAM_ADJUST_STATUS %><%= PayrollConst.STR_TITLE_SEPARATOR %><%= vo.getEscLblAdjustStatus() %>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
	<div class="Card">
		<table id="tblPayment">
			<thead>
				<tr>
					<td  class="HeaderTd" colspan="12"><%= PayrollConst.NAM_PAYMENT_ALLOWANCE %></td>
				</tr>
			</thead>
			<thead>
				<tr>
					<td class="SubHeaderTd" colspan="12"><%= PayrollConst.NAM_PAYMENT_ALLOWANCE_OTHER %></td>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td class="TitleTd"><%= PayrollConst.NAM_MONTH                            %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_DAY             %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_ALLOWANCE_TOTAL %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_TAX_FREE_AMOUNT %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_TAX_PAY_AMOUNT      %></td>
					<td class="TitleTd" id="tdSocInsDeduction"><%= PayrollConst.NAM_SOC_INS_DEDUCTION   %></td>
					<td class="TitleTd" id="tdAfterDeductIncome"><%= PayrollConst.NAM_AFTER_DEDUCT_INCOME %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_DEPENDENCE          %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_HUMAN_INCOME_TAX    %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_ADJ_CALC_GAP        %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_VARIOUS_DEDUCTION   %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_PAYMENT_TOTAL       %></td>
				</tr>
<%
for (int i = 0; i < PayrollConst.CNT_ADJ_PAYMENT_MONTH; i++) {
%>		
				<tr>
					<td class="DataTd"><%= vo.getLblPaymentMonth       (i)	%></td>
					<td class="DataTd"><%= vo.getLblPaymentPayDay      (i)	%></td>
					<td class="AmountTd"><%= vo.getLblPayTotalAllowance  (i)	%></td>
					<td class="AmountTd"><%= vo.getLblPayTaxFree         (i)	%></td>
					<td class="AmountTd"><%= vo.getLblPayTaxation        (i)	%></td>
					<td class="AmountTd"><%= vo.getLblPaySocInsDeduction (i)	%></td>
					<td class="AmountTd"><%= vo.getLblPayPayInsDeduction (i)	%></td>
					<td class="AmountTd"><%= vo.getLblPayDependentCount  (i)	%></td>
					<td class="AmountTd"><%= vo.getLblPayIncomeTax       (i)	%></td>
					<td class="AmountTd"><%= vo.getLblPayAdjCalcGap      (i)	%></td>
					<td class="AmountTd"><%= vo.getLblPayVariousDeduction(i)	%></td>
					<td class="AmountTd"><%= vo.getLblPayPaymentTotal    (i)	%></td>
				</tr>
<% 	} %>
			</tbody>
			<thead>
				<tr>
					<td class="SubHeaderTd" colspan="12"><%= PayrollConst.NAM_BONUS_ALLOWANCE_OTHER %></td>
				</tr>
			</thead>
			<tbody>
<% for (int i = 0; i < PayrollConst.CNT_ADJ_BONUS_MONTH; i++) { %>				
				<tr>
					<td class="DataTd"><%= vo.getLblBonusMonth         (i)	%></td>
					<td class="DataTd"><%= vo.getLblBonusPayDay        (i)	%></td>
					<td class="AmountTd"><%= vo.getLblBonTotalAllowance  (i)	%></td>
					<td class="AmountTd"><%= vo.getLblBonTaxFree         (i)	%></td>
					<td class="AmountTd"><%= vo.getLblBonTaxation        (i)	%></td>
					<td class="AmountTd"><%= vo.getLblBonSocInsDeduction (i)	%></td>
					<td class="AmountTd"><%= vo.getLblBonPayInsDeduction (i)	%></td>
					<td class="AmountTd"><%= vo.getLblBonDependentCount  (i)	%></td>
					<td class="AmountTd"><%= vo.getLblBonIncomeTax       (i)	%></td>
					<td class="AmountTd"><%= vo.getLblBonAdjCalcGap      (i)	%></td>
					<td class="AmountTd"><%= vo.getLblBonVariousDeduction(i)	%></td>
					<td class="AmountTd"><%= vo.getLblBonPaymentTotal    (i)	%></td>
				</tr>
<% 	} %>
			</tbody>
			<thead>
				<tr>
					<td  class="SubHeaderTd" colspan="12"><%= PayrollConst.NAM_TOTAL_ADJ_ALLOWANCE     %></td>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td colspan="3" class="AmountTd"><%= vo.getEscLblTotalAllowance       () %></td>
					<td class="AmountTd"><%= vo.getEscLblTaxFree              () %></td>
					<td class="AmountTd"><%= vo.getEscLblTaxation             () %></td>
					<td class="AmountTd"><%= vo.getEscLblSocInsDeduction      () %></td>
					<td class="AmountTd"><%= vo.getEscLblTotalPayInsDeduction () %></td>
					<td colspan="2" class="AmountTd"><%= vo.getEscLblIncomeTax() %></td>
					<td class="AmountTd"></td>
					<td class="AmountTd"><%= vo.getEscLblVariousDeduction     () %></td>
					<td class="AmountTd"><%= vo.getEscLblPaymentTotal         () %></td>				
				</tr>
			</tbody>
			<thead>
				<tr>
					<td class="SubHeaderTd" colspan="12"><%= PayrollConst.NAM_FORMER_PAYMENT %></td>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td  colspan="4"></td>
					<td class="TitleTd"><%= PayrollConst.NAM_TAX_PAY_AMOUNT      %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_SOC_INS_DEDUCTION   %></td>
					<td colspan="2"></td>
					<td class="TitleTd"><%= PayrollConst.NAM_INCOME_TAX_SUM      %></td>
					<td colspan="3"></td>
				</tr>
				<tr>
					<td colspan="4"></td>
					<td class="AmountTd"><%= vo.getEscLblFormerIncome   () %></td>
					<td class="AmountTd"><%= vo.getEscLblFormerInsurance() %></td>
					<td colspan="2"></td>
					<td class="AmountTd"><%= vo.getEscLblFormerTax      () %></td>
					<td colspan="3"></td>
				</tr>
			</tbody>
		</table>
		<table id="tblDependece">
			<thead>
				<tr>
					<td  class="HeaderTd" colspan="10"><%= PayrollConst.NAM_DEPENDENCE_DEDUC_OTHER                 %></td>
				</tr>
			</thead>
			<thead>
				<tr>
					<td  class="SubHeaderTd" colspan="10"><%= PayrollConst.NAM_SELF_DEPEND_DEDUCTION   %></td>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td class="TitleTd"><%= PayrollConst.NAM_SPECIFIC_HANDICAP                  %></td>
					<td class="DeductionTd"><%= vo.getEscLblSpHandicap()     %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_GENERAL_HANDICAP                   %></td>
					<td class="DeductionTd"><%= vo.getEscLblGeHandicap()     %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_WIDOW_GENERAL                      %></td>
					<td class="DeductionTd"><%= vo.getEscLblGeWidow()        %></td>
					<td colspan="4"></td>
				</tr>
				<tr>
					<td class="TitleTd"><%= PayrollConst.NAM_WIDOW_SPECIAL                     %></td>
					<td class="DeductionTd"><%= vo.getEscLblSpWidow()       %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_WIDOW                              %></td>
					<td class="DeductionTd"><%= vo.getEscLblWidow()          %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_STUDENT_GENERAL                    %></td>
					<td class="DeductionTd"><%= vo.getEscLblStudentGeneral() %></td>
					<td colspan="4"></td>
				</tr>
			</tbody>
			<thead>
				<tr>
					<td  class="SubHeaderTd" colspan="10"><%= PayrollConst.NAM_SPOUSE_DEPEND_DEDUCTION   %></td>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td class="TitleTd"><%= PayrollConst.NAM_SPOUSE_INTEND_GENERAL              %></td>
					<td class="DeductionTd"><%= vo.getEscLblSpouseGe()       %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_SPOUSE_INTEND_ELDERLY              %></td>
					<td class="DeductionTd"><%= vo.getEscLblSpouseEl()       %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_LIVE_WITH_HANDI_EL                 %></td>
					<td class="DeductionTd"><%= vo.getEscLblLwSpHandiEl()    %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_LIVE_WITH_SPECIAL_HANDI            %></td>
					<td class="DeductionTd"><%= vo.getEscLblLwSpHandicap()   %></td>
					<td colspan="2"></td>
					
				</tr>
			</tbody>
			<thead>
				<tr>
					<td  class="SubHeaderTd" colspan="10"><%= PayrollConst.NAM_DEPEND_DEDUCTION   %></td>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td class="TitleTd"><%= PayrollConst.NAM_LIVE_WITH_HANDI_ER                %></td>
					<td class="CountTd"><%= vo.getEscLblLiveWithHandiEr()   %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_LIVE_WITH_HANDI_EL                %></td>
					<td class="CountTd"><%= vo.getEscLblLiveWithHandiEl()   %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_LIVE_WITH_HANDI_SP                %></td>
					<td class="CountTd"><%= vo.getEscLblLiveWithHandiSp()   %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_LIVE_WITH_HANDI_GE                %></td>
					<td class="CountTd"><%= vo.getEscLblLiveWithHandiGe()   %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_LIVE_WITH_ELD_REL                 %></td>
					<td class="CountTd"><%= vo.getEscLblLiveWithEldRel()    %></td>
				</tr>
				<tr>
					<td class="TitleTd"><%= PayrollConst.NAM_SPECIFIC_DEPENDENT                %></td>
					<td class="CountTd"><%= vo.getEscLblSpecificDependent() %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_GENERAL_DEPENDENT                 %></td>
					<td class="CountTd"><%= vo.getEscLblGeneralDependent()  %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_SPECIFIC_HANDICAP                 %></td>
					<td class="CountTd"><%= vo.getEscLblSpecificHandicap()  %></td>
					<td class="TitleTd"><%= PayrollConst.NAM_GENERAL_HANDICAP                  %></td>
					<td class="CountTd"><%= vo.getEscLblGeneralHandicap()   %></td>
					<td colspan="2"></td>
				</tr>
			</tbody>
		</table>
		<table id="tblAdjustAllowance">
			<thead>
				<tr>
					<td  class="HeaderTd" colspan="9"><%= PayrollConst.NAM_ADJUSTMENT_ALLOWANCE      %></td>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td class="TitleTd"><%= PayrollConst.NAM_ADJ_PAYMENT_ALLOWANCE                %></td>
					<td class="DataTd"><%= vo.getEscLblPaymentAllowance()    %></td>
					<td  class="TitleTd"><%= PayrollConst.NAM_ADJ_BONUS_ALLOWANCE                  %></td>
					<td class="DataTd"><%= vo.getEscLblBonusAllowance()      %></td>
					<td  class="TitleTd"><%= PayrollConst.NAM_ADJ_MIDWAY_ALLOWANCE                 %></td>
					<td class="DataTd"><%= vo.getEscLblMidwayAdjustIncome()  %></td>
				</tr>
				<tr>
					<td  class="TitleTd"><%= PayrollConst.NAM_ADJ_TOTAL_ALLOWANCE                  %></td>
					<td class="DataTd"><%= vo.getEscLblAdjTotalAllowance()                      %></td>
					<td colspan="4"></td>
				</tr>
				<tr>
					<td  class="TitleTd"><%= PayrollConst.NAM_ADJ_PAYMENT_TAX                      %></td>
					<td class="DataTd"><%= vo.getEscLblPaymentIncomeTax()    %></td>
					<td  class="TitleTd"><%= PayrollConst.NAM_ADJ_BONUS_TAX                        %></td>
					<td class="DataTd"><%= vo.getEscLblBonusIncomeTax()      %></td>
					<td  class="TitleTd"><%= PayrollConst.NAM_ADJ_MIDWAY_TAX                       %></td>
					<td class="DataTd"><%= vo.getEscLblMidwayAdjustTax()     %></td>
				</tr>
				<tr>
					<td  class="TitleTd"><%= PayrollConst.NAM_ADJ_TOTAL_INCOME                     %></td>
					<td class="DataTd"><%= vo.getEscLblAdjTotalIncome()    %></td>
					<td colspan="4"></td>
				</tr>
				<tr>
					<td  class="TitleTd"><%= PayrollConst.NAM_ADJ_AFTER_DEDUCT_INCOME              %></td>
					<td class="DataTd"><%= vo.getEscLblAfterDeductIncome()   %></td>
					<td colspan="4"></td>
				</tr>
				<tr>
					<td  class="TitleTd"><%= PayrollConst.NAM_ADJ_PAY_INS_DEDUCTION                %></td>
					<td class="DataTd"><%= vo.getEscLblPayInsDeduction()     %></td>
					<td  class="TitleTd"><%= PayrollConst.NAM_ADJ_SOCIAL_INS_DEDUCTION             %></td>
					<td class="DataTd"><%= vo.getEscLblSocialInsDeduction()  %></td>
					<td  class="TitleTd"><%= PayrollConst.NAM_ADJ_MUTUAL_AID_DEDUCTION             %></td>
					<td class="DataTd"><%= vo.getEscLblMutualAidDeduction()  %></td>
				</tr>
				<tr>
					<td  class="TitleTd"><%= PayrollConst.NAM_ADJ_LIFE_INS_DEDUCTION               %></td>
					<td class="DataTd"><%= vo.getEscLblLifeInsDeduction()    %></td>
					<td  class="TitleTd"><%= PayrollConst.NAM_ADJ_DAMAGE_INS_DEDUCTION             %></td>
					<td class="DataTd"><%= vo.getEscLblDamageInsDeduction()  %></td>
					<td  class="TitleTd"><%= PayrollConst.NAM_ADJ_SPOUSE_SP_DEDUCTION              %></td>
					<td class="DataTd"><%= vo.getEscLblSpouseSpDeduction()   %></td>
				</tr>
				<tr>
					<td  class="TitleTd"><%= PayrollConst.NAM_ADJ_DEPENDENTS_DEDUCTION             %></td>
					<td class="DataTd"><%= vo.getEscLblDependentsDeduction() %></td>
					<td colspan="4"></td>
				</tr>
				<tr>
					<td  class="TitleTd"><%= PayrollConst.NAM_INCOME_DEDUCT_SUM                    %></td>
					<td class="DataTd"><%= vo.getEscLblIncomeDeductSum()     %></td>
					<td  class="TitleTd"><%= PayrollConst.NAM_ADJ_CALC_TAXED_INCOME                %></td>
					<td class="DataTd"><%= vo.getEscLblCalcTaxedIncome()     %></td>
					<td colspan="2"></td>
				</tr>
				<tr>
					<td  class="TitleTd"><%= PayrollConst.NAM_ADJ_CALC_INCOME_TAX                 %></td>
					<td class="DataTd"><%= vo.getEscLblCalcIncomeTax()      %></td>
					<td  class="TitleTd"><%= PayrollConst.CAP_HOUSE_LOAN_DEDUCTION                %></td>
					<td class="DataTd"><%= vo.getEscLblHouseLoanDeduction() %></td>
					<td  class="TitleTd"><%= PayrollConst.NAM_ADJ_FINAL_INCOME_TAX                %></td>
					<td class="DataTd"><%= vo.getEscLblFinalIncomeTax()     %></td>
				</tr>
				<tr>
					<td  class="TitleTd"><%= PayrollConst.NAM_ADJ_TAX_GAP                         %></td>
					<td class="DataTd"><%= vo.getEscLblTaxGap()             %></td>
					<td colspan="4"></td>
				</tr>
			</tbody>
		</table>

	</div>
</div>
<%= HtmlUtility.getFooter(vo) %>
