SMRTC00500_병원별정원신청.xrw 10 KB

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