19/20 동서대학교 2차 '); //$('.select_st3-selectBox-dropdown-menu li:eq(3)').addClass('selectBox-selected'); } //2일전부터 무통장입금 결제수단 제외 추가. end (2014-12-17) Raul } function getMyDiffDay(startDate, endDate) { var diffDay = 0; var start_yyyy = startDate.substring(0,4); var start_mm = startDate.substring(4,6); var start_dd = startDate.substring(6,startDate.length); var sDate = new Date(start_yyyy, start_mm-1, start_dd); var end_yyyy = endDate.substring(0,4); var end_mm = endDate.substring(4,6); var end_dd = endDate.substring(6,endDate.length); var eDate = new Date(end_yyyy, end_mm-1, end_dd); diffDay = Math.ceil((eDate.getTime() - sDate.getTime())/(1000*60*60*24)); return diffDay; } //---------------------------------------------------------- //--예약시간 선택에 대한 처리 //---------------------------------------------------------- function f_SelectTime() { var frm = document.frm; //--항차의 값이 없을 경우 다음 단계의 정보 초기화. if( frm.sel_sd_seq.value == "" ) { //$("#reserve4").load("/main/schedule_tktype.jsp", {gd_seq:"", sd_date:""}, function(resultHtml){}); //권종선택 초기화 return; } //------------------------------------------------------------------------------------------------------- //-당일 예매일 경우 일정의 종료일시 확인 /2013.11.18.MON. WONSUK.SHIN. //-상품종류(gd_kind)-1:일반상품, 2:기간상품 //-잔여석관리유형(gd_remain_type)-1:일정별잔여석, 2:권종별잔여석, 3:기간별잔여석, 9:없음 /2014.04.10.THU.WONSUK.SHIN. //------------------------------------------------------------------------------------------------------- if( "2" == "1" && "3" == "9" && document.getElementById("rs_sd_date").value == "20200711" ) { if( parseInt(frm.sd_end_hhmi[frm.sel_sd_seq.selectedIndex].value) <= (parseInt("1255") + 100) ) { frm.sel_sd_seq.value = ""; document.frmIniSecure.sd_seq.value = ""; //일정SEQ document.getElementById("rs_reserve_time").value = ""; //예약시간 document.getElementById("sd_remainder").value = "0"; //스케쥴별 잔여수량 //$("#sel_sd_seq").val(""); //$("#sel_sd_seq").text("예약시간을 선택해주세요."); //$("#sel_sd_seq option:eq(0)").attr("selected",true); $("select[id=sel_sd_seq]").val(""); alert("당일 예매는 종료일시 1시간전까지 예매가 가능합니다."); $("#reserve4").load("/front/event/schedule_tktype.jsp",{idkey:"", gd_seq:"", sd_seq:"", gd_remain_type:""}, function(resultHtml){}); //권종목록 초기화 total_amount = 0; frm.ttot.value = total_amount; document.getElementById("div_total_amount").innerHTML = ""+f_CommaNum(total_amount) + " 원"; //결제 금액; //결제 금액 return; } } sdPersons = frm.sel_sd_seq.options[frm.sel_sd_seq.selectedIndex].text; //alert("{" + sdPersons.substring(sdPersons.indexOf('[') + 2, sdPersons.length-2) + "}"); //--매진 확인 처리 if( sdPersons.indexOf("매진") != -1 || sdPersons.substring(sdPersons.indexOf('[잔여: ') + 5, sdPersons.length-1) == "0" ) { frm.sel_sd_seq.value = ""; document.frmIniSecure.sd_seq.value = ""; //일정SEQ document.getElementById("rs_reserve_time").value = ""; //예약시간 document.getElementById("sd_remainder").value = "0"; //스케쥴별 잔여수량 //결제정보 초기화 //f_InitPaymentInfo(); //주석처리 /2014.04.10.THU.WONSUK.SHIN. alert("매진되었습니다"); return; } document.frmIniSecure.sd_seq.value = frm.sel_sd_seq.value; //일정SEQ $("#reserve4").load("/front/event/schedule_tktype.jsp",{idkey:frm.idkey.value, gd_seq:frm.event_sel.value, sd_seq:document.frmIniSecure.sd_seq.value, gd_remain_type:"3"}, function(resultHtml){}); //예약시간에 대한 권종목록 document.getElementById("rs_reserve_time").value = sdPersons.substring(sdPersons.indexOf(':') - 2, sdPersons.indexOf(':') + 3); //이용시간 document.getElementById("sd_remainder").value = sdPersons.substring(sdPersons.indexOf('[잔여: ') + 5, sdPersons.length-1); //스케쥴별 잔여수량 total_amount = 0; frm.ttot.value = total_amount; document.getElementById("div_total_amount").innerHTML = ""+f_CommaNum(total_amount) + " 원"; //결제 금액; //결제 금액 /* 권종표시를 위한 jQuery 의 종료 시점과 스크립트의 시간차로 Object가 null 이 되는 현상때문에 오류 발생 >> /front/event/schedule_tktype.jsp 에서 실행하도록 변경 /2013.11.01.FRI. WONSUK.SHIN. */ //f_InitPaymentInfo(); //결제정보 초기화 } //---------------------------------------------------------- //--숙박일수 선택에 대한 처리 //---------------------------------------------------------- function f_SelectLodgeDay() { var frm = document.frm; //alert(document.getElementById("lodge_day").value); $("#reserve4").load("/front/event/pension_tktype.jsp", {idkey:frm.idkey.value, gd_seq:frm.event_sel.value, sd_seq:document.frmIniSecure.sd_seq.value, sd_date:document.getElementById("rs_sd_date").value, lodge_day:document.getElementById("lodge_day").value}, function(resultHtml){}); //객실 목록 조회 total_amount = 0; frm.ttot.value = total_amount; document.getElementById("div_total_amount").innerHTML = ""+f_CommaNum(total_amount) + " 원"; //결제 금액; //결제 금액 /* 권종표시를 위한 jQuery 의 종료 시점과 스크립트의 시간차로 Object가 null 이 되는 현상때문에 오류 발생 >> /front/event/pension_tktype.jsp 에서 실행하도록 변경 /2013.11.01.FRI. WONSUK.SHIN. */ //f_InitPaymentInfo(); //결제정보 초기화 } //---------------------------------------------------------- //--결제정보 초기화 //---------------------------------------------------------- function f_InitPaymentInfo() { var frm = document.frm; var init_amount = 0; if( document.getElementById("tkt_type_cnt") != null ) { //결제 금액 for( var i = 1; i <= document.getElementById("tkt_type_cnt").value; i++ ) { try{ if( frm.ticket_count != null ) frm.ticket_count[i].value = "0";	}catch(e){	} } } /* 금액 표시 Object 가 null 아닌 경우 확인 필요 /2013.11.01.FRI. WONSUK.SHIN. */ if( document.getElementById("div_total_amount") != null ) { total_amount = 0; frm.ttot.value = total_amount; document.getElementById("div_total_amount").innerHTML = "" + f_CommaNum(total_amount) + " 원"; //결제 금액 } //document.frm.ttot.value = init_amount; //결제 금액 document.frm.ptot.value = "0"; //결제 인원 //document.getElementById("goodname").value = ""; //상품명 //document.getElementById("goodprice").value = "0"; //상품가격 } //---------------------------------------------------------- //--개인정보 수집 동의 //---------------------------------------------------------- function f_ChkPersonInfo() { if( document.getElementById("chk_person_info").checked ) { document.getElementById("chk_person_info").checked = false; } else { document.getElementById("chk_person_info").checked = true; } } //---------------------------------------------------------- //--전문보기 20140807 제작 Minwoo.Yoon //---------------------------------------------------------- function f_ViewCollect() { //document.getElementById("refund_rules_layer").style.top = event.clientY + 13; //취소규정 팝업 확인 if(document.getElementById("refund_rules_layer").style.display == "inline"){ document.getElementById("refund_rules_layer").style.display = "none"; } if( parseInt(document.body.clientWidth) > 900 ) { document.getElementById("collect_rules_layer").style.left = ( ( document.body.clientWidth - 900 ) / 2 ) + 25 + "px"; } else { document.getElementById("collect_rules_layer").style.left = "20px"; } document.getElementById("collect_rules_layer").style.display = "inline"; } //---------------------------------------------------------- //--취소환불규정보기 //---------------------------------------------------------- function f_ViewRefund() { //document.getElementById("refund_rules_layer").style.top = event.clientY + 13; //전문 팝업 확인 20140807 추가 Minwoo.Yoon if(document.getElementById("collect_rules_layer").style.display == "inline"){ document.getElementById("collect_rules_layer").style.display = "none"; } /* 위치 동적으로 노출 /2014.02.15.SAT. WONSUK.SHIN. */ if( parseInt(document.body.clientWidth) > 900 ) { document.getElementById("refund_rules_layer").style.left = ( ( document.body.clientWidth - 900 ) / 2 ) + 25 + "px"; } else { document.getElementById("refund_rules_layer").style.left = "20px"; } document.getElementById("refund_rules_layer").style.display = "inline"; } //---------------------------------------------------------- //--권종의 설명 상세 보기 제어 //---------------------------------------------------------- function f_CtrlTktpDesc(pTrId) { var html = "< 권종상세설명 >
"); } document.getElementById("makemodal_layer").style.width = document.body.clientWidth; document.getElementById("makemodal_layer").style.height = document.body.clientHeight; } //---------------------------------------------------------- //--모달 제어 //---------------------------------------------------------- function f_ControlModalLayer(disVal) { document.getElementById("makemodal_layer").style.display = disVal; } window.onresize = f_ResizeModalLayer; jQuery(document).ready(function(){ $(".inp_st3").formatter({ 'pattern': '{{9999}}' }); $(".inp_st4").formatter({ 'pattern': '{{99999}}' }); if( "503780" == "504220" ){//오산시티일 때 숫자만 입력받도록 //숫자만 받도록 셋팅 $(document).on('keyup' , '#birthDay' ,function(){ $(this).val( $(this).val().replace(/[^0-9]/gi,'') ); } ); } }); var obj_coupon_pop; function chk_payment(){ var form = document.frm; var ptot = form.ptot.value; var val = form.paymethod.value; if( ptot <= 0 ){ alert('예매정보를 입력하세요'); var payment_value = '11'; var payment_txt = ''; if('Y' == 'Y' ){ payment_txt = '신용카드'; payment_value = '11'; }else if('' == 'Y' ){ payment_txt = '휴대폰소액결제'; payment_value = '31'; }else if('Y' == 'Y' ){ payment_txt = '실시간계좌이체'; payment_value = '21'; }else if('Y' == 'Y' ){ payment_txt = '무통장입금'; payment_value = '22'; }else { payment_txt = '예매권번호'; payment_value = '23'; } form.paymethod.value = payment_value; $('.select_st8 .selectBox-label').html( payment_txt ); if( form.paymethod.value=='23' ){ $('#invite_txt').show(); }else{ $('#invite_txt').hide(); } return; } if( val == '23' ){ $('#coupon_div').html('');	//쿠폰 번호 초기화 $("#paymthd_invite_layer").load("/front/event/reserve_main_pop_coupon.jsp", {	t_cnt: ptot, idkey: "503780", gd_seq: "GD14501" }); //상품선택에 따른 [일자 선택처리] $('#paymthd_invite_layer').show(); }else { $('#paymthd_invite_layer').hide(); try{ obj_coupon_pop.close(); }catch(e){ //alert('error=' + e);	} } } function initPayment_type(){ var form = document.frm; var payment_value = '11'; var payment_txt = ''; if('Y' == 'Y' ){ payment_txt = '신용카드'; payment_value = '11'; }else if('' == 'Y' ){ payment_txt = '휴대폰소액결제'; payment_value = '31'; }else if('Y' == 'Y' ){ payment_txt = '실시간계좌이체'; payment_value = '21'; }else if('Y' == 'Y' ){ payment_txt = '무통장입금'; payment_value = '22'; }else { payment_txt = '예매권번호'; payment_value = '23'; } form.paymethod.value = payment_value; $('.select_st8 .selectBox-label').html( payment_txt ); } //---------------------------------------------------------- //--기부 레이어 //---------------------------------------------------------- function viewLayer_cate14( obj ) { //document.getElementById("refund_rules_layer").style.top = event.clientY + 13; //전문 팝업 확인 20140807 추가 Minwoo.Yoon document.getElementById("cate14_rules_layer1").style.display = "none"; document.getElementById("cate14_rules_layer2").style.display = "none"; /* 위치 동적으로 노출 /2014.02.15.SAT. WONSUK.SHIN. */ if( parseInt(document.body.clientWidth) > 900 ) { document.getElementById( obj ).style.left = ( ( document.body.clientWidth - 900 ) / 2 ) + 25 + "px"; } else { document.getElementById( obj ).style.left = "20px"; } document.getElementById( obj ).style.display = "inline"; } function f_group_yn(objSeq, pl_group_ticket_yn, ticket_count ){ //var pl_group_ticket_yn = request.getParameter("pl_group_ticket_yn"); var frm = document.frm; //alert(frm.pl_group_ticket_yn[objSeq-1].value); //alert(document.frm.ptot.value); //var index = document.getElementById("sel_sd_seq").selectedIndex; return; }//end if f_group_yn //성별수량구하기 function f_setGenderCnt(){ var totCnt = 0; totCnt = 8; var manCnt = 0; var femaleCnt = 0; for(var i=1; i<=totCnt; i++){ if($("#add_gender_"+i).val() == "M"){ manCnt++; }else if($("#add_gender_"+i).val() == "F"){ femaleCnt++; } } $("#genderCnt").html("남 "+manCnt+"명 / 여 "+femaleCnt+"명"); } // 보드/스키 수량구하기 function f_setTypeCnt(){ var totCnt = 0; totCnt = 8; var boardCnt = 0; var skiCnt = 0; for(var i=1; i<=totCnt; i++){ if($("#add_skis_board_"+i).val() == "B"){ boardCnt++; }else if($("#add_skis_board_"+i).val() == "S"){ skiCnt++; } } var html = "스키 "+skiCnt+"명 / 보드 "+boardCnt+"명"; $("#boardCnt").html(html); } //총수량 구하기 var addInfoCount = 0; function f_setTotCnt(j){ var totCnt = 0; totCnt = 8; var checkCnt = 0; for(var i=1; i<=totCnt; i++){ if($("#add_attendance_yn_"+i).val() == "Y"){ checkCnt++; $("#add_name_"+i).attr("readonly",false); $("#add_tel_"+i).attr("readonly",false); $("#add_rrn1_"+i).attr("readonly",false); $("#add_rrn2_"+i).attr("readonly",false); $("#add_skis_board_"+i).next().removeClass("selectBox-disabled"); $("#add_gender_"+i).next().removeClass("selectBox-disabled"); $("#add_name_"+i).css("background-color",""); $("#add_tel_"+i).css("background-color",""); $("#add_rrn1_"+i).css("background-color",""); $("#add_rrn2_"+i).css("background-color",""); $("#add_skis_board_"+i).next().css("background-color",""); $("#add_gender_"+i).next().css("background-color",""); }else if($("#add_attendance_yn_"+i).val() == ""){ $("#add_skis_board_"+i).val(""); $("#add_gender_"+i).val(""); $("#add_skis_board_"+i).next().find('.selectBox-label').text("선택"); $("#add_gender_"+i).next().find('.selectBox-label').text("선택"); f_setTypeCnt(); f_setGenderCnt(); $("#add_name_"+i).attr("readonly",true); $("#add_tel_"+i).attr("readonly",true); $("#add_rrn1_"+i).attr("readonly",true); $("#add_rrn2_"+i).attr("readonly",true); $("#add_skis_board_"+i).next().addClass("selectBox-disabled"); $("#add_gender_"+i).next().addClass("selectBox-disabled"); $("#add_name_"+i).css("background-color","#EAEAEA"); $("#add_tel_"+i).css("background-color","#EAEAEA"); $("#add_rrn1_"+i).css("background-color","#EAEAEA"); $("#add_rrn2_"+i).css("background-color","#EAEAEA"); $("#add_skis_board_"+i).next().css("background-color","#EAEAEA"); $("#add_gender_"+i).next().css("background-color","#EAEAEA"); } } addInfoCount = checkCnt; $("#totCnt").html("총인원 : "+checkCnt+"명"); } function setColor(){ var totCnt = 0; totCnt = 8; for(var i=1; i<=totCnt; i++){ $("#add_skis_board_"+i).next().css("background-color","#EAEAEA"); $("#add_gender_"+i).next().css("background-color","#EAEAEA"); } } function autoHypenPhone(str){ str = str.replace(/[^0-9]/g, ''); var tmp = ''; if( str.length < 4){ return str; }else if(str.length < 7){ tmp += str.substr(0, 3); tmp += '-'; tmp += str.substr(3); return tmp; }else if(str.length < 11){ tmp += str.substr(0, 3); tmp += '-'; tmp += str.substr(3, 3); tmp += '-'; tmp += str.substr(6); return tmp; }else{ tmp += str.substr(0, 3); tmp += '-'; tmp += str.substr(3, 4); tmp += '-'; tmp += str.substr(7); return tmp; } return str; } function onlyNumberInput2( Ev ){ if (window.event) // IE코드 var code = window.event.keyCode; else // 타브라우저 var code = Ev.which; if ((code > 34 && code < 41) || (code > 47 && code < 58) || (code > 95 && code < 106) || code == 8 || code == 9 || code == 13 || code == 46) { window.event.returnValue = true; return; } if (window.event) window.event.returnValue = false; else Ev.preventDefault(); } //------------------------------------------------------------------------------------------------------- //스케쥴 시간사용 체크 여부 //------------------------------------------------------------------------------------------------------- function timeuse_yn(){	var frmSecure = document.frmIniSecure; var sd_timeuse_yn = ""; $.ajaxSetup({ async:false }); /* 스케쥴 -> 시간사용 체크 여부 확인 */ $.ajax({ url: '/event/event.do', dataType: 'text', data: { command: 'sd_timeuse_yn' ,idkey : '503780' ,gd_seq : 'GD14501' ,sd_date : frmSecure.rs_sd_date.value }, success: function(data) { data_val = data; if( $.trim(data_val) == 'Y' ){ sd_timeuse_yn = "Y"; }else{ sd_timeuse_yn = "N"; } }, error: function(e){ //alert('error : ' + e); } }); /* 스케쥴 -> 시간사용 체크 여부 확인 */ $.ajaxSetup({ async:true }); return sd_timeuse_yn; }
행사기간 : 2020-01-15 ~ 2020-01-17