<%@ 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.base.PayrollConst"
import = "jp.mosp.payroll.common.vo.ImportMasterListVo"
%><%
ImportMasterListVo vo	= (ImportMasterListVo)request.getAttribute(MospConst.ATT_VO);
String[] aryImportCmd	= vo.getAryImportCmd();
String[] aryICode		= vo.getEscAryICode();
String[] aryIName		= vo.getEscAryIName();
String[] aryITable		= vo.getEscAryITable();
%>
<%= HtmlUtility.getHeader(vo) %>
<%= HtmlUtility.getSubTitle(vo) %>
<div class="Body" id="importMasterList">
	<%= HtmlUtility.getMessages(vo) %>
	<div class="Search">
		<table>
			<tr>
				<td id="tdICode">
					<span><%= vo.getName("P_IMPORT") + vo.getName("C_CODE") + vo.getName("C_SEPARATOR") %></span>
					<input type="text" class="CodeTextBox" id="<%= ImportMasterListVo.PRM_TXT_I_CODE %>" name="<%= ImportMasterListVo.PRM_TXT_I_CODE %>" value="<%= vo.getEscTxtICode() %>" />
				</td>
				<td id="tdIName">
					<span><%= vo.getName("P_IMPORT") + vo.getName("P_MEISHOU") + vo.getName("C_SEPARATOR") %></span>
					<input type="text" class="TextBox" id="<%= ImportMasterListVo.PRM_TXT_I_NAME %>" name="<%= ImportMasterListVo.PRM_TXT_I_NAME %>" value="<%= vo.getEscTxtIName() %>" />
				</td>
				<td id="tdITable">
					<span><%= vo.getName("P_IMPORT") + vo.getName("P_TABLE") + vo.getName("C_SEPARATOR") %></span>
					<select id="<%= ImportMasterListVo.PRM_PLT_I_TABLE %>" name="<%= ImportMasterListVo.PRM_PLT_I_TABLE %>">
						<option value=""></option>
						<%= HtmlUtility.getSelectOption(vo.aryPltITable, vo.getPltITable()) %>
					</select>
				</td>
				<td class="ButtonTd">
					<button type="button" onclick="doSubmit(document.form, 'P9021')"><%= vo.getName("C_SEARCH") %></button>
				</td>
			</tr>
		</table>
	</div>
	<%= HtmlUtility.getListInfo(vo) %>
	<div class="List">
		<table id="list">
			<thead>
				<tr>
					<th class="thButton"></th>
					<th class="thButton"></th>
					<th id="thICode" onclick="doSubmitKey(document.form, 'P9023', '<%= vo.KEY_I_CODE %>', '')">&nbsp;<%= vo.getName("P_IMPORT") + vo.getName("C_CODE") %>&nbsp;<%= vo.getSortMark(vo.KEY_I_CODE) %></th>
					<th id="thIName" onclick="doSubmitKey(document.form, 'P9023', '<%= vo.KEY_I_NAME %>', '')">&nbsp;<%= vo.getName("P_IMPORT") + vo.getName("P_MEISHOU") %>&nbsp;<%= vo.getSortMark(vo.KEY_I_NAME) %></th>
					<th id="thITable" onclick="doSubmitKey(document.form, 'P9023', '<%= vo.KEY_I_TABLE %>', '')">&nbsp;<%= vo.getName("P_IMPORT") + vo.getName("P_TABLE") %>&nbsp;<%= vo.getSortMark(vo.KEY_I_TABLE) %></th>
				</tr>
			</thead>
			<tbody>
<%
for (int i = vo.getStart(); i <= vo.getEnd(); i++) {
%>
				<tr>
					<td class="ButtonTd">
						<button type="button" onclick="doSubmitKey(document.form, 'P9031', '<%= aryICode[i] %>', '')">
							<%= vo.getName("C_SELECT") %>
						</button>
					</td>
					<td class="ButtonTd">
						<button type="button" onclick="doSubmitKey(document.form, '<%= aryImportCmd[i] %>', '<%= aryICode[i] %>', '')">
							<%= vo.getName("P_EXECUTE") %>
						</button>
					</td>
					<td><%= aryICode[i] %></td>
					<td><%= aryIName[i] %></td>
					<td><%= aryITable[i] %></td>
				</tr>
<%
}
%>
			</tbody>
		</table>
	</div>
	<div class="ButtonDiv">
		<button type="button" class="ExecuteButton" onclick="doSubmitKey(document.form, 'P9030', '<%= PayrollConst.CODE_IMPORT_TABLE_PI_PAYMENT %>', '')"><%= vo.getName("P_MAKE_NEW_DATA") %><%= vo.getName("P_ROUND_BRACKETS_LEFT") %><%= PayrollConst.NAM_IMPORT_TABLE_PI_PAYMENT %><%= vo.getName("P_ROUND_BRACKETS_RIGHT") %></button>
		<button type="button" class="ExecuteButton" onclick="doSubmitKey(document.form, 'P9030', '<%= PayrollConst.CODE_IMPORT_TABLE_M_SYUKKINBO %>', '')"><%= vo.getName("P_MAKE_NEW_DATA") %><%= vo.getName("P_ROUND_BRACKETS_LEFT") %><%= PayrollConst.NAM_IMPORT_TABLE_M_SYUKKINBO %><%= vo.getName("P_ROUND_BRACKETS_RIGHT") %></button>
		<button type="button" class="ExecuteButton" onclick="doSubmitKey(document.form, 'P9030', '<%= PayrollConst.CODE_IMPORT_TABLCT_TIMECARD %>', '')"><%= vo.getName("P_MAKE_NEW_DATA") %><%= vo.getName("P_ROUND_BRACKETS_LEFT") %><%= PayrollConst.NAM_IMPORT_TABLCT_TIMECARD %><%= vo.getName("P_ROUND_BRACKETS_RIGHT") %></button>
		<button type="button" class="MenuButton" onclick="doSubmit(document.form, 'P1910')"><%= vo.getName("C_MENU") %><%= vo.getName("C_TO") %></button>
	</div>
</div>
<%= HtmlUtility.getFooter(vo) %>
