/** * @desc : È­¸é ÃʱâÈ­ * @ * @param : * @return : * @author : HIT EMR Team * @--------------------------------------------------- */ function fInitialize(){ setParameter("SPMRI01300_openerid", "SPMRI01200"); model.removeNodeset("/root/main/unprepbase"); model.removeNodeset("/root/main/mainlist/medireclist"); //fReqUnpr(); //¹Ìºñ°ú Á¶È¸ // zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "D", "/root/hidden/deptlist", "depthngnm", "asc"); zbcfGetDeptCodeList("012", "orduseyn", "D", "/root/temp/deptlist", "depthngnm", "asc"); zbcfGetDeptCodeList("012", "orduseyn", "W", "/root/temp/wardlist", "depthngnm", "asc"); //reqGetDeptList("/root/send/reqdeptlist", "/root/init/deptlist", "", "012"); copyNodeset("/root/temp/deptlist/dept", "/root/temp/templist","after"); model.setValue("/root/send/cond/deptcd","ALL"); model.setValue("/root/send/cond/fromdd", getCurrentDate()); model.refresh(); } /** * @desc : ¹ÌºñÁ¤º¸ Á¶È¸ * @ * @param : * @return : * @author : HIT EMR Team * @--------------------------------------------------- */ function fReqUnpr(){ model.makeValue("/root/send/cond/pid","20433"); model.makeValue("/root/send/cond/ioflag","O"); model.makeValue("/root/send/cond/formrecdeptcd","ALL"); model.makeValue("/root/send/cond/fromdd","20071030"); submit("TRMRI01201"); } /** * @desc : °ú ¼±Åà * @ * @param : * @return : * @author : HIT EMR Team * @--------------------------------------------------- */ function fDeptCDSelect(){ submit("TRMRF03102"); model.removeNodeset("/root/main/indxlist_d/item"); copyNode(model, model, "/root/main/indxlist_d", "/root/main/indxlist"); model.refresh(); trv_indxlist_d.expand(0, true); } /** * @desc : ±â·Ï ¸®½ºÆ® Á¶È¸ * @ * @param : * @return : * @author : HIT EMR Team * @--------------------------------------------------- */ function fSrchFormrec() { model.toggle("case1"); btn_formrec.selected = "true"; if( model.getValue("/root/send/cond/deptcd") == "-"){ model.makeValue("/root/send/cond/formrecdeptcd","ALL"); }else{ model.makeValue("/root/send/cond/formrecdeptcd", model.getValue("/root/send/cond/deptcd")); } submit("TRMRI01201"); } /** * @desc : Æ®¸® ¼±Åà * @ * @param : * @return : * @author : HIT EMR Team * @--------------------------------------------------- */ function fSetTree() { var item = trv_indxlist_d.item(trv_indxlist_d.selectedIndex); var rows = item.index + 1; var linkflag = model.getValue("/root/main/indxlist_d/item["+ rows +"]/linkflag"); if(linkflag == "N"){ return; } var formcd = model.getValue("/root/main/indxlist_d/item["+ rows +"]/formcd"); var indxnm = model.getValue("/root/main/indxlist_d/item["+ rows +"]/indxnm"); //var pid = children.model.getValue("/root/main/indxlist_d/item["+ rows +"]/indxnm"); var pid = model.getValue("/root/send/cond/pid"); opener.model.makeValue("/root/temp/unprepmngtsub/formcd", formcd); opener.model.makeValue("/root/temp/unprepmngtsub/indxnm", indxnm); opener.model.makeValue("/root/temp/unprepmngtsub/formrecseq", 0 ); opener.model.makeValue("/root/temp/unprepmngtsub/pid" , pid); //ȯÀÚ¸®½ºÆ®¿¡¼­ °¡Á®¿Â ȯÀÚÁ¤º¸ opener.model.makeValue("/root/temp/unprepmngtsub/pid", model.getValue("/root/temp/unpreprec/pid")); opener.model.makeValue("/root/temp/unprepmngtsub/ptnm", model.getValue("/root/temp/unpreprec/ptnm")); opener.model.makeValue("/root/temp/unprepmngtsub/dpdr", model.getValue("/root/temp/unpreprec/dpdr")); opener.model.makeValue("/root/temp/unprepmngtsub/chosflag", model.getValue("/root/temp/unpreprec/chosflag")); opener.model.makeValue("/root/temp/unprepmngtsub/orddd",model.getValue("/root/temp/unpreprec/orddd")); opener.model.makeValue("/root/temp/unprepmngtsub/cretno",model.getValue("/root/temp/unpreprec/cretno")); opener.model.makeValue("/root/temp/unprepmngtsub/instcd",model.getValue("/root/temp/unpreprec/instcd")); opener.model.makeValue("/root/temp/unprepmngtsub/orddeptcd", model.getValue("/root/temp/unpreprec/orddeptcd")); // opener.model.makeValue("/root/temp/unprepmngtsub/orddrid", model.getValue("/root/temp/unpreprec/orddrid")); // var chosflag = model.getValue("/root/temp/unpreprec/chosflag"); //±¸ºÐ var indschflag = model.getValue("/root/temp/unpreprec/indschflag"); //Áø·áÀÏÀÚ //Åð¿øÀÏÀÚÀ̸é D ,³ª¸ÓÁö´Â chosflag ´ë·Î.. if("dschdd" == indschflag) { //Áø·áÀÏÀÚ opener.model.makeValue("/root/temp/unprepmngtsub/indschflag", "D"); //³»¿ø±¸ºÐ }else { opener.model.makeValue("/root/temp/unprepmngtsub/indschflag", chosflag); //³»¿ø±¸ºÐ } model.close(); } /** * @desc : ±×¸®µå ¼±Åà * @ * @param : * @return : * @author : HIT EMR Team * @--------------------------------------------------- */ function fSetGrid() { var rows = grd_medireclist.row - grd_medireclist.fixedRows + 1; var formcd = model.getValue("/root/main/mainlist/medireclist["+ rows +"]/formcd"); var formnminfo = model.getValue("/root/main/mainlist/medireclist["+ rows +"]/formnminfo"); var formrecseq = model.getValue("/root/main/mainlist/medireclist["+ rows +"]/formrecseq"); var formrecdd = model.getValue("/root/main/mainlist/medireclist["+ rows +"]/formrecdd"); //±â·ÏÀϽà var formrechm = model.getValue("/root/main/mainlist/medireclist["+ rows +"]/formrechm"); //±â·Ï°ú var pid = model.getValue("/root/send/cond/pid"); opener.model.makeValue("/root/temp/unprepmngtsub/formcd", formcd); opener.model.makeValue("/root/temp/unprepmngtsub/indxnm", formnminfo); opener.model.makeValue("/root/temp/unprepmngtsub/formrecseq", formrecseq); opener.model.makeValue("/root/temp/unprepmngtsub/pid" , pid); opener.model.makeValue("/root/temp/unprepmngtsub/formrechm" , formrechm); //±â·Ï½Ã°£ opener.model.makeValue("/root/temp/unprepmngtsub/formrecdd", formrecdd); //ȯÀÚ¸®½ºÆ®¿¡¼­ °¡Á®¿Â ȯÀÚÁ¤º¸ opener.model.makeValue("/root/temp/unprepmngtsub/pid", model.getValue("/root/temp/unpreprec/pid")); opener.model.makeValue("/root/temp/unprepmngtsub/ptnm", model.getValue("/root/temp/unpreprec/ptnm")); opener.model.makeValue("/root/temp/unprepmngtsub/dpdr", model.getValue("/root/temp/unpreprec/dpdr")); opener.model.makeValue("/root/temp/unprepmngtsub/chosflag", model.getValue("/root/temp/unpreprec/chosflag")); opener.model.makeValue("/root/temp/unprepmngtsub/orddd",model.getValue("/root/temp/unpreprec/orddd")); opener.model.makeValue("/root/temp/unprepmngtsub/cretno",model.getValue("/root/temp/unpreprec/cretno")); opener.model.makeValue("/root/temp/unprepmngtsub/instcd",model.getValue("/root/temp/unpreprec/instcd")); opener.model.makeValue("/root/temp/unprepmngtsub/orddeptcd", model.getValue("/root/temp/unpreprec/orddeptcd")); // opener.model.makeValue("/root/temp/unprepmngtsub/orddrid", model.getValue("/root/temp/unpreprec/orddrid")); // var chosflag = model.getValue("/root/temp/unpreprec/chosflag"); //±¸ºÐ var indschflag = model.getValue("/root/temp/unpreprec/indschflag"); //Áø·áÀÏÀÚ //Åð¿øÀÏÀÚÀ̸é D ,³ª¸ÓÁö´Â chosflag ´ë·Î.. if("dschdd" == indschflag) { //Áø·áÀÏÀÚ opener.model.makeValue("/root/temp/unprepmngtsub/indschflag", "D"); //³»¿ø±¸ºÐ }else { opener.model.makeValue("/root/temp/unprepmngtsub/indschflag", chosflag); //³»¿ø±¸ºÐ } model.close(); }