SMLBP02300_1pint 수혈율.xrw 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 1pint 수혈율.xrw
  4. * 설 명 : 1pint 수혈율
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 -
  7. * 작 성 일 : 2009.08.28
  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>1pint 수혈율</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. </main>
  20. <send>
  21. <fromdd/>
  22. <todd/>
  23. </send>
  24. <init>
  25. </init>
  26. <hidden>
  27. <fromdd/>
  28. <todd/>
  29. <onedetail>
  30. </onedetail>
  31. </hidden>
  32. </root>
  33. </instance>
  34. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  36. <submission id="TRLBP02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
  37. <script type="javascript" ev:event="xforms-ready">
  38. <![CDATA[
  39. // worklist 일자
  40. model.setValue("/root/hidden/fromdd", getCurrentDate().toDate().getAddDate(-1, "M").getDateFormat("YYYYMMDD"));
  41. model.setValue("/root/hidden/todd", getCurrentDate());
  42. model.refresh();
  43. ]]>
  44. </script>
  45. </model>
  46. <script type="javascript">
  47. <![CDATA[
  48. function fSetInit() {
  49. model.reset();
  50. }
  51. function fGetOnePint() {
  52. model.removeNode("/root/main/getOnePint");
  53. model.copyNode("/root/hidden/onedetail", "");
  54. model.setValue("/root/send/fromdd", model.getValue("/root/hidden/fromdd"));
  55. model.setValue("/root/send/todd", model.getValue("/root/hidden/todd"));
  56. submit("TRLBP02301");
  57. }
  58. function fSetOuterExcel(grdId) {
  59. var filename = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls");
  60. if(filename != "") {
  61. grdId.saveExcel(filename);
  62. }
  63. }
  64. ]]>
  65. </script>
  66. </xhtml:head>
  67. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  68. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; "/>
  69. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  70. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:131px; height:14px; ">1pint 수혈율</caption>
  71. <datagrid id="datagrid1" nodeset="/root/main/getOnePint" caption="처방부서^1Pint 건수^전체건수^1pint 수혈율^1pint 상세" colsep="^" colwidth="100, 100, 100, 100, 0" dataheight="23" defaultrows="1" extendlastcol="false" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:70px; width:445px; height:660px; ">
  72. <col ref="dept" style="text-align:center; "/>
  73. <col ref="one" style="text-align:right; padding-right:10; "/>
  74. <col ref="all" style="text-align:right; padding-right:10; "/>
  75. <col ref="per" format="#,##0.00" style="text-align:right; padding-right:10; "/>
  76. <col ref="onedetail" visibility="hidden"/>
  77. <script type="javascript" ev:event="onclick">
  78. <![CDATA[
  79. model.copyNode("/root/hidden/onedetail", "/root/main/getOnePint["+datagrid1.row+"]/onedetail");
  80. datagrid2.rebuild();
  81. ]]>
  82. </script>
  83. </datagrid>
  84. <line id="line1" class="line_1" style="x1:0px; y1:63px; x2:445px; y2:63px; "/>
  85. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0; width:1195px; height:35; "/>
  86. <input id="ipt_wldd" ref="/root/hidden/fromdd" class="input_search" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:106px; top:8px; width:85px; height:19px; "/>
  87. <input id="ipt_wldde" ref="/root/hidden/todd" class="input_search" navindex="4" inputtype="date" format="yyyy-mm-dd" style="left:216px; top:8px; width:85px; height:19px; "/>
  88. <caption id="caption3" class="search_name" style="left:12px; top:9px; width:115px; height:17px; ">조회기간 :</caption>
  89. <caption id="caption4" style="left:199px; top:9px; width:15px; height:18px; font-weight:bold; ">~</caption>
  90. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  91. <caption>조회</caption>
  92. <script type="javascript" ev:event="DOMActivate">
  93. <![CDATA[
  94. fGetOnePint();
  95. ]]>
  96. </script>
  97. </button>
  98. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  99. <button id="button2" class="btn2_letter4" style="left:380px; top:40px; width:64px; height:19px; ">
  100. <caption>엑셀저장</caption>
  101. <script type="javascript" ev:event="DOMActivate">
  102. <![CDATA[
  103. //fExeExcel(grd_worklistdetl);
  104. fSetOuterExcel(datagrid1);
  105. ]]>
  106. </script>
  107. </button>
  108. <datagrid id="datagrid2" nodeset="/root/hidden/onedetail/element" caption="등록번호^환자명^입원일^퇴원일^성분제제^상태^실시일시" colsep="^" colwidth="100, 100, 100, 100, 120, 50, 120" dataheight="23" defaultrows="1" explorerbar="sort" extendlastcol="false" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:460px; top:70px; width:730px; height:660px; ">
  109. <col ref="PID" style="text-align:center; "/>
  110. <col ref="HNGNM" style="text-align:center; "/>
  111. <col ref="INDD" format="yyyy-mm-dd" style="text-align:center; "/>
  112. <col ref="DSCHDD" format="yyyy-mm-dd" style="text-align:center; "/>
  113. <col ref="BLODCOMNM" style="text-align:center; "/>
  114. <col ref="BLODCOMSTAT" style="text-align:center; "/>
  115. <col ref="EXECDT" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  116. </datagrid>
  117. <line id="line2" class="line_1" style="x1:460px; y1:63px; x2:1190px; y2:63px; "/>
  118. <caption id="caption2" class="tit_2" style="left:460px; top:45px; width:141px; height:14px; ">1pint 수혈 세부 내역</caption>
  119. </group>
  120. <group id="group5" style="left:0px; top:0px; width:1195px; height:13px; ">
  121. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:198px; height:14px; ">1회 입원 기간중 1pint 수혈율</caption>
  122. </group>
  123. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  124. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  125. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  126. <caption>초기화</caption>
  127. <script type="javascript" ev:event="DOMActivate">
  128. <![CDATA[
  129. fSetInit();
  130. ]]>
  131. </script>
  132. </button>
  133. </group>
  134. <button id="btn_excel" class="btn2_letter4" style="left:1125px; top:80px; width:64px; height:19px; ">
  135. <caption>엑셀저장</caption>
  136. <script type="javascript" ev:event="DOMActivate">
  137. <![CDATA[
  138. //fExeExcel(grd_worklistdetl);
  139. fSetOuterExcel(datagrid2);
  140. ]]>
  141. </script>
  142. </button>
  143. </xhtml:body>
  144. </xhtml:html>