SSZUM01400_메뉴리스트.xrw 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>메뉴</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <menugrupcd/>
  11. <menuitemcd/>
  12. <menuauthcd/>
  13. </send>
  14. <properties>
  15. <menuitemlist>
  16. <items>
  17. <menuitemcd/>
  18. <menuitemnm/>
  19. <level/>
  20. <scrnpos/>
  21. <scrncd/>
  22. <scrnauth/>
  23. </items>
  24. </menuitemlist>
  25. </properties>
  26. </root>
  27. </instance>
  28. <submission id="TRZUM01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/properties/menuitemlist"/>
  29. <script type="javascript" ev:event="xforms-model-construct-done">
  30. <![CDATA[
  31. var menugrupcd = getGlobalVariable("menugroupcd");
  32. var menuitemcd = getGlobalVariable("menuitemcd");
  33. model.setValue("/root/send/menugrupcd", menugrupcd.split("|")[0]);
  34. model.setValue("/root/send/menuauthcd", menugrupcd.split("|")[1]);
  35. model.setValue("/root/send/menuitemcd", menuitemcd);
  36. model.removeNodeset("/root/properties/menuitemlist/items");
  37. submit("TRZUM01401");
  38. ]]>
  39. </script>
  40. </model>
  41. </xhtml:head>
  42. <xhtml:body>
  43. <treeview id="trv_menuitemlist" ref="/root/send/menuitemcd" expanddepth="-1" itemsettype="depth" style="left:0px; top:0px; width:215px; height:744px; ">
  44. <itemset nodeset="/root/properties/menuitemlist/items">
  45. <label ref="menuitemnm"/>
  46. <value ref="menuitemcd"/>
  47. <depth ref="level"/>
  48. </itemset>
  49. <script type="javascript" ev:event="xforms-select">
  50. <![CDATA[
  51. var idx = (trv_menuitemlist.selectedindex)+1;
  52. var scrncd = model.getValue("/root/properties/menuitemlist/items["+idx+"]/scrncd");
  53. var scrnauth = model.getValue("/root/properties/menuitemlist/items[" + idx + "]/scrnauth");
  54. // 해당 메뉴에 제한이 걸려있는 경우.
  55. if (scrnauth == "00000000") {
  56. messageBox("해당 화면에 대한 접근 ", "E002");
  57. return;
  58. }
  59. if(scrncd != ""){
  60. var scrnid = getScreenID();
  61. if(scrnid == "SPZUM01300"){
  62. fAddShortcutMenu();
  63. }else{
  64. var menuinfo = scrncd + "|"
  65. + model.getValue("/root/properties/menuitemlist/items["+idx+"]/scrnpos") + "|"
  66. + model.getValue("/root/properties/menuitemlist/items["+idx+"]/scrnauth") + "|"
  67. + model.getValue("/root/properties/menuitemlist/items["+idx+"]/menuitemcd") + "|"
  68. + model.getValue("/root/properties/menuitemlist/items["+idx+"]/menuparam") ;
  69. window.htmlwindow.openMenuItem(menuinfo);
  70. }
  71. }
  72. ]]>
  73. </script>
  74. </treeview>
  75. </xhtml:body>
  76. </xhtml:html>