123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- /*
-
- HD worklist (SMMND03400.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- - Creat :
- 2009-01-08
- */
-
- /**
- * creat : 20090108
- * author : dhkim
- * desc : 초기화
- */
- function fInitialize(){
-
- //공통코드 load
- zbcfGetCodeList( new Array("M0083","M0345")
- , new Array("/root/cmn/M0083list","/root/cmn/M0345list"));
-
- //내환자 load
- fLoadMyPatSetting();
-
- //조회조건 default 세팅
- model.removenode('/root/main/cond');
- model.makeValue('/root/main/cond/workdd' , getCurrentDate()); //업무일자
- model.makeValue('/root/main/cond/mypid' , ''); //내환자
- model.makeValue('/root/main/cond/shiftflag', '-'); //shift
- model.makeValue('/root/main/cond/nursid' , getUserInfo('userid'));//담당간호사아이디
- model.makeValue('/root/main/cond/nursnm' , getUserInfo('usernm'));//담당간호사명
-
- //그리드 노드 초기화
- model.removenode('/root/main/hdworklistinfo');
- model.makenode('/root/main/hdworklistinfo');
-
- model.refresh();
-
- fGetWorkList();
-
- }
-
- /**
- * creat : 20090108
- * author : dhkim
- * desc : 내환자세팅된 간호사 load
- */
- function fLoadMyPatSetting(){
-
- model.removenode('/root/send');
- model.makeValue('/root/send/wardcd', getUserInfo('dutplcecd'));
- model.refresh();
-
- //submit 호출
- if(!submit('TRMND03402')){
- messageBox('조회를 실패하였습니다.', 'E999');
- return;
- }
-
- }
-
-
- /**
- * creat : 20090108
- * author : dhkim
- * desc : HD worklist 조회
- */
- function fGetWorkList(){
-
- //조건변수
- var workdd = model.getValue('/root/main/cond/workdd'); //업무일자
- var mypid = model.getValue('/root/main/cond/mypid'); //내환자
- var shiftflag = model.getValue('/root/main/cond/shiftflag'); //shift
- var nursid = model.getValue('/root/main/cond/nursid'); //담당간호사아이디
-
- //null 처리
- if(workdd == null){
- workdd = '';
- }
- if(mypid == null){
- mypid = '';
- }
- if(shiftflag == null){
- shiftflag = '';
- }
- if(nursid == null){
- nursid = '';
- }
-
- //send parameter 설정
- model.removenode('/root/send');
- model.makeValue('/root/send/workdd', workdd);
- model.makeValue('/root/send/mypid', mypid);
- model.makeValue('/root/send/shiftflag', shiftflag);
- model.makeValue('/root/send/nursid', nursid);
-
-
- //submit 호출
- if(!submit('TRMND03401')){
- messageBox('조회를 실패하였습니다.', 'E999');
- return;
- }
-
- model.refresh();
- }
-
-
- /**
- * creat : 20090108
- * author : dhkim
- * desc : HD worklist 출력
- */
- function fPrintWorkList(){
-
- if(datagrid1.rows == 1){
- messageBox('출력할 내역이 없습니다.', 'E999');
- return;
- }
-
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/rexdata/workdd" , model.getValue("/root/main/cond/workdd"));
- model.makeValue("/root/send/rexdata/shiftflag", model.getValue("/root/main/cond/shiftflag"));
- model.makeValue("/root/send/rexdata/nursid" , model.getValue("/root/main/cond/nursid"));
-
- model.makeNode("/root/send/hdworklistinfo");
- model.copyNode("/root/send/hdworklistinfo", "/root/main/hdworklistinfo");
-
- exeReportPreview("RPMND03401", "XMLSTR", "", "", "false","","","","","false", "", "");//미리보기
-
- }
-
|