<%--
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       = "256kb"
autoFlush    = "false"
errorPage    = "/jsp/common/error.jsp"
%><%@ page
import = "jp.mosp.common.common.MospConst"
import = "jp.mosp.common.common.HtmlUtility"
import = "jp.mosp.payroll.payment.vo.PaymentReportVo"
import = "jp.mosp.payroll.base.PayrollConst"
%><%
PaymentReportVo vo  = (PaymentReportVo)request.getAttribute(MospConst.ATT_VO);
%>
<%= HtmlUtility.getHeader(vo) %>
<%= HtmlUtility.getSubTitle(vo) %>
<div class="Body">
	<%= HtmlUtility.getMessages(vo) %>
	<div>
		<button type="button" id="btnToCard" class="ExecuteButton" onclick="doSubmit(document.form, 'U5248')"><%= vo.getName("P_COMPANY") + vo.getName("P_INFORMATION") + vo.getName("P_MAINTENANCE") %></button>
	</div>
	<div class="Search">
		<table id="tabCondition">
			<tr>
				<td>
					<span class="TitleLabel"><%= vo.getName("P_OFFICE") + vo.getName("C_SEPARATOR") %></span>
					<select id="<%= PaymentReportVo.PRM_PLT_OFFICE %>" name="<%= PaymentReportVo.PRM_PLT_OFFICE %>">
						<option value=""></option>
						<%= HtmlUtility.getSelectOption(vo.getPitOffice(), vo.getPltOffice()) %>
					</select>
				</td>
				<td>
					<span class="TitleLabel"><%= vo.getName("P_SECTION") + vo.getName("C_SEPARATOR") %></span>
					<select id="<%= PaymentReportVo.PRM_PLT_SECTION %>" name="<%= PaymentReportVo.PRM_PLT_SECTION %>">
						<option value=""></option>
						<%= HtmlUtility.getSelectOption(vo.getPitSection(), vo.getPltSection()) %>
					</select>
				</td>
				<td>
					<span class="TitleLabel"><%= vo.getName("P_EMPLOYEE") + vo.getName("C_CODE") + vo.getName("C_SEPARATOR") %></span>
					<input type="text" class="UserIdText" id="<%= PaymentReportVo.PRM_TXT_K_CODE %>" name="<%= PaymentReportVo.PRM_TXT_K_CODE %>" value="<%= vo.getEscTxtKCode() %>" />
				</td>
			</tr>
		</table>
		<table id="tabTargetMonth">
			<tr>
				<td>
					<span class="TitleLabel"><%= vo.getName("P_TARGET_MONTH") + vo.getName("C_SEPARATOR") %></span>
					<select id="<%= PaymentReportVo.PRM_PLT_YEAR %>" name="<%= PaymentReportVo.PRM_PLT_YEAR %>">
						<%= HtmlUtility.getSelectOption(vo.getPitYear(), String.valueOf(vo.getPltYear())) %>
					</select><%= vo.getName("C_YEAR") %>
					<select id="<%= PaymentReportVo.PRM_PLT_MONTH %>" name="<%= PaymentReportVo.PRM_PLT_MONTH %>">
						<%= HtmlUtility.getSelectOption(vo.getPitMonth(), String.valueOf(vo.getPltMonth())) %>
					</select><%= vo.getName("C_MONTH") %>
				</td>
			</tr>
			<tr><td>
				<button type="button" onclick="doSubmitFile(document.form, 'P1265')">
					<%= vo.getName("P_PAYMENT") + vo.getName("C_DATA") + vo.getName("C_EXPORT") %>
				</button>
			</td></tr>
		</table>
	</div>
	<div class="Search">
	<table id="tabTargetMonth">
			<tr>
				<td>
					<span class="TitleLabel"><%= vo.getName("P_TARGET_MONTH") + vo.getName("C_SEPARATOR") %></span>
					<select id="<%= PaymentReportVo.PRM_PLT_OUT_YEAR %>" name="<%= PaymentReportVo.PRM_PLT_OUT_YEAR %>">
						<%= HtmlUtility.getSelectOption(vo.getPitOutYear(), String.valueOf(vo.getPltOutYear())) %>
					</select><%= vo.getName("C_YEAR") %>
					<select id="<%= PaymentReportVo.PRM_PLT_OUT_MONTH %>" name="<%= PaymentReportVo.PRM_PLT_OUT_MONTH %>">
						<%= HtmlUtility.getSelectOption(vo.getPitOutMonth(), String.valueOf(vo.getPltOutMonth())) %>
					</select><%= vo.getName("C_MONTH") %>
				</td>
			</tr>
			<tr>
				<td>	
					<button type="button" id="btnDataCashKindPayroll" onclick="doSubmitFile(document.form, 'P9012')">
						<%= PayrollConst.NAM_CASH_KIND_PAYROLL %>
					</button>
					<button type="button" id="btnDataBankParsonPayroll" onclick="doSubmitFile(document.form, 'P9014')">
						<%= PayrollConst.NAM_BANK_PARSON_PAYROLL %>
					</button>	
					<button type="button" id="btnDataBankCompanyPayroll" onclick="doSubmitFile(document.form, 'P9015')">
						<%= PayrollConst.NAM_BANK_COMPANY_PAYROLL %>
					</button>
					<button type="button" id="btnDataTaxParsonPayroll" onclick="doSubmitFile(document.form, 'P9018')">
						<%= PayrollConst.NAM_TAX_PARSON_PAYROLL %>
					</button>
					<button type="button" id="btnDataTaxCompanyPayroll" onclick="doSubmitFile(document.form, 'P9019')">
						<%= PayrollConst.NAM_TAX_COMPANY_PAYROLL %>
					</button>
				</td>
			</tr>
	</table>
	</div>
	
</div>
<%= HtmlUtility.getFooter(vo) %>
