123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704 |
- /*
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- 서식SET관리 ( SMMRF03100_서식SET.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- */
- var sSETLIST = "/root/main/indxlist/item";
- var sSETLIST_HIDDEN = "/root/hidden/indxlist/item";
- var sMOUSE_CLK_STATUS; //마우스 클릭 좌우버튼 구분
- var sTREE_OBJ; //트리뷰 구분
- /**
- * @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();
- 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 == 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 (admin == "true" || setflag == "U") {
- 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 {
- // 파일인경우, 파일삭제만..
- 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();
- fShowWndIptBox();
- }
- /**
- * @desc : 폴더 삭제
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDelDiagSet(){
- 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);
- // 구분에 따라 [과, 사용자] 정보를 넘겨야 하는데...
- 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.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_d = 0; refresh_a = 0;
- } else if (setflag == "D") {
- model.removeNodeset("/root/main/indxlist_d/item");
- model.copyNode("/root/main/indxlist_d", "/root/main/indxlist");
- refresh_u = 0; 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(){
- fSetTreeView();
- if (sTREE_OBJ.selectedIndex == 0) {
- return;
- }
- var item = sTREE_OBJ.item(sTREE_OBJ.selectedIndex);
- 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");
- 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);
-
- // 기본 정보
- 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(){
-
- 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_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 = 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_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);
- 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()
- {
- fSetTreeView();
- var rowpos = sTREE_OBJ.mouseRow + 1;
- var formcd = model.getValue("/root/main/indxlist/item" + "[" + 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();
- }
- }
|