1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366 |
- /*
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- 이미지SET관리 ( SMMRF04400_이미지SET.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
-
- * 수정이력:
- 2008-11-26 fFormInit() 과코드 불러오는 함수 파라미터 변경.
- 2009-04-09 오후 1:23:54 강지훈 - TRMRF04402를 중앙의료원용 TRMRF04403으로 변경
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- */
- 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 sTREE_OBJ; //트리뷰 구분
- /**
- * @desc : 초기화
- * @
- * @param : 1:이미지관리
- * @return :
- * @---------------------------------------------------
- */
- function fFormInit(flag)
- {
- // 폴더명칭 popup
- grup_saveas.visible = "false";
- model.removeNodeset("/root/main/list/imglist");
- // 부서코드 리스트 불러오기...
- //mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/deptlist/orddept", "D"); // 전체 과를 불러온다.
- // 과 코드 불러오는 함수 파라미터 변경.
- //mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/deptlist/orddept", "O");
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/deptlist/orddept", "A");
-
- addComboInstance("/root/init/deptlist/orddept", "deptcd^depthngnm", "-^전체", "dept"); //진료과 전체항목 추가
-
- /*model.setValue("/root/cond/orddeptcd", "-");
- 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();
-
-
- model.setValue("/root/send/reqformlist/deptcd",getUserInfo("dutplcecd"));
-
- // 부서코드와 사용자 ID를 할당.
- model.makeValue("/root/send/cond/userid", getUserId());
- model.makeValue("/root/send/cond/deptcd", getUserInfo("dutplcecd"));
-
-
- // admin 인가? 보여줄것만 보여준다..
- // 관리자 : 개인, 과, 전체 등록/수정/삭제 가능
- // 사용자 : 개인만 가능
- var result = fUserAdmin();
- // var result = true;
- 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/jobkind", getUserInfo("jobkindcd"));
- }
- // 디폴트 트리뷰
- if (flag == 0 ) {
- // 이미지목록일때만 과코드 부여해준다..
- model.setValue("/root/send/reqdata/deptcd", getUserInfo("dutplcecd"));
- // Switch (개인,과,전체,이미지목록)
- sw_setflag.case_user.selected = "false";
- sw_setflag.case_dept.selected = "false";
- sw_setflag.case_all.selected = "false";
- sw_setflag.case_list.selected = "true";
- sw_setflag.refresh();
- // 공통세션변수에서 imgelist 유무 확인
- var formflag = getGlobalVariable("emr_gsv_imgeflag");
- var sUserId = getGlobalVariable("emr_gsv_imgeflag_userid");
- if(sUserId == getUserId() && formflag=="Y"){
-
- var formlist = getGlobalVariable("emr_gsv_imgelist");
- model.removeNodeset("/root/main/formlist/item");
- setCSVToNode("/root/main/formlist",formlist,"item");
- model.refresh();
-
- }else{
-
- submit("TRMMR02501");
- model.refresh();
- }
- // 첫번째 본인 과는 오픈하자!!
- trv_imgelist.expand(0, true);
- } else {
- // Switch (개인,과,전체,이미지목록)
- sw_setflag.case_user.selected = "true";
- sw_setflag.case_dept.selected = "false";
- sw_setflag.case_all.selected = "false";
- sw_setflag.refresh();
-
- model.setValue("/root/send/cond/setflag", "U");
- model.removeNodeset("/root/main/indxlist/item");
- // 개인목록 보여주자~
- submit("TRMRF04403");
-
- model.removeNodeset("/root/main/indxlist_u/item");
- model.copyNode("/root/main/indxlist_u", "/root/main/indxlist");
- model.refresh();
-
- refresh_u = 1;
- }
- }
- /**
- * @desc : 버튼 클릭 (개인/과/전체)
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSetIndxListSelect(setflag){
- model.setValue("/root/send/cond/setflag", setflag);
-
- grup_saveas.visible = "false";
- // 개인
- if (setflag == "U") {
- btn_user.selected = "true";
- if (refresh_u == 0) {
- // 공통세션변수에서 imgelist 유무 확인
- var formflag = getGlobalVariable("emr_gsv_imgeflag_u");
- if(formflag=="Y"){
- // imgelist있으면 submit 안함
- var formlist = getGlobalVariable("emr_gsv_imgelist_u");
- model.removeNodeset("/root/main/indxlist_u/item");
- model.removeNodeset("/root/main/indxlist/item");
- setCSVToNode("/root/main/indxlist",formlist,"item");
- model.copyNode("/root/main/indxlist_u", "/root/main/indxlist");
- model.refresh();
- }else {
- submit("TRMRF04403");
- model.removeNodeset("/root/main/indxlist_u/item");
- model.copyNode("/root/main/indxlist_u", "/root/main/indxlist");
- model.refresh();
- }
- } else {
- model.removeNodeset("/root/main/indxlist/item");
- model.copyNode("/root/main/indxlist", "/root/main/indxlist_u");
- model.refresh();
- }
- refresh_u = 1;
- // 과
- } else if (setflag == "D") {
- btn_dept.selected = "true";
- if (refresh_d == 0) {
- // 공통세션변수에서 imgelist 유무 확인
- var formflag = getGlobalVariable("emr_gsv_imgeflag_d");
- if(formflag=="Y"){
- // formlist있으면 submit 안함
- var formlist = getGlobalVariable("emr_gsv_imgelist_d");
- model.removeNodeset("/root/main/indxlist_d/item");
- model.removeNodeset("/root/main/indxlist/item");
- setCSVToNode("/root/main/indxlist",formlist,"item");
- model.copyNode("/root/main/indxlist_d", "/root/main/indxlist");
- model.refresh();
- }else {
- submit("TRMRF04403");
- model.removeNodeset("/root/main/indxlist_d/item");
- model.copyNode("/root/main/indxlist_d", "/root/main/indxlist");
- model.refresh();
- }
- } else {
- model.removeNodeset("/root/main/indxlist/item");
- model.copyNode("/root/main/indxlist", "/root/main/indxlist_d");
- model.refresh();
- }
- refresh_d = 1;
- // 공통
- } else if (setflag == "A") {
- btn_all.selected = "true";
- if (refresh_a == 0) {
- // 공통세션변수에서 imgelist 유무 확인
- var formflag = getGlobalVariable("emr_gsv_imgeflag_a");
- if(formflag=="Y"){
- // imgelist있으면 submit 안함
- var formlist = getGlobalVariable("emr_gsv_imgelist_a");
- model.removeNodeset("/root/main/indxlist_a/item");
- model.removeNodeset("/root/main/indxlist/item");
- setCSVToNode("/root/main/indxlist",formlist,"item");
- model.copyNode("/root/main/indxlist_a", "/root/main/indxlist");
- model.refresh();
- }else {
- submit("TRMRF04403");
- model.removeNodeset("/root/main/indxlist_a/item");
- model.copyNode("/root/main/indxlist_a", "/root/main/indxlist");
- model.refresh();
- }
- } else {
- model.removeNodeset("/root/main/indxlist/item");
- model.copyNode("/root/main/indxlist", "/root/main/indxlist_a");
- model.refresh();
- }
- refresh_a = 1;
- }
- }
- /**
- * @desc : 과 선택
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDeptCDSelect()
- {
- submit("TRMRF04403");
-
- model.removeNodeset("/root/main/indxlist_d/item");
- model.copyNode("/root/main/indxlist_d", "/root/main/indxlist");
-
- var deptcd = model.getValue("/root/send/cond/deptcd");
- model.makeValue("/root/send/savedata/deptcd", deptcd);
- 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("TRMRF04403")
-
- model.makeValue("/root/temp/instcd",instcd); //조회한 사용자 기관코드
- model.removeNodeset("/root/main/indxlist_u/item");
- model.copyNode("/root/main/indxlist_u", "/root/main/indxlist");
- model.refresh();
- }
- /*
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- */
- /**
- * @desc : 트리뷰 셋
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSetTreeView(){
- var setflag = model.getValue("/root/send/cond/setflag");
-
- if (setflag == "U") {
- sTREE_OBJ = trv_indxlist_u
- }
- if (setflag == "D") {
- sTREE_OBJ = trv_indxlist_d
- }
- if (setflag == "A") {
- sTREE_OBJ = trv_indxlist_a
- }
- }
- /**
- * @desc : 마우스 오른쪽 버튼 팝업창
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- * 1. 마우스 우클릭인가?
- * 2. 관리자인가? 사용자인가?
- * 3. 구분이 개인인가? 과인가? 전체인가?
- * 4. 폴더인가? 파일인가? 루트인가?
- */
- function fMouseRghtBtnPopup(){
- fSetTreeView();
-
- // 과정보 얻기
- // 과 정보 가져옴.
- var deptnm = sTREE_OBJ.label;
- var deptcd = "";
-
- var deptNodeList = findNodeset(model, "/root/init/deptlist/orddept/dept");
-
- for(var idx = 0; idx < deptNodeList.length; idx++)
- {
- var subDeptNode = deptNodeList.item(idx);
- destNode = subDeptNode.selectSingleNode("depthngnm");
-
- if(destNode != null && destNode.text == deptnm) {
- deptcd = subDeptNode.selectSingleNode("deptcd");
- break;
- }
- }
- model.makeValue("/root/send/deptcd", deptcd.text);
- //model.setValue("/root/send/cond/deptcd", deptcd.text);
-
- if(event.button == 3){
- if(sTREE_OBJ.isCell(event.target) && sTREE_OBJ.selectedIndex > -1) {
- var item = sTREE_OBJ.item(sTREE_OBJ.selectedIndex);
- var rowpos = item.index + 1;
- var depth = model.getValue(sSETLIST + "[" + rowpos + "]/depth");
- var item_length = sTREE_OBJ.length;
- // 루트인가? (보여주는 부분으로..)
- if (depth == 1 && item_length > 1) {
- window.setPopupMenu(false); return;
- }
-
- // 관리자인가? 구분이 개인인가?
- var admin = model.getValue("/root/send/cond/admin");
- var setflag = model.getValue("/root/send/cond/setflag");
- if (admin == "true" || setflag == "U") {
- if(setflag == "A"){ //전체는 입력안됨
- return;
- }
-
- if (depth == 2 || (depth == 1 && item_length == 1) ) {
- // 새폴더
- window.setPopupMenu(true, "/root/temp/menu2/menu", "label", "func", false); return;
- }
- else
- {
- var linkflag = model.getValue(sSETLIST + "[" + rowpos + "]/linkflag");
- if (linkflag == "N") {
- // 폴더인경우, 새폴더/폴더수정/폴더삭제..
- window.setPopupMenu(true, "/root/temp/menu/menu", "label", "func", false); return;
- } else {
- // 파일인경우, 파일삭제만..
- window.setPopupMenu(true, "/root/temp/menu1/menu", "label", "func", false); return;
- }
- }
- } else {
- window.setPopupMenu(false);
- }
- } else {
- window.setPopupMenu(false);
- }
- }else{
- window.setPopupMenu(false);
- }
-
- }
- /**
- * @desc : 새폴더 추가
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fAddDiagSet()
- {
- fSetTreeView();
- var item = sTREE_OBJ.item(sTREE_OBJ.selectedIndex);
- var rowPos = item.index + 1;
- fSetDiagInfo(rowPos, "i");
- model.setValue(sSETLIST_HIDDEN + "/status", "i");
- model.setValue("/root/main/iptbox/indxnm", "");
- model.refresh();
-
- var depth = model.getValue(sSETLIST_HIDDEN + "/depth");
- var itemindxseq = model.getValue(sSETLIST_HIDDEN + "/itemindxseq");
-
- var newSortno = 0;
- var FolderNodelist = model.instance1.selectNodes(sSETLIST + "[linkflag ='N' and supitemindxseq = '" + itemindxseq + "' and depth = '" + (parseInt(depth) + 1) + "']");
-
- for(var idx = 0; idx < FolderNodelist.length; idx++)
- {
- var FolderNode = FolderNodelist.item(idx);
-
- if(newSortno < parseInt(FolderNode.selectSingleNode("sortno").text))
- newSortno = parseInt(FolderNode.selectSingleNode("sortno").text);
- }
-
- if(depth == "2")
- {
- model.setValue(sSETLIST_HIDDEN + "/sortno", (parseInt(newSortno) + 1));
- }
- else
- {
- model.setValue(sSETLIST_HIDDEN + "/sortno", newSortno);
- }
-
- fShowWndIptBox();
- }
- /**
- * @desc : 폴더 삭제
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDelDiagSet()
- {
- // 확인 버튼
- var ret = messageBox("정말","Q001");
-
- if(ret != "6")
- {
- return;
- }
-
- fSetTreeView();
- var item = sTREE_OBJ.item(sTREE_OBJ.selectedIndex);
-
- var rowPos = item.index + 1;
-
- if(fSetDiagInfo(rowPos, "d")!= -1){
- fSaveDiagSet("Y");
- }
- }
- /**
- * @desc : 폴더 수정
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fUpdtDiagSet(){
- fSetTreeView();
- var item = sTREE_OBJ.item(sTREE_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);
-
- // 구분에 따라 [과, 사용자] 정보를 넘겨야 하는데...
-
-
- // 부서코드와 사용자 ID를 할당.
- model.makeValue("/root/send/cond/userid", getUserId());
- //model.makeValue("/root/send/cond/deptcd", getUserInfo("dutplcecd"));
- //model.makeValue("/root/send/cond/deptcd", model.getValue("/root/send/deptcd") ); // 사용자 부서가 아니라 선택한 부서코드
- model.makeValue("/root/send/cond/deptcd", model.getValue("/root/send/cond/deptcd")); // 사용자 부서가 아니라 선택한 부서코드
-
- 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);
- var instcd = model.getValue("/root/temp/instcd");
-
- if(instcd == ""){
- model.setValue(sSETLIST_HIDDEN + "/instcd" , getUserInfo("dutplceinstcd"));
- }else {
- model.setValue(sSETLIST_HIDDEN + "/instcd" , instcd);
- }
- } else if (setflag == "D")
- {
- model.setValue(sSETLIST_HIDDEN + "/userid" , "");
- model.setValue(sSETLIST_HIDDEN + "/deptcd" , deptcd);
- model.setValue(sSETLIST_HIDDEN + "/instcd" , getUserInfo("dutplceinstcd"));
- }
-
- model.copyNode("/root/send/savedata", sSETLIST_HIDDEN);
-
- submit("TXMRF03101");
- // 개인 일때 userid,deptcd 저장
- // admin일때 개인저장시 팝업에서 받은 userid,deptcd로 저장
- // admin일때 과저장시 instcd : '001'
- 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;
- trv_indxlist_u.rebuild();
- } 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;
- trv_indxlist_d.rebuild();
- } 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";
- model.setFocus("ipt_saveas_indxnm1");
- }
- /**
- * @desc : 이미지 SET 조회
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fReqDetlSet()
- {
-
- fSetTreeView();
-
- if (sTREE_OBJ.selectedIndex == 0) {
- return;
- }
-
- // 과 정보 가져옴.
- var deptnm = sTREE_OBJ.label;
- var deptcdNode = "";
-
- var item = sTREE_OBJ.item(sTREE_OBJ.selectedIndex);
-
- var deptNodeList = findNodeset(model, "/root/init/deptlist/orddept/dept");
-
- for(var idx = 0; idx < deptNodeList.length; idx++)
- {
- var subDeptNode = deptNodeList.item(idx);
- destNode = subDeptNode.selectSingleNode("depthngnm");
-
- if(destNode != null && destNode.text == deptnm)
- {
- deptcdNode = subDeptNode.selectSingleNode("deptcd");
- model.setValue("/root/send/cond/deptcd", deptcdNode.text);
- break;
- }
- }
-
- //var item = sTREE_OBJ.item(sTREE_OBJ.selectedIndex);
- //alert(item);
- var rowpos = item.index + 1;
-
- fSetDiagInfo(rowpos);
-
- var depth = model.getValue(sSETLIST_HIDDEN + "/depth");
-
- if(depth == 1){
- return;
- }
-
- }
- /**
- * @desc : 이미지 SET 조회
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fReqDetlSet_Old()
- {
- fSetTreeView();
-
- if (sTREE_OBJ.selectedIndex == 0) {
- return;
- }
-
- var item = sTREE_OBJ.item(sTREE_OBJ.selectedIndex);
- //alert(item);
- var rowpos = item.index + 1;
-
- fSetDiagInfo(rowpos);
-
- var depth = model.getValue(sSETLIST_HIDDEN + "/depth");
-
- if(depth == 1){
- return;
- }
- }
- /**
- * @desc : Mouse Drag Drop
- * @
- * @param :
- * @return : void
- * @authur :
- * @---------------------------------------------------
- */
- function fOndrop(){
- fSetTreeView();
- var rowpos = sTREE_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(){
- fSetTreeView();
- var rowpos = sTREE_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 < sTREE_OBJ.length; i++ ) {
- sTREE_OBJ.item(i).attribute("background-color") = "#ffffff";
- sTREE_OBJ.item(i).attribute("text-decoration") = "";
- }
- sTREE_OBJ.item(sTREE_OBJ.mouseRow).attribute("background-color") = "#ece1ec";
- sTREE_OBJ.item(sTREE_OBJ.mouseRow).attribute("text-decoration") = "";
- }
- }
- /**
- * @desc : TreeView에 Drag상태로 Mouse over된 경우 item의 background color를 clear함
- * @
- * @param :
- * @return : void
- * @authur :
- * @---------------------------------------------------
- */
- function fOnDragMouseOver(){
- fSetTreeView();
- var treeObj = document.controls.item(event.currentTarget);
- var rowpos = sTREE_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( sTREE_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(){
- fSetTreeView();
- if (sTREE_OBJ.selectedIndex == 0) {
- return;
- }
- var item = sTREE_OBJ.item(sTREE_OBJ.selectedIndex);
- 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(){
- fSetTreeView();
- 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 = sTREE_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");
- sTREE_OBJ.item(sTREE_OBJ.mouseRow).attribute("background-color") = "#ffffff";
- sTREE_OBJ.item(sTREE_OBJ.mouseRow).attribute("text-decoration") = "";
- return;
- }
- if(itemindxseq == cmpitemindxseq){
- // messageBox("동일한 위치로 이동", "E001");
- sTREE_OBJ.item(sTREE_OBJ.mouseRow).attribute("background-color") = "#ffffff";
- sTREE_OBJ.item(sTREE_OBJ.mouseRow).attribute("text-decoration") = "";
- return;
- }else if(itemindxseq == cmpsupitemindxseq){
- // 같은 과, 같은 사용자가 아니면 이동이 안됨. (why? with문 update가 안되니까..)
- // if (deptcd != cmpdeptcd || userid != cmpuserid) {
- // messageBox("지정된 위치로 이동", "E001");
- // sTREE_OBJ.item(sTREE_OBJ.mouseRow).attribute("background-color") = "#ffffff";
- // sTREE_OBJ.item(sTREE_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");
- sTREE_OBJ.item(sTREE_OBJ.mouseRow).attribute("background-color") = "#ffffff";
- sTREE_OBJ.item(sTREE_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");
- sTREE_OBJ.item(sTREE_OBJ.mouseRow).attribute("background-color") = "#ffffff";
- sTREE_OBJ.item(sTREE_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(){
- fSetTreeView();
- var sFolderNM = model.getValue("/root/main/cond/foldernm");
- if (sTREE_OBJ.selectedIndex+1 == sTREE_OBJ.length) {
- sTREE_OBJ.selectedIndex = 0;
- }
- for(var i=sTREE_OBJ.selectedIndex+1; i<sTREE_OBJ.length;i++){
- sTREE_OBJ.select(i);
- if(sFolderNM == sTREE_OBJ.label){
- break;
- }
- }
- fReqDetlSet();
- }
- /**
- * @desc : TreeView 선택된 item의 background color를 clear함
- * @
- * @param :
- * @return : void
- * @authur :
- * @---------------------------------------------------
- */
- function fClrTreeViweSelect(){
- fSetTreeView();
- for(var i = 0; i < sTREE_OBJ.length; i++){
- sTREE_OBJ.item(i).attribute("background-color") = "#ffffff";
- sTREE_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 == 0){
- //messageBox("선택한 폴더는 수정", "E001");
- return -1;
- }else if(status == "d" && depth == 0){
- //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");
- var sortno = model.getValue(sSETLIST + "[" + rowpos + "]/sortno");
- if(status == "d")
- {
- if(parseInt(depth) >= 3) // depth가 4이상 인것부터 확인(삭제대상은 폴더나 파일)
- {
- if(linkflag == "N")
- depth = 3; // 폴더
- else
- depth = 4; // 파일
- }
- }
-
- 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("dutplceinstcd"));
- }else {
- model.setValue(sSETLIST_HIDDEN + "/instcd" , instcd);
- }
- }else{
- model.setValue(sSETLIST_HIDDEN + "/instcd" , getUserInfo("dutplceinstcd"));
- }
-
- model.setValue(sSETLIST_HIDDEN + "/indxflag" , "P");
- model.setValue(sSETLIST_HIDDEN + "/valiyn" , "Y");
- model.setValue(sSETLIST_HIDDEN + "/sortno" , sortno);
- 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()
- {
- fSetTreeView();
- // 선택폴더가 있는가?
- if (sTREE_OBJ.selectedIndex == -1) {
- messageBox("폴더를 ", "C002");
- return;
- }
- // 선택한 아이템 로우~!!
- var item = sTREE_OBJ.item(sTREE_OBJ.selectedIndex);
- var rowpos = item.index + 1;
- // 루트인가? (이동할 수 없다..)
- var depth = model.getValue(sSETLIST + "[" + rowpos + "]/depth");
- if (depth == 0) {
- messageBox("지정된 위치로 이동", "E001");
- return;
- }
- // 폴더인가? 파일이면 파일을 추가하지 않는다.
- var linkflag = model.getValue(sSETLIST + "[" + rowpos + "]/linkflag");
- if (linkflag == "Y") {
- messageBox("폴더를 ", "C002");
- return;
- }
-
- // 선택한 이미지 가있는가?
- var checkflag = "false";
- for(var i = grd_imglist.fixedRows; i < grd_imglist.rows; i++)
- {
- var flag = model.getValue("/root/main/list/imglist["+ i +"]/check");
- if(flag == "true"){
- checkflag = "true";
- break;
- }
- }
- if(checkflag == "false"){
- messageBox("이미지를 ", "C002");
- return;
- }
- var sortno = model.getValue(sSETLIST + "[" + rowpos + "]/sortno");
-
- //var item = sTREE_OBJ.item(sTREE_OBJ.selectedIndex);
- //var rowpos = item.index + 1;
- var indxfocus = item.value;
- model.setValue("/root/temp/indxfocus", indxfocus);
-
- for(var i = grd_imglist.fixedRows; i < grd_imglist.rows; i++)
- {
- var flag = model.getValue("/root/main/list/imglist["+ i +"]/check");
-
- if(flag=="true" )
- {
- model.setValue("/root/main/list/imglist["+ i +"]/check","false");
-
- var imgecd = model.getValue("/root/main/list/imglist["+ i +"]/imgecd");
-
- model.setValue(sSETLIST_HIDDEN + "/linkcd" , imgecd.substr(0,7));
-
- var userid = model.getValue("/root/send/cond/userid");
- var deptcd = model.getValue("/root/send/cond/deptcd");
- 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" , sortno);
-
- // 기본 정보
- 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("dutplceinstcd"));
- }
- //else
- //{
- //model.setValue(sSETLIST_HIDDEN + "/instcd" , instcd);
- //}
-
- model.setValue(sSETLIST_HIDDEN + "/userid" , userid);
- }
- else
- {
- model.setValue(sSETLIST_HIDDEN + "/userid" , "");
- model.setValue(sSETLIST_HIDDEN + "/instcd" , getUserInfo("dutplceinstcd"));
- }
-
- model.setValue(sSETLIST_HIDDEN + "/indxflag" , "P");
- 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);
-
- /*
- var tmpuserid = model.getValue("/root/send/savedata/userid");
- if(tmpuserid == "")
- model.setValue("/root/send/savedata/userid", getUserId());
- */
-
- model.makeValue("/root/send/savedata/retflag","ret"); //저장후 조회여부
-
- submit("TXMRF03101");
- }
- }
- submit("TRMRF04403");
-
- 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 : 공통세션변수에 formlist저장하기
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fFormsetglobal()
- {
- model.toggle("case_list");
- var flag = getGlobalVariable("emr_gsv_imgeflag");
- //공통세션변수에 formlist 저장
- if(flag!="Y"){
- var reqnode = instance1.selectNodes("/root/main/formlist/item");
- var csv = getNodeListCSV(reqnode);
- setGlobalVariable("emr_gsv_imgeflag","Y");
- setGlobalVariable("emr_gsv_imgeflag_userid",getUserId());
- setGlobalVariable("emr_gsv_imgelist",csv);
- }
- }
- /**
- * @desc : 공통세션변수에 indxlist저장하기
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fIndxsetglobal(flag)
- {
- var reqnode = instance1.selectNodes("/root/main/indxlist_"+ flag +"/item");
- var csv = getNodeListCSV(reqnode);
- setGlobalVariable("emr_gsv_imgeflag_"+flag, "Y");
- setGlobalVariable("emr_gsv_imgelist_"+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)
- {
-
- 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 : 이미지트리 재조회
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fFormlistRefresh()
- {
- //세션 초기화
- setGlobalVariable("emr_gsv_imgeflag","");
- setGlobalVariable("emr_gsv_imgeflag_userid","");
- setGlobalVariable("emr_gsv_imgelist","");
- setGlobalVariable("emr_gsv_imgeflag_u","");
- setGlobalVariable("emr_gsv_imgeflag_d","");
- setGlobalVariable("emr_gsv_imgeflag_a","");
- setGlobalVariable("emr_gsv_imgelist_u","");
- setGlobalVariable("emr_gsv_imgelist_d","");
- setGlobalVariable("emr_gsv_imgelist_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 : 그리드 선택시 check 선택
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSetCheck()
- {
- var check = model.getValue("/root/main/list/imglist["+grd_imglist.row+"]/check");
- var gridObj = event.ptarget.parent;
-
- if( gridObj.col == "1")
- {
- if(check == "false")
- {
- model.setValue("/root/main/list/imglist["+grd_imglist.row+"]/check","false");
- }
- else
- {
- model.setValue("/root/main/list/imglist["+grd_imglist.row+"]/check","true");
- }
- }
- else
- {
- if(check == "true")
- {
- model.setValue("/root/main/list/imglist["+grd_imglist.row+"]/check","false");
- }
- else
- {
- model.setValue("/root/main/list/imglist["+grd_imglist.row+"]/check","true");
- }
- }
-
- /*
- var check = model.getValue("/root/main/list/imglist["+grd_imglist.row+"]/check");
-
- if(check == "true"){
-
- model.setValue("/root/main/list/imglist["+grd_imglist.row+"]/check","false");
- }else {
-
- model.setValue("/root/main/list/imglist["+grd_imglist.row+"]/check","true");
- }
- */
- }
- /**
- * @desc : 마우스 우클릭
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fMouseBtn(trvObj)
- {
- var selected = trvObj.value;
-
- if(selected == ""){
- return;
- }
- if(trvObj.isCell(event.target) && trvObj.mouseRow <= trvObj.length)
- {
- fMouseRghtBtnPopup();
- } else {
- initPopupMenu();
- }
- }
- function fSelectImgView()
- {
- var item = sTREE_OBJ.item(sTREE_OBJ.selectedIndex);
-
- var rowPos = item.index + 1;
- var imgecd = model.getValue(sSETLIST + "[" + rowPos + "]/imgecd");
- var indxnm = model.getValue(sSETLIST + "[" + rowPos + "]/indxnm");
-
- setParameter("SPMRF05400_srchimg" , imgecd);
- setParameter("SPMRF05400_srchimgnm" , indxnm);
- modal("SPMRF05400",1 ,50, 50);
- }
- function fGridImgView()
- {
- var imgecd = model.getValue("/root/main/list/imglist["+grd_imglist.row+"]/imgecd");
- var imgenm = model.getValue("/root/main/list/imglist["+grd_imglist.row+"]/imgenm");
-
- setParameter("SPMRF05400_srchimg" , imgecd);
- setParameter("SPMRF05400_srchimgnm" , imgenm);
- modal("SPMRF05400",1 ,50, 50);
- }
|