<!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/stock_customer_management.css?v1.1">
		<link rel="stylesheet" href="/css/web/modal_stock_customer_management.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 src="/js/web/jquery.twbsPagination.js" type="text/javascript"></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 companySearchKeywordParam = "[[${param.companySearchKeywordParam}]]";
let companySort               = "[[${param.companySort}]]";
let companyDir                = "[[${param.companyDir}]]";
let companyStart              = "[[${param.companyStart}]]"==""?0:"[[${param.companyStart}]]";
let companyLimit              = "[[${param.companyLimit}]]"==""?100:"[[${param.companyLimit}]]";

</script>
</th:block>
<th:block layout:fragment="layout_content">
<!-- 센터쪽 -->
<div class="center_box">
	<p class="page_title">거래처 관리</p>
	
	<div class="filter_box">
		<!-- 검색input -->
		<div class="search_list">
			<div class="search_box">
				<img src="/image/web/search_G.svg">
				<input type="text" id="companySearchKeyword" required onkeypress="fn_companyEnter(event)" placeholder="거래처, 담당자명">

				<div class="search_list"></div><!-- 검색내역 나오는곳 -->
			</div>
			<button id="btnSarechCompany" class="search_btn" style="transition: all 0.2s ease-in-out 0s;">조회</button>
		</div>
		
		<div class="button_box">
			<button id="btnInsertCompany" class="registration_btn" style="transition: all 0.2s ease-in-out 0s;"><img src="/image/web/business.svg">거래처 등록</button>
		</div>
	</div>
	
	<div id="companyGrid" class="table_box ag-theme-balham"></div>
	
	<!-- 페이지게이션 -->
	<div class="page_box">
		<nav ria-label="Page navigation" class="navigation">
			<ul class="pagination" id="companyPagination"></ul>
		</nav>
	</div>
</div>
<form id="companySelectListForm" 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/company/companySelectList.js"></script>

<script src="/js/web/company/popup/companyInsertPop.js"></script>
</th:block>
</html>
