SPZSU10105_사용자부서이력조회.xrw 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. </list>
  12. <search>
  13. <searchcondition/>
  14. <searchterm/>
  15. <dutplceinstcd/>
  16. <prfshipflagcd/>
  17. </search>
  18. </main>
  19. <send>
  20. <searchcondition/>
  21. <searchterm/>
  22. <dutplceinstcd/>
  23. <prfshipflagcd/>
  24. <userid/>
  25. </send>
  26. <hidden>
  27. <resultref/>
  28. </hidden>
  29. </root>
  30. </instance>
  31. <script type="javascript" ev:event="xforms-ready">
  32. <![CDATA[
  33. var search_condition = opener.window.javascript.getParameter("search_condition");
  34. var search_term = opener.window.javascript.getParameter("search_term");
  35. var result_ref = opener.window.javascript.getParameter("result_ref");
  36. var prfshipflagcd = opener.window.javascript.getParameter("prfshipflagcd");
  37. var dutplceinstcd = getUserInfo("dutplceinstcd");
  38. model.setValue("/root/main/search/searchcondition", search_condition);
  39. model.setValue("/root/main/search/searchterm", search_term);
  40. model.setValue("/root/send/dutplceinstcd", dutplceinstcd);
  41. model.setValue("/root/send/prfshipflagcd", prfshipflagcd);
  42. model.setValue("/root/hidden/resultref", result_ref);
  43. if(search_condition!="" && search_term!=""){
  44. model.setValue("/root/send/searchcondition", search_condition);
  45. model.setValue("/root/send/searchterm", search_term);
  46. submit("TRZSU10114");
  47. }
  48. model.refresh();
  49. ]]>
  50. </script>
  51. <submission id="TRZSU10115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  52. <submission id="TRZSU10207" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/deptlist"/>
  53. </model>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  56. </xhtml:head>
  57. <xhtml:body pagewidth="605" pageheight="530" style="border-color:#c7a3cf; ">
  58. <group id="group5" scroll="auto" style="left:0px; top:35px; width:605px; height:495px; border-color:#c7a3cf; border-style:solid; ">
  59. <group id="group2" style="left:0px; top:10px; width:603px; height:35px; vertical-align:top; ">
  60. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:603px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  61. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:117px; height:17px; ">검색조건</caption>
  62. <line id="line1" style="x1:525px; y1:7px; x2:525px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  63. <button id="btn_search" class="btn1_letter2" style="left:534px; top:7px; width:55px; height:22px; ">
  64. <caption>조회</caption>
  65. <script type="javascript" ev:event="DOMActivate">
  66. <![CDATA[
  67. var search_condition = model.getValue("/root/main/search/searchcondition");
  68. var search_term = model.getValue("/root/main/search/searchterm");
  69. model.setValue("/root/send/searchcondition", search_condition);
  70. model.setValue("/root/send/searchterm", search_term);
  71. if(search_condition!="" && search_term!=""){
  72. model.removeNodeset("/root/main/deptlist");
  73. model.setValue("/root/send/searchcondition", search_condition);
  74. model.setValue("/root/send/searchterm", search_term);
  75. submit("TRZSU10115");
  76. }
  77. model.refresh();
  78. ]]>
  79. </script>
  80. </button>
  81. <input id="ipt_search_item" ref="/root/main/search/searchterm" class="input_s_essential" style="left:222px; top:8px; width:150px; height:19px; ">
  82. <script type="javascript" ev:event="onkeypress">
  83. <![CDATA[
  84. inputEnterKey( "btn_search", "DOMActivate");
  85. ]]>
  86. </script>
  87. </input>
  88. <select1 id="combo1" ref="/root/main/search/searchcondition" appearance="minimal" style="left:101px; top:8px; width:119px; height:19px; ">
  89. <choices>
  90. <item>
  91. <label>사용자ID</label>
  92. <value>userid</value>
  93. </item>
  94. <item>
  95. <label>사용자명</label>
  96. <value>usernm</value>
  97. </item>
  98. <item>
  99. <label>주민번호</label>
  100. <value>rrgstno</value>
  101. </item>
  102. </choices>
  103. <script type="javascript" ev:event="xforms-value-changed">
  104. <![CDATA[
  105. model.setValue("/root/main/search/searchterm", "");
  106. model.refresh();
  107. ]]>
  108. </script>
  109. </select1>
  110. </group>
  111. <caption id="caption9" class="tit_2" style="left:0px; top:57px; width:214px; height:14px; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">사용자 목록</caption>
  112. <line id="line12" class="line_1" style="x1:0px; y1:72px; x2:603px; y2:73px; "/>
  113. <datagrid id="grd_userlist" nodeset="/root/main/list/userlist" scroll="auto" caption="사용자ID^사용자명^최종근무지명^적용시작일자^적용종료일자^직종명^직위명^직책명^발령구분명" colsep="^" colwidth="80, 70, 110, 80, 80, 60, 60, 60, 100" dataheight="23" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:74px; width:599px; height:180px; ">
  114. <col ref="userid"/>
  115. <col ref="usernm"/>
  116. <col ref="dutplcenm"/>
  117. <col ref="fromdd" format="yyyy-mm-dd"/>
  118. <col ref="todd" format="yyyy-mm-dd"/>
  119. <col ref="jobkindnm"/>
  120. <col ref="jobposnm"/>
  121. <col ref="jobrespnm"/>
  122. <col ref="apntflagnm"/>
  123. <script type="javascript" ev:event="ondblclick">
  124. <![CDATA[
  125. var userid = "";
  126. var row = grd_userlist.row;
  127. if(row > 0){
  128. userid = grd_userlist.valueMatrix(row, grd_userlist.colRef("userid"));
  129. model.setValue("/root/send/userid", userid);
  130. submit("TRZSU10207");
  131. }
  132. ]]>
  133. </script>
  134. </datagrid>
  135. <button id="btn_confirm" class="btn4_letter2" style="left:535px; top:465px; width:56px; height:22px; ">
  136. <caption>취소</caption>
  137. <script type="javascript" ev:event="DOMActivate">
  138. <![CDATA[
  139. window.close();
  140. ]]>
  141. </script>
  142. </button>
  143. <button id="button1" class="btn4_letter2" style="left:479px; top:465px; width:56px; height:22px; ">
  144. <caption>확인</caption>
  145. <script type="javascript" ev:event="DOMActivate">
  146. <![CDATA[
  147. grd_deptlist.dispatch("ondblclick");
  148. ]]>
  149. </script>
  150. </button>
  151. <line id="line2" class="line_1" style="x1:0px; y1:277px; x2:603px; y2:278px; "/>
  152. <caption id="caption2" class="tit_2" style="left:0px; top:262px; width:214px; height:14px; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">사용자 근무지 이력</caption>
  153. <datagrid id="grd_deptlist" nodeset="/root/main/deptlist/dept" scroll="auto" caption="사용자ID^사용자명^근무지기관코드^근무지기관명^근무지코드^근무지명^적용시작일자^적용종료일자^직종코드^직종명^직위코드^직위명^직책코드^직책명^발령구분코드^발령구분명" colsep="^" colwidth="78, 70, 100, 100, 100, 100, 80, 80, 60, 60, 61, 60, 60, 60, 80, 80" dataheight="23" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:279px; width:599px; height:180px; ">
  154. <col ref="userid"/>
  155. <col ref="usernm"/>
  156. <col ref="dutplceinstcd" visibility="hidden"/>
  157. <col ref="dutplceinstnm" visibility="hidden"/>
  158. <col ref="dutplcecd" visibility="hidden"/>
  159. <col ref="dutplcenm"/>
  160. <col ref="fromdd" format="yyyy-mm-dd"/>
  161. <col ref="todd" format="yyyy-mm-dd"/>
  162. <col ref="jobkindcd" visibility="hidden"/>
  163. <col ref="jobkindnm"/>
  164. <col ref="jobposcd" visibility="hidden"/>
  165. <col ref="jobposnm"/>
  166. <col ref="jobrespcd" visibility="hidden"/>
  167. <col ref="jobrespnm"/>
  168. <col ref="apntflag" visibility="hidden"/>
  169. <col ref="apntflagnm"/>
  170. <script type="javascript" ev:event="ondblclick">
  171. <![CDATA[
  172. var row = grd_deptlist.row;
  173. if(row > 0){
  174. var userid = grd_deptlist.valueMatrix(row, grd_deptlist.colRef("userid"));
  175. var usernm = grd_deptlist.valueMatrix(row, grd_deptlist.colRef("usernm"));
  176. var dutplceinstcd = grd_deptlist.valueMatrix(row, grd_deptlist.colRef("dutplceinstcd"));
  177. var dutplceinstnm = grd_deptlist.valueMatrix(row, grd_deptlist.colRef("dutplceinstnm"));
  178. var dutplcecd = grd_deptlist.valueMatrix(row, grd_deptlist.colRef("dutplcecd"));
  179. var dutplcenm = grd_deptlist.valueMatrix(row, grd_deptlist.colRef("dutplcenm"));
  180. var fromdd = grd_deptlist.valueMatrix(row, grd_deptlist.colRef("fromdd"));
  181. var resultref = model.getValue("/root/hidden/resultref");
  182. var result_string = userid +"|"+ usernm + "|" + dutplceinstcd +"|" + dutplceinstnm + "|" + dutplcecd + "|" + dutplcenm + "|" + fromdd;
  183. opener.model.setValue(resultref, result_string);
  184. window.close();
  185. }
  186. ]]>
  187. </script>
  188. </datagrid>
  189. </group>
  190. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:603px; height:14px; ">전공의 근무지 이력정보</caption>
  191. </xhtml:body>
  192. </xhtml:html>