회원상세 문자발송 금액 기능 수정
This commit is contained in:
parent
f3f51805d0
commit
d4b84e5a83
@ -45,6 +45,36 @@ public class MberGrdMngController {
|
|||||||
return "/sym/grd/mberGrdSetting";
|
return "/sym/grd/mberGrdSetting";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 등급제 단가 정보
|
||||||
|
@RequestMapping(value = "/sym/grd/mberGrdSettingListAjax.do")
|
||||||
|
public ModelAndView mberGrdSettingListAjax(
|
||||||
|
@ModelAttribute("mberGrdVO") MberGrdVO mberGrdVO) throws Exception {
|
||||||
|
|
||||||
|
ModelAndView modelAndView = new ModelAndView();
|
||||||
|
modelAndView.setViewName("jsonView");
|
||||||
|
|
||||||
|
boolean isSuccess = true;
|
||||||
|
String msg = "";
|
||||||
|
List<MberGrdVO> mberGrdSettingList = null;
|
||||||
|
|
||||||
|
try{
|
||||||
|
|
||||||
|
// 등급별 단가 정보
|
||||||
|
mberGrdSettingList = mberGrdService.selectMberGrdSettingList(mberGrdVO);
|
||||||
|
|
||||||
|
}
|
||||||
|
catch(Exception e) {
|
||||||
|
isSuccess = false;
|
||||||
|
msg = e.getMessage();
|
||||||
|
}
|
||||||
|
|
||||||
|
modelAndView.addObject("isSuccess", isSuccess);
|
||||||
|
modelAndView.addObject("msg", msg);
|
||||||
|
modelAndView.addObject("mberGrdSettingList", mberGrdSettingList);
|
||||||
|
|
||||||
|
return modelAndView;
|
||||||
|
}
|
||||||
|
|
||||||
// 등급제 설정 저장
|
// 등급제 설정 저장
|
||||||
@RequestMapping(value = "/sym/grd/mberGrdSettingUpdateAjax.do")
|
@RequestMapping(value = "/sym/grd/mberGrdSettingUpdateAjax.do")
|
||||||
public ModelAndView mberGrdSettingUpdateAjax(
|
public ModelAndView mberGrdSettingUpdateAjax(
|
||||||
|
|||||||
@ -60,6 +60,8 @@ tbody tr td.sms_detail:hover .sms_detail_hover {display:-webkit-box;}
|
|||||||
<script type="text/javascript" src="/js/RSA/rng.js"></script>
|
<script type="text/javascript" src="/js/RSA/rng.js"></script>
|
||||||
<!-- <script src="http://dmaps.daum.net/map_js_init/postcode.v2.js"></script> -->
|
<!-- <script src="http://dmaps.daum.net/map_js_init/postcode.v2.js"></script> -->
|
||||||
<script type="text/javaScript" language="javascript" defer="defer">
|
<script type="text/javaScript" language="javascript" defer="defer">
|
||||||
|
var grdSettingList = []; // 등급별 단가 정보
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
console.log('${serverName}');
|
console.log('${serverName}');
|
||||||
//메모 리스트 10초마다 갱신
|
//메모 리스트 10초마다 갱신
|
||||||
@ -474,6 +476,12 @@ function layerPopOpen(obj){
|
|||||||
var target=$('.layer_'+obj);
|
var target=$('.layer_'+obj);
|
||||||
target.addClass('active');
|
target.addClass('active');
|
||||||
$('.popup_mask').addClass('active');
|
$('.popup_mask').addClass('active');
|
||||||
|
|
||||||
|
// 발송 금액 변경
|
||||||
|
if (obj == "price") {
|
||||||
|
//등급별 단가 정보
|
||||||
|
//getMberGrdSettingList();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//레이어팝업 닫기
|
//레이어팝업 닫기
|
||||||
@ -483,6 +491,70 @@ function layerPopClose(obj){
|
|||||||
$('.popup_mask').removeClass('active');
|
$('.popup_mask').removeClass('active');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//등급별 단가 정보
|
||||||
|
function getMberGrdSettingList() {
|
||||||
|
grdSettingList = [];
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: "/sym/grd/mberGrdSettingListAjax.do",
|
||||||
|
data: {},
|
||||||
|
dataType:'json',
|
||||||
|
async: false,
|
||||||
|
success: function (data) {
|
||||||
|
if (data.isSuccess) {
|
||||||
|
var sHtml = "";
|
||||||
|
var sHtml2 = "";
|
||||||
|
sHtml += "<select onchange='getMberGrdSettingInfo(this);'>";
|
||||||
|
sHtml += "<option value='0'>직접입력</option>";
|
||||||
|
$.each(data.mberGrdSettingList, function(i, item) {
|
||||||
|
// 배열
|
||||||
|
grdSettingList.push({grdSetNo: item.grdSetNo, shortPrice: item.shortPrice, longPrice: item.longPrice, picturePrice: item.picturePrice, picture2Price: item.picture2Price, picture3Price: item.picture3Price});
|
||||||
|
|
||||||
|
sHtml += "<option value='" + item.grdSetNo + "'>" + item.grdSetNm + "</option>";
|
||||||
|
sHtml2 += item.grdSetNm + " : " + item.shortPrice + ", " + item.longPrice + ", " + item.picturePrice + ", " + item.picture2Price + ", " + item.picture3Price + "\n";
|
||||||
|
});
|
||||||
|
sHtml += "</select>";
|
||||||
|
|
||||||
|
// Combo
|
||||||
|
$("#mberGrdSettingCombo").html(sHtml);
|
||||||
|
|
||||||
|
// Title
|
||||||
|
$("#mberGrdSettingTitle").attr("title", sHtml2);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
//alert("Msg : " + data.msg);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function (e) {
|
||||||
|
//alert("ERROR : " + JSON.stringify(e));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 단가 적용
|
||||||
|
function getMberGrdSettingInfo(obj) {
|
||||||
|
var returnValue = grdSettingList.find(function(data){ return data.grdSetNo == obj.value});
|
||||||
|
|
||||||
|
form = document.msgPriceForm;
|
||||||
|
if (obj.value == 0) {
|
||||||
|
// 원래 단가
|
||||||
|
form.shortPrice.value = "${shortPrice}";
|
||||||
|
form.longPrice.value = "${longPrice}";
|
||||||
|
form.picturePrice.value = "${picturePrice}";
|
||||||
|
form.picture2Price.value = "${picture2Price}";
|
||||||
|
form.picture3Price.value = "${picture3Price}";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// 등급 단가
|
||||||
|
form.shortPrice.value = returnValue.shortPrice;
|
||||||
|
form.longPrice.value = returnValue.longPrice;
|
||||||
|
form.picturePrice.value = returnValue.picturePrice;
|
||||||
|
form.picture2Price.value = returnValue.picture2Price;
|
||||||
|
form.picture3Price.value = returnValue.picture3Price;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//스팸 이용 정지 사유 확인용 레이어팝업 오픈
|
//스팸 이용 정지 사유 확인용 레이어팝업 오픈
|
||||||
function layerSpamBlockMemoPopOpen(obj, smiId){
|
function layerSpamBlockMemoPopOpen(obj, smiId){
|
||||||
var form = document.modiForm;
|
var form = document.modiForm;
|
||||||
@ -5362,6 +5434,12 @@ function kakaoATDelayCancel(msgGroupId){
|
|||||||
<col style="width:auto;">
|
<col style="width:auto;">
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<!--
|
||||||
|
<tr>
|
||||||
|
<th id="mberGrdSettingTitle">등급단가 적용</th>
|
||||||
|
<td><div id="mberGrdSettingCombo"></div></td>
|
||||||
|
</tr>
|
||||||
|
-->
|
||||||
<tr>
|
<tr>
|
||||||
<th>단문 금액</th>
|
<th>단문 금액</th>
|
||||||
<td><input type="text" name="shortPrice" id="shortPrice" value="<c:out value='${shortPrice}'/>"/></td>
|
<td><input type="text" name="shortPrice" id="shortPrice" value="<c:out value='${shortPrice}'/>"/></td>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user