doctorinfo.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. "use strict";
  2. /**
  3. * mplus_modal_doctorinfo
  4. */
  5. var mplus_modal_doctorinfo = function(){
  6. // 상속
  7. mplus_common.call(this);
  8. // 상위 객체 생성
  9. //var mplusPatient = new mplus_mobile_patient();
  10. //var mplusNursing = new mplus_nursing();
  11. //super
  12. var self = this;
  13. //==== 변수 { ====
  14. //==== 변수 } ====
  15. /**
  16. * 초기화
  17. */
  18. this.init = function(param){ //여기서 모든화면 콤보박스데이터를 집어넣자!!! 그래야지 화면이동할때 속도가 오래걸리지않음!!!
  19. // 초기 화면 조건 구성
  20. initCondition(param);
  21. // 이벤트 초기화
  22. addEvent();
  23. };
  24. //==== 초기화 설정 { ====
  25. var initCondition = function(param){
  26. // 초기 화면 조건 구성
  27. if(param.doctorId == undefined || param.doctorId == null){
  28. console.log("Error : 의사 아이디 없음!");
  29. $("#modalDoctorInfo").modal("hide");
  30. }
  31. var param = {
  32. userId:gLoginUserId,
  33. doctorId:param.doctorId
  34. };
  35. self.schedule.getDoctorInfo(param, processSearchDoctorInfo);
  36. };
  37. var processSearchDoctorInfo = function(lists){
  38. console.log(JSON.stringify(lists));
  39. };
  40. //==== 초기화 설정 } ====
  41. //==== 이벤트 설정 { ====
  42. var addEvent = function(){
  43. //$("#btnLogout").on("click", function(){
  44. // logout();
  45. //});
  46. eventColumnClick();
  47. eventRowClick();
  48. // 확인 버튼 클릭
  49. $("#divDoctorInfoResult .btn-info").off('click'); // 기존 이벤트 해제
  50. $("#divDoctorInfoResult .btn-info").on('click', function(e){
  51. $("#modalDoctorInfo").modal("hide");
  52. });
  53. };
  54. var eventColumnClick = function(){
  55. };
  56. var eventRowClick = function(){
  57. };
  58. //==== 이벤트 설정 } ====
  59. //==== 서비스 실행 { ====
  60. //==== 서비스 실행 { ====
  61. };