SMMNV13000.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /**
  2. * @desc 화면 초기화
  3. */
  4. function fInitialize_SMMNV13000(){
  5. var orddeptnm = model.getValue("/root/hidden/wgopeninfo/wgopeninfolist/orddeptnm");
  6. model.setValue("/root/main/waitroominfo/waitroomtitle/deptnm", "진료안내(" + orddeptnm + ")");
  7. fReqGetDrScheList();
  8. fSetTimer();
  9. model.refresh();
  10. }
  11. /**
  12. * @desc 의사스케줄 조회
  13. */
  14. function fReqGetDrScheList(){
  15. model.removeNodeset("/root/send/reqdata");
  16. var orddeptcd = model.getValue("/root/hidden/wgopeninfo/wgopeninfolist/orddeptcd");
  17. model.makeValue("/root/send/reqdata/orddeptcd", orddeptcd);
  18. if(submit("TRMNV13001")){
  19. fDispBoardDrSche();
  20. }
  21. }
  22. /**
  23. * @desc 의사일정 display 전광판
  24. */
  25. function fDispBoardDrSche(){
  26. var node = model.instance1.selectNodes("/root/main/drordschelist/drordschelist");
  27. var loopcnt = node.length;
  28. var caption1 = "";
  29. var caption2 = "";
  30. var caption3 = "";
  31. var caption4 = "";
  32. //alert(node.length);
  33. for(var i = 1; i <= loopcnt; i++){
  34. caption1 = document.controls("dr" + i + "_ordpart");
  35. caption2 = document.controls("dr" + i + "_drnm");
  36. caption3 = document.controls("dr" + i + "_am");
  37. caption4 = document.controls("dr" + i + "_pm");
  38. if(caption1 != null){
  39. caption1.attribute("text") = model.getValue("/root/main/drordschelist/drordschelist[" + i + "]/ordfild");
  40. }
  41. if(caption2 != null){
  42. caption2.attribute("text") = model.getValue("/root/main/drordschelist/drordschelist[" + i + "]/orddrnm");
  43. }
  44. if(caption3 != null){
  45. caption3.attribute("text") = model.getValue("/root/main/drordschelist/drordschelist[" + i + "]/amlist");
  46. }
  47. if(caption4 != null){
  48. caption4.attribute("text") = model.getValue("/root/main/drordschelist/drordschelist[" + i + "]/pmlist");
  49. }
  50. }
  51. }
  52. /**
  53. * @desc 화면 종료
  54. */
  55. function fClearTimer(){
  56. var keyPressed = event.keyCode ;
  57. // 'ESC' or 'Q' 키가 눌려진 경우
  58. if(keyPressed == 27 || keyPressed == 81) {
  59. var answer = messageBox("진행현황 안내 프로그램 종료합니다.", "I") ;
  60. if(answer == 1) {
  61. model.close();
  62. }
  63. }
  64. }
  65. /**
  66. * @desc 5초 간격으로 의사일정 조회
  67. */
  68. function fSetTimer(){
  69. window.setInterval("fReqGetDrScheList();", 5000);
  70. }