SMRPS01300_교육실적통계관리.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  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>SMRPS01300_교육실적통계관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <tableft>
  11. <educdlist/>
  12. </tableft>
  13. <tabright>
  14. <edudtcdlist/>
  15. </tabright>
  16. <grid>
  17. <rpsdedsflist/>
  18. </grid>
  19. </main>
  20. <send>
  21. <educcuse>
  22. <appyy/>
  23. <mainbdunit/>
  24. <instcd/>
  25. <educflag/>
  26. <educcd/>
  27. <total>
  28. </total>
  29. <chrgdeptcd/>
  30. <chrgdeptcdnm/>
  31. <instnm/>
  32. </educcuse>
  33. <save>
  34. </save>
  35. <dgsend>
  36. <appyy/>
  37. <instcd/>
  38. <educcd/>
  39. <educdg/>
  40. </dgsend>
  41. </send>
  42. <init>
  43. <checkbox>
  44. <label>전체</label>
  45. <value>Y</value>
  46. </checkbox>
  47. </init>
  48. </root>
  49. </instance>
  50. <script type="javascript" ev:event="xforms-ready">
  51. <![CDATA[
  52. fInitialize();
  53. ]]>
  54. </script>
  55. <submission id="TRRPS01306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/educcuse" resultref="/root/main/tabright"/>
  56. <submission id="TRRPS01303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/educcuse" resultref="/root/main/tableft"/>
  57. <submission id="TRRPS01304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/educcuse" resultref="/root/main/tabright"/>
  58. <submission id="TRRPS01305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/educcuse" resultref="/root/main/tabright"/>
  59. <submission id="TRRPS00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dgsend" resultref="/root/main/grid/rpsdedsflist"/>
  60. <submission id="TRRPS01307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dgsend" resultref="/root/main/grid/rpsdedsflist"/>
  61. </model>
  62. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  65. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  66. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  67. <script type="javascript" src="../../../mis/educationmngtweb/js/RPS001.js"/>
  68. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  69. <script type="javascript">
  70. <![CDATA[
  71. function fInitialize() {
  72. //그리드 초기화 작업
  73. model.removenode("/root/main");
  74. model.makeNode("/root/main/tableft");
  75. model.makeNode("/root/main/tabright");
  76. model.makeNode("/root/main/grid");
  77. /* Grid 초기화 */
  78. misfGridInit(grd_educdlist);
  79. misfGridInit(grd_edudtcdlist);
  80. misfGridInit(grd_satsfctlist);
  81. var curdate = getCurrentDate();
  82. model.setValue(ipt_appyy.attribute("ref") , curdate.substr(0, 4));
  83. rpsEducSetComboList("M01-001,M01-002","cmb_mainbdunit,cmb_educflag", "Y");
  84. misfComboComCdListMulti("Z0007","grd_educdlist.instcd");
  85. misfComboCopyItemSet(cmb_educflag, "", grd_educdlist, "educflag");
  86. model.refresh();
  87. }
  88. // 쿼리에서 소계까지 계산해서 가져옴.
  89. function fSubTotal() {
  90. grd_edudtcdlist.rebuildStyle() ;
  91. grd_edudtcdlist.rowStyle(grd_edudtcdlist.rows-1,"data","background-color") = "#FFFFCC";
  92. model.refresh();
  93. }
  94. ]]>
  95. </script>
  96. </xhtml:head>
  97. <xhtml:body style="margin-left:8; margin-right:8; ">
  98. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  99. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">교육이수인원/만족도통계</caption>
  100. </group>
  101. <group id="group2" scroll="auto" style="left:0px; top:20px; width:1195px; height:744px; ">
  102. <shape id="roundrect" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1190px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  103. <input id="ipt_deptnm" ref="/root/send/educcuse/chrgdeptcdnm" class="input_search" appearance="input" style="left:910px; top:13px; width:140px; height:19px; ">
  104. <script type="javascript" ev:event="xforms-value-changed">
  105. <![CDATA[
  106. if( ipt_deptnm.value.getByteLength() == '0' ) {
  107. ipt_deptcd.value = "" ;
  108. }
  109. model.refresh();
  110. ]]>
  111. </script>
  112. </input>
  113. <button id="button1" class="btn1_letter2" style="left:243px; top:43px; width:56px; height:22px; ">
  114. <caption>조회</caption>
  115. <script type="javascript" ev:event="DOMActivate">
  116. <![CDATA[
  117. if(model.getValue("/root/send/educcuse/total") == "Y") {
  118. model.removenode("/root/main/tabright");
  119. model.makeNode("/root/main/tabright");
  120. grd_edudtcdlist.rebuildStyle() ;
  121. submit("TRRPS01305");
  122. model.refresh();
  123. }
  124. ]]>
  125. </script>
  126. </button>
  127. <button id="btn_saveexcel" class="btn2_letter4" style="left:1126px; top:45px; width:64px; height:19px; ">
  128. <caption>엑셀저장</caption>
  129. <script type="javascript" ev:event="DOMActivate">
  130. <![CDATA[
  131. misfSaveExcel(grd_edudtcdlist);
  132. ]]>
  133. </script>
  134. </button>
  135. <select id="chk_total" ref="/root/send/educcuse/total" visibility="visible" appearance="full" style="left:195px; top:46px; width:50px; height:20px; border-style:none; ">
  136. <choices>
  137. <itemset nodeset="/root/init/checkbox">
  138. <label ref="label"/>
  139. <value ref="value"/>
  140. </itemset>
  141. </choices>
  142. <script type="javascript" ev:event="onclick">
  143. <![CDATA[
  144. if(model.getValue("/root/send/educcuse/total") == "Y") {
  145. ipt_educcd.value = "";
  146. model.setValue("/root/send/educcuse/total", "Y");
  147. }
  148. else {
  149. model.setValue("/root/send/educcuse/total", "");
  150. }
  151. model.refresh();
  152. ]]>
  153. </script>
  154. </select>
  155. <select1 id="cmb_mainbdunit" ref="/root/send/educcuse/mainbdunit" class="combo_search" appearance="minimal" style="left:299px; top:13px; width:86px; height:19px; ">
  156. <choices>
  157. <itemset>
  158. <label/>
  159. <value/>
  160. </itemset>
  161. </choices>
  162. </select1>
  163. <button id="button2" class="btn1_letter2" style="left:1125px; top:11px; width:56px; height:22px; ">
  164. <caption>조회</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. if(ipt_appyy.value == "") {
  168. messageBox("적용년도는","I003");
  169. model.setFocus("ipt_appyy");
  170. }
  171. else {
  172. model.removenode("/root/main/tabright");
  173. model.makeNode("/root/main/tabright");
  174. submit("TRRPS01303");
  175. }
  176. ]]>
  177. </script>
  178. </button>
  179. <datagrid id="grd_edudtcdlist" nodeset="/root/main/tabright/edudtcdlist" caption="교육코드^교육명^교육&#xA;차수^교육기간^교육기간^이수&#xA;인원^대상&#xA;인원^참석률^교육시간^교육인시^전체&#xA;만족도^기관별^기관별^기관별^기관별^기관별^기관별^기관별|교육코드^교육명^교육&#xA;차수^from^to^이수&#xA;인원^대상&#xA;인원^참석률^교육시간^교육인시^전체&#xA;만족도^의료원^성의교정^서울^성모^의정부^세종^성바오로" colsep="^" colwidth="71, 249, 40, 98, 96, 52, 50, 65, 40, 40, 55, 60, 60, 60, 60, 60, 60, 60" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:300px; top:70px; width:892px; height:655px; ">
  180. <col ref="educcd" visibility="hidden" style="text-align:center; "/>
  181. <col ref="educnm"/>
  182. <col ref="educdg" style="text-align:center; "/>
  183. <col disabled="true" ref="educfromdd" type="inputdate" style="text-align:center; "/>
  184. <col disabled="true" ref="eductodd" type="inputdate" style="text-align:center; "/>
  185. <col ref="choipsncnt" style="text-align:right; "/>
  186. <col ref="cntpsn" style="text-align:right; "/>
  187. <col ref="choipst" format="###.0 %" style="text-align:right; "/>
  188. <col ref="eductm" maxlength="5" style="text-align:right; "/>
  189. <col ref="educpsntm" style="text-align:right; "/>
  190. <col ref="satsfcttotal" style="text-align:right; "/>
  191. <col ref="inst001" visibility="hidden" style="text-align:center; "/>
  192. <col ref="inst103" visibility="hidden" style="text-align:center; "/>
  193. <col ref="inst012" visibility="hidden" style="text-align:center; "/>
  194. <col ref="inst011" visibility="hidden" style="text-align:center; "/>
  195. <col ref="inst013" visibility="hidden" style="text-align:center; "/>
  196. <col ref="inst014" style="text-align:center; "/>
  197. <col ref="inst015" visibility="hidden" style="text-align:center; "/>
  198. <script type="javascript" ev:event="ondblclick">
  199. <![CDATA[
  200. var row = grd_edudtcdlist.row;
  201. var col = grd_edudtcdlist.col;
  202. if(chk_total.value != 'Y') {
  203. if( col == grd_edudtcdlist.colRef("satsfcttotal") ) {
  204. //선택된 row의 교육코드와 년도, 차수를 가지고 세부만족도를 조회한다. 구분은 N
  205. grd_satsfctlist.visible = true;
  206. grd_edudtcdlist.attribute("style") = "left:300px; top:70px; width:892px; height:400px; ";
  207. model.setValue("/root/send/dgsend/appyy",grd_educdlist.valueMatrix(grd_educdlist.row,grd_educdlist.colRef("appyy")));
  208. model.setValue("/root/send/dgsend/instcd",grd_educdlist.valueMatrix(grd_educdlist.row,grd_educdlist.colRef("instcd")));
  209. model.setValue("/root/send/dgsend/educcd",grd_edudtcdlist.valueMatrix(row,grd_edudtcdlist.colRef("educcd")));
  210. model.setValue("/root/send/dgsend/educdg",grd_edudtcdlist.valueMatrix(row,grd_edudtcdlist.colRef("educdg")));
  211. if(grd_edudtcdlist.rows -1 == row) { // 차수별 내용이 아닌 소계의 세부만족도..
  212. model.setValue("/root/send/dgsend/educcd",grd_edudtcdlist.valueMatrix(row-1,grd_edudtcdlist.colRef("educcd")));
  213. submit("TRRPS01307");
  214. }
  215. else {
  216. submit("TRRPS00203");
  217. }
  218. }
  219. }
  220. else {
  221. if( col == grd_edudtcdlist.colRef("satsfcttotal") ) {
  222. //선택된 row의 교육코드와 년도, 차수를 가지고 세부만족도를 조회한다. 구분은 N
  223. grd_satsfctlist.visible = true;
  224. grd_edudtcdlist.attribute("style") = "left:300px; top:70px; width:892px; height:400px; ";
  225. model.setValue("/root/send/dgsend/appyy",ipt_appyy.value);
  226. model.setValue("/root/send/dgsend/educcd",grd_edudtcdlist.valueMatrix(row,grd_edudtcdlist.colRef("educcd")));
  227. submit("TRRPS01307");
  228. }
  229. }
  230. model.refresh();
  231. ]]>
  232. </script>
  233. </datagrid>
  234. <input id="ipt_educcd" ref="/root/send/educcuse/educcd" visibility="hidden" style="left:465px; top:45px; width:100px; height:19px; "/>
  235. <button id="button5" class="icon_search" style="left:1052px; top:13px; width:16px; height:16px; ">
  236. <caption/>
  237. <script type="javascript" ev:event="DOMActivate">
  238. <![CDATA[
  239. var recv_list = "chrgdeptcd,chrgdeptcdnm";
  240. rpbfOpenDeptCdHelp(ipt_deptcd,recv_list);
  241. model.refresh();
  242. ]]>
  243. </script>
  244. </button>
  245. <select1 id="cmb_educflag" ref="/root/send/educcuse/educflag" class="combo_search" appearance="minimal" style="left:722px; top:13px; width:88px; height:19px; ">
  246. <choices>
  247. <itemset>
  248. <label/>
  249. <value/>
  250. </itemset>
  251. </choices>
  252. </select1>
  253. <caption id="caption1" class="search_name" style="left:637px; top:13px; width:91px; height:17px; ">교육구분 :</caption>
  254. <caption id="caption12" class="tit_2" style="left:0px; top:50px; width:169px; height:13px; ">교육과정 List</caption>
  255. <button id="button9" class="icon_search" style="left:602px; top:13px; width:16px; height:16px; ">
  256. <caption/>
  257. <script type="javascript" ev:event="DOMActivate">
  258. <![CDATA[
  259. var recv_list = "instcd,instnm";
  260. misfOpenPopUpList("03", ipt_instnm,"Z0007", recv_list, "", "") ;
  261. model.refresh();
  262. ]]>
  263. </script>
  264. </button>
  265. <input id="ipt_appyy" ref="/root/send/educcuse/appyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:100px; top:13px; width:95px; height:19px; text-align:center; "/>
  266. <caption id="caption4" class="search_name" style="left:15px; top:13px; width:90px; height:17px; ">적용년도 :</caption>
  267. <line id="line1" class="line_4" style="x1:1110px; y1:11px; x2:1110px; y2:33px; "/>
  268. <caption id="caption5" class="search_name" style="left:214px; top:13px; width:86px; height:17px; ">주체단위 :</caption>
  269. <caption id="caption14" class="tit_2" style="left:303px; top:50px; width:169px; height:13px; ">교육과정별 이수인원</caption>
  270. <datagrid id="grd_educdlist" nodeset="/root/main/tableft/educdlist" autoresize="true" caption="주체단위^주체기관^년도^교육구분^교육명^교육코드^교육장소^교육&#xA;소요일수^교육&#xA;소요시간^개인신청&#xA;가능여부^사용&#xA;여부^주관부서^교육코드^비고" colsep="^" colwidth="28, 29, 40, 100, 183, 66" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" style="left:1px; top:70px; width:298px; height:655px; ">
  271. <col ref="mainbdunit" type="combo" visibility="hidden">
  272. <choices>
  273. <itemset>
  274. <label/>
  275. <value/>
  276. </itemset>
  277. </choices>
  278. </col>
  279. <col ref="instcd" type="combo" visibility="hidden">
  280. <choices>
  281. <itemset>
  282. <label/>
  283. <value/>
  284. </itemset>
  285. </choices>
  286. </col>
  287. <col ref="appyy" visibility="hidden"/>
  288. <col disabled="true" ref="educflag" type="combo">
  289. <choices>
  290. <itemset>
  291. <label/>
  292. <value/>
  293. </itemset>
  294. </choices>
  295. </col>
  296. <col disabled="true" ref="educcdnm" type="input"/>
  297. <col ref="educcd" visibility="hidden"/>
  298. <script type="javascript" ev:event="onrowchanged">
  299. <![CDATA[
  300. if( model.getValue("/root/send/educcuse/total") == "Y" ) {
  301. model.setValue("/root/send/educcuse/total", "");
  302. chk_total.refresh();
  303. }
  304. var i = grd_educdlist.row;
  305. var educcd = model.getValue("/root/main/tableft/educdlist["+i+"]/educcd");
  306. ipt_educcd.value = educcd;
  307. model.refresh();
  308. model.removenode("/root/main/tabright");
  309. model.makeNode("/root/main/tabright");
  310. submit("TRRPS01304");
  311. fSubTotal();
  312. ]]>
  313. </script>
  314. </datagrid>
  315. <input id="ipt_instcd" ref="/root/send/educcuse/instcd" disabled="true" visibility="hidden" style="left:600px; top:35px; width:50px; height:19px; "/>
  316. <caption id="caption7" class="search_name" style="left:405px; top:13px; width:86px; height:17px; ">주체기관 :</caption>
  317. <line id="line3" class="line_1" style="x1:1px; y1:65px; x2:298px; y2:65px; "/>
  318. <caption id="caption8" class="search_name" style="left:825px; top:13px; width:91px; height:17px; ">주관부서 :</caption>
  319. <input id="ipt_instnm" ref="/root/send/educcuse/instnm" class="input_search" appearance="input" style="left:490px; top:13px; width:110px; height:19px; ">
  320. <script type="javascript" ev:event="xforms-value-changed">
  321. <![CDATA[
  322. if( ipt_instnm.value.getByteLength() == '0' ) {
  323. ipt_instcd.value = "" ;
  324. }
  325. model.refresh();
  326. ]]>
  327. </script>
  328. </input>
  329. <line id="line5" class="line_1" style="x1:301px; y1:65px; x2:1191px; y2:65px; "/>
  330. <input id="ipt_deptcd" ref="/root/send/educcuse/chrgdeptcd" disabled="true" visibility="hidden" style="left:990px; top:30px; width:50px; height:19px; "/>
  331. <datagrid id="grd_satsfctlist" nodeset="/root/main/grid/rpsdedsflist" visibility="hidden" caption="만족도명칭^만족도" colsep="^" colwidth="731, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:300px; top:470px; width:892px; height:255px; ">
  332. <col ref="satsfctnm"/>
  333. <col ref="satsfctgd"/>
  334. <script type="javascript" ev:event="ondblclick">
  335. <![CDATA[
  336. grd_satsfctlist.visible = false;
  337. grd_edudtcdlist.attribute("style") = "left:300px; top:70px; width:892px; height:655px; ";
  338. ]]>
  339. </script>
  340. </datagrid>
  341. </group>
  342. </xhtml:body>
  343. </xhtml:html>