SSCVO00100_LeftTree.xrw 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : 좌측메뉴
  4. * Summary : 트리메뉴
  5. * Programmer : Roger Kim
  6. * Date Written : 2007.01.23
  7. * History : 2007.7.18 SSZUM01400_메뉴리스트 반영
  8. * Remark : .
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>VOC메뉴</xhtml:title>
  14. <xhtml:style id="style_tree">
  15. <![CDATA[treeview treeitem { hover.color:blue; hover.background-color:#f5eef5; hover.text-decoration:underline; }]]>
  16. </xhtml:style>
  17. <model id="model1">
  18. <instance id="instance1">
  19. <root xmlns="">
  20. <send>
  21. <menugrupcd/>
  22. <menuitemcd/>
  23. <menuauthcd/>
  24. </send>
  25. <properties>
  26. <menuitemlist>
  27. <items>
  28. <menuitemcd/>
  29. <menuitemnm/>
  30. <level/>
  31. <scrnpos/>
  32. <scrncd/>
  33. <scrnauth/>
  34. </items>
  35. </menuitemlist>
  36. </properties>
  37. </root>
  38. </instance>
  39. <submission id="TRZUM01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/properties/menuitemlist"/>
  40. <script type="javascript" ev:event="xforms-model-construct-done">
  41. <![CDATA[
  42. var menugrupcd = getGlobalVariable("menugroupcd");
  43. var menuitemcd = getGlobalVariable("menuitemcd");
  44. model.setValue("/root/send/menugrupcd", menugrupcd.split("|")[0]);
  45. model.setValue("/root/send/menuauthcd", menugrupcd.split("|")[1]);
  46. model.setValue("/root/send/menuitemcd", menuitemcd);
  47. model.removeNodeset("/root/properties/menuitemlist/items");
  48. submit("TRZUM01401");
  49. ]]>
  50. </script>
  51. </model>
  52. </xhtml:head>
  53. <xhtml:body style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  54. <group id="grp_tree" scroll="auto" style="left:0px; top:0px; width:215px; height:744px; ">
  55. <line id="lin_tree" class="line_1" style="x1:0px; y1:0px; x2:215px; y2:0px; "/>
  56. <treeview id="trv_menuitemlist" ref="/root/send/menuitemcd" expanddepth="2" fullrowselect="true" itemsettype="depth" oneclickexpand="true" style="left:0px; top:5px; width:215px; height:723px; ">
  57. <itemset nodeset="/root/properties/menuitemlist/items">
  58. <label ref="menuitemnm"/>
  59. <value ref="menuitemcd"/>
  60. <depth ref="level"/>
  61. </itemset>
  62. <script type="javascript" ev:event="xforms-select">
  63. <![CDATA[
  64. var idx = (trv_menuitemlist.selectedindex)+1;
  65. var scrncd = model.getValue("/root/properties/menuitemlist/items["+idx+"]/scrncd");
  66. if(scrncd != ""){
  67. var scrnid = getScreenID();
  68. if(scrnid == "SPZUM01300"){
  69. fAddShortcutMenu();
  70. }else{
  71. var menuinfo = scrncd + "|"
  72. + model.getValue("/root/properties/menuitemlist/items["+idx+"]/scrnpos") + "|"
  73. + model.getValue("/root/properties/menuitemlist/items["+idx+"]/scrnauth") + "|"
  74. + model.getValue("/root/properties/menuitemlist/items["+idx+"]/menuitemcd") + "|"
  75. + model.getValue("/root/properties/menuitemlist/items["+idx+"]/menuparam") ;
  76. window.htmlwindow.openMenuItem(menuinfo);
  77. }
  78. }
  79. ]]>
  80. </script>
  81. </treeview>
  82. </group>
  83. </xhtml:body>
  84. </xhtml:html>