|
@@ -6,12 +6,12 @@
|
|
|
* @source : SampleFileForm.html
|
|
* @source : SampleFileForm.html
|
|
|
* @desc : 샘플양식관리 Page
|
|
* @desc : 샘플양식관리 Page
|
|
|
*============================================================================
|
|
*============================================================================
|
|
|
- * SISUN
|
|
|
|
|
- * Copyright(C) 2019 TSIT, All rights reserved.
|
|
|
|
|
|
|
+ * STYLE24
|
|
|
|
|
+ * Copyright(C) 2020 TSIT, All rights reserved.
|
|
|
*============================================================================
|
|
*============================================================================
|
|
|
* VER DATE AUTHOR DESCRIPTION
|
|
* VER DATE AUTHOR DESCRIPTION
|
|
|
* === =========== ========== =============================================
|
|
* === =========== ========== =============================================
|
|
|
- * 1.0 2019.07.10 gagamel 최초 작성
|
|
|
|
|
|
|
+ * 1.0 2020.11.03 gagamel 최초 작성
|
|
|
*******************************************************************************
|
|
*******************************************************************************
|
|
|
-->
|
|
-->
|
|
|
<div id="main">
|
|
<div id="main">
|
|
@@ -19,8 +19,14 @@
|
|
|
<div class="main-title">
|
|
<div class="main-title">
|
|
|
</div>
|
|
</div>
|
|
|
<!-- //메인타이틀 영역 -->
|
|
<!-- //메인타이틀 영역 -->
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 메뉴 설명 -->
|
|
|
|
|
+ <div class="infoBox menu-desc">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- //메뉴 설명 -->
|
|
|
|
|
|
|
|
- <div class="panelStyle2">
|
|
|
|
|
|
|
+ <!-- 검색조건 영역 -->
|
|
|
|
|
+ <div class="panelStyle">
|
|
|
<form id="registerForm" name="registerForm" action="#" th:action="@{'/system/sample/file/save'}">
|
|
<form id="registerForm" name="registerForm" action="#" th:action="@{'/system/sample/file/save'}">
|
|
|
<table class="frmStyle" aria-describedby="신규">
|
|
<table class="frmStyle" aria-describedby="신규">
|
|
|
<colgroup>
|
|
<colgroup>
|
|
@@ -30,17 +36,17 @@
|
|
|
<col/>
|
|
<col/>
|
|
|
</colgroup>
|
|
</colgroup>
|
|
|
<tr>
|
|
<tr>
|
|
|
- <th>샘플파일ID<i class="star" aria-hidden="true"></i></th>
|
|
|
|
|
|
|
+ <th>샘플파일ID<em class="required" title="필수"></em></th>
|
|
|
<td>
|
|
<td>
|
|
|
<input type="text" class="w100" name="sampleFileId" placeholder="" value="자동생성" readonly="readonly"/>
|
|
<input type="text" class="w100" name="sampleFileId" placeholder="" value="자동생성" readonly="readonly"/>
|
|
|
</td>
|
|
</td>
|
|
|
- <th>샘플파일명<i class="star" aria-hidden="true"></i></th>
|
|
|
|
|
|
|
+ <th>샘플파일명<em class="required" title="필수"></em></th>
|
|
|
<td>
|
|
<td>
|
|
|
<input type="text" name="sampleFileNm" placeholder="" required="required" data-valid-name="샘플파일명"/>
|
|
<input type="text" name="sampleFileNm" placeholder="" required="required" data-valid-name="샘플파일명"/>
|
|
|
</td>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
<tr>
|
|
<tr>
|
|
|
- <th>샘플파일<i class="star" aria-hidden="true"></i></th>
|
|
|
|
|
|
|
+ <th>샘플파일<em class="required" title="필수"></em></th>
|
|
|
<td colspan="3">
|
|
<td colspan="3">
|
|
|
<div class="uFile w600">
|
|
<div class="uFile w600">
|
|
|
<input type="file" id="file" name="file" class="uFileInput"/>
|
|
<input type="file" id="file" name="file" class="uFileInput"/>
|
|
@@ -54,26 +60,29 @@
|
|
|
</td>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
<tr>
|
|
<tr>
|
|
|
- <th>사용여부<i class="star" aria-hidden="true"></i></th>
|
|
|
|
|
|
|
+ <th>사용여부<em class="required" title="필수"></em></th>
|
|
|
<td colspan="3">
|
|
<td colspan="3">
|
|
|
<input type="hidden" name="useYn"/>
|
|
<input type="hidden" name="useYn"/>
|
|
|
- <label><input type="checkbox" name="chkUseYn" value="Y" checked="checked" disabled="disabled"/>사용</label>
|
|
|
|
|
|
|
+ <label class="chkBox"><input type="checkbox" name="chkUseYn" value="Y" checked="checked" readonly="readonly"/>사용</label>
|
|
|
</td>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
</table>
|
|
</table>
|
|
|
|
|
|
|
|
- <div class="panelBtnB">
|
|
|
|
|
- <button type="button" class="btn btn-info btn-lg" id="btnNew">신규</button>
|
|
|
|
|
- <button type="button" class="btn btn-success btn-lg" id="btnSave">저장</button>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <ul class="panelBar">
|
|
|
|
|
+ <li class="center">
|
|
|
|
|
+ <button type="button" class="btn btn-info btn-lg" id="btnNew">신규</button>
|
|
|
|
|
+ <button type="button" class="btn btn-success btn-lg" id="btnSave">저장</button>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ </ul>
|
|
|
</form>
|
|
</form>
|
|
|
</div>
|
|
</div>
|
|
|
-
|
|
|
|
|
- <div class="panelStyle2">
|
|
|
|
|
- <div class="panelContent" style="overflow: hidden;">
|
|
|
|
|
- <div id="gridList" style="width: 100%;" class="ag-theme-balham"></div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <!-- //검색조건 영역 -->
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 리스트 영역 -->
|
|
|
|
|
+ <div class="panelStyle">
|
|
|
|
|
+ <div id="gridList" style="width: 100%; height: 570px" class="ag-theme-balham"></div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <!-- //리스트 영역 -->
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<script th:inline="javascript">
|
|
<script th:inline="javascript">
|
|
@@ -99,42 +108,31 @@
|
|
|
if (event.colDef.field != 'sampleFileNm')
|
|
if (event.colDef.field != 'sampleFileNm')
|
|
|
return;
|
|
return;
|
|
|
|
|
|
|
|
- fnBindDetail(event.data);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // 조회
|
|
|
|
|
- var fnSearch = function() {
|
|
|
|
|
- gagaAgGrid.fetch('/system/sample/file/list', gridOptions);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // 목록 > row 클릭 시
|
|
|
|
|
- var fnBindDetail = function(rowData) {
|
|
|
|
|
- $('#registerForm input[name=sampleFileId]').val(rowData.sampleFileId);
|
|
|
|
|
- $('#registerForm input[name=sampleFileNm]').val(rowData.sampleFileNm);
|
|
|
|
|
- $('#registerForm input[name=orgFileNm]').val(rowData.orgFileNm);
|
|
|
|
|
- $('#registerForm input[name=sysFileNm]').val(rowData.sysFileNm);
|
|
|
|
|
- $('#sampleFileList').html('<a href="javascript:void(0);" onclick="cfnDownloadSampleFile(\'' + rowData.sampleFileId + '\');">' + rowData.sysFileNm + '</a>');
|
|
|
|
|
|
|
+ $('#registerForm input[name=sampleFileId]').val(event.data.sampleFileId);
|
|
|
|
|
+ $('#registerForm input[name=sampleFileNm]').val(event.data.sampleFileNm);
|
|
|
|
|
+ $('#registerForm input[name=orgFileNm]').val(event.data.orgFileNm);
|
|
|
|
|
+ $('#registerForm input[name=sysFileNm]').val(event.data.sysFileNm);
|
|
|
|
|
+ $('#sampleFileList').html('<a href="javascript:void(0);" onclick="cfnDownloadSampleFile(\'' + event.data.sampleFileId + '\');">' + event.data.sysFileNm + '</a>');
|
|
|
$('#sampleFileList').show();
|
|
$('#sampleFileList').show();
|
|
|
|
|
|
|
|
- $('#registerForm input:checkbox[name=chkUseYn]').attr('disabled', false);
|
|
|
|
|
- $('#registerForm input:checkbox[name=chkUseYn]').removeClass('formControl');
|
|
|
|
|
- $("#registerForm input[name=useYn]").val(rowData.useYn);
|
|
|
|
|
- if (rowData.useYn == 'Y') {
|
|
|
|
|
|
|
+ if (event.data.useYn == 'Y') {
|
|
|
$("#registerForm input:checkbox[name=chkUseYn]").prop('checked', true);
|
|
$("#registerForm input:checkbox[name=chkUseYn]").prop('checked', true);
|
|
|
- $("#registerForm input:checkbox[name=chkUseYn]").parent().addClass('checked');
|
|
|
|
|
} else {
|
|
} else {
|
|
|
$("#registerForm input:checkbox[name=chkUseYn]").prop('checked', false);
|
|
$("#registerForm input:checkbox[name=chkUseYn]").prop('checked', false);
|
|
|
- $("#registerForm input:checkbox[name=chkUseYn]").parent().removeClass('checked');
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // 조회
|
|
|
|
|
+ $('#searchForm').on('click', function() {
|
|
|
|
|
+ gagaAgGrid.fetch('/system/sample/file/list', gridOptions);
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
// 신규
|
|
// 신규
|
|
|
$('#btnNew').on('click', function() {
|
|
$('#btnNew').on('click', function() {
|
|
|
$('#registerForm')[0].reset();
|
|
$('#registerForm')[0].reset();
|
|
|
$('#registerForm input[name=sampleFileId]').val('자동생성');
|
|
$('#registerForm input[name=sampleFileId]').val('자동생성');
|
|
|
$('#registerForm input[name=file]').val('');
|
|
$('#registerForm input[name=file]').val('');
|
|
|
- $('#registerForm input:checkbox[name=chkUseYn]').attr('disabled', true);
|
|
|
|
|
- $('#registerForm input:checkbox[name=chkUseYn]').addClass('formControl');
|
|
|
|
|
|
|
+ $('#registerForm input:checkbox[name=chkUseYn]').prop('checked', true);
|
|
|
$('#sampleFileList').html('');
|
|
$('#sampleFileList').html('');
|
|
|
$('#sampleFileList').hide();
|
|
$('#sampleFileList').hide();
|
|
|
});
|
|
});
|
|
@@ -186,11 +184,6 @@
|
|
|
$(document).ready(function() {
|
|
$(document).ready(function() {
|
|
|
// Create a agGrid
|
|
// Create a agGrid
|
|
|
gagaAgGrid.createGrid('gridList', gridOptions);
|
|
gagaAgGrid.createGrid('gridList', gridOptions);
|
|
|
-
|
|
|
|
|
- // grid 높이 자동 조정
|
|
|
|
|
- uifnFitGrid('auto');
|
|
|
|
|
-
|
|
|
|
|
- fnSearch();
|
|
|
|
|
});
|
|
});
|
|
|
/*]]>*/
|
|
/*]]>*/
|
|
|
</script>
|
|
</script>
|