SMRPS04700_부서교육등록관리.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  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>SMRPS04700_부서교육등록관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <educlist/>
  11. </main>
  12. <send>
  13. <search>
  14. <appfromyy/>
  15. <educflag/>
  16. <dutinstcd/>
  17. <dutdeptnm/>
  18. <dutdeptcd/>
  19. <dutteamnm/>
  20. <dutteamcd/>
  21. <dutunitnm/>
  22. <dutunitcd/>
  23. <apptoyy/>
  24. <emplno/>
  25. <grdunitcd/>
  26. <posinstcd/>
  27. <instcd/>
  28. </search>
  29. </send>
  30. <init>
  31. </init>
  32. <temp>
  33. </temp>
  34. </root>
  35. </instance>
  36. <script type="javascript" ev:event="xforms-ready">
  37. <![CDATA[
  38. misfGridInit(grd_educlist);
  39. grd_educlist.rowHeight(0) = 40;
  40. misfMsterDetailSet(grd_educlist,null, "TRRPS04001" ,"Y");
  41. misfComboComCdListMulti("Z0007,Z0007", "cmb_dutinstcd,grd_educlist.instcd", null, "Y");
  42. rpsEducSetComboList("M01-007,M01-007", "cmb_educflag,grd_educlist.educflag", "Y");
  43. misfGetUserAuth();
  44. // user정보조회
  45. model.setValue(ipt_emplno.attribute("ref"),getUserInfo("userid"));
  46. submit("TRRPS04000");
  47. var curdate = getCurrentDate();
  48. model.setValue(ipt_appfromyy.attribute("ref") , curdate.substr(0, 4));
  49. model.setValue(ipt_apptoyy.attribute("ref") , curdate.substr(0, 4));
  50. model.setValue(cmb_dutinstcd.attribute("ref"),model.getValue("/root/init/emplinfo/dutplceinst"));
  51. if ( DUTY_EDU_YN == "Y" || DUTY_PART_YN == "Y" ){
  52. cmb_dutinstcd.disabled = false;
  53. ipt_dutdeptnm.disabled = false;
  54. ipt_dutteamnm.disabled = false;
  55. ipt_dutunitnm.disabled = false;
  56. btn_dept.disabled = false;
  57. btn_team.disabled = false;
  58. btn_unit.disabled = false;
  59. }
  60. else {
  61. model.setValue(ipt_dutdeptnm.attribute("ref"),model.getValue("/root/init/emplinfo/dutdeptnm"));
  62. model.setValue(ipt_dutdeptcd.attribute("ref"), model.getValue("/root/init/emplinfo/dutdeptcd"));
  63. model.setValue(ipt_dutteamnm.attribute("ref"),model.getValue("/root/init/emplinfo/dutteamnm"));
  64. model.setValue(ipt_dutteamcd.attribute("ref"),model.getValue("/root/init/emplinfo/dutteamcd"));
  65. model.setValue(ipt_dutunitnm.attribute("ref"), model.getValue("/root/init/emplinfo/dutunitnm"));
  66. model.setValue(ipt_dutunitcd.attribute("ref"), model.getValue("/root/init/emplinfo/dutunitcd"));
  67. fCheckDisabled();
  68. }
  69. model.refresh();
  70. ]]>
  71. </script>
  72. <submission id="TRRPS04000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/emplinfo"/>
  73. <submission id="TRRPS04701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/educlist"/>
  74. <submission id="TRRPS04999" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/deptadmin"/>
  75. </model>
  76. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  80. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  81. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  82. <script type="javascript" src="../../../mis/educationmngtweb/js/RPS001.js"/>
  83. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  84. <script type="javascript">
  85. <![CDATA[
  86. function fCheckAdmin() {
  87. // 부서교육관리자로 등록된 사람인지 체크
  88. model.setValue("/root/send/search/instcd", model.getValue("/root/init/emplinfo/dutplceinst"));
  89. submit("TRRPS04999");
  90. if( model.getValue("/root/init/deptadmin/emplno") == ipt_emplno.value ) {
  91. btn_search.disabled = false;
  92. }
  93. else {
  94. btn_search.disabled = true;
  95. }
  96. model.refresh();
  97. }
  98. function fCheckDisabled () {
  99. fCheckAdmin();
  100. cmb_dutinstcd.disabled = true;
  101. if( model.getValue("/root/init/deptadmin/teamyn") == "Y") {
  102. ipt_dutteamnm.disabled = false;
  103. ipt_dutunitnm.disabled = false;
  104. btn_team.disabled = false;
  105. btn_unit.disabled = false;
  106. }
  107. else if (model.getValue("/root/init/deptadmin/unityn") == "Y") {
  108. ipt_dutunitnm.disabled = false;
  109. btn_unit.disabled = false;
  110. }
  111. else {
  112. ipt_dutteamnm.disabled = true;
  113. ipt_dutunitnm.disabled = true;
  114. btn_team.disabled = true;
  115. btn_unit.disabled = true;
  116. }
  117. model.refresh();
  118. }
  119. ]]>
  120. </script>
  121. </xhtml:head>
  122. <xhtml:body style="margin-left:8; margin-right:8; ">
  123. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  124. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">부서교육등록관리</caption>
  125. </group>
  126. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  127. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  128. <button id="btn_search" class="btn1_letter2" style="left:1113px; top:32px; width:56px; height:22px; ">
  129. <caption>조회</caption>
  130. <script type="javascript" ev:event="DOMActivate">
  131. <![CDATA[
  132. if(!isRequiredControls("ipt_appfromyy")) return;
  133. if(!isRequiredControls("ipt_appftoyy")) return;
  134. if(!isRequiredControls("cmb_dutinstcd")) return;
  135. submit("TRRPS04701");
  136. ]]>
  137. </script>
  138. </button>
  139. <line id="line13" class="line_4" style="x1:1090px; y1:14px; x2:1090px; y2:71px; "/>
  140. <line id="line8" class="line_1" style="x1:0px; y1:98px; x2:1195px; y2:98px; "/>
  141. <caption id="caption20" class="tit_2" style="left:5px; top:84px; width:169px; height:13px; ">부서교육목록</caption>
  142. <caption id="cap_appfromyy" class="search_name" style="left:61px; top:18px; width:101px; height:17px; ">년 도 :</caption>
  143. <input id="ipt_appfromyy" ref="/root/send/search/appfromyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:135px; top:18px; width:60px; height:19px; text-align:center; "/>
  144. <caption id="cap_educflag" class="search_name" style="left:375px; top:20px; width:101px; height:17px; ">교육구분 :</caption>
  145. <select1 id="cmb_educflag" ref="/root/send/search/educflag" class="combo_search" appearance="minimal" style="left:460px; top:20px; width:135px; height:19px; text-align:center; ">
  146. <choices>
  147. <itemset>
  148. <label/>
  149. <value/>
  150. </itemset>
  151. </choices>
  152. </select1>
  153. <button id="btn_init" class="btn2_letter4" style="left:1130px; top:78px; width:64px; height:19px; ">
  154. <caption>엑셀저장</caption>
  155. <script type="javascript" ev:event="DOMActivate">
  156. <![CDATA[
  157. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  158. if (fileName != "") {
  159. grd_educlist.saveExcel(fileName,"부서교육등록관리",false);
  160. }
  161. ]]>
  162. </script>
  163. </button>
  164. <input id="ipt_dutdeptnm" ref="/root/send/search/dutdeptnm" class="input_search" disabled="true" visibility="visible" appearance="input" style="left:135px; top:46px; width:140px; height:19px; ">
  165. <script type="javascript" ev:event="xforms-value-changed">
  166. <![CDATA[
  167. if( ipt_dutdeptnm.value.getByteLength() == '0' ) {
  168. ipt_dutdeptcd.value = "" ;
  169. }
  170. model.refresh();
  171. ]]>
  172. </script>
  173. </input>
  174. <input id="ipt_dutdeptcd" ref="/root/send/search/dutdeptcd" disabled="true" visibility="hidden" style="left:186px; top:46px; width:50px; height:19px; "/>
  175. <input id="ipt_dutteamnm" ref="/root/send/search/dutteamnm" class="input_search" disabled="true" visibility="visible" appearance="input" style="left:460px; top:46px; width:135px; height:19px; ">
  176. <script type="javascript" ev:event="xforms-value-changed">
  177. <![CDATA[
  178. if( ipt_dutteamnm.value.getByteLength() == '0' ) {
  179. ipt_dutteamcd.value = "" ;
  180. }
  181. model.refresh();
  182. ]]>
  183. </script>
  184. </input>
  185. <input id="ipt_dutteamcd" ref="/root/send/search/dutteamcd" disabled="true" visibility="hidden" style="left:510px; top:46px; width:50px; height:19px; "/>
  186. <button id="btn_unit" class="icon_search" disabled="true" style="left:970px; top:46px; width:16px; height:16px; ">
  187. <caption/>
  188. <script type="javascript" ev:event="DOMActivate">
  189. <![CDATA[
  190. var unitcd = ipt_dutunitcd.value;
  191. var unitnm = ipt_dutunitnm.value;
  192. rpsfEducOpenPopUpList("07", ipt_dutunitnm, "", "dutunitcd,dutgunitnm", cmb_dutinstcd.value, "instcd");
  193. if ( DUTY_EDU_YN == "Y" || DUTY_PART_YN == "Y" ){
  194. // unit이 달라지면 상위 부서도 가져온다..
  195. model.setValue("/root/send/search/grdunitcd", ipt_dutunitcd.value);
  196. model.setValue("/root/send/search/posinstcd", cmb_dutinstcd.value);
  197. model.setValue("/root/send/search/emplno", "" );
  198. submit("TRRPS04000");
  199. model.setValue(ipt_emplno.attribute("ref"),getUserInfo("userid"));
  200. model.setValue("/root/send/search/dutdeptnm" , model.getValue("/root/init/emplinfo/dutdeptnm"));
  201. model.setValue("/root/send/search/dutdeptcd" , model.getValue("/root/init/emplinfo/dutdeptcd"));
  202. model.setValue("/root/send/search/dutteamnm" , model.getValue("/root/init/emplinfo/dutteamnm"));
  203. model.setValue("/root/send/search/dutteamcd" , model.getValue("/root/init/emplinfo/dutteamcd"));
  204. model.setValue("/root/send/search/dutunitnm" , model.getValue("/root/init/emplinfo/dutunitnm"));
  205. model.setValue("/root/send/search/dutunitcd" , model.getValue("/root/init/emplinfo/dutunitcd"));
  206. }
  207. model.refresh();
  208. ]]>
  209. </script>
  210. </button>
  211. <caption id="caption3" class="search_name" style="left:721px; top:46px; width:86px; height:17px; ">부 서 :</caption>
  212. <input id="ipt_dutunitnm" ref="/root/send/search/dutunitnm" class="input_search" disabled="true" appearance="input" style="left:805px; top:46px; width:160px; height:19px; ">
  213. <script type="javascript" ev:event="xforms-value-changed">
  214. <![CDATA[
  215. if( ipt_dutunitnm.value.getByteLength() == '0' ) {
  216. ipt_dutunitcd.value = "" ;
  217. }
  218. model.refresh();
  219. ]]>
  220. </script>
  221. </input>
  222. <input id="ipt_dutunitcd" ref="/root/send/search/dutunitcd" disabled="true" visibility="hidden" style="left:875px; top:46px; width:85px; height:19px; text-align:center; "/>
  223. <button id="btn_dept" class="icon_search" disabled="true" style="left:279px; top:46px; width:16px; height:16px; ">
  224. <caption/>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. rpsfEducOpenPopUpList("05", ipt_dutdeptnm, "", "dutdeptcd,dutdeptnm", cmb_dutinstcd.value, "instcd");
  228. rpsfEducOpenPopUpList("05", ipt_dutdeptnm, "", "dutdeptcd,dutdeptnm", cmb_dutinstcd.value, "instcd");
  229. // 부(실)을 변경하면 과(팀), 부서는 모두 공백으로 변경한다.
  230. model.setValue("/root/send/search/dutteamnm", "");
  231. model.setValue("/root/send/search/dutteamcd", "");
  232. model.setValue("/root/send/search/dutunitnm", "");
  233. model.setValue("/root/send/search/dutunitcd", "");
  234. model.refresh();
  235. ]]>
  236. </script>
  237. </button>
  238. <caption id="caption1" class="search_name" style="left:375px; top:46px; width:86px; height:17px; ">과 (팀) :</caption>
  239. <caption id="caption2" class="search_name" style="left:61px; top:46px; width:86px; height:17px; ">부(실) :</caption>
  240. <button id="btn_team" class="icon_search" disabled="true" style="left:600px; top:46px; width:16px; height:16px; ">
  241. <caption/>
  242. <script type="javascript" ev:event="DOMActivate">
  243. <![CDATA[
  244. rpsfEducOpenPopUpList("06", ipt_dutteamnm, "", "dutteamcd,dutteamnm", cmb_dutinstcd.value, "instcd");
  245. // 과(팀)을 변경하면 부서는 모두 공백으로 변경한다.
  246. model.setValue("/root/send/search/dutunitnm", "");
  247. model.setValue("/root/send/search/dutunitcd", "");
  248. model.refresh();
  249. ]]>
  250. </script>
  251. </button>
  252. <select1 id="cmb_dutinstcd" ref="/root/send/search/dutinstcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:805px; top:20px; width:185px; height:19px; ">
  253. <choices>
  254. <itemset>
  255. <label/>
  256. <value/>
  257. </itemset>
  258. </choices>
  259. </select1>
  260. <caption id="caption9" class="search_name" style="left:721px; top:20px; width:85px; height:17px; ">기 관 :</caption>
  261. <input id="ipt_apptoyy" ref="/root/send/search/apptoyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:215px; top:18px; width:60px; height:19px; text-align:center; "/>
  262. <caption id="caption4" style="left:200px; top:22px; width:15px; height:15px; ">~</caption>
  263. <datagrid id="grd_educlist" nodeset="/root/main/educlist" caption="기관^부(실)코드^부(실)^과(팀)코드^과(팀)^부서코드^부서^교육구분^연간교육계획^OT일정표^부서교육수^외부교육수" colsep="^" colwidth="140, 100, 140, 100, 140, 100, 170, 171, 90, 80, 80, 80" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:103px; width:1195px; height:615px; ">
  264. <col disabled="true" ref="instcd" type="combo">
  265. <choices>
  266. <itemset>
  267. <label/>
  268. <value/>
  269. </itemset>
  270. </choices>
  271. </col>
  272. <col ref="deptcd" visibility="hidden"/>
  273. <col ref="deptnm"/>
  274. <col ref="teamcd" visibility="hidden"/>
  275. <col ref="teamnm"/>
  276. <col ref="unitcd" visibility="hidden"/>
  277. <col ref="unitnm"/>
  278. <col disabled="true" ref="educflag" type="combo">
  279. <choices>
  280. <itemset>
  281. <label/>
  282. <value/>
  283. </itemset>
  284. </choices>
  285. </col>
  286. <col ref="yearplan" style="text-align:center; "/>
  287. <col ref="otplan" style="text-align:center; "/>
  288. <col ref="depteducnt" style="text-align:center; "/>
  289. <col ref="outeducnt" style="text-align:center; "/>
  290. </datagrid>
  291. <input id="ipt_emplno" ref="/root/send/search/emplno" disabled="true" visibility="hidden" style="left:910px; top:65px; width:85px; height:19px; text-align:center; "/>
  292. </group>
  293. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; "/>
  294. </xhtml:body>
  295. </xhtml:html>