xSMRPS00700_교육신청최종승인.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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>교육신청최종승인</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <lastrpsmedrtlist/>
  11. </main>
  12. <send>
  13. <appyy/>
  14. <instcd/>
  15. <mainbdunit/>
  16. <deptcd/>
  17. <deptnm/>
  18. <deptaprvyn/>
  19. <cmpltcursstdyyn/>
  20. </send>
  21. <init/>
  22. <temp>
  23. </temp>
  24. </root>
  25. </instance>
  26. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  27. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  28. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  29. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  30. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  31. <script type="javascript" src="../../../mis/educationmngtweb/js/RPS001.js"/>
  32. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  33. <script type="javascript" src="../../../mis/dligclaznsmngtweb/js/RPD001.js"/>
  34. <script type="javascript" ev:event="xforms-ready">
  35. <![CDATA[
  36. fInit();
  37. ]]>
  38. </script>
  39. <script type="javascript" ev:event="xforms-model-construct-done">
  40. <![CDATA[
  41. grd_lastrpsmedrtlist.fixedcellcheckbox(1 ,grd_lastrpsmedrtlist.colRef("lastaprvyn"))=true;
  42. ]]>
  43. </script>
  44. <script type="javascript">
  45. <![CDATA[
  46. function fInit()
  47. {
  48. model.setValue("/root/send/appyy", getCurrentDate().substr(0, 4));
  49. model.removeNodeset("/root/main/lastrpsmedrtlist");
  50. misfComboComCdListMulti("Z0007", "cmb_instcd", null, "Y");
  51. rpsEducSetComboList(model.getValue("/root/send/appyy"), "M02-000", "cmb_mainbdunit", "Y");
  52. misfMsterDetailSet(grd_lastrpsmedrtlist, null, "TRRPS00701", "Y");
  53. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  54. model.refresh();
  55. }
  56. //최종승인여부 전체선택 및 전체선택 해제시 날짜설정
  57. function fLastYnCheckSetDate(fBool)
  58. {
  59. var fDate = "";
  60. if(fBool)
  61. {
  62. fDate = getCurrentDate();
  63. }
  64. for(var i = grd_lastrpsmedrtlist.fixedRows; i < grd_lastrpsmedrtlist.rows; i++)
  65. {
  66. grd_lastrpsmedrtlist.valueMatrix(i, grd_lastrpsmedrtlist.colRef("lastaprvdd")) = fDate;
  67. grd_lastrpsmedrtlist.rowStatus(i) = 2;
  68. }
  69. }
  70. ]]>
  71. </script>
  72. <submission id="TRRPS00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/lastrpsmedrtlist"/>
  73. <submission id="TXRPS00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/lastrpsmedrtlist" resultref="/root/temp"/>
  74. </model>
  75. </xhtml:head>
  76. <xhtml:body style="margin-left:8; margin-right:8; ">
  77. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  78. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">교육신청최종승인</caption>
  79. </group>
  80. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  81. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  82. <caption id="cap_instcd" class="search_name" style="left:15px; top:46px; width:89px; height:17px; ">주체기관 :</caption>
  83. <line id="line8" class="line_1" style="x1:0px; y1:94px; x2:1195px; y2:94px; "/>
  84. <caption id="caption20" class="tit_2" style="left:5px; top:80px; width:169px; height:14px; ">교육신청List</caption>
  85. <caption id="cap_appyy" class="search_name" style="left:15px; top:20px; width:89px; height:17px; ">년 도 :</caption>
  86. <caption id="cap_mainbdunit" class="search_name" style="left:400px; top:20px; width:89px; height:17px; ">주체단위 :</caption>
  87. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1125px; top:30px; width:56px; height:22px; text-align:left; ">
  88. <caption>조회</caption>
  89. <script type="javascript" ev:event="DOMActivate">
  90. <![CDATA[
  91. if(!isRequiredControls("ipt_appyy")) return;
  92. submit("TRRPS00701");
  93. ]]>
  94. </script>
  95. </button>
  96. <line id="line7" style="x1:1110px; y1:18px; x2:1110px; y2:61px; border-color:#ffe4bb; border-left-style:solid; "/>
  97. <caption id="cap_cmpltcursstdyyn" class="search_name" style="left:778px; top:20px; width:126px; height:17px; ">이 수 여 부 :</caption>
  98. <select1 id="cmb_mainbdunit" ref="/root/send/mainbdunit" class="combo_search" navindex="3" appearance="minimal" style="left:487px; top:19px; width:148px; height:19px; ">
  99. <choices>
  100. <itemset>
  101. <label/>
  102. <value/>
  103. </itemset>
  104. </choices>
  105. </select1>
  106. <input id="ipt_appyy" ref="/root/send/appyy" class="input_s_essential" navindex="2" inputtype="date" format="yyyy" style="left:102px; top:19px; width:95px; height:19px; text-align:center; "/>
  107. <select1 id="rdo_cmpltcursstdyyn" ref="/root/send/cmpltcursstdyyn" navindex="5" overflow="visible" appearance="full" cellspacing="10" cols="3" style="left:910px; top:19px; width:181px; height:20px; border-style:none; ">
  108. <choices>
  109. <item>
  110. <label>전체</label>
  111. <value/>
  112. </item>
  113. <item>
  114. <label>이수</label>
  115. <value>Y</value>
  116. </item>
  117. <item>
  118. <label>미이수</label>
  119. <value>N</value>
  120. </item>
  121. </choices>
  122. </select1>
  123. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:102px; top:45px; width:211px; height:19px; ">
  124. <choices>
  125. <itemset>
  126. <label/>
  127. <value/>
  128. </itemset>
  129. </choices>
  130. </select1>
  131. <select1 id="rdo_deptaprvyn" ref="/root/send/deptaprvyn" navindex="5" overflow="visible" appearance="full" cellspacing="10" cols="3" style="left:910px; top:44px; width:181px; height:20px; border-style:none; ">
  132. <choices>
  133. <item>
  134. <label>전체</label>
  135. <value/>
  136. </item>
  137. <item>
  138. <label>승인</label>
  139. <value>Y</value>
  140. </item>
  141. <item>
  142. <label>미승인</label>
  143. <value>N</value>
  144. </item>
  145. </choices>
  146. </select1>
  147. <caption id="cap_deptaprvyn" class="search_name" style="left:778px; top:46px; width:125px; height:17px; ">부서장승인여부 :</caption>
  148. <datagrid id="grd_lastrpsmedrtlist" nodeset="/root/main/lastrpsmedrtlist" caption="교육명^교육신청대상자^교육신청대상자^주체단위^주관부서^정원 / 신청^교육^교육^부서장^부서장^최종승인여부^최종&#xA;승인일자^교육&#xA;차수^기관&#xA;코드^교육&#xA;코드|교육명^사원번호^성명^주체단위^주관부서^정원 / 신청^신청여부^신청일자^승인여부^승인일자^^최종&#xA;승인일자^교육&#xA;차수^기관&#xA;코드^교육&#xA;코드" colsep="^" colwidth="282, 82, 77, 85, 140, 73, 56, 75, 54, 75, 82, 75, 37, 43, 52" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:99px; width:1195px; height:645px; ">
  149. <col ref="educcdnm" style="text-align:left; "/>
  150. <col ref="emplno" style="text-align:center; "/>
  151. <col ref="emplnm" style="text-align:center; "/>
  152. <col ref="mainbdunitnm" style="text-align:left; "/>
  153. <col ref="chrgdeptnm" style="text-align:left; "/>
  154. <col ref="leftemplcnt" style="text-align:center; "/>
  155. <col ref="indappyn" style="text-align:center; "/>
  156. <col ref="indappdd" format="yyyy-mm-dd" style="text-align:center; "/>
  157. <col ref="deptaprvyn" style="text-align:center; "/>
  158. <col ref="deptaprvdd" format="yyyy-mm-dd" style="text-align:center; "/>
  159. <col checkvalue="Y,N" ref="lastaprvyn" type="checkbox"/>
  160. <col ref="lastaprvdd" format="yyyy-mm-dd" style="text-align:center; "/>
  161. <col ref="educdg" visibility="hidden"/>
  162. <col ref="instcd" visibility="hidden"/>
  163. <col ref="educcd" visibility="hidden"/>
  164. <col ref="appyy" visibility="hidden"/>
  165. <script type="javascript" ev:event="xforms-select">
  166. <![CDATA[
  167. if(grd_lastrpsmedrtlist.row == (grd_lastrpsmedrtlist.fixedRows-1))
  168. {
  169. fLastYnCheckSetDate( grd_lastrpsmedrtlist.fixedcellischeck(1, grd_lastrpsmedrtlist.colRef("lastaprvyn")) );
  170. }
  171. ]]>
  172. </script>
  173. <script type="javascript" ev:event="xforms-deselect">
  174. <![CDATA[
  175. if(grd_lastrpsmedrtlist.row == (grd_lastrpsmedrtlist.fixedRows-1))
  176. {
  177. fLastYnCheckSetDate( grd_lastrpsmedrtlist.fixedcellischeck(1, grd_lastrpsmedrtlist.colRef("lastaprvyn")) );
  178. }
  179. ]]>
  180. </script>
  181. <script type="javascript" ev:event="xforms-value-changed">
  182. <![CDATA[
  183. if(grd_lastrpsmedrtlist.col == grd_lastrpsmedrtlist.colRef("lastaprvyn"))
  184. {
  185. if(grd_lastrpsmedrtlist.valueMatrix(grd_lastrpsmedrtlist.row, grd_lastrpsmedrtlist.colRef("lastaprvyn")) == "Y")
  186. {
  187. grd_lastrpsmedrtlist.valueMatrix(grd_lastrpsmedrtlist.row, grd_lastrpsmedrtlist.colRef("lastaprvdd")) = getCurrentDate();
  188. }else if(grd_lastrpsmedrtlist.valueMatrix(grd_lastrpsmedrtlist.row, grd_lastrpsmedrtlist.colRef("lastaprvyn")) == "N")
  189. {
  190. grd_lastrpsmedrtlist.valueMatrix(grd_lastrpsmedrtlist.row, grd_lastrpsmedrtlist.colRef("lastaprvdd")) = "";
  191. }
  192. }
  193. ]]>
  194. </script>
  195. </datagrid>
  196. <caption id="cap_detpcd" class="search_name" style="left:400px; top:46px; width:89px; height:17px; ">소속부서 :</caption>
  197. <button id="btn_deptcd" class="icon_search" style="left:576px; top:45px; width:16px; height:16px; ">
  198. <caption/>
  199. <script type="javascript" ev:event="DOMActivate">
  200. <![CDATA[
  201. misfOpenPopUpList("02", ipt_deptcd,"", "deptcd,deptnm", cmb_instcd.value, "instcd");
  202. model.refresh();
  203. ]]>
  204. </script>
  205. </button>
  206. <input id="ipt_deptnm" ref="/root/send/deptnm" class="input_search" navindex="7" style="left:595px; top:44px; width:150px; height:19px; ">
  207. <script type="javascript" ev:event="xforms-value-changed">
  208. <![CDATA[
  209. misfValidationCheck("02", "", "deptcd,deptnm", cmb_instcd.value, "instcd");
  210. model.refresh();
  211. ]]>
  212. </script>
  213. </input>
  214. <input id="ipt_deptcd" ref="/root/send/deptcd" class="input_search" navindex="6" style="left:487px; top:44px; width:85px; height:19px; text-align:center; ">
  215. <script type="javascript" ev:event="xforms-value-changed">
  216. <![CDATA[
  217. misfValidationCheck("02", "", "deptcd,deptnm", cmb_instcd.value, "instcd");
  218. model.refresh();
  219. ]]>
  220. </script>
  221. </input>
  222. </group>
  223. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  224. <button id="btn_save" class="btn4_letter2" style="left:1067px; top:3px; width:56px; height:22px; ">
  225. <caption>저장</caption>
  226. <script type="javascript" ev:event="DOMActivate">
  227. <![CDATA[
  228. misfSave("TXRPS00701");
  229. btn_search.dispatch("DOMActivate");
  230. ]]>
  231. </script>
  232. </button>
  233. <button id="btn_init" class="btn4_letter3" style="left:1125px; top:3px; width:68px; height:22px; ">
  234. <caption>초기화</caption>
  235. <script type="javascript" ev:event="DOMActivate">
  236. <![CDATA[
  237. fInit();
  238. ]]>
  239. </script>
  240. </button>
  241. </group>
  242. </xhtml:body>
  243. </xhtml:html>