12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>메뉴</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <menugrupcd/>
- <menuitemcd/>
- <menuauthcd/>
- </send>
- <properties>
- <menuitemlist>
- <items>
- <menuitemcd/>
- <menuitemnm/>
- <level/>
- <scrnpos/>
- <scrncd/>
- <scrnauth/>
- </items>
- </menuitemlist>
- </properties>
- </root>
- </instance>
- <submission id="TRZUM01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/properties/menuitemlist"/>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- var menugrupcd = getGlobalVariable("menugroupcd");
- var menuitemcd = getGlobalVariable("menuitemcd");
-
- model.setValue("/root/send/menugrupcd", menugrupcd.split("|")[0]);
- model.setValue("/root/send/menuauthcd", menugrupcd.split("|")[1]);
- model.setValue("/root/send/menuitemcd", menuitemcd);
- model.removeNodeset("/root/properties/menuitemlist/items");
- submit("TRZUM01401");
- ]]>
- </script>
- </model>
- </xhtml:head>
- <xhtml:body>
- <treeview id="trv_menuitemlist" ref="/root/send/menuitemcd" expanddepth="-1" itemsettype="depth" style="left:0px; top:0px; width:215px; height:744px; ">
- <itemset nodeset="/root/properties/menuitemlist/items">
- <label ref="menuitemnm"/>
- <value ref="menuitemcd"/>
- <depth ref="level"/>
- </itemset>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var idx = (trv_menuitemlist.selectedindex)+1;
- var scrncd = model.getValue("/root/properties/menuitemlist/items["+idx+"]/scrncd");
- var scrnauth = model.getValue("/root/properties/menuitemlist/items[" + idx + "]/scrnauth");
-
- // 해당 메뉴에 제한이 걸려있는 경우.
- if (scrnauth == "00000000") {
- messageBox("해당 화면에 대한 접근 ", "E002");
- return;
- }
-
- if(scrncd != ""){
- var scrnid = getScreenID();
- if(scrnid == "SPZUM01300"){
- fAddShortcutMenu();
- }else{
- var menuinfo = scrncd + "|"
- + model.getValue("/root/properties/menuitemlist/items["+idx+"]/scrnpos") + "|"
- + model.getValue("/root/properties/menuitemlist/items["+idx+"]/scrnauth") + "|"
- + model.getValue("/root/properties/menuitemlist/items["+idx+"]/menuitemcd") + "|"
- + model.getValue("/root/properties/menuitemlist/items["+idx+"]/menuparam") ;
- window.htmlwindow.openMenuItem(menuinfo);
- }
- }
- ]]>
- </script>
- </treeview>
- </xhtml:body>
- </xhtml:html>
|