1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408 |
- /*
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- 서식리스트 ( MMR02500_서식리스트.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- */
- var isAdmin = fUserAdmin();
- var refresh_u = 0;
- var refresh_d = 0;
- var refresh_a = 0;
- var sSETLIST = "/root/main/indxlist/item";
- var sSETLIST_HIDDEN = "/root/hidden/indxlist/item";
- var sMOUSE_CLK_STATUS; //마우스 클릭 좌우버튼 구분
- //var obj; //트리뷰 구분
- /**
- * @desc : 서식트리 마우스 팝업 처리
- * @id : trv_formlist
- * @event : onmousedown
- * @return : void
- * @authur : 박종훈
- */
- function fFormMouseRghtBtnPopup() {
- var selectedFormcd = trv_formlist.value;
-
- if(selectedFormcd != "" && selectedFormcd != null)
- {
- if(isAdmin == 1){
- setPopupMenu("trv_formlist", false, "/root/init/diagmsrghtssik/mouserght", "label", "func");
- } else if(isAdmin == 0){
- setPopupMenu("trv_formlist", false, "/root/init/diagmsrght/mouserght", "label", "func");
- }
- } else {
- initPopupMenu();
- }
- }
- /**
- * @desc : 기본서식설정
- * @id : trv_formlist
- * @event : onmousedown
- * @return : void
- * @authur : 박종훈
- */
- function fSetDefForm() {
- var selectedFormcd = trv_formlist.value;
- if(selectedFormcd != "" && selectedFormcd != null)
- {
- var formcd = selectedFormcd;
- var formbsetflag = "D";
- var formbsetdeptcd = "";
-
- if(isAdmin == 1){
- var formdeptcd = model.getValue("/root/main/formlist/item[formcd=" + formcd +"]/formdeptcd");
- formbsetdeptcd = formdeptcd.split(".")[0];
- }
-
- model.makeValue("/root/send/temp/formcd", formcd);
- model.makeValue("/root/send/temp/formbsetflag", formbsetflag);
- model.makeValue("/root/send/temp/formbsetdeptcd", formbsetdeptcd);
-
- submit("TXMMR02501");
- parent.window.javascript.fFavorRefresh(); // 즐겨찾기 refresh
- }
- }
- /**
- * @desc : 즐겨찾기추가
- * @id : trv_formlist
- * @event : onmousedown
- * @return : void
- * @authur : 박종훈
- */
- function fSetFavorForm() {
- var selectedFormcd = trv_formlist.value;
- if(selectedFormcd != "" && selectedFormcd != null)
- {
- var formcd = selectedFormcd;
- var formbsetflag = "F";
- var formbsetdeptcd = "";
-
- model.makeValue("/root/send/temp/formcd", formcd);
- model.makeValue("/root/send/temp/formbsetflag", formbsetflag);
- model.makeValue("/root/send/temp/formbsetdeptcd", formbsetdeptcd);
-
- submit("TXMMR02501");
- parent.window.javascript.fFavorRefresh(); // 즐겨찾기 refresh
- }
- }
-
- /**
- * @desc : 폼초기화
- * @
- * @param : flag (0:서식목록, 1:서식셋관리)
- * @return :
- * @---------------------------------------------------
- */
- function fFormInit(flag){
- // 폴더명칭 popup
- grup_saveas.visible = "false";
-
- // 부서코드 리스트 불러오기...
- reqGetDeptList("/root/send/reqdeptlist", "/root/init/deptlist", "", "012");
- model.makeValue("/root/init/deptlist/orddept/deptcd","ALL");
- model.makeValue("/root/init/deptlist/orddept/deptnm","전체");
- model.refresh();
-
- // admin 인가? 보여줄것만 보여준다..
- // 관리자 : 개인, 과, 전체 등록/수정/삭제 가능
- // 사용자 : 개인만 가능
- var result = fUserAdmin();
- if (result == true)
- {
- grup_srch1.visible = "true";
- grup_srch2.visible = "true";
- model.setValue("/root/send/cond/admin", "true");
- } else {
- grup_srch1.visible = "false";
- grup_srch2.visible = "false";
- model.setValue("/root/send/cond/admin", "false");
- }
- // 사용자정보 셋...
- model.setValue("/root/send/cond/userid", getUserId());
- model.setValue("/root/send/cond/usernm", getUserInfo("usernm"));
- model.setValue("/root/send/cond/deptcd", getUserInfo("dutplcecd"));
- model.setValue("/root/send/cond/mydeptcd", getUserInfo("dutplcecd"));
- model.setValue("/root/send/cond/jobkind", getUserInfo("jobkindcd"));
-
- model.toggle("case_dept");
- btn_dept.dispatch("DOMActivate");
- // 디폴트 트리뷰
- if (flag == 0 ) {
- // 서식목록일때만 과코드 부여해준다..
- model.setValue("/root/send/reqdata/deptcd", getUserInfo("dutplcecd"));
- // Switch (개인,과,전체,서식목록)
- sw_setflag.case_user.selected = "false";
- sw_setflag.case_dept.selected = "true";
- sw_setflag.case_all.selected = "false";
- sw_setflag.case_list.selected = "false";
- sw_setflag.refresh();
- // 과 목록 보여주자~
- fSetIndxListSelect("D");
- } else {
- // Switch (개인,과,전체,서식목록)
- sw_setflag.case_user.selected = "false";
- sw_setflag.case_dept.selected = "true";
- sw_setflag.case_all.selected = "false";
- sw_setflag.refresh();
-
- // 과 목록 보여주자~
- fSetIndxListSelect("D");
-
- }
- }
- /**
- * @desc : 버튼 클릭 (개인/과/전체)
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSetIndxListSelect(setflag){
- model.setValue("/root/send/cond/setflag", setflag);
- model.refresh();
-
- grup_saveas.visible = "false";
- // 개인
- if (setflag == "U") {
- btn_user.selected = "true";
- if (refresh_u == 0) {
- submit("TRMRF03102");
- model.removeNodeset("/root/main/indxlist_u/item");
- model.copyNode("/root/main/indxlist_u", "/root/main/indxlist");
- model.refresh();
-
- } else {
- copyNodeset("/root/main/indxlist/item", "/root/main/indxlist_u/item");
- model.refresh();
- }
- refresh_u = 1;
- // 첫번째 만 오픈하자!!
- trv_indxlist_u.expand(0, true);
- // 과
- } else if (setflag == "D") {
- btn_dept.selected = "true";
- if (refresh_d == 0) {
- submit("TRMRF03102");
- model.removeNodeset("/root/main/indxlist_d/item");
- model.copyNode("/root/main/indxlist_d", "/root/main/indxlist");
- model.refresh();
-
- } else {
- copyNodeset("/root/main/indxlist/item", "/root/main/indxlist_d/item");
- model.refresh();
- }
- refresh_d = 1;
- // 첫번째 만 오픈하자!!
- trv_indxlist_d.expand(0, true);
- // 공통
- } else if (setflag == "A") {
- btn_all.selected = "true";
- if (refresh_a == 0) {
- submit("TRMRF03102");
- model.removeNodeset("/root/main/indxlist_a/item");
- model.copyNode("/root/main/indxlist_a", "/root/main/indxlist");
- model.refresh();
-
- } else {
- copyNodeset("/root/main/indxlist/item", "/root/main/indxlist_a/item");
- model.refresh();
- }
- refresh_a = 1;
- // 첫번째 만 오픈하자!!
- trv_indxlist_a.expand(0, true);
-
- }
- }
- /**
- * @desc : 과 선택
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDeptCDSelect(){
- submit("TRMRF03102");
- model.removeNodeset("/root/main/indxlist_d/item");
- //model.copyNode("/root/main/indxlist_d", "/root/main/indxlist");
- copyNode(model, model, "/root/main/indxlist_d", "/root/main/indxlist");
- model.refresh();
- }
- /**
- * @desc : 사용자정보
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetUserInfo(userid,usernm,deptcd , instcd)
- {
- model.setValue("/root/send/cond/userid", userid);
- model.setValue("/root/send/cond/usernm", usernm);
- model.setValue("/root/send/cond/deptcd", deptcd);
- ipt_saveas_userid.text = usernm;
- ipt_saveas_userid.refresh();
- submit("TRMRF03102");
- model.makeValue("/root/temp/instcd",instcd); //조회한 사용자 기관코드
- model.removeNodeset("/root/main/indxlist_u/item");
- //model.copyNode("/root/main/indxlist_u", "/root/main/indxlist");
- copyNode(model, model, "/root/main/indxlist_u", "/root/main/indxlist");
- model.refresh();
- }
- /*
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- */
- /**
- * @desc : 트리뷰 셋
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSetTreeView(){
- var setflag = model.getValue("/root/send/cond/setflag");
- var rtn = "";
- if (setflag == "U") {
- rtn = "trv_indxlist_u" + "|" + "/root/main/indxlist_u/item";
- }
- if (setflag == "D") {
- rtn = "trv_indxlist_d" + "|" + "/root/main/indxlist_d/item";
- }
- if (setflag == "A") {
- rtn = "trv_indxlist_a" + "|" + "/root/main/indxlist_a/item";
- }
-
- return rtn;
- }
- /**
- * @desc : 마우스 오른쪽 버튼 팝업창
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- * 1. 마우스 우클릭인가?
- * 2. 관리자인가? 사용자인가?
- * 3. 구분이 개인인가? 과인가? 전체인가?
- * 4. 폴더인가? 파일인가? 루트인가?
- */
- function fMouseRghtBtnPopup(){
- var rtn = fSetTreeView();
- rtn = rtn.split("|");
- var obj = document.controls(rtn[0]);
- var path = rtn[1];
-
- if(event.button == 3){
- if(obj.isCell(event.target) && obj.selectedIndex > -1) {
- var item = obj.item(obj.selectedIndex);
- var rowpos = item.index + 1;
- var depth = model.getValue(sSETLIST + "[" + rowpos + "]/depth");
- var item_length = obj.length;
- // 루트인가? (보여주는 부분으로..)
- if (depth == 0 && item_length > 1) {
- window.setPopupMenu(false); return;
- }
- // 관리자인가? 구분이 개인인가?
- var admin = model.getValue("/root/send/cond/admin");
- var setflag = model.getValue("/root/send/cond/setflag");
- if(setflag =="U"){ // 개인 indx
- sSETLIST = "/root/main/indxlist_u/item"
- }else if(setflag =="D"){ // 과 indx
- sSETLIST = "/root/main/indxlist_d/item"
- }
- if (admin == "true" || setflag == "U") {
- if(setflag == "A"){ //전체는 입력안됨
- return;
- }
-
- if (depth < 2) {
- window.setPopupMenu(true, "/root/temp/menu2/menu", "label", "func", false); return;
- }
- var linkflag = model.getValue(sSETLIST + "[" + rowpos + "]/linkflag");
- if (linkflag == "N") {
- // 폴더인경우, 새폴더/폴더수정/폴더삭제..
- window.setPopupMenu(true, "/root/temp/menu/menu", "label", "func", false); return;
- } else if (linkflag == "Y") {
- // 파일인경우, 파일삭제만..
- window.setPopupMenu(true, "/root/temp/menu1/menu", "label", "func", false); return;
- } else {
- window.setPopupMenu(false);
- }
- } else {
- window.setPopupMenu(false);
- }
- } else {
- window.setPopupMenu(false);
- }
- }else{
- window.setPopupMenu(false);
- }
-
- }
- /**
- * @desc : 새폴더 추가
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fAddDiagSet(){
- var rtn = fSetTreeView();
- rtn = rtn.split("|");
- var obj = document.controls(rtn[0]);
- var path = rtn[1];
-
- var item = obj.item(obj.selectedIndex);
- var rowPos = item.index + 1;
- fSetDiagInfo(rowPos, "i");
- model.setValue(sSETLIST_HIDDEN + "/status", "i");
- model.setValue("/root/main/iptbox/indxnm", "");
- model.refresh();
- fShowWndIptBox();
- }
- /**
- * @desc : 폴더 삭제
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDelDiagSet(){
- var rtn = fSetTreeView();
- rtn = rtn.split("|");
- var obj = document.controls(rtn[0]);
- var path = rtn[1];
-
- var item = obj.item(obj.selectedIndex);
- var rowPos = item.index + 1;
- if(fSetDiagInfo(rowPos, "d")!= -1){
- fSaveDiagSet("Y");
- }
- }
- /**
- * @desc : 폴더 수정
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fUpdtDiagSet(){
- var rtn = fSetTreeView();
- rtn = rtn.split("|");
- var obj = document.controls(rtn[0]);
- var path = rtn[1];
-
- var item = obj.item(obj.selectedIndex);
- var rowPos = item.index + 1;
- var indxnm = item.label;
- model.setValue("/root/main/iptbox/indxnm", indxnm);
- model.refresh();
- if(fSetDiagInfo(rowPos, "u")!=-1){
- fShowWndIptBox();
- }
- }
- /**
- * @desc : 서식 SET 저장
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSaveDiagSet(linkflag){
- grup_saveas.visible = "false";
-
- var indxnm = model.getValue("/root/main/iptbox/indxnm");
- if (linkflag == "N" && indxnm == "") {
- messageBox("폴더명칭을 ", "C001");
- return;
- }
- model.setValue(sSETLIST_HIDDEN + "/indxnm" , indxnm);
- model.setValue(sSETLIST_HIDDEN + "/linkflag" , linkflag);
-
- var admin = model.getValue("/root/send/cond/admin");
- model.setvalue(sSETLIST_HIDDEN + "/admin" , admin);
- var setflag = model.getValue("/root/send/cond/setflag");
- model.setvalue(sSETLIST_HIDDEN + "/setflag" , setflag);
- // 구분에 따라 [과, 사용자] 정보를 넘겨야 하는데...
- var userid = model.getValue("/root/send/cond/userid");
- var deptcd = model.getValue("/root/send/cond/deptcd");
- if (setflag == "U")
- {
- model.setValue(sSETLIST_HIDDEN + "/userid" , userid);
- model.setValue(sSETLIST_HIDDEN + "/deptcd" , deptcd);
- } else if (setflag == "D")
- {
- model.setValue(sSETLIST_HIDDEN + "/userid" , "");
- model.setValue(sSETLIST_HIDDEN + "/deptcd" , deptcd);
- }
- // 로그인 과 정보 넘기기...
- model.makeValue(sSETLIST_HIDDEN + "/mydeptcd", getUserInfo("dutplcecd"));
- model.copyNode("/root/send/savedata", sSETLIST_HIDDEN);
- submit("TXMRF03101");
- if (setflag == "U") {
- model.removeNodeset("/root/main/indxlist_u/item");
- model.copyNode("/root/main/indxlist_u", "/root/main/indxlist");
- refresh_u = 1; refresh_a = 0;
- } else if (setflag == "D") {
- model.removeNodeset("/root/main/indxlist_d/item");
- model.copyNode("/root/main/indxlist_d", "/root/main/indxlist");
- refresh_d = 1; refresh_a = 0;
- } else if (setflag == "A") {
- model.removeNodeset("/root/main/indxlist_a/item");
- model.copyNode("/root/main/indxlist_a", "/root/main/indxlist");
- refresh_u = 0; refresh_d = 0; refresh_a = 1;
- }
- model.refresh();
- }
- /**
- * @desc : 서식관리 폴더명을 입력할 InputBox를 보여줌.
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fShowWndIptBox(){
- grup_saveas.attribute("top") = event.clientY;
- grup_saveas.visible = "true";
- }
- /**
- * @desc : 서식 SET 조회
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fReqDetlSet(){
- var rtn = fSetTreeView();
- rtn = rtn.split("|");
- var obj = document.controls(rtn[0]);
- var path = rtn[1];
-
- if (obj.selectedIndex == 0) {
- return;
- }
- var item = obj.item(obj.selectedIndex);
- if (item != null) {
- var rowpos = item.index + 1;
- fSetDiagInfo(rowpos);
- var depth = model.getValue(sSETLIST_HIDDEN + "/depth");
- if(depth == 2){
- return;
- }
- }
- }
- /**
- * @desc : Mouse Drag Drop
- * @
- * @param :
- * @return : void
- * @authur :
- * @---------------------------------------------------
- */
- function fOndrop(){
- var rtn = fSetTreeView();
- rtn = rtn.split("|");
- var obj = document.controls(rtn[0]);
- var path = rtn[1];
-
- var rowpos = obj.mouseRow + 1;
- var depth = model.getValue(sSETLIST + "[" + rowpos + "]/depth");
- var indxnm = model.getValue(sSETLIST + "[" + rowpos + "]/indxnm");
- var x = event.clientX;
- var maxposX = 24 + 16 * (depth - 1) + ( 13 * indxnm.length);
- var minposX = 24 + 16 * (depth - 1);
- if(maxposX > x){
- fDiagSetDrop();
- }else{
- return;
- }
- }
- /**
- * @desc : Mouse Drag Over
- * @
- * @param :
- * @return : void
- * @authur :
- * @---------------------------------------------------
- */
- function fMouseOver(){
- var rtn = fSetTreeView();
- rtn = rtn.split("|");
- var obj = document.controls(rtn[0]);
- var path = rtn[1];
-
- var rowpos = obj.mouseRow + 1;
- var depth = model.getValue(sSETLIST + "[" + rowpos + "]/depth");
- var indxnm = model.getValue(sSETLIST + "[" + rowpos + "]/indxnm");
- var x = event.clientX;
- var maxposX = 24 + 16 * (depth - 1) + ( 10 * indxnm.length);
- var minposX = 24 + 16 * (depth - 1);
- if(maxposX > x){
- for ( var i = 0; i < obj.length; i++ ) {
- obj.item(i).attribute("background-color") = "#ffffff";
- obj.item(i).attribute("text-decoration") = "";
- }
- obj.item(obj.mouseRow).attribute("background-color") = "#ece1ec";
- obj.item(obj.mouseRow).attribute("text-decoration") = "";
- }
- }
- /**
- * @desc : TreeView에 Drag상태로 Mouse over된 경우 item의 background color를 clear함
- * @
- * @param :
- * @return : void
- * @authur :
- * @---------------------------------------------------
- */
- function fOnDragMouseOver(){
- var rtn = fSetTreeView();
- rtn = rtn.split("|");
- var obj = document.controls(rtn[0]);
- var path = rtn[1];
-
- var treeObj = document.controls.item(event.currentTarget);
- var rowpos = obj.mouseRow + 1;
- var depth = model.getValue(sSETLIST + "[" + rowpos + "]/depth");
- var indxnm = model.getValue(sSETLIST + "[" + rowpos + "]/indxnm");
- var x = event.clientX;
- var maxposX = 24 + 16 * (depth - 1) + ( 10 * indxnm.length);
- var minposX = 24 + 16 * (depth - 1);
- if(maxposX > x){
- if( obj.selectedIndex != treeObj.mouseRow ) {
- for ( var i = 0; i < treeObj.length; i++ ) {
- treeObj.item(i).attribute("background-color") = "#ffffff";
- treeObj.item(i).attribute("text-decoration") = "";
- }
- treeObj.item(treeObj.mouseRow).attribute("background-color") = "#ece1ec";
- treeObj.item(treeObj.mouseRow).attribute("text-decoration") = "";
- }
- }
-
- }
- /**
- * @desc : 서식 SET Drag
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDiagSetDrag(){
- var rtn = fSetTreeView();
- rtn = rtn.split("|");
- var obj = document.controls(rtn[0]);
- var path = rtn[1];
-
- if (obj.selectedIndex == 0) {
- return;
- }
- var item = obj.item(obj.selectedIndex);
- if (item != null) {
- var rowpos = item.index + 1;
- fSetDiagInfo(rowpos, "u");
- var indxnm = model.getValue(sSETLIST + "[" + rowpos + "]/indxnm");
- model.setValue("/root/main/iptbox/indxnm", indxnm);
- model.refresh();
- }
- }
- /**
- * @desc : 서식 SET Drop
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDiagSetDrop(){
- var rtn = fSetTreeView();
- rtn = rtn.split("|");
- var obj = document.controls(rtn[0]);
- var path = rtn[1];
-
- fClrTreeViweSelect();
- var admin = model.getValue("/root/send/cond/admin");
- var setflag = model.getValue("/root/send/cond/setflag");
- // 관리자인가? 구분이 개인인가?
- if (admin == "true" || setflag == "U") {
- var treeObj = document.controls.item(event.currentTarget);
- var rowpos = obj.mouseRow + 1;
- var depth = model.getValue(sSETLIST + "[" + rowpos + "]/depth");
- var itemindxseq = model.getValue(sSETLIST + "[" + rowpos + "]/itemindxseq");
- var supitemindxseq = model.getValue(sSETLIST + "[" + rowpos + "]/supitemindxseq");
- var linkflag = model.getValue(sSETLIST + "[" + rowpos + "]/linkflag");
- var cmpdepth = model.getValue(sSETLIST_HIDDEN + "/depth");
- var cmpitemindxseq = model.getValue(sSETLIST_HIDDEN + "/itemindxseq");
- var cmpsupitemindxseq = model.getValue(sSETLIST_HIDDEN + "/supitemindxseq");
- var cmplinkflag = model.getValue(sSETLIST_HIDDEN + "/linkflag");
- // 이동하는 폴더가 파일 아래로 이동하는것 방지함.
- if(linkflag == "Y"){
- messageBox("폴더가 아닌 위치로 이동", "E001");
- obj.item(obj.mouseRow).attribute("background-color") = "#ffffff";
- obj.item(obj.mouseRow).attribute("text-decoration") = "";
- return;
- }
- if(itemindxseq == cmpitemindxseq){
- // messageBox("동일한 위치로 이동", "E001");
- obj.item(obj.mouseRow).attribute("background-color") = "#ffffff";
- obj.item(obj.mouseRow).attribute("text-decoration") = "";
- return;
- }else if(itemindxseq == cmpsupitemindxseq){
- // 같은 과, 같은 사용자가 아니면 이동이 안됨. (why? with문 update가 안되니까..)
- // if (deptcd != cmpdeptcd || userid != cmpuserid) {
- // messageBox("지정된 위치로 이동", "E001");
- // obj.item(obj.mouseRow).attribute("background-color") = "#ffffff";
- // obj.item(obj.mouseRow).attribute("text-decoration") = "";
- // return;
- // }
- }
- //이동하는 SET폴더의 depth가 도착하는 곳보다 낮은 레벨일 경우,
- //자신의 child node 아래로 이동하는 것을 방지함.
- if(cmpdepth < depth){
- var rootdepth;
- var rootitemindxseq;
- while(cmpdepth != rootdepth){
- rootdepth = model.getValue(sSETLIST + "[" + rowpos + "]/depth");
- rootitemindxseq = model.getValue(sSETLIST + "[" + rowpos + "]/itemindxseq");
- rowpos--;
- }
- if(rootitemindxseq == cmpitemindxseq){
- messageBox("지정된 위치로 이동", "E001");
- obj.item(obj.mouseRow).attribute("background-color") = "#ffffff";
- obj.item(obj.mouseRow).attribute("text-decoration") = "";
- return;
- }
- }
- // 이동 폴더의 (과, 사용자) 정보, 이동 대상의 (과, 사용자) 정보
- var deptcd = model.getValue(sSETLIST + "[" + rowpos + "]/deptcd");
- var userid = model.getValue(sSETLIST + "[" + rowpos + "]/userid");
- var cmpdeptcd = model.getValue(sSETLIST_HIDDEN + "/deptcd");
- var cmpuserid = model.getValue(sSETLIST_HIDDEN + "/userid");
- // 같은 과, 같은 사용자가 아니면 이동이 안됨. (why? with문 update가 안되니까..)
- if (deptcd != cmpdeptcd || userid != cmpuserid) {
- messageBox("지정된 위치로 이동", "E001");
- obj.item(obj.mouseRow).attribute("background-color") = "#ffffff";
- obj.item(obj.mouseRow).attribute("text-decoration") = "";
- return;
- }
-
- // 이동 폴더의 (과, 사용자) 정보를 셋함...
- model.setValue(sSETLIST_HIDDEN + "/deptcd" , deptcd);
- model.setValue(sSETLIST_HIDDEN + "/userid" , userid);
- model.setValue(sSETLIST_HIDDEN + "/supitemindxseq" , itemindxseq);
- fSaveDiagSet("Y");
- }
- }
- /**
- * @desc : 폴더명 검색할 경우 검색한 위치로 focus를 이동한다.
- * @
- * @param :
- * @return : void
- * @authur :
- * @---------------------------------------------------
- */
- function fSrchDiagIndxNM(){
- var rtn = fSetTreeView();
- rtn = rtn.split("|");
- var obj = document.controls(rtn[0]);
- var path = rtn[1];
-
- var sFolderNM = model.getValue("/root/main/cond/foldernm");
- if (obj.selectedIndex+1 == obj.length) {
- obj.selectedIndex = 0;
- }
- for(var i=obj.selectedIndex+1; i<obj.length;i++){
- obj.select(i);
- if(sFolderNM == obj.label){
- break;
- }
- }
- fReqDetlSet();
- }
- /**
- * @desc : TreeView 선택된 item의 background color를 clear함
- * @
- * @param :
- * @return : void
- * @authur :
- * @---------------------------------------------------
- */
- function fClrTreeViweSelect(){
- var rtn = fSetTreeView();
- rtn = rtn.split("|");
- var obj = document.controls(rtn[0]);
- var path = rtn[1];
-
- for(var i = 0; i < obj.length; i++){
- obj.item(i).attribute("background-color") = "#ffffff";
- obj.item(i).attribute("text-decoration") = "";
- }
- }
- /**
- * @desc : 서식 SET INFO SETTING
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSetDiagInfo(rowpos, status){
- var depth = model.getValue(sSETLIST + "[" + rowpos + "]/depth");
- if(status == "u" && depth == 1){
- //messageBox("선택한 폴더는 수정", "E001");
- return -1;
- }else if(status == "d" && depth == 1){
- //messageBox("선택한 폴더는 삭제", "E001");
- return -1;
- }
- var depth = model.getValue(sSETLIST + "[" + rowpos + "]/depth");
- var path = model.getValue(sSETLIST + "[" + rowpos + "]/path");
- var itemindxseq = model.getValue(sSETLIST + "[" + rowpos + "]/itemindxseq");
- var supitemindxseq = model.getValue(sSETLIST + "[" + rowpos + "]/supitemindxseq");
- var linkflag = model.getValue(sSETLIST + "[" + rowpos + "]/linkflag");
- var indxnm = model.getValue(sSETLIST + "[" + rowpos + "]/indxnm");
- model.setValue(sSETLIST_HIDDEN + "/status" , status);
- model.setValue(sSETLIST_HIDDEN + "/depth" , depth);
- model.setValue(sSETLIST_HIDDEN + "/path" , path);
- model.setValue(sSETLIST_HIDDEN + "/itemindxseq" , itemindxseq);
- // supitemindxseq : 새로운 등록이면 상위정보, 수정이면 기존정보
- if(status == "i"){
- model.setValue(sSETLIST_HIDDEN + "/supitemindxseq", itemindxseq);
- }else{
- model.setValue(sSETLIST_HIDDEN + "/supitemindxseq", supitemindxseq);
- }
- //연결구분이 'Y' 인 경우 : 서식명칭에 값을 넣지 않는다.. (2007.06.12)
- if (linkflag == 'N') {
- model.setValue(sSETLIST_HIDDEN + "/indxnm" , indxnm);
- } else {
- model.setValue(sSETLIST_HIDDEN + "/indxnm" , "");
- }
- model.setValue(sSETLIST_HIDDEN + "/linkflag" , "N");
- model.setValue(sSETLIST_HIDDEN + "/linkcd" , "");
- // 상위 정보 (사용자, 과)
- var userid = model.getValue(sSETLIST + "[" + rowpos + "]/userid");
- var deptcd = model.getValue(sSETLIST + "[" + rowpos + "]/deptcd");
- model.setValue(sSETLIST_HIDDEN + "/userid" , userid);
- model.setValue(sSETLIST_HIDDEN + "/deptcd" , deptcd);
-
- // 기본 정보
- var instflag = model.getValue("/root/send/cond/setflag"); //개인과구분
- if(instflag =="U"){
- var instcd = model.getValue("/root/temp/instcd");
- if(instcd == ""){
- model.setValue(sSETLIST_HIDDEN + "/instcd" , getUserInfo("posinstcd"));
- }else {
- model.setValue(sSETLIST_HIDDEN + "/instcd" , instcd);
- }
- }else{
- model.setValue(sSETLIST_HIDDEN + "/instcd" , getUserInfo("posinstcd"));
- }
- model.setValue(sSETLIST_HIDDEN + "/indxflag" , "F");
- model.setValue(sSETLIST_HIDDEN + "/valiyn" , "Y");
- model.setValue(sSETLIST_HIDDEN + "/sortno" , 1000);
- model.setValue(sSETLIST_HIDDEN + "/comnseq" , 0);
- model.setValue(sSETLIST_HIDDEN + "/slipno" , 0);
- // 사용자 정보(관리자, 일반사용자)
- // 구분 정보(개인,과,전체)
- var admin = model.getValue("/root/send/cond/admin");
- var setflag = model.getValue("/root/send/cond/setflag");
- model.setValue(sSETLIST_HIDDEN + "/admin" , admin);
- model.setValue(sSETLIST_HIDDEN + "/setflag" , setflag);
-
- model.refresh();
- }
- /**
- * @desc : 서식 SET 에 파일 연결하기
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fAddindx(){
-
- var rtn = fSetTreeView();
- rtn = rtn.split("|");
- var obj = document.controls(rtn[0]);
- var path = rtn[1];
-
- // 선택폴더가 있는가?
- if (obj.selectedIndex == -1) {
- messageBox("폴더를 ", "C002");
- return;
- }
- // 선택한 아이템 로우~!!
- var item = obj.item(obj.selectedIndex);
- var rowpos = item.index + 1;
- // 루트인가? (이동할 수 없다..)
- var depth = model.getValue(sSETLIST + "[" + rowpos + "]/depth");
- if (depth == 1) {
- messageBox("지정된 위치로 이동", "E001");
- return;
- }
- // 폴더인가? 파일이면 파일을 추가하지 않는다.
- var linkflag = model.getValue(sSETLIST + "[" + rowpos + "]/linkflag");
- if (linkflag == "Y") {
- messageBox("폴더를 ", "C002");
- return;
- }
-
- // 선택한 서식이 있는가?
- var checkflag = "false";
- for(var i = grd_formlist.fixedRows; i < grd_formlist.rows; i++){
- var flag = model.getValue("/root/main/formlist/row["+ i +"]/check");
- if(flag == "true"){
- checkflag = "true";
- break;
- }
- }
- if(checkflag == "false"){
- messageBox("서식을 ", "C002");
- return;
- }
-
- var item = obj.item(obj.selectedIndex);
- var rowpos = item.index + 1;
- var indxfocus = item.value;
- model.setValue("/root/temp/indxfocus", indxfocus);
-
- for(var i = grd_formlist.fixedRows; i < grd_formlist.rows; i++){
- var flag = model.getValue("/root/main/formlist/row["+ i +"]/check");
- if(flag=="true" ){
-
- model.setValue("/root/main/formlist/row["+ i +"]/check","false");
- var formcd = model.getValue("/root/main/formlist/row["+ i +"]/formcd");
- model.setValue(sSETLIST_HIDDEN + "/linkcd" , formcd);
- var userid = model.getValue(sSETLIST + "[" + rowpos + "]/userid");
- var deptcd = model.getValue(sSETLIST + "[" + rowpos + "]/deptcd");
- model.setValue(sSETLIST_HIDDEN + "/userid" , userid);
- model.setValue(sSETLIST_HIDDEN + "/deptcd" , deptcd);
-
- // 서식명칭에 값을 넣지 않는다.. (2007.06.12)
- model.setValue(sSETLIST_HIDDEN + "/indxnm" , "");
- model.setValue(sSETLIST_HIDDEN + "/supitemindxseq" , indxfocus);
- model.setValue(sSETLIST_HIDDEN + "/depth" , "");
- model.setValue(sSETLIST_HIDDEN + "/itemindxseq" , "");
- model.setValue(sSETLIST_HIDDEN + "/path" , "");
- model.setValue(sSETLIST_HIDDEN + "/status" , "i");
- model.setValue(sSETLIST_HIDDEN + "/sortno" , 1000);
- // 기본 정보
- var instflag = model.getValue("/root/send/cond/setflag"); //개인과구분
- if(instflag =="U"){
- var instcd = model.getValue("/root/temp/instcd");
- if(instcd == ""){
- model.setValue(sSETLIST_HIDDEN + "/instcd" , getUserInfo("posinstcd"));
- }else {
- model.setValue(sSETLIST_HIDDEN + "/instcd" , instcd);
- }
- }else{
- model.setValue(sSETLIST_HIDDEN + "/instcd" , getUserInfo("posinstcd"));
- }
- model.setValue(sSETLIST_HIDDEN + "/indxflag" , "F");
- var admin = model.getValue("/root/send/cond/admin");
- model.setValue(sSETLIST_HIDDEN + "/admin" , admin);
-
- var setflag = model.getValue("/root/send/cond/setflag");
- model.setValue(sSETLIST_HIDDEN + "/setflag" , setflag);
-
- model.setValue(sSETLIST_HIDDEN + "/linkflag" , "Y");
- model.setValue(sSETLIST_HIDDEN + "/valiyn" , "Y");
- model.setValue(sSETLIST_HIDDEN + "/comnseq" , 0);
- model.setValue(sSETLIST_HIDDEN + "/slipno" , 0);
- model.copyNode("/root/send/savedata", sSETLIST_HIDDEN);
- submit("TXMRF03101");
- if (setflag == "U") {
- model.removeNodeset("/root/main/indxlist_u/item");
- model.copyNode("/root/main/indxlist_u", "/root/main/indxlist");
- } else if (setflag == "D") {
- model.removeNodeset("/root/main/indxlist_d/item");
- model.copyNode("/root/main/indxlist_d", "/root/main/indxlist");
- } else if (setflag == "A") {
- model.removeNodeset("/root/main/indxlist_a/item");
- model.copyNode("/root/main/indxlist_a", "/root/main/indxlist");
- }
- model.refresh();
-
- }
- }
- }
- /**
- * @desc : 폼코드 넘겨주기
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSendFormInfo()
- {
- var rtn = fSetTreeView();
- rtn = rtn.split("|");
- var obj = document.controls(rtn[0]);
- var path = rtn[1];
-
- var rowpos = obj.mouseRow + 1;
- var formcd = model.getValue(path + "[" + rowpos + "]/formcd");
- if (formcd != "") {
- parent.window.javascript.fOpenNewForm(formcd);
- // window.close();
- }
- }
- /**
- * @desc : 폼코드 넘겨주기
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSendFormListInfo()
- {
- var rowpos = trv_formlist.mouseRow + 1;
- var formcd = model.getValue("/root/main/formlist/item" + "[" + rowpos + "]/formcd");
- if (formcd != "") {
- // 부모창의 속성값에 정해준다..
- //parent.window.model.makeValue("/root/hidden/parameters/formcd",formcd);
- parent.window.javascript.fOpenNewForm(formcd);
- // 파라메타값으로 넘겨준다..
- //window.close();
- }
- }
- /**
- * @desc : formcd,formnm 넘겨주기
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSendFormcdFormnm()
- {
- var rtn = fSetTreeView();
- rtn = rtn.split("|");
- var obj = document.controls(rtn[0]);
- var path = rtn[1];
-
- var rowpos = obj.mouseRow + 1;
- var formcd = model.getValue(path + "[" + rowpos + "]/formcd");
-
- if(formcd !=""){ // 폴더 아닌경우만 formcd넘긴다
-
- var formnm = model.getValue(path + "[" + rowpos + "]/formnm");
- opener.javascript.setParameter("formcd", formcd);
- opener.javascript.setParameter("formnm", formnm);
- model.close();
- }
- }
- /**
- * @desc : formcd,formnm 넘겨주기
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSendFormListFormnm()
- {
- var rowpos = trv_formlist.mouseRow + 1;
- var formcd = model.getValue("/root/main/formlist/item" + "[" + rowpos + "]/formcd");
- if(formcd !=""){ // 폴더 아닌경우만 formcd넘긴다
- var formnm = model.getValue("/root/main/formlist/item" + "[" + rowpos + "]/displaynm");
- opener.javascript.setParameter("formcd", formcd);
- opener.javascript.setParameter("formnm", formnm);
- model.close();
- }
- }
- /**
- * @desc : 공통세션변수에 formlist저장하기
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fFormsetglobal()
- {
- model.toggle("case_list");
- return;
- var flag = getGlobalVariable("emr_gsv_formflag");
- //공통세션변수에 formlist 저장
- if(flag!="Y"){
- var reqnode = instance1.selectNodes("/root/main/formlist/item");
- var csv = getNodeListCSV(reqnode);
- setGlobalVariable("emr_gsv_formflag","Y");
- setGlobalVariable("emr_gsv_formflag_userid",getUserId());
- setGlobalVariable("emr_gsv_formlist",csv);
- }
- }
- /**
- * @desc : 공통세션변수에 indxlist저장하기
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fIndxsetglobal(flag)
- {
- return;
- var reqnode = instance1.selectNodes("/root/main/indxlist_"+ flag +"/item");
- var csv = getNodeListCSV(reqnode);
- setGlobalVariable("emr_gsv_formflag_"+flag, "Y");
- setGlobalVariable("emr_gsv_formlist_"+flag, csv);
- }
- /**
- * @desc : 트리 expand 상태 얻기
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fExpandCheck(trvObj)
- {
- //alert(trvObj);
- var Obj = window.document.controls(trvObj);
- //alert(Obj);
- // var Obj = trvObj;
- var expandstr = 0; //트리 expand 값 저장
- for(var i = 0; i < Obj.length ; i++){
- if(Obj.item(i).expanded == 1)
- {
- expandstr += "."+i;
- }
- }
- //공통세션변수에 저장
- // setGlobalVariable("emr_gsv_"+trvObj ,expandstr);
- //alert("a");
- }
- /**
- * @desc : 트리 expand 상태 설정하기
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSetTreeExpand(trvObj)
- {
-
- return;
- var Obj = window.document.controls(trvObj);
- var str = getGlobalVariable("emr_gsv_"+trvObj);
- if(str != ""){
- var strlen = str.split('.');
- var strArray = new Array(strlen.length);
- for(var i=0; i<strlen.length; i++){
- strArray[i] = strlen[i];
- Obj.expand(strArray[i],true);
- }
- }
- }
- /**
- * @desc : formlsit 재조회
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fFormlistRefresh()
- {
- //세션 초기화
- // setGlobalVariable("emr_gsv_formflag","");
- // setGlobalVariable("emr_gsv_formflag_userid","");
- // setGlobalVariable("emr_gsv_formlist","");
- // setGlobalVariable("emr_gsv_formflag_u","");
- // setGlobalVariable("emr_gsv_formflag_d","");
- // setGlobalVariable("emr_gsv_formflag_a","");
- // setGlobalVariable("emr_gsv_formlist_u","");
- // setGlobalVariable("emr_gsv_formlist_d","");
- // setGlobalVariable("emr_gsv_formlist_a","");
-
- refresh_u = 0;
- refresh_d = 0;
- refresh_a = 0;
- //선택된버튼 재조회
- if(true== btn_list.selected ){
- case_list.dispatch("DOMActivate");
- submit("TRMMR02501");
- return;
- }
- else if(true == btn_all.selected ){
- case_all.dispatch("DOMActivate");
- fSetIndxListSelect("A");
- return;
- }
- else if(true == btn_dept.selected ){
- case_dept.dispatch("DOMActivate");
- fSetIndxListSelect("D");
- return;
- }
- else if(true == btn_user.selected ){
- case_user.dispatch("DOMActivate");
- fSetIndxListSelect("U");
- return;
- }
- }
-
- /**
- * @desc : formlsit 재조회
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
-
- function fFormlistRefresh()
- {
- // 서식목록 보여주자~
- // setGlobal에 처음 select해온값 저장후 getGlobal 로 보여준다
- var list = getGlobalVariable("emr_gsv_formlist");
- if(list!=""){
- setCSVToNode("/root/main/formlist/",list,"item");
- model.refresh();
- }else{
- submit("TRMMR02501");
- }
- fFormsetglobal();
- // 첫번째 본인 과는 오픈하자!!
- trv_formlist.expand(0, true);
- fSetTreeExpand("trv_formlist");
- }
- */
- /**
- * @desc : 서식목록조회
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetFormlist()
- {
- submit("TRMMR02501");
- // 첫번째 본인 과는 오픈하자!!
- trv_formlist.expand(0, true);
- return;
- // 서식목록 보여주자~
- // setGlobal에 처음 select해온값 저장후 getGlobal 로 보여준다
- var list = getGlobalVariable("emr_gsv_formlist");
- if(list!=""){
- setCSVToNode("/root/main/formlist/",list,"item");
- model.refresh();
- }else{
- submit("TRMMR02501");
- }
- }
- /**
- * @desc : 전체 목록에서 level 1 인 경우만 조회해서 트리에 추가해 주기..
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fOpenSubTree()
- {
- var TREE_OBJ = trv_indxlist_a;
- var item = TREE_OBJ.item(TREE_OBJ.selectedIndex);
- if (item != null) {
- var rowpos = item.index + 1;
- var depth = model.getValue("/root/main/indxlist_a/item[" + rowpos + "]/depth");
- var userid = model.getValue("/root/main/indxlist_a/item[" + rowpos + "]/userid");
- if (depth == "2" && userid == "") {
- var deptcd = model.getValue("/root/main/indxlist_a/item[" + rowpos + "]/deptcd");
- var itemindxseq = model.getValue("/root/main/indxlist_a/item[" + rowpos + "]/itemindxseq");
-
- var tmpsetflag = model.getValue("/root/send/cond/setflag");
- model.makeValue("/root/send/cond/setflag", "S");
- model.makeValue("/root/send/cond/subdeptcd", deptcd);
- model.makeValue("/root/send/cond/itemindxseq", itemindxseq);
- submit("TRMRF03102", true, "/root/send/cond", "/root/main/indxlist_t/item");
-
- model.makeValue("/root/send/cond/setflag", tmpsetflag);
- model.refresh();
- fMoveInstance(rowpos);
- model.setValue("/root/main/indxlist_a/item[" + rowpos + "]/userid", "x");
- }
- }
- }
- /**
- * @desc : 전체 목록에서 level 1 인 경우만 조회해서 트리에 추가해 주기..
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fMoveInstance(rowpos)
- {
- ref = "/root/main/indxlist_a/item";
- stRef = "/root/main/indxlist_t/item";
- var subNode = "";
- var instance = document.models(0).instances(0);
- var refNode = instance.selectSingleNode(ref + "[" + rowpos + "]"); //조회내용의 상위 항목
- var nodelistTmp = instance.selectNodes(stRef);
- var nodelength = nodelistTmp.length;
-
- if(nodelength > 0)
- {
- var depth = "";
- var itemindxseq = "";
- var node = root.main.indxlist_a;
-
- for(var i = nodelength; i > 0; i--)
- {
- itemindxseq = model.getValue(stRef + "[" + i + "]/itemindxseq");
- depth = model.getValue(stRef + "[" + i + "]/depth");
-
- subNode = instance.selectSingleNode(stRef + "[" + i + "]");
- node.insertAfter(subNode, refNode); //조회항목을 상위항목의 자식으로 삽입
- }
-
- // 조회 레벨 오픈하자!!
- model.setValue("/root/main/selected_a", itemindxseq);
- model.refresh();
- }
- }
|