SMRTC01000_과기준정보.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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. <deptbaseinfolist/>
  11. </main>
  12. <send>
  13. <yy/>
  14. <flag>R2</flag>
  15. <deptbaseinfolist/>
  16. <deptcd/>
  17. <instcd/>
  18. </send>
  19. <init>
  20. <flaglist>
  21. <flag>
  22. <labl>레지던트2지망</labl>
  23. <valu>R2</valu>
  24. </flag>
  25. <flag>
  26. <labl>인턴</labl>
  27. <valu>I0</valu>
  28. </flag>
  29. </flaglist>
  30. </init>
  31. <hidden/>
  32. <temp>
  33. </temp>
  34. </root>
  35. </instance>
  36. <submission id="TRRTC01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/deptbaseinfolist"/>
  37. <submission id="TXRTC01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  38. <submission id="TXRTC00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
  39. </model>
  40. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  44. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  45. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. fCheckAuth();
  49. misfGridInit(grd_deptbaseinfolist);
  50. misfGridComboComCdList("R0234",grd_deptbaseinfolist,"deptcd")
  51. misfGridComboComCdList("R0305",grd_deptbaseinfolist,"instcd")
  52. misfComboComCdListMulti("R0234,R0305", "cmb_deptcd,cmb_instcd");
  53. addComboItem( "cmb_deptcd", "전체", "", "above");
  54. addComboItem( "cmb_instcd", "전체", "", "above");
  55. var today = getCurrentDate();
  56. var cur_mm = parseInt(today.substring(4, 6));
  57. var cur_yy = parseInt(today.substring(0, 4));
  58. if (cur_mm >= 11)
  59. cur_yy++;
  60. model.setValue("/root/send/yy", cur_yy);
  61. model.refresh();
  62. //그리드의 타이틀을 누르면 sort되는 기능
  63. grd_deptbaseinfolist.explorerbar = "sort";
  64. grd_deptbaseinfolist.selectionMode = "byrow"
  65. grd_deptbaseinfolist.colHidden(grd_deptbaseinfolist.colRef("instcd")) = true;
  66. misfMsterDetailSet(grd_deptbaseinfolist, null, "TRRTC01001", "Y");
  67. model.refresh();
  68. ]]>
  69. </script>
  70. <script type="javascript">
  71. <![CDATA[
  72. //========================================================================================
  73. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  74. //========================================================================================
  75. function fCheckAuth() {
  76. btn_search.disabled = !checkAuth("R") ;
  77. btn_save.disabled = !checkAuth("X") ;
  78. }
  79. ]]>
  80. </script>
  81. </xhtml:head>
  82. <xhtml:body style="margin-left:8; margin-right:8; ">
  83. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  84. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">과기준정보 관리</caption>
  85. </group>
  86. <caption id="caption10" style="left:725px; top:705px; width:350px; height:25px; vertical-align:middle; ">상태 : 가입, 탈퇴, 보임</caption>
  87. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  88. <button id="button4" class="btn2_letter4" style="left:1128px; top:52px; width:64px; height:19px; ">
  89. <caption>엑셀저장</caption>
  90. <script type="javascript" ev:event="DOMActivate">
  91. <![CDATA[
  92. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  93. /*
  94. if (fileName != "") {
  95. grd_deptbaseinfolist.colHidden(1) = false;
  96. grd_deptbaseinfolist.colHidden(2) = false;
  97. //grd_apntscorebatrgst.saveExcel(fileName);
  98. grd_deptbaseinfolist.saveExcel(fileName, "", false, true);
  99. //grd_apntscorebatrgst.colHidden(1) = true;
  100. //grd_apntscorebatrgst.colHidden(2) = true;
  101. }
  102. */
  103. ]]>
  104. </script>
  105. </button>
  106. <datagrid id="grd_deptbaseinfolist" nodeset="/root/main/deptbaseinfolist" caption="년도^구분^진료과^기관" colsep="^" colwidth="80, 169, 200, 200" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="100" rowsep="|" selectionmode="byrow" style="left:0px; top:79px; width:1195px; height:660px; ">
  107. <col disabled="true" ref="yy"/>
  108. <col disabled="true" ref="flag" type="combo">
  109. <choices>
  110. <itemset nodeset="/root/init/flaglist/flag">
  111. <label ref="labl"/>
  112. <value ref="valu"/>
  113. </itemset>
  114. </choices>
  115. </col>
  116. <col ref="deptcd" type="combo">
  117. <choices>
  118. <itemset>
  119. <label/>
  120. <value/>
  121. </itemset>
  122. </choices>
  123. </col>
  124. <col ref="instcd" type="combo">
  125. <choices>
  126. <itemset>
  127. <label/>
  128. <value/>
  129. </itemset>
  130. </choices>
  131. </col>
  132. <script type="javascript" ev:event="onaftersort">
  133. <![CDATA[
  134. grd_deptbaseinfolist.gridToInstance();
  135. ]]>
  136. </script>
  137. </datagrid>
  138. <line id="line3" class="line_1" style="x1:0px; y1:73px; x2:1195px; y2:73px; "/>
  139. <caption id="caption9" class="tit_2" style="left:10px; top:59px; width:117px; height:13px; ">진료과 / 기관</caption>
  140. <group id="group4" style="left:0px; top:5px; width:1195px; height:45px; vertical-align:top; ">
  141. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1190px; height:39px; background-color:#fffbf2; border-color:#ffd799; "/>
  142. <button id="btn_search" class="btn1_letter2" navindex="10" style="left:1125px; top:10px; width:56px; height:22px; text-align:left; ">
  143. <caption>조회</caption>
  144. <script type="javascript" ev:event="DOMActivate">
  145. <![CDATA[
  146. if(!isRequiredControls("ipt_yy")) return;
  147. misfMsterDetailRetrieve();
  148. // 없는 기관명이 오면 기관 필드를 숨긴다
  149. // if(grd_deptbaseinfolist.valueMatrix(grd_deptbaseinfolist.row, grd_deptbaseinfolist.colRef("instcd")) == '000')
  150. // grd_deptbaseinfolist.colHidden(grd_deptbaseinfolist.colRef("instcd")) = true;
  151. misfSetReadOnlyCol(grd_deptbaseinfolist, "yy,flag,deptcd,instcd", true);
  152. model.refresh();
  153. ]]>
  154. </script>
  155. </button>
  156. <line id="line1" class="line_4" style="x1:1110px; y1:6px; x2:1110px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  157. <caption id="cap_yy" class="search_name" style="left:15px; top:10; width:86px; height:17px; ">년 도 :</caption>
  158. <input id="ipt_yy" ref="/root/send/yy" class="input_s_essential" navindex="1" style="left:100px; top:9; width:100px; height:19px; "/>
  159. <select1 id="rdo_flag" ref="/root/send/flag" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:350px; top:11px; width:180px; height:20px; border-style:none; ">
  160. <choices>
  161. <itemset nodeset="/root/init/flaglist/flag">
  162. <label ref="labl"/>
  163. <value ref="valu"/>
  164. </itemset>
  165. </choices>
  166. <script type="javascript" ev:event="xforms-value-changed">
  167. <![CDATA[
  168. if(rdo_flag.value == "R2")
  169. {
  170. grd_deptbaseinfolist.colHidden(grd_deptbaseinfolist.colRef("instcd")) = true;
  171. caption2.visible = false;
  172. cmb_instcd.visible = false;
  173. btn_search.dispatch("DOMActivate");
  174. }
  175. else if(rdo_flag.value == "I0")
  176. {
  177. grd_deptbaseinfolist.colHidden(grd_deptbaseinfolist.colRef("instcd")) = false;
  178. caption2.visible = true;
  179. cmb_instcd.visible = true;
  180. btn_search.dispatch("DOMActivate");
  181. }
  182. model.refresh();
  183. ]]>
  184. </script>
  185. </select1>
  186. <caption id="cap_flag" class="search_name" style="left:255px; top:10px; width:86px; height:17px; ">구 분 :</caption>
  187. <select1 id="cmb_deptcd" ref="/root/send/deptcd" appearance="minimal" style="left:685px; top:9px; width:100px; height:19px; ">
  188. <choices>
  189. <itemset>
  190. <label/>
  191. <value/>
  192. </itemset>
  193. </choices>
  194. </select1>
  195. <select1 id="cmb_instcd" ref="/root/send/instcd" visibility="hidden" appearance="minimal" style="left:930px; top:10px; width:100px; height:19px; ">
  196. <choices>
  197. <itemset>
  198. <label/>
  199. <value/>
  200. </itemset>
  201. </choices>
  202. </select1>
  203. <caption id="caption1" class="search_name" style="left:590px; top:10px; width:93px; height:17px; ">진 료 과 :</caption>
  204. <caption id="caption2" class="search_name" visibility="hidden" style="left:845px; top:10px; width:98px; height:17px; ">기 관 :</caption>
  205. </group>
  206. <button id="btn_addrow" class="btn2_letter3" style="left:1018; top:52; width:64px; height:19px; ">
  207. <caption>행추가</caption>
  208. <script type="javascript" ev:event="DOMActivate">
  209. <![CDATA[
  210. misfGridIUD(grd_deptbaseinfolist, "A");
  211. grd_deptbaseinfolist.valueMatrix(grd_deptbaseinfolist.row, grd_deptbaseinfolist.colRef("yy")) = model.getValue("/root/send/yy");
  212. model.refresh();
  213. ]]>
  214. </script>
  215. </button>
  216. <button id="btn_delrow" class="btn2_letter3" style="left:1073; top:52; width:60; height:19px; ">
  217. <caption>행삭제</caption>
  218. <script type="javascript" ev:event="DOMActivate">
  219. <![CDATA[
  220. misfGridIUD(grd_deptbaseinfolist, "D");
  221. ]]>
  222. </script>
  223. </button>
  224. <button id="btn_copy" class="btn2_letter6" style="left:930px; top:52; width:86px; height:19px; ">
  225. <caption>전년도 copy</caption>
  226. <script type="javascript" ev:event="DOMActivate">
  227. <![CDATA[
  228. if(messageBox("기존에 있는 데이터는 삭제 됩니다. ", "Q003") != 6)
  229. {
  230. return;
  231. }
  232. else
  233. {
  234. if (submit("TXRTC00103"))
  235. {
  236. btn_search.dispatch("DOMActivate");
  237. }
  238. }
  239. ]]>
  240. </script>
  241. </button>
  242. </group>
  243. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  244. <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; ">7</line>
  245. <button id="btn_save" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
  246. <caption>저장</caption>
  247. <script type="javascript" ev:event="DOMActivate">
  248. <![CDATA[
  249. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  250. if ( retMes != 6) {
  251. return;
  252. }
  253. var updtdata = getGridUpdateData(grd_deptbaseinfolist);
  254. if (updtdata == "") {
  255. messageBox("변경된 데이터가","I004");
  256. return;
  257. }
  258. misfSave("TXRTC01001");
  259. model.refresh();
  260. ]]>
  261. </script>
  262. </button>
  263. </group>
  264. </xhtml:body>
  265. </xhtml:html>