SMPMC04500_지정의사별환자현황.xrw 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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. <send>
  10. <search_deptcd/>
  11. <search_drid/>
  12. <search_date/>
  13. </send>
  14. <main>
  15. <grdInPatList>
  16. <pid/>
  17. <hngnm/>
  18. <indd/>
  19. <orddeptcd/>
  20. <wardcd/>
  21. <roomcd/>
  22. <sex/>
  23. <medispclid/>
  24. <fromdd/>
  25. <todd/>
  26. </grdInPatList>
  27. <print>
  28. <deptnm/>
  29. <drnm/>
  30. <date/>
  31. <logo/>
  32. </print>
  33. </main>
  34. <hidden>
  35. <init>
  36. <orddeptcd>
  37. <cd/>
  38. <nm/>
  39. </orddeptcd>
  40. <orddrid>
  41. <cd/>
  42. <nm/>
  43. <dp/>
  44. </orddrid>
  45. <wardcd>
  46. <cd/>
  47. <nm/>
  48. </wardcd>
  49. </init>
  50. </hidden>
  51. <init/>
  52. </root>
  53. </instance>
  54. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  55. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/init"/>
  56. <submission id="TRPMC04501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grdInPatList"/>
  57. </model>
  58. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  61. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  62. <script type="javascript" ev:event="xforms-ready">
  63. <![CDATA[
  64. model.setValue("/root/send/search_date",getCurrentDate());
  65. submit("TRPMI00106");
  66. // 레포트 미리보기 생성 - 미리보기창 안보이게 하기 위해서 생성
  67. makeReportPreview(0, 50, 1194, 600, "grp_report");
  68. model.refresh();
  69. ]]>
  70. </script>
  71. <script type="javascript">
  72. <![CDATA[
  73. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  74. function fInitialize()
  75. {
  76. model.removeNodeset("/root/main/grdInPatList");
  77. model.resetInstanceNode("/root/send");
  78. model.setValue("/root/send/search_date", getCurrentDate());
  79. model.refresh();
  80. }
  81. ]]>
  82. </script>
  83. </xhtml:head>
  84. <xhtml:body guideline="1,1193;1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  85. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  86. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">지정의사별재원환자조회</caption>
  87. </group>
  88. <group id="group3" style="left:0px; top:13px; width:1195px; height:744px; ">
  89. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; ">
  90. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  91. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">검색조건 :</caption>
  92. <line id="line2" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  93. <caption id="caption17" class="search_name" style="left:394px; top:9px; width:112px; height:17px; ">조회일자 :</caption>
  94. <select1 id="cmb_orddeptcd" ref="/root/send/search_deptcd" class="combo_search" appearance="minimal" style="left:110px; top:8px; width:110px; height:19px; ">
  95. <choices>
  96. <itemset nodeset="/root/hidden/init/orddeptcd">
  97. <label ref="nm"/>
  98. <value ref="cd"/>
  99. </itemset>
  100. </choices>
  101. <script type="javascript" ev:event="xforms-value-changed">
  102. <![CDATA[
  103. //dp = '" + sDeptCd + "' AND [(sp = 'Y')]
  104. var sDeptCd = model.getValue("/root/send/search_deptcd"); // 진료과(부서)
  105. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddrid[(dp = '" + sDeptCd + "')]"; // 진료과
  106. //cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddrid[(dp = '" + sDeptCd + "' and sp = 'Y' )]"; // 진료과 and 선택진료
  107. model.setFocus("cmb_orddrid");
  108. cmb_orddrid.refresh();
  109. ]]>
  110. </script>
  111. </select1>
  112. <select1 id="cmb_orddrid" ref="/root/send/search_drid" class="combo_search" appearance="minimal" style="left:230px; top:8px; width:110px; height:19px; ">
  113. <choices>
  114. <itemset nodeset="/root/hidden/init/orddrid">
  115. <label ref="nmsp"/>
  116. <value ref="cd"/>
  117. </itemset>
  118. </choices>
  119. </select1>
  120. <input id="ipt_date" ref="/root/send/search_date" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:487px; top:8px; width:98px; height:19px; "/>
  121. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  122. <caption>조회</caption>
  123. <script type="javascript" ev:event="DOMActivate">
  124. <![CDATA[
  125. // 지정의사별 재원환자현황 조회
  126. var sDeptCd = model.getValue("/root/send/search_deptcd");
  127. var sDrId = model.getValue("/root/send/search_drid");
  128. var sDate = model.getValue("/root/send/search_date");
  129. // 진료과 입력 체크
  130. if (sDeptCd == "") {
  131. messageBox("진료과를", "C002");
  132. return;
  133. }
  134. // 지정의사 입력 체크
  135. if (sDrId == "") {
  136. messageBox("의사를", "C002");
  137. return;
  138. }
  139. // 조회일자 입력 체크
  140. if (sDate == "") {
  141. messageBox("조회일자를", "C001");
  142. return;
  143. }
  144. // 조회일자에 대한 지정의사별 재원환자 리스트 조회
  145. if(submit("TRPMC04501")) {
  146. var iCount = getNodesetCount("/root/main/grdInPatList");
  147. if (iCount == 0) {
  148. messageBox("조회된 결과가", "I004");
  149. }
  150. }
  151. ]]>
  152. </script>
  153. </button>
  154. </group>
  155. <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:300px; height:14px; font-family:돋움; vertical-align:middle; ">특정일 재원환자 리스트</caption>
  156. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  157. <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:50px; width:64px; height:19px; ">
  158. <caption>액셀저장</caption>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. // 엑셀 저장
  162. var fileName = window.fileDialog("save", ",", false, getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  163. if (fileName != "")
  164. {
  165. grd_inpatlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  166. }
  167. ]]>
  168. </script>
  169. </button>
  170. <button id="btn_print" class="btn2_letter2" style="left:1085px; top:50px; width:42px; height:19px; ">
  171. <caption>출력</caption>
  172. <script type="javascript" ev:event="DOMActivate">
  173. <![CDATA[
  174. var sDeptCd = model.getValue("/root/send/search_deptcd"); // 진료과
  175. var sDrId = model.getValue("/root/send/search_drid"); // 전문의
  176. var sDate = model.getValue("/root/send/search_date"); // 조회일자
  177. model.setValue("/root/main/print/deptnm", model.getValue("/root/hidden/init/orddeptcd[cd = '"+ sDeptCd +"']/nm"));
  178. model.setValue("/root/main/print/drnm", model.getValue("/root/hidden/init/orddrid[cd = '"+ sDrId +"']/nm"));
  179. model.setValue("/root/main/print/date", sDate);
  180. model.setValue("/root/main/print/logo", getLogoImageURL()); // 기관로고
  181. // 레포트 출력
  182. exeReportPreview("RPPMC04500", "XMLSTR" , "" , "" , "true" , "", "", "", "", "", "", "grp_report");
  183. ]]>
  184. </script>
  185. </button>
  186. <datagrid id="grd_inpatlist" nodeset="/root/main/grdInPatList" caption="환자번호^환자명^입원일자^진료과^병동^병실^성별" colsep="^" colwidth="100, 101, 102, 152, 150, 100, 60" dataheight="23" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:75px; width:1194px; height:669px; ">
  187. <col ref="pid" type="output" style="text-align:center; "/>
  188. <col disabled="true" ref="hngnm" type="output" style="text-align:center; "/>
  189. <col disabled="true" ref="indd" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
  190. <col disabled="true" ref="orddeptcd" type="output" style="text-align:center; "/>
  191. <col disabled="true" ref="wardcd" type="output" style="left:287px; top:23px; width:90px; height:23px; text-align:center; "/>
  192. <col ref="roomcd" style="text-align:center; "/>
  193. <col ref="sex" style="text-align:center; "/>
  194. <script type="javascript" ev:event="onaftersort">
  195. <![CDATA[
  196. grd_inpatlist.gridToInstance();
  197. ]]>
  198. </script>
  199. </datagrid>
  200. <group id="grp_report" visibility="hidden" style="left:1020px; top:47px; width:45px; height:20px; "/>
  201. </group>
  202. <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
  203. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  204. <button id="btn_clear" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  205. <caption>초기화</caption>
  206. <script type="javascript" ev:event="DOMActivate">
  207. <![CDATA[
  208. fInitialize();
  209. ]]>
  210. </script>
  211. </button>
  212. </group>
  213. </xhtml:body>
  214. </xhtml:html>