SMRTC00600_기관별정원신청.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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. <instcapaapplist/>
  11. <intncapa>
  12. <intnmedcapa/>
  13. <intndentcapa/>
  14. <yy/>
  15. <inst/>
  16. </intncapa>
  17. </main>
  18. <send>
  19. <condition>
  20. <yy/>
  21. <inst/>
  22. </condition>
  23. <save>
  24. <instcapaapplist/>
  25. <intncapa/>
  26. </save>
  27. </send>
  28. <init/>
  29. <hidden>
  30. </hidden>
  31. <temp>
  32. </temp>
  33. </root>
  34. </instance>
  35. <submission id="TRRTC00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main"/>
  36. <submission id="TXRTC00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  37. <submission id="TXRTC00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/temp"/>
  38. </model>
  39. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  43. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. //사용자 권한
  47. fCheckAuth();
  48. // 그리드 초기화
  49. misfGridInit(grd_instcapaapplist);
  50. misfMsterDetailSet(grd_instcapaapplist, null, "TRRTC00601", "Y");
  51. misfComboComCdListMulti("R0305,R0234", "cmb_inst,grd_instcapaapplist.deptcd");
  52. var today = getCurrentDate();
  53. var cur_yy = parseInt(today.substring(0, 4));
  54. /*
  55. var cur_mm = parseInt(today.substring(4, 6));
  56. if (cur_mm >= 11)
  57. */
  58. //cur_yy++;
  59. model.setValue("/root/send/condition/yy", cur_yy);
  60. ipt_yy.refresh();
  61. model.refresh();
  62. ]]>
  63. </script>
  64. <script type="javascript">
  65. <![CDATA[
  66. //========================================================================================
  67. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  68. //========================================================================================
  69. function fCheckAuth() {
  70. btn_search.disabled = !checkAuth("R") ;
  71. btn_save.disabled = !checkAuth("X") ;
  72. btn_copy.disabled = !(checkAuth("X"));
  73. }
  74. function fRecalculate() {
  75. grd_instcapaapplist.subtotalPosition = "below";
  76. grd_instcapaapplist.subtotal("clear", 0, 0);
  77. grd_instcapaapplist.subtotal("sum", 12, 3 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
  78. grd_instcapaapplist.subtotal("sum", 12, 4 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
  79. grd_instcapaapplist.subtotal("sum", 12, 5 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
  80. grd_instcapaapplist.subtotal("sum", 12, 6 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
  81. grd_instcapaapplist.subtotal("sum", 12, 7 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
  82. grd_instcapaapplist.subtotal("sum", 12, 8 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
  83. grd_instcapaapplist.subtotal("sum", 12, 9 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
  84. ;
  85. }
  86. ]]>
  87. </script>
  88. </xhtml:head>
  89. <xhtml:body style="margin-left:8; margin-right:8; ">
  90. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  91. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">기관별 정원신청</caption>
  92. </group>
  93. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  94. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  95. <caption id="cap_yy" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">년 도 :</caption>
  96. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1125px; top:16px; width:56px; height:22px; ">
  97. <caption>조회</caption>
  98. <script type="javascript" ev:event="DOMActivate">
  99. <![CDATA[
  100. //필수 입력 항목 체크(공통 ftHelper.js)
  101. if ( !isRequiredControls("ipt_yy", "cmb_inst") ) {
  102. return false;
  103. }
  104. model.setValue("/root/send/condition/inst", cmb_inst.value);
  105. model.refresh();
  106. misfMsterDetailRetrieve();
  107. if (instance1.selectNodes("/root/main/intncapa").length == 0) {
  108. model.makeNode("/root/main/intncapa/intnmedcapa");
  109. model.makeNode("/root/main/intncapa/intndentcapa");
  110. model.makeNode("/root/main/intncapa/yy");
  111. model.makeNode("/root/main/intncapa/inst");
  112. }
  113. // 합계를 구한다.
  114. fRecalculate();
  115. ]]>
  116. </script>
  117. </button>
  118. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  119. <caption id="caption278" class="tit_2" style="left:10px; top:54px; width:162px; height:14px; ">레지던트</caption>
  120. <line id="line207" class="line_1" style="x1:0; y1:69; x2:1195; y2:69px; "/>
  121. <datagrid id="grd_instcapaapplist" nodeset="/root/main/instcapaapplist" caption="진료과^지도전문의 기준^지도전문의 수^전년도 승인정원^신청정원^1년차^2년차^3년차^4년차^증감^caption1" colsep="^" colwidth="140, 100, 100, 100, 80, 70, 70, 70, 70, 70, 77, 0, 0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:74px; width:895px; height:656px; ">
  122. <col ref="deptcd" type="combo" _required="true">
  123. <choices>
  124. <itemset>
  125. <label/>
  126. <value/>
  127. </itemset>
  128. </choices>
  129. </col>
  130. <col ref="basepsnno" style="text-align:center; "/>
  131. <col ref="mainguidpsn" style="text-align:center; "/>
  132. <col ref="bfyycapa"/>
  133. <col ref="instappcapa" type="input" format="99" showmask="true" _required="true" style="text-align:center; "/>
  134. <col ref="resi01" style="text-align:center; "/>
  135. <col ref="resi02" style="text-align:center; "/>
  136. <col ref="resi03" style="text-align:center; "/>
  137. <col ref="resi04" style="text-align:center; "/>
  138. <col ref="capadif" style="text-align:center; "/>
  139. <col ref="chknextyy" visibility="hidden"/>
  140. <col ref="yy" visibility="hidden"/>
  141. <col ref="inst" visibility="hidden"/>
  142. <script type="javascript" ev:event="onendedit">
  143. <![CDATA[
  144. // 합계를 구한다.
  145. fRecalculate();
  146. ]]>
  147. </script>
  148. </datagrid>
  149. <input id="ipt_yy" ref="/root/send/condition/yy" class="input_s_essential" format="9999" showmask="true" style="left:100px; top:18px; width:100px; height:19px; "/>
  150. <button id="btn_copy" class="btn5_letter6" navindex="99" style="left:925px; top:48px; width:86px; height:19px; ">
  151. <caption>전년도 copy</caption>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. //필수 입력 항목 체크(공통 ftHelper.js)
  155. if ( !isRequiredControls("ipt_yy", "cmb_inst") ) {
  156. return false;
  157. }
  158. var retMes = messageBox("전년도 Copy 하시겠습니까?", "Q999");
  159. if ( retMes != 6) {
  160. return;
  161. }
  162. misfSave("TXRTC00602");
  163. misfMsterDetailRetrieve();
  164. // 합계를 구한다.
  165. fRecalculate();
  166. ]]>
  167. </script>
  168. </button>
  169. <caption id="cap_inst" class="search_name" style="left:253px; top:19px; width:86px; height:17px; ">기 관 :</caption>
  170. <select1 id="cmb_inst" ref="/root/send/condition/inst" class="combo_s_essential" navindex="1" appearance="minimal" style="left:338px; top:18px; width:100px; height:19px; ">
  171. <choices>
  172. <itemset>
  173. <label/>
  174. <value/>
  175. </itemset>
  176. </choices>
  177. </select1>
  178. <button id="button106" class="btn2_letter3" style="left:1080px; top:48px; width:53px; height:19px; ">
  179. <caption>행추가</caption>
  180. <script type="javascript" ev:event="DOMActivate">
  181. <![CDATA[
  182. //misfGridIUD(grd_instcapaapplist, "A");
  183. grd_instcapaapplist.insertitem(grd_instcapaapplist.rows -1, "before")
  184. grd_instcapaapplist.valueMatrix( grd_instcapaapplist.row, grd_instcapaapplist.colRef("yy") ) = model.getValue("/root/send/condition/yy");
  185. grd_instcapaapplist.valueMatrix( grd_instcapaapplist.row, grd_instcapaapplist.colRef("inst") ) = model.getValue("/root/send/condition/inst");
  186. grd_instcapaapplist.col = 1;
  187. ]]>
  188. </script>
  189. </button>
  190. <button id="button107" class="btn2_letter3" style="left:1135px; top:48px; width:53px; height:19px; ">
  191. <caption>행삭제</caption>
  192. <script type="javascript" ev:event="DOMActivate">
  193. <![CDATA[
  194. misfGridIUD(grd_instcapaapplist, "D");
  195. model.refresh();
  196. ]]>
  197. </script>
  198. </button>
  199. <input id="input2" ref="/root/main/intncapa/intnmedcapa" class="input_default" maxlength="3" format="999" showmask="true" style="left:1012px; top:77px; width:162px; height:19px; font-size:10pt; "/>
  200. <input id="input1" ref="/root/main/intncapa/intndentcapa" class="input_default" maxlength="3" format="999" showmask="true" style="left:1012px; top:102px; width:162px; height:19px; font-size:10pt; "/>
  201. <input id="input3" ref="/root/main/intncapa/yy" class="input_default" visibility="hidden" appearance="input" style="left:1010px; top:195px; width:162px; height:19px; font-size:10pt; "/>
  202. <input id="input4" ref="/root/main/intncapa/inst" class="input_default" visibility="hidden" appearance="input" style="left:1010px; top:225px; width:162px; height:19px; font-size:10pt; "/>
  203. <button id="button4" class="btn2_letter4" style="left:1014px; top:48px; width:64px; height:19px; vertical-align:bottom; ">
  204. <caption>엑셀저장</caption>
  205. <script type="javascript" ev:event="DOMActivate">
  206. <![CDATA[
  207. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  208. if (fileName != "") {
  209. grd_instcapaapplist.saveExcel(fileName);
  210. }
  211. ]]>
  212. </script>
  213. </button>
  214. <caption id="caption2" class="cell_1" style="left:905px; top:100px; width:105px; height:23px; font-size:10pt; text-align:left; vertical-align:middle; ">치과인턴 정원</caption>
  215. <caption id="caption4" class="cell_1" style="left:905px; top:75px; width:105px; height:23px; font-size:10pt; text-align:left; vertical-align:middle; ">의과인턴 정원</caption>
  216. </group>
  217. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  218. <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  219. <button id="btn_save" class="btn4_letter2" style="left:1124px; top:3px; width:56px; height:22px; ">
  220. <caption>저장</caption>
  221. <script type="javascript" ev:event="DOMActivate">
  222. <![CDATA[
  223. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  224. if ( retMes != 6) {
  225. return;
  226. }
  227. if(!checkRequiredColumn("grd_instcapaapplist"))return;
  228. misfCheckDupData(grd_instcapaapplist, 1);
  229. model.setValue("/root/main/intncapa/yy", model.getValue("/root/send/condition/yy"));
  230. model.setValue("/root/main/intncapa/inst", model.getValue("/root/send/condition/inst"));
  231. model.copyNode("/root/send/save/intncapa", "/root/main/intncapa");
  232. misfSave("TXRTC00601");
  233. ]]>
  234. </script>
  235. </button>
  236. </group>
  237. </xhtml:body>
  238. </xhtml:html>