SSCVA00100_LeftTree.xrw 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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 = model.property("gsv_menugroupcd");
  43. // var menuitemcd = model.property("gsv_menuitemcd");
  44. var menugrupcd = getGlobalVariable("menugroupcd");
  45. var menuitemcd = getGlobalVariable("menuitemcd");
  46. model.setValue("/root/send/menugrupcd", menugrupcd.split("|")[0]);
  47. model.setValue("/root/send/menuauthcd", menugrupcd.split("|")[1]);
  48. model.setValue("/root/send/menuitemcd", menuitemcd);
  49. model.removeNodeset("/root/properties/menuitemlist/items");
  50. submit("TRZUM01401");
  51. ]]>
  52. </script>
  53. </model>
  54. </xhtml:head>
  55. <xhtml:body style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  56. <group id="grp_tree" scroll="auto" style="left:0px; top:0px; width:215px; height:744px; ">
  57. <line id="lin_tree" class="line_1" style="x1:0px; y1:0px; x2:215px; y2:0px; "/>
  58. <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; ">
  59. <itemset nodeset="/root/properties/menuitemlist/items">
  60. <label ref="menuitemnm"/>
  61. <value ref="menuitemcd"/>
  62. <depth ref="level"/>
  63. </itemset>
  64. <script type="javascript" ev:event="xforms-select">
  65. <![CDATA[
  66. var idx = (trv_menuitemlist.selectedindex)+1;
  67. var scrncd = model.getValue("/root/properties/menuitemlist/items["+idx+"]/scrncd");
  68. if(scrncd != ""){
  69. var scrnid = getScreenID();
  70. if(scrnid == "SPZUM01300"){
  71. fAddShortcutMenu();
  72. }else{
  73. var menuinfo = scrncd + "|"
  74. + model.getValue("/root/properties/menuitemlist/items["+idx+"]/scrnpos") + "|"
  75. + model.getValue("/root/properties/menuitemlist/items["+idx+"]/scrnauth") + "|"
  76. + model.getValue("/root/properties/menuitemlist/items["+idx+"]/menuitemcd") + "|"
  77. + model.getValue("/root/properties/menuitemlist/items["+idx+"]/menuparam") ;
  78. window.htmlwindow.openMenuItem(menuinfo);
  79. }
  80. }
  81. ]]>
  82. </script>
  83. </treeview>
  84. </group>
  85. </xhtml:body>
  86. </xhtml:html>