<%--
/*
 * 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.
 */
--%>
<%--
MosP - Mind Open Source Project         http://www.mosp.jp/
Copyright (C) 1987-2008 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.
--%>
<%-- 〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　--%>
<%--      コンピュータ・マインド・シリーズ／MosP                             --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--      プログラムＩＤ：  ExportCard                                		 --%>
<%--      プログラム名  ：  エクスポート画面                        		 --%>
<%--      修正履歴      ：                                                   --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%-- 〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　--%>
<%@ 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.base.PayrollConst"
import = "jp.mosp.payroll.common.vo.ExportCardVo"


%><%
ExportCardVo vo = (ExportCardVo)request.getAttribute(MospConst.ATT_VO);
String[] aryEName		= vo.getEscAryEName();
String[] aryEFile		= vo.getEscAryEFile();
String[] aryENameKey = vo.getEscAryENameKey();
%>
<%=HtmlUtility.getHeader(vo)%>
<%=vo.getSubTitle(vo.SUB_TITLE, vo.CMD_MENU_PAYROLL)%>
<div class="Body" id="ExportCard">
	<%=HtmlUtility.getMessages(vo) %>
	<div class="Card">
		<table id="info">
			<tr>
				<td class="TitleTd">
					<%=ExportCardVo.NAM_KINTAI_INFO%><%= CommonConst.STR_TITLE_SEPARATOR %>
				</td>
				<td id="tdYearMonth">
					<select id="<%= ExportCardVo.PRM_PLT_YEAR%>" name="<%= ExportCardVo.PRM_PLT_YEAR %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltYear , vo.getPltYear())%>
					</select><%=ExportCardVo.NAM_PLT_YEAR%>
					<select id="<%= ExportCardVo.PRM_PLT_MONTH%>" name="<%= ExportCardVo.PRM_PLT_MONTH %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltMonth , vo.getPltMonth())%>
					</select><%=ExportCardVo.NAM_PLT_MONTH%>
					<select id="<%= ExportCardVo.PRM_PLT_DAY%>" name="<%= ExportCardVo.PRM_PLT_DAY %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltDay , vo.getPltDay())%>
					</select><%=ExportCardVo.NAM_PLT_DAY%>
				</td>
			</tr>
		</table>		
	</div>
	<%= HtmlUtility.getListInfo(vo) %>
	<div class="List">
		<table id="list">
			<thead>
				<tr>
					<th id="thButton"></th>
					<th id="thName"><%= ExportCardVo.NAM_E_NAME %></th>
					<th id="thFile"><%= ExportCardVo.NAM_E_FILE %></th>
					<th id="thExport"></th>
				</tr>
			</thead>
			<tbody>
<%
for (int i = vo.getStart(); i <= vo.getEnd(); i++) {
%>
				<tr>
					<td class="ButtonTd">
<%-- 
						<button type="button" onclick="doSubmitKey(document.form, 'S1216', '<%= aryEName[i] %>', '<%= aryEFile[i] %>')"><%= CommonConst.NAM_CHANGE %></button>
--%>
						<button type="button" onclick="doSubmitKey(document.form, 'P9007', '<%= aryENameKey[i] %>', '<%= aryEFile[i] %>')"><%= CommonConst.NAM_CHANGE %></button>
					</td>
					<td id="tdName"><%= aryEName [i] %></td>
					<td id="tdFile"><%= aryEFile [i] %></td>
					<td id="tdExport">
			            <input type="hidden" id="<%= ExportCardVo.PRM_TXT_E_NAME %>" name="<%= ExportCardVo.PRM_TXT_E_NAME %>" value="<%= aryEName[i] %>">
						<button type="button" class="ExportButton" onclick="doSubmitFileKey(document.form, 'P9006', '<%= aryEName[i] %>', '<%= aryEFile[i] %>')"><%= CommonConst.TTL_EXPORT_MASTER %></button>
					</td>
				</tr>
<%
}
%>
			</tbody>
		</table>
	</div>
	<div class="ButtonDiv">
	<%
	 if (!vo.getTxtEFile().equals(PayrollConst.FB_OUTPUT_DETAIL_BONUS)){
	%>
		 <button type="button" class="ExecuteButton" onclick="doSubmitKey(document.form, 'P9004', '<%= PayrollConst.CODE_TABLE_M_PAYROLL %>')">		<%= CommonConst.NAM_MAKE_NEW_DATA %><%= PayrollConst.NAM_NEW_DATA_M_PAYROLL %>		</button>
	<%
	}
	%>
		<button type="button" class="ExecuteButton" onclick="doSubmitKey(document.form, 'P9010', '<%= PayrollConst.CODE_TABLE_M_BONAS %>')">     <%= CommonConst.NAM_MAKE_NEW_DATA %><%= PayrollConst.NAM_NEW_DATA_M_BOUNAS %>		</button>
	</div>
</div>
<%=HtmlUtility.getFooter(vo) %>	
