SMMMR08100_입퇴원기록조회.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <search>
  11. <fromdd/>
  12. <todd/>
  13. <pid/>
  14. <hngnm/>
  15. <orddeptcd/>
  16. <offset/>
  17. <pagesize>1000</pagesize>
  18. </search>
  19. <iohslist>
  20. <iohsinfo>
  21. <pid/>
  22. <patnm/>
  23. <depthngnm/>
  24. <indd/>
  25. <dschdd/>
  26. <atdrid/>
  27. <chngdept/>
  28. <sexflag/>
  29. <brthdd/>
  30. <maindiagnm/>
  31. <etcdiagnm/>
  32. <pi/>
  33. <mainopcure/>
  34. <cureplan/>
  35. <wrtedrid/>
  36. <curerslt/>
  37. <dschtype/>
  38. <reinyn/>
  39. <reopflag/>
  40. <biopsyyn/>
  41. <lastdiagnm/>
  42. <lastdiagcmt/>
  43. </iohsinfo>
  44. </iohslist>
  45. <patinfo>
  46. <patinfolist/>
  47. </patinfo>
  48. </main>
  49. <send>
  50. <reqdata/>
  51. <cond/>
  52. </send>
  53. <temp>
  54. <pid/>
  55. <hngnm/>
  56. <rrgstno1/>
  57. <rrgstno2/>
  58. <autoflag/>
  59. <srchcond/>
  60. <autoflag/>
  61. </temp>
  62. <init>
  63. <dept>
  64. <dept/>
  65. </dept>
  66. </init>
  67. </root>
  68. </instance>
  69. <submission id="TRMMR08101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" add="bottom" resultref="/root/main/iohslist"/>
  70. <script type="javascript" ev:event="xforms-ready">
  71. <![CDATA[
  72. //화면 초기 설정
  73. fInitialize();
  74. ]]>
  75. </script>
  76. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  77. </model>
  78. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  82. <script type="javascript" src="../../../emr/medirecweb/js/SMMMR08100.js"/>
  83. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  84. <script type="javascript" src="../../../com/departmentcodeweb/js/common.js"/>
  85. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  86. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  88. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  89. </xhtml:head>
  90. <xhtml:body guideline="1,5;2,-3;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  91. <group id="group3" overflow="scroll" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  92. <line id="line1" class="line_1" style="x1:1px; y1:93px; x2:1195px; y2:93px; "/>
  93. <group id="grp_sea" style="left:0px; top:5px; width:1194px; height:62px; vertical-align:top; ">
  94. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  95. <caption id="caption1" class="search_name" style="left:6px; top:10px; width:91px; height:17px; ">퇴원일자 :</caption>
  96. <input id="ipt_fromdd" ref="/root/main/search/fromdd" class="input_search" inputtype="date" style="left:95px; top:10px; width:115px; height:19px; ">
  97. <script type="javascript" ev:event="xforms-value-changed">
  98. <![CDATA[
  99. // 시작일 > 종료일 에러 처리
  100. if(ipt_todd.value !="")
  101. {
  102. if(ipt_fromdd.value > ipt_todd.value)
  103. {
  104. messageBox("종료일 이전 날자만 입력","I006");
  105. ipt_fromdd.value = "";
  106. }
  107. }
  108. ]]>
  109. </script>
  110. </input>
  111. <caption id="caption2" class="search_no_b" style="left:230px; top:10px; width:12px; height:17px; ">~</caption>
  112. <input id="ipt_todd" ref="/root/main/search/todd" class="input_search" inputtype="date" style="left:260px; top:10px; width:115px; height:19px; ">
  113. <script type="javascript" ev:event="xforms-value-changed">
  114. <![CDATA[
  115. //퇴원일자(todd)를 변경하였을 때 그 날짜에 대한 진료과 검색
  116. //진료과 코드 검색
  117. cmb_orddeptcd.deselect();
  118. fGetDeptList();
  119. if(ipt_todd.value< ipt_fromdd.value)
  120. {
  121. messageBox("시작일 이후 날자만 입력","I006");
  122. ipt_todd.value ="";
  123. }
  124. ]]>
  125. </script>
  126. </input>
  127. <caption id="caption3" class="search_name" style="left:7px; top:37px; width:91px; height:17px; ">등록번호 :</caption>
  128. <input id="ipt_pid" ref="/root/main/search/pid" class="input_search" style="left:96px; top:37px; width:114px; height:19px; ">
  129. <script type="javascript" ev:event="onkeypress">
  130. <![CDATA[
  131. if(event.keyCode == 13){
  132. model.setValue("/root/temp/srchcond", 1);
  133. model.setValue("/root/temp/autoflag", "Y");
  134. model.setValue("/root/main/search/pid", ipt_pid.currentText);
  135. btn_usrsrch.dispatch("DOMActivate");
  136. model.refresh();
  137. }
  138. ]]>
  139. </script>
  140. </input>
  141. <button id="btn_usrsrch" class="icon_search" style="left:220px; top:35px; width:16px; height:16px; ">
  142. <caption/>
  143. <script type="javascript" ev:event="DOMActivate">
  144. <![CDATA[
  145. fPatPopUp();
  146. ]]>
  147. </script>
  148. </button>
  149. <output id="opt_hngnm" ref="/root/main/search/hngnm" class="output_fix" style="left:260px; top:35px; width:100px; height:19px; "/>
  150. <line id="line2" style="x1:1122px; y1:5px; x2:1122px; y2:56px; border-color:#ffcc99; "/>
  151. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:10px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  152. <caption>조회</caption>
  153. <script type="javascript" ev:event="onclick">
  154. <![CDATA[
  155. //조건 조회 전 유효한 값이 입력되었는지 체크해 준다.
  156. if(ipt_fromdd.value=="" && ipt_todd.value=="")
  157. {
  158. //조회버튼 Click 입퇴원기록 조회
  159. fGetiohsHist();
  160. }
  161. else if (ipt_fromdd.value !="" && ipt_todd.value !="")
  162. {
  163. fGetiohsHist();
  164. }
  165. else
  166. messageBox("퇴원 시작/종료 기간을 정확히","C001");
  167. ]]>
  168. </script>
  169. </button>
  170. <caption id="caption6" class="search_name" style="left:445px; top:10px; width:91px; height:17px; ">진료과 :</caption>
  171. <select1 id="cmb_orddeptcd" ref="/root/main/search/orddeptcd" class="combo_search" appearance="minimal" editmode="input" style="left:525px; top:10px; width:125px; height:19px; ">
  172. <choices>
  173. <itemset nodeset="/root/init/dept/dept">
  174. <label ref="depthngnm"/>
  175. <value ref="deptcd"/>
  176. </itemset>
  177. </choices>
  178. </select1>
  179. </group>
  180. <caption id="caption4" class="tit_2" style="left:5px; top:78px; width:100px; height:13px; ">입퇴원목록</caption>
  181. <datagrid id="grd_iohistinfo" nodeset="/root/main/iohslist/iohsinfo" caption="등록번호^환자명^퇴원과^입원일^퇴원일^주치의^전과^성별^생년월일^주진단명^기타진단명^PI^주수술및처치^치료계획^작성의사^치료결과^퇴원형태^재입원여부^재수술여부^조직검사여부^최종진단명^최종진단소견" colsep="^" colwidth="90, 92, 96, 100, 100, 92, 92, 50, 100, 100, 100, 654, 100, 100, 92, 100, 98, 114, 114, 86, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:95px; width:1194px; height:617px; ">
  182. <col ref="pid" style="text-align:left; "/>
  183. <col ref="patnm" style="text-align:left; "/>
  184. <col ref="depthngnm" style="text-align:left; "/>
  185. <col ref="indd" format="yyyy-mm-dd" style="text-align:left; "/>
  186. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:left; "/>
  187. <col ref="atdrid" style="text-align:left; "/>
  188. <col ref="chngdept" style="left:616px; top:23px; width:92px; height:23px; text-align:left; "/>
  189. <col ref="sexflag" style="text-align:left; "/>
  190. <col ref="brthdd" format="yyyy-mm-dd" style="text-align:left; "/>
  191. <col ref="maindiagnm" style="text-align:left; "/>
  192. <col ref="etcdiagnm" style="text-align:left; "/>
  193. <col ref="pi" style="text-align:left; "/>
  194. <col ref="mainopcure" style="text-align:left; "/>
  195. <col ref="cureplan" style="text-align:left; "/>
  196. <col ref="wrtedrid" style="text-align:left; "/>
  197. <col ref="curerslt" style="text-align:left; "/>
  198. <col ref="dschtype" style="text-align:left; "/>
  199. <col ref="reinyn" style="text-align:left; "/>
  200. <col ref="reopflag" style="text-align:left; "/>
  201. <col ref="biopsyyn" style="text-align:left; "/>
  202. <col ref="lastdiagnm" style="text-align:left; "/>
  203. <col ref="lastdiagcmt" style="text-align:left; "/>
  204. <script type="javascript" ev:event="onscrolldown">
  205. <![CDATA[
  206. if(grd_iohistinfo.vscroll.attribute("max") == grd_iohistinfo.vscroll.attribute("pos")) {
  207. model.setValue("/root/send/reqdata/offset", grd_iohistinfo.rows-grd_iohistinfo.fixedRows); // grid의 header row는 제외
  208. submit("TRMMR08101");
  209. grd_iohistinfo.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
  210. }
  211. ]]>
  212. </script>
  213. </datagrid>
  214. <button id="btn_excel" class="btn2_letter4" style="left:1120px; top:70px; width:71px; height:19px; ">
  215. <caption>엑셀저장</caption>
  216. <script type="javascript" ev:event="DOMActivate">
  217. <![CDATA[
  218. var selectValue1 = true;
  219. var selectValue2 = 1;
  220. var today = getCurrentDate();
  221. var fileName = window.fileDialog("save", ",", false, "입퇴원요약지_"+today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  222. if (fileName != ""){
  223. grd_iohistinfo.saveExcel(fileName, "sheetname:sheet1;col_08:label;col_13:label;col_17:label;col_23:label;");
  224. }
  225. ]]>
  226. </script>
  227. </button>
  228. </group>
  229. <caption id="caption5" class="tit_1" style="left:0px; top:0px; width:120px; height:13px; ">입퇴원기록조회</caption>
  230. </xhtml:body>
  231. </xhtml:html>