SMLBP02200_입원환자기간별혈액분출현황.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLBP02200_입원환자기간별혈액분출현황.xrw
  4. * 설 명 : 입원환자 기간별 혈액분출현황
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 박정은
  7. * 작 성 일 : 2008-11-04
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>입원환자 기간별 혈액분출현황</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <getinddpatlist>
  20. <pid/>
  21. <hngnm/>
  22. <indd/>
  23. <dschgbn/>
  24. <dept/>
  25. <dcnt/>
  26. </getinddpatlist>
  27. <getpidinfo>
  28. <getpidbloodlist>
  29. <blodno/>
  30. <blodcomnm/>
  31. <btype/>
  32. <reqqty/>
  33. <deliveqty/>
  34. <prcpdt/>
  35. <prepblodseqno/>
  36. <delivedt/>
  37. <stat/>
  38. <roomcd/>
  39. <orddept/>
  40. </getpidbloodlist>
  41. <getpiddelivery>
  42. <blodcomnm/>
  43. <reqqty/>
  44. <deliveqty/>
  45. <cmqty/>
  46. <abnqty/>
  47. <rtnqty/>
  48. <rtnqty2/>
  49. <prepqty/>
  50. </getpiddelivery>
  51. <getpidcmtest>
  52. <blodcomnm/>
  53. <reqqty/>
  54. <cmtestqty/>
  55. </getpidcmtest>
  56. <getpidabnblood>
  57. <blodcomnm/>
  58. <reqqty/>
  59. <abnqty/>
  60. </getpidabnblood>
  61. <getpidrtnblood>
  62. <blodcomnm/>
  63. <reqqty/>
  64. <rtnqty/>
  65. </getpidrtnblood>
  66. </getpidinfo>
  67. </main>
  68. <send>
  69. <fromdd/>
  70. <todd/>
  71. <pid/>
  72. <dschgbn/>
  73. <indd/>
  74. </send>
  75. <init>
  76. </init>
  77. <hidden>
  78. <refparam>
  79. <startdd/>
  80. <enddd/>
  81. <pid/>
  82. <dschgbn/>
  83. </refparam>
  84. <report>
  85. <getpidbloodlist/>
  86. <getpiddelivery/>
  87. <patinfo>
  88. <pid/>
  89. <patnm/>
  90. <indd/>
  91. <enddd/>
  92. <dept/>
  93. </patinfo>
  94. </report>
  95. </hidden>
  96. </root>
  97. </instance>
  98. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  101. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  102. <script type="javascript" ev:event="xforms-ready">
  103. <![CDATA[
  104. fSetInit();
  105. ]]>
  106. </script>
  107. <submission id="TRLBP02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getinddpatlist"/>
  108. <submission id="TRLBP02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getpidinfo"/>
  109. </model>
  110. <script type="javascript">
  111. <![CDATA[
  112. // 초기화
  113. function fSetInit(){
  114. model.setvalue("/root/hidden/refparam/startdd", getCurrentDate());
  115. model.setvalue("/root/hidden/refparam/enddd", getCurrentDate());
  116. model.setValue("/root/hidden/refparam/pid", "");
  117. model.setValue("/root/hidden/refparam/dschgbn", "");
  118. model.removeNodeset("/root/main/getinddpatlist"); // 환자목록 초기화
  119. model.removeNodeset("/root/main/getpidinfo/getpidbloodlist"); // 혈액분출 현황 초기화
  120. model.removeNodeset("/root/main/getpidinfo/getpiddelivery"); // 혈액분출 수량조회 초기화
  121. if(getPatientInfo("pid") != ""){
  122. delPatientInfos(); //환자정보 전체 삭제
  123. }
  124. model.refresh();
  125. }
  126. // 입원환자 목록 조회
  127. function fGetInddPatlist(){
  128. if(model.getValue("/root/hidden/refparam/startdd") =="" || model.getValue("/root/hidden/refparam/enddd")==""){
  129. alert("입원기간을 입력하십시오.");
  130. return;
  131. }
  132. model.setValue("/root/send/fromdd", model.getValue("/root/hidden/refparam/startdd"));
  133. model.setValue("/root/send/todd", model.getValue("/root/hidden/refparam/enddd"));
  134. model.setValue("/root/send/pid", model.getValue("/root/hidden/refparam/pid"));
  135. model.setValue("/root/send/dschgbn", model.getValue("/root/hidden/refparam/dschgbn"));
  136. submit("TRLBP02201");
  137. }
  138. // 환자목록 조회해서 혈액분출 현황 조회하기
  139. function fGetPidBloodlist(){
  140. if(datagrid1.row < 1){
  141. alert("환자를 선택하십시오.");
  142. return;
  143. }
  144. model.setValue("/root/send/fromdd", model.getValue("/root/hidden/refparam/startdd"));
  145. model.setValue("/root/send/todd", model.getValue("/root/hidden/refparam/enddd"));
  146. model.setValue("/root/send/pid", model.getValue("/root/main/getinddpatlist["+datagrid1.row+"]/pid"));
  147. model.setValue("/root/send/indd", model.getValue("/root/main/getinddpatlist["+datagrid1.row+"]/indd"));
  148. submit("TRLBP02202");
  149. }
  150. // 출력
  151. function fExePrint(){
  152. if(grd_piddelivery.rows < 1){
  153. alert("출력할 내용이 없습니다. ");
  154. return;
  155. }
  156. model.copyNode("/root/hidden/report", "/root/main/getpidinfo");
  157. model.makeNode("/root/hidden/report/patinfo");
  158. model.makeValue("/root/hidden/report/patinfo/pid", model.getValue("/root/main/getinddpatlist["+datagrid1.row+"]/pid"));
  159. model.makeValue("/root/hidden/report/patinfo/patnm", model.getValue("/root/main/getinddpatlist["+datagrid1.row+"]/hngnm"));
  160. model.makeValue("/root/hidden/report/patinfo/indd", model.getValue("/root/main/getinddpatlist["+datagrid1.row+"]/indd"));
  161. model.makeValue("/root/hidden/report/patinfo/enddd", model.getValue("/root/main/getinddpatlist["+datagrid1.row+"]/dschgbn"));
  162. model.makeValue("/root/hidden/report/patinfo/dept", model.getValue("/root/main/getinddpatlist["+datagrid1.row+"]/dept"));
  163. exeReportPreview("RPLBP02201", "XMLSTR", "/root/hidden/report");
  164. }
  165. ]]>
  166. </script>
  167. </xhtml:head>
  168. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  169. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; "/>
  170. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  171. <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  172. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  173. <caption id="caption2" class="search_name" style="left:16px; top:9px; width:94px; height:17px; ">입원기간 :</caption>
  174. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  175. <caption>조회</caption>
  176. <script type="javascript" ev:event="DOMActivate">
  177. <![CDATA[
  178. fGetInddPatlist();
  179. ]]>
  180. </script>
  181. </button>
  182. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  183. <input id="input26" ref="/root/hidden/refparam/startdd" class="input_s_essential" inputtype="date" style="left:110px; top:8px; width:90px; height:19px; "/>
  184. <caption id="caption3" class="search_no_b" style="left:204px; top:9px; width:15px; height:17px; ">~</caption>
  185. <input id="input1" ref="/root/hidden/refparam/enddd" class="input_s_essential" inputtype="date" style="left:221px; top:8px; width:90px; height:19px; "/>
  186. <caption id="caption5" class="search_name" style="left:355px; top:9px; width:94px; height:17px; ">등록번호 :</caption>
  187. <select id="checkbox1" ref="/root/hidden/refparam/dschgbn" overflow="visible" appearance="full" style="left:573px; top:10px; width:110px; height:15px; border-style:none; ">
  188. <choices>
  189. <item>
  190. <label>재원환자 Only</label>
  191. <value>1</value>
  192. </item>
  193. </choices>
  194. </select>
  195. <input id="ipt_pid" ref="/root/hidden/refparam/pid" class="input_button" inputtype="button" style="left:445px; top:8px; width:90px; height:19px; ">
  196. <script type="javascript" ev:event="onkeypress">
  197. <![CDATA[
  198. if(event.keyCode == "13"){
  199. // 검사자 바코드 리딩시
  200. if(event.target == "ipt_pid"){
  201. model.setvalue("/root/hidden/refparam/pid", (ipt_pid.currentText).toUpperCase());
  202. fGetInddPatlist();
  203. ipt_pid.selBegin = 0;
  204. ipt_pid.selEnd = ipt_pid.currentText.length;
  205. }
  206. }
  207. ]]>
  208. </script>
  209. </input>
  210. </group>
  211. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">환자목록</caption>
  212. <datagrid id="datagrid1" nodeset="/root/main/getinddpatlist" backcoloralternate="transparent" caption="등록번호^환자이름^입원일^퇴원일^퇴원부서^혈액은행불출^blodbarcd" colsep="^" colwidth="80, 70, 80, 70, 70, 84, 0" dataheight="23" defaultrows="1" explorerbar="sortshow" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:495px; height:668px; ">
  213. <col ref="pid"/>
  214. <col ref="hngnm"/>
  215. <col ref="indd" format="yyyy-mm-dd"/>
  216. <col ref="dschgbn"/>
  217. <col ref="dept"/>
  218. <col ref="dcnt"/>
  219. <col ref="blodbarcd"/>
  220. <script type="javascript" ev:event="onclick">
  221. <![CDATA[
  222. // 환자목록 선택해서 혈액분출 현황 조회
  223. if(datagrid1.isCell(event.target) && datagrid1.row >= datagrid1.fixedRows){
  224. fGetPidBloodlist();
  225. }
  226. ]]>
  227. </script>
  228. <script type="javascript" ev:event="onaftersort">
  229. <![CDATA[
  230. datagrid1.gridToInstance();
  231. ]]>
  232. </script>
  233. </datagrid>
  234. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:495px; y2:70px; "/>
  235. <caption id="caption4" class="tit_2" style="left:506px; top:55px; width:131px; height:14px; ">혈액불출 현황</caption>
  236. <line id="line2" class="line_1" style="x1:500px; y1:70px; x2:1195px; y2:70px; "/>
  237. <button id="btn_excel" class="btn2_letter2" visibility="hidden" style="left:1153px; top:49px; width:42px; height:19px; ">
  238. <caption>엑셀</caption>
  239. <script type="javascript" ev:event="DOMActivate">
  240. <![CDATA[
  241. /*var filename = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls");
  242. if(filename != "") {
  243. grd_piddelivery.saveExcel(filename);
  244. }
  245. */
  246. ]]>
  247. </script>
  248. </button>
  249. <datagrid id="datagrid5" nodeset="/root/main/getpidinfo/getpiddelivery" caption="혈액성분^처방수량^불출수량^검사완료수량^반환수량^폐기수량^병원사유폐기^준비수량" colsep="^" colwidth="120, 80, 80, 80, 80, 80, 80, 73" dataheight="23" defaultrows="1" explorerbar="sortshow" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:500px; top:530px; width:695px; height:213px; ">
  250. <col ref="blodcomnm"/>
  251. <col ref="reqqty"/>
  252. <col ref="deliveqty"/>
  253. <col ref="cmqty"/>
  254. <col ref="abnqty"/>
  255. <col ref="rtnqty"/>
  256. <col ref="rtnqty2"/>
  257. <col ref="prepqty"/>
  258. </datagrid>
  259. <caption id="caption7" class="tit_2" style="left:506px; top:510px; width:131px; height:14px; ">혈액불출 수량조회</caption>
  260. <line id="line3" class="line_1" style="x1:500px; y1:525px; x2:1195px; y2:525px; "/>
  261. <datagrid id="grd_piddelivery" nodeset="/root/main/getpidinfo/getpidbloodlist" caption="혈액번호^성분^혈액형^처방수량^불출수량^처방일자^혈액순번^불출일시^상태^병실^처방부서" colsep="^" colwidth="70, 84, 42, 56, 56, 101, 54, 101, 66, 43, 60" dataheight="23" defaultrows="1" explorerbar="sortshow" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:500px; top:75px; width:695px; height:425px; ">
  262. <col ref="blodno"/>
  263. <col ref="blodcomnm"/>
  264. <col ref="btype"/>
  265. <col ref="reqqty" format="yyyy-mm-dd hh:nn"/>
  266. <col ref="deliveqty" format="yyyy-mm-dd hh:nn"/>
  267. <col ref="prcpdt"/>
  268. <col ref="prepblodseqno"/>
  269. <col ref="delivedt"/>
  270. <col ref="stat"/>
  271. <col ref="roomcd"/>
  272. <col ref="orddept"/>
  273. </datagrid>
  274. <button id="button2" class="btn2_letter2" style="left:453px; top:49px; width:42px; height:19px; ">
  275. <caption>엑셀</caption>
  276. <script type="javascript" ev:event="DOMActivate">
  277. <![CDATA[
  278. var filename = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls");
  279. if(filename != "") {
  280. datagrid1.saveExcel(filename);
  281. }
  282. ]]>
  283. </script>
  284. </button>
  285. </group>
  286. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  287. <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  288. <caption>초기화</caption>
  289. <script type="javascript" ev:event="onclick">
  290. <![CDATA[
  291. fSetInit();
  292. ]]>
  293. </script>
  294. </button>
  295. <line id="line15" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  296. <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:96px; height:22px; ">
  297. <caption>출력</caption>
  298. <script type="javascript" ev:event="DOMActivate">
  299. <![CDATA[
  300. fExePrint();
  301. ]]>
  302. </script>
  303. </button>
  304. </group>
  305. <group id="group5" style="left:0px; top:0px; width:1195px; height:13px; ">
  306. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:301px; height:14px; ">입원환자 기간별 혈액불출현황</caption>
  307. </group>
  308. </xhtml:body>
  309. </xhtml:html>