123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- /*
-
- 간호평가리스트 (SMMNW13900.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- /**
- * @group :
- * @ver : 2011.06.10
- * @by : 김지선
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 평가대상자 리스트 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitialize() {
-
- //조회날짜 받아옴
- //var fromdd = ((getCurrentDate().toDate()).getAddDate(-30)).getDateFormat();
- var fromdd = getCurrentDate();
- var todd = getCurrentDate();
- var wardcd = '3050160000'; //default 706병동
- var gbn = '1'; //default 706병동
-
-
- //한달을 기준으로 한달안에 내용을 보여줌
- model.makeValue("/root/main/cond/fromdd",fromdd);
- model.makeValue("/root/main/cond/todd",todd);
- model.makeValue("/root/main/cond/wardcd",wardcd);
- model.makeValue("/root/main/cond/gbn",gbn);
-
- // 게시판 리스트를 조회
- fgetPyungPatList();
- }
- function fgetPyungPatList(){
-
- // 조회 조건을 셋팅 한다.
- /*
- var fromdd = model.getValue("/root/main/cond/fromdd");
- var todd = model.getValue("/root/main/cond/todd");
- var wardcd = model.getValue("/root/main/cond/wardcd");
- */
- /*
- 확인결과, fgetPyungPatList 메소드가 호출되기 이전에,
- /root/send 인스턴스가 초기화되어 fromdd 및 todd 가 존재하지 않습니다.
- 따라서 없는 인스턴스를 참조하여 값을 세팅하려고해서 오류가 발생했던거구요,
-
- model.makeValue("/root/send/fromdd", model.getValue("/root/main/cond/fromdd"));
- 처럼 인스턴스를 생성해서 입력하는 방법을 사용하는 방법을 추천드립니다.
- 아니면 여기 들어오기 전 로직에서 fromdd, todd를 날리지 않는 방법으로가야 할 듯 합니다.
-
- 일단 setValue -> makeValue로 일단 변경해두었슴니다 ㅎ
-
-
- 이상
- */
- model.makeValue("/root/send/fromdd", model.getValue("/root/main/cond/fromdd"));
- model.makeValue("/root/send/todd", model.getValue("/root/main/cond/todd"));
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
- model.makeValue("/root/send/gbn", model.getValue("/root/main/cond/gbn"));
- model.removeNodeset("/root/main/plistinfo/plist");
- model.resetInstanceNode("/root/main/iteminfo");
- // 게시판 리스트를 조회
- submit("TRMNW13902");
- model.refresh();
- }
|