1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- /**
- * @---------------------------------------------------
- * @desc : HWCI 비예측 재입원 -초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitialize(){
- zbcfGetCodeList(new Array("M0450", "M0455", "M0456", "M0452"),
- new Array("/root/init/anstkindcd", "/root/init/reinsympcd", "/root/init/reinresncd", "/root/init/cpryncd"),
- true);
- var screenID = parent.window.javascript.getScreenID();
- if(screenID == "SMMQR02300"){
- btn_rgst.visible = false;
- btn_del.visible = false;
- }
- 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");
- }
-
- //다음조회를 위해서 B로 다시 setting
- model.makeValue("/root/main/cond/kind", "B");
- model.refresh();
- SetVisible("tar_reinsympetccnts", "/root/main/cond/reinsympcd", "16");
- SetVisible("tar_reinresnetccnts", "/root/main/cond/reinresncd", "11");
- }
- /**
- * @---------------------------------------------------
- * @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;
- }
|