/* - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì ¼­½Ä¸®½ºÆ® ( 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