xSMRPS06000_부서트레이닝총관리자등록.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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>SMRPS06000_부서트레이닝총관리자등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <grid>
  11. <deptadmin/>
  12. <loadexcel/>
  13. </grid>
  14. </main>
  15. <send>
  16. <search>
  17. <deptnm/>
  18. <deptcd/>
  19. <instcd/>
  20. <instnm/>
  21. <adminyn/>
  22. </search>
  23. <save>
  24. </save>
  25. </send>
  26. <init>
  27. </init>
  28. <temp>
  29. </temp>
  30. </root>
  31. </instance>
  32. <script type="javascript" ev:event="xforms-ready">
  33. <![CDATA[
  34. fCheckAuth(); // 버튼권한부여
  35. // user정보조회
  36. model.setValue("/root/send/search/instnm",getUserInfo("dutplceinstnm"));
  37. model.setValue("/root/send/search/instcd",getUserInfo("dutplceinstcd"));
  38. model.setValue("/root/send/search/deptnm",getUserInfo("dutplcenm"));
  39. model.setValue("/root/send/search/deptcd",getUserInfo("dutplcecd"));
  40. misfGridInit(grd_deptadmin);
  41. misfMsterDetailSet(grd_deptadmin,null, "TRRPS06001" ,"Y");
  42. model.removenode("/root/main/grid/deptadmin");
  43. grd_deptadmin.selectionMode = "byrow";
  44. model.refresh();
  45. ]]>
  46. </script>
  47. <submission id="TRRPS06001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/grid/deptadmin"/>
  48. <submission id="TXRPS06001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/grid/deptadmin" resultref="/root/temp"/>
  49. </model>
  50. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  54. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  55. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  56. <script type="javascript" src="../../../mis/educationmngtweb/js/RPS001.js"/>
  57. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  58. <script type="javascript">
  59. <![CDATA[
  60. function fCheckAuth() {
  61. btn_save.disabled = !checkAuth("X") ;
  62. btn_loadexcel.disabled = !checkAuth("X") ;
  63. btn_saveexcel.disabled = !checkAuth("X") ;
  64. }
  65. function fLoadExcel() {
  66. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  67. grd_loadexcel.loadExcel(fileName);
  68. grd_loadexcel.rebuild();
  69. var sEmplno = "";
  70. var iRowIdx = -1;
  71. for(var i=1; i<grd_loadexcel.rows; i++)
  72. {
  73. sEmplno = grd_loadexcel.valueMatrix(i, grd_loadexcel.colRef("emplno"));
  74. if(sEmplno == "") continue;
  75. iRowIdx = grd_deptadmin.findRow(sEmplno, 0, grd_deptadmin.colRef("emplno"));
  76. if(iRowIdx != -1) {
  77. continue;
  78. }
  79. else {
  80. grd_deptadmin.addRow(false);
  81. model.setValue(grd_deptadmin.nodeset + "[" + grd_deptadmin.row + "]/emplno", sEmplno);
  82. model.setValue(grd_deptadmin.nodeset + "[" + grd_deptadmin.row + "]/adminyn", "Y");
  83. }
  84. }
  85. model.refresh();
  86. }
  87. ]]>
  88. </script>
  89. </xhtml:head>
  90. <xhtml:body style="margin-left:8; margin-right:8; ">
  91. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  92. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">부서트레이닝총관리자등록</caption>
  93. </group>
  94. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  95. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  96. <button id="btn_search" class="btn1_letter2" style="left:1118px; top:17px; width:56px; height:22px; ">
  97. <caption>조회</caption>
  98. <script type="javascript" ev:event="DOMActivate">
  99. <![CDATA[
  100. if(!isRequiredControls("ipt_instcd")) return;
  101. model.setValue("/root/send/search/adminyn","Y");
  102. submit("TRRPS06001");
  103. ]]>
  104. </script>
  105. </button>
  106. <line id="line13" class="line_4" style="x1:1100px; y1:16px; x2:1100px; y2:38px; "/>
  107. <line id="line8" class="line_1" style="x1:0px; y1:73px; x2:1195px; y2:73px; "/>
  108. <caption id="caption20" class="tit_2" style="left:5px; top:59px; width:169px; height:14px; ">부서트레이닝 관리자</caption>
  109. <button id="btn_del" class="btn2_letter3" style="left:1002px; top:52px; width:53px; height:19px; ">
  110. <caption>행삭제</caption>
  111. <script type="javascript" ev:event="DOMActivate">
  112. <![CDATA[
  113. if(!isRequiredControls("ipt_instcd")) return;
  114. misfGridIUD(grd_deptadmin, "D");
  115. model.refresh();
  116. ]]>
  117. </script>
  118. </button>
  119. <button id="btn_add" class="btn2_letter3" style="left:947px; top:52px; width:53px; height:19px; ">
  120. <caption>행추가</caption>
  121. <script type="javascript" ev:event="DOMActivate">
  122. <![CDATA[
  123. if(!isRequiredControls("ipt_instcd")) return;
  124. // misfGridIUD(grd_deptadmin, "A");
  125. grd_deptadmin.addRow();
  126. grd_deptadmin.valueMatrix(grd_deptadmin.row,grd_deptadmin.colRef("adminyn")) = "Y";
  127. model.refresh();
  128. ]]>
  129. </script>
  130. </button>
  131. <button id="btn_loadexcel" class="btn2_letter4" style="left:1062px; top:52px; width:64px; height:19px; ">
  132. <caption>엑셀입력</caption>
  133. <script type="javascript" ev:event="DOMActivate">
  134. <![CDATA[
  135. fLoadExcel();
  136. ]]>
  137. </script>
  138. </button>
  139. <button id="btn_unit" class="icon_search" style="left:688px; top:20px; width:16px; height:16px; ">
  140. <caption/>
  141. <script type="javascript" ev:event="DOMActivate">
  142. <![CDATA[
  143. misfOpenPopUpList("02", ipt_deptnm, "", "deptcd,deptnm", ipt_instcd.value, "instcd");
  144. model.refresh();
  145. ]]>
  146. </script>
  147. </button>
  148. <caption id="caption3" class="search_name" style="left:515px; top:20px; width:86px; height:17px; ">부 서 :</caption>
  149. <input id="ipt_deptnm" ref="/root/send/search/deptnm" class="input_search" imemode="hangul" appearance="input" style="left:708px; top:18px; width:150px; height:19px; text-align:center; ">
  150. <script type="javascript" ev:event="xforms-value-changed">
  151. <![CDATA[
  152. if( ipt_deptnm.value.getByteLength() == '0' ) {
  153. ipt_deptcd.value = "" ;
  154. }
  155. misfValidationCheck("02", "", "deptcd,deptnm" );
  156. model.refresh();
  157. ]]>
  158. </script>
  159. </input>
  160. <input id="ipt_deptcd" ref="/root/send/search/deptcd" class="input_search" style="left:600px; top:18px; width:85px; height:19px; text-align:center; "/>
  161. <input id="ipt_instnm" ref="/root/send/search/instnm" class="input_s_essential" imemode="hangul" appearance="input" style="left:193px; top:18px; width:240px; height:19px; text-align:center; ">
  162. <script type="javascript" ev:event="xforms-value-changed">
  163. <![CDATA[
  164. if( ipt_instnm.value.getByteLength() == '0' ) {
  165. ipt_instcd.value = "" ;
  166. }
  167. model.refresh();
  168. ]]>
  169. </script>
  170. </input>
  171. <input id="ipt_instcd" ref="/root/send/search/instcd" class="input_s_essential" style="left:110px; top:18px; width:60px; height:19px; text-align:center; "/>
  172. <caption id="cap_instcd" class="search_name" style="left:25px; top:18px; width:86px; height:17px; ">기 관 :</caption>
  173. <datagrid id="grd_deptadmin" nodeset="/root/main/grid/deptadmin" caption="사원번호^이름^소속(팀) 코드^소속(팀)^근무부서코드^근무부서^변경전사번^기관^관리자유무" colsep="^" colwidth="130, 125, 100, 200, 100, 200, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" style="left:0px; top:78px; width:1194px; height:642px; ">
  174. <col ref="emplno" type="inputbutton" _key="true" style="text-align:center; "/>
  175. <col ref="emplnm" style="text-align:center; "/>
  176. <col ref="teamcd" style="text-align:center; "/>
  177. <col ref="teamnm" style="text-align:center; "/>
  178. <col ref="dutunitcd" style="text-align:center; "/>
  179. <col ref="dutunitnm" style="text-align:center; "/>
  180. <col ref="oldemplno" visibility="hidden" style="text-align:center; "/>
  181. <col ref="instcd" visibility="hidden"/>
  182. <col ref="adminyn" visibility="hidden"/>
  183. <script type="javascript" ev:event="onbuttonclick">
  184. <![CDATA[
  185. var curdate = getCurrentDate().substr(0,4);
  186. if(grd_deptadmin.col == grd_deptadmin.colRef("emplno") ) {
  187. rpbfOpenPopUpList("SPRPB00101", grd_deptadmin, "emplno,emplnm,teamcd,teamnm,dutunitcd,dutunitnm,instcd", "", "N");
  188. }
  189. model.refresh();
  190. ]]>
  191. </script>
  192. </datagrid>
  193. <button id="btn_saveexcel" class="btn2_letter4" style="left:1128px; top:52px; width:64px; height:19px; ">
  194. <caption>엑셀저장</caption>
  195. <script type="javascript" ev:event="DOMActivate">
  196. <![CDATA[
  197. misfSaveExcel(grd_deptadmin);
  198. ]]>
  199. </script>
  200. </button>
  201. <datagrid id="grd_loadexcel" nodeset="/root/main/grid/loadexcel" visibility="hidden" caption="사번" colsep="^" colwidth="80" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:1070px; top:135px; width:120px; height:96px; ">
  202. <col ref="emplno" style="text-align:center; "/>
  203. </datagrid>
  204. <button id="button8" class="icon_search" style="left:173px; top:20px; width:16px; height:16px; ">
  205. <caption/>
  206. <script type="javascript" ev:event="DOMActivate">
  207. <![CDATA[
  208. var recv_list = "instcd,instnm";
  209. misfOpenPopUpList("03", ipt_instnm,"Z0007", recv_list, "", "") ;
  210. model.refresh();
  211. ]]>
  212. </script>
  213. </button>
  214. </group>
  215. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  216. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
  217. <caption>저장</caption>
  218. <script type="javascript" ev:event="DOMActivate">
  219. <![CDATA[
  220. if( checkKeyColumn("grd_deptadmin") == false) return;
  221. if(misfSave("TXRPS06001")) {
  222. btn_search.dispatch("DOMActivate");
  223. }
  224. ]]>
  225. </script>
  226. </button>
  227. </group>
  228. </xhtml:body>
  229. </xhtml:html>