SPZSA20202_권한사용자조회.xrw 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <main>
  10. <list>
  11. <acntdeptlist/>
  12. </list>
  13. </main>
  14. <send>
  15. <searchitem/>
  16. <flag/>
  17. <rdo_flag/>
  18. </send>
  19. <init>
  20. <flag>
  21. <lable>계정그룹</lable>
  22. <value>acntgrup</value>
  23. </flag>
  24. <flag>
  25. <lable>근무지</lable>
  26. <value>dutplce</value>
  27. </flag>
  28. <searchitem/>
  29. <rdo_flag>
  30. <lable>명</lable>
  31. <value>nm</value>
  32. </rdo_flag>
  33. <rdo_flag>
  34. <lable>코드</lable>
  35. <value>cd</value>
  36. </rdo_flag>
  37. <comcd>
  38. <jobkindlist>
  39. <R0061>
  40. <cdid/>
  41. <cdnm/>
  42. </R0061>
  43. </jobkindlist>
  44. <jobposlist>
  45. <R0062>
  46. <cdid/>
  47. <cdnm/>
  48. </R0062>
  49. </jobposlist>
  50. <jobresplist>
  51. <R0063>
  52. <cdid/>
  53. <cdnm/>
  54. </R0063>
  55. </jobresplist>
  56. <prfshiplist>
  57. <R0058>
  58. <cdid/>
  59. <cdnm/>
  60. </R0058>
  61. </prfshiplist>
  62. <apntlist>
  63. <R0091>
  64. <cdid/>
  65. <cdnm/>
  66. </R0091>
  67. </apntlist>
  68. </comcd>
  69. </init>
  70. </root>
  71. </instance>
  72. <script type="javascript" ev:event="xforms-ready">
  73. <![CDATA[
  74. var iProperties;
  75. if (checkOpener()) {
  76. iProperties = opener.javascript.getParameter("SPZSA20202_1");
  77. }
  78. fInitialize();
  79. //alert(iProperties);
  80. if(iProperties==4)
  81. {
  82. cmb_flag.select(0);
  83. }
  84. else
  85. {
  86. cmb_flag.select(1);
  87. }
  88. //cmb_flag.select(1);
  89. // 화면 권한처리
  90. btn_search.disabled = !checkAuth("R") ;
  91. ]]>
  92. </script>
  93. <submission id="TRZSA20203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  94. <submission id="TRZBC00101" method="post" replace="instance"/>
  95. </model>
  96. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  97. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  98. <script type="javascript">
  99. <![CDATA[
  100. /*
  101. 초기화 작업을 합니다.
  102. */
  103. function fInitialize(){
  104. model.removeNodeset("/root/main/list/acntdeptlist");
  105. radio1.select(0);
  106. cmb_flag.select(0);
  107. model.refresh();
  108. }
  109. /*
  110. 버튼 컨트롤들을 클릭했을때 공통으로 타는 함수입니다.
  111. control : "search" 는 조회 버튼 클릭
  112. "init"은 신규 버튼 클릭
  113. "save"는 저장 버튼 클릭
  114. grid : 그리드 컨트롤을 넘겨줍니다.
  115. param : 기타 param을 넘겨줍니다.
  116. */
  117. function fClicked(control, grid, param){
  118. if ("search" == control){
  119. fSearchClick(grid, param);
  120. model.resetInstanceNode("/root/send");
  121. } else if ("init" == control){
  122. model.reset();
  123. } else {
  124. messageBox("처리를 수행","E002");
  125. }
  126. model.refresh();
  127. }
  128. /*
  129. 조회버튼 클릭 타는 함수입니다.
  130. grid.explorerbar = "sortshow" sort설정합니다.
  131. ipt_usercdnm_flag는 검색조건의 사용자코드 or 사용자명입니다.
  132. radio1은 사용자코드 or 사용자명 선택 라디오 버튼입니다.
  133. submit을 날립니다.
  134. .
  135. */
  136. function fSearchClick(grid,param){
  137. var isearchitem = ipt_search_item.value;
  138. grid.explorerbar = "sortshow";
  139. model.removeNodeset("/root/main/list/acntdeptlist");
  140. grid.rebuild();
  141. model.resetInstanceNode("/root/send");
  142. model.setValue("/root/send/searchitem", ipt_search_item.currentText);
  143. model.setValue("/root/send/flag", cmb_flag.value);
  144. model.setValue("/root/send/rdo_flag", radio1.value);
  145. submit("TRZSA20203");
  146. }
  147. /*
  148. model.getValue(); 를 함수로 만들었습니다.
  149. param1 : node는 grid의 xPath입니다.
  150. param2 : row는 grid에서 선택한 row값입니다.
  151. param3 : element는 getvalue할 해당 element 명입니다.
  152. 해당 getvalue값을 return 해줍니다.
  153. return 하지 않으면 해당값을 가져올 수 없습니다.
  154. */
  155. function fGetValue(node, row, element) {
  156. var rtnValue = model.getValue(node + "[" + row + "]/" + element);
  157. return rtnValue;
  158. }
  159. /*
  160. model.setValue();를 함수로 만들었습니다.
  161. param1 : node는 setvalue할 컨트롤의 xPath입니다.
  162. param2 : destinationelement는 setvalue할 element명 입니다.
  163. param3 : sourceelement는 setvalue할 값입니다.
  164. */
  165. function fSetValue(node, destinationelement, sourceelement) {
  166. model.setValue(node + "/" + destinationelement, sourceelement);
  167. }
  168. ]]>
  169. </script>
  170. </xhtml:head>
  171. <xhtml:body pagewidth="590" pageheight="411" style="border-color:#c7a3cf; ">
  172. <group id="grp_body" scroll="auto" style="left:0px; top:0px; width:586px; height:411px; border-color:#c7a3cf; border-style:solid; ">
  173. <group id="grp_sea" style="left:5px; top:10px; width:574px; height:35px; vertical-align:top; ">
  174. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:574px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  175. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:156px; height:17px; ">계정/부서조회 :</caption>
  176. <line id="line1" style="x1:487px; y1:7px; x2:487px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  177. <button id="btn_search" class="btn1_letter2" style="left:501px; top:7px; width:56px; height:22px; ">
  178. <caption>조회</caption>
  179. <script type="javascript" ev:event="DOMActivate">
  180. <![CDATA[
  181. fClicked("search", grd_acntdeptlist);
  182. ]]>
  183. </script>
  184. </button>
  185. <select1 id="cmb_flag" ref="/root/init/flag" class="combo_search" disabled="true" appearance="minimal" style="left:227px; top:8px; width:101px; height:19px; ">
  186. <choices>
  187. <itemset nodeset="/root/init/flag">
  188. <label ref="lable"/>
  189. <value ref="value"/>
  190. </itemset>
  191. </choices>
  192. </select1>
  193. <input id="ipt_search_item" ref="/root/init/searchitem" class="input_s_essential" style="left:331px; top:8px; width:145px; height:19px; ">
  194. <script type="javascript" ev:event="onkeypress">
  195. <![CDATA[
  196. if("13" == event.keyCode){
  197. btn_search.dispatch("DOMActivate");
  198. //fClicked("search", grd_userbaseinfo, param);
  199. }
  200. ]]>
  201. </script>
  202. </input>
  203. <select1 id="radio1" ref="/root/init" appearance="full" cols="2" overflow="visible" style="left:141px; top:10px; width:13px; height:13px; background-color:transparent; border-style:none; ">
  204. <choices>
  205. <itemset nodeset="/root/init/rdo_flag">
  206. <label ref="lable"/>
  207. <value ref="value"/>
  208. </itemset>
  209. </choices>
  210. </select1>
  211. </group>
  212. <caption id="caption9" class="tit_2" style="left:8px; top:57px; width:111px; height:14px; vertical-align:middle; ">계정/부서조회</caption>
  213. <line id="line12" class="line_1" style="x1:0px; y1:72px; x2:584px; y2:73px; "/>
  214. <datagrid id="grd_acntdeptlist" nodeset="/root/main/list/acntdeptlist" caption="구분^근무지기관코드^근무지기관명^코드^근무지기관명^명" colwidth="100, 0, 0, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:0px; top:76px; width:584px; height:329px; ">
  215. <col ref="acntdepttype"/>
  216. <col ref="dutplceinstcd"/>
  217. <col ref="dutplceinstnm"/>
  218. <col ref="rgstcd"/>
  219. <col ref="dutplceinstnm"/>
  220. <col ref="rgstnm"/>
  221. <script type="javascript" ev:event="ondblclick">
  222. <![CDATA[
  223. var iRow = grd_acntdeptlist.row;
  224. var iParam="";
  225. var iNode = "/root/main/list/acntdeptlist";
  226. var iParam_acntdepttype = fGetValue(iNode, iRow, "acntdepttype");
  227. var iParam_dutplceinstcd = fGetValue(iNode, iRow, "dutplceinstcd");
  228. var iParam_dutplceinstnm = fGetValue(iNode, iRow, "dutplceinstnm");
  229. var iParam_rgstcd = fGetValue(iNode, iRow, "rgstcd");
  230. var iParam_rgstnm = fGetValue(iNode, iRow, "rgstnm");
  231. iParam = iParam_acntdepttype+"|"+iParam_rgstcd+"|"+iParam_rgstnm+"|"+iParam_dutplceinstcd+"|"+iParam_dutplceinstnm;
  232. if ( checkOpener() ) {
  233. opener.javascript.setParameter("SPZSA20202_", iParam);
  234. } else {
  235. var rtn = messageBox("상위화면을 찾을 수", "E001");
  236. }
  237. // alert(rtn);
  238. //setParameter("flag", "userdept");
  239. //setParameter("code", iParam);
  240. window.close();
  241. ]]>
  242. </script>
  243. <script type="javascript" ev:event="onaftersort">
  244. <![CDATA[
  245. grd_acntdeptlist.gridToInstance();
  246. ]]>
  247. </script>
  248. </datagrid>
  249. </group>
  250. </xhtml:body>
  251. </xhtml:html>