SMRPS00100_교육코드관리.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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. <rpsmedcdlist/>
  11. </main>
  12. <send>
  13. <appyy/>
  14. <mainbdunit/>
  15. <educflag/>
  16. <instcd/>
  17. <instnm/>
  18. <rpsmedcdlist>
  19. </rpsmedcdlist>
  20. </send>
  21. <init>
  22. </init>
  23. <temp>
  24. </temp>
  25. </root>
  26. </instance>
  27. <script type="javascript" ev:event="xforms-ready">
  28. <![CDATA[
  29. // user 권한체크
  30. fCheckAuth() ;
  31. /* Grid 초기화 */
  32. misfGridInit(grd_rpsmedcdlist);
  33. grd_rpsmedcdlist.rowHeight(0) = 50;
  34. misfMsterDetailSet(grd_rpsmedcdlist,null, "TRRPS00101" ,"Y");
  35. rpsEducSetComboList("M01-001,M01-002,M01-001,M01-002", "cmb_mainbdunit,cmb_educflag,grd_rpsmedcdlist.mainbdunit,grd_rpsmedcdlist.educflag", "Y", "1,2,3");
  36. model.refresh();
  37. ]]>
  38. </script>
  39. <script type="javascript">
  40. <![CDATA[
  41. //========================================================================================
  42. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  43. //========================================================================================
  44. function fCheckAuth() {
  45. misfGetUserAuth();
  46. if( DUTY_EDU_YN == 'Y' || getUserInfo("dutplcecd") == "4020503000" ) {
  47. btn_search.disabled = !checkAuth("R") ;
  48. btn_save.disabled = !checkAuth("X") ;
  49. btn_init.disabled = !checkAuth("X") ;
  50. }
  51. }
  52. ]]>
  53. </script>
  54. <submission id="TRRPS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rpsmedcdlist"/>
  55. <submission id="TXRPS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rpsmedcdlist" resultref="/root/temp"/>
  56. </model>
  57. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  61. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  62. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  63. <script type="javascript" src="../../../mis/educationmngtweb/js/RPS001.js"/>
  64. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  65. </xhtml:head>
  66. <xhtml:body style="margin-left:8; margin-right:8; ">
  67. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  68. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">교육코드등록</caption>
  69. </group>
  70. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  71. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  72. <button id="btn_search" class="btn1_letter2" style="left:1110px; top:18px; width:56px; height:22px; ">
  73. <caption>조회</caption>
  74. <script type="javascript" ev:event="DOMActivate">
  75. <![CDATA[
  76. if(!isRequiredControls("ipt_appyy")) return;
  77. submit("TRRPS00101");
  78. ]]>
  79. </script>
  80. </button>
  81. <line id="line13" class="line_4" style="x1:1073px; y1:18px; x2:1073px; y2:40px; "/>
  82. <caption id="cap_mainbdunit" class="search_name" style="left:34px; top:18px; width:86px; height:17px; ">주체단위 :</caption>
  83. <line id="line8" class="line_1" style="x1:0px; y1:73px; x2:1195px; y2:73px; "/>
  84. <caption id="caption20" class="tit_2" style="left:5px; top:59px; width:169px; height:13px; ">교육코드 목록</caption>
  85. <caption id="cap_educflag" class="search_name" style="left:781px; top:18px; width:91px; height:17px; ">교육구분 :</caption>
  86. <select1 id="cmb_mainbdunit" ref="/root/send/mainbdunit" class="combo_search" appearance="minimal" style="left:121px; top:18px; width:126px; height:19px; ">
  87. <choices>
  88. <itemset>
  89. <label/>
  90. <value/>
  91. </itemset>
  92. </choices>
  93. </select1>
  94. <select1 id="cmb_educflag" ref="/root/send/educflag" class="combo_search" appearance="minimal" style="left:868px; top:18px; width:126px; height:19px; ">
  95. <choices>
  96. <itemset>
  97. <label/>
  98. <value/>
  99. </itemset>
  100. </choices>
  101. </select1>
  102. <datagrid id="grd_rpsmedcdlist" nodeset="/root/main/rpsmedcdlist" autoresize="true" caption="주체단위^주체기관^기관코드^교육구분^교육명^개인신청&#xA;가능여부^인사팀&#xA;대상자확정^educcd" colsep="^" colwidth="122, 204, 100, 128, 365, 70, 70, 100" dataheight="25" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:77px; width:1194px; height:613px; ">
  103. <col class="combo_s_essential" ref="mainbdunit" type="combo" _key="true">
  104. <choices>
  105. <itemset>
  106. <label/>
  107. <value/>
  108. </itemset>
  109. </choices>
  110. </col>
  111. <col class="input_s_essential" ref="instnm" type="inputbutton" _key="true"/>
  112. <col ref="instcd" visibility="hidden"/>
  113. <col class="combo_s_essential" ref="educflag" type="combo" _key="true">
  114. <choices>
  115. <itemset>
  116. <label/>
  117. <value/>
  118. </itemset>
  119. </choices>
  120. </col>
  121. <col class="input_s_essential" key="true" ref="educcdnm" type="input"/>
  122. <col checkvalue="Y,N" ref="indapppossyn" type="checkbox"/>
  123. <col checkvalue="Y,N" ref="trgtmanrgstyn" type="checkbox"/>
  124. <col ref="educcd" visibility="hidden"/>
  125. <script type="javascript" ev:event="onbuttonclick">
  126. <![CDATA[
  127. if(grd_rpsmedcdlist.col == grd_rpsmedcdlist.colRef("instnm"))
  128. {
  129. var row = grd_rpsmedcdlist.row;
  130. var recv_list = "instcd,instnm";
  131. misfOpenPopUpList("03", grd_rpsmedcdlist,"Z0007", recv_list, grd_rpsmedcdlist.valueMatrix(row, grd_rpsmedcdlist.colRef("instcd")), "") ;
  132. }
  133. if(grd_rpsmedcdlist.col == grd_rpsmedcdlist.colRef("chrgdeptnm"))
  134. {
  135. var recv_list = "chrgdeptcd,chrgdeptnm";
  136. misfOpenPopUpList("02", grd_rpsmedcdlist,"", recv_list, grd_rpsmedcdlist.valueMatrix(grd_rpsmedcdlist.row, grd_rpsmedcdlist.colRef("instcd")), "instcd") ;
  137. }
  138. ]]>
  139. </script>
  140. <script type="javascript" ev:event="xforms-value-changed">
  141. <![CDATA[
  142. if(grd_rpsmedcdlist.col == grd_rpsmedcdlist.colRef("chrgdeptnm"))
  143. {
  144. if(grd_rpsmedcdlist.valueMatrix(grd_rpsmedcdlist.row, grd_rpsmedcdlist.colRef("chrgdeptnm")).length == 0){
  145. grd_rpsmedcdlist.valueMatrix(grd_rpsmedcdlist.row, grd_rpsmedcdlist.colRef("chrgdeptcd")) = "";
  146. }else
  147. {
  148. misfValidationCheck("02", "", "chrgdeptcd,chrgdeptnm",grd_rpsmedcdlist.valueMatrix(grd_rpsmedcdlist.row, grd_rpsmedcdlist.colRef("instcd")), "instcd" );
  149. }
  150. }
  151. // 개인신청가능여부를 클릭하면 인사팀확정 대상자 여부는 클릭이 지워져야 한다.
  152. else if(grd_rpsmedcdlist.col == grd_rpsmedcdlist.colRef("indapppossyn") ) {
  153. grd_rpsmedcdlist.valueMatrix(grd_rpsmedcdlist.row,grd_rpsmedcdlist.colRef("indapppossyn")) = "Y";
  154. grd_rpsmedcdlist.valueMatrix(grd_rpsmedcdlist.row,grd_rpsmedcdlist.colRef("trgtmanrgstyn")) = "N";
  155. }
  156. // 인사팀확정 대상자 여부를 클릭하면 개인신청가능여부는 클릭이 지워져야 한다.
  157. else if(grd_rpsmedcdlist.col == grd_rpsmedcdlist.colRef("trgtmanrgstyn") ) {
  158. grd_rpsmedcdlist.valueMatrix(grd_rpsmedcdlist.row,grd_rpsmedcdlist.colRef("indapppossyn")) = "N";
  159. grd_rpsmedcdlist.valueMatrix(grd_rpsmedcdlist.row,grd_rpsmedcdlist.colRef("trgtmanrgstyn")) = "Y";
  160. }
  161. model.refresh();
  162. ]]>
  163. </script>
  164. </datagrid>
  165. <button id="btn_del" class="btn2_letter3" style="left:1071px; top:53px; width:53px; height:19px; ">
  166. <caption>행삭제</caption>
  167. <script type="javascript" ev:event="DOMActivate">
  168. <![CDATA[
  169. if(!isRequiredControls("ipt_appyy")) return;
  170. misfGridIUD(grd_rpsmedcdlist, "D");
  171. model.refresh();
  172. ]]>
  173. </script>
  174. </button>
  175. <button id="btn_add" class="btn2_letter3" style="left:1016px; top:53px; width:53px; height:19px; ">
  176. <caption>행추가</caption>
  177. <script type="javascript" ev:event="DOMActivate">
  178. <![CDATA[
  179. if(!isRequiredControls("ipt_appyy")) return;
  180. misfGridIUD(grd_rpsmedcdlist, "A");
  181. model.refresh();
  182. ]]>
  183. </script>
  184. </button>
  185. <caption id="cap_instcd" class="search_name" style="left:370px; top:18px; width:86px; height:17px; ">주체기관 :</caption>
  186. <button id="btn_init" class="btn2_letter4" style="left:1130px; top:53px; width:64px; height:19px; ">
  187. <caption>엑셀저장</caption>
  188. <script type="javascript" ev:event="DOMActivate">
  189. <![CDATA[
  190. misfSaveExcel(grd_rpsmedcdlist);
  191. ]]>
  192. </script>
  193. </button>
  194. <button id="button8" class="icon_search" style="left:616px; top:18px; width:16px; height:16px; ">
  195. <caption/>
  196. <script type="javascript" ev:event="DOMActivate">
  197. <![CDATA[
  198. var recv_list = "instcd,instnm";
  199. misfOpenPopUpList("03", ipt_instnm,"Z0007", recv_list, "", "") ;
  200. model.refresh();
  201. ]]>
  202. </script>
  203. </button>
  204. <input id="ipt_instnm" ref="/root/send/instnm" class="input_search" appearance="input" style="left:457px; top:18px; width:155px; height:19px; ">
  205. <script type="javascript" ev:event="xforms-value-changed">
  206. <![CDATA[
  207. if( ipt_instnm.value.getByteLength() == '0' ) {
  208. ipt_instcd.value = "" ;
  209. }
  210. model.refresh();
  211. ]]>
  212. </script>
  213. </input>
  214. <input id="ipt_instcd" ref="/root/send/instcd" disabled="true" visibility="hidden" style="left:637px; top:18px; width:50px; height:19px; "/>
  215. <caption id="caption1" style="left:10px; top:695px; width:1150px; height:40px; font-size:12pt; font-weight:bold; color:#000080; ">
  216. <![CDATA[* 개인신청가능여부 : 대상자 등록된 대상자(개인)가 직접 차수를 선택하여 신청하는 교육입니다.
  217. * 인사팀확정대상자여부 : 인사팀에서 차수를 지정하여 개인을 등록해주는 교육입니다.]]>
  218. </caption>
  219. </group>
  220. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  221. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
  222. <caption>저장</caption>
  223. <script type="javascript" ev:event="DOMActivate">
  224. <![CDATA[
  225. if( checkKeyColumn("grd_rpsmedcdlist") == false) return;
  226. model.setValue("/root/send/rpsmedcdlist",grd_rpsmedcdlist.getUpdateData());
  227. if( submit("TXRPS00101") ) {
  228. messageBox("","I001");
  229. btn_search.dispatch("DOMActivate");
  230. }
  231. ]]>
  232. </script>
  233. </button>
  234. </group>
  235. </xhtml:body>
  236. </xhtml:html>