123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- /**
- * @---------------------------------------------------
- * @desc : HWCI 응급실재방문 -초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitialize(){
-
- zbcfGetCodeList(new Array("M0461", "M0462", "M0463", "M0466", "M0452"),
- new Array("/root/init/mainsympcd", "/root/init/revisitresncd", "/root/init/nonplanresncd", "/root/init/dschresncd", "/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.removenode("/root/tmp/cond/fst");
- model.removenode("/root/tmp/cond/scd");
- model.resetInstanceNode("/root/main/cond");
- model.removenode("/root/main/fst");
- model.removenode("/root/main/scd");
- model.makeNode("/root/main/fst");
- model.makeNode("/root/main/scd");
- model.removeNodeset("/root/main/valuColleague/row");
-
- if(inptno != ""){ //입력된 내용을 조회
-
- submit("TRMQR01201");
- copyNodeType("/root/main/cond", "/root/tmp/cond/patinfo", "replace");
- submit("TRMQR01200"); //환자 진료정보 불러오기
- copyNodeType("/root/main/fst", "/root/tmp/cond/fst", "replace");
- copyNodeType("/root/main/scd", "/root/tmp/cond/scd", "replace");
- submit("TRMQR02600");
- }
- else{ //ocs data조회
- submit("TRMQR01200"); //환자 진료정보 불러오기
- copyNodeType("/root/main/cond", "/root/tmp/cond/patinfo", "replace");
- copyNodeType("/root/main/fst", "/root/tmp/cond/fst", "replace");
- copyNodeType("/root/main/scd", "/root/tmp/cond/scd", "replace");
- }
-
- //다음조회를 위해서 E로 다시 setting
- model.makeValue("/root/main/cond/kind", "E");
- SetVisible("tar_bfmainsympetccnts", "/root/main/cond/bfmainsympcd", "13");
- SetVisible("tar_orgmainsympetccnts", "/root/main/cond/orgmainsympcd", "13");
- fRevisitresn();
- model.refresh();
-
- }
- /**
- * @---------------------------------------------------
- * @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/fstinfo", grd_fst.getUpdateDataAll("s"));
- parent.model.makeValue("/root/send/recinfo/scdinfo", grd_scd.getUpdateDataAll("s"));
- parent.model.makeValue("/root/send/recinfo/valucolleague", getGridUpdateData(grd_valu));
- return true;
- }
- /**
- * @---------------------------------------------------
- * @desc : HWCI 응급실재방문 - 재입원사유 ComboBox Display 설정
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fRevisitresn(){
- var fst = model.getValue("/root/main/cond/revisitresncd");
- var scd = model.getValue("/root/main/cond/nonplanresncd");
- var trd = model.getValue("/root/main/cond/nonplanresnscndcd");
-
- if(fst == "01"){
-
- cmb_nonplanresncd.visible = false;
- cmb_nonplanresnscndcd.visible = false;
- tar_revisitcnts.disabled = false;
- }
- else if(fst == "02"){
- cmb_nonplanresncd.visible = true;
- tar_revisitcnts.disabled = true;
- if(scd == "01"){
- model.removeNodeset("/root/init/nonplanresnscndcd/M0464");
- zbcfGetCodeList(new Array("M0464"), new Array("/root/init/nonplanresnscndcd"), true);
- cmb_nonplanresnscndcd.choices.itemset.attribute("nodeset") = "/root/init/nonplanresnscndcd/M0464";
-
- cmb_nonplanresnscndcd.visible = true;
- tar_revisitcnts.disabled = true;
-
- if(trd == "04"){
- tar_revisitcnts.disabled = false;
- }
- else{
- tar_revisitcnts.disabled = true;
- }
-
- }
- else if(scd == "02"){
- model.removeNodeset("/root/init/nonplanresnscndcd/M0465");
- zbcfGetCodeList(new Array("M0465"), new Array("/root/init/nonplanresnscndcd"), true);
- cmb_nonplanresnscndcd.choices.itemset.attribute("nodeset") = "/root/init/nonplanresnscndcd/M0465";
-
- cmb_nonplanresnscndcd.visible = true;
- tar_revisitcnts.disabled = true;
-
- if(trd == "04"){
- tar_revisitcnts.disabled = false;
- }
- else{
- tar_revisitcnts.disabled = true;
- }
-
- }
- else if(scd == "06"){
- cmb_nonplanresnscndcd.visible = false;
- tar_revisitcnts.disabled = false;
- }
- else{
- cmb_nonplanresnscndcd.visible = false;
- tar_revisitcnts.disabled = true;
- }
- }
- else{
- cmb_nonplanresncd.visible = false;
- cmb_nonplanresnscndcd.visible = false;
- tar_revisitcnts.disabled = true;
- }
-
-
-
- model.refresh();
- }
|