Merge branch 'jsp'

This commit is contained in:
itn 2023-08-08 11:02:29 +09:00
commit 41eb805e50
6 changed files with 97 additions and 18 deletions

View File

@ -78,7 +78,7 @@ public class MberGrdController {
return "/web/grd/MberGrdHistListAjax";
}
// 등급제 시행 ON/OFF 체크
// 등급제 시행 ON/OFF 체크(로그인 상태에서만 조회)
@RequestMapping(value = "/web/grd/mberSettDetailAjax.do")
public ModelAndView mberSettingDetailAjax(
@ModelAttribute("mberGrdVO") MberGrdVO mberGrdVO) throws Exception {
@ -89,6 +89,37 @@ public class MberGrdController {
boolean isSuccess = false;
String msg = "";
try{
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
if (null != loginVO) {
MberGrdVO mberGrdVO1 = new MberGrdVO();
mberGrdVO1 = mberGrdService.selectMberSettingDetail(mberGrdVO);
if (mberGrdVO1.getGrdNoti().equals("Y")) {
isSuccess = true;
}
}
}
catch(Exception e) {
msg = e.getMessage();
}
modelAndView.addObject("isSuccess", isSuccess);
modelAndView.addObject("msg", msg);
return modelAndView;
}
// 등급제 시행 ON/OFF 체크(비로그인 상태에서 조회)
@RequestMapping(value = "/web/grd/mberSettDetailByNotLoginAjax.do")
public ModelAndView mberSettDetailByNotLoginAjax(
@ModelAttribute("mberGrdVO") MberGrdVO mberGrdVO) throws Exception {
ModelAndView modelAndView = new ModelAndView();
modelAndView.setViewName("jsonView");
boolean isSuccess = false;
String msg = "";
try{
MberGrdVO mberGrdVO1 = new MberGrdVO();
mberGrdVO1 = mberGrdService.selectMberSettingDetail(mberGrdVO);

View File

@ -297,6 +297,18 @@ function txtExport(event){
$("#txtFile").val("");
}
//발송금액 단가표시
function SetPriceWrapOpen() {
var loginVO = '${LoginVO}';
//로그인 체크
if(loginVO == "" || loginVO == null){
}
else {
// 발송금액 가격안내
$("#myPriceWrap").show();
}
}
//등급제 시행 ON/OFF 체크
function getMberSettingDetail() {
$.ajax({
@ -307,7 +319,7 @@ function getMberSettingDetail() {
async: false,
success: function (data) {
if (data.isSuccess) {
// 발송금액 아래 등급별 가격안내 추가
// 발송금액 가격안내
$("#myPriceWrap").show();
}
else {
@ -321,8 +333,8 @@ function getMberSettingDetail() {
}
$(document).ready(function (){
//등급제 시행 ON/OFF 체크
getMberSettingDetail();
// 발송금액 단가표시
SetPriceWrapOpen();
//미리보기 이미지 영역 숨김 처리
$('.preiew_img').hide();

View File

@ -442,6 +442,18 @@ function txtExport(event){
$("#txtFile").val("");
}
//발송금액 단가표시
function SetPriceWrapOpen() {
var loginVO = '${LoginVO}';
//로그인 체크
if(loginVO == "" || loginVO == null){
}
else {
// 발송금액 가격안내
$("#myPriceWrap").show();
}
}
//등급제 시행 ON/OFF 체크
function getMberSettingDetail() {
$.ajax({
@ -452,7 +464,7 @@ function getMberSettingDetail() {
async: false,
success: function (data) {
if (data.isSuccess) {
// 발송금액 아래 등급별 가격안내 추가
// 발송금액 가격안내
$("#myPriceWrap").show();
}
else {
@ -466,8 +478,8 @@ function getMberSettingDetail() {
}
$(document).ready(function (){
//등급제 시행 ON/OFF 체크
getMberSettingDetail();
// 발송금액 단가표시
SetPriceWrapOpen();
$('.preiew_img').hide();
$('.prePhoto').hide();

View File

@ -449,6 +449,18 @@ function txtExport(event){
$("#txtFile").val("");
}
// 발송금액 단가표시
function SetPriceWrapOpen() {
var loginVO = '${LoginVO}';
//로그인 체크
if(loginVO == "" || loginVO == null){
}
else {
// 발송금액 가격안내
$("#myPriceWrap").show();
}
}
//등급제 시행 ON/OFF 체크
function getMberSettingDetail() {
$.ajax({
@ -459,7 +471,7 @@ function getMberSettingDetail() {
async: false,
success: function (data) {
if (data.isSuccess) {
// 발송금액 아래 등급별 가격안내 추가
// 발송금액 가격안내
$("#myPriceWrap").show();
}
else {
@ -473,8 +485,8 @@ function getMberSettingDetail() {
}
$(document).ready(function (){
//등급제 시행 ON/OFF 체크
getMberSettingDetail();
// 발송금액 단가표시
SetPriceWrapOpen();
// Bline 확연 및 라디오 버튼 클릭 이벤트 추가
var blineCodeYn = $("#blineCode").val();

View File

@ -593,6 +593,18 @@ function txtExport(event){
$("#txtFile").val("");
}
//발송금액 단가표시
function SetPriceWrapOpen() {
var loginVO = '${LoginVO}';
//로그인 체크
if(loginVO == "" || loginVO == null){
}
else {
// 발송금액 가격안내
$("#myPriceWrap").show();
}
}
//등급제 시행 ON/OFF 체크
function getMberSettingDetail() {
$.ajax({
@ -603,7 +615,7 @@ function getMberSettingDetail() {
async: false,
success: function (data) {
if (data.isSuccess) {
// 발송금액 아래 등급별 가격안내 추가
// 발송금액 가격안내
$("#myPriceWrap").show();
}
else {
@ -617,8 +629,8 @@ function getMberSettingDetail() {
}
$(document).ready(function (){
//등급제 시행 ON/OFF 체크
getMberSettingDetail();
// 발송금액 단가표시
SetPriceWrapOpen();
// Bline 확연 및 라디오 버튼 클릭 이벤트 추가
var blineCodeYn = $("#blineCode").val();

View File

@ -65,8 +65,8 @@ $(document).ready(function () {
$("#btnEstimate").trigger("click");
}
//등급제 시행 ON/OFF 체크
getMberSettingDetail();
//등급제 시행 ON/OFF 체크(비로그인)
getMberSettingDetailByNotLogin();
// 등급제 대상 여부
getMberGrdChk();
@ -341,11 +341,11 @@ function infoPop(pageUrl){
}
//등급제 시행 ON/OFF 체크
function getMberSettingDetail() {
//등급제 시행 ON/OFF 체크(비로그인)
function getMberSettingDetailByNotLogin() {
$.ajax({
type: "POST",
url: "/web/grd/mberSettDetailAjax.do",
url: "/web/grd/mberSettDetailByNotLoginAjax.do",
data: {},
dataType:'json',
async: false,