"use strict"; /** * mplus_modal_doctorinfo */ var mplus_modal_doctorinfo = function(){ // 상속 mplus_common.call(this); // 상위 객체 생성 //var mplusPatient = new mplus_mobile_patient(); //var mplusNursing = new mplus_nursing(); //super var self = this; //==== 변수 { ==== //==== 변수 } ==== /** * 초기화 */ this.init = function(param){ //여기서 모든화면 콤보박스데이터를 집어넣자!!! 그래야지 화면이동할때 속도가 오래걸리지않음!!! // 초기 화면 조건 구성 initCondition(param); // 이벤트 초기화 addEvent(); }; //==== 초기화 설정 { ==== var initCondition = function(param){ // 초기 화면 조건 구성 if(param.doctorId == undefined || param.doctorId == null){ console.log("Error : 의사 아이디 없음!"); $("#modalDoctorInfo").modal("hide"); } var param = { userId:gLoginUserId, doctorId:param.doctorId }; self.schedule.getDoctorInfo(param, processSearchDoctorInfo); }; var processSearchDoctorInfo = function(lists){ console.log(JSON.stringify(lists)); }; //==== 초기화 설정 } ==== //==== 이벤트 설정 { ==== var addEvent = function(){ //$("#btnLogout").on("click", function(){ // logout(); //}); eventColumnClick(); eventRowClick(); // 확인 버튼 클릭 $("#divDoctorInfoResult .btn-info").off('click'); // 기존 이벤트 해제 $("#divDoctorInfoResult .btn-info").on('click', function(e){ $("#modalDoctorInfo").modal("hide"); }); }; var eventColumnClick = function(){ }; var eventRowClick = function(){ }; //==== 이벤트 설정 } ==== //==== 서비스 실행 { ==== //==== 서비스 실행 { ==== };