GoodsPriceReserveForm.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  1. <!DOCTYPE html>
  2. <html lang="ko"
  3. xmlns:th="http://www.thymeleaf.org">
  4. <!--
  5. *******************************************************************************
  6. * @source : GoodsPriceReserveForm.html
  7. * @desc : 상품 가격 예약관리
  8. *============================================================================
  9. * STYLE24
  10. * Copyright(C) 2020 TSIT, All rights reserved.
  11. *============================================================================
  12. * VER DATE AUTHOR DESCRIPTION
  13. * === =========== ========== =============================================
  14. * 1.0 2020.11.13 eskim 최초 작성
  15. *******************************************************************************
  16. -->
  17. <div id="main">
  18. <!-- 메인타이틀 영역 -->
  19. <div class="main-title">
  20. </div>
  21. <!-- //메인타이틀 영역 -->
  22. <!-- 메뉴 설명 -->
  23. <div class="infoBox menu-desc">
  24. </div>
  25. <form id="goodsPriceResForm" name="goodsPriceResForm" action="#" th:action="@{'/goods/price/reserve/list'}">
  26. <input type="hidden" id="selfGoodsYn" name="selfGoodsYn" value="Y"/>
  27. <input type="hidden" id="searchGb" name="searchGb" />
  28. <input type="hidden" id="arrGoodsCd" name="arrGoodsCd" />
  29. <!-- 패널 영역1 -->
  30. <div class="panelStyle" >
  31. <!-- TITLE -->
  32. <div class="panelTitle">
  33. <h3><i class="fa fa-info-circle"></i>아래 검색조건 중 하나를 꼭 입력해 주세요.</h3>
  34. </div>
  35. <!-- //TITLE -->
  36. <div class="panelContent">
  37. <table class="frmStyle">
  38. <colgroup>
  39. <col width="10%"/>
  40. <col width="23%"/>
  41. <col width="10%"/>
  42. <col width="23%"/>
  43. <col width="10%"/>
  44. <col/>
  45. </colgroup>
  46. <tr>
  47. <th>업체/브랜드</th>
  48. <td colspan="3">
  49. <select name="supplyCompCd" id="supplyCompCd">
  50. <option value="" th:if="${sessionInfo.roleCd} != 'G001_B000'">[전체]</option>
  51. <option th:if="${supplyCompList}" th:each="oneData, status : ${supplyCompList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
  52. </select>
  53. <span id="multiBrand"></span>
  54. </td>
  55. <th rowspan="3">키워드</th>
  56. <td rowspan="3">
  57. <select name="search" id="search">
  58. <option value="searchGoodsCd">상품코드</option>
  59. <option value="searchGoodsNum">품번</option>
  60. <option value="searchSupplyGoodsCd">업체상품코드</option>
  61. </select>
  62. <textarea class="textareaR3 w50p" name="condition" id="condition"></textarea>
  63. </td>
  64. </tr>
  65. <tr>
  66. <th>상품명</th>
  67. <td>
  68. <input type="text" class="w200" name="goodsNm" id="goodsNm" maxlength="50"/>
  69. </td>
  70. <th>예약가격</th>
  71. <td>
  72. <input type="text" class="w100 aR" name="goodsPriceResSt" id="goodsPriceResSt" maxlength="10" data-valid-type="numeric"/>원 ~ <input type="text" class="w100 aR" name="goodsPriceResEd" id="goodsPriceResEd" maxlength="10" data-valid-type="numeric"/>원
  73. </td>
  74. </tr>
  75. <tr>
  76. <th>시즌/년도</th>
  77. <td colspan="3">
  78. <select name="styleYear" id="styleYear">
  79. <option value="">[전체]</option>
  80. <option th:if="${styleYearList}" th:each="oneData, status : ${styleYearList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
  81. </select>
  82. <select name="seasonCd" id="seasonCd">
  83. <option value="">[전체]</option>
  84. <option th:if="${seasonList}" th:each="oneData, status : ${seasonList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
  85. </select>
  86. </td>
  87. </tr>
  88. <tr>
  89. <th>예약일</th>
  90. <td colspan="5" id="sellTerms"></td>
  91. </tr>
  92. </table>
  93. <ul class="panelBar">
  94. <li class="center">
  95. <button type="button" class="btn btn-gray btn-lg" id="btnInit" >초기화</button>
  96. <button type="button" class="btn btn-info btn-lg" id="btnSearch" >조회</button>
  97. </li>
  98. </ul>
  99. </div>
  100. <!-- //검색조건 영역 -->
  101. </div>
  102. <!-- 패널 영역1 -->
  103. <div class="panelStyle">
  104. <!-- 검색결과 영역 -->
  105. <!-- 상단버튼 영역 -->
  106. <ul class="panelBar">
  107. <li>
  108. <select id="excelSample" name="excelSample">
  109. <option value="">[선택]</option>
  110. <option value="SF003">상품엑셀조회양식</option>
  111. <option value="SF018" th:if="${sessionInfo.roleCd == 'G001_0000' OR sessionInfo.roleCd == 'G001_A000' OR sessionInfo.roleCd == 'G001_A101' OR sessionInfo.roleCd == 'G001_A100' OR sessionInfo.roleCd == 'G001_A001'}">상품가격예약등록양식</option>
  112. </select>
  113. <button type="button" class="btn btn-default btn-lg" id="btnExcelSampleDownLoad">다운로드</button>
  114. <button type="button" class="btn btn-base btn-lg" id="btnGoodsExcelUpLoad">엑셀조회</button>
  115. <button type="button" class="btn btn-success btn-lg" id="btnGoodsExcelSave" th:if="${sessionInfo.roleCd == 'G001_0000' OR sessionInfo.roleCd == 'G001_A000' OR sessionInfo.roleCd == 'G001_A101' OR sessionInfo.roleCd == 'G001_A100' OR sessionInfo.roleCd == 'G001_A001'}">상품가격예약등록</button>
  116. <button type="button" class="btn btn-success btn-lg" id="btnGoodsPriceResSave">예약등록</button>
  117. <button type="button" class="btn btn-danger btn-lg" id="btnGoodsPriceResDelete">예약삭제</button>
  118. </li>
  119. <li class="right">
  120. 검색결과 : <strong><span id="gridRowTotalCount">0</span> 건</strong>&nbsp;
  121. 쪽번호 <span id="pgNo">0</span>/ <strong id="endPgNo">0</strong>&nbsp;&nbsp;
  122. <select id="pageSize" name="pageSize">
  123. <option value="50" selected="selected">50개씩 보기</option>
  124. <option value="100">100개씩 보기</option>
  125. <option value="500">500개씩 보기</option>
  126. <option value="1000">1000개씩 보기</option>
  127. </select>
  128. <input type="hidden" name="pageNo" id="pageNo" value ="1"/>
  129. </li>
  130. </ul>
  131. <!-- //상단버튼 영역 -->
  132. <div id="gridList" style="width: 100%; height: 550px;" class="ag-theme-balham"></div>
  133. <ul class="panelBar">
  134. <li class="center">
  135. <div class="tablePaging" id="goodsListPagination"></div>
  136. </li>
  137. </ul>
  138. <!-- 검색결과 영역 -->
  139. </div>
  140. </form>
  141. <!-- //패널 영역2 -->
  142. </div>
  143. <script type="text/javascript" src="/ux/plugins/gaga/gaga.paging.js?v=2019072202"></script>
  144. <script th:inline="javascript">
  145. /*<![CDATA[*/
  146. var sessRoleCd = [[${sessionInfo.roleCd}]];
  147. var goodsStatList = gagajf.convertToArray([[${goodsStatList}]]);
  148. var formalGbList = gagajf.convertToArray([[${formalGbList}]]);
  149. var columnDefs = [
  150. {width: 40, minWidth: 40, cellClass: 'text-right', headerCheckboxSelection: true, checkboxSelection: true, filter: false},
  151. {headerName: 'No', width: 60, cellClass: 'text-center',
  152. valueGetter: function(params) { return cfnGridNumner('goodsPriceResForm',params.node.rowIndex, 'A');}
  153. },
  154. {headerName: "브랜드명", field: "brandEnm", width: 110, cellClass: 'text-center'},
  155. {headerName: "상품코드", field: "goodsCd", width: 110, cellClass: 'text-center'},
  156. {headerName: "상품명", field: "goodsNm", width: 200, cellClass: 'text-left'
  157. ,cellRenderer: function(params) {
  158. return '<a href="javascript:void(0);">' + params.value + '</a>';
  159. }
  160. },
  161. {headerName: "상품상태", field: "goodsStat" , width: 100, cellClass: 'text-center',
  162. cellEditorParams: { values: gagaAgGrid.extractValues(goodsStatList) },
  163. valueFormatter: function (params) { return gagaAgGrid.lookupValue(goodsStatList, params.value); },
  164. valueParser: function (params) { return gagaAgGrid.lookupKey(goodsStatList, params.newValue); }
  165. },
  166. {headerName: "현재상품가격", field: "currPrice", width: 110, cellClass: 'text-right'
  167. ,valueFormatter: function(params) {return params.value.addComma();}
  168. },
  169. {headerName: "예약상품가격", field: "resGoodsPrice", width: 110, cellClass: 'text-right'
  170. ,valueFormatter: function(params) {return params.value.addComma();}
  171. ,cellStyle : function(params){return { 'color': 'red'}}
  172. },
  173. {headerName: "예약시작일시", field: "applyStdt", width: 150, cellClass: 'text-center',
  174. cellRenderer: function(params) {
  175. return !gagajf.isNull(params.value) ? params.value.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss") : '';
  176. }
  177. },
  178. {headerName: "예약종료일시", field: "applyEddt", width: 150, cellClass: 'text-center',
  179. cellRenderer: function(params) {
  180. return !gagajf.isNull(params.value) ? params.value.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss") : '';
  181. }
  182. },
  183. {headerName: "등록일시", field: "regDt", width: 150, cellClass: 'text-center',
  184. cellRenderer: function(params) {
  185. return !gagajf.isNull(params.value) ? params.value.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss") : '';
  186. }
  187. },
  188. {headerName: "등록자", field: "regNm", width: 100, cellClass: 'text-center'},
  189. {headerName: "수정일시", field: "updDt", width: 150, cellClass: 'text-center',
  190. cellRenderer: function(params) {
  191. return !gagajf.isNull(params.value) ? params.value.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss") : '';
  192. }
  193. },
  194. {headerName: "수정자", field: "updNm", width: 100, cellClass: 'text-center'},
  195. {headerName: "상품가겨예약순번", field: "goodsPriceResSq", hide: true},
  196. {headerName: "적용여부", field: "applyYn", hide: true}
  197. ];
  198. // Get GridOptions
  199. var gridOptions = gagaAgGrid.getGridOptions(columnDefs);
  200. // 중복 선택 가능
  201. gridOptions.rowSelection = 'multiple';
  202. gridOptions.suppressRowClickSelection = true;
  203. //gridOptions.rowHeight = 60; //이미지가 있을경우 높이 지정해야함.
  204. // Row Click
  205. gridOptions.onCellClicked = function(event) {
  206. var goodsCd = event.data.goodsCd;
  207. if (event.colDef.field == "goodsNm"){
  208. cfnOpenGoodsDetailPopup('U',goodsCd);
  209. }else if (event.colDef.field == "goodsCd"){
  210. }
  211. }
  212. // 초기화 클릭시
  213. $('#btnInit').on('click', function() {
  214. fnInit();
  215. });
  216. var fnInit = function(){
  217. $("#goodsPriceResForm input[name=siteCd]").prop("disabled", true);
  218. $("#goodsPriceResForm input[name=siteCd]").addClass("formControl");
  219. $('#goodsPriceResForm')[0].reset();
  220. //$("#goodsPriceResForm input[type=radio]").removeClass("checked");
  221. $("#goodsPriceResForm input[type=checkbox]").removeClass("checked");
  222. //$("#goodsPriceResForm input[type=radio]").parent("label").removeClass("checked");
  223. $("#goodsPriceResForm input[type=checkbox]").parent("label").removeClass("checked");
  224. $("#goodsPriceResForm input[type=radio][checked]").parent("label").addClass("checked");
  225. $("#multiBrand").empty();
  226. }
  227. // 조회클릭시
  228. $('#btnSearch').on('click', function() {
  229. $("#goodsPriceResForm input[name=pageNo]").val('1');
  230. fnGoodsPriceSearch('BASIC');
  231. });
  232. // 조회
  233. var fnGoodsPriceSearch = function(gbn) {
  234. if (typeof(gbn) != 'undefined' && gbn == 'EXCEL'){
  235. $("#goodsPriceResForm input[name=searchGb]").val("EXCEL");
  236. }else if (typeof(gbn) != 'undefined' && gbn == 'EXCELRESULT'){
  237. $("#goodsPriceResForm input[name=searchGb]").val("EXCELRESULT");
  238. }else{
  239. $("#goodsPriceResForm input[name=searchGb]").val("BASIC");
  240. }
  241. if(!fnConditionCheck()) return;
  242. gagaPaging.init('goodsPriceResForm', fnSearchCallBack, 'goodsListPagination', $('#goodsPriceResForm').find('#pageSize').val());
  243. gagaPaging.load($("#goodsPriceResForm input[name=pageNo]").val());
  244. }
  245. // 조회 (등록 창 닫을 때)
  246. var fnGoodsRsvtTnmListSearch = function(gbn) {
  247. if (typeof(gbn) != 'undefined' && gbn == 'EXCEL'){
  248. $("#goodsPriceResForm input[name=searchGb]").val("EXCEL");
  249. }else{
  250. $("#goodsPriceResForm input[name=searchGb]").val("BASIC");
  251. }
  252. gagaPaging.init('goodsPriceResForm', fnSearchCallBack, 'goodsListPagination', $('#goodsPriceResForm').find('#pageSize').val());
  253. gagaPaging.load($("#goodsPriceResForm input[name=pageNo]").val());
  254. }
  255. //검색 조건 확인
  256. var fnConditionCheck = function(){
  257. var formId = '#goodsPriceResForm';
  258. var form = document.goodsPriceResForm;
  259. if($("#goodsPriceResForm input[name=searchGb]").val() == "EXCEL" || $("#goodsPriceResForm input[name=searchGb]").val() == "EXCELRESULT") {
  260. return true;
  261. }
  262. var searchFlag = false;
  263. var cnt = 0;
  264. /* if( !gagajf.isNull($("#goodsPriceResForm select[name=supplyCompCd]").val())
  265. || !gagajf.isNull($("#goodsPriceResForm input[name=condition]").val())
  266. || (!gagajf.isNull($("#goodsPriceResForm input[name=stDate]").val()) && !gagajf.isNull($("#goodsPriceResForm input[name=edDate]").val()))
  267. ){
  268. searchFlag = true;
  269. }else{ */
  270. for (i = 0; i < form.elements.length; i++ ) {
  271. var el = form.elements[i];
  272. if ($(el).prop("type") == "text" || $(el).prop("type") == "textarea" || ($(el).prop("type") == "select-one" && el.name != "search" && el.name != "pageSize")) {
  273. if (!(el.value == null || el.value == "")) {
  274. cnt++;
  275. }
  276. }
  277. }
  278. if(cnt > 0) searchFlag = true;
  279. /* } */
  280. if(searchFlag == false){
  281. mcxDialog.alert("검색조건을 입력하세요.");
  282. return false;
  283. }
  284. var fromDate = $('#goodsPriceResForm input[name=stDate]').val();
  285. var toDate = $('#goodsPriceResForm input[name=edDate]').val();
  286. if (!gagajf.isNull(fromDate) || !gagajf.isNull(toDate)) {
  287. if (gagajf.isNull(fromDate) || gagajf.isNull(toDate)) {
  288. mcxDialog.alertC("등록일 조회시 시작일자와 종료일자를 입력하세요.", {
  289. sureBtnText: "확인",
  290. sureBtnClick: function() {
  291. $('#goodsPriceResForm input[name=stDate]').focus();
  292. }
  293. });
  294. return false;
  295. }
  296. if (fromDate > toDate) {
  297. mcxDialog.alert("노출기간 시작일자는 종료일자 보다 클 수 없습니다.", {
  298. sureBtnText: "확인",
  299. sureBtnClick: function() {
  300. $('#goodsPriceResForm input[name=stDate]').focus();
  301. }
  302. });
  303. return false;
  304. }
  305. }
  306. return true;
  307. }
  308. var fnSearchCallBack = function(result){
  309. $('#goodsPriceResForm').find('#gridRowTotalCount').html(result.pageing.pageable.totalCount.addComma());
  310. $('#goodsPriceResForm').find('#pageNo').val(result.pageing.pageable.pageNo.addComma());
  311. $('#goodsPriceResForm').find('#pgNo').html(result.pageing.pageable.pageNo.addComma());
  312. $('#goodsPriceResForm').find('#endPgNo').html(result.pageing.pageable.totalPage.addComma());
  313. gridOptions.api.setRowData(result.goodsPriceResList);
  314. gagaPaging.createPagination(result.pageing.pageable);
  315. }
  316. //페이징
  317. $('#goodsPriceResForm select[name=pageSize]').on('change', function() {
  318. $("#goodsPriceResForm input[name=pageNo]").val('1');
  319. fnGoodsPriceSearch($("#goodsPriceResForm input[name=searchGb]").val());
  320. });
  321. //업체변경시
  322. $('#goodsPriceResForm select[name=supplyCompCd]').on('change', function() {
  323. var actionUrl = '/renderer/supplyCompany/brand/list/' + $(this).val();
  324. if(sessRoleCd == "G001_B000"){
  325. actionUrl = '/renderer/brand/AuthBrandlist';
  326. }
  327. cfnCreateMultiCombo(actionUrl,"multiBrand", "[전체]",null, 'Y');
  328. });
  329. //엑셀 상품 조회
  330. $('#btnGoodsExcelUpLoad').on('click', function() {
  331. cfnExcelUploadPopup('goodsPriceExcelUpload', 'goodsPriceExcelUpload');
  332. });
  333. var goodsPriceExcelUpload = function(result){
  334. var data = {procJob : result.procJob
  335. ,excelFileNm : result.excelFileNm
  336. };
  337. var jsonData = JSON.stringify(data);
  338. gagajf.ajaxJsonSubmit('/goods/search/excelupload/save', jsonData, fnGoodsPriceExcelUploadCallBack);
  339. }
  340. var fnGoodsPriceExcelUploadCallBack = function(result){
  341. fnGoodsPriceSearch("EXCEL");
  342. }
  343. //예약등록 팝업
  344. $('#btnGoodsPriceResSave').click(function(e) {
  345. var actionUrl = "/goods/price/reserve/popup/form";
  346. cfnOpenModalPopup(actionUrl, 'popupGoodsPriceReserve');
  347. });
  348. //예약삭제
  349. $('#btnGoodsPriceResDelete').click(function(e) {
  350. //상품선택여부 확인처리 추가
  351. var selectedData = gridOptions.api.getSelectedRows();
  352. if (selectedData.length == 0) {
  353. mcxDialog.alert('선택된 행이 없습니다.');
  354. return false;
  355. }
  356. var arrGoodsCd = [];
  357. var arrGoodsPriceResSq = [];
  358. var chkFlag = false;
  359. //selectedData = gagaAgGrid.getAllRowData(gridOptions);
  360. $.each(selectedData, function(idx, item) {
  361. if (gagajf.isNull(item.goodsPriceResSq) || item.goodsPriceResSq == "0"){
  362. chkFlag = true;
  363. mcxDialog.alert(item.goodsCd +"상품은 가격이 예약된 상품이 아닙니다.");
  364. return false;
  365. }
  366. var toDateStr = new Date().format("YYYYMMDDHHmmss");
  367. if (toDateStr > item.applyEddt){
  368. chkFlag = true;
  369. mcxDialog.alertC("종료된 예약 상품은 삭제할 수 없습니다.", {
  370. sureBtnText: "확인",
  371. sureBtnClick: function() {
  372. $('#goodsRsvtTnmForm input[name=applyEdYMD]').focus();
  373. }
  374. });
  375. return false;
  376. }
  377. if ((toDateStr > item.applyStdt) && ("Y" == $('#goodsRsvtTnmForm input[name=applyYn]').val())){
  378. chkFlag = true;
  379. mcxDialog.alertC("시작된 예약 상품은 삭제할 수 없습니다.", {
  380. sureBtnText: "확인",
  381. sureBtnClick: function() {
  382. $('#goodsRsvtTnmForm input[name=applyEdYMD]').focus();
  383. }
  384. });
  385. return false;
  386. }
  387. arrGoodsCd.push(item.goodsCd);
  388. arrGoodsPriceResSq.push(item.goodsPriceResSq);
  389. });
  390. if (chkFlag){
  391. return;
  392. }
  393. mcxDialog.confirm('삭제하시겠습니까?', {
  394. cancelBtnText: "취소",
  395. sureBtnText: "확인",
  396. sureBtnClick: function(){
  397. var data = {arrGoodsCd : arrGoodsCd
  398. ,arrGoodsPriceResSq : arrGoodsPriceResSq
  399. };
  400. var jsonData = JSON.stringify(data);
  401. gagajf.ajaxJsonSubmit('/goods/price/reserve/delete', jsonData, fnGoodsPriceResDeleteCollBack);
  402. }
  403. });
  404. });
  405. var fnGoodsPriceResDeleteCollBack = function(){
  406. //fnGoodsRsvtTnmListSearch($("#goodsPriceResForm input[name=searchGb]").val());
  407. }
  408. //엑셀양식 다운로드
  409. $('#btnExcelSampleDownLoad').on('click', function (){
  410. var gb = $("#goodsPriceResForm select[name=excelSample]").val();
  411. if (gagajf.isNull(gb)){
  412. mcxDialog.alertC("다운로드 할 양식을 선택해주세요", {
  413. sureBtnText: "확인",
  414. sureBtnClick: function() {
  415. $('#goodsPriceResForm select[name=excelSample]').focus();
  416. }
  417. });
  418. return false;
  419. }
  420. cfnDownloadSampleFile($("#goodsPriceResForm select[name=excelSample]").val());
  421. });
  422. //엑셀 상품 가격예약 저장
  423. $('#btnGoodsExcelSave').on('click', function() {
  424. cfnExcelUploadPopup('goodsPriceResvExcelUpload', 'goodsPriceResvExcelSave');
  425. });
  426. var goodsPriceResvExcelSave = function(result){
  427. mcxDialog.confirm('상품가격예약을 진행하시겠습니까?', {
  428. cancelBtnText: "취소",
  429. sureBtnText: "확인",
  430. sureBtnClick: function(){
  431. var data = {procJob : result.procJob
  432. ,excelFileNm : result.excelFileNm
  433. };
  434. var jsonData = JSON.stringify(data);
  435. gagajf.ajaxJsonSubmit('/goods/price/excelupload/save', jsonData, fnGoodsSizeStockExcelSaveCallBack);
  436. }
  437. });
  438. }
  439. var fnGoodsSizeStockExcelSaveCallBack = function(result){
  440. fnGoodsPriceSearch("EXCELRESULT");
  441. }
  442. $(document).ready(function() {
  443. cfnCreateCalendar('#sellTerms', 'applyStdt', 'applyEddt', true, '예약일', 'X');
  444. var chkBeforSkipFlag = '&nbsp;&nbsp;<label class="chkBox"><input type="checkbox" name="beforSkipFlag" value="Y" >이전데이터 제외</label>';
  445. $("#goodsPriceResForm").find('#sellTerms').append(chkBeforSkipFlag);
  446. // Create a agGrid
  447. gagaAgGrid.createGrid('gridList', gridOptions);
  448. });
  449. /*]]>*/
  450. </script>
  451. </html>