cae64e7b4378be50d3005e7f6a5fc6901194e1b5.svn-base 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../css/body.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>
  6. <![CDATA[新余钢铁股份有限公司产销MES系统-II >> 菜单选取]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <initData>
  12. <rcvInfo/>
  13. <scrInfo>
  14. <MNSCR_URL/>
  15. <SCR_PATH/>
  16. <MNSCR_ID/>
  17. </scrInfo>
  18. <scrList/>
  19. </initData>
  20. <formData>
  21. <searchInfo>
  22. <MNSCR_ID/>
  23. </searchInfo>
  24. </formData>
  25. <treeData>
  26. <MENU/>
  27. </treeData>
  28. </root>
  29. </instance>
  30. <script type="javascript" ev:event="xforms-ready">
  31. <![CDATA[
  32. showProgressBar();
  33. exec("/root/initData/rcvInfo", "", "", "/root/treeData/MENU/ListResult_0_VO");
  34. var cnt = model.getXPathValue("count(/root/treeData/MENU/ListResult_0_VO/ListResult_0_Row)");
  35. isUseDeptPriv = model.getXPathValue("count(/root/resData/ListResult_2_VO/ListResult_2_Row)") > 0;
  36. if (isUseDeptPriv) {
  37. for (var i = cnt; i > 0; i--) {
  38. var mnscr = model.getValue("/root/treeData/MENU/ListResult_0_VO/ListResult_0_Row[" + i + "]/MNSCR_ID");
  39. if (model.getValue("/root/resData/ListResult_1_VO/ListResult_1_Row[MNSCR_ID = '" + mnscr + "']/MNSCR_ID") == "" ||
  40. model.getValue("/root/resData/ListResult_2_VO/ListResult_2_Row[MNSCR_ID = '" + mnscr + "']/MNSCR_ID") == "")
  41. model.removenode("/root/treeData/MENU/ListResult_0_VO/ListResult_0_Row[" + i + "]");
  42. }
  43. } else {
  44. for (var i = cnt; i > 0; i--) {
  45. var mnscr = model.getValue("/root/treeData/MENU/ListResult_0_VO/ListResult_0_Row[" + i + "]/MNSCR_ID");
  46. if (model.getValue("/root/resData/ListResult_1_VO/ListResult_1_Row[MNSCR_ID = '" + mnscr + "']/MNSCR_ID") == "")
  47. model.removenode("/root/treeData/MENU/ListResult_0_VO/ListResult_0_Row[" + i + "]");
  48. }
  49. }
  50. pageInit();
  51. removeProgressBar();
  52. ]]>
  53. </script>
  54. </model>
  55. <script type="javascript" src="../../js/boaCommon.js"/>
  56. <script type="javascript" src="../../js/boaMsg.js"/>
  57. <script type="javascript" src="../../js/mesCommon.js"/>
  58. <script type="javascript">
  59. <![CDATA[
  60. submitID = "menu-service";
  61. function pageInit() {
  62. model.removenode("/root/reqData");
  63. model.removenode("/root/resData");
  64. model.refresh();
  65. }
  66. var isUseDeptPriv = true;
  67. ]]>
  68. </script>
  69. </xhtml:head>
  70. <xhtml:body pagewidth="980" pageheight="703" style="font-family:宋体; ">
  71. <treeview id="treeview1" ref="/root/formData/searchInfo/MNSCR_ID" checkchildren="true" expanddepth="1" hascheck="false" image="../../images/blt_1.gif" itemsettype="depth" style="left:120px; top:120px; width:360px; height:400px; border-style:solid; ">
  72. <itemset nodeset="/root/treeData/MENU/ListResult_0_VO/ListResult_0_Row">
  73. <label ref="MNSCR_NM"/>
  74. <value ref="MNSCR_ID"/>
  75. <depth ref="LEVEL"/>
  76. </itemset>
  77. <script type="javascript" ev:event="xforms-value-changed">
  78. <![CDATA[
  79. var treeview = treeview1;
  80. var focusIndex = treeview.focusIndex;
  81. var depth = treeview.item(focusIndex).depth;
  82. try {
  83. if (depth < treeview.item(focusIndex + 1).depth) return;
  84. } catch(e) {}
  85. showProgressBar();
  86. exec("/root/formData/searchInfo,/root/initData/rcvInfo", "", "find", "/root/initData/scrList/ListResult_0_VO");
  87. if (isUseDeptPriv) {
  88. var cnt = model.getXPathValue("count(/root/initData/scrList/ListResult_0_VO/ListResult_0_Row)");
  89. for (var i = cnt; i > 1; i--) {
  90. var mnscr = model.getValue("/root/initData/scrList/ListResult_0_VO/ListResult_0_Row[" + i + "]/MNSCR_ID");
  91. if (model.getValue("/root/resData/ListResult_1_VO/ListResult_1_Row[MNSCR_ID = '" + mnscr + "']/MNSCR_ID") == "")
  92. model.removenode("/root/initData/scrList/ListResult_0_VO/ListResult_0_Row[" + i + "]");
  93. }
  94. }
  95. pageInit();
  96. treeview2.rebuild();
  97. var SCR_PATH = "";
  98. while (focusIndex >= 0) {
  99. var path = model.getValue("/root/treeData/MENU/ListResult_0_VO/ListResult_0_Row["+(focusIndex+1)+"]/MNSCR_ID");
  100. if (path.length <= 3) SCR_PATH = path + "/" + SCR_PATH;
  101. focusIndex = treeview.item(focusIndex).parentindex;
  102. }
  103. model.setValue("/root/initData/scrInfo/SCR_PATH", "../../" + SCR_PATH);
  104. removeProgressBar();
  105. ]]>
  106. </script>
  107. </treeview>
  108. <treeview id="treeview2" ref="/root/initData/scrInfo/MNSCR_ID" checkchildren="true" expanddepth="-1" hascheck="false" image="../../images/blt_1.gif" itemsettype="depth" style="left:515px; top:120px; width:360px; height:400px; border-style:solid; ">
  109. <itemset nodeset="/root/initData/scrList/ListResult_0_VO/ListResult_0_Row">
  110. <label ref="MNSCR_NM"/>
  111. <value ref="MNSCR_ID"/>
  112. <depth ref="LEVEL"/>
  113. </itemset>
  114. <script type="javascript" ev:event="xforms-value-changed">
  115. <![CDATA[
  116. var treeview = treeview2;
  117. var focusIndex = treeview.focusIndex;
  118. if (treeview.item(focusIndex++).depth < 1) return;
  119. model.setValue("/root/initData/scrInfo/MNSCR_URL",
  120. model.getValue("/root/initData/scrList/ListResult_0_VO/ListResult_0_Row["+focusIndex+"]/MNSCR_URL"));
  121. window.load("./main.xrw", "replace", "", "", "/root/initData", "root/initData");
  122. ]]>
  123. </script>
  124. </treeview>
  125. <caption id="caption1" style="left:240px; top:95px; width:100px; height:20px; ">菜单选取</caption>
  126. <caption id="caption2" style="left:665px; top:95px; width:100px; height:20px; ">界面选取</caption>
  127. <group id="group1" overflow="hidden" style="left:0px; top:0px; width:980px; height:80px; background-image:../../images/btn_exit.GIF; ">
  128. <caption id="caption100" style="left:470px; top:1px; width:305px; height:15px; background-image:../../images/tit.gif; ">
  129. <![CDATA[ 公共管理 >> 菜单选取]]>
  130. </caption>
  131. <caption id="caption3" style="left:820px; top:30px; width:70px; height:20px; color:#000000; text-align:right; vertical-align:middle; background-image:../../images/btn_create.gif; cursor:hand; ">
  132. <![CDATA[更改密码]]>
  133. <script type="javascript" ev:event="onclick">
  134. <![CDATA[
  135. var vleft = window.screenLeft + window.width/2 - 100;
  136. var vtop = window.screenTop + window.height/2 - 75;
  137. window.load("./password.xrw", "modal", "",
  138. "left:"+vleft+"; top:"+vtop+"; width:310; height:210; caption:hidden; overflow:hidden",
  139. "/root/initData/rcvInfo", "/root/initData/rcvInfo");
  140. ]]>
  141. </script>
  142. </caption>
  143. <caption id="caption4" style="left:895px; top:30px; width:75px; height:20px; color:#000000; text-align:center; vertical-align:middle; background-image:../../images/btn_exit.gif; border-color:#ffffff; border-style:solid; cursor:hand; ">
  144. <![CDATA[ 退 出]]>
  145. <script type="javascript" ev:event="onclick">
  146. <![CDATA[
  147. window.load("./login.xrw", "replace");
  148. ]]>
  149. </script>
  150. </caption>
  151. <img id="img1" src="../../images/topframe.jpg" style="left:0px; top:0px; width:461px; height:40px; background-stretch:stretch; "/>
  152. </group>
  153. </xhtml:body>
  154. </xhtml:html>