1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- /**
- * @---------------------------------------------------
- * @desc : HWCI 비예측사망 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitialize(){
- var screenID = parent.window.javascript.getScreenID();
-
- if(screenID == "SMMQR02300"){
- btn_rgst.visible = false;
- btn_del.visible = false;
- }
-
- zbcfGetCodeList(new Array("M0450", "M0451", "M0452", "M0453", "M0454"),
- new Array("/root/init/anstkindcd", "/root/init/dethresncd", "/root/init/cpryncd", "/root/init/dethpriodcd", "/root/init/relcascd"),
- true);
- model.refresh();
-
- }
- /**
- * @---------------------------------------------------
- * @desc : HWCI 비예측사망 - 환자정보조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetPatInfo(pid, indd, cretno, seqno, inptno){
-
- //조회에 필요한 조건들을 send에복사
- model.setValue("/root/send/patinfo/pid", pid);
- model.setValue("/root/send/patinfo/indd", indd);
- model.setValue("/root/send/patinfo/cretno", cretno);
- model.setValue("/root/send/patinfo/seqno", seqno);
- model.setValue("/root/send/patinfo/inptno", inptno);
- model.setValue("/root/send/patinfo/kind", model.getValue("/root/main/cond/kind"));
-
- //기존 데이터를 삭제
- model.removenode("/root/tmp/cond/patinfO");
- model.resetInstanceNode("/root/main/cond");
- model.removeNodeset("/root/main/valuColleague/row");
-
-
- if(inptno != ""){ //입력된 내용을 조회
- submit("TRMQR01201");
- copyNodeType("/root/main/cond", "/root/tmp/cond/patinfo", "replace");
- submit("TRMQR02600");
- }
- else{ //ocs data조회
- submit("TRMQR01200"); //환자 진료정보 불러오기
- copyNodeType("/root/main/cond", "/root/tmp/cond/patinfo", "replace");
- }
-
- //다음조회를 위해서 A로 다시 setting
- model.makeValue("/root/main/cond/kind", "A");
- model.refresh();
- SetVisible("tar_dethresncnts", "/root/main/cond/dethresncd", "22");
- }
- /**
- * @---------------------------------------------------
- * @desc : HWCI 비예측사망 - 저장을 위해 부모창으로 Node복사
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSetDetlnfo(){
- if(!isRequiredControls("opt_pid")){
- return false;
- }
- copyNodeType("/root/send/recinfo", "/root/main/cond", "replace", parent);
- parent.model.makeValue("/root/send/recinfo/valucolleague", getGridUpdateData(grd_valu));
- return true;
- }
|