123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- /**
- * @desc : 화면 초기화
- * @
- * @param :
- * @return :
- * @author : HIT EMR Team
- * @---------------------------------------------------
- */
- function fInitialize(){
-
- setParameter("SPMRI01300_openerid", "SPMRI01200");
- model.removeNodeset("/root/main/unprepbase");
- model.removeNodeset("/root/main/mainlist/medireclist");
-
- //fReqUnpr();
-
- //미비과 조회
- // zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "D", "/root/hidden/deptlist", "depthngnm", "asc");
- zbcfGetDeptCodeList("012", "orduseyn", "D", "/root/temp/deptlist", "depthngnm", "asc");
- zbcfGetDeptCodeList("012", "orduseyn", "W", "/root/temp/wardlist", "depthngnm", "asc");
- //reqGetDeptList("/root/send/reqdeptlist", "/root/init/deptlist", "", "012");
-
- copyNodeset("/root/temp/deptlist/dept", "/root/temp/templist","after");
- model.setValue("/root/send/cond/deptcd","ALL");
-
- model.setValue("/root/send/cond/fromdd", getCurrentDate());
- model.refresh();
-
- }
- /**
- * @desc : 미비정보 조회
- * @
- * @param :
- * @return :
- * @author : HIT EMR Team
- * @---------------------------------------------------
- */
- function fReqUnpr(){
- model.makeValue("/root/send/cond/pid","20433");
- model.makeValue("/root/send/cond/ioflag","O");
- model.makeValue("/root/send/cond/formrecdeptcd","ALL");
- model.makeValue("/root/send/cond/fromdd","20071030");
- submit("TRMRI01201");
- }
- /**
- * @desc : 과 선택
- * @
- * @param :
- * @return :
- * @author : HIT EMR Team
- * @---------------------------------------------------
- */
- function fDeptCDSelect(){
- submit("TRMRF03102");
- model.removeNodeset("/root/main/indxlist_d/item");
- copyNode(model, model, "/root/main/indxlist_d", "/root/main/indxlist");
- model.refresh();
- trv_indxlist_d.expand(0, true);
-
- }
-
- /**
- * @desc : 기록 리스트 조회
- * @
- * @param :
- * @return :
- * @author : HIT EMR Team
- * @---------------------------------------------------
- */
- function fSrchFormrec()
- {
- model.toggle("case1");
- btn_formrec.selected = "true";
-
- if( model.getValue("/root/send/cond/deptcd") == "-"){
- model.makeValue("/root/send/cond/formrecdeptcd","ALL");
- }else{
- model.makeValue("/root/send/cond/formrecdeptcd", model.getValue("/root/send/cond/deptcd"));
- }
-
- submit("TRMRI01201");
- }
- /**
- * @desc : 트리 선택
- * @
- * @param :
- * @return :
- * @author : HIT EMR Team
- * @---------------------------------------------------
- */
- function fSetTree()
- {
- var item = trv_indxlist_d.item(trv_indxlist_d.selectedIndex);
- var rows = item.index + 1;
-
- var linkflag = model.getValue("/root/main/indxlist_d/item["+ rows +"]/linkflag");
- if(linkflag == "N"){
- return;
- }
- var formcd = model.getValue("/root/main/indxlist_d/item["+ rows +"]/formcd");
- var indxnm = model.getValue("/root/main/indxlist_d/item["+ rows +"]/indxnm");
- //var pid = children.model.getValue("/root/main/indxlist_d/item["+ rows +"]/indxnm");
- var pid = model.getValue("/root/send/cond/pid");
- opener.model.makeValue("/root/temp/unprepmngtsub/formcd", formcd);
- opener.model.makeValue("/root/temp/unprepmngtsub/indxnm", indxnm);
- opener.model.makeValue("/root/temp/unprepmngtsub/formrecseq", 0 );
- opener.model.makeValue("/root/temp/unprepmngtsub/pid" , pid);
- //환자리스트에서 가져온 환자정보
- opener.model.makeValue("/root/temp/unprepmngtsub/pid", model.getValue("/root/temp/unpreprec/pid"));
- opener.model.makeValue("/root/temp/unprepmngtsub/ptnm", model.getValue("/root/temp/unpreprec/ptnm"));
- opener.model.makeValue("/root/temp/unprepmngtsub/dpdr", model.getValue("/root/temp/unpreprec/dpdr"));
- opener.model.makeValue("/root/temp/unprepmngtsub/chosflag", model.getValue("/root/temp/unpreprec/chosflag"));
- opener.model.makeValue("/root/temp/unprepmngtsub/orddd",model.getValue("/root/temp/unpreprec/orddd"));
- opener.model.makeValue("/root/temp/unprepmngtsub/cretno",model.getValue("/root/temp/unpreprec/cretno"));
- opener.model.makeValue("/root/temp/unprepmngtsub/instcd",model.getValue("/root/temp/unpreprec/instcd"));
- opener.model.makeValue("/root/temp/unprepmngtsub/orddeptcd", model.getValue("/root/temp/unpreprec/orddeptcd")); //
- opener.model.makeValue("/root/temp/unprepmngtsub/orddrid", model.getValue("/root/temp/unpreprec/orddrid")); //
-
- var chosflag = model.getValue("/root/temp/unpreprec/chosflag"); //구분
- var indschflag = model.getValue("/root/temp/unpreprec/indschflag"); //진료일자
-
- //퇴원일자이면 D ,나머지는 chosflag 대로..
- if("dschdd" == indschflag) { //진료일자
- opener.model.makeValue("/root/temp/unprepmngtsub/indschflag", "D"); //내원구분
- }else {
- opener.model.makeValue("/root/temp/unprepmngtsub/indschflag", chosflag); //내원구분
- }
- model.close();
- }
- /**
- * @desc : 그리드 선택
- * @
- * @param :
- * @return :
- * @author : HIT EMR Team
- * @---------------------------------------------------
- */
- function fSetGrid()
- {
- var rows = grd_medireclist.row - grd_medireclist.fixedRows + 1;
- var formcd = model.getValue("/root/main/mainlist/medireclist["+ rows +"]/formcd");
- var formnminfo = model.getValue("/root/main/mainlist/medireclist["+ rows +"]/formnminfo");
- var formrecseq = model.getValue("/root/main/mainlist/medireclist["+ rows +"]/formrecseq");
- var formrecdd = model.getValue("/root/main/mainlist/medireclist["+ rows +"]/formrecdd"); //기록일시
- var formrechm = model.getValue("/root/main/mainlist/medireclist["+ rows +"]/formrechm"); //기록과
-
- var pid = model.getValue("/root/send/cond/pid");
- opener.model.makeValue("/root/temp/unprepmngtsub/formcd", formcd);
- opener.model.makeValue("/root/temp/unprepmngtsub/indxnm", formnminfo);
- opener.model.makeValue("/root/temp/unprepmngtsub/formrecseq", formrecseq);
- opener.model.makeValue("/root/temp/unprepmngtsub/pid" , pid);
- opener.model.makeValue("/root/temp/unprepmngtsub/formrechm" , formrechm); //기록시간
- opener.model.makeValue("/root/temp/unprepmngtsub/formrecdd", formrecdd);
-
- //환자리스트에서 가져온 환자정보
- opener.model.makeValue("/root/temp/unprepmngtsub/pid", model.getValue("/root/temp/unpreprec/pid"));
- opener.model.makeValue("/root/temp/unprepmngtsub/ptnm", model.getValue("/root/temp/unpreprec/ptnm"));
- opener.model.makeValue("/root/temp/unprepmngtsub/dpdr", model.getValue("/root/temp/unpreprec/dpdr"));
- opener.model.makeValue("/root/temp/unprepmngtsub/chosflag", model.getValue("/root/temp/unpreprec/chosflag"));
- opener.model.makeValue("/root/temp/unprepmngtsub/orddd",model.getValue("/root/temp/unpreprec/orddd"));
- opener.model.makeValue("/root/temp/unprepmngtsub/cretno",model.getValue("/root/temp/unpreprec/cretno"));
- opener.model.makeValue("/root/temp/unprepmngtsub/instcd",model.getValue("/root/temp/unpreprec/instcd"));
- opener.model.makeValue("/root/temp/unprepmngtsub/orddeptcd", model.getValue("/root/temp/unpreprec/orddeptcd")); //
- opener.model.makeValue("/root/temp/unprepmngtsub/orddrid", model.getValue("/root/temp/unpreprec/orddrid")); //
- var chosflag = model.getValue("/root/temp/unpreprec/chosflag"); //구분
- var indschflag = model.getValue("/root/temp/unpreprec/indschflag"); //진료일자
-
- //퇴원일자이면 D ,나머지는 chosflag 대로..
- if("dschdd" == indschflag) { //진료일자
- opener.model.makeValue("/root/temp/unprepmngtsub/indschflag", "D"); //내원구분
- }else {
- opener.model.makeValue("/root/temp/unprepmngtsub/indschflag", chosflag); //내원구분
- }
- model.close();
- }
|