/* - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì À¯ÀüÀڰ˻絿ÀǼ­ÀÔ·Â ( SPMMO21000_À¯ÀüÀڰ˻絿ÀǼ­ÀÔ·Â.xrw - JScript ) - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì */ /** * @desc : È­¸é ÃʱâÈ­ * @ * @param : * @return : * @author : À̳²ÀÍ * @--------------------------------------------------- */ function fInitialize_SPMMO21001(){ zbcfGetCodeList(new Array("M0601"), new Array("/root/init/baseinfo")); model.removeNodeSet("/root/init/baseinfo/M0601[cdid=1]"); model.removeNodeset("/root/send/savedata"); model.removeNodeset("/root/send/geneunitlist"); model.makeValue("/root/hidden/geneunitlist/proceryn", "N"); //´ë¸®Àο©ºÎ model.makeValue("/root/hidden/geneunitlist/spcpossnterm", "°Ë»çÁ¾·á½Ã"); //µ¿ÀDZÇÀÚ°¡ Á¤ÇÑ º¸Á¸±â°£ model.setValue("/root/init/option/inspecttype", 1); var vRowCnt = getNodesetCount("/root/main/prcplist/row"); if(vRowCnt>0){ var sPrcpList = ""; for(var i=1; i <= vRowCnt; i++ ){ if(vRowCnt == 1){ sPrcpList = model.getValue ( "/root/main/prcplist/row["+i+"]/prcpnm"); }else if(vRowCnt == i){ sPrcpList += model.getValue ( "/root/main/prcplist/row["+i+"]/prcpnm"); }else{ sPrcpList += model.getValue ( "/root/main/prcplist/row["+i+"]/prcpnm") + ", "; } } var vinstcd = model.getValue ( "/root/main/prcplist/row[1]/instcd"); var vpid = model.getValue ( "/root/main/prcplist/row[1]/pid"); var vpatnm = model.getValue ( "/root/main/prcplist/row[1]/patnm"); var vrrgstno = model.getValue ( "/root/main/prcplist/row[1]/rrgstno"); var vorddd = model.getValue ( "/root/main/prcplist/row[1]/orddd"); var vdrnm = model.getValue ( "/root/main/prcplist/row[1]/drnm"); var vdrbrthdd = model.getValue ( "/root/main/prcplist/row[1]/drbrthdd"); var vdeptengabbr = model.getValue ( "/root/main/prcplist/row[1]/deptengabbr"); var vroomcd = model.getValue ( "/root/main/prcplist/row[1]/roomcd" ); var vprcpgenrflag = model.getValue ( "/root/main/prcplist/row[1]/prcpgenrflag"); var vcentcd = model.getValue ( "/root/main/prcplist/row[1]/centcd"); var vocrtag = model.getValue ( "/root/main/prcplist/row[1]/ocrtag"); var vhistcd = "O"; var vpagenum = model.getValue ( "/root/main/prcplist/row[1]/pagenum"); var vexecprcpuniqno = model.getValue ( "/root/main/prcplist/row[1]/execprcpuniqno"); var vpattelno = model.getValue ( "/root/main/prcplist/row[1]/pattelno"); var vpataddr = model.getValue ( "/root/main/prcplist/row[1]/pataddr"); var vpatsex = model.getValue ( "/root/main/prcplist/row[1]/patsex"); var vinstnm = ""; /*model.getValue ( "/root/main/prcplist/row[1]/instnm");*/ var vinsttelno = model.getValue ( "/root/main/prcplist/row[1]/insttelno"); // ÀÌÀ±ÁÖ¼öÁ¤-20130419 var vinstcd = getUserInfo("dutplceinstcd"); if (vinstcd == "031") { vinsttelno =""; } else if (vinstcd == "032") { vinsttelno =""; } var vlogurl = getBigLogoImageURL("", ""); model.makeValue("/root/hidden/geneunitlist/pid", vpid); model.makeValue("/root/hidden/geneunitlist/patnm", vpatnm); model.makeValue("/root/hidden/geneunitlist/orddd", vorddd); model.makeValue("/root/hidden/geneunitlist/rrgstno", vrrgstno); model.makeValue("/root/hidden/geneunitlist/drnm", vdrnm); model.makeValue("/root/hidden/geneunitlist/drbrthdd", vdrbrthdd); model.makeValue("/root/hidden/geneunitlist/deptengabbr", vdeptengabbr); model.makeValue("/root/hidden/geneunitlist/roomcd", vroomcd); model.makeValue("/root/hidden/geneunitlist/prcpgenrflag", vprcpgenrflag); model.makeValue("/root/hidden/geneunitlist/centcd", vcentcd); model.makeValue("/root/hidden/geneunitlist/ocrtag", vocrtag); model.makeValue("/root/hidden/geneunitlist/histcd", vhistcd); model.makeValue("/root/hidden/geneunitlist/pid", vpid); model.makeValue("/root/hidden/geneunitlist/logurl", vlogurl); model.makeValue("/root/hidden/geneunitlist/pagenum", vpagenum); model.makeValue("/root/hidden/geneunitlist/execprcpuniqno", vexecprcpuniqno); model.makeValue("/root/hidden/geneunitlist/pattelno", vpattelno); model.makeValue("/root/hidden/geneunitlist/pataddr", vpataddr); model.makeValue("/root/hidden/geneunitlist/patsex", vpatsex); model.makeValue("/root/hidden/geneunitlist/instnm", vinstnm); model.makeValue("/root/hidden/geneunitlist/insttelno", vinsttelno); model.makeValue("/root/hidden/geneunitlist/prcplist", sPrcpList); } if (vinstcd == "031") { capreferencetel.visible = false; } else if (vinstcd == "032") { capreferencetel.visible = true; } model.refresh(); } /** * @desc : À¯ÀüÀÚ °Ë»ç µ¿ÀǼ­ ÀúÀå * @ * @param : * @return : * @--------------------------------------------------- */ function reqSaveExeOpTermPrcp(){ var vpid; var vinstcd; var vprcpdd; var vprcpno; var vproceryn = model.getValue("/root/hidden/geneunitlist/proceryn"); var vprocernm = model.getValue("/root/hidden/geneunitlist/procernm"); var vprocerbrthdd = model.getValue("/root/hidden/geneunitlist/procerbrthdd"); var vspcpossntermcd = model.getValue("/root/hidden/geneunitlist/spcpossntermcd"); var vspcpossnterm = model.getValue("/root/hidden/geneunitlist/spcpossnterm"); if (vspcpossnterm=="") { model.setValue("/root/hidden/geneunitlist/spcpossntermcd", "0"); vspcpossnterm = "0"; } var vtestresn = model.getValue("/root/hidden/geneunitlist/testresn").replace(" ",""); var vstdyresn = "-"; var vspcproccd = model.getValue("/root/hidden/geneunitlist/spcproccd"); var vspcuseaprvyn = model.getValue("/root/hidden/geneunitlist/spcuseaprvyn"); var vpatinfouseyn = model.getValue("/root/hidden/geneunitlist/patinfouseyn"); var vinspecttype = model.getValue("/root/init/option/inspecttype"); //µ¿ÀǼ­ ±¸ºÐ if (vproceryn=="Y" && vprocernm=="" ){ messageBox("¹ýÁ¤´ë¸®ÀÎÀÇ ¼º¸íÀº ¹Ýµå½Ã ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.","I003");//I003=ÇʼöÀÔ·ÂÀÔ´Ï´Ù. model.setFocus("ipt_procernm"); return; } if (vproceryn =="Y" && vprocerbrthdd=="" ){ messageBox("¹ýÁ¤´ë¸®ÀÎÀÇ »ý³â¿ùÀÏÀº ¹Ýµå½Ã ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.","I003"); model.setFocus("ipt_procerbrthdd"); return; } if (vtestresn == "" ){ messageBox("°Ë»ç¸ñÀûÀº ¹Ýµå½Ã ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.","I003"); model.setFocus("ipt_testresn"); return; } vpid = model.getValue("/root/hidden/geneunitlist/pid"); if (vpid==""){ messageBox("µî·Ï¹øÈ£°¡ ´©¶ôµÇ¾ú½À´Ï´Ù.","I003"); return; } if ( model.getValue("/root/hidden/geneunitlist/spcpossnterm") == "" || isNull(model.getValue("/root/hidden/geneunitlist/spcpossnterm"))) { model.setValue("/root/hidden/geneunitlist/spcpossnterm", "-"); } if(vproceryn=="N" && vprocernm==""){model.setValue("/root/hidden/geneunitlist/procernm", "-")} if(vproceryn=="N" && vprocerbrthdd==""){model.setValue("/root/hidden/geneunitlist/procerbrthdd", "00000000")} opener.model.removeNodeset("/root/hidden/gene2/savedata"); var rcnt = grd_prcplist.rows; for(i=1; i