function fSelTree(){ var index = trv_indxlist.selectedIndex + 1; var enddepthflag = model.getValue("/root/init/mastnavi/masttree["+index+"]/enddepthflag"); var mastuseflag = model.getValue("/root/init/mastnavi/masttree["+index+"]/useflag"); model.resetInstanceNode("/root/main"); model.setValue("/root/main/cond/mastcd", trv_indxlist.value); model.setValue("/root/main/cond/masthngnm", trv_indxlist.label); model.setValue("/root/main/cond/mastuseflag", mastuseflag); if(enddepthflag == "Y"){ model.setValue("/root/send/list/mastcd", trv_indxlist.value); submit("TRMQI00100"); } model.refresh(); } function fSave(){ if(model.getValue("/root/main/cond/mappcd") != ""){ if(!isRequiredControls("opt_mastcd", "opt_mastnm", "ipt_mappcd", "cmb_cdflag" , "cmb_useflag")){ return; } copyNodeType("/root/send/cond", "/root/main/cond", "replace"); submit("TXMQI00100"); fSelTree(); } else{ copyNodeType("/root/send/cond", "/root/main/cond", "replace"); submit("TXMQI00100"); window.reload(); } } function fSelList(){ if(grd_list.row == "0"){ return; } var seq = grd_list.valueMatrix(grd_list.row , 1); var mastcd = grd_list.valueMatrix(grd_list.row , 2); var mastnm = grd_list.valueMatrix(grd_list.row , 3); var mappcd = grd_list.valueMatrix(grd_list.row , 4); var mappengnm = grd_list.valueMatrix(grd_list.row , 5); var useflag = grd_list.valueMatrix(grd_list.row , 6); var cdflag = grd_list.valueMatrix(grd_list.row , 7); var lastupdtdt = grd_list.valueMatrix(grd_list.row , 9); model.setValue("/root/main/cond/seq" , seq ); model.setValue("/root/main/cond/mastcd" , mastcd ); model.setValue("/root/main/cond/masthngnm" , mastnm ); model.setValue("/root/main/cond/mappcd" , mappcd ); model.setValue("/root/main/cond/mappengnm" , mappengnm ); model.setValue("/root/main/cond/useflag" , useflag ); model.setValue("/root/main/cond/cdflag" , cdflag ); model.setValue("/root/main/cond/lastupdtdt" , lastupdtdt ); model.refresh(); } function fSrchMapp(srchFlag, srchData){ modal("../../../pam/calcscormngtweb/xrw/SMPIC00200_¼ö°¡Á¶È¸", "", "200", "200" ,"SMPIC00200_¼ö°¡Á¶È¸", "", ""); mappcd = model.getValue("/root/temp/mech/calcscorcd"); mappengnm = model.getValue("/root/temp/mech/engnm"); model.setValue("/root/main/cond/mappcd" , mappcd ); model.setValue("/root/main/cond/mappengnm" , mappengnm ); model.refresh(); }