/** * @--------------------------------------------------- * @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(); }