SPRSD00320_사용자HELP.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  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. <user>
  11. <userlist/>
  12. </user>
  13. </main>
  14. <target/>
  15. <init>
  16. </init>
  17. <send>
  18. <dept>
  19. <deptcd/>
  20. <emplnm/>
  21. <instcd/>
  22. <deptnm/>
  23. </dept>
  24. </send>
  25. </root>
  26. </instance>
  27. <script type="javascript" ev:event="xforms-ready">
  28. <![CDATA[
  29. // main 에서 넘어오는 부서 코드가 deptcd 명칭이 아닐 경우 ex) reqdeptcd, windeptcd.. 등 일 경우.. 해당 값으로 deptcd node를 생성하여 데이터를 셋팅한다.
  30. fCheckDeptNode();
  31. model.removenode("/root/main/user/userlist");
  32. misfMsterDetailSet(grd_userlist, null, "TRRSD00321", "N");
  33. // model.copyNode("/root/main/user", "/root/target/validation");
  34. model.refresh();
  35. misfMsterDetailRetrieve();
  36. ]]>
  37. </script>
  38. <script type="javascript">
  39. <![CDATA[
  40. function fOpenPopupDeptHelp(pControl, pInstance)
  41. {
  42. misfOpenPopUpList("02", pControl, "", pInstance);
  43. model.refresh();
  44. }
  45. function fCheckDeptNode() {
  46. // 우선은 넘겨주는 변수 명칭 추가시 조건 문으로 분개 처리 한다... -> 명칭을 비교하여 자동으로 넣어주게 변경해야 겠다.
  47. if ( instance1.selectSingleNode(PURTARGET_NODE + "/deptcd") != null )
  48. model.setValue( "/root/send/dept/deptcd", model.getValue(PURTARGET_NODE + "/deptcd") );
  49. if ( instance1.selectSingleNode(PURTARGET_NODE + "/deptnm") != null )
  50. model.setValue( "/root/send/dept/deptnm", model.getValue(PURTARGET_NODE + "/deptnm") );
  51. if ( instance1.selectSingleNode(PURTARGET_NODE + "/reqdeptcd") != null )
  52. model.setValue( "/root/send/dept/deptcd", model.getValue(PURTARGET_NODE + "/reqdeptcd") );
  53. if ( instance1.selectSingleNode(PURTARGET_NODE + "/reqdeptnm") != null )
  54. model.setValue( "/root/send/dept/deptnm", model.getValue(PURTARGET_NODE + "/reqdeptnm") );
  55. if ( instance1.selectSingleNode(PURTARGET_NODE + "/ipt_deptcd") != null )
  56. model.setValue( "/root/send/dept/deptcd", model.getValue(PURTARGET_NODE + "/ipt_deptcd") );
  57. if ( instance1.selectSingleNode(PURTARGET_NODE + "/ipt_deptnm") != null )
  58. model.setValue( "/root/send/dept/deptnm", model.getValue(PURTARGET_NODE + "/ipt_deptnm") );
  59. if ( instance1.selectSingleNode(PURTARGET_NODE + "/instcd") != null )
  60. model.setValue("/root/send/dept/instcd" , model.getValue(PURTARGET_NODE + "/instcd"));
  61. if ( instance1.selectSingleNode(PURTARGET_NODE + "/cmb_instcd") != null )
  62. model.setValue( "/root/send/dept/instcd", model.getValue(PURTARGET_NODE + "/cmb_instcd") );
  63. }
  64. ]]>
  65. </script>
  66. <submission id="TRRSD00321" ref="/root/send/dept" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/user"/>
  67. </model>
  68. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  70. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  71. </xhtml:head>
  72. <xhtml:body pagewidth="780" pageheight="560" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  73. <group id="group3" scroll="auto" style="left:8px; top:0px; width:750px; height:521px; ">
  74. <caption id="caption1" class="tit_2" style="left:5px; top:49px; width:183px; height:13px; ">사용자 리스트</caption>
  75. <line id="line1" class="line_1" style="x1:0px; y1:63px; x2:750; y2:63px; "/>
  76. <!--
  77. <datagrid id="grd_userlist" nodeset="/root/main/user/userlist" caption="사원번호^성명^직책^소속기관코드^소속기관명^소속부서코드^소속부서명" colsep="^" colwidth="70, 120, 120, 80, 120, 80, 130" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:68px; width:750px; height:448px; ">
  78. -->
  79. <datagrid id="grd_userlist" nodeset="/root/main/user/userlist" caption="사원번호^성명^기관코드^직위^직위^직책^직책^근무기관코드^기관명^근무지부서코드^근무지부서명^부(실)코드^부(실)^과(팀코드)^과(팀)^Unit코드^Unit명" colwidth="70, 83, 81, 50, 60, 50, 70, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" colsep="^" style="left:0px; top:68px; width:750px; height:448px; ">
  80. <col class="text_center" ref="emplno"/>
  81. <col class="text_center" ref="emplnm"/>
  82. <col class="text_center" ref="instcd" visibility="hidden"/>
  83. <col class="text_center" ref="jobposcd" visibility="hidden"/>
  84. <col class="text_center" ref="jobposnm"/>
  85. <col class="text_center" ref="jobrespcd" visibility="hidden"/>
  86. <col class="text_center" ref="jobrespnm"/>
  87. <col class="text_center" ref="dutplceinst" visibility="hidden"/>
  88. <col class="text_center" ref="dutplceinstnm"/>
  89. <col class="text_center" ref="dutplcedeptcd"/>
  90. <col class="text_center" ref="dutplcedeptnm"/>
  91. <col class="text_center" ref="dutdeptcd"/>
  92. <col class="text_center" ref="dutdeptnm"/>
  93. <col class="text_center" ref="dutteamcd"/>
  94. <col class="text_center" ref="dutteamnm"/>
  95. <col class="text_center" ref="dutunitcd"/>
  96. <col class="text_center" ref="dutunitnm"/>
  97. <!--
  98. <col ref="jobrespnm" style="left:210px; top:23px; width:120px; height:23px; "/>
  99. <col class="text_center" ref="posinstcd"/>
  100. <col ref="posinstnm"/>
  101. <col class="text_center" ref="posdeptcd"/>
  102. <col ref="posdepthngnm"/>
  103. -->
  104. <script type="javascript" ev:event="ondblclick">
  105. <![CDATA[
  106. if( grd_userlist.isCell(event.target) && grd_userlist.row >= grd_userlist.fixedRows )
  107. {
  108. btn_confirm.dispatch("DOMActivate");
  109. }
  110. ]]>
  111. </script>
  112. </datagrid>
  113. <group id="group4" style="left:0px; top:5px; width:750px; height:35px; ">
  114. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0; top:0px; width:750; height:35; "/>
  115. <input id="ipt_deptcd" ref="/root/send/dept/deptcd" navindex="2" class="input_s_essential" visibility="visible" style="left:100px; top:8px; width:85px; height:19px; ">
  116. <script type="javascript" ev:event="xforms-value-changed">
  117. <![CDATA[
  118. misfValidationCheck("02", "", "deptcd,deptnm" );
  119. model.refresh();
  120. ]]>
  121. </script>
  122. <!--
  123. <script type="javascript" ev:event="onkeypress">
  124. <![CDATA[
  125. if(event.keyCode == 13)
  126. {
  127. ipt_deptcd.value = ipt_deptcd.currentText;
  128. model.setValue("/root/send/dept/deptcd", ipt_deptcd.value);
  129. misfValidationCheck("02", "", "deptcd,depthngnm");
  130. model.refresh();
  131. }
  132. ]]>
  133. </script>
  134. <script type="javascript" ev:event="xforms-value-changed">
  135. <![CDATA[
  136. model.setValue("/root/send/dept/deptcd", ipt_deptcd.value);
  137. ]]>
  138. </script>
  139. -->
  140. </input>
  141. <input id="ipt_deptnm" ref="/root/send/dept/deptnm" navindex="3" class="input_s_essential" visibility="visible" style="left:210px; top:8px; width:121px; height:19px; ">
  142. <script type="javascript" ev:event="xforms-value-changed">
  143. <![CDATA[
  144. misfValidationCheck("02", "", "deptcd,deptnm" );
  145. model.refresh();
  146. ]]>
  147. </script>
  148. <!--
  149. <script type="javascript" ev:event="onkeypress">
  150. <![CDATA[
  151. if(event.keyCode == 13)
  152. {
  153. ipt_depthngnm.value = ipt_depthngnm.currentText;
  154. misfValidationCheck("02", "", "deptcd,depthngnm");
  155. model.refresh();
  156. }
  157. ]]>
  158. </script>
  159. -->
  160. </input>
  161. <caption id="caption7" class="search_name" visibility="visible" style="left:15; top:9; width:89px; height:17px; ">부서코드 :</caption>
  162. <button id="btn_depthelp" navindex="9" class="icon_search" visibility="visible" style="left:190px; top:10px; width:16px; height:16px; ">
  163. <caption/>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. misfOpenPopUpList("02", ipt_deptcd, "", "deptcd,deptnm");
  167. model.refresh();
  168. ]]>
  169. </script>
  170. </button>
  171. <button id="btn_search" navindex="5" class="btn1_letter2" style="left:679px; top:7px; width:56px; height:22px; text-align:left; ">
  172. <caption>조회</caption>
  173. <script type="javascript" ev:event="DOMActivate">
  174. <![CDATA[
  175. misfMsterDetailRetrieve();
  176. ]]>
  177. </script>
  178. </button>
  179. <caption id="caption2" class="search_name" visibility="visible" style="left:376px; top:9px; width:86px; height:17px; ">성 명 :</caption>
  180. <input id="ipt_emplnm" ref="/root/send/dept/emplnm" navindex="4" class="input_s_essential" visibility="visible" style="left:460px; top:8px; width:111px; height:19px; ">
  181. <script type="javascript" ev:event="onkeydown">
  182. <![CDATA[
  183. if(event.keyCode == 13)
  184. {
  185. ipt_emplnm.value = ipt_emplnm.currentText;
  186. model.setValue("/root/send/dept/emplnm", ipt_emplnm.value);
  187. btn_search.dispatch("DOMActivate");
  188. }
  189. ]]>
  190. </script>
  191. </input>
  192. <line id="line13" class="line_4" style="x1:664px; y1:4px; x2:664px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  193. </group>
  194. </group>
  195. <group id="group1" scroll="auto" style="left:8px; top:520px; width:750px; height:27px; ">
  196. <button id="btn_confirm" class="btn4_letter2" style="left:635px; top:5px; width:56px; height:22px; ">
  197. <caption>확인</caption>
  198. <script type="javascript" ev:event="DOMActivate">
  199. <![CDATA[
  200. misfPopUpListReturn(grd_userlist);
  201. ]]>
  202. </script>
  203. </button>
  204. <button id="btn_cancel" class="btn4_letter2" style="left:694px; top:5px; width:56px; height:22px; ">
  205. <caption>취소</caption>
  206. <script type="javascript" ev:event="DOMActivate">
  207. <![CDATA[
  208. window.close();
  209. ]]>
  210. </script>
  211. </button>
  212. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:750; y2:0px; "/>
  213. </group>
  214. </xhtml:body>
  215. </xhtml:html>