123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- /**
- * @desc 화면 초기화
- */
- function fInitialize_SMMNV13000(){
- var orddeptnm = model.getValue("/root/hidden/wgopeninfo/wgopeninfolist/orddeptnm");
- model.setValue("/root/main/waitroominfo/waitroomtitle/deptnm", "진료안내(" + orddeptnm + ")");
-
- fReqGetDrScheList();
-
- fSetTimer();
-
- model.refresh();
- }
- /**
- * @desc 의사스케줄 조회
- */
- function fReqGetDrScheList(){
- model.removeNodeset("/root/send/reqdata");
- var orddeptcd = model.getValue("/root/hidden/wgopeninfo/wgopeninfolist/orddeptcd");
- model.makeValue("/root/send/reqdata/orddeptcd", orddeptcd);
- if(submit("TRMNV13001")){
- fDispBoardDrSche();
- }
- }
- /**
- * @desc 의사일정 display 전광판
- */
- function fDispBoardDrSche(){
- var node = model.instance1.selectNodes("/root/main/drordschelist/drordschelist");
- var loopcnt = node.length;
- var caption1 = "";
- var caption2 = "";
- var caption3 = "";
- var caption4 = "";
- //alert(node.length);
- for(var i = 1; i <= loopcnt; i++){
- caption1 = document.controls("dr" + i + "_ordpart");
- caption2 = document.controls("dr" + i + "_drnm");
- caption3 = document.controls("dr" + i + "_am");
- caption4 = document.controls("dr" + i + "_pm");
-
- if(caption1 != null){
- caption1.attribute("text") = model.getValue("/root/main/drordschelist/drordschelist[" + i + "]/ordfild");
- }
-
- if(caption2 != null){
- caption2.attribute("text") = model.getValue("/root/main/drordschelist/drordschelist[" + i + "]/orddrnm");
- }
-
- if(caption3 != null){
- caption3.attribute("text") = model.getValue("/root/main/drordschelist/drordschelist[" + i + "]/amlist");
- }
-
- if(caption4 != null){
- caption4.attribute("text") = model.getValue("/root/main/drordschelist/drordschelist[" + i + "]/pmlist");
- }
- }
- }
- /**
- * @desc 화면 종료
- */
- function fClearTimer(){
- var keyPressed = event.keyCode ;
- // 'ESC' or 'Q' 키가 눌려진 경우
- if(keyPressed == 27 || keyPressed == 81) {
- var answer = messageBox("진행현황 안내 프로그램 종료합니다.", "I") ;
- if(answer == 1) {
- model.close();
- }
- }
- }
- /**
- * @desc 5초 간격으로 의사일정 조회
- */
- function fSetTimer(){
- window.setInterval("fReqGetDrScheList();", 5000);
- }
|