148 lines
5.1 KiB
Plaintext
148 lines
5.1 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
|
<!DOCTYPE html>
|
|
<html lang="ko">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>등급제 관리</title>
|
|
<script type="text/javascript">
|
|
|
|
// 등급제 일괄변경
|
|
function setMassEdit() {
|
|
|
|
if ($("input[name='grdNoti']:checked").val() == "") {
|
|
alert("등급제 적용 온/오프를 선택해주세요.");
|
|
return false;
|
|
}
|
|
|
|
// 누적결제 적용일자
|
|
if ($("#ntceBgndeYYYMMDD").val() == "") {
|
|
alert("누적결제 적용일자를 선택해주세요.");
|
|
return false;
|
|
}
|
|
|
|
if(confirm("등급별 단가를 변경 하시겠습니까?")) {
|
|
$("#grdDate").val($("#ntceBgndeYYYMMDD").val());
|
|
|
|
// 콤마 제거
|
|
$('input[name=stdAmts]').each(function(index,item){
|
|
$(this).val($(this).val().replace(/,/gi, ""));
|
|
});
|
|
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "/sym/grd/mberGrdSettingMassUpdateAjax.do",
|
|
data: $("#listForm").serialize(),
|
|
dataType:'json',
|
|
async: false,
|
|
success: function (data) {
|
|
console.log(data);
|
|
if (data.isSuccess) {
|
|
alert("저장 완료했습니다.");
|
|
location.reload();
|
|
}
|
|
else {
|
|
alert("Msg : " + data.msg);
|
|
}
|
|
},
|
|
error: function (e) {
|
|
alert("ERROR : " + JSON.stringify(e));
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div class="contWrap">
|
|
<div class="pageTitle">
|
|
<div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div>
|
|
<h2 class="titType1 c_222222 fwBold">등급제 관리</h2>
|
|
<p class="tType6 c_999999">등급제 관리 페이지 입니다.</p>
|
|
</div>
|
|
<div class="pageCont">
|
|
<form id="listForm" name="listForm" method="post">
|
|
<input type="hidden" name="grdDate" id="grdDate" />
|
|
|
|
<div class="tableWrap">
|
|
<table class="tbType2">
|
|
<colgroup>
|
|
<col width="30%">
|
|
<col width="*">
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<th>등급제 적용</th>
|
|
<td>
|
|
<input type="radio" name="grdNoti" id="grdNoti1" value="Y" <c:if test="${grdNoti eq 'Y'}">checked="checked"</c:if> /> ON
|
|
|
|
<input type="radio" name="grdNoti" id="grdNoti2" value="N" <c:if test="${grdNoti eq 'N'}">checked="checked"</c:if> /> OFF
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>누적결제 적용일자</th>
|
|
<td>
|
|
<input type="hidden" name="cal_url" id="cal_url" value="/sym/cmm/EgovNormalCalPopup.do">
|
|
<a href="#" onclick="javascript:fn_egov_NormalCalendar(document.forms.listForm, document.forms.listForm.ntceBgndeYYYMMDD);">
|
|
|
|
<input style="width:auto;min-width: 100px;" type="text" class="date_format" name="ntceBgndeYYYMMDD" id="ntceBgndeYYYMMDD" size="4" maxlength="4" readonly=""
|
|
value="<c:out value="${grdDate}" />" >
|
|
<input type="button" class="calBtn">
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<br /><br />
|
|
|
|
<div class="tableWrap">
|
|
<table class="tbType1">
|
|
<colgroup>
|
|
<col width="10%">
|
|
<col width="*">
|
|
<col width="13%">
|
|
<col width="13%">
|
|
<col width="13%">
|
|
<col width="13%">
|
|
<col width="13%">
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th>등급</th>
|
|
<th>누적결제액</th>
|
|
<th>단문</th>
|
|
<th>장문</th>
|
|
<th>그림(1장)</th>
|
|
<th>그림(2장)</th>
|
|
<th>그림(3장)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<c:forEach var="result" items="${mberGrdSettingList}" varStatus="status">
|
|
<input type="hidden" name="grdSetNos" value="${result.grdSetNo}"/>
|
|
<tr>
|
|
<td><c:out value="${result.grdSetNm}"/></td>
|
|
<td><input type="text" name="stdAmts" value="<c:out value="${result.stdAmtComma}"/>" style="height: 20px; width: 150px; padding: 5px 5px 5px 5px;" /></td>
|
|
<td><input type="text" name="shortPrices" value="<c:out value="${result.shortPrice}"/>" style="height: 20px; width: 100px; padding: 5px 5px 5px 5px;" /></td>
|
|
<td><input type="text" name="longPrices" value="<c:out value="${result.longPrice}"/>" style="height: 20px; width: 100px; padding: 5px 5px 5px 5px;" /></td>
|
|
<td><input type="text" name="picturePrices" value="<c:out value="${result.picturePrice}"/>" style="height: 20px; width: 100px; padding: 5px 5px 5px 5px;" /></td>
|
|
<td><input type="text" name="picture2Prices" value="<c:out value="${result.picture2Price}"/>" style="height: 20px; width: 100px; padding: 5px 5px 5px 5px;" /></td>
|
|
<td><input type="text" name="picture3Prices" value="<c:out value="${result.picture3Price}"/>" style="height: 20px; width: 100px; padding: 5px 5px 5px 5px;" /></td>
|
|
</tr>
|
|
</c:forEach>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</form>
|
|
<div class="btnWrap">
|
|
<input type="button" class="btnType1" value="수정" onclick="javascript:setMassEdit(); return false;">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |