<%--
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.vo.CompileAmendmentListVo"
%><%
CompileAmendmentListVo vo = (CompileAmendmentListVo)request.getAttribute(MospConst.ATT_VO);
String[][] aryCompile = vo.getAryCompile();
%>
<%= HtmlUtility.getHeader(vo) %>
<%= vo.getSubTitle(vo.SUB_TITLE, vo.CMD_MENU_PAYROLL, vo.CMD_ATT_CALCULATE_MENU ,vo.ATT_CALCULATE_MENU_TITLE) %>
<div class="Body" id="employeeList">
	<%=HtmlUtility.getMessages(vo)%>
	<div class="Search">
		<table>
			<tr>
				<td id="tdKCode">
					<span class="TitleLabel"><%= CompileAmendmentListVo.NAM_K_CODE %><%= CommonConst.STR_TITLE_SEPARATOR %></span>
					<input type="text" class="UserIdText" id="<%= CompileAmendmentListVo.PRM_TXT_K_CODE %>" name="<%= CompileAmendmentListVo.PRM_TXT_K_CODE %>" value="<%= vo.getEscTxtKCode() %>" />
				</td>
				<td id="tdKName">
					<span class="TitleLabel"><%= CompileAmendmentListVo.NAM_K_NAME %><%= CommonConst.STR_TITLE_SEPARATOR %></span>
					<input type="text" class="TextBox" id="<%= CompileAmendmentListVo.PRM_TXT_K_NAME %>" name="<%= CompileAmendmentListVo.PRM_TXT_K_NAME %>" value="<%= vo.getEscTxtKName() %>" />
				</td>
				<td id="tdStation">
					<span class="TitleLabel"><%= CompileAmendmentListVo.NAM_SECTION %><%= CommonConst.STR_TITLE_SEPARATOR %></span>
					<select class="StationSelect" id="<%= CompileAmendmentListVo.PRM_PLT_SECTION %>" name="<%= CompileAmendmentListVo.PRM_PLT_SECTION %>">
						<%= HtmlUtility.getSelectOption(vo.aryPltSection, vo.getPltSection()) %>
					</select>
				</td>
				<td class="ButtonTd" rowspan="2">
					<button type="button" onclick="submitForm(document.form, 'P1041')"><%= CommonConst.NAM_SEARCH %></button>
				</td>
			</tr>
			<tr>
				<td id="tdYearMonth">
					<span class="TitleLabel"><%= CompileAmendmentListVo.NAM_CALCULATE_TARGET %><%= CommonConst.STR_TITLE_SEPARATOR %></span>
					<select id="<%= CompileAmendmentListVo.PRM_PLT_YEAR %>" name="<%= CompileAmendmentListVo.PRM_PLT_YEAR %>">
						<%= HtmlUtility.getSelectOption(vo.aryPltYear, vo.getPltYear()) %>
					</select><%= CommonConst.NAM_YEAR %>
					<select id="<%= CompileAmendmentListVo.PRM_PLT_MONTH %>" name="<%= CompileAmendmentListVo.PRM_PLT_MONTH %>">
						<%= HtmlUtility.getSelectOption(vo.aryPltMonth, vo.getPltMonth()) %>
					</select><%= CommonConst.NAM_MONTH %>
				</td>
				<td id="tdApproval">
					<span class="TitleLabel"><%= CompileAmendmentListVo.NAM_APPROVAL %><%= CommonConst.STR_TITLE_SEPARATOR %></span>
					<select class="ApprovalSelect" id="<%= CompileAmendmentListVo.PRM_PLT_APPROVAL %>" name="<%= CompileAmendmentListVo.PRM_PLT_APPROVAL %>">
						<%= HtmlUtility.getSelectOption(vo.aryPltApprovalFlag, vo.getPltApproval()) %>
					</select>
				</td>
				<td id="tdCompile">
					<span class="TitleLabel"><%= CompileAmendmentListVo.NAM_COMPILE %><%= CommonConst.STR_TITLE_SEPARATOR %></span>
					<select class="CompileSelect" id="<%= CompileAmendmentListVo.PRM_PLT_COMPILE %>" name="<%= CompileAmendmentListVo.PRM_PLT_COMPILE %>">
						<%= HtmlUtility.getSelectOption(vo.aryPltCompileFlag, vo.getPltCompile()) %>
					</select>
				</td>
			</tr>
		</table>
	</div>
	<%=HtmlUtility.getListInfo(vo)%>
	<div class="List">
		<table id="list">
			<thead>
				<tr>
					<th id="thButton"></th>
					<th id="thKCode"   onclick="doSubmitKey(document.form, 'P1043', '<%= vo.KEY_K_CODE  %>', '')">&nbsp;<%= CommonConst.NAM_COMMON_CODE %>&nbsp;<%= vo.getSortMark(vo.KEY_K_CODE) %></th>
					<th id="thKName"   onclick="doSubmitKey(document.form, 'P1043', '<%= vo.KEY_K_NAME  %>', '')">&nbsp;<%= CommonConst.NAM_K_NAME %>&nbsp;<%= vo.getSortMark(vo.KEY_K_NAME) %></th>
					<th id="thSection" onclick="doSubmitKey(document.form, 'P1043', '<%= vo.KEY_SECTION %>', '')">&nbsp;<%= CommonConst.NAM_STATION %>&nbsp;<%= vo.getSortMark(vo.KEY_SECTION) %></th>
					<th id="TimeTh" ><%= CommonConst.NAM_START_TIME %>			</th>					
					<th id="TimeTh" ><%= CommonConst.NAM_ABB_PAID_HOLIDAY %>	</th>
					<th id="TimeTh" ><%= CommonConst.NAM_PARTICULAR_HOLIDAY %>	</th>				
					<th id="TimeTh" ><%= CommonConst.NAM_ATTENDANCE_NOTICED %>	</th>
					<th id="WorkTh" ><%= CommonConst.NAM_WORKING %>				</th>				
					<th id="TimeTh" ><%= CommonConst.NAM_INTERVAL_TIME %>		</th>				
					<th id="TimeTh" ><%= CommonConst.NAM_LATE_AND_LEAVE_EARLY %></th>				
					<th id="TimeTh" ><%= CommonConst.NAM_OVERTIME %>			</th>				
					<th id="TimeTh" ><%= CommonConst.NAM_WORK_ON_HOLIDAY %>		</th>				
					<th id="TimeTh" ><%= CommonConst.NAM_LATE_NIGHT %>			</th>
					<th id="thApproval" ><%= CommonConst.NAM_REMAIN_APPROVED %>	</th>
					<th id="thCompile"  ><%= CommonConst.NAM_REMAIN_COMPILE %>	</th>
				</tr>
			</thead>
			<tbody>
<%
for (int i = vo.getStart(); i <= vo.getEnd(); i++) {
%>
				<tr>
					<td class="ButtonTd">
						<button type="button" onclick="doSubmitKey(document.form, 'P1046', '<%= aryCompile[i][0] %>', '<%= vo.getHidSelectDate() %>')"><%= CommonConst.NAM_SELECT %></button>
					</td>
					<td><%= aryCompile[i][0 ] %></td>
					<td><%= aryCompile[i][1 ] %></td>
					<td><%= aryCompile[i][2 ] %></td>
					<td><%= aryCompile[i][3 ] %></td>
					<td><%= aryCompile[i][4 ] %></td>
					<td><%= aryCompile[i][5 ] %></td>
					<td><%= aryCompile[i][6 ] %></td>
					<td><%= aryCompile[i][7 ] %></td>
					<td><%= aryCompile[i][8 ] %></td>
					<td><%= aryCompile[i][9 ] %></td>
					<td><%= aryCompile[i][10] %></td>
					<td><%= aryCompile[i][11] %></td>
					<td><%= aryCompile[i][12] %></td>
					
					<td><%= vo.changeColorText(vo.aryPltApprovalFlag, aryCompile[i][13]) %></td>
					<td><%= vo.changeColorText(vo.aryPltCompileFlag,  aryCompile[i][14]) %></td>
				</tr>
<%
}
%>
			</tbody>
		</table>
	</div>
</div>
<%= HtmlUtility.getFooter(vo) %>
