SMMNE01700_전원전입환자 일지.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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. <cond>
  11. <fromdate/>
  12. <todate/>
  13. <inouttp>1</inouttp>
  14. <printdd/>
  15. </cond>
  16. <inchnghostlist>
  17. <chnghosplist>
  18. <bedposcnts/>
  19. <srno/>
  20. <pid/>
  21. <patnm/>
  22. <gndrage/>
  23. <orddeptnm/>
  24. <inddtm/>
  25. <diagnm/>
  26. <cc/>
  27. <hospnm/>
  28. <outrmcd/>
  29. <outrmddtm/>
  30. <indd/>
  31. <cretno/>
  32. <instcd/>
  33. <visitno/>
  34. <chngcellyn/>
  35. <hospnm1/>
  36. </chnghosplist>
  37. <inhosplist>
  38. <srno/>
  39. <pid/>
  40. <patnm/>
  41. <gndrage/>
  42. <orddeptnm/>
  43. <inddtm/>
  44. <diagnm/>
  45. <cc/>
  46. <hospnm/>
  47. <outrmcd/>
  48. <outrmddtm/>
  49. <outrmname/>
  50. </inhosplist>
  51. </inchnghostlist>
  52. </main>
  53. <item>
  54. </item>
  55. <send/>
  56. <hidden/>
  57. <init>
  58. <erbaselist>
  59. <outrmcdsupcd/>
  60. <outrminfo/>
  61. </erbaselist>
  62. </init>
  63. </root>
  64. </instance>
  65. <script type="javascript" ev:event="xforms-model-construct-done">
  66. <![CDATA[
  67. grd_outpat.attribute("visibility")="visible";
  68. grd_inpat.attribute("visibility")="hidden";
  69. btn_updhosp.attribute("visibility") = "visible";
  70. ]]>
  71. </script>
  72. <script type="javascript" ev:event="xforms-ready">
  73. <![CDATA[
  74. finit();
  75. ]]>
  76. </script>
  77. <submission id="TXMNE01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inchnghostlist"/>
  78. <submission id="TRMNE00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/erbaselist"/>
  79. </model>
  80. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/rexpert.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  83. <script type="javascript" src="../../../emr/ercareweb/js/SMMNE01700.js"/>
  84. </xhtml:head>
  85. <xhtml:body guideline="1,1194;1,1176;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  86. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  87. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:197px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">응급실 전원전입환자 일지</caption>
  88. </group>
  89. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  90. <datagrid id="grd_outpat" nodeset="/root/main/inchnghostlist/chnghosplist" visibility="hidden" caption="BedNo.^등록번호^환자명^성별^나이^진료과^입실일시^진단명^주호소^대상 병원명^퇴실종류^퇴실일시^indd^cretno^instcd^visitno" colsep="^" colwidth="55, 80, 90, 34, 34, 74, 120, 180, 140, 140, 194, 120, 0, 0, 0, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1194px; height:669px; ">
  91. <col ref="bedposcnts" style="text-align:center; "/>
  92. <col ref="pid"/>
  93. <col ref="patnm" style="text-align:center; "/>
  94. <col ref="sex" style="text-align:center; "/>
  95. <col ref="age" style="text-align:center; "/>
  96. <col ref="orddeptnm" style="text-align:center; "/>
  97. <col ref="inddtm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  98. <col ref="diagnm"/>
  99. <col ref="cc"/>
  100. <col ref="hospnm" type="input"/>
  101. <col disabled="true" ref="outrmcd" type="combo">
  102. <choices>
  103. <itemset nodeset="/root/init/erbaselist/outrminfo">
  104. <label ref="typenm"/>
  105. <value ref="basetypecd"/>
  106. </itemset>
  107. </choices>
  108. </col>
  109. <col ref="outrmddtm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  110. <col ref="indd"/>
  111. <col ref="cretno"/>
  112. <col ref="instcd"/>
  113. <col ref="visitno"/>
  114. <col ref="chngcellyn"/>
  115. <script type="javascript" ev:event="onendedit">
  116. <![CDATA[
  117. model.setValue("/root/main/inchnghostlist/chnghosplist["+grd_outpat.row+"]/chngcellyn", "Y");
  118. ]]>
  119. </script>
  120. </datagrid>
  121. <line id="line8" class="line_1" style="x1:0px; y1:71px; x2:1194px; y2:71px; "/>
  122. <group id="group2" style="left:0px; top:11px; width:1194px; height:35px; vertical-align:top; ">
  123. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  124. <button id="btn_search" class="btn1_letter2" style="left:939px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  125. <caption>조회</caption>
  126. <script type="javascript" ev:event="onclick">
  127. <![CDATA[
  128. fSearchList();
  129. ]]>
  130. </script>
  131. </button>
  132. <line id="line13" style="x1:929px; y1:7px; x2:929px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  133. <caption id="caption2" class="search_name" style="left:240px; top:9px; width:91px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검색일자 :</caption>
  134. <input id="input_refFrDT" ref="/root/main/cond/fromdate" class="input_s_essential" inputtype="date" style="left:329px; top:8px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  135. <caption id="caption5" style="left:431px; top:12px; width:15px; height:13px; ">~</caption>
  136. <input id="input_refToDT" ref="/root/main/cond/todate" class="input_s_essential" inputtype="date" style="left:445px; top:8px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  137. <select1 id="rdo_searchflag" ref="/root/main/cond/inouttp" class="radio_search" visibility="visible" appearance="full" cols="2" overflow="visible" style="left:90px; top:10px; width:100px; height:20px; border-style:none; ">
  138. <choices>
  139. <item>
  140. <label>전원</label>
  141. <value>1</value>
  142. </item>
  143. <item>
  144. <label>전입</label>
  145. <value>2</value>
  146. </item>
  147. </choices>
  148. <script type="javascript" ev:event="xforms-select">
  149. <![CDATA[
  150. if(rdo_searchflag.value==1)
  151. {
  152. grd_outpat.attribute("visibility")="visible";
  153. grd_inpat.attribute("visibility")="hidden";
  154. btn_updhosp.attribute("visibility")="visible";
  155. model.removeNodeset("/root/main/inchnghostlist/inhosplist");
  156. }
  157. else
  158. {
  159. grd_outpat.attribute("visibility")="hidden";
  160. grd_inpat.attribute("visibility")="visible";
  161. btn_updhosp.attribute("visibility")="hidden";
  162. model.removeNodeset("/root/main/inchnghostlist/chnghosplist");
  163. }
  164. ]]>
  165. </script>
  166. </select1>
  167. <caption id="caption8" class="search_name" style="left:20px; top:10px; width:71px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">구 분 :</caption>
  168. <button id="btn_excelprint" class="btn1_letter2" style="left:1060px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  169. <caption>출력</caption>
  170. <script type="javascript" ev:event="DOMActivate">
  171. <![CDATA[
  172. if(model.getValue("/root/main/cond/inouttp") == "1"){
  173. exeReportPreview("RPMNE01700", "XMLSTR");
  174. }else{
  175. exeReportPreview("RPMNE01701", "XMLSTR");
  176. }
  177. ]]>
  178. </script>
  179. </button>
  180. <button id="btn_updhosp" class="btn1_letter2" style="left:1120px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  181. <caption>저장</caption>
  182. <script type="javascript" ev:event="onclick">
  183. <![CDATA[
  184. var chngcellyncheck = "";
  185. for(i= 1 ; i < grd_outpat.rows; i++ ) {
  186. if(model.getValue("/root/main/inchnghostlist/chnghosplist/chngcellyn") == "Y"){
  187. var chngcellyncheck = "Y";
  188. }
  189. }
  190. if(chngcellyncheck != "Y" || grd_outpat.rows == "1" ){
  191. return;
  192. }else{
  193. var tRow = grd_outpat.rows;
  194. var sSrchData = "";
  195. var sSrchHeader = "pid▦indd▦cretno▦instcd▦visitno▦chnghospnm▩";
  196. for(i= 1 ; i < tRow ; i++ ) {
  197. // if(model.getValue("/root/main/inchnghostlist/chnghosplist["+i+"]/chngcellyn") == "Y"){
  198. if(model.getValue("/root/main/inchnghostlist/chnghosplist["+i+"]/hospnm") != model.getValue("/root/main/inchnghostlist/chnghosplist["+i+"]/hospnm1")){
  199. var sSrchData = model.getValue("/root/main/inchnghostlist/chnghosplist["+i+"]/pid")+"▦"
  200. + model.getValue("/root/main/inchnghostlist/chnghosplist["+i+"]/indd")+"▦"
  201. + model.getValue("/root/main/inchnghostlist/chnghosplist["+i+"]/cretno")+"▦"
  202. + model.getValue("/root/main/inchnghostlist/chnghosplist["+i+"]/instcd")+"▦"
  203. + model.getValue("/root/main/inchnghostlist/chnghosplist["+i+"]/visitno")+"▦"
  204. + model.getValue("/root/main/inchnghostlist/chnghosplist["+i+"]/hospnm")+"▩";
  205. }
  206. }
  207. model.makeValue("/root/send/setcond", sSrchHeader + sSrchData );
  208. submit("TXMNE01701");
  209. model.refresh();
  210. }
  211. ]]>
  212. </script>
  213. </button>
  214. <button id="button1" class="btn1_letter2" style="left:999px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  215. <caption>엑셀</caption>
  216. <script type="javascript" ev:event="onclick">
  217. <![CDATA[
  218. var fromdd = model.getValue("/root/main/cond/fromdate");
  219. var todd = model.getValue("/root/main/cond/todate");
  220. var dt = "";
  221. if(fromdd == todd) {
  222. dt = fromdd;
  223. } else {
  224. dt = fromdd + "~" + todd;
  225. }
  226. if( model.getValue("/root/main/cond/inouttp") == "1") {
  227. var fileName = window.fileDialog("save", ",", false, "전원 환자현황("+dt + ")", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  228. }else {
  229. var fileName = window.fileDialog("save", ",", false, "전입 환자현황("+dt+")", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  230. }
  231. if (fileName != "") {
  232. if( model.getValue("/root/main/cond/inouttp") == "1") {
  233. grd_outpat.saveExcel(fileName, "SheetName", true, true, "", "", false);
  234. } else {
  235. grd_inpat.saveExcel(fileName, "SheetName", true, true, "", "", false);
  236. }
  237. }
  238. ]]>
  239. </script>
  240. </button>
  241. </group>
  242. <datagrid id="grd_inpat" nodeset="/root/main/inchnghostlist/inhosplist" caption="SrNo.^등록번호^환자명^성별^나이^진료과^입실일시^진단명^주호소^ 병원명^처리결과^퇴실일시^caption1" colsep="^" colwidth="55, 80, 90, 34, 34, 74, 120, 180, 140, 140, 194, 120, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1194px; height:669px; ">
  243. <col ref="srno" style="text-align:center; "/>
  244. <col ref="pid"/>
  245. <col ref="patnm" style="text-align:center; "/>
  246. <col ref="sex" style="text-align:center; "/>
  247. <col ref="age" style="text-align:center; "/>
  248. <col ref="orddeptnm" style="text-align:center; "/>
  249. <col ref="inddtm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  250. <col ref="diagnm"/>
  251. <col ref="cc"/>
  252. <col ref="hospnm"/>
  253. <col disabled="true" ref="outrmcd" type="combo">
  254. <choices>
  255. <itemset nodeset="/root/init/erbaselist/outrmcdsupcd">
  256. <label ref="typenm"/>
  257. <value ref="basetypecd"/>
  258. </itemset>
  259. </choices>
  260. </col>
  261. <col ref="outrmddtm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  262. </datagrid>
  263. </group>
  264. <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  265. <caption id="caption1" style="left:1164px; top:5px; width:30px; height:20px; text-align:right; ">[표]</caption>
  266. </group>
  267. </xhtml:body>
  268. </xhtml:html>