SPCVT00300_부서별직원검색.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SPCVT00300_부서별직원검색
  4. * Summary : 부서별 직원검색
  5. * Programmer : Roger Kim
  6. * Date Written : 2008.11.18
  7. * History :
  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. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <indxlist>
  19. <item>
  20. <depth/>
  21. <deptcd/>
  22. <psnworksupdeptcd/>
  23. <depthngnm/>
  24. <pathcd/>
  25. </item>
  26. </indxlist>
  27. <empllist>
  28. <dutunitnm/>
  29. <empnm/>
  30. <jobposcd/>
  31. <jobrespcd/>
  32. <grupjoblncd/>
  33. <userkindcd/>
  34. <posinstnm/>
  35. <posdeptnm/>
  36. <empid/>
  37. <dutinstnm/>
  38. <dutunitcd/>
  39. <posdeptcd/>
  40. </empllist>
  41. <list>
  42. <emplist>
  43. <instnm/>
  44. <deptnm/>
  45. <deptcd/>
  46. <empnm/>
  47. <empid/>
  48. <psnworksupdeptnm/>
  49. <psnworksupdeptcd/>
  50. <grupjoblncd/>
  51. <userkindcd/>
  52. <prfshipflagcd/>
  53. <jobkindcd/>
  54. <jobposcd/>
  55. <jobrespcd/>
  56. <psnworkyn/>
  57. <dutinstnm/>
  58. <dutunitnm/>
  59. <dutunitcd/>
  60. <posinstnm/>
  61. <posdeptnm/>
  62. <posdeptcd/>
  63. <maindutplceflag/>
  64. </emplist>
  65. </list>
  66. <search>
  67. <instcd/>
  68. <empid/>
  69. </search>
  70. <temp>
  71. <instnm/>
  72. <pathnm/>
  73. </temp>
  74. </main>
  75. <send>
  76. <instcd/>
  77. <deptcd/>
  78. </send>
  79. <init>
  80. <C0048list>
  81. <cdid/>
  82. <cdnm/>
  83. </C0048list>
  84. <R0058list>
  85. <cdid/>
  86. <cdnm/>
  87. </R0058list>
  88. <R0059list>
  89. <cdid/>
  90. <cdnm/>
  91. </R0059list>
  92. <R0061list>
  93. <cdid/>
  94. <cdnm/>
  95. </R0061list>
  96. <R0062list>
  97. <cdid/>
  98. <cdnm/>
  99. </R0062list>
  100. <R0063list>
  101. <cdid/>
  102. <cdnm/>
  103. </R0063list>
  104. <Z0007list>
  105. <cdid/>
  106. <cdnm/>
  107. </Z0007list>
  108. <Z0016list>
  109. <cdid/>
  110. <cdnm/>
  111. </Z0016list>
  112. </init>
  113. </root>
  114. </instance>
  115. <submission id="TRCVT00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/indxlist"/>
  116. <submission id="TRCVT00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/empllist"/>
  117. <submission id="TRCVT00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/search" replace="instance" add="bottom" resultref="/root/main/list"/>
  118. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  119. </model>
  120. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  121. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  122. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  123. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  124. <script type="javascript" ev:event="xforms-ready">
  125. <![CDATA[
  126. zbcfGetCodeList( new Array("C0048", "R0058", "R0059", "R0061", "R0062", "R0063", "Z0007", "Z0016"), new Array("/root/init/C0048list", "/root/init/R0058list", "/root/init/R0059list", "/root/init/R0061list", "/root/init/R0062list", "/root/init/R0063list", "/root/init/Z0007list", "/root/init/Z0016list"), true );
  127. // 검색내용을 초기화시킴.
  128. model.removeNodeset("/root/main/empllist");
  129. model.removeNodeset("/root/main/list/emplist");
  130. var R_instcd = getUserInfo("dutplceinstcd");
  131. if (R_instcd == "031" || R_instcd == "032" || R_instcd == "012" ){
  132. cmb_instcd.value=R_instcd;
  133. submit("TRCVT00301");
  134. }
  135. ]]>
  136. </script>
  137. </xhtml:head>
  138. <xhtml:body pagewidth="900" pageheight="600" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  139. <group id="grp_Condition" scroll="auto" style="left:0px; top:0px; width:884px; height:555px; ">
  140. <group id="group2" style="left:0px; top:0px; width:884px; height:35px; vertical-align:top; ">
  141. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:884px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  142. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:77px; height:17px; ">기 관 :</caption>
  143. <line id="line1" style="x1:778px; y1:7px; x2:778px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  144. <button id="btn_search" class="btn1_letter2" style="left:803px; top:7px; width:56px; height:22px; ">
  145. <caption>조회</caption>
  146. <script type="javascript" ev:event="DOMActivate">
  147. <![CDATA[
  148. model.removeNodeset("/root/main/empllist");
  149. model.removeNodeset("/root/main/list/emplist");
  150. submit("TRCVT00301");
  151. model.setValue("/root/main/temp/instnm", "");
  152. model.setValue("/root/main/temp/pathnm", "");
  153. model.refresh();
  154. ]]>
  155. </script>
  156. </button>
  157. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_default" appearance="minimal" style="left:100px; top:8px; width:175px; height:19px; ">
  158. <choices>
  159. <itemset nodeset="/root/init/C0048list/C0048">
  160. <label ref="cdnm"/>
  161. <value ref="cdid"/>
  162. </itemset>
  163. </choices>
  164. <script type="javascript" ev:event="xforms-value-changed">
  165. <![CDATA[
  166. model.removeNodeset("/root/main/empllist");
  167. model.removeNodeset("/root/main/list/emplist");
  168. submit("TRCVT00301");
  169. model.setValue("/root/main/temp/instnm", "");
  170. model.setValue("/root/main/temp/pathnm", "");
  171. model.refresh();
  172. ]]>
  173. </script>
  174. </select1>
  175. </group>
  176. <caption id="caption9" class="tit_2" style="left:5px; top:40px; width:110px; height:14px; vertical-align:middle; ">조직도</caption>
  177. <line id="line12" class="line_1" style="x1:0px; y1:55px; x2:310px; y2:55px; "/>
  178. <treeview id="trv_dgindx" ref="/root/main/indxlist/item" expanddepth="2" itemsettype="depth" style="left:0px; top:61px; width:310px; height:491px; padding-left:20; border-color:#c0c0c0; border-style:solid; ">
  179. <itemset nodeset="/root/main/indxlist/item">
  180. <label ref="depthngnm"/>
  181. <value ref="deptcd"/>
  182. <depth ref="depth"/>
  183. <upcode ref="psnworksupdeptcd"/>
  184. </itemset>
  185. <script type="javascript" ev:event="onclick">
  186. <![CDATA[
  187. model.removeNodeset("/root/main/empllist");
  188. model.removeNodeset("/root/main/list/emplist");
  189. model.setValue("/root/main/temp/instnm", "");
  190. model.setValue("/root/main/temp/pathnm", "");
  191. model.refresh();
  192. var iIndx = trv_dgindx.focusIndex + 1;
  193. // var iIndx2 = trv_dgindx.focusIndex + 2;
  194. // var psnworksupdeptcd = model.getValue("/root/main/indxlist/item[" + iIndx + "]/psnworksupdeptcd");
  195. var deptcd = model.getValue("/root/main/indxlist/item[" + iIndx + "]/deptcd");
  196. var depth = model.getValue("/root/main/indxlist/item[" + iIndx + "]/depth");
  197. var r_instnm = model.getValue("/root/main/indxlist/item[" + iIndx + "]/instnm");
  198. var r_pathnm = model.getValue("/root/main/indxlist/item[" + iIndx + "]/pathnm");
  199. // var nextdeptcd = model.getValue("/root/main/indxlist/item[" + iIndx2 + "]/psnworksupdeptcd");
  200. model.setValue("/root/main/temp/instnm", r_instnm);
  201. model.setValue("/root/main/temp/pathnm", r_pathnm);
  202. model.refresh();
  203. if(parseFloat(depth) >=2){
  204. model.setValue("/root/send/deptcd", deptcd);
  205. if ((model.getValue("/root/send/instcd") != "") && (model.getValue("/root/send/deptcd") != "")){
  206. submit("TRCVT00302");
  207. model.setValue("/root/send/deptcd", "");
  208. }
  209. }
  210. ]]>
  211. </script>
  212. </treeview>
  213. <caption id="caption2" style="left:320px; top:44px; width:111px; height:14px; vertical-align:middle; ">* 선택된 근무기관 :</caption>
  214. <output id="output1" ref="/root/main/temp/instnm" style="left:435px; top:41px; width:435px; height:19px; font-weight:bold; vertical-align:middle; "/>
  215. <caption id="caption3" style="left:330px; top:64px; width:98px; height:14px; vertical-align:middle; ">선택된 근무부서 :</caption>
  216. <output id="output2" ref="/root/main/temp/pathnm" style="left:435px; top:61px; width:435px; height:19px; font-weight:bold; vertical-align:middle; "/>
  217. <line id="line2" class="line_1" style="x1:315px; y1:85px; x2:884px; y2:85px; "/>
  218. <datagrid id="grd_deptemplist" nodeset="/root/main/empllist" allowselection="false" backcolorfrozen="#FEFED2" caption="근무부서명^직원명^직위^직책^직군^사용자유형^소속기관명^소속부서명^직원ID^근무기관명^근무부서^소속부서" colsep="^" colwidth="130, 90, 95, 95, 95, 95, 100, 130, 80, 0, 0, 0" dataheight="25" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:315px; top:91px; width:569px; height:253px; ">
  219. <col ref="dutunitnm" style="text-align:center; "/>
  220. <col ref="empnm" style="text-align:center; "/>
  221. <col disabled="true" ref="jobposcd" type="combo" style="text-align:center; ">
  222. <choices>
  223. <itemset nodeset="/root/init/R0062list/R0062">
  224. <label ref="cdnm"/>
  225. <value ref="cdid"/>
  226. </itemset>
  227. </choices>
  228. </col>
  229. <col disabled="true" ref="jobrespcd" type="combo" style="text-align:center; ">
  230. <choices>
  231. <itemset nodeset="/root/init/R0063list/R0063">
  232. <label ref="cdnm"/>
  233. <value ref="cdid"/>
  234. </itemset>
  235. </choices>
  236. </col>
  237. <col disabled="true" ref="grupjoblncd" type="combo" style="text-align:center; ">
  238. <choices>
  239. <itemset nodeset="/root/init/R0059list/R0059">
  240. <label ref="cdnm"/>
  241. <value ref="cdid"/>
  242. </itemset>
  243. </choices>
  244. </col>
  245. <col disabled="true" ref="userkindcd" type="combo" style="text-align:center; ">
  246. <choices>
  247. <itemset nodeset="/root/init/Z0016list/Z0016">
  248. <label ref="cdnm"/>
  249. <value ref="cdid"/>
  250. </itemset>
  251. </choices>
  252. </col>
  253. <col ref="posinstnm" style="text-align:center; "/>
  254. <col ref="posdeptnm" style="text-align:center; "/>
  255. <col ref="empid" style="text-align:center; "/>
  256. <col ref="dutinstnm" visibility="hidden" style="text-align:center; "/>
  257. <col ref="dutunitcd" visibility="hidden" style="text-align:center; "/>
  258. <col ref="posdeptcd" visibility="hidden" style="text-align:center; "/>
  259. <script type="javascript" ev:event="ondblclick">
  260. <![CDATA[
  261. var row = grd_deptemplist.row;
  262. var s_empid = grd_deptemplist.valueMatrix(row, grd_deptemplist.colRef("empid"));
  263. var s_instcd = model.getValue("/root/send/instcd");
  264. if ((grd_deptemplist.row > 0) && grd_deptemplist.isCell(event.target)){
  265. model.setValue("/root/main/search/instcd", s_instcd);
  266. model.setValue("/root/main/search/empid", s_empid);
  267. if ((model.getValue("/root/main/search/instcd") != "") && (model.getValue("/root/main/search/empid") != "")){
  268. submit("TRCVT00303");
  269. model.setValue("/root/main/search/instcd", "");
  270. model.setValue("/root/main/search/empid", "");
  271. }
  272. } else {
  273. }
  274. ]]>
  275. </script>
  276. </datagrid>
  277. <datagrid id="grd_emplist" nodeset="/root/main/list/emplist" allowselection="false" backcolorfrozen="#FEFED2" caption="근무지기관명^근무지부서명^근무지부서코드^직원명^*^직위^직책^직종^교직구분^직군^사용자유형^인사상위부서^상위부서코드^소속기관명^소속부서명^소속부서코드^근무(발령)기관명^근무(발령)부서명^근무(발령)부서코드^직원ID" colsep="^" colwidth="120, 130, 0, 90, 15, 95, 95, 95, 95, 100, 100, 130, 0, 120, 130, 0, 120, 130, 0, 80" dataheight="25" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:315px; top:349px; width:569px; height:203px; ">
  278. <col ref="instnm" style="text-align:center; "/>
  279. <col ref="deptnm" style="text-align:center; "/>
  280. <col ref="deptcd" visibility="hidden" style="text-align:center; "/>
  281. <col ref="empnm" style="text-align:center; "/>
  282. <col disabled="true" ref="maindutplceflag" type="combo" style="text-align:center; ">
  283. <choices>
  284. <item>
  285. <label>*</label>
  286. <value>Y</value>
  287. </item>
  288. <item>
  289. <label/>
  290. <value>N</value>
  291. </item>
  292. <item>
  293. <label/>
  294. <value/>
  295. </item>
  296. </choices>
  297. </col>
  298. <col disabled="true" ref="jobposcd" type="combo" style="text-align:center; ">
  299. <choices>
  300. <itemset nodeset="/root/init/R0062list/R0062">
  301. <label ref="cdnm"/>
  302. <value ref="cdid"/>
  303. </itemset>
  304. </choices>
  305. </col>
  306. <col disabled="true" ref="jobrespcd" type="combo" style="text-align:center; ">
  307. <choices>
  308. <itemset nodeset="/root/init/R0063list/R0063">
  309. <label ref="cdnm"/>
  310. <value ref="cdid"/>
  311. </itemset>
  312. </choices>
  313. </col>
  314. <col disabled="true" ref="jobkindcd" type="combo" style="text-align:center; ">
  315. <choices>
  316. <itemset nodeset="/root/init/R0061list/R0061">
  317. <label ref="cdnm"/>
  318. <value ref="cdid"/>
  319. </itemset>
  320. </choices>
  321. </col>
  322. <col disabled="true" ref="prfshipflagcd" type="combo" style="text-align:center; ">
  323. <choices>
  324. <itemset nodeset="/root/init/R0058list/R0058">
  325. <label ref="cdnm"/>
  326. <value ref="cdid"/>
  327. </itemset>
  328. </choices>
  329. </col>
  330. <col disabled="true" ref="grupjoblncd" type="combo" style="text-align:center; ">
  331. <choices>
  332. <itemset nodeset="/root/init/R0059list/R0059">
  333. <label ref="cdnm"/>
  334. <value ref="cdid"/>
  335. </itemset>
  336. </choices>
  337. </col>
  338. <col disabled="true" ref="userkindcd" type="combo" style="text-align:center; ">
  339. <choices>
  340. <itemset nodeset="/root/init/Z0016list/Z0016">
  341. <label ref="cdnm"/>
  342. <value ref="cdid"/>
  343. </itemset>
  344. </choices>
  345. </col>
  346. <col ref="psnworksupdeptnm" style="text-align:center; "/>
  347. <col ref="psnworksupdeptcd" visibility="hidden" style="text-align:center; "/>
  348. <col ref="posinstnm" style="text-align:center; "/>
  349. <col ref="posdeptnm" style="text-align:center; "/>
  350. <col ref="posdeptcd" visibility="hidden" style="text-align:center; "/>
  351. <col ref="dutinstnm" style="text-align:center; "/>
  352. <col ref="dutunitnm" style="text-align:center; "/>
  353. <col ref="dutunitcd" visibility="hidden" style="text-align:center; "/>
  354. <col ref="empid" style="text-align:center; "/>
  355. <script type="javascript" ev:event="ondblclick">
  356. <![CDATA[
  357. ]]>
  358. </script>
  359. </datagrid>
  360. </group>
  361. <group id="group5" scroll="auto" style="left:0px; top:555px; width:884px; height:27px; ">
  362. <button id="button3" class="btn4_letter2" style="left:827px; top:5px; width:56px; height:22px; ">
  363. <caption>닫기</caption>
  364. <script type="javascript" ev:event="DOMActivate">
  365. <![CDATA[
  366. window.close();
  367. ]]>
  368. </script>
  369. </button>
  370. </group>
  371. </xhtml:body>
  372. </xhtml:html>