6d8021f692bd2dde511a3bf2ea6cf9914f88c67c.svn-base 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../css/body.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>
  6. <![CDATA[公用界面管理 >> 权限设置管理 >> 用户使用权限设定]]>
  7. </xhtml:title>
  8. <model id="model1" autocdata="false">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <initData>
  12. </initData>
  13. <codeData>
  14. </codeData>
  15. <formData>
  16. <searchInfo>
  17. <USER_NM/>
  18. <DEPT_CD/>
  19. <P_DEPT_CD/>
  20. </searchInfo>
  21. <searchInfo2>
  22. <USER_CD/>
  23. <ROLE_CD/>
  24. <MNSCR_ID>*</MNSCR_ID>
  25. </searchInfo2>
  26. </formData>
  27. <gridData>
  28. <viewItem>A</viewItem>
  29. </gridData>
  30. </root>
  31. </instance>
  32. <script type="javascript" ev:event="xforms-ready">
  33. <![CDATA[
  34. if (window.parent == null) Init();
  35. ]]>
  36. </script>
  37. </model>
  38. <script type="javascript" src="../../js/boaCommon.js"/>
  39. <script type="javascript" src="../../js/boaMsg.js"/>
  40. <script type="javascript" src="../../js/mesCommon.js">
  41. <![CDATA[
  42. var submitID = "UIZ020050-service";
  43. var isValid = false;
  44. var isUseDeptPriv = true;
  45. function Init(node) {
  46. InitParams(node);
  47. isValid = model.getValue("/root/initData/rcvInfo/ROOT_AMN_YN") == "Y" ||
  48. model.getValue("/root/initData/rcvInfo/DEPT_MNG_YN") == "Y";
  49. if (isValid == false) return;
  50. if (model.getValue("/root/initData/rcvInfo/ROOT_AMN_YN") == "Y")
  51. model.setValue("/root/initData/rcvInfo/DEPT_CD", "00000000");
  52. else {
  53. var datagrid = datagrid1;
  54. datagrid.colAttribute(datagrid.colRef("ROOT_AMN_YN"), "visibility") = "hidden";
  55. datagrid.colAttribute(datagrid.colRef("DEPT_MNG_YN"), "visibility") = "hidden";
  56. }
  57. exec("/root/initData/rcvInfo", "", "", "/root/codeData/ListResult_0_VO", "/root/codeData/ListResult_1_VO",
  58. "/root/codeData/ListResult_2_VO",
  59. "/root/codeData/ListResult_3_VO", "/root/codeData/ListResult_4_VO", "/root/codeData/ListResult_5_VO");
  60. // 设定当前部门代码
  61. model.setValue("/root/formData/searchInfo/DEPT_CD", model.getValue("/root/codeData/ListResult_0_VO/ListResult_0_Row/DEPT_CD"));
  62. // 设置当前菜单代码
  63. var cnt = model.getXPathValue("count(/root/codeData/ListResult_3_VO/ListResult_1_Row)");
  64. isUseDeptPriv = model.getXPathValue("count(/root/resData/ListResult_5_VO/ListResult_5_Row)") > 0;
  65. if (isUseDeptPriv) {
  66. for (var i = cnt; i > 0; i--) {
  67. var mnscr = model.getValue("/root/codeData/ListResult_3_VO/ListResult_3_Row[" + i + "]/MNSCR_ID");
  68. if (model.getValue("/root/codeData/ListResult_4_VO/ListResult_4_Row[MNSCR_ID = '" + mnscr + "']/MNSCR_ID") == "" ||
  69. model.getValue("/root/codeData/ListResult_5_VO/ListResult_5_Row[MNSCR_ID = '" + mnscr + "']/MNSCR_ID") == "")
  70. model.removenode("/root/codeData/ListResult_3_VO/ListResult_3_Row[" + i + "]");
  71. }
  72. } else {
  73. for (var i = cnt; i > 0; i--) {
  74. var mnscr = model.getValue("/root/codeData/ListResult_3_VO/ListResult_3_Row[" + i + "]/MNSCR_ID");
  75. if (model.getValue("/root/codeData/ListResult_4_VO/ListResult_4_Row[MNSCR_ID = '" + mnscr + "']/MNSCR_ID") == "")
  76. model.removenode("/root/codeData/ListResult_3_VO/ListResult_3_Row[" + i + "]");
  77. }
  78. }
  79. model.duplicate("/root/formData/searchInfo", "/root/initData/rcvInfo/REG_ID");
  80. model.duplicate("/root/formData/searchInfo2", "/root/initData/rcvInfo/REG_ID");
  81. pageInit();
  82. }
  83. function pageInit() {
  84. model.removenode("/root/reqData");
  85. model.removenode("/root/resData");
  86. model.refresh();
  87. var datagrid = datagrid1;
  88. datagrid.rebuild();
  89. commGridInit(datagrid);
  90. var colRef = datagrid.colRef("USER_CD");
  91. datagrid.isReadOnly(0, colRef, datagrid.rows-1, colRef) = true;
  92. colStyle(datagrid, "USER_NM,M_USER_PW,DEPT_NM,DEPT_MNG_YN,ROOT_AMN_YN,ROLE_CD,LOCKED_YN");
  93. commGridLevels(datagrid);
  94. var cols = datagrid.cols - 1;
  95. var rows = datagrid.rows;
  96. var colRef = datagrid.colRef("USER_NM");
  97. for (var i=datagrid.fixedRows; i<rows; i++) {
  98. if (datagrid.valueMatrix(i, colRef) == "") {
  99. datagrid.isReadOnly(i, 0, i, cols) = true;
  100. // datagrid.rowStyle(i, "data", "background-color") = initCellStyle;
  101. }
  102. }
  103. }
  104. function find() {
  105. if (isValid == false) return;
  106. exec("/root/formData/searchInfo", "", "find", "/root/gridData/ListResult_0_VO", "/root/gridData/ListResult_1_VO");
  107. treeview2.value = treeview1.value;
  108. model.setValue("/root/formData/searchInfo2/USER_CD", "");
  109. radio1.dispatch("xforms-value-changed");
  110. }
  111. function save() {
  112. if (isValid == false) return;
  113. exec("/root/formData/searchInfo", datagrid1, "save", "/root/gridData/ListResult_0_VO",
  114. "/root/gridData/ListResult_1_VO", "/root/gridData/ListResult_2_VO");
  115. radio1.dispatch("xforms-value-changed");
  116. }
  117. function create() {
  118. if (isValid == false) return;
  119. if (treeview3.value == "") {
  120. alert("请先查询记录!!!");
  121. return;
  122. }
  123. var datagrid = datagrid1;
  124. var row = datagrid.rows;
  125. commAddRow(datagrid, "USER_CD,USER_NM,USER_PW,DEPT_NM,ROOT_AMN_YN,DEPT_MNG_YN");
  126. if (model.getValue("/root/initData/rcvInfo/ROOT_AMN_YN") != "Y") {
  127. var colRef = datagrid.colRef("ROOT_AMN_YN");
  128. datagrid.isReadOnly(row, colRef, row, colRef) = true;
  129. colRef = datagrid.colRef("DEPT_MNG_YN");
  130. datagrid.isReadOnly(row, colRef, row, colRef) = true;
  131. }
  132. datagrid.valueMatrix(row, datagrid.colRef("DEPT_NM")) = treeview1.label;
  133. datagrid.valueMatrix(row, datagrid.colRef("DEPT_CD")) = treeview1.value;
  134. }
  135. function remove() {
  136. if (isValid == false) return;
  137. var datagrid = datagrid1;
  138. if (datagrid.rows - datagrid.fixedRows == 0) {
  139. alert("网格中没有记录!!!");
  140. return;
  141. }
  142. if(commComfirmBox("确定要删除选定行?", "删除确认") == '0') return;
  143. commDelRow(datagrid, "CHK", "", "USER_CD", "USER_NM,USER_PW,DEPT_NM,DEPT_MNG_YN,ROOT_AMN_YN");
  144. }
  145. function find2(refresh) {
  146. showProgressBar();
  147. if (model.getValue("/root/formData/searchInfo2/USER_CD") == "") {
  148. model.removeNodeset("/root/gridData/ListResult_1_VO");
  149. } else {
  150. if (typeof refresh == "undefined"|| refresh == null || refresh == "") refresh = true;
  151. if (refresh) exec("/root/formData/searchInfo2", "", "onclick", "/root/gridData/ListResult_1_VO", "/root/gridData/ListResult_2_VO");
  152. }
  153. if (model.getValue("/root/formData/searchInfo2/USER_CD") != "") {
  154. var cnt = model.getXPathValue("count(/root/gridData/ListResult_1_VO/ListResult_1_Row)");
  155. if (isUseDeptPriv) {
  156. for (var i = cnt; i > 0; i--) {
  157. var mnscr = model.getValue("/root/gridData/ListResult_1_VO/ListResult_1_Row[" + i + "]/MNSCR_ID");
  158. if (model.getValue("/root/codeData/ListResult_4_VO/ListResult_4_Row[MNSCR_ID = '" + mnscr + "']/MNSCR_ID") == "" ||
  159. model.getValue("/root/codeData/ListResult_5_VO/ListResult_5_Row[MNSCR_ID = '" + mnscr + "']/MNSCR_ID") == "")
  160. model.removenode("/root/gridData/ListResult_1_VO/ListResult_1_Row[" + i + "]");
  161. }
  162. } else {
  163. for (var i = cnt; i > 0; i--) {
  164. var mnscr = model.getValue("/root/gridData/ListResult_1_VO/ListResult_1_Row[" + i + "]/MNSCR_ID");
  165. if (model.getValue("/root/codeData/ListResult_4_VO/ListResult_4_Row[MNSCR_ID = '" + mnscr + "']/MNSCR_ID") == "")
  166. model.removenode("/root/gridData/ListResult_1_VO/ListResult_1_Row[" + i + "]");
  167. }
  168. }
  169. }
  170. model.removenode("/root/reqData");
  171. model.removenode("/root/resData");
  172. output201.refresh();
  173. var datagrid = datagrid2;
  174. datagrid.rebuild();
  175. if (model.getValue("/root/formData/searchInfo2/USER_CD") != "") {
  176. commGridInit(datagrid);
  177. var colRef = datagrid.colRef("FCNRS_REF");
  178. var colChk = datagrid.colRef("CHK");
  179. var rows = datagrid.rows;
  180. for (var i = datagrid.fixedRows; i < rows; i++) {
  181. if (datagrid.valueMatrix(i, colRef) == "Y")
  182. datagrid.isReadOnly(i, colChk, i, colChk) = true;
  183. }
  184. colStyle(datagrid, "CHK");
  185. colRef = datagrid.colRef("FC_ID") + 1;
  186. datagrid.isReadOnly(0, colRef, 0, colRef) = true
  187. commGridLevels(datagrid);
  188. }
  189. removeProgressBar();
  190. }
  191. function save2(datagrid, action) {
  192. var rowSep = (datagrid.attribute("rowsep")=='')?'|':datagrid.attribute('rowsep');
  193. var colSep = (datagrid.attribute("colsep")=='')?'^':datagrid.attribute('colsep');
  194. var data = datagrid.getUpdateData();
  195. var up_data = data.split(rowSep);
  196. var rows = up_data.length - 1;
  197. var colRef = datagrid.colRef("MOD_ID");
  198. var colChk = datagrid.colRef("CHK");
  199. for (var i=1; i<rows; i++) {
  200. var vRow = up_data[i].split(colSep);
  201. var Idx = Number(vRow[1]);
  202. /* FC_REF为空串时,记录不存在 */
  203. var ref = datagrid.valueMatrix(Idx, colRef);
  204. var chk = datagrid.valueMatrix(Idx, colChk);
  205. datagrid.rowStatus(Idx) = 0;
  206. if (ref == "") { // 插入
  207. if (chk == "Y") datagrid.addStatus(Idx, "insert");
  208. } else { // 删除
  209. if (chk == "N") datagrid.addStatus(Idx, "delete");
  210. }
  211. }
  212. exec("/root/formData/searchInfo2", datagrid, action, "/root/gridData/ListResult_1_VO", "/root/gridData/ListResult_2_VO");
  213. find2(false);
  214. }
  215. var onrowchanged = false;
  216. ]]>
  217. </script>
  218. </xhtml:head>
  219. <xhtml:body overflow="hidden" pagewidth="980" pageheight="620" style="font-family:宋体; ">
  220. <group id="group1" style="left:0px; top:0px; width:980px; height:30px; ">
  221. <line id="line2" style="x1:0px; y1:29px; x2:980px; y2:29px; "/>
  222. <caption id="caption101" class="cell" style="left:0px; top:5px; width:90px; height:20px; vertical-align:middle; ">用户</caption>
  223. <input id="input101" ref="/root/formData/searchInfo/USER_NM" style="left:92px; top:5px; width:110px; height:20px; background-color:#ffffff; border-style:solid; "/>
  224. <caption id="caption102" class="cell" style="left:212px; top:5px; width:90px; height:20px; vertical-align:middle; ">部门</caption>
  225. <input id="input102" ref="/root/codeData/ListResult_0_VO/ListResult_0_Row[DEPT_CD=/root/formData/searchInfo/DEPT_CD]/DEPT_NM" editable="false" inputtype="button" style="left:304px; top:5px; width:200px; height:20px; ">
  226. <script type="javascript" ev:event="onclick">
  227. <![CDATA[
  228. treeview1.visible = (treeview1.visible == false);
  229. ]]>
  230. </script>
  231. </input>
  232. <select1 id="radio1" ref="/root/gridData/viewItem" appearance="full" cols="3" style="left:515px; top:5px; width:155px; height:20px; border-style:none; ">
  233. <choices>
  234. <item>
  235. <label>所有</label>
  236. <value>A</value>
  237. </item>
  238. <item>
  239. <label>非禁项</label>
  240. <value>N</value>
  241. </item>
  242. <item>
  243. <label>禁用项</label>
  244. <value>Y</value>
  245. </item>
  246. </choices>
  247. <script type="javascript" ev:event="xforms-value-changed">
  248. <![CDATA[
  249. var datagrid = datagrid1;
  250. switch (model.getValue("/root/gridData/viewItem")) {
  251. case "N":
  252. datagrid.nodeset = "/root/gridData/ListResult_0_VO/ListResult_0_Row[LOCKED_YN != 'Y']";
  253. break;
  254. case "Y":
  255. datagrid.nodeset = "/root/gridData/ListResult_0_VO/ListResult_0_Row[LOCKED_YN = 'Y']";
  256. break;
  257. default : datagrid.nodeset = "/root/gridData/ListResult_0_VO/ListResult_0_Row";
  258. }
  259. pageInit();
  260. ]]>
  261. </script>
  262. </select1>
  263. </group>
  264. <datagrid id="datagrid1" nodeset="/root/gridData/ListResult_0_VO/ListResult_0_Row" caption="用户代码^用户姓名^用户密码^部门名称^部门管理^最高管理^所属角色^禁用^修改人^修改时间^DEPT_CD^USER_PW" colsep="^" colwidth="150, 100, 100, 120, 35, 35, 100, 35, 100, 120, 60, 60" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheight="42" rowsep="|" style="left:0px; top:34px; width:980px; height:265px; border-style:solid; border-right-style:sunken; ">
  265. <col ref="USER_CD" type="input" style="text-align:left; "/>
  266. <col ref="USER_NM" type="input" style="text-align:left; "/>
  267. <col key="false" ref="M_USER_PW" secretmark="*" secretstartposition="0" type="input" style="text-align:left; "/>
  268. <col key="false" ref="DEPT_NM" type="inputbutton" style="text-align:left; "/>
  269. <col checkvalue="Y,N" ref="DEPT_MNG_YN" type="checkbox"/>
  270. <col checkvalue="Y,N" ref="ROOT_AMN_YN" type="checkbox"/>
  271. <col ref="ROLE_CD" type="combo">
  272. <choices>
  273. <itemset nodeset="/root/codeData/ListResult_1_VO/ListResult_1_Row">
  274. <label ref="USER_NM"/>
  275. <value ref="USER_CD"/>
  276. </itemset>
  277. </choices>
  278. </col>
  279. <col checkvalue="Y,N" ref="LOCKED_YN" type="checkbox"/>
  280. <col key="false" ref="MOD_ID" style="text-align:left; "/>
  281. <col key="false" ref="MOD_DATE" format="yyyy-mm-dd" mask="exclude"/>
  282. <col ref="DEPT_CD" visibility="hidden"/>
  283. <col ref="USER_PW" visibility="hidden"/>
  284. <script type="javascript" ev:event="onclick">
  285. <![CDATA[
  286. var datagrid = datagrid1;
  287. if (datagrid.isCell(event.target)) datagrid.editCell();
  288. if (!onrowchanged) return;
  289. var row = datagrid.row;
  290. var rowStatus = datagrid.rowStatus(row);
  291. if ((rowStatus == 0 || rowStatus == 2) && datagrid.valueMatrix(row, datagrid.colRef("USER_NM")) != "") {
  292. model.setValue("/root/formData/searchInfo2/USER_CD", datagrid.valueMatrix(row, datagrid.colRef("USER_CD")));
  293. model.setValue("/root/formData/searchInfo2/ROLE_CD", datagrid.valueMatrix(row, datagrid.colRef("ROLE_CD")));
  294. } else {
  295. model.setValue("/root/formData/searchInfo2/USER_CD", "");
  296. model.setValue("/root/formData/searchInfo2/ROLE_CD", "");
  297. }
  298. treeview2.value = datagrid.valueMatrix(datagrid.row, datagrid.colRef("DEPT_CD"));
  299. find2();
  300. onrowchanged = false;
  301. ]]>
  302. </script>
  303. <script type="javascript" ev:event="onrowchanged">
  304. <![CDATA[
  305. onrowchanged = true;
  306. ]]>
  307. </script>
  308. <script type="javascript" ev:event="onbuttonclick">
  309. <![CDATA[
  310. var datagrid = datagrid1;
  311. // if (datagrid.valueMatrix(datagrid.row, datagrid.colRef("DEPT_CD")) == "") return;
  312. if (onrowchanged) datagrid.dispatch("onclick");
  313. var treeview = treeview2;
  314. treeview.visible = (treeview.visible == false);
  315. if (treeview.visible == false) return;
  316. treeview.refresh();
  317. var btn = event.pTarget;
  318. //var children = btn.parent.parent.children; // btn -> cell -> datarigd -> children
  319. var children = datagrid.children;
  320. datagrid.topRow = datagrid.topRow;
  321. var tvTop = Number(btn.attribute("top")) + Number(btn.attribute("height")) +
  322. Number(datagrid.attribute("top").substr(0, datagrid.attribute("top").length - 2)) - (datagrid.topRow - 1) * 21;
  323. treeview.attribute("top") = tvTop + "px";
  324. datagrid.editCell();
  325. for(i=0; i< children.length; i++) {
  326. var control = children.item(i);
  327. if (control.elementName == "xforms:gridinput") {
  328. var tvLeft = Number(control.attribute("left"));
  329. treeview.attribute("left") = tvLeft + "px";
  330. break;
  331. }
  332. }
  333. ]]>
  334. </script>
  335. <script type="javascript" ev:event="xforms-value-changed">
  336. <![CDATA[
  337. var datagrid = datagrid1;
  338. var colRef = datagrid.colRef("M_USER_PW");
  339. if (colRef == datagrid.col) {
  340. datagrid.valueMatrix(datagrid.row, datagrid.colRef("USER_PW")) = datagrid.valueMatrix(datagrid.row, colRef);
  341. }
  342. ]]>
  343. </script>
  344. </datagrid>
  345. <group id="group2" style="left:0px; top:304px; width:980px; height:35px; ">
  346. <line id="line3" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  347. <line id="line4" style="x1:0px; y1:29px; x2:980px; y2:29px; "/>
  348. <caption id="caption201" class="cell" style="left:0px; top:5px; width:90px; height:20px; vertical-align:middle; ">选取用户</caption>
  349. <output id="output201" ref="/root/gridData/ListResult_0_VO/ListResult_0_Row[USER_CD = /root/formData/searchInfo2/USER_CD]/USER_NM" style="left:92px; top:5px; width:110px; height:20px; border-color:#c0c0c0; border-style:solid; "/>
  350. <caption id="caption202" class="cell" style="left:212px; top:5px; width:90px; height:20px; vertical-align:middle; ">菜单</caption>
  351. <input id="input202" ref="/root/codeData/ListResult_3_VO/ListResult_3_Row[MNSCR_ID=/root/formData/searchInfo2/MNSCR_ID]/MNSCR_NM" editable="false" inputtype="button" style="left:304px; top:5px; width:200px; height:20px; ">
  352. <script type="javascript" ev:event="onclick">
  353. <![CDATA[
  354. treeview3.visible = (treeview3.visible == false);
  355. ]]>
  356. </script>
  357. </input>
  358. <button id="button203" class="sw" style="left:514px; top:5px; width:100px; height:20px; ">
  359. <caption>保存权限</caption>
  360. <script type="javascript" ev:event="onclick">
  361. <![CDATA[
  362. if (isValid == false) return;
  363. save2(datagrid2, "save2");
  364. ]]>
  365. </script>
  366. </button>
  367. </group>
  368. <treeview id="treeview1" ref="/root/formData/searchInfo/DEPT_CD" visibility="hidden" expanddepth="-1" image="../../images/blt_1.gif" itemsettype="depth" style="left:304px; top:25px; width:200px; height:150px; ">
  369. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row">
  370. <label ref="DEPT_NM"/>
  371. <value ref="DEPT_CD"/>
  372. <depth ref="LEVEL"/>
  373. </itemset>
  374. <script type="javascript" ev:event="xforms-select">
  375. <![CDATA[
  376. event.pTarget.visible = false;
  377. ]]>
  378. </script>
  379. <script type="javascript" ev:event="xforms-value-changed">
  380. <![CDATA[
  381. event.pTarget.visible = false;
  382. find();
  383. ]]>
  384. </script>
  385. </treeview>
  386. <datagrid id="datagrid2" nodeset="/root/gridData/ListResult_1_VO/ListResult_1_Row" backcoloralternate="#F7F9F9" caption="菜单/界面ID^菜单/界面名^权限^权限^权限分配^修改人^修改时间^FCNRS_REF|菜单/界面ID^菜单/界面名^代码^说明^权限分配^修改人^修改时间^FCNRS_REF" colsep="^" colwidth="150, 150, 60, 100, 35, 60, 100, 80" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheight="21" rowsep="|" style="left:0px; top:338px; width:980px; height:282px; border-style:solid; border-right-style:sunken; ">
  387. <col ref="MNSCR_ID" style="text-align:left; "/>
  388. <col key="false" ref="MNSCR_NM" style="text-align:left; "/>
  389. <col ref="FC_ID"/>
  390. <col key="false" ref="FC_ID" type="combo" style="text-align:left; ">
  391. <choices>
  392. <itemset nodeset="/root/codeData/ListResult_2_VO/ListResult_2_Row">
  393. <label ref="FCNRS_NM"/>
  394. <value ref="FCNRS_ID"/>
  395. </itemset>
  396. </choices>
  397. </col>
  398. <col checkvalue="Y,N" key="false" ref="CHK" type="checkbox"/>
  399. <col key="false" ref="MOD_ID" style="text-align:left; "/>
  400. <col key="false" ref="MOD_DATE" format="yyyy-mm-dd hh:mm:ss" mask="exclude"/>
  401. <col key="false" ref="FCNRS_REF" visibility="hidden"/>
  402. </datagrid>
  403. <treeview id="treeview3" ref="/root/formData/searchInfo2/MNSCR_ID" visibility="hidden" expanddepth="-1" image="../../images/blt_1.gif" itemsettype="depth" style="left:304px; top:329px; width:200px; height:150px; ">
  404. <itemset nodeset="/root/codeData/ListResult_3_VO/ListResult_3_Row">
  405. <label ref="MNSCR_NM"/>
  406. <value ref="MNSCR_ID"/>
  407. <depth ref="LEVEL"/>
  408. </itemset>
  409. <script type="javascript" ev:event="xforms-select">
  410. <![CDATA[
  411. event.pTarget.visible = false;
  412. ]]>
  413. </script>
  414. <script type="javascript" ev:event="xforms-value-changed">
  415. <![CDATA[
  416. event.pTarget.visible = false;
  417. find2();
  418. ]]>
  419. </script>
  420. </treeview>
  421. <treeview id="treeview2" ref="/root/formData/searchInfo/P_DEPT_CD" visibility="hidden" expanddepth="-1" image="../../images/blt_1.gif" itemsettype="depth" style="left:75px; top:110px; width:200px; height:150px; ">
  422. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row">
  423. <label ref="DEPT_NM"/>
  424. <value ref="DEPT_CD"/>
  425. <depth ref="LEVEL"/>
  426. </itemset>
  427. <script type="javascript" ev:event="xforms-select">
  428. <![CDATA[
  429. event.pTarget.visible = false;
  430. ]]>
  431. </script>
  432. <script type="javascript" ev:event="xforms-value-changed">
  433. <![CDATA[
  434. event.pTarget.visible = false;
  435. var datagrid = datagrid1;
  436. var row = datagrid.row;
  437. datagrid.valueMatrix(row, datagrid.colRef("DEPT_NM")) = event.pTarget.label;
  438. datagrid.valueMatrix(row, datagrid.colRef("DEPT_CD")) = event.pTarget.value;
  439. datagrid.addStatus(datagrid.row, "update");
  440. ]]>
  441. </script>
  442. </treeview>
  443. <script type="javascript" ev:event="onclick">
  444. <![CDATA[
  445. var target = event.target;
  446. var parent = event.pTarget.parent;
  447. var parent2 = null;
  448. if (parent != null) parent2 = parent.parent;
  449. if (target != "treeview1" && target != "input102"
  450. && parent != null && parent.attribute("id") != "treeview1" && parent.attribute("id") != "input102")
  451. treeview1.visible = false;
  452. if (parent2 != null && parent2.attribute("id") != "treeview2")
  453. treeview2.visible = false;
  454. if (target != "treeview3" && target != "input202"
  455. && parent != null && parent.attribute("id") != "treeview3" && parent.attribute("id") != "input202")
  456. treeview2.visible = false;
  457. ]]>
  458. </script>
  459. </xhtml:body>
  460. </xhtml:html>