123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- /**
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- 의료정보 - 사본유의환자관리 ( SPMRC03300_사본유의환자관리.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- - Author : 이창록
-
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- **/
- /**
- * @ver :
- * @desc : 화면초기화
- * @ : 2008-12-29
- * @by : 이창록
- * @ :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInit()
- {
- model.removeNodeset("/root/main/limresinfo/limreslist");
- model.refresh();
- fLimResSearch();
- }
- /**
- * @ver :
- * @desc : 유의 환자 등록
- * @ : 2008-12-29
- * @by : 이창록
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fLimSave(flag)
- {
- if(flag =="i"){
- model.makeValue("/root/send/savedata/status" ,"i");
- model.makeValue("/root/send/savedata/pid" ,model.getValue("/root/cond/pid"));
- model.makeValue("/root/send/savedata/limrem" ,model.getValue("/root/cond/limrem"));
- model.makeValue("/root/send/savedata/limdeptcd" ,getUserInfo("dutplcecd"));
- if(submit("TXMRC03300")){
- messageBox("저장이", "I002");
- fLimResSearch();
- }else{
- messageBox("저장을", "E009");
- }
- model.resetInstanceNode("/root/send");
- var oprnerId = opener.window.javascript.getScreenID();
- if(oprnerId == "SMMRC02200")// 제한 환자 등록시 사본 발급 리스트 강제 조회
- {
- opener.window.javascript.fDisPatchHistSearch();
- }
- }else if(flag =="d"){
- model.makeValue("/root/send/savedata/status" ,"d");
- model.makeValue("/root/send/savedata/pid" ,model.getValue("/root/cond/pid"));
- var msg = messageBox("사본 유의환자 정보를","Q001");
- if(msg=="6"){
- if(submit("TXMRC03300")){
- messageBox("삭제가", "I001");
- }else
- messageBox("삭제를", "E009");
- }else{
- return;
- }
- model.resetInstanceNode("/root/cond");
- var oprnerId = opener.window.javascript.getScreenID();
- if(oprnerId == "SMMRC02200") // 제한 환자 삭제시 사본 발급 리스트 강제 조회
- {
- opener.window.javascript.fDisPatchHistSearch();
- }
- }
- model.refresh();
- }
- /**
- * @ver :
- * @desc : 환자 찾기 팝업
- * @
- * @by : 이창록
- * @param :
- * @return : 2008-12-29
- * @---------------------------------------------------
- */
- function fPatPopUp(pFlag)
- {
- if(pFlag == "1"){
- model.makeValue("/root/temp/pid", model.getValue("/root/cond/pid"));
- }else if(pFlag == "2"){
- model.makeValue("/root/temp/hngnm", model.getValue("/root/cond/hngnm"));
- }else if(pFlag == "3"){
- model.makeValue("/root/temp/rrgstno1", model.getValue("/root/cond/rrgstno1"));
- model.makeValue("/root/temp/rrgstno2", model.getValue("/root/cond/rrgstno2"));
- }
- model.makeValue("/root/temp/srchcond",pFlag);
- model.makeValue("/root/temp/autoflag","Y");
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/temp", "/root/send");
- model.setValue("/root/cond/pid" , model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/cond/hngnm" , model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/cond/rrgstno1" , model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/cond/rrgstno2" , model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
- fLimResSearch();
- model.refresh();
- }
- /**
- * @ver :
- * @desc : 제한 환자 조회
- * @
- * @by : 이창록
- * @param :
- * @return : 2008-12-29
- * @---------------------------------------------------
- */
- function fLimResSearch()
- {
- model.makeValue("/root/send/reqdata/pid",model.getValue("root/cond/pid"));
- if(submit("TRMRC03300")){
- model.setValue("/root/cond/limrem",model.getValue("/root/main/limresinfo/limreslist["+1+"]/limrem"));
- }
- }
- /**
- * @ver :
- * @desc : 제한 환자 조회
- * @
- * @by : 이창록
- * @param :
- * @return : 2008-12-29
- * @---------------------------------------------------
- */
- function fCopyLimResInfo(iRow)
- {
- model.setValue("/root/cond/pid" ,model.getValue("/root/main/limresinfo/limreslist["+iRow+"]/pid"));
- model.setValue("/root/cond/hngnm" ,model.getValue("/root/main/limresinfo/limreslist["+iRow+"]/hngnm"));
- model.setValue("/root/cond/rrgstno1",model.getValue("/root/main/limresinfo/limreslist["+iRow+"]/rrgstno").substring(0,6));
- model.setValue("/root/cond/rrgstno2",model.getValue("/root/main/limresinfo/limreslist["+iRow+"]/rrgstno").substring(7,14));
- model.setValue("/root/cond/limrem" ,model.getValue("/root/main/limresinfo/limreslist["+iRow+"]/limrem"));
- model.refresh();
- }
|