<%--
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.common.CommonConst"
import = "jp.mosp.kintai.payroll.vo.WorkCompileImportCardVo"
%><%
WorkCompileImportCardVo vo = (WorkCompileImportCardVo)request.getAttribute(MospConst.ATT_VO);
String[][] aryKintai		= vo.getEscAryKintai();
%>
<%=HtmlUtility.getHeader(vo)%>
<%=HtmlUtility.getSubTitle(vo)%>
<div class="Body" id="upload">
	<%=HtmlUtility.getMessages(vo)%>
	<div class="Card">
		<table>
			<tr>
				<td class="TitleTd">
					<%=HtmlUtility.getRequiredMark()%><%=CommonConst.NAM_TARGET_FILE%><%=CommonConst.STR_TITLE_SEPARATOR%>
				</td>
				<td class="InputTd">
					<input type="file" id="<%= WorkCompileImportCardVo.PRM_FIL_UPLOAD_FILE %>" name="<%= WorkCompileImportCardVo.PRM_FIL_UPLOAD_FILE %>" />
				</td>
				<td class="ButtonTd">
					<button type="button" onclick="doSubmitMulti(document.form, 'S1241')"><%= CommonConst.NAM_UPLOAD %></button>
				</td>
			</tr>
		</table>
		<div class="buttonDiv">
			<button type="button" id="btnImport" onclick="submitForm(document.form, 'S1242')">
				<%= CommonConst.NAM_IMPORT %><%= CommonConst.NAM_START %>
			</button>
			<button type="button" id="btnReport" onclick="doSubmitFile(document.form, 'S1243')">
				<%= CommonConst.NAM_IMPORT %><%= CommonConst.NAM_ERROR %><%= vo.getName("C_EXPORT") %>
			</button>
		</div>
	</div>
	<%=HtmlUtility.getListInfo(vo)%>
	<div class="List">
		<table id="list">
			<thead>
				<tr>
					<th id="thColumn0" 	><%= vo.NAM_K_CODE					%></th>
					<th id="thColumn1"	><%= vo.NAM_SIKYU_YM				%></th>
					<th id="thColumn2"	><%= vo.NAM_S_YMD					%></th>
					<th id="thColumn3"	><%= vo.NAM_S_NISSU					%></th>
					<th id="thColumn4"	><%= vo.NAM_S_KAISU					%></th>
					<th id="thColumn5" 	><%= vo.NAM_KINMU_JI				%></th>
					<th id="thColumn6" 	><%= vo.NAM_KYUKEI_JI				%></th>
					<th id="thColumn7"	><%= vo.NAM_YUKYU					%></th>
					<th id="thColumn8"	><%= vo.NAM_TOKUKYU					%></th>
					<th id="thColumn9"	><%= vo.NAM_KEKKIN					%></th>
					<th id="thColumn10"	><%= vo.NAM_S_KEKKIN				%></th>
					<th id="thColumn11"	><%= vo.NAM_DAIKYU					%></th>
					<th id="thColumn12"	><%= vo.NAM_FURIKAE					%></th>
					<th id="thColumn13"	><%= vo.NAM_KK_RIYUU_6				%></th>
					<th id="thColumn14"	><%= vo.NAM_KK_RIYUU_7				%></th>
					<th id="thColumn15"	><%= vo.NAM_KK_RIYUU_8				%></th>
					<th id="thColumn16"	><%= vo.NAM_KK_RIYUU_9				%></th>
					<th id="thColumn17"	><%= vo.NAM_SONOTA					%></th>
					<th id="thColumn18"	><%= vo.NAM_TI_SO_KAI				%></th>
					<th id="thColumn19"	><%= vo.NAM_TI_JIKAN				%></th>
					<th id="thColumn20"	><%= vo.NAM_ZA_JIKAN				%></th>
				</tr>
				<tr>
					<th id="thColumn21"	><%= vo.NAM_KS_JIKAN				%></th>
					<th id="thColumn22"	><%= vo.NAM_SN_JIKAN				%></th>
					<th id="thColumn23"	><%= vo.NAM_KAIKIN					%></th>
					<th id="thColumn24"	><%= vo.NAM_SYOKUJI_KAISU			%></th>
					<th id="thColumn25"	><%= vo.NAM_CYOKU_KAISU_1			%></th>
					<th id="thColumn26"	><%= vo.NAM_CYOKU_KAISU_2			%></th>
					<th id="thColumn27"	><%= vo.NAM_CYOKU_KAISU_3			%></th>
					<th id="thColumn28"	><%= vo.NAM_HOKA_KAISU_1			%></th>
					<th id="thColumn29"	><%= vo.NAM_HOKA_KAISU_2			%></th>
					<th id="thColumn30"	><%= vo.NAM_HOKA_KAISU_3			%></th>
					<th id="thColumn31"	><%= vo.NAM_HOKA_KAISU_4			%></th>
					<th id="thColumn32"	><%= vo.NAM_HOKA_KAISU_5			%></th>
					<th id="thColumn33"	><%= vo.NAM_SINSEI_GAKU				%></th>
					<th id="thColumn34"	><%= vo.NAM_WARIMASI				%></th>
					<th id="thColumn35"	><%= vo.NAM_WEEK_DAY_OVER_TIME		%></th>
					<th id="thColumn36"	><%= vo.NAM_WEEK_HOLIDAY_OVER_TIME	%></th>
					<th id="thColumn37"	><%= vo.NAM_MONTHLY_OVER_TIME		%></th>
					<th id="thColumn38"	><%= vo.NAM_MONTHLY_WEEK_HOLIDAY	%></th>
					<th id="thColumn39"	><%= vo.NAM_HOUR_HOLIDAY			%></th>
					<th id="thColumn40"	><%= vo.NAM_SUBSTITUTE_HOLIDAY		%></th>
					<th id="thColumn41"	><%= vo.NAM_AMEND_FLAG				%></th>
				</tr>
			</thead>
			<tbody>
<%
for (int i = vo.getStart(); i <= vo.getEnd(); i++) {
%>
				<tr>
					<td><%= aryKintai[i][0] %></td>
					<td><%= aryKintai[i][1] %></td>
					<td><%= aryKintai[i][2] %></td>
					<td><%= aryKintai[i][3] %></td>
					<td><%= aryKintai[i][4] %></td>
					<td><%= aryKintai[i][5] %></td>
					<td><%= aryKintai[i][6] %></td>
					<td><%= aryKintai[i][7] %></td>
					<td><%= aryKintai[i][8] %></td>
					<td><%= aryKintai[i][9] %></td>
					<td><%= aryKintai[i][10] %></td>
					<td><%= aryKintai[i][11] %></td>
					<td><%= aryKintai[i][12] %></td>
					<td><%= aryKintai[i][13] %></td>
					<td><%= aryKintai[i][14] %></td>
					<td><%= aryKintai[i][15] %></td>
					<td><%= aryKintai[i][16] %></td>
					<td><%= aryKintai[i][17] %></td>
					<td><%= aryKintai[i][18] %></td>
					<td><%= aryKintai[i][19] %></td>
					<td><%= aryKintai[i][20] %></td>
				</tr>
				<tr>
					<td><%= aryKintai[i][21] %></td>
					<td><%= aryKintai[i][22] %></td>
					<td><%= aryKintai[i][23] %></td>
					<td><%= aryKintai[i][24] %></td>
					<td><%= aryKintai[i][25] %></td>
					<td><%= aryKintai[i][26] %></td>
					<td><%= aryKintai[i][27] %></td>
					<td><%= aryKintai[i][28] %></td>
					<td><%= aryKintai[i][29] %></td>
					<td><%= aryKintai[i][30] %></td>
					<td><%= aryKintai[i][31] %></td>
					<td><%= aryKintai[i][32] %></td>
					<td><%= aryKintai[i][33] %></td>
					<td><%= aryKintai[i][34] %></td>
					<td><%= aryKintai[i][35] %></td>
					<td><%= aryKintai[i][36] %></td>
					<td><%= aryKintai[i][37] %></td>
					<td><%= aryKintai[i][38] %></td>
					<td><%= aryKintai[i][39] %></td>
					<td><%= aryKintai[i][40] %></td>
					<td><%= aryKintai[i][41] %></td>
				</tr>
<%
}
%>
				</tbody>
			</table>
		</div>
	</div>
<%=HtmlUtility.getFooter(vo) %>
