Posts

Showing posts from February, 2018

json array 객체 생성

Image
var user_id = '<%=id%>'; var jsonArray = new Array(); var jsonObjMaster = new Object(); //신청 정보 마스터 jsonObjMaster.mcRecptnDe = today(); jsonObjMaster.buldMgtNo1 = $('#buldMgtNo1').val(); jsonObjMaster.buldMgtNo2 = $('#buldMgtNo2').val(); jsonObjMaster.noticeManNm = $('#partcpntNm').val(); jsonObjMaster.noticeManTelNo = $('#telno').val(); jsonObjMaster.noticeDe =  today(); jsonObjMaster.kesiInsttCD = $('#inspctInsttCd').val(); jsonObjMaster.noticeManSMSYN = $('#noticeManSMSYN').val(); jsonObjMaster.recptnInsttCD = $('#inspctInsttCd').val(); jsonObjMaster.mcNoticeNo = '12'; jsonObjMaster.registUSID = user_id; jsonArray.push(jsonObjMaster); //신청정보 디테일 $('#elvtrMgtNo:checked').each(function(i) { var arrTmp = $(this).val().split('-'); var jsonObjSub = new Object(); jsonObjSub.elvtrMgtNo1 = arrTmp[0]; jsonObjSub.elvtrMgt