12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list_user>
- <userlist/>
- </list_user>
- <list_grup>
- <acntgruplist>
- <acntgrupnm>신규계정그룹등록</acntgrupnm>
- <acntgrupcd/>
- </acntgruplist>
- </list_grup>
- <list_grup>
- <acntgruplist>
- <acntgrupnm/>
- <acntgrupcd/>
- </acntgruplist>
- </list_grup>
- <list_item>
- <acntitemlist/>
- </list_item>
- <list_menu>
- <menulist/>
- </list_menu>
- <list_menuauth>
- <menuauthlist>
- <menuauthnm>신규권한그룹등록</menuauthnm>
- <menuauthcd>-</menuauthcd>
- </menuauthlist>
- </list_menuauth>
- <list_menuauth>
- <menuauthlist/>
- </list_menuauth>
- <list_authuser>
- <menuauthuserlist/>
- <menudenyuserlist/>
- <menugrupauthlist>
- <menugrupnm/>
- <menugrupcd/>
- </menugrupauthlist>
- </list_authuser>
- <list_authmenu>
- <menugrupauthlist/>
- <menuauthlist/>
- </list_authmenu>
- <list_authgrup>
- <menuauthgruplist>
- <menuauthnm/>
- <menuauthcd/>
- </menuauthgruplist>
- </list_authgrup>
- <list_temp>
- <menuuserlist>
- <rgstnm/>
- <rgstcd/>
- <deptcd/>
- <deptnm/>
- </menuuserlist>
- </list_temp>
- </main>
- <send>
- <menuauthgruplist/>
- <menugrupcd/>
- <scrnnm/>
- <scrnurl/>
- <flag/>
- <optacntgrupcd/>
- <optmenuauthcd/>
- <menugrupauthcd/>
- <searchitem/>
- <acntgrupnm/>
- <acntgrupcd/>
- <menuauthnm/>
- <menuauthcd/>
- <acntgruplist/>
- <acntitemlist/>
- <menuauthlist/>
- <menuauthuserlist/>
- <new_menuauthnm/>
- </send>
- <init>
- <new_menuauthnm/>
- <optmenuauthcd/>
- <menugrupcd/>
- <scrnnm/>
- <searchitem/>
- <acntgrupnm/>
- <acntgrupcd/>
- <flag_multiselect/>
- <menuitemnm/>
- <flag>
- <lable>사용자명</lable>
- <value>usernm</value>
- </flag>
- <flag>
- <lable>사용자 ID</lable>
- <value>userid</value>
- </flag>
- <flag>
- <lable>부서명</lable>
- <value>deptnm</value>
- </flag>
- <flag>
- <lable>부서코드</lable>
- <value>deptid</value>
- </flag>
- <flag>
- <lable>메뉴 그룹명</lable>
- <value>grepnm</value>
- </flag>
- <flag>
- <lable>메뉴 그룹 ID</lable>
- <value>grepid</value>
- </flag>
- <menulist>
- <menugruplist>
- <menugrupnm/>
- <menugrupcd/>
- </menugruplist>
- </menulist>
- <list_menu>
- <menugruplist/>
- </list_menu>
- <acntgruplist>
- <acntgrupnm>신규계정그룹</acntgrupnm>
- <acntgrupcd/>
- </acntgruplist>
- <menugrupcd/>
- <menugrupauthcd/>
- <multiselect>
- <label>하위다중선택여부</label>
- <value>false</value>
- </multiselect>
- <comcd>
- <R0061>
- <cdid/>
- <cdnm/>
- </R0061>
- <R0063>
- <cdid/>
- <cdnm/>
- </R0063>
- <Z0007>
- <cdid/>
- <cdnm/>
- </Z0007>
- <Z0016>
- <cdid/>
- <cdnm/>
- </Z0016>
- <R0059>
- <cdid/>
- <cdnm/>
- </R0059>
- <R0058>
- <cdid/>
- <cdnm/>
- </R0058>
- <R0062>
- <cdid/>
- <cdnm/>
- </R0062>
- </comcd>
- </init>
- <usermenu>
- <label>사용자추가</label>
- <func>adduser</func>
- </usermenu>
- <usermenu>
- <label>메뉴등록</label>
- <func>regmenu</func>
- </usermenu>
- <hidden>
- </hidden>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- /*
- grd_menuauthlist.fixedcellcheckbox(0,5) = true;
- grd_menuauthlist.fixedcellcheckbox(0,6) = true;
- grd_menuauthlist.fixedcellcheckbox(0,7) = true;
- grd_menuauthlist.fixedcellcheckbox(0,8) = true;
- */
- fInitialize();
- //combo1.select(0);
- zbcfGetCodeList( new Array("R0061", "R0063", "Z0007", "Z0016", "R0058", "R0059", "R0062"),
- new Array("/root/init/comcd", "/root/init/comcd", "/root/init/comcd", "/root/init/comcd", "/root/init/comcd", "/root/init/comcd"));
-
- ]]>
- </script>
- <submission id="TRZBC00101" method="post" replace="instance"/>
- <submission id="TRZSA20200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list_grup"/>
- <submission id="TRZSA20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list_item"/>
- <submission id="TXZSA20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRZSA20401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list_authuser"/>
- <submission id="TRZSA20402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/menulist"/>
- <submission id="TRZSA20407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list_user"/>
- <submission id="TRZSA20701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/list_menu"/>
- <submission id="TRZSA20403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list_menu"/>
- <submission id="TRZSA20406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list_authmenu"/>
- <submission id="TRZSA20702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list_menuauth"/>
- <submission id="TXZSA20401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TXZSA20402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TXZSA20400" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRZSA20400" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list_authgrup"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
- <script type="javascript">
- <![CDATA[
- /*
- 초기화 작업을 합니다.
- */
- function fInitialize(){
- //cmb_menugrup.visible = "false";
- //caption8.visible = "true";
- model.removeNodeset("/root/main/list_user/userlist");
- model.removeNodeset("/root/main/list_item/acntitemlist");
- model.removeNodeset("/root/main/list_menu/menulist");
- model.removeNodeset("/root/main/list_authmenu/menuauthlist");
- model.removeNodeset("/root/main/list_authuser/menuauthuserlist");
- model.removeNodeset("/root/main/list_authuser/menudenyuserlist");
- // model.removeNodeset("/root/main/list_authuser/menuauthuserlist");
- // model.removeNodeset("/root/main/list_denyuser/menudenyuserlist");
- // model.removeNodeset("/root/main/list_menu/menulist");
- // model.removeNodeset("/root/main/list_menuauth/menuauthlist");
- //combo1.select(0);
-
- cmb_user_search_mode.select(0);
- cmb_acntgrup.select(0);
- cmb_menuauthgrup.select(0);
- btn_refresh_acntgrup.dispatch("DOMActivate");
- model.refresh();
- }
- /*
- 버튼 컨트롤들을 클릭했을때 공통으로 타는 함수입니다.
- control : "search" 는 조회 버튼 클릭
- "init"은 신규 버튼 클릭
- "save"는 저장 버튼 클릭
- grid : 그리드 컨트롤을 넘겨줍니다.
- param : 기타 param을 넘겨줍니다.
- */
- function fClicked(control, grid, param){
- if ("search" == control){
- fSearchClick(grid, param);
- model.resetInstanceNode("/root/send");
- } else if ("init" == control){
- model.reset();
- } else if ("save" == control){
- fSaveClick(grid, param);
- } else if ("delete" == control){
- fDeleteClick(grid, param);
- }else {
- messageBox("처리를 수행","E002");
- }
- model.refresh();
- }
- /*
- 조회버튼 클릭 타는 함수입니다.
- grid.explorerbar = "sortshow" sort설정합니다.
- ipt_usercdnm_flag는 검색조건의 사용자코드 or 사용자명입니다.
- radio1은 사용자코드 or 사용자명 선택 라디오 버튼입니다.
- submit을 날립니다.
- .
- */
- function fSearchClick(grid,param){
- // window.setPopupMenu(true, "/root/menu/menu", "Label", "func", true);
- // window.showPopupMenu(true);
- var RemNSet = "";
- if(param == "menuauthgrup"){
- RemNSet = "/root/main/list_authgrup/menuauthgruplist";
- } else if(param == "menu"){
- RemNSet = "/root/main/list_menu/menulist";
- } else if(param == "menulist"){
- RemNSet = "/root/main/list_menu/menulist";
- } else if(param == "menugrupauthlist"){
- RemNSet = "/root/main/list_authmenu/menugrupauthlist";
- } else if(param == "menuauthlist"){
- RemNSet = "/root/main/list_authmenu/menuauthlist";
- }
- grid.explorerbar = "sortshow";
- model.removeNodeset(RemNSet);
- grid.rebuild();
- // alert("조회를 눌렀습니다.");
- model.resetInstanceNode("/root/send");
- //model.setValue("/root/send/searchitem", ipt_scrnnm.currentText);
- //model.setValue("/root/send/flag", combo1.value);
- if(param == "menuauthgrup"){
- submit("TRZSA20400");
- } else if(param == "menu"){
- submit("TRZSA20402");
- } else if(param == "menulist"){
- model.setValue("/root/send/menugrupcd", cmb_menugrup.value);
- model.setValue("/root/send/scrnurl", model.getValue("/root/init/scrnnm"));
- submit("TRZSA20403");
-
- } else if(param == "menugrupauthlist"){
- model.setValue("/root/send/menugrupauthcd", cmb_menugrupauthlist.value);
- model.setValue("/root/send/optmenuauthcd", opt_menuauthcd.value);
- submit("TRZSA20406");
- } else if(param == "menuauthlist"){
- model.setValue("/root/send/menugrupauthcd", cmb_menugrupauthlist.value);
- model.setValue("/root/send/optmenuauthcd", cmb_menuauthgrup.value);
- submit("TRZSA20406");
- } else {
- alert("Submit 실패입니다! 조회조건을 확인하세요!");
- }
- }
- /*
- 저장 버튼 클릭시 사는 함수입니다.
- 사용자코드, 사용자명, 비밀번호, 적용시작일자, 적용종료일자는 필수 항목 입니다.
- 필수항목 모두 입력시 /root/main/item 노드를 send 노드로 복사합니다.
- submit을 날립니다.
- */
- function fSaveClick(grid, param){
- if("menuauthgrup" == param){
- // alert("메뉴권한을 저장합니다.");
- model.setValue("/root/send/menuauthgruplist", grid.getUpdateData());
- if ( submit("TXZSA20400") ) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- }
- } else if("menuitem" == param){
- // alert("메뉴항목을 저장합니다.");
- // alert(opt_menugrupcd.value);
- model.setValue("/root/send", opt_menugrupcd.value);
- model.setValue("/root/send/menuitemlist", grid.getUpdateData());
- if ( submit("TXZSA20401") ) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- }
- } else if("acntitem" == param){
-
- model.setValue("/root/send/acntgrupnm", model.getValue("/root/init/acntgrupnm"));
- model.setValue("/root/send/acntitemlist", grid.getUpdateData());
- if ( submit("TXZSA20201") ) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- //alert(cmb_acntgrup.focusIndex);
- if(cmb_acntgrup.focusIndex == 0)
- {
- //alert("새로고침");
- btn_refresh_acntgrup.dispatch("DOMActivate");
-
-
- //cmb_acntgrup.label = ipt_acntgrupnm.value;
- //cmb_acntgrup.value = ;
- }
-
-
-
-
- }
- }
- // model.copyNode("/root/send/item", "/root/hide/item");
- // submit("TXZSU10101");
- }
-
- // 권한그룹 선택시 호출되는 함수
- function fselectmenuauth()
- {
- if(cmb_menuauthgrup.focusIndex == 0) return;
-
- var iOptmenuauthcd = model.getValue("/root/init/optmenuauthcd");
- model.setValue("/root/send/optmenuauthcd", iOptmenuauthcd );
- if(submit("TRZSA20401"))
- {
- model.setValue("/root/init/menugrupauthcd", model.getValue("/root/main/list_authuser/menugrupauthlist[1]/menugrupcd"));
- cmb_menugrupauthlist.dispatch("xforms-select");
- }
- }
- // 화면 상단오른쪽에 저장버튼을 클릭시 호출되는 함수
- function fSaveTotal(){
- // 만약 신규메뉴권한 그룹 등록이라면 메뉴권한그룹을 미리 생성
- if (cmb_menuauthgrup.focusIndex == 0 )
- {
- var new_menuauthnm = model.getValue("/root/init/new_menuauthnm");
- if(new_menuauthnm.getTrim() == ""){
- messageBox(" 신규메뉴권한그룹명을 입력하십시요! 등록", "E001");
- return;
- }
-
- model.setValue("/root/send/new_menuauthnm", new_menuauthnm);
- }
- var temp_menuauthcd = cmb_menuauthgrup.value;
- var temp_menuauthnm = cmb_menuauthgrup.label
- // 메뉴제한자조건에 비어있는 조건이 있는지 확인
-
- // 메뉴권한설정 추가
- for(var i = 1; i < grd_menuauthlist.rows; i++){
- var iTypeR = fGetValue("/root/main/list_authmenu/menuauthlist", i, "r");
- var iTypeX = fGetValue("/root/main/list_authmenu/menuauthlist", i, "x");
- var iTypeP = fGetValue("/root/main/list_authmenu/menuauthlist", i, "p");
- var iScrnAuth = iTypeR + iTypeX + iTypeP;
- fSetRowValue("/root/main/list_authmenu/menuauthlist", "scrnauth", iScrnAuth+"00000", i);
- }
-
- model.setValue("/root/send/optmenuauthcd", cmb_menuauthgrup.value);
- model.setValue("/root/send/menuauthlist", grd_menuauthlist.getUpdateData());
- model.setValue("/root/send/menuauthuserlist",grd_menuauthuserlist.getUpdateData()); // 메뉴권한 허용자
-
- if ( submit("TXZSA20401") ) {
- grd_menuauthlist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- grd_menuauthuserlist.clearStatus();
- //btn_search_menuauth.dispatch("DOMActivate");
- fselectmenuauth();
- cmb_acntgrup.dispatch("xforms-value-changed");
-
- // model.setValue("/root/send/optmenuauthcd", opt_menuauthcd.value );
- // submit("TRZSA20401");
- }
- }
- function fDeleteClick(grid, param){
- if(param == "menuauthgrup"){
- grid.addStatus(grid.row,"delete");
- model.setValue("/root/send/menuauthgruplist", grid.getUpdateData());
- if ( submit("TXZSA20400") ) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- var jRow = grid.row;
- grid.deleteItem(jRow);
- }
- } else if(param == "menuitem"){
- grid.addStatus(grid.row,"delete");
- model.setValue("/root/send/menuitemlist", grid.getUpdateData());
- if ( submit("TXZSA20401") ) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- var jRow = grid.row;
- grid.deleteItem(jRow);
- }
- } else if(param == "acntgrup"){
- grid.addStatus(grid.row,"delete");
- model.setValue("/root/send/acntgruplist", grid.getUpdateData());
- if ( submit("TXZSA20200") ) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- var jRow = grid.row;
- grid.deleteItem(jRow);
- }
- } else if(param == "acntitem"){
- grid.addStatus(grid.row,"delete");
- model.setValue("/root/send/acntitemlist", grid.getUpdateData());
- if ( submit("TXZSA20201") ) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- var jRow = grid.row;
- grid.deleteItem(jRow);
- }
- }
- }
- function fResetNode(node, destinationelement){
- // model.setValue(node + "/" + destinationelement, "");
- // alert(model.elementName("/root/main/item"));
- }
- /*
- model.getValue(); 를 함수로 만들었습니다.
- param1 : node는 grid의 xPath입니다.
- param2 : row는 grid에서 선택한 row값입니다.
- param3 : element는 getvalue할 해당 element 명입니다.
- 해당 getvalue값을 return 해줍니다.
- return 하지 않으면 해당값을 가져올 수 없습니다.
- */
- function fGetValue(node, row, element) {
- var rtnValue = model.getValue(node + "[" + row + "]/" + element);
- return rtnValue;
- }
- /*
- model.setValue();를 함수로 만들었습니다.
- param1 : node는 setvalue할 컨트롤의 xPath입니다.
- param2 : destinationelement는 setvalue할 element명 입니다.
- param3 : sourceelement는 setvalue할 값입니다.
- */
- function fSetValue(node, destinationelement, sourceelement) {
- model.setValue(node + "/" + destinationelement, sourceelement);
- }
- /**
- */
- function fSetRowValue(node, destinationelement, sourceelement, row) {
- model.makeValue(node + "[" + row + "]/" + destinationelement, sourceelement);
- }
- function fCheckItem(iRow){
- }
-
- function fset_show_auth(isshow)
- {
- // 메뉴허용자 숨기기
- cap_auth.visible = isshow;
- line_auth.visible = isshow;
- btn_reg_menuauthuser.visible = isshow;
- btn_del_menuauthuser.visible = isshow;
- grd_menuauthuserlist.visible = isshow;
- img_expand_auth.visible = isshow;
- }
-
- function fset_expand_auth(isexpand)
- {
- if(isexpand == true)
- {
- vector = +1;
- fset_show_deny(false);
- img_expand_auth.visible = false;
- img_shrink_auth.visible = true;
- }
- else
- {
- vector = -1;
- fset_show_deny(true);
- img_expand_auth.visible = true;
- img_shrink_auth.visible = false;
- }
-
- line_auth.attribute("x2") = parseInt(line_auth.attribute("x2")) + (vector*489);
- btn_reg_menuauthuser.attribute("left") = parseInt(btn_reg_menuauthuser.attribute("left")) + (vector*489);
- btn_del_menuauthuser.attribute("left") = parseInt(btn_del_menuauthuser.attribute("left")) + (vector*489);
- grd_menuauthuserlist.attribute("width") = parseInt(grd_menuauthuserlist.attribute("width")) + (vector*489);
-
- }
-
- function fset_show_deny(isshow)
- {
- // 메뉴제한자 숨기기
- cap_deny.visible = isshow;
- line_deny.visible = isshow;
- btn_reg_menudenyuser.visible = isshow;
- btn_del_menudenyuser.visible = isshow;
- grd_menudenyuserlist.visible = isshow;
- img_expand_deny.visible = isshow;
- }
-
- function fset_expand_deny(isexpand)
- {
- if(isexpand == true)
- {
- vector = +1;
- fset_show_auth(false);
- img_expand_deny.visible = false;
- img_shrink_deny.visible = true;
- }
- else
- {
- vector = -1;
- fset_show_auth(true);
- img_expand_deny.visible = true;
- img_shrink_deny.visible = false;
- }
- cap_deny.attribute("left") = parseInt(cap_deny.attribute("left")) - (vector*360);
- line_deny.attribute("x1") = parseInt(line_deny.attribute("x1")) - (vector*360);
- grd_menudenyuserlist.attribute("left") = parseInt(grd_menudenyuserlist.attribute("left")) - (vector*360);
- grd_menudenyuserlist.attribute("width") = parseInt(grd_menudenyuserlist.attribute("width")) + (vector*360);
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <script type="javascript" ev:event="onmenu">
- <![CDATA[
- if(event.description == "delmagrup")
- {
- btn_delete_menuauthgrup.dispatch("DOMActivate");
- }
-
- if(event.description == "setmagrup")
- {
-
- var iRow = grd_menuauthgruplist.row;
-
- setParameter("SPZSA20400_", "");
- modal("SPZSA20400_메뉴권한그룹변경", "", "200", "200", "SPZSA20400","/root/main/list_authgrup/menuauthgruplist["+iRow+"]/menuauthcd", "/root/send/menuauthcd");
-
-
-
- var iProperties = getParameter("SPZSA20400_");
-
- if(iProperties.length > 0 && iProperties != undefined){
- model.setValue("/root/main/list_authgrup/menuauthgruplist[" + iRow + "]/menuauthnm", iProperties);
- //grd_menuauthgruplist.addStatus(iRow, "update");
- } else {
- messageBox("데이터를 저장", "E001");
- }
- }
-
- if(event.description == "setAcntgroup")
- {
- var iRow = grd_menuauthuserlist.row;
- model.setValue("/root/main/list_authuser/menuauthuserlist[" + iRow + "]/acntgrupcd","");
- model.setValue("/root/main/list_authuser/menuauthuserlist[" + iRow + "]/acntgrupnm","");
- grd_menuauthuserlist.rowstatus(iRow) = "2";
- }
-
- if(event.description == "setDutplce")
- {
- var iRow = grd_menuauthuserlist.row;
- model.setValue("/root/main/list_authuser/menuauthuserlist[" + iRow + "]/dutplcecd","");
- model.setValue("/root/main/list_authuser/menuauthuserlist[" + iRow + "]/dutplcenm","");
- grd_menuauthuserlist.rowstatus(iRow) = "2";
-
- }
-
- if(event.description == "setDAcntgroup")
- {
- var iRow = grd_menudenyuserlist.row;
- model.setValue("/root/main/list_authuser/menudenyuserlist[" + iRow + "]/acntgrupcd","");
- model.setValue("/root/main/list_authuser/menudenyuserlist[" + iRow + "]/acntgrupnm","");
- grd_menudenyuserlist.rowstatus(iRow) = "2";
- }
-
- if(event.description == "setDDutplce")
- {
- var iRow = grd_menudenyuserlist.row;
- model.setValue("/root/main/list_authuser/menudenyuserlist[" + iRow + "]/dutplcecd","");
- model.setValue("/root/main/list_authuser/menudenyuserlist[" + iRow + "]/dutplcenm","");
- grd_menudenyuserlist.rowstatus(iRow) = "2";
-
- }
- ]]>
- </script>
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">계정그룹별 메뉴권한관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <datagrid id="grd_menulist" nodeset="/root/main/list_menu/menulist" caption="level^선택^명^화면 URL^플래그^코드^상위코드^메뉴그룹" colwidth="0, 38, 165, 464, 30, 122, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="32" style="left:5px; top:438px; width:355px; height:302px; ">
- <col ref="levl"/>
- <col ref="selector" type="checkbox"/>
- <col ref="menuitemnm"/>
- <col ref="scrnurl"/>
- <col ref="flag" visibility="hidden"/>
- <col ref="menuitemcd" visibility="hidden"/>
- <col ref="upmenuitemcd" visibility="hidden"/>
- <col ref="menugrupcd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row = grd_menulist.row;
- var max_row = grd_menulist.rows;
-
- var col = grd_menulist.col;
-
- var iSetNode = "/root/main/list_menu/menulist";
- var levl;
- var upmenuitemcd;
- var menuitemcd;
-
-
- if (col==2 && fGetValue(iSetNode, row, "selector")=="true")
- {
- // 상위 메뉴항목 모드를 체크함
-
- levl = fGetValue(iSetNode, row, "levl");
- upmenuitemcd = fGetValue(iSetNode, row, "upmenuitemcd");
- // alert(row+"-"+levl+"-"+upmenuitemcd);
-
- for (var i=row; i>0; i--)
- {
- menuitemcd = fGetValue(iSetNode, i, "menuitemcd");
-
-
- if (menuitemcd == upmenuitemcd) // 상위메뉴코드이면
- {
- // levl = fGetValue(iSetNode, row, "levl");
- // upmenuitemcd = fGetValue(iSetNode, row, "upmenuitemcd");
- // alert(row+"-"+levl+"-"+upmenuitemcd);
- model.setValue("/root/main/list_menu/menulist["+i+"]/selector", "true");
- upmenuitemcd = fGetValue(iSetNode, i, "upmenuitemcd");
- if(levl == 1) break;
- }
- }
-
- //fSetRowValue(iSetNode, "selector", row, itRow);
- }
-
- // 하위 모든 항목을 선택헤제함
- // else if (col==2 && fGetValue(iSetNode, row, "selector")=="false")
- // {
-
- // 상위 메뉴항목 모드를 체크함
- var sel_value = fGetValue(iSetNode, row, "selector");
-
- levl = fGetValue(iSetNode, row, "levl");
- upmenuitemcd = fGetValue(iSetNode, row, "upmenuitemcd");
- //alert(row+"-"+levl+"-"+upmenuitemcd);
-
- for (var i=row+1; i<max_row; i++)
- {
- var child_level = fGetValue(iSetNode, i, "levl");
- //alert(i+"-"+child_level+"-"+upmenuitemcd+"("+ max_row);
- if(child_level <= levl) break; // 자신과 레벨이 같을 경우 break;
- menuitemcd = fGetValue(iSetNode, i, "menuitemcd");
-
- model.setValue("/root/main/list_menu/menulist["+i+"]/selector", sel_value); // 자신의 하위레벨의 메뉴에 체크를 해제한다.
- }
-
-
- // }
- //setRowStyle("grd_menulist" , "2" , "true" , "selector", "equal");
- //model.refresh();
-
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:5px; top:10px; width:355px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:355px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:117px; height:17px; ">사용자조회</caption>
- <button id="btn_search_user" class="btn1_letter2" style="left:277px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(isRequiredControls("ipt_user_search_item")) {
- // model.removeNodeset("/root/main/list_user/userlist");
- // model.removeNodeset("/root/main/list_menu/menurightlist");
- // model.removeNodeset("/root/main/list_authmenu/menuauthlist");
- // model.removeNodeset("/root/main/list_authuser/menuauthuserlist");
-
- model.setValue("/root/send/flag", model.getValue("/root/init/flag"));
- model.setValue("/root/send/searchitem", model.getValue("/root/init/searchitem"));
- submit("TRZSA20407");
- }
- ]]>
- </script>
- </button>
- <line id="line1" style="x1:266px; y1:8px; x2:266px; y2:51px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_user_search_item" ref="/root/init/searchitem" class="input_search" imemode="hangul" style="left:136px; top:34px; width:114px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search_user", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_user_search_mode" ref="/root/init/flag" class="combo_search" appearance="minimal" style="left:136px; top:8px; width:114px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/flag">
- <label ref="lable"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <caption id="caption9" class="tit_2" style="left:5px; top:77px; width:111px; height:13px; vertical-align:middle; ">사용자 조회</caption>
- <line id="line12" class="line_1" style="x1:5px; y1:92px; x2:360px; y2:92px; "/>
- <datagrid id="datagrid1" nodeset="/root/main/list_user/userlist" caption="선택^사용자명^아이디^근무지기관명^근무지부서명^dutplcecd^jobkindcd^jobrespcd^dutinstcd^orginstcd^userkindcd" colwidth="38, 65, 63, 95, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="32" style="left:5px; top:97px; width:355px; height:250px; ">
- <col ref="selectuser" type="checkbox"/>
- <col ref="usernm"/>
- <col ref="userid"/>
- <col disabled="true" ref="dutplceinstcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/comcd/Z0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="depthngnm"/>
- <col ref="dutplcecd" visibility="hidden"/>
- <col ref="jobkindcd" visibility="hidden"/>
- <col ref="jobrespcd" visibility="hidden"/>
- <col ref="dutinstcd" visibility="hidden"/>
- <col ref="orginstcd" visibility="hidden"/>
- <col ref="userkindcd" visibility="hidden"/>
- <col ref="jobposcd" visibility="hidden"/>
- <col ref="grupjoblncd" visibility="hidden"/>
- <col ref="prfshipflagcd" visibility="hidden"/>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
-
- ]]>
- </script>
- </datagrid>
- <button id="btn_delete_acntitem" class="btn2_letter2" style="left:1105px; top:72px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rtn = messageBox(" 해당 계정그룹항목을 ", "Q001");
- if(rtn == 6){
- fClicked("delete", grd_acntitemlist, "acntitem");
- }
- ]]>
- </script>
- </button>
- <button id="btn_save_acntitem" class="btn5_letter2" style="left:1150px; top:72px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClicked("save", grd_acntitemlist, "acntitem");
- ]]>
- </script>
- </button>
- <caption id="caption3" class="tit_2" style="left:416px; top:77px; width:116px; height:13px; ">계정그룹항목</caption>
- <line id="line2" class="line_1" style="x1:416px; y1:92px; x2:1194px; y2:93px; "/>
- <datagrid id="grd_acntitemlist" nodeset="/root/main/list_item/acntitemlist" class="datagrid" caption="계정그룹코드^계정그룹명^사용자ID^사용자명^근무지기관명^근무지명^근무지코드" colwidth="100, 195, 82, 100, 120, 154, 150" dataheight="25" explorerbar="sort" extendlastcol="scroll" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:416px; top:96px; width:778px; height:250px; ">
- <col ref="acntgrupcd" visibility="hidden"/>
- <col ref="acntgrupnm"/>
- <col ref="userid"/>
- <col ref="usernm"/>
- <col disabled="true" ref="dutplceinstcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/comcd/Z0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="dutplcenm"/>
- <col ref="dutplcecd"/>
- </datagrid>
- <group id="group3" style="left:416px; top:10px; width:778px; height:60px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:778px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:117px; height:17px; ">계정그룹선택</caption>
- <button id="button1" class="btn1_letter2" style="left:705px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (cmb_acntgrup.focusIndex > 0)
- {
- cmb_acntgrup.dispatch("xforms-value-changed");
- }
- ]]>
- </script>
- </button>
- <line id="line3" style="x1:690px; y1:10px; x2:690px; y2:53px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_acntgrupnm" ref="/root/init/acntgrupnm" class="input_s_essential" imemode="hangul" style="left:146px; top:34px; width:160px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search_menuauth", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_acntgrup" ref="/root/init/acntgrupcd" class="combo_search" appearance="minimal" style="left:145px; top:5px; width:160px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/list_grup/acntgruplist">
- <label ref="acntgrupnm"/>
- <value ref="acntgrupcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(cmb_acntgrup.focusIndex == 0)
- {
- ipt_acntgrupnm.disabled = false;
- model.removeNodeset("/root/main/list_item/acntitemlist");
- model.refresh();
- }
- else
- {
- // 신규계정그룹명 인풋박스 disable 시킨후 목록조회
- ipt_acntgrupnm.disabled = true;
-
- var iOptacntgrupcd = cmb_acntgrup.value;
- model.resetInstanceNode("/root/main/list_authuser/menugrupauthlist");
- model.removeNodeset("/root/main/list_authmenu/menuauthlist");
- model.removeNodeset("/root/main/list_authuser/menuauthuserlist");
- model.removeNodeset("/root/main/list_authuser/menudenyuserlist");
-
- model.setValue("/root/send/optacntgrupcd", iOptacntgrupcd );
-
- if(submit("TRZSA20201"))
- {
- submit("TRZSA20702");
- addComboItem( "cmb_menuauthgrup", "신규권한그룹등록", "-", "above");
- cmb_menuauthgrup.select(0);
- }
-
- }
-
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:15px; top:34px; width:128px; height:17px; ">신규계정그룹명</caption>
- <button id="btn_refresh_acntgrup" class="btn1_letter4" style="left:310px; top:4px; width:80px; height:22px; ">
- <caption>새로고침</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // model.resetInstanceNode("/root/send");
- // model.resetInstanceNode("/root/temp/list");
- //
- // var iRow = grd_acntgruplist.row;
- // var iNode = "/root/main/list_grup/acntgruplist"
- //
- // opt_acntgrupnm.value = fGetValue(iNode, iRow, "acntgrupnm");
- // opt_acntgrupcd.value = fGetValue(iNode, iRow, "acntgrupcd");
- // var iOptacntgrupcd = opt_acntgrupcd.value;
- // // model.setValue("/root/main/item/acntgrupnm", fGetValue(iNode, iRow, "acntgrupnm"));
- // // model.setValue("/root/main/item/acntgrupcd", fGetValue(iNode, iRow, "acntgrupcd"));
- // // var iOptacntgrupcd = model.getValue("/root/main/item/acntgrupcd");
- // //alert(iOptacntgrupcd);
- //
- // model.setValue("/root/send/optacntgrupcd", iOptacntgrupcd );
- model.setValue("/root/send/searchitem", "");
- model.setValue("/root/send/flag", "acntgrupnm");
-
- submit("TRZSA20200");
- addComboItem( "cmb_acntgrup", "신규계정그룹등록", "", "above");
- ]]>
- </script>
- </button>
- </group>
- <img id="img_shrink_deny" class="icon_right" style="left:375px; top:217px; width:26px; height:19px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // alert("조회그리드에서 SELECT항목 INSERT");/root/main/list_user/userlist
-
- // 1. 왼쪽 그리드의 사용자 목록중에 selectuser 가 true 인것만 골라서 추가시킨다.
- //var nodeList = instance1.selectNodes("/root/main/list_user/userlist[selectuser='true']");
- if (cmb_acntgrup.focusIndex==0 && model.getValue("/root/init/acntgrupnm").getTrim() == "")
- {
- messageBox("신규계정그룹명을 반드시 입력하세요", "E999");
-
- }
- else
- {
-
- var iNode = "/root/main/list_item/acntitemlist";
- var iNodesetCount = getNodesetCount("/root/main/list_user/userlist");
-
- var acntgrupnm;
-
- if (cmb_acntgrup.focusIndex==0)
- {
- acntgrupnm = ipt_acntgrupnm.value;
- }
- else
- {
- acntgrupnm = cmb_acntgrup.label;
- }
-
- for(var i = 1; i <= iNodesetCount; i++){
- if(model.getValue("/root/main/list_user/userlist["+i+"]/selectuser") != "true") continue;
- grd_acntitemlist.addItem();
- iRow = grd_acntitemlist.row;
- // alert(model.getValue("/root/temp/list["+i+"]/userid"));
-
- fSetRowValue(iNode, "acntgrupcd", cmb_acntgrup.value, iRow);
- fSetRowValue(iNode, "acntgrupnm", acntgrupnm, iRow);
- fSetRowValue(iNode, "userid", model.getValue("/root/main/list_user/userlist["+i+"]/userid"), iRow);
- fSetRowValue(iNode, "usernm", model.getValue("/root/main/list_user/userlist["+i+"]/usernm"), iRow);
- fSetRowValue(iNode, "dutplceinstcd", model.getValue("/root/main/list_user/userlist["+i+"]/dutplceinstcd"), iRow);
- fSetRowValue(iNode, "dutplcenm", model.getValue("/root/main/list_user/userlist["+i+"]/depthngnm"), iRow);
- fSetRowValue(iNode, "dutplcecd", model.getValue("/root/main/list_user/userlist["+i+"]/dutplcecd"), iRow);
- }
- }
-
-
- ]]>
- </script>
- </img>
- <button id="btn_Regall" class="btn2_letter2" visibility="visible" style="left:318px; top:412px; width:42px; height:19px; ">
- <caption>등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(cmb_menuauthgrup.value.getTrim() == "" || cmb_menuauthgrup.value == null){
- messageBox(" 메뉴권한그룹을 선택하십시요! 등록할 수 ", "E001");
- } else if (cmb_menuauthgrup.focusIndex == 0 && ipt_new_menuauthnm.value == "")
- {
- messageBox(" 신규메뉴권한그룹명을 입력하십시요! 등록할 수 ", "E001");
- }else if (cmb_acntgrup.focusIndex==0)
- {
- messageBox("반드시 하나의 계정그룹을 선택하세요", "E999");
-
- }
- else{
-
-
- // var iMenu_MenuGrupCD = cmb_menugrup.value;
- var iMenu_MenuGrupCD = model.getValue("/root/main/list_menu/menulist/menugrupcd"); // 해당메뉴그룹코드
- // alert(iMenu_MenuGrupCD);
- var menulength = cmb_menugrupauthlist.length; // 메뉴권한적용그룹의 갯수
- // alert(menulength);
- var check_count = 0;
- for(var checkfild = 0; checkfild <= menulength; checkfild++) {
- // alert(iMenu_MenuGrupCD + "::" +model.getValue("/root/main/list_authuser/menugrupauthlist["+checkfild+"]/menugrupcd"));
-
- if (iMenu_MenuGrupCD == model.getValue("/root/main/list_authuser/menugrupauthlist["+checkfild+"]/menugrupcd")){
- cmb_menugrupauthlist.select(checkfild-1);
- // alert(cmb_menugrupauthlist.select(checkfild-1));
- check_count++;
- }
-
- }
-
-
- if (check_count == 0){
- var iFixed_Row = cmb_menugrupauthlist.length+1;
- model.makeValue("/root/main/list_authuser/menugrupauthlist["+iFixed_Row+"]/menugrupnm", cmb_menugrup.label);
- model.makeValue("/root/main/list_authuser/menugrupauthlist["+iFixed_Row+"]/menugrupcd", cmb_menugrup.value);
-
- model.refresh();
-
- cmb_menugrupauthlist.select(iFixed_Row-1);
- }
-
-
- // alert("/root/init/menugrupauthcd");
- // grd_menuauthlist.addItem();
- var checkvalue = 0;
- var iRow = grd_menulist.row;
- var iaddRow = grd_menuauthlist.row;
- var iSetNode ="/root/main/list_authmenu/menuauthlist";
- var iGetNode = "/root/main/list_menu/menulist";
-
- /*
- alert(grd_menuauthlist.fixedRows);
- alert(grd_menulist.fixedRows);
- alert(grd_menulist.rows);
- */
- for(var i = grd_menulist.fixedRows; i < grd_menulist.rows; i++){
- var tempcheck = 0;
- var iLevel = fGetValue(iGetNode, i, "levl");
- var iMenuitemnm = fGetValue(iGetNode, i, "menuitemnm");
- var iMenuitemcd = fGetValue(iGetNode, i, "menuitemcd");
- var iUpmenuitemcd = fGetValue(iGetNode, i, "upmenuitemcd");
- var iMenuGrupCD = fGetValue(iGetNode, i, "menugrupcd");
- var selector = fGetValue(iGetNode, i, "selector");
- // alert(grd_menulist.rows);
- // alert(i);
- // alert(iMenuGrupCD);
-
- // alert(grd_menuauthlist.rows);
- // alert("grd_menuauthlist.fixedRows : " + grd_menuauthlist.fixedRows);
-
-
- //var nodeList = instance1.selectNodes("/root/main/list_authmenu/menuauthlist[menuitemcd="+iMenuitemcd+"]");
- var check_count = getNodesetCount("/root/main/list_authmenu/menuauthlist[menuitemcd='"+iMenuitemcd+"']");
- if (check_count > 0)
- {
- checkvalue = -1;
- }
- else
- {
- checkvalue = 1;
- }
-
- // for(var j = grd_menuauthlist.fixedRows; j < grd_menuauthlist.rows; j++){
- // if(iMenuitemcd == fGetValue(iSetNode, j, "menuitemcd")) {
- // checkvalue = -1;
- // break;
- // } else {
- // checkvalue = 1;
- // }
- //
- // }
-
- // alert("checkvalue : "+checkvalue);
- if(checkvalue == 1 || checkvalue == 0){
-
- grd_menuauthlist.addItem();
- //var iMenuitemnm = cmb_menugrup.label;
- //var iMenuitemcd = cmb_menugrup.value;
-
- var itRow = grd_menuauthlist.row;
- // alert("1");
- fSetRowValue(iSetNode, "levl", iLevel, itRow);
- fSetRowValue(iSetNode, "menuitemnm", iMenuitemnm, itRow);
- fSetRowValue(iSetNode, "menuitemcd", iMenuitemcd, itRow);
- fSetRowValue(iSetNode, "upmenuitemcd", iUpmenuitemcd, itRow);
-
- //alert(selector);
-
- if(selector == "true") // 선택되었을 경우만
- {
- fSetRowValue(iSetNode, "r", "1", itRow);
- fSetRowValue(iSetNode, "x", "1", itRow);
- fSetRowValue(iSetNode, "p", "1", itRow);
- }
- else // 아닌경우
- {
- fSetRowValue(iSetNode, "r", "0", itRow);
- fSetRowValue(iSetNode, "x", "0", itRow);
- fSetRowValue(iSetNode, "p", "0", itRow);
- }
-
- // alert("2");
- var iScrnAuth_SUM = fGetValue(iSetNode, itRow, "r") + fGetValue(iSetNode, itRow, "x") + fGetValue(iSetNode, itRow, "p")+"00000";
- fSetRowValue(iSetNode, "scrnauth", iScrnAuth_SUM, itRow);
- fSetRowValue(iSetNode, "menugrupcd", iMenuGrupCD, itRow);
- fSetRowValue(iSetNode, "menuauthcd", cmb_menuauthgrup.value, itRow);
- // alert("3");
- }
-
- }
-
-
-
-
- // alert();
- // grd_menuauthlist.rebuild();
- setTree(grd_menuauthlist, 1, 2, false);
-
- // 신규로 메뉴권한그룹이 생성될때에만 메뉴권한허용자 조건에 추가
- if (cmb_menuauthgrup.focusIndex == 0)
- {
- grd_menuauthuserlist.addRow();
- var iRow = grd_menuauthuserlist.row;
- //fSetRowValue("/root/main/list_authuser/menuauthuserlist", "menuauthcd", cmb_menuauthgrup.value, iRow);
- fSetRowValue("/root/main/list_authuser/menuauthuserlist", "acntgrupcd", cmb_acntgrup.value, iRow);
- fSetRowValue("/root/main/list_authuser/menuauthuserlist", "acntgrupnm", cmb_acntgrup.label, iRow);
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption5" class="tit_2" style="left:5px; top:418px; width:184px; height:13px; ">메뉴 리스트</caption>
- <line id="line4" class="line_1" style="x1:5px; y1:433px; x2:360px; y2:433px; "/>
- <group id="group4" style="left:5px; top:350px; width:355px; height:60px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:355px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption7" class="search_name" style="left:14px; top:34px; width:117px; height:17px; ">메뉴그룹선택</caption>
- <button id="btn_getmenugroup" class="btn1_letter2" style="left:277px; top:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(isRequiredControls("ipt_search_item")) {
- // model.removeNodeset("/root/main/list_user/userlist");
- // model.removeNodeset("/root/main/list_menu/menurightlist");
- // model.removeNodeset("/root/main/list_authmenu/menuauthlist");
- // model.removeNodeset("/root/main/list_authuser/menuauthuserlist");
-
- //model.setValue("/root/send/flag", model.getValue("/root/init/flag"));
- model.setValue("/root/send/scrnnm", model.getValue("/root/init/scrnnm"));
- submit("TRZSA20701");
- }
- ]]>
- </script>
- </button>
- <line id="line5" style="x1:266px; y1:8px; x2:266px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_scrnnm" ref="/root/init/scrnnm" class="input_s_essential" imemode="hangul" style="left:135px; top:9px; width:114px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_getmenugroup", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_menugrup" ref="/root/init/menugrupcd" class="combo_search" appearance="minimal" style="left:135px; top:34px; width:114px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/list_menu/menugruplist">
- <label ref="menugrupnm"/>
- <value ref="menugrupcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var iMenugrupcd = cmb_menugrup.value;
- fClicked("search", grd_menulist, "menulist");
- // alert(iMenugrupcd);
- grd_menulist.rebuild();
- setTree(grd_menulist, 1, 3, false);
- setRowStyle("grd_menulist" , "1" , "S" , "flag");
- ]]>
- </script>
- </select1>
- <caption id="caption8" class="search_name" style="left:14px; top:10px; width:117px; height:17px; ">화면조회</caption>
- </group>
- <datagrid id="grd_menuauthlist" nodeset="/root/main/list_authmenu/menuauthlist" autoresize="false" caption="level^메뉴권한리스트명^코드^상위코드^사용여부^R^X^P^메뉴그룹^메뉴권한코드^화면권한^선택여부" colwidth="0, 376, 80, 80, 50, 34, 34, 34, 100, 100, 100, 100" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" style="left:416px; top:438px; width:489px; height:302px; ">
- <col ref="levl"/>
- <col ref="menuitemnm"/>
- <col ref="menuitemcd" type="input" visibility="hidden"/>
- <col ref="upmenuitemcd" visibility="hidden"/>
- <col checkvalue="Y,N" ref="useyn" type="checkbox" visibility="hidden"/>
- <col checkvalue="1,0" ref="r" type="checkbox"/>
- <col checkvalue="1,0" ref="x" type="checkbox"/>
- <col checkvalue="1,0" ref="p" type="checkbox"/>
- <col ref="menugrupcd" visibility="hidden"/>
- <col ref="menuauthcd" visibility="hidden"/>
- <col ref="scrnauth" visibility="hidden"/>
- <col ref="selected" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // alert();
- // alert(grd_menuauthlist.isCell(event.focus));
- // alert(grd_menuauthlist.mouseCol);
- if(grd_menuauthlist.isCell(event.focus) > 0){
- if(grd_menuauthlist.mouseCol == "6" || grd_menuauthlist.mouseCol == "7" || grd_menuauthlist.mouseCol == "8"){
- var iRow = grd_menuauthlist.row;
-
- // 전체선택 체크박스를 선택한 경우 수정상태로 변경
- if(iRow == "0") {
- for(var i = 1; i < grd_menuauthlist.rows; i++){
- grd_menuauthlist.addStatus(i, "update");
- }
- }
-
- var iCol = grd_menuauthlist.col;
- grd_menuauthlist.rowstatus(iRow) = "2";
- var iTypeR = fGetValue("/root/main/list_authmenu/menuauthlist", iRow, "r");
- var iTypeX = fGetValue("/root/main/list_authmenu/menuauthlist", iRow, "x");
- var iTypeP = fGetValue("/root/main/list_authmenu/menuauthlist", iRow, "p");
- // alert(iTypeR);
-
- // 조회된 내용이 아니면 무조건 insert
- var readyn = fGetValue("/root/main/list_authmenu/menuauthlist", iRow, "readyn");
- if(readyn == "") {
- grd_menuauthlist.addStatus(iRow, "insert");
- }
-
- var iScrnAuth = iTypeR + iTypeX + iTypeP;
-
- // alert(iScrnAuth);
-
- if (iScrnAuth == "") {
- } else {
- fSetRowValue("/root/main/list_authmenu/menuauthlist", "scrnauth", iScrnAuth+"00000", iRow);
- }
- /*
- if(iCol == "6"){
- if(iTypeR == "1"){
- fSetRowValue("/root/main/list_authuser/menuauthlist", "authtypeR", "1", iRow);
- for(var i = iRow; i < grd_menuauthlist.rows; i++){
- for(var j = i; j < grd_menuauthlist.rows; j++){
- if(fGetValue("/root/main/list_authuser/menuauthlist", i, "menuitemcd") == fGetValue("/root/main/list_authuser/menuauthlist", j, "upmenuitemcd")){
- fSetRowValue("/root/main/list_authuser/menuauthlist", "r", "1", j);
- fSetRowValue("/root/main/list_authuser/menuauthlist", "authtypeR", "1", j);
- }
- }
- }
- }
- } else if(iCol == "7"){
- if(iTypeX == "1"){
- fSetRowValue("/root/main/list_authuser/menuauthlist", "authtypeX", "1", iRow);
- for(var i = iRow; i < grd_menuauthlist.rows; i++){
- for(var j = i; j < grd_menuauthlist.rows; j++){
- if(fGetValue("/root/main/list_authuser/menuauthlist", i, "menuitemcd") == fGetValue("/root/main/list_authuser/menuauthlist", j, "upmenuitemcd")){
- fSetRowValue("/root/main/list_authuser/menuauthlist", "x", "1", j);
- fSetRowValue("/root/main/list_authuser/menuauthlist", "authtypeX", "1", j);
- }
- }
- }
- }
- } else if(iCol == "8"){
- if(iTypeP == "1"){
- fSetRowValue("/root/main/list_authuser/menuauthlist", "authtypeP", "1", iRow);
- for(var i = iRow; i < grd_menuauthlist.rows; i++){
- for(var j = i; j < grd_menuauthlist.rows; j++){
- if(fGetValue("/root/main/list_authuser/menuauthlist", i, "menuitemcd") == fGetValue("/root/main/list_authuser/menuauthlist", j, "upmenuitemcd")){
- fSetRowValue("/root/main/list_authuser/menuauthlist", "p", "1", j);
- fSetRowValue("/root/main/list_authuser/menuauthlist", "authtypeP", "1", j);
- }
- }
- }
- }
- }
- */
- }
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption10" class="tit_2" style="left:415px; top:415px; width:124px; height:13px; ">메뉴권한 리스트</caption>
- <line id="line6" class="line_1" style="x1:416px; y1:433px; x2:905px; y2:433px; "/>
- <button id="btn_delete_menuauthlist" class="btn2_letter2" style="left:817px; top:413px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var iRow = grd_menuauthlist.row;
- // alert(opt_menuauthcd.value);
- // alert(cmb_menugrupauthlist.value);
- model.setValue("/root/send/optmenuauthcd", cmb_menuauthgrup.value);
- model.setValue("/root/send/menugrupauthcd", cmb_menugrupauthlist.value);
- model.getValue("/root/main/list_authuser/menugrupauthlist");
- var rtn = messageBox(" 해당 메뉴그룹 전체를 ", "Q001");
- if(rtn == 6){
- if(submit("TXZSA20402")){
- //ipt_search_item.value = opt_menuauthcd.value;
- //btn_search_menuauth.dispatch("DOMActivate");
- fselectmenuauth();
- }
- }
- // fClicked("delete", grd_menuauthlist, "menuauthlist");
- ]]>
- </script>
- </button>
- <img id="img1" class="icon_right" style="left:375px; top:600px; width:26px; height:19px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- btn_Regall.dispatch("DOMActivate");
- ]]>
- </script>
- </img>
- <group id="group6" style="left:416px; top:350px; width:778px; height:60px; vertical-align:top; ">
- <shape id="roundrect4" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:778px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption11" class="search_name" style="left:15px; top:9px; width:117px; height:17px; ">권한그룹선택</caption>
- <button id="btn_select_menulist" class="btn1_letter2" style="left:705px; top:34px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // loop 를 돌며 조회조건에 해당하는 row 를 찾음
- //model.setValue("/root/main/list_authmenu/menuauthlist[menuitemnm='수가조회']/selected", "1");
- ///category/cd[title="Love Songs"]
- var keyword = model.getValue("/root/init/menuitemnm");
- //alert(keyword);
- var firstRow = -1;
- for(var i = grd_menuauthlist.fixedRows; i < grd_menuauthlist.rows; i++){
-
- var menuitemnm = model.getValue("/root/main/list_authmenu/menuauthlist["+i+"]/menuitemnm");
- //alert(menuitemnm);
- if(menuitemnm.indexOf(keyword) != -1)
- {
- // model.setValue("/root/main/list_authmenu/menuauthlist["+i+"]/selected", "1");
- grd_menuauthlist.rowstyle( i , "data" , "background-color" ) = "#f3e1bf";
-
- if (firstRow == -1)
- {
- firstRow = i;
- }
-
- }
- else
- {
- grd_menuauthlist.rowstyle( i , "data" , "background-color" ) = "#ffffff";
- }
- }
- grd_menuauthlist.row = firstRow;
- grd_menuauthlist.topRow = firstRow;
-
- //grd_menuauthlist.isselected(firstRow) = true;
-
-
- // setRowStyle("grd_menuauthlist" , "3" , "1" , "selected");
-
-
-
- ]]>
- </script>
- </button>
- <line id="line8" style="x1:690px; y1:30px; x2:690px; y2:53px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_new_menuauthnm" ref="/root/init/new_menuauthnm" class="input_s_essential" imemode="hangul" style="left:151px; top:34px; width:160px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search_menuauth", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_menuauthgrup" ref="/root/init/optmenuauthcd" class="combo_search" appearance="minimal" style="left:151px; top:8px; width:160px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/list_menuauth/menuauthlist">
- <label ref="menuauthnm"/>
- <value ref="menuauthcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (cmb_menuauthgrup.focusIndex != 0)
- {
- ipt_new_menuauthnm.disabled = true;
- cmb_menugrupauthlist.disabled = false;
- fselectmenuauth();
- }
- else
- {
- model.removeNodeset("/root/main/list_authmenu/menuauthlist");
- model.removeNodeset("/root/main/list_authuser/menugrupauthlist");
- model.removeNodeset("/root/main/list_authuser/menuauthuserlist");
- model.removeNodeset("/root/main/list_authuser/menudenyuserlist");
- ipt_new_menuauthnm.disabled = false;
- cmb_menugrupauthlist.disabled = true;
- model.refresh();
- }
-
- ]]>
- </script>
- </select1>
- <caption id="caption12" class="search_name" style="left:15px; top:34px; width:128px; height:17px; ">신규권한그룹명</caption>
- <caption id="caption13" class="search_name" style="left:409px; top:10px; width:128px; height:17px; ">적용 메뉴그룹</caption>
- <select1 id="cmb_menugrupauthlist" ref="/root/init/menugrupauthcd" appearance="minimal" style="left:540px; top:10px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/list_authuser/menugrupauthlist">
- <label ref="menugrupnm"/>
- <value ref="menugrupcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- grd_menuauthlist.rebuild();
- var iMenugrupcd = cmb_menugrup.value;
- /*
- fClicked("search", grd_menugrupauthlist, "menugrupauthlist");
- setTree(grd_menugrupauthlist, 1, 2, true);
- */
- fClicked("search", grd_menuauthlist, "menuauthlist");
- setTree(grd_menuauthlist, 1, 2, false);
-
- // grd_menuauthlist.rebuild();
- // for(var i = grd_menuauthlist.fixedRows; i < grd_menuauthlist.rows; i++){
- // if("" == model.getValue("/root/main/list_authmenu/menuauthlist["+i+"]scrncd") || null == model.getValue("/root/main/list_authmenu/menuauthlist["+i+"]scrncd")) {
- //// alert(model.getValue("/root/main/list_authmenu/menuauthlist["+i+"]scrncd"));
- // grd_menuauthlist.colDisabled(grd_menuauthlist.mouseCol) = true;
- // grd_menuauthlist.rowData(i) = "disabled";
- //
- // }
- // }
- ]]>
- </script>
- </select1>
- <input id="input1" ref="/root/init/menuitemnm" class="input_s_essential" imemode="hangul" style="left:540px; top:35px; width:135px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_select_menulist", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption14" class="search_name" style="left:409px; top:35px; width:128px; height:17px; ">메뉴리스트조회</caption>
- <button id="button3" class="btn1_letter4" style="left:316px; top:7px; width:80px; height:22px; ">
- <caption>새로고침</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- cmb_acntgrup.dispatch("xforms-value-changed");
- ]]>
- </script>
- </button>
- </group>
- <button id="button2" class="btn5_letter2" style="left:862px; top:413px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fSaveTotal();
- ]]>
- </script>
- </button>
- <line id="line_auth" class="line_1" style="x1:909px; y1:433px; x2:1194px; y2:433px; "/>
- <caption id="cap_auth" class="tit_2" style="left:910px; top:416px; width:164px; height:13px; ">메뉴권한 허용자 조건</caption>
- <datagrid id="grd_menuauthuserlist" nodeset="/root/main/list_authuser/menuauthuserlist" caption="번호^권한그룹코드^계정그룹코드^계정그룹^근무지코드^근무지^직종^직책^근무기관^원소속기관^사용자유형^직군^교직구분^직위" colwidth="41, 84, 110, 110, 91, 160, 65, 109, 100, 100, 100, 100, 87, 100" dataheight="25" extendlastcol="scroll" fixedcols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:909px; top:438px; width:285px; height:147px; ">
- <col ref="seq" type="output" visibility="hidden"/>
- <col ref="menuauthcd" type="output" visibility="hidden"/>
- <col ref="acntgrupcd" type="output" visibility="hidden" _required="true"/>
- <col ref="acntgrupnm"/>
- <col ref="dutplcecd" visibility="hidden" _required="true"/>
- <col ref="dutplcenm"/>
- <col ref="jobkindcd" _required="true"/>
- <col ref="jobrespcd" _required="true"/>
- <col ref="dutinstcd" _required="true"/>
- <col ref="orginstcd" _required="true"/>
- <col ref="userkindcd" _required="true"/>
- <col ref="grupjoblncd" _required="true"/>
- <col ref="prfshipflagcd" _required="true"/>
- <col ref="jobposcd" _required="true"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- //alert(grd_menuauthuserlist.mouseCol);
- if(event.button == 3 && grd_menuauthuserlist.mouseCol == 4){
- if(grd_menuauthuserlist.isCell(event.target) && grd_menuauthuserlist.mouseRow >= grd_menuauthuserlist.fixedrows){
- window.setPopupMenu(true, "/root/authmenu1", "label", "func", true);
- }else{
- window.setPopupMenu(false);
- }
- }
-
- if(event.button == 3 && grd_menuauthuserlist.mouseCol == 6){
- if(grd_menuauthuserlist.isCell(event.target) && grd_menuauthuserlist.mouseRow >= grd_menuauthuserlist.fixedrows){
- window.setPopupMenu(true, "/root/authmenu2", "label", "func", true);
- }else{
- window.setPopupMenu(false);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
-
- clearParameter("SPZSA20202_");
- clearParameter("SPZSA20202_1");
- if(opt_menuauthcd.value == ""){
- model.alert("계정그룹을 선택하십시요!");
- } else {
- var col_num = grd_menuauthuserlist.col;
-
- setParameter("SPZSA20202_1", col_num);
- modal("SPZSA20202", "", "200", "200", "SPZSA20202");
- var iProperties = getParameter("SPZSA20202_");
- var iSplit_Value=iProperties.split("|");
- // var iRow = grd_menuitemlist.row;
- if(iSplit_Value.length > 0 && iSplit_Value[0] != "" && iSplit_Value[0] != undefined){
- //grd_menuauthuserlist.addItem();
- var iRow = grd_menuauthuserlist.row;
- var iNode = "/root/main/list_authuser/menuauthuserlist";
-
- // 계정그룹일 경우
- if (iSplit_Value[0]=="G")
- {
- fSetRowValue(iNode, "acntgrupcd", iSplit_Value[1], iRow); // 등록코드
- fSetRowValue(iNode, "acntgrupnm", iSplit_Value[2], iRow); // 등록명
- }
- // 근무지일 경우
- else if(iSplit_Value[0]=="D")
- {
- fSetRowValue(iNode, "dutplcecd", iSplit_Value[3] +""+ iSplit_Value[1], iRow); // 등록코드
- fSetRowValue(iNode, "dutplcenm", iSplit_Value[2], iRow); // 등록명
- }
-
- //fSetRowValue(iNode, "acntdepttype", iSplit_Value[0], iRow);
- // fSetRowValue(iNode, "rgstcd", iSplit_Value[1], iRow); // 등록코드
- //fSetRowValue(iNode, "rgstnm", iSplit_Value[2], iRow); // 등록명
- //fSetRowValue(iNode, "dutplceinstcd", iSplit_Value[3], iRow); // 근무지기관코드
- // fSetRowValue(iNode, "menuauthcd", opt_menuauthcd.value, iRow);
- var iStatus = grd_menuauthuserlist.rowstatus(iRow);
- if(iStatus=="0"){
- grd_menuauthuserlist.rowstatus(iRow) = "2";
- }
- } else {
- messageBox("데이터를 저장", "E001");
- // grd_acntitemlist.deleteItem(iRow);
- }
- }
- ]]>
- </script>
- </datagrid>
- <caption id="cap_deny" class="tit_2" visibility="visible" style="left:909px; top:588px; width:169px; height:13px; ">메뉴권한 제한자 조건</caption>
- <line id="line_deny" class="line_1" style="x1:909px; y1:605px; x2:1194px; y2:605px; "/>
- <datagrid id="grd_menudenyuserlist" nodeset="/root/main/list_authuser/menudenyuserlist" visibility="visible" caption="번호^권한그룹코드^계정그룹코드^계정그룹^근무지코드^근무지^직종^직책^근무기관^원소속기관^사용자유형^직군^교직구분^직위" colwidth="41, 87, 100, 110, 100, 160, 71, 65, 109, 100, 100, 100, 100, 87" dataheight="25" extendlastcol="scroll" fixedcols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:909px; top:608px; width:285px; height:132px; ">
- <col ref="seq" type="output" visibility="hidden"/>
- <col ref="menuauthcd" type="output" visibility="hidden"/>
- <col ref="acntgrupcd" type="output" visibility="hidden" _required="true"/>
- <col ref="acntgrupnm"/>
- <col ref="dutplcecd" visibility="hidden" _required="true"/>
- <col ref="dutplcenm"/>
- <col ref="jobkindcd" _required="true"/>
- <col ref="jobrespcd" _required="true"/>
- <col ref="dutinstcd" _required="true"/>
- <col ref="orginstcd" _required="true"/>
- <col ref="userkindcd" _required="true"/>
- <col ref="grupjoblncd" _required="true"/>
- <col ref="prfshipflagcd" _required="true"/>
- <col ref="jobposcd" _required="true"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- //alert(grd_menuauthuserlist.mouseCol);
- if(event.button == 3 && grd_menudenyuserlist.mouseCol == 4){
- if(grd_menudenyuserlist.isCell(event.target) && grd_menudenyuserlist.mouseRow >= grd_menudenyuserlist.fixedrows){
- window.setPopupMenu(true, "/root/authmenu3", "label", "func", true);
- }else{
- window.setPopupMenu(false);
- }
- }
-
- if(event.button == 3 && grd_menudenyuserlist.mouseCol == 6){
- if(grd_menudenyuserlist.isCell(event.target) && grd_menudenyuserlist.mouseRow >= grd_menudenyuserlist.fixedrows){
- window.setPopupMenu(true, "/root/authmenu4", "label", "func", true);
- }else{
- window.setPopupMenu(false);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- clearParameter("SPZSA20202_");
- clearParameter("SPZSA20202_1");
- if(opt_menuauthcd.value == ""){
- model.alert("계정그룹을 선택하십시요!");
- } else {
- var col_num = grd_menudenyuserlist.col;
-
- setParameter("SPZSA20202_1", col_num);
- modal("SPZSA20202", "", "200", "200", "SPZSA20202");
- var iProperties = getParameter("SPZSA20202_");
- var iSplit_Value=iProperties.split("|");
- // var iRow = grd_menuitemlist.row;
- if(iSplit_Value.length > 0 && iSplit_Value[0] != "" && iSplit_Value[0] != undefined){
- //grd_menudenyuserlist.addItem();
- var iRow = grd_menudenyuserlist.row;
- var iNode = "/root/main/list_authuser/menudenyuserlist";
-
- // 계정그룹일 경우
- if (iSplit_Value[0]=="G")
- {
- fSetRowValue(iNode, "acntgrupcd", iSplit_Value[1], iRow); // 등록코드
- fSetRowValue(iNode, "acntgrupnm", iSplit_Value[2], iRow); // 등록명
- }
- // 근무지일 경우
- else if(iSplit_Value[0]=="D")
- {
- fSetRowValue(iNode, "dutplcecd", iSplit_Value[3] +""+ iSplit_Value[1], iRow); // 등록코드
- fSetRowValue(iNode, "dutplcenm", iSplit_Value[2], iRow); // 등록명
- }
-
- //fSetRowValue(iNode, "acntdepttype", iSplit_Value[0], iRow);
- // fSetRowValue(iNode, "rgstcd", iSplit_Value[1], iRow); // 등록코드
- //fSetRowValue(iNode, "rgstnm", iSplit_Value[2], iRow); // 등록명
- //fSetRowValue(iNode, "dutplceinstcd", iSplit_Value[3], iRow); // 근무지기관코드
- // fSetRowValue(iNode, "menuauthcd", opt_menuauthcd.value, iRow);
- var iStatus = grd_menudenyuserlist.rowstatus(iRow);
- if(iStatus=="0"){
- grd_menudenyuserlist.rowstatus(iRow) = "2";
- }
- } else {
- messageBox("데이터를 저장", "E001");
- // grd_acntitemlist.deleteItem(iRow);
- }
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1136px; top:0px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveTotal()
- ]]>
- </script>
- </button>
- <line id="line9" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- <group id="group5" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button4" class="btn4_letter2" visibility="hidden" style="left:1136px; top:0px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveTotal()
- ]]>
- </script>
- </button>
- <line id="line7" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|