<%--
/*
 * 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       = "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.bonus.BonusConst"
import = "jp.mosp.payroll.base.PayrollVo"
import = "jp.mosp.payroll.bonus.vo.BonusCalcVo"
%><%
BonusCalcVo vo = (BonusCalcVo)request.getAttribute(MospConst.ATT_VO);
%>
<%= HtmlUtility.getHeader(vo) %>
<%= vo.getSubTitle(vo.SUB_TITLE, "P1910") %>
<div class="Body" id="bonusCalc">
	<%=HtmlUtility.getMessages(vo)%>
<div class="Explanation">
	<font class= "ExplanationFont">
		社員の賞与情報がアップロードできます。<br />
		計算年月が賞与支給日に反映されます。<br />
		尚、社員コード(<%= BonusConst.UP_K_CODE %>)は必須です。必ずデータに追加してください。<br />
		アップロードは拡張子が「csv」のみ可能です。<br />
		尚、<%= BonusConst.UPPER_BONUS_REGIST + 1 %>回以上の賞与が支給された社員はアップロード対象外です。<br />
	</font>
</div>
<div class="Select">

		<table id="tblUpload">
			<tr>
				<td id="tdMonth">
					<%= BonusConst.NAM_BONUS_DATE %>
					<select id="<%= BonusCalcVo.PRM_PLT_YEAR %>" name="<%= BonusCalcVo.PRM_PLT_YEAR %>">
						<%= HtmlUtility.getSelectOption(vo.aryPltYear, vo.getPltYear()) %>
					</select><%= BonusConst.NAM_YEAR %>
					<select id="<%= BonusCalcVo.PRM_PLT_MONTH %>" name="<%= BonusCalcVo.PRM_PLT_MONTH %>">
						<%= HtmlUtility.getSelectOption(vo.aryPltMonth, vo.getPltMonth()) %>
					</select><%= BonusConst.NAM_MONTH %>
					<select id="<%= BonusCalcVo.PRM_PLT_DAY %>" name="<%= BonusCalcVo.PRM_PLT_DAY %>">
						<%= HtmlUtility.getSelectOption(vo.aryPltDay, vo.getPltDay()) %>
					</select><%= BonusConst.NAM_DAY %>
				</td>
				<td>
					<input type="file" id="<%= BonusCalcVo.PRM_FIL_UPLOAD_FILE %>" name="<%= BonusCalcVo.PRM_FIL_UPLOAD_FILE %>" />
				</td>
				<td class="ButtonTd">
					<button type="button" onclick="doSubmitMulti(document.form, 'P2002')"><%= BonusConst.NAM_UPLOAD %></button>
				</td>
				<td class="ButtonTd">
					<button type="button" onclick="doSubmitFile(document.form, 'P2006')"><%= BonusConst.NAM_UPLOAD_TMP %></button>
				</td>
			</tr>
		</table>
		<table id="tblDelete">
			<tr>
				<td class="ButtonTd">
					<button type="button" id = "btnDelete" onclick="doSubmitMessage(document.form, 'P2003', 'QU0014', '<%= BonusConst.NAM_CONFIRM_BONUS %>')"><%= BonusConst.NAM_DELETE %></button>
				</td>
			</tr>
		</table>
		<table id="tblBonusBotton">
			<tr>
				<td class="ButtonTd">
					<button type="button" id="btnData" onclick="doSubmitMessage(document.form, 'P2005','QU0015','<%= BonusConst.NAM_FIX_ATTENDANCE %>')">	<%= BonusConst.NAM_FIX_ATTENDANCE %>
					</button>
				</td>
				<td class="ButtonTd">
					<button type="button" id="btnData" onclick="doSubmit(document.form, 'P2011')"><%= BonusConst.TTL_BONUS_CARD %></button>
				</td>
				<td class="ButtonTd">
					<button type="button" id="btnData" onclick="doSubmit(document.form, 'P2021')"><%= BonusConst.TTL_BONUS_LIST %></button>
				</td>
				<td class="ButtonTd">
					<button type="button" id="btnData" onclick="doSubmitKey(document.form, 'P9001', '1')"><%= BonusConst.NAM_FB_BONUS %></button>
				</td>
			</tr>
		</table>
		<table id="tblOutput">
			<tr>
				<td class="ButtonTd">
					<button type="button"  id="btnData" onclick="doSubmitKey(document.form, 'P9003', '1')"><%= BonusConst.NAM_OUTPUT_BONUS_DATA %></button> 
					<%--
					 <button type="button" onclick="doSubmitFile(document.form, 'P9003')"><%= BonusConst.NAM_OUTPUT_BONUS_DATA %></button>
					--%>
				</td>
				<td class="ButtonTd">
					<button type="button"  id="btnOutput" onclick="doSubmitFile(document.form, 'P9013')"><%= BonusConst.NAM_CASH_KIND_PAIROLL %></button> 
				</td>
				<td class="ButtonTd">
					<button type="button"  id="btnOutput" onclick="doSubmitFile(document.form, 'P9016')"><%= BonusConst.NAM_BANK_PARSON_PAIROLL %></button> 
				</td>
				<td class="ButtonTd">
					<button type="button"  id="btnOutput" onclick="doSubmitFile(document.form, 'P9017')"><%= BonusConst.NAM_BANK_COMPANY_PAIROLL %></button> 
				</td>
			</tr>
		</table>
		
</div>
<div class="LineUp" >
<table></table>
<table class="HeaderTable">
	<tbody>
		<tr><td>
			<%= BonusConst.NAM_HEADER_SELECT %>
		</td></tr>
	</tbody>
</table>

<table class="ExtraTable">
		<tbody>
			<tr>
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_ALLOWANCE_01%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_ALLOWANCE_01%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_ALLOWANCE_02%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_ALLOWANCE_02%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_ALLOWANCE_03%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_ALLOWANCE_03%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_ALLOWANCE_04%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_ALLOWANCE_04%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_ALLOWANCE_05%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_ALLOWANCE_05%>
				</td>	
			</tr>
			<tr>
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_ALLOWANCE_06%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_ALLOWANCE_06%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_ALLOWANCE_07%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_ALLOWANCE_07%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_ALLOWANCE_08%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_ALLOWANCE_08%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_ALLOWANCE_09%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_ALLOWANCE_09%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_ALLOWANCE_10%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_ALLOWANCE_10%>
				</td>	
			</tr>
			<tr>
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_ALLOWANCE_11%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_ALLOWANCE_11%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_ALLOWANCE_12%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_ALLOWANCE_12%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_ALLOWANCE_13%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_ALLOWANCE_13%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_ALLOWANCE_14%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_ALLOWANCE_14%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_ALLOWANCE_15%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_ALLOWANCE_15%>
				</td>	
			</tr>
			<tr>
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_ALLOWANCE_16%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_ALLOWANCE_16%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_ALLOWANCE_17%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_ALLOWANCE_17%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_ALLOWANCE_18%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_ALLOWANCE_18%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_ALLOWANCE_19%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_ALLOWANCE_19%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_ALLOWANCE_20%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_ALLOWANCE_20%>
				</td>	
			</tr>
			<tr>
				<td colspan="10"></td>
			</tr>

			<tr>
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_DEDUCTION_01%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_DEDUCTION_01%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_DEDUCTION_02%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_DEDUCTION_02%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_DEDUCTION_03%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_DEDUCTION_03%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_DEDUCTION_04%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_DEDUCTION_04%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_DEDUCTION_05%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_DEDUCTION_05%>
				</td>
			</tr>



			<tr>
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_DEDUCTION_06%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_DEDUCTION_06%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_DEDUCTION_07%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_DEDUCTION_07%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_DEDUCTION_08%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_DEDUCTION_08%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_DEDUCTION_09%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_DEDUCTION_09%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_DEDUCTION_10%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_DEDUCTION_10%>
				</td>
			</tr>
			<tr>
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_DEDUCTION_11%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_DEDUCTION_11%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_DEDUCTION_12%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_DEDUCTION_12%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_DEDUCTION_13%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_DEDUCTION_13%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_DEDUCTION_14%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_DEDUCTION_14%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_DEDUCTION_15%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_DEDUCTION_15%>
				</td>	
			</tr>
			<tr>
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_DEDUCTION_16%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_DEDUCTION_16%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_DEDUCTION_17%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_DEDUCTION_17%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_DEDUCTION_18%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_DEDUCTION_18%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_DEDUCTION_19%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_DEDUCTION_19%>
				</td>	
				<td class="TitleTd1"><%= BonusConst.NAM_BONUS_DEDUCTION_20%><%= BonusConst.STR_TITLE_SEPARATOR %></td>	
				<td class="DataTd">	
					<%= BonusConst.UP_BONUS_DEDUCTION_20%>
				</td>	
			</tr>
		</tbody>
	</table>
</div>	

</div>

<%= HtmlUtility.getFooter(vo) %>
