SMRTC00400_정원신청기준정보.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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. <capaapplist>
  11. <status/>
  12. <appfromdd/>
  13. <appenddd/>
  14. <yy/>
  15. </capaapplist>
  16. <capaappbaseinfo/>
  17. </main>
  18. <send>
  19. <condition>
  20. <yy/>
  21. </condition>
  22. <capaappbaseinfo/>
  23. <capaapplist>
  24. </capaapplist>
  25. </send>
  26. <init/>
  27. <hidden>
  28. </hidden>
  29. <temp>
  30. </temp>
  31. </root>
  32. </instance>
  33. <submission id="TRRTC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main"/>
  34. <submission id="TXRTC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  35. <submission id="TXRTC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  36. </model>
  37. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  41. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  42. <script type="javascript" ev:event="xforms-ready">
  43. <![CDATA[
  44. //사용자 권한
  45. fCheckAuth();
  46. // 그리드 초기화
  47. misfGridInit(grd_capaappbaseinfo);
  48. misfMsterDetailSet(grd_capaappbaseinfo, null, "TRRTC00401", "Y");
  49. // 진료과코드 P0322
  50. misfComboComCdListMulti("R0234", "grd_capaappbaseinfo.deptcd");
  51. var today = getCurrentDate();
  52. var cur_yy = parseInt(today.substring(0, 4));
  53. //cur_yy = cur_yy + 1;
  54. model.setValue("/root/send/condition/yy", cur_yy);
  55. ipt_condyy.refresh();
  56. model.refresh();
  57. ]]>
  58. </script>
  59. <script type="javascript">
  60. <![CDATA[
  61. //========================================================================================
  62. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  63. //========================================================================================
  64. function fCheckAuth() {
  65. btn_search.disabled = !checkAuth("R") ;
  66. btn_save.disabled = !checkAuth("X") ;
  67. btn_copy.disabled = !(checkAuth("X"));
  68. }
  69. ]]>
  70. </script>
  71. </xhtml:head>
  72. <xhtml:body style="margin-left:8; margin-right:8; ">
  73. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  74. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">정원 신청 기준 정보</caption>
  75. </group>
  76. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  77. <line id="line3" class="line_3" style="x1:0px; y1:97px; x2:471px; y2:97px; "/>
  78. <group id="group4" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  79. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  80. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1125px; top:7px; width:56px; height:22px; text-align:left; ">
  81. <caption>조회</caption>
  82. <script type="javascript" ev:event="DOMActivate">
  83. <![CDATA[
  84. model.refresh();
  85. ipt_appfromdd.value = "";
  86. ipt_appenddd.value = "";
  87. ipt_yy.value = "";
  88. misfMsterDetailRetrieve();
  89. if (instance1.selectNodes("/root/main/intncapa").length == 0) {
  90. model.makeNode("/root/main/capaapplist/appfromdd");
  91. model.makeNode("/root/main/capaapplist/appenddd");
  92. model.makeNode("/root/main/capaapplist/yy");
  93. }
  94. ]]>
  95. </script>
  96. </button>
  97. <line id="line1" class="line_4" style="x1:1110px; y1:6px; x2:1110px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
  98. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">년 도 :</caption>
  99. <input id="ipt_condyy" ref="/root/send/condition/yy" class="input_s_essential" navindex="1" maxlength="4" format="9999" showmask="true" style="left:100px; top:8px; width:100px; height:19px; "/>
  100. </group>
  101. <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:471; y2:70px; "/>
  102. <line id="line4" class="line_1" style="x1:476px; y1:70px; x2:1185px; y2:70px; "/>
  103. <datagrid id="grd_capaappbaseinfo" nodeset="/root/main/capaappbaseinfo" caption="진료과^N^정원수(N +/-)^정원수^caption1" colsep="^" colwidth="182, 100, 129, 100, 100, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:476px; top:75px; width:709px; height:659px; ">
  104. <col ref="deptcd" type="combo">
  105. <choices>
  106. <itemset>
  107. <label/>
  108. <value/>
  109. </itemset>
  110. </choices>
  111. </col>
  112. <col ref="base" style="text-align:center; "/>
  113. <col ref="fourrulearith" type="combo" style="text-align:center; ">
  114. <choices>
  115. <item>
  116. <label>+</label>
  117. <value>+</value>
  118. </item>
  119. <item>
  120. <label>-</label>
  121. <value>-</value>
  122. </item>
  123. <item>
  124. <label>*</label>
  125. <value>*</value>
  126. </item>
  127. <item>
  128. <label>/</label>
  129. <value>/</value>
  130. </item>
  131. </choices>
  132. </col>
  133. <col ref="basepsnno" type="input" style="text-align:center; "/>
  134. <col ref="chknextyy" visibility="hidden"/>
  135. <col ref="yy"/>
  136. </datagrid>
  137. <input id="ipt_appfromdd" ref="/root/main/capaapplist/appfromdd" class="input_s_essential" inputtype="date" style="left:102px; top:77; width:120; height:19px; "/>
  138. <caption id="caption8" class="cell_1" style="left:0px; top:75px; width:100px; height:23px; text-align:left; vertical-align:middle; ">시작일</caption>
  139. <input id="ipt_appenddd" ref="/root/main/capaapplist/appenddd" class="input_s_essential" inputtype="date" style="left:352px; top:77; width:120px; height:19px; "/>
  140. <caption id="caption1" class="cell_1" style="left:250px; top:75px; width:100px; height:23px; text-align:left; vertical-align:middle; ">종료일</caption>
  141. <caption id="caption3" style="left:230px; top:79px; width:20px; height:20px; font-weight:bold; ">~</caption>
  142. <input id="ipt_yy" ref="/root/main/capaapplist/yy" class="input_s_essential" visibility="hidden" style="left:200px; top:130px; width:120px; height:19px; "/>
  143. <button id="button106" class="btn2_letter3" style="left:1070px; top:50px; width:53px; height:19px; vertical-align:bottom; ">
  144. <caption>행추가</caption>
  145. <script type="javascript" ev:event="DOMActivate">
  146. <![CDATA[
  147. if ( model.getValue("/root/send/condition/yy") == "" ) {
  148. messageBox("년도값이 없습니다. 조회 후","C001");
  149. return;
  150. }
  151. misfGridIUD(grd_capaappbaseinfo, "A");
  152. grd_capaappbaseinfo.valueMatrix( grd_capaappbaseinfo.row, grd_capaappbaseinfo.colRef("yy") ) = model.getValue("/root/send/condition/yy");
  153. grd_capaappbaseinfo.valueMatrix( grd_capaappbaseinfo.row, grd_capaappbaseinfo.colRef("fourrulearith") ) = "-";
  154. grd_capaappbaseinfo.valueMatrix( grd_capaappbaseinfo.row, grd_capaappbaseinfo.colRef("base") ) = "N";
  155. model.refresh();
  156. ]]>
  157. </script>
  158. </button>
  159. <button id="button107" class="btn2_letter3" style="left:1125px; top:50px; width:53px; height:19px; vertical-align:bottom; ">
  160. <caption>행삭제</caption>
  161. <script type="javascript" ev:event="DOMActivate">
  162. <![CDATA[
  163. misfGridIUD(grd_capaappbaseinfo, "D");
  164. model.refresh();
  165. ]]>
  166. </script>
  167. </button>
  168. <button id="btn_copy" class="btn5_letter8" navindex="100" style="left:894px; top:50px; width:108px; height:19px; vertical-align:bottom; ">
  169. <caption>전년도기준copy</caption>
  170. <script type="javascript" ev:event="DOMActivate">
  171. <![CDATA[
  172. //필수 입력 항목 체크(공통 ftHelper.js)
  173. if ( !isRequiredControls("ipt_condyy") ) {
  174. return false;
  175. }
  176. var retMes = messageBox("전년도 Copy 하시겠습니까?", "Q999");
  177. if ( retMes != 6) {
  178. return;
  179. }
  180. misfSave("TXRTC00402");
  181. misfMsterDetailRetrieve();
  182. ]]>
  183. </script>
  184. </button>
  185. <button id="button4" class="btn2_letter4" style="left:1004px; top:50px; width:64px; height:19px; vertical-align:bottom; ">
  186. <caption>엑셀저장</caption>
  187. <script type="javascript" ev:event="DOMActivate">
  188. <![CDATA[
  189. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  190. if (fileName != "") {
  191. grd_capaappbaseinfo.saveExcel(fileName);
  192. }
  193. ]]>
  194. </script>
  195. </button>
  196. </group>
  197. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  198. <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  199. <button id="btn_save" class="btn4_letter2" navindex="99" style="left:1124px; top:3px; width:56px; height:22px; ">
  200. <caption>저장</caption>
  201. <script type="javascript" ev:event="DOMActivate">
  202. <![CDATA[
  203. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  204. if ( retMes != 6) {
  205. return;
  206. }
  207. misfCheckDupData(grd_capaappbaseinfo, 1);
  208. if ( "" == ipt_yy.value && ipt_appfromdd.value != ""){
  209. model.makeNode("/root/main/capaapplist/yy");
  210. model.makeNode("/root/main/capaapplist/appfromdd");
  211. model.makeNode("/root/main/capaapplist/appenddd");
  212. model.makeNode("/root/main/capaapplist/status");
  213. model.setValue("/root/main/capaapplist/status", "N");
  214. model.setValue("/root/main/capaapplist/yy", ipt_condyy.value) ;
  215. model.setValue("/root/main/capaapplist/appfromdd", ipt_appfromdd.value) ;
  216. model.setValue("/root/main/capaapplist/appenddd", ipt_appenddd.value) ;
  217. }
  218. model.copyNode("/root/send/capaapplist", "/root/main/capaapplist");
  219. misfSave("TXRTC00401");
  220. model.refresh();
  221. ]]>
  222. </script>
  223. </button>
  224. </group>
  225. </xhtml:body>
  226. </xhtml:html>