<!DOCTYPE html> 
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:th="http://www.thymeleaf.org"
	  xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
	  layout:decorate="~{/web/layout/homeLayout}">
	<th:block layout:fragment="layout_css">
		<link rel="stylesheet" href="/css/web/hospital_vacation_sub.css?v1.1">
		<link rel="stylesheet" href="/css/web/modal_hospital_vacation_sub.css?v1.1">
		<link rel="stylesheet" href="/css/web/modal_hospital.css?v1.1">
		<link rel="stylesheet" href="/css/web/grid.css?v1.1">
	</th:block>

<th:block layout:fragment="layout_top_script">
<script src="/js/web/common_option.js"></script>

<script>
let menuClass     = "[[${param.menuClass}]]"==""?"":"[[${param.menuClass}]]";

let selectUseYn   = "[[${selectUseYn}]]"==""?"N":"[[${selectUseYn}]]";
let insertUseYn   = "[[${insertUseYn}]]"==""?"N":"[[${insertUseYn}]]";
let updateUseYn   = "[[${updateUseYn}]]"==""?"N":"[[${updateUseYn}]]";
let deleteUseYn   = "[[${deleteUseYn}]]"==""?"N":"[[${deleteUseYn}]]";
let downloadUseYn = "[[${downloadUseYn}]]"==""?"N":"[[${downloadUseYn}]]";

let vacationManagementSearchKeywordParam = "[[${param.vacationManagementSearchKeywordParam}]]";
let vacationManagementSort               = "[[${param.vacationManagementSort}]]";
let vacationManagementDir                = "[[${param.vacationManagementDir}]]";
let vacationManagementStart              = "[[${param.vacationManagementStart}]]"==""?0:"[[${param.vacationManagementStart}]]";
let vacationManagementLimit              = "[[${param.vacationManagementLimit}]]"==""?100:"[[${param.vacationManagementLimit}]]";
let vacationManagementSearchYear         = "[[${param.vacationManagementSearchYear}]]";
let vacationManagementSearchGroupId      = "[[${param.vacationManagementSearchGroupId}]]";

let muVacationManagementId               = "[[${param.muVacationManagementId}]]";
let year                                 = "[[${param.year}]]";


/* 검색 관련 변수 */
let vacationManagementSubSort               = "[[${param.vacationManagementSubSort}]]";
let vacationManagementSubDir                = "[[${param.vacationManagementSubDir}]]";
let vacationManagementSubStart              = "[[${param.vacationManagementSubStart}]]"==""?0:"[[${param.vacationManagementSubStart}]]";
let vacationManagementSubLimit              = "[[${param.vacationManagementSubLimit}]]"==""?100:"[[${param.vacationManagementSubLimit}]]";
let vacationManagementSubSearchYear         = "[[${param.vacationManagementSubSearchYear}]]";
</script>
</th:block>
<th:block layout:fragment="layout_content">
<!-- 센터쪽 -->
<div class="center_box">
	<div class="employee_top">
		<p class="employee_yeoncha">
			<span class="first" id="memberNameId"></span>
			<span id="groupName"></span>
			<span id="dutyName"></span>
		</p>
	</div>

	<div class="filter_box">
		<div class="form_box">
			<!-- 캘린더input -->
			<div class="calendar_box">
				<div class="date_box last">
					<img src="/image/web/calendar.svg" alt="calendar"/>
					<input type="text" class="date_picker" id="vacationManagementSubSearchYear">
				</div>
			</div>

			<div class="right_btn_box">
				<button id="btnCancelVacationManagement" class="hyuga_cencell_btn" data-toggle="modal" data-target=".hyuga_cencell_modal" style="transition: all 0.2s ease-in-out 0s;">연차 취소</button>
				<button id="btnDownloadVacationManagement" class="attendance_btn">
					<img src="/image/web/download.svg" alt="내려받기"/>
					<p>내려받기</p>
				</button>
			</div>
		</div>
	</div>

	<div id="vacationManagementSubGrid" class="table_box ag-theme-balham"></div>
</div>
<form id="vacationManagementUpdateForm" onsubmit="return false;"></form>
	<form id="excelForm" method="POST" target="_blank"></form>
</th:block>
<th:block layout:fragment="layout_popup">
</th:block>
<th:block layout:fragment="layout_script">
<script src="/js/web/ag-grid-community-29.3.5.min.js"></script>
	<script src="/js/web/vacationmanagement/vacationManagementSelectList.js"></script>
	<script src="/js/web/attendance/popup/attendanceVacationManagementCancelEtcPop.js"></script>
	<script src="/js/web/attendance/popup/attendanceVacationManagerUpdatePop.js"></script>
	<script src="/js/web/attendance/popup/attendanceVacationManagerSelectPop.js"></script>
</th:block>
</html>
