<%--
/*
 * 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.common.CommonConst"
import = "jp.mosp.payroll.common.vo.SyukkinboImportCardVo"
%><%
SyukkinboImportCardVo vo = (SyukkinboImportCardVo)request.getAttribute(MospConst.ATT_VO);
String[][] aryImportData = vo.getEscAryImportData();
%>
<%= HtmlUtility.getHeader(vo) %>
<%= HtmlUtility.getSubTitle(vo) %>
<div class="Body" id="Import">
	<%=HtmlUtility.getMessages(vo)%>
	<div class="Select">
		<table id="tblHeader">
			<tbody>
				<tr>
					<td>
						<%= vo.getName("P_HEADER") %><%= vo.getName("C_SEPARATOR") %>
					</td>
					<td>
						<%= vo.getEscLblHeader() %>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
	<div class="Card">
		<table>
			<tr>
				<td class="InputTd">
					<input type="file" id="<%= SyukkinboImportCardVo.PRM_FIL_IMPORT_FILE %>" name="<%= SyukkinboImportCardVo.PRM_FIL_IMPORT_FILE %>" />
				</td>
				<td class="ButtonTd">
					<button type="button" class="fncButton" onclick="doSubmitMulti(document.form, 'P9051')"><%= vo.getName("P_IMPORT") %></button>
				</td>
			</tr>
		</table>
	</div>
<%= HtmlUtility.getListInfo(vo) %>
	<div class="List">
		<table id="list">
			<thead>
				<tr>
					<th id="thKCode"><%= vo.getName("P_K_CODE") %></th>
					<th id="thDay"><%= vo.getName("C_DAY")	%></th>
					<th id="thWorkingType"><%= vo.getName("P_WORKING_TYPE") %></th>
					<th class="thTime"><%= vo.getName("P_START_TIME") %></th>
					<th class="thTime"><%= vo.getName("P_QUIT_TIME") %></th>
					<th class="thTime"><%= CommonConst.NAM_PAYMENT_HOURS_ABB %></th>
					<th class="thTime"><%= vo.getName("P_INTERVAL_TIME") %></th>
					<th class="thTime"><%= vo.getName("P_ARRIVE_LATE") %></th>
					<th class="thTime"><%= vo.getName("P_LEAVE_EARLY") %></th>
					<th class="thTime"><%= vo.getName("P_OVERTIME") %></th>
					<th class="thTime"><%= vo.getName("P_WORK_ON_HOLIDAY") %></th>
					<th class="thTime"><%= vo.getName("P_LATE_NIGHT") %></th>
					<th id="thAllowance"><%= vo.getName("P_ALLOWANCE") %></th>
					<th id="thRemarks"><%= vo.getName("P_REMARKS") %></th>
				</tr>
			</thead>
			<tbody>
<%
for (int i = vo.getStart(); i <= vo.getEnd(); i++) {
%>
				<tr>
					<td><%= aryImportData[i][0] %></td>
					<td><%= aryImportData[i][1] %></td>
					<td><%= aryImportData[i][2] %></td>
					<td class="tdTime"><%= aryImportData[i][3] %></td>
					<td class="tdTime"><%= aryImportData[i][4] %></td>
					<td class="tdTime"><%= aryImportData[i][5] %></td>
					<td class="tdTime"><%= aryImportData[i][6] %></td>
					<td class="tdTime"><%= aryImportData[i][7] %></td>
					<td class="tdTime"><%= aryImportData[i][8] %></td>
					<td class="tdTime"><%= aryImportData[i][9] %></td>
					<td class="tdTime"><%= aryImportData[i][10] %></td>
					<td class="tdTime"><%= aryImportData[i][11] %></td>
					<td><%= aryImportData[i][12] %></td>
					<td><%= aryImportData[i][13] %></td>
				</tr>
<%
}
%>
			</tbody>
		</table>
	</div>
</div>
<%=HtmlUtility.getFooter(vo) %>
