SSCMS00100_LeftTree.xrw 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : 고객그룹 좌측메뉴
  4. * Summary : 트리메뉴
  5. * Programmer : 최정환
  6. * Date Written : 2007.03.23
  7. * History : 2007.05.23 김준규 수정
  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>좌측트리</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. <main>
  21. <grouptreeinfo>
  22. <grouptreelist>
  23. <grouplrgcd/>
  24. <groupmdlcd/>
  25. <groupsmlcd/>
  26. <groupnm/>
  27. <depth/>
  28. </grouptreelist>
  29. </grouptreeinfo>
  30. </main>
  31. <hidden>
  32. <grupinfo>
  33. <lrgrupgcd/>
  34. <mdlgrupcd/>
  35. <smlgrupcd>0</smlgrupcd>
  36. </grupinfo>
  37. </hidden>
  38. </root>
  39. </instance>
  40. <submission id="TRCMS00100" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/main/dtmntreeinfo"/>
  41. </model>
  42. <script type="javascript" ev:event="xforms-model-construct-done">
  43. <![CDATA[
  44. model.removeNodeset("/root/main/grouptreeinfo/grouptreelist");
  45. submit("TRCMS00100");
  46. fCheckAuth();
  47. model.refresh();
  48. ]]>
  49. </script>
  50. <script type="javascript">
  51. <![CDATA[
  52. // 그리드를 초기화한다.
  53. function fInitGrid(){
  54. model.removeNodeset("/root/main/grouptreeinfo/grouptreelist");
  55. submit("TRCMS00100");
  56. // model.refresh();
  57. }
  58. function fCheckAuth() {
  59. // 권한체크
  60. //if (!checkAuth("r")) {
  61. //}
  62. if (!checkAuth("x")) {
  63. btn_mnggrp.disabled=true;
  64. }
  65. //if (!checkAuth("p")) {
  66. //}
  67. }
  68. ]]>
  69. </script>
  70. </xhtml:head>
  71. <xhtml:body style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  72. <group id="grp_tree" scroll="auto" style="left:0px; top:0px; width:215px; height:744px; ">
  73. <line id="lin_tree" class="line_1" style="x1:0px; y1:0px; x2:215px; y2:0px; "/>
  74. <treeview id="trv_leftmenu" ref="/root/hidden/grupinfo/smlgrupcd" expanddepth="0" fullrowselect="true" itemsettype="depth" oneclickexpand="true" style="left:0px; top:5px; width:215px; height:710px; ">
  75. <itemset nodeset="/root/main/grouptreeinfo/grouptreelist">
  76. <label ref="groupnm"/>
  77. <value ref="groupsmlcd"/>
  78. <depth ref="depth"/>
  79. </itemset>
  80. <script type="javascript" ev:event="xforms-select">
  81. <![CDATA[
  82. var grup_smlcd = trv_leftmenu.value;
  83. if (grup_smlcd > 0) {
  84. model.makeValue("/root/hidden/grupinfo/smlgrupcd", grup_smlcd);
  85. navigate("SMCMS00200", "", "", "", "SMCMS00200", "/root/hidden/grupinfo", "/root/send/grupinfo");
  86. }
  87. ]]>
  88. </script>
  89. </treeview>
  90. <button id="btn_mnggrp" class="btn2_letter4" style="left:151px; top:718px; width:64px; height:19px; ">
  91. <caption>그룹관리</caption>
  92. <script type="javascript" ev:event="DOMActivate">
  93. <![CDATA[
  94. modal("SPCMZ00100");
  95. ]]>
  96. </script>
  97. </button>
  98. </group>
  99. </xhtml:body>
  100. </xhtml:html>