|
|
@@ -48,7 +48,7 @@
|
|
|
<td>
|
|
|
<!-- 프로모션 ID 입력 : before -->
|
|
|
<label th:if="${mode == 'N'}">
|
|
|
- <input class="w50p" type="text" id="disTmtbSq1" name="disTmtbSq" maxlength="30" th:value="${params.tmtbSq}" disabled=""/>자동생성
|
|
|
+ <input class="w50p" type="text" id="disTmtbSq1" name="disTmtbSq" maxlength="30" th:value="${params.tmtbSq}" disabled=""/> *자동생성
|
|
|
</label>
|
|
|
<label th:if="${mode == 'U'}">
|
|
|
<input class="w50p" type="text" id="disTmtbSq2" name="disTmtbSq" maxlength="30" th:value="${tmtbSeq}" disabled=""/>
|
|
|
@@ -56,32 +56,17 @@
|
|
|
<input type="hidden" id="tmtbSq" name="tmtbSq"/>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <tr>
|
|
|
- <!--<th>행사 기간<em class="required" title="필수"></em></th>
|
|
|
- <td>
|
|
|
- <input type="text" class="schDate w100" name="tmtbStdt" maxlength="10" required="required" data-valid-name="시작일자"/>
|
|
|
- ~
|
|
|
- <input type="text" class="schDate w100" name="tmtbEddt" maxlength="10" required="required" data-valid-name="종료일자"/>
|
|
|
- </td>-->
|
|
|
- <th>상태<em class="required" title="필수"></em></th>
|
|
|
- <td>
|
|
|
- <!-- 상태 입력 : before
|
|
|
- <input class="w50p" type="text" id="disTmtbStat" name="disTmtbStat" maxlength="30" th:value="${params.tmtbStat}" disabled=""/>-->
|
|
|
- <label class="rdoBtn" th:if="${tmtbStatList}" th:each="oneData, status : ${tmtbStatList}" ><input type="radio" id="disTmtbStat" name="disTmtbStat" th:value="${oneData.cd}" th:text="${oneData.cdNm}" data-valid-name="상태"/></label>
|
|
|
- <input type="hidden" id="tmtbStat" name="tmtbStat"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
<tr>
|
|
|
<th>시작일<em class="required" title="필수"></em></th>
|
|
|
<td>
|
|
|
<input type="hidden" name="tmtbStdt" id="tmtbStdt" required="required" data-valid-name="다다익선시작일시">
|
|
|
<input type="text" class="schDate w100" name="eventStdt" id="eventStdt" maxlength="10" th:value="${#calendars.format(#calendars.createNow(), 'yyyy-MM-dd')}"/>
|
|
|
- <select name="eventStHH" data-valid-name="다다익선시작(시)" style="width: 65px;" th:readonly="${mode == 'U'}">
|
|
|
+ <select name="eventStHH" data-valid-name="다다익선시작(시)" style="width: 65px;"> <!--th:disabled="${mode == 'U'}"-->
|
|
|
<th:block th:each="num, index : ${#numbers.sequence(0,23)}">
|
|
|
<option th:value="${#numbers.formatInteger(num,2)}" th:text="|${#numbers.formatInteger(num,2)}시|" th:selected="${tmtbMstInfo.eventStHH == #numbers.formatInteger(num,2)}">시간</option>
|
|
|
</th:block>
|
|
|
</select>
|
|
|
- <select name="eventStMM" data-valid-name="다다익선시작(분)" style="width: 65px;" th:readonly="${mode == 'U'}">
|
|
|
+ <select name="eventStMM" data-valid-name="다다익선시작(분)" style="width: 65px;">
|
|
|
<th:block th:each="num, index : ${#numbers.sequence(0,59)}">
|
|
|
<option th:value="${#numbers.formatInteger(num,2)}" th:text="|${#numbers.formatInteger(num,2)}분|" th:selected="${tmtbMstInfo.eventStMM == #numbers.formatInteger(num,2)}">분</option>
|
|
|
</th:block>
|
|
|
@@ -91,12 +76,12 @@
|
|
|
<td>
|
|
|
<input type="hidden" name="tmtbEddt" id="tmtbEddt" required="required" data-valid-name="다다익선종료일시">
|
|
|
<input type="text" class="schDate w100" name="eventEddt" id="eventEddt" maxlength="10" th:value="${#calendars.format(#calendars.createNow(), 'yyyy-MM-dd')}"/>
|
|
|
- <select name="eventEdHH" data-valid-name="다다익선종료(시)" style="width: 65px;" th:readonly="${mode == 'U'}">
|
|
|
+ <select name="eventEdHH" data-valid-name="다다익선종료(시)" style="width: 65px;">
|
|
|
<th:block th:each="num, index : ${#numbers.sequence(0,23)}">
|
|
|
<option th:value="${#numbers.formatInteger(num,2)}" th:text="|${#numbers.formatInteger(num,2)}시|" th:selected="${tmtbMstInfo.eventEdHH == #numbers.formatInteger(num,2)}">시간</option>
|
|
|
</th:block>
|
|
|
</select>
|
|
|
- <select name="eventEdMM" data-valid-name="다다익선종료(분)" style="width: 65px;" th:readonly="${mode == 'U'}">
|
|
|
+ <select name="eventEdMM" data-valid-name="다다익선종료(분)" style="width: 65px;">
|
|
|
<th:block th:each="num, index : ${#numbers.sequence(0,59)}">
|
|
|
<option th:value="${#numbers.formatInteger(num,2)}" th:text="|${#numbers.formatInteger(num,2)}분|" th:selected="${tmtbMstInfo.eventEdMM == #numbers.formatInteger(num,2)}">분</option>
|
|
|
</th:block>
|
|
|
@@ -122,7 +107,13 @@
|
|
|
<label class="rdoBtn"><input type="radio" name="multiYn" id="multiYnY" value="Y" checked="checked"/>복합상품</label>
|
|
|
<label class="rdoBtn"><input type="radio" name="multiYn" id="multiYnN" value="N"/>단일상품</label>
|
|
|
</td>
|
|
|
-
|
|
|
+ <th>상태<em class="required" title="필수"></em></th>
|
|
|
+ <td>
|
|
|
+ <!-- 상태 입력 : before
|
|
|
+ <input class="w50p" type="text" id="disTmtbStat" name="disTmtbStat" maxlength="30" th:value="${params.tmtbStat}" disabled=""/>-->
|
|
|
+ <label class="rdoBtn" th:if="${tmtbStatList}" th:each="oneData, status : ${tmtbStatList}" ><input type="radio" id="disTmtbStat" name="disTmtbStat" th:value="${oneData.cd}" th:text="${oneData.cdNm}" data-valid-name="상태" disabled="disabled"/></label>
|
|
|
+ <input type="hidden" id="tmtbStat" name="tmtbStat"/>
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
@@ -259,8 +250,6 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
<div class="panelStyle" style="margin:unset;">
|
|
|
<!-- TITLE -->
|
|
|
<div class="panelTitle">
|
|
|
@@ -292,19 +281,42 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div class="panelStyle" style="margin:unset;" th:if="${mode == 'U'}">
|
|
|
+ <div class="inner-panelContent">
|
|
|
+ <div class="panelContent">
|
|
|
+ <table class="frmStyle">
|
|
|
+ <colgroup>
|
|
|
+ <col width="10%"/>
|
|
|
+ <col width="40%"/>
|
|
|
+ <col width="10%"/>
|
|
|
+ <col width="40%"/>
|
|
|
+ </colgroup>
|
|
|
+ <tr>
|
|
|
+ <th>등록자</th>
|
|
|
+ <td>
|
|
|
+ <span id="regInfo">등록자이름(연.월.일 시간:분:초)</span>
|
|
|
+ </td>
|
|
|
+ <th>최종수정자</th>
|
|
|
+ <td>
|
|
|
+ <span id="updInfo">수정자이름(연.월.일 시간:분:초)</span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</form>
|
|
|
|
|
|
<ul class="panelBar">
|
|
|
<li class="right">
|
|
|
- <!-- <th:block 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 type="button" class="btn btnRight btn-success btn-lg" id="btnSearchList">목록</button>-->
|
|
|
- <button type="button" class="btn btnRight btn-success btn-lg" id="btnMorebetterSave">저장</button>
|
|
|
+ <button type="button" class="btn btnRight btn-success btn-lg" id="btnSearchList">목록</button>
|
|
|
+ <button type="button" class="btn btnRight btn-success btn-lg tmtbButton" id="btnMorebetterSave">저장</button>
|
|
|
<!--<button type="button" th:if="${mode == 'N'}" class="btn btnRight btn-success btn-lg" id="btnMorebetterSave">저장</button>
|
|
|
<button type="button" th:if="${mode == 'U'}" class="btn btnRight btn-success btn-lg" id="btnMorebetterUpdate">수정</button>-->
|
|
|
- <!--<button type="button" class="btn btnRight btn-success btn-lg" id="btnChangeStatIng">진행</button>
|
|
|
- <button type="button" class="btn btnRight btn-success btn-lg" id="btnPromotionDelete">삭제</button>
|
|
|
- <button type="button" class="btn btnRight btn-success btn-lg" id="btnPromotionStop">중지</button>-->
|
|
|
- <!-- </th:block> -->
|
|
|
+ <button type="button" class="btn btnRight btn-success btn-lg tmtbButton" id="btnChangeStatIng">진행</button>
|
|
|
+ <button type="button" class="btn btnRight btn-success btn-lg tmtbButton" id="btnMorebetterDelete">삭제</button>
|
|
|
+ <button type="button" class="btn btnRight btn-success btn-lg tmtbButton" id="btnMorebetterStop">중지</button>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
@@ -491,6 +503,9 @@
|
|
|
gagaAgGrid.createGrid("gridSectionGbList", gridOptionsSectionGbList);
|
|
|
gagaAgGrid.createGrid("gridDuplicateGoodsList", gridOptionsDuplicateGoodsList);
|
|
|
|
|
|
+ // 일단 버튼 숨김
|
|
|
+ $(".tmtbButton").hide();
|
|
|
+
|
|
|
// 2. 그리드 데이터 바인딩
|
|
|
if(mode == "U"){
|
|
|
gridOptionsFGCompanyList.api.setRowData(tmtbSupplyCompList);
|
|
|
@@ -503,16 +518,27 @@
|
|
|
$('#moreBetterForm input[name=tmtbNm]').val(tmtbMstInfo.tmtbNm);
|
|
|
$('#moreBetterForm input[name=tmtbStdt]').val(tmtbMstInfo.tmtbStdt);
|
|
|
$('#moreBetterForm input[name=tmtbEddt]').val(tmtbMstInfo.tmtbEddt);
|
|
|
+ $('#moreBetterForm #regInfo').text(tmtbMstInfo.regNm + "(" + tmtbMstInfo.regDt + ")");
|
|
|
+ $('#moreBetterForm #updInfo').text(tmtbMstInfo.updNm + "(" + tmtbMstInfo.updDt + ")");
|
|
|
$("input:radio[name='disTmtbStat']:radio[value="+tmtbMstInfo.tmtbStat+"]").prop('checked', true); // 선택하기
|
|
|
$("input:radio[name='sectionGb']:radio[value="+tmtbMstInfo.sectionGb+"]").prop('checked', true); // 선택하기
|
|
|
$("input:radio[name='dcWay']:radio[value="+tmtbMstInfo.dcWay+"]").prop('checked', true); // 선택하기
|
|
|
$("input:radio[name='multiYn']:radio[value="+tmtbMstInfo.multiYn+"]").prop('checked', true); // 선택하기
|
|
|
|
|
|
+ if(tmtbMstInfo.tmtbStat == "G232_10"){
|
|
|
+ $("#btnMorebetterSave").show(); // 저장버튼
|
|
|
+ $("#btnChangeStatIng").show(); // 진행버튼
|
|
|
+ $("#btnMorebetterDelete").show(); // 삭제버튼
|
|
|
+ }else if(tmtbMstInfo.tmtbStat == "G232_11"){
|
|
|
+ $("#btnMorebetterSave").show(); // 저장버튼
|
|
|
+ $("#btnMorebetterStop").show(); // 중지버튼
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 구분 -> 대기로 체크
|
|
|
if(mode=="N"){
|
|
|
$("input:radio[name='disTmtbStat']:radio[value='G232_10']").prop('checked', true); // 선택하기
|
|
|
+ $("#btnMorebetterSave").show(); // 저장버튼
|
|
|
}
|
|
|
//cfnCreateCalendar('#tmtbTerms', 'tmtbStdt', 'tmtbEddt', true, '행사기간', 'X');
|
|
|
cfnCreateCalendar('#tmtbTerms', 'eventStdt', 'eventEddt', true, '행사기간', 'X');
|
|
|
@@ -1113,6 +1139,11 @@
|
|
|
});
|
|
|
});
|
|
|
|
|
|
+ // 목록 버튼 클릭
|
|
|
+ $("#moreBetterForm #btnSearchList").on("click", function() {
|
|
|
+ uifnPopupClose('popupMorebetterReg');
|
|
|
+ });
|
|
|
+
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
});
|