SMRPS03800_연간교육계획.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  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. </main>
  11. <send>
  12. <appyy/>
  13. <educflag/>
  14. <instcd/>
  15. <mainbdunit/>
  16. <educdd/>
  17. <eductodd/>
  18. <instnm/>
  19. <attach>
  20. </attach>
  21. <educcd/>
  22. </send>
  23. <temp/>
  24. </root>
  25. </instance>
  26. <script type="javascript" ev:event="xforms-ready">
  27. <![CDATA[
  28. //화면초기화
  29. finit();
  30. ]]>
  31. </script>
  32. <submission id="TRRPS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grid/rpsdedyylist"/>
  33. <submission id="TRRPS00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dgsend" resultref="/root/main/grid/rpsdeddglist"/>
  34. </model>
  35. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  39. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  40. <script type="javascript" src="../../../mis/educationmngtweb/js/RPS001.js"/>
  41. <script type="javascript">
  42. <![CDATA[
  43. //화면초기화
  44. function finit() {
  45. /* Grid 초기화 */
  46. model.removeNodeset(grd_rpsdedyylist.nodeset);
  47. model.removeNodeset(grd_rpsdeddglist.nodeset);
  48. misfMsterDetailSet(grd_rpsdedyylist,null, "TRRPS00201" ,"Y");
  49. misfMsterDetailSet(grd_rpsdeddglist, grd_rpsdedyylist, "TRRPS00202" ,"Y");
  50. var curdate = getCurrentDate();
  51. model.setValue(ipt_appyy.attribute("ref") , curdate.substr(0, 4));
  52. rpsEducSetComboList("M01-001,M01-002", "cmb_mainbdunit,cmb_educflag", "Y");
  53. model.refresh();
  54. }
  55. function fSetSendValue() {
  56. model.setValue("/root/send/dgsend/appyy", grd_rpsdedyylist.valueMatrix(grd_rpsdedyylist.row, grd_rpsdedyylist.colRef("appyy")) );
  57. model.setValue("/root/send/dgsend/instcd", grd_rpsdedyylist.valueMatrix(grd_rpsdedyylist.row, grd_rpsdedyylist.colRef("instcd")) );
  58. model.setValue("/root/send/dgsend/educcd", grd_rpsdedyylist.valueMatrix(grd_rpsdedyylist.row, grd_rpsdedyylist.colRef("educcd")) );
  59. model.setValue("/root/send/dgsend/edbasecd", grd_rpsdedyylist.valueMatrix(grd_rpsdedyylist.row, grd_rpsdedyylist.colRef("edbasecd")) );
  60. }
  61. function fCheckAppdgDisable() {
  62. var todate = getCurrentDate();
  63. var totime = getCurrentTime().substr(0,4);
  64. for(var idx = grd_rpsdeddglist.fixedRows; idx < grd_rpsdeddglist.rows; idx++) {
  65. if( grd_rpsdeddglist.valueMatrix(idx, grd_rpsdeddglist.colRef("educappfromdd")) <= todate &&
  66. todate <= grd_rpsdeddglist.valueMatrix(idx, grd_rpsdeddglist.colRef("educapptodd")) ) {
  67. if (grd_rpsdeddglist.valueMatrix(idx,grd_rpsdeddglist.colRef("educapptodd")) == todate &&
  68. grd_rpsdeddglist.valueMatrix(idx,grd_rpsdeddglist.colRef("educappendtm")) <= totime ) {
  69. grd_rpsdeddglist.rowStyle(idx, "all", "background-color") ="#dddddd";
  70. }
  71. }
  72. else if( grd_rpsdeddglist.valueMatrix(idx, grd_rpsdeddglist.colRef("educappfromdd")) > todate ){
  73. }
  74. else {
  75. grd_rpsdeddglist.rowStyle(idx, "all", "background-color") ="#dddddd";
  76. }
  77. }
  78. model.refresh();
  79. }
  80. ]]>
  81. </script>
  82. </xhtml:head>
  83. <xhtml:body style="text-align:center; margin-left:8; margin-right:8; ">
  84. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  85. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">연간교육계획</caption>
  86. </group>
  87. <group id="group2" scroll="auto" style="left:0px; top:30px; width:1195px; height:744px; ">
  88. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:59px; background-color:#fffbf2; border-color:#ffd799; "/>
  89. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:63px; "/>
  90. <line id="line8" class="line_1" style="x1:0px; y1:94px; x2:1195px; y2:94px; "/>
  91. <caption id="caption20" class="tit_2" style="left:5px; top:80px; width:169px; height:14px; ">연간교육계획</caption>
  92. <caption id="caption10" class="search_name" style="left:15px; top:17px; width:90px; height:17px; ">년 도 :</caption>
  93. <input id="ipt_appyy" ref="/root/send/appyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:100px; top:16px; width:126px; height:19px; text-align:center; ">
  94. <script type="javascript" ev:event="xforms-value-changed">
  95. <![CDATA[
  96. grd_rpsdedyylist.valueMatrix(grd_rpsdedyylist.row,grd_rpsdedyylist.colRef("appyy")) = ipt_appyy.value;
  97. ]]>
  98. </script>
  99. </input>
  100. <caption id="caption2" class="search_name" style="left:749px; top:19px; width:87px; height:17px; ">주체기관 :</caption>
  101. <caption id="cap_educlrgcd" class="search_name" style="left:15px; top:43px; width:91px; height:17px; ">교육구분 :</caption>
  102. <caption id="cap_mainbdunit" class="search_name" style="left:399px; top:19px; width:86px; height:17px; ">주체단위 :</caption>
  103. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:28px; width:56px; height:22px; ">
  104. <caption>조회</caption>
  105. <script type="javascript" ev:event="DOMActivate">
  106. <![CDATA[
  107. if(!isRequiredControls("ipt_appyy")) return;
  108. submit("TRRPS00201");
  109. grd_rpsdedyylist.dispatch("onrowchanged");
  110. model.refresh();
  111. ]]>
  112. </script>
  113. </button>
  114. <caption id="cap_educdd" class="search_name" style="left:398px; top:43px; width:87px; height:17px; ">교육년월 :</caption>
  115. <input id="ipt_educdd" ref="/root/send/educdd" class="input_search" inputtype="date" format="yyyy-mm" style="left:485px; top:43px; width:80px; height:19px; text-align:center; "/>
  116. <caption id="caption3" style="left:567px; top:43px; width:15px; height:20px; text-align:center; ">~</caption>
  117. <input id="ipt_eductodd" ref="/root/send/eductodd" class="input_search" inputtype="date" format="yyyy-mm" style="left:585px; top:43px; width:80px; height:19px; text-align:center; "/>
  118. <button id="btn_init" class="btn2_letter4" visibility="hidden" style="left:1130px; top:74px; width:64px; height:19px; ">
  119. <caption>엑셀저장</caption>
  120. <script type="javascript" ev:event="DOMActivate">
  121. <![CDATA[
  122. misfSaveExcel(grd_rpsdedyylist);
  123. ]]>
  124. </script>
  125. </button>
  126. <select1 id="cmb_mainbdunit" ref="/root/send/mainbdunit" class="combo_search" appearance="minimal" style="left:485px; top:19px; width:126px; height:19px; text-align:center; ">
  127. <choices>
  128. <itemset>
  129. <label/>
  130. <value/>
  131. </itemset>
  132. </choices>
  133. </select1>
  134. <select1 id="cmb_educflag" ref="/root/send/educflag" class="combo_search" appearance="minimal" style="left:100px; top:43px; width:126px; height:19px; text-align:center; ">
  135. <choices>
  136. <itemset>
  137. <label/>
  138. <value/>
  139. </itemset>
  140. </choices>
  141. </select1>
  142. <input id="ipt_instnm" ref="/root/send/instnm" class="input_search" appearance="input" style="left:835px; top:19px; width:155px; height:19px; ">
  143. <script type="javascript" ev:event="xforms-value-changed">
  144. <![CDATA[
  145. if( ipt_instnm.value.getByteLength() == '0' ) {
  146. ipt_instcd.value = "" ;
  147. }
  148. model.refresh();
  149. ]]>
  150. </script>
  151. </input>
  152. <input id="ipt_instcd" ref="/root/send/instcd" disabled="true" visibility="hidden" style="left:1015px; top:19px; width:50px; height:19px; "/>
  153. <button id="button8" class="icon_search" style="left:994px; top:19px; width:16px; height:16px; ">
  154. <caption/>
  155. <script type="javascript" ev:event="DOMActivate">
  156. <![CDATA[
  157. var recv_list = "instcd,instnm";
  158. misfOpenPopUpList("03", ipt_instnm,"Z0007", recv_list, "", "") ;
  159. model.refresh();
  160. ]]>
  161. </script>
  162. </button>
  163. <caption id="caption1" class="tit_2" style="left:2px; top:376px; width:170px; height:13px; ">연간 교육훈련비 예산신청</caption>
  164. <line id="line1" class="line_1" style="x1:0px; y1:390px; x2:1195px; y2:391px; "/>
  165. <datagrid id="datagrid1" nodeset="/root/main/grid/educlist" autoresize="true" caption="부서교육코드^연도^주체단위^주체기관코드^부서^부서코드^교육구분^의료기관평가코드^교육명^차수^교육기간^교육기간^교육시간^교육&#xA;총시간^교육장소^신입&#xA;인원^재직원&#xA;인원^총인원^등록완료인원^강사^예산^실시기관코드" colsep="^" colwidth="40, 50, 50, 62, 100, 40, 100, 120, 200, 40, 95, 95, 102, 45, 140, 50, 50, 50, 56, 100, 110" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" style="left:0px; top:394px; width:1194px; height:341px; ">
  166. <col ref="depteduccd" visibility="hidden"/>
  167. <col class="input_s_essential" ref="appyy" _key="true" style="text-align:center; "/>
  168. <col class="combo_s_essential" ref="mainbdunit" visibility="hidden"/>
  169. <col ref="posinstcd" visibility="hidden"/>
  170. <col class="input_s_essential" ref="chrgunitnm" type="inputbutton" style="text-align:center; "/>
  171. <col class="input_s_essential" ref="chrgunitcd" visibility="hidden"/>
  172. <col class="input_s_essential" ref="educflag" type="combo" style="text-align:center; ">
  173. <choices>
  174. <itemset>
  175. <label/>
  176. <value/>
  177. </itemset>
  178. </choices>
  179. </col>
  180. <col ref="medinstvalucd" type="combo" visibility="hidden" style="text-align:center; ">
  181. <choices>
  182. <itemset>
  183. <label/>
  184. <value/>
  185. </itemset>
  186. </choices>
  187. </col>
  188. <col class="input_s_essential" ref="educnm" type="input" maxlength="300"/>
  189. <col class="combo_s_essential" ref="educdg" type="input" visibility="hidden" format="###" maxlength="3" style="text-align:center; "/>
  190. <col class="input_s_essential" ref="educfromdd" type="inputdate" _key="true" style="text-align:center; "/>
  191. <col class="input_s_essential" ref="eductodd" type="inputdate" _key="true" style="text-align:center; "/>
  192. <col class="input_s_essential" ref="eductime" type="input" maxlength="20" style="text-align:center; "/>
  193. <col class="input_s_essential" ref="eductm" type="input" format="#####" maxlength="5" style="text-align:center; "/>
  194. <col class="combo_s_essential" ref="educplce" type="input" style="text-align:left; "/>
  195. <col class="input_s_essential" ref="newpsn" type="input" format="####" maxlength="4"/>
  196. <col class="input_s_essential" ref="oldpsn" type="input" format="####" maxlength="4"/>
  197. <col class="input_search" ref="totalpsn" format="####" maxlength="4"/>
  198. <col class="input_search" ref="cmpltcurspsnno" format="####" maxlength="4" style="color:#ff0000; text-align:center; "/>
  199. <col class="input_search" ref="lactr" type="input" maxlength="30" style="text-align:left; "/>
  200. <col class="input_search" ref="bugt" type="input" format="#,###" maxlength="10" style="text-align:right; "/>
  201. <script type="javascript" ev:event="onbuttonclick">
  202. <![CDATA[
  203. if(grd_educlist.col == grd_educlist.colRef("chrgunitnm")) {
  204. var recv_list = "chrgunitcd,chrgunitnm";
  205. misfOpenPopUpList("02", grd_educlist,"", recv_list, grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("posinstcd")), "instcd") ;
  206. // unit이 달라지면 상위 부서도 가져온다..
  207. model.setValue("/root/send/search/grdunitcd", grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("chrgunitcd")) );
  208. model.setValue("/root/send/search/emplno", "" );
  209. submit("TRRPS04000");
  210. grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("chrgdeptnm")) = model.getValue("/root/init/emplinfo/dutdeptnm");
  211. grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("chrgdeptcd")) = model.getValue("/root/init/emplinfo/dutdeptcd");
  212. grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("chrgteamnm")) = model.getValue("/root/init/emplinfo/dutteamnm");
  213. grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("chrgteamcd")) = model.getValue("/root/init/emplinfo/dutteamcd");
  214. model.refresh();
  215. }
  216. ]]>
  217. </script>
  218. <script type="javascript" ev:event="xforms-value-changed">
  219. <![CDATA[
  220. if( grd_educlist.col == grd_educlist.colRef("newpsn") || grd_educlist.col == grd_educlist.colRef("oldpsn") ) {
  221. grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("totalpsn"))
  222. = parseInt(grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("newpsn")))
  223. + parseInt(grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("oldpsn")));
  224. }
  225. model.refresh();
  226. ]]>
  227. </script>
  228. <script type="javascript" ev:event="onrowchanged">
  229. <![CDATA[
  230. fEducTrgtManListRetrieve();
  231. ]]>
  232. </script>
  233. </datagrid>
  234. <datagrid id="datagrid2" nodeset="/root/main/grid/educlist" autoresize="true" caption="부서교육코드^연도^주체단위^주체기관코드^부서^부서코드^교육구분^교육명^교육기간^교육기간^예상인원^교육시간^비고^최종저장일^실시기관코드" colsep="^" colwidth="40, 50, 50, 62, 100, 40, 100, 200, 95, 95, 100, 102, 140, 110" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" style="left:0px; top:99px; width:1194px; height:271px; ">
  235. <col ref="depteduccd" visibility="hidden"/>
  236. <col class="input_s_essential" ref="appyy" _key="true" style="text-align:center; "/>
  237. <col class="combo_s_essential" ref="mainbdunit" visibility="hidden"/>
  238. <col ref="posinstcd" visibility="hidden"/>
  239. <col class="input_s_essential" ref="chrgunitnm" type="inputbutton" style="text-align:center; "/>
  240. <col class="input_s_essential" ref="chrgunitcd" visibility="hidden"/>
  241. <col class="input_s_essential" ref="educflag" type="combo" style="text-align:center; ">
  242. <choices>
  243. <itemset>
  244. <label/>
  245. <value/>
  246. </itemset>
  247. </choices>
  248. </col>
  249. <col class="input_s_essential" ref="educnm" type="input" maxlength="300"/>
  250. <col class="input_s_essential" ref="educfromdd" type="inputdate" _key="true" style="text-align:center; "/>
  251. <col class="input_s_essential" ref="eductodd" type="inputdate" _key="true" style="text-align:center; "/>
  252. <col/>
  253. <col class="input_s_essential" ref="eductime" type="input" maxlength="20" style="text-align:center; "/>
  254. <col class="combo_s_essential" ref="educplce" type="input" style="text-align:left; "/>
  255. <col class="input_search" ref="bugt" type="input" format="#,###" maxlength="10" style="text-align:right; "/>
  256. <script type="javascript" ev:event="onbuttonclick">
  257. <![CDATA[
  258. if(grd_educlist.col == grd_educlist.colRef("chrgunitnm")) {
  259. var recv_list = "chrgunitcd,chrgunitnm";
  260. misfOpenPopUpList("02", grd_educlist,"", recv_list, grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("posinstcd")), "instcd") ;
  261. // unit이 달라지면 상위 부서도 가져온다..
  262. model.setValue("/root/send/search/grdunitcd", grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("chrgunitcd")) );
  263. model.setValue("/root/send/search/emplno", "" );
  264. submit("TRRPS04000");
  265. grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("chrgdeptnm")) = model.getValue("/root/init/emplinfo/dutdeptnm");
  266. grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("chrgdeptcd")) = model.getValue("/root/init/emplinfo/dutdeptcd");
  267. grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("chrgteamnm")) = model.getValue("/root/init/emplinfo/dutteamnm");
  268. grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("chrgteamcd")) = model.getValue("/root/init/emplinfo/dutteamcd");
  269. model.refresh();
  270. }
  271. ]]>
  272. </script>
  273. <script type="javascript" ev:event="xforms-value-changed">
  274. <![CDATA[
  275. if( grd_educlist.col == grd_educlist.colRef("newpsn") || grd_educlist.col == grd_educlist.colRef("oldpsn") ) {
  276. grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("totalpsn"))
  277. = parseInt(grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("newpsn")))
  278. + parseInt(grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("oldpsn")));
  279. }
  280. model.refresh();
  281. ]]>
  282. </script>
  283. <script type="javascript" ev:event="ondblclick">
  284. <![CDATA[
  285. fEducTrgtManListRetrieve();
  286. ]]>
  287. </script>
  288. </datagrid>
  289. </group>
  290. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; "/>
  291. </xhtml:body>
  292. </xhtml:html>