|
@@ -3,7 +3,7 @@
|
|
|
xmlns:th="http://www.thymeleaf.org">
|
|
xmlns:th="http://www.thymeleaf.org">
|
|
|
<!--
|
|
<!--
|
|
|
*******************************************************************************
|
|
*******************************************************************************
|
|
|
- * @source : BrandSearchPopupForm.html
|
|
|
|
|
|
|
+ * @source : BrandPopupForm.html
|
|
|
* @desc : 브랜드 팝업 Page
|
|
* @desc : 브랜드 팝업 Page
|
|
|
*============================================================================
|
|
*============================================================================
|
|
|
* STYLE24
|
|
* STYLE24
|
|
@@ -14,7 +14,7 @@
|
|
|
* 1.0 2020.12.15 eskim 최초 작성
|
|
* 1.0 2020.12.15 eskim 최초 작성
|
|
|
*******************************************************************************
|
|
*******************************************************************************
|
|
|
-->
|
|
-->
|
|
|
-<div class="modalPopup" data-width="500" id="popupBrandList">
|
|
|
|
|
|
|
+<div class="modalPopup" data-width="700" id="popupBrandList">
|
|
|
<div class="panelStyle">
|
|
<div class="panelStyle">
|
|
|
<!-- TITLE -->
|
|
<!-- TITLE -->
|
|
|
<div class="panelTitle">
|
|
<div class="panelTitle">
|
|
@@ -28,14 +28,20 @@
|
|
|
<form id="searchBrandListForm" name="searchBrandListForm" action="#" th:action="@{'/business/brand/list'}" onsubmit="$('#btnSearchBrandList').trigger('click'); return false;">
|
|
<form id="searchBrandListForm" name="searchBrandListForm" action="#" th:action="@{'/business/brand/list'}" onsubmit="$('#btnSearchBrandList').trigger('click'); return false;">
|
|
|
<table class="frmStyle" aria-describedby="검색조건">
|
|
<table class="frmStyle" aria-describedby="검색조건">
|
|
|
<colgroup>
|
|
<colgroup>
|
|
|
|
|
+ <col style="width:15%;"/>
|
|
|
|
|
+ <col style="width:35%;"/>
|
|
|
<col style="width:15%;"/>
|
|
<col style="width:15%;"/>
|
|
|
<col/>
|
|
<col/>
|
|
|
</colgroup>
|
|
</colgroup>
|
|
|
<tbody>
|
|
<tbody>
|
|
|
<tr>
|
|
<tr>
|
|
|
|
|
+ <th>브랜드코드</th>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <textarea class="textareaR3" name="searchBrandCd" id="searchBrandCd"></textarea>
|
|
|
|
|
+ </td>
|
|
|
<th>브랜드명</th>
|
|
<th>브랜드명</th>
|
|
|
<td>
|
|
<td>
|
|
|
- <input type="text" name="searchTxt" th:value="${params.searchTxt}" maxlength="20" onkeypress="if (event.keyCode == 13) { $('#btnSearchBrandList').trigger('click'); }"/>
|
|
|
|
|
|
|
+ <textarea class="textareaR3" name="searchBrandNm" id="searchBrandNm"></textarea>
|
|
|
</td>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
</tbody>
|
|
</tbody>
|
|
@@ -71,7 +77,8 @@
|
|
|
{width: 40, minWidth: 40, cellClass: 'text-center', headerCheckboxSelection: headerSelection, checkboxSelection: true, filter: false},
|
|
{width: 40, minWidth: 40, cellClass: 'text-center', headerCheckboxSelection: headerSelection, checkboxSelection: true, filter: false},
|
|
|
{headerName: "브랜드번호", field: "brandCd", width: 120, cellClass: 'text-center'},
|
|
{headerName: "브랜드번호", field: "brandCd", width: 120, cellClass: 'text-center'},
|
|
|
{headerName: "브랜드국문명", field: "brandEnm", width: 150, cellClass: 'text-center'},
|
|
{headerName: "브랜드국문명", field: "brandEnm", width: 150, cellClass: 'text-center'},
|
|
|
- {headerName: "브랜드영문명", field: "brandKnm", width: 150, cellClass: 'text-center'}
|
|
|
|
|
|
|
+ {headerName: "브랜드영문명", field: "brandKnm", width: 150, cellClass: 'text-center'},
|
|
|
|
|
+ {headerName: "브랜드그룹명", field: "brandGrpNm", width: 150, cellClass: 'text-center'}
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
let gridOptionsBrandList = gagaAgGrid.getGridOptions(columnDefsMdList);
|
|
let gridOptionsBrandList = gagaAgGrid.getGridOptions(columnDefsMdList);
|
|
@@ -84,6 +91,12 @@
|
|
|
|
|
|
|
|
// 조회
|
|
// 조회
|
|
|
$('#btnSearchBrandList').on('click', function() {
|
|
$('#btnSearchBrandList').on('click', function() {
|
|
|
|
|
+
|
|
|
|
|
+ if (gagajf.isNull($('#searchBrandListForm textarea[name=searchBrandCd]').val()) && gagajf.isNull($('#searchBrandListForm textarea[name=searchBrandNm]').val())){
|
|
|
|
|
+ mcxDialog.alert('검색조건을 입력하세요.');
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// Fetch data
|
|
// Fetch data
|
|
|
gagaAgGrid.fetch($('#searchBrandListForm').prop('action'), gridOptionsBrandList, '#searchBrandListForm');
|
|
gagaAgGrid.fetch($('#searchBrandListForm').prop('action'), gridOptionsBrandList, '#searchBrandListForm');
|
|
|
});
|
|
});
|
|
@@ -121,7 +134,7 @@
|
|
|
// Create a agGrid
|
|
// Create a agGrid
|
|
|
gagaAgGrid.createGrid('gridBrandList', gridOptionsBrandList);
|
|
gagaAgGrid.createGrid('gridBrandList', gridOptionsBrandList);
|
|
|
|
|
|
|
|
- $('#btnSearchBrandList').trigger('click');
|
|
|
|
|
|
|
+ //$('#btnSearchBrandList').trigger('click');
|
|
|
});
|
|
});
|
|
|
/*]]>*/
|
|
/*]]>*/
|
|
|
</script>
|
|
</script>
|