SMPIS00800_유알스코프.xrw 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPIS00800_유알스코프.xrw
  4. * 수정이력
  5. * - 2008.11.05 / 최초작성 / 강종태
  6. -->
  7. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  8. <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">
  9. <xhtml:head>
  10. <xhtml:title>유알스코프</xhtml:title>
  11. <model id="model1">
  12. <instance id="instance1">
  13. <root xmlns="">
  14. <main>
  15. <grdlist>
  16. <orddeptlist>
  17. <deptcd/>
  18. <depthngnm/>
  19. <reqdeptno/>
  20. <valitodd/>
  21. <newcode/>
  22. </orddeptlist>
  23. <drlist>
  24. <userid/>
  25. <usernm/>
  26. <dutplcecd/>
  27. <position/>
  28. <todd/>
  29. </drlist>
  30. </grdlist>
  31. </main>
  32. <send>
  33. <ordym/>
  34. <srchkind/>
  35. <ioflag/>
  36. </send>
  37. </root>
  38. </instance>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. // 화면 초기화
  42. fInitialize();
  43. ]]>
  44. </script>
  45. <!-- submission -->
  46. <submission id="TRPIS00800" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grdlist"/>
  47. </model>
  48. <!-- js import -->
  49. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  54. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  56. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  57. <!-- 뽕숑 -->
  58. <script type="javascript">
  59. <![CDATA[
  60. // 화면 초기화
  61. function fInitialize()
  62. {
  63. model.removeNodeset("/root/main/grdlist/orddeptlist"); // 그리드 초기화
  64. model.removeNodeset("/root/main/grdlist/drlist"); // 그리드 초기화
  65. rdo_ioflag.select(0);
  66. model.refresh();
  67. }
  68. function fSearch()
  69. {
  70. model.makeNode("/root/tmp/tmpdept");
  71. model.makeNode("/root/tmp/tmpdr");
  72. model.copyNode("/root/tmp/tmpdept","/root/main/grdlist[1]"); // submit이 하나로 날아가서 기존의 노드를 다 날려 먹는다
  73. model.copyNode("/root/tmp/tmpdr","/root/main/grdlist[2]"); // 그래서 조회 후 기존의 데이터를 다시 뿌려준다.
  74. submit("TRPIS00800");
  75. if ( model.getValue("/root/send/srchkind") == "dr") {
  76. model.copyNode("/root/main/grdlist[1]","/root/tmp/tmpdept");
  77. } else if ( model.getValue("/root/send/srchkind") == "orddept") {
  78. model.copyNode("/root/main/grdlist[2]","/root/tmp/tmpdr");
  79. } else {
  80. model.copyNode("/root/main/grdlist[1]","/root/tmp/tmpdept");
  81. model.copyNode("/root/main/grdlist[2]","/root/tmp/tmpdr");
  82. }
  83. model.refresh();
  84. }
  85. ]]>
  86. </script>
  87. </xhtml:head>
  88. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1213;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  89. <!-- TITLE -->
  90. <group id="group1" style="left:0px; top:0px; width:1190px; height:13px; ">
  91. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:173px; height:14px; ">유알스코프</caption>
  92. </group>
  93. <!-- 전체 그룹 -->
  94. <group id="group2" scroll="no" style="left:0px; top:13px; width:1190px; height:732px; ">
  95. <!-- 조회조건 -->
  96. <group id="group4" style="left:0px; top:645px; width:1190px; height:35px; vertical-align:top; ">
  97. <shape id="roundrect2" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:35px; "/>
  98. <caption id="caption5" class="search_name" style="left:10px; top:10px; width:76px; height:17px; ">진료년월</caption>
  99. <input id="ipt_ordym" ref="/root/send/ordym" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:100px; top:10px; width:80px; height:19px; "/>
  100. <line id="line2" class="line_4" style="x1:954px; y1:5px; x2:954px; y2:24px; "/>
  101. <button id="button1" class="btn1_letter2" navindex="2" style="left:980px; top:5px; width:56px; height:22px; ">
  102. <caption>생성</caption>
  103. <script type="javascript" ev:event="DOMActivate">
  104. <![CDATA[
  105. if (ipt_ordym.value != "") {
  106. model.setValue("/root/send/srchkind","orddetail");
  107. fSearch();
  108. } else {
  109. messageBox("진료년월 조건은 ", "I003");
  110. }
  111. ]]>
  112. </script>
  113. </button>
  114. <button id="button6" class="btn1_letter6" navindex="2" style="left:1070px; top:5px; width:104px; height:22px; ">
  115. <caption>배치결과확인</caption>
  116. <script type="javascript" ev:event="DOMActivate">
  117. <![CDATA[
  118. var todd = getCurrentDate();
  119. todd = todd.toDate().getAddDate(+1, 'D');
  120. zsbfOpenBatchLogPopup("aftjudgstatmgr.UrScopeBatch",getCurrentDate(),todd.getDateFormat());
  121. ]]>
  122. </script>
  123. </button>
  124. <caption id="caption4" class="search_name" style="left:210px; top:10px; width:76px; height:17px; ">내원유형</caption>
  125. <select1 id="rdo_ioflag" ref="/root/send/ioflag" class="radio_search" overflow="visible" appearance="full" cols="3" style="left:295px; top:10px; width:180px; height:19px; ">
  126. <choices>
  127. <item>
  128. <label>입원</label>
  129. <value>I</value>
  130. </item>
  131. <item>
  132. <label>외래</label>
  133. <value>O</value>
  134. </item>
  135. </choices>
  136. </select1>
  137. </group>
  138. <caption id="caption12" class="tit_2" style="left:0px; top:15px; width:100px; height:13px; ">진료과 마스터</caption>
  139. <button id="button2" class="btn2_letter4" style="left:1120px; top:12px; width:64px; height:19px; ">
  140. <caption>엑셀저장</caption>
  141. <script type="javascript" ev:event="DOMActivate">
  142. <![CDATA[
  143. if (grd_orddept.rows > 1) {
  144. var fileName = window.fileDialog("save", "", false, "진료과마스터_" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  145. if (fileName != "") {
  146. //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
  147. // grd_clbsmast.saveExcel(fileName, "SheetName", true, true, "", "", true);
  148. grd_orddept.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
  149. }
  150. } else {
  151. messageBox("엑셀저장할 대상이 ", "I004"); ///엑셀저장할 대상자가 없습니다.
  152. }
  153. ]]>
  154. </script>
  155. </button>
  156. <datagrid id="grd_orddept" nodeset="/root/main/grdlist/orddeptlist" class="datagrid2" caption="세부진료과 코드^세부진료과명^심평원 공통&#xA;진료과목 코드^코드의 종료 년월^새로운 대체 코드" colsep="^" colwidth="105, 161, 88, 105, 107" explorerbar="sortshow" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:35px; width:1190px; height:240px; ">
  157. <col ref="deptcd" style="text-align:center; "/>
  158. <col ref="depthngnm" style="text-align:center; "/>
  159. <col ref="reqdeptno" style="text-align:center; "/>
  160. <col ref="valitodd" format="yyyy-mm-dd" style="text-align:center; "/>
  161. <col ref="newcode" style="text-align:center; "/>
  162. </datagrid>
  163. <button id="button3" class="btn1_letter2" navindex="2" style="left:1055px; top:10px; width:56px; height:22px; ">
  164. <caption>조회</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. model.setValue("/root/send/srchkind","orddept");
  168. fSearch();
  169. ]]>
  170. </script>
  171. </button>
  172. <button id="button4" class="btn2_letter4" style="left:1120px; top:300px; width:64px; height:19px; ">
  173. <caption>엑셀저장</caption>
  174. <script type="javascript" ev:event="DOMActivate">
  175. <![CDATA[
  176. if (grd_drmst.rows > 1) {
  177. var fileName = window.fileDialog("save", "", false, "의사마스터_" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  178. if (fileName != "") {
  179. //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
  180. // grd_clbsmast.saveExcel(fileName, "SheetName", true, true, "", "", true);
  181. grd_drmst.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
  182. }
  183. } else {
  184. messageBox("엑셀저장할 대상이 ", "I004"); ///엑셀저장할 대상자가 없습니다.
  185. }
  186. ]]>
  187. </script>
  188. </button>
  189. <button id="button5" class="btn1_letter2" navindex="2" style="left:1055px; top:298px; width:56px; height:22px; ">
  190. <caption>조회</caption>
  191. <script type="javascript" ev:event="DOMActivate">
  192. <![CDATA[
  193. model.setValue("/root/send/srchkind","dr");
  194. fSearch();
  195. ]]>
  196. </script>
  197. </button>
  198. <caption id="caption2" class="tit_2" style="left:0px; top:303px; width:100px; height:13px; ">의사 마스터</caption>
  199. <datagrid id="grd_drmst" nodeset="/root/main/grdlist/drlist" class="datagrid2" caption="의사코드^의사이름^세부진료과 코드^직위^코드의 종료 년월" colsep="^" colwidth="87, 65, 111, 67, 103" explorerbar="sortshow" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:323px; width:1190px; height:262px; ">
  200. <col ref="userid" style="text-align:center; "/>
  201. <col ref="usernm" style="text-align:center; "/>
  202. <col ref="dutplcecd" style="text-align:center; "/>
  203. <col ref="position" format="yyyy-mmd" style="text-align:center; "/>
  204. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  205. </datagrid>
  206. <caption id="caption3" class="tit_2" style="left:0px; top:620px; width:113px; height:13px; ">세부진료과 파일</caption>
  207. </group>
  208. </xhtml:body>
  209. </xhtml:html>