| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../css/body.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>
- <![CDATA[MES系统 >> 菜单选取]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <initData>
- <rcvInfo/>
- <scrInfo>
- <MNSCR_URL/>
- <SCR_PATH/>
- <MNSCR_ID/>
- </scrInfo>
- <scrList/>
- </initData>
- <formData>
- <searchInfo>
- <MNSCR_ID/>
- </searchInfo>
- </formData>
- <treeData>
- <MENU/>
- </treeData>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- showProgressBar();
- exec("/root/initData/rcvInfo", "", "", "/root/treeData/MENU/ListResult_0_VO");
- var cnt = model.getXPathValue("count(/root/treeData/MENU/ListResult_0_VO/ListResult_0_Row)");
- isUseDeptPriv = model.getXPathValue("count(/root/resData/ListResult_2_VO/ListResult_2_Row)") > 0;
- if (isUseDeptPriv) {
- for (var i = cnt; i > 0; i--) {
- var mnscr = model.getValue("/root/treeData/MENU/ListResult_0_VO/ListResult_0_Row[" + i + "]/MNSCR_ID");
- if (model.getValue("/root/resData/ListResult_1_VO/ListResult_1_Row[MNSCR_ID = '" + mnscr + "']/MNSCR_ID") == "" ||
- model.getValue("/root/resData/ListResult_2_VO/ListResult_2_Row[MNSCR_ID = '" + mnscr + "']/MNSCR_ID") == "")
- model.removenode("/root/treeData/MENU/ListResult_0_VO/ListResult_0_Row[" + i + "]");
- }
- } else {
- for (var i = cnt; i > 0; i--) {
- var mnscr = model.getValue("/root/treeData/MENU/ListResult_0_VO/ListResult_0_Row[" + i + "]/MNSCR_ID");
- if (model.getValue("/root/resData/ListResult_1_VO/ListResult_1_Row[MNSCR_ID = '" + mnscr + "']/MNSCR_ID") == "")
- model.removenode("/root/treeData/MENU/ListResult_0_VO/ListResult_0_Row[" + i + "]");
- }
- }
- pageInit();
- removeProgressBar();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/mesCommon.js"/>
- <script type="javascript">
- <![CDATA[
- submitID = "menu-service";
- function pageInit() {
- model.removenode("/root/reqData");
- model.removenode("/root/resData");
- model.refresh();
- }
- var isUseDeptPriv = true;
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body overflow="hidden" pagewidth="708" pageheight="500" guideline="2,500;1,708;" style="font-family:宋体; ">
- <treeview id="treeview1" ref="/root/formData/searchInfo/MNSCR_ID" checkchildren="true" expanddepth="1" hascheck="false" image="../../images/blt_1.gif" itemsettype="depth" style="left:40px; top:100px; width:300px; height:370px; border-style:solid; ">
- <itemset nodeset="/root/treeData/MENU/ListResult_0_VO/ListResult_0_Row">
- <label ref="MNSCR_NM"/>
- <value ref="MNSCR_ID"/>
- <depth ref="LEVEL"/>
- </itemset>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var treeview = treeview1;
- var focusIndex = treeview.focusIndex;
- var depth = treeview.item(focusIndex).depth;
- try {
- if (depth < treeview.item(focusIndex + 1).depth) return;
- } catch(e) {}
- showProgressBar();
- exec("/root/formData/searchInfo,/root/initData/rcvInfo", "", "find", "/root/initData/scrList/ListResult_0_VO");
- if (isUseDeptPriv) {
- var cnt = model.getXPathValue("count(/root/initData/scrList/ListResult_0_VO/ListResult_0_Row)");
- for (var i = cnt; i > 1; i--) {
- var mnscr = model.getValue("/root/initData/scrList/ListResult_0_VO/ListResult_0_Row[" + i + "]/MNSCR_ID");
- if (model.getValue("/root/resData/ListResult_1_VO/ListResult_1_Row[MNSCR_ID = '" + mnscr + "']/MNSCR_ID") == "")
- model.removenode("/root/initData/scrList/ListResult_0_VO/ListResult_0_Row[" + i + "]");
- }
- }
- pageInit();
- treeview2.rebuild();
- var SCR_PATH = "";
- while (focusIndex >= 0) {
- var path = model.getValue("/root/treeData/MENU/ListResult_0_VO/ListResult_0_Row["+(focusIndex+1)+"]/MNSCR_ID");
- if (path.length <= 3) SCR_PATH = path + "/" + SCR_PATH;
- focusIndex = treeview.item(focusIndex).parentindex;
- }
- model.setValue("/root/initData/scrInfo/SCR_PATH", "../../" + SCR_PATH);
- removeProgressBar();
- ]]>
- </script>
- </treeview>
- <treeview id="treeview2" ref="/root/initData/scrInfo/MNSCR_ID" checkchildren="true" expanddepth="-1" hascheck="false" image="../../images/blt_1.gif" itemsettype="depth" style="left:370px; top:100px; width:300px; height:370px; border-style:solid; ">
- <itemset nodeset="/root/initData/scrList/ListResult_0_VO/ListResult_0_Row">
- <label ref="MNSCR_NM"/>
- <value ref="MNSCR_ID"/>
- <depth ref="LEVEL"/>
- </itemset>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var treeview = treeview2;
- var focusIndex = treeview.focusIndex;
- if (treeview.item(focusIndex++).depth < 1) return;
- model.setValue("/root/initData/scrInfo/MNSCR_URL",
- model.getValue("/root/initData/scrList/ListResult_0_VO/ListResult_0_Row["+focusIndex+"]/MNSCR_URL"));
- duplicate(model.instances(0).selectSingleNode("/root/initData"),
- window.parent.model.instances(0).selectSingleNode("/root/initData"));
- window.close();
- ]]>
- </script>
- </treeview>
- <caption id="caption1" style="left:160px; top:80px; width:100px; height:20px; ">菜单选取</caption>
- <caption id="caption2" style="left:465px; top:80px; width:100px; height:20px; ">界面选取</caption>
- <group id="group1" overflow="hidden" style="left:0px; top:0px; width:708px; height:80px; ">
- <caption id="caption100" style="left:470px; top:1px; width:305px; height:15px; background-image:../../images/tit.gif; ">
- <![CDATA[ 公共管理 >> 菜单选取]]>
- </caption>
- <caption id="caption4" style="left:630px; top:30px; width:73px; height:20px; color:#000000; text-align:right; vertical-align:middle; background-image:../../images/btn_exit.gif; cursor:hand; ">
- <![CDATA[ 退 出 ]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </caption>
- <img id="img1" src="../../images/topframe.jpg" style="left:0px; top:0px; width:461px; height:40px; background-stretch:stretch; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|