SMLBP02700_수혈동의서조회.xrw 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 혈액재고조회.xrw.xrw
  4. * 설 명 : 혈액재고조회
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 -
  7. * 작 성 일 : 2006.11.28
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>Untitle</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <transfusiontext>
  20. <formnm/>
  21. <stat/>
  22. <scanyn/>
  23. <formcd/>
  24. <cretno/>
  25. <pid/>
  26. <orddd/>
  27. <orddeptcd/>
  28. <patnm/>
  29. <ordtype/>
  30. <wardroom/>
  31. <prntdt/>
  32. </transfusiontext>
  33. </main>
  34. <send>
  35. <data1/>
  36. <iemr/>
  37. </send>
  38. <init>
  39. </init>
  40. <hidden>
  41. <ref>
  42. <startdd/>
  43. <enddd/>
  44. <pid/>
  45. </ref>
  46. </hidden>
  47. </root>
  48. </instance>
  49. <script type="javascript" ev:event="xforms-model-construct-done">
  50. <![CDATA[
  51. fSetInit();
  52. ]]>
  53. </script>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  56. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  58. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  59. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  60. <submission id="TRLBP02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/transfusiontext"/>
  61. </model>
  62. <script type="javascript">
  63. <![CDATA[
  64. function fSetInit() {
  65. var Today = getCurrentDate();
  66. var BfDay = getCurrentDate().toDate("YYYYMMDD").getAddDate(-30)
  67. model.removeNodeset("/root/main/transfusiontext");
  68. model.setvalue("/root/hidden/ref/startdd",BfDay.getDateFormat("YYYYMMDD"));
  69. model.setvalue("/root/hidden/ref/enddd",Today);
  70. model.refresh();
  71. }
  72. function fGetTansfusionList(){
  73. model.removeNodeset("/root/main/transfusion");
  74. model.copyNode("/root/send/data1" , "/root/hidden/ref");
  75. submit("TRLBP02701");
  76. }
  77. function fOpenview(){
  78. //================================================================================================
  79. //pid : 환자번호
  80. //orddeptcd : 진료과 코드
  81. //indd : 입(내)원일
  82. //docucd : 서식코드
  83. //ioflag : 입원/외래
  84. //cmc_cretno : 생성번호
  85. //================================================================================================
  86. model.resetInstanceNode("/root/send/iemr");
  87. var prcpgenrflag = model.getValue("/root/main/transfusiontext[" + tRow + "]/prcpgenrflagcd");
  88. var tRow = transfusiontext.row;
  89. /* if((prcpgenrflag == "O") ||(prcpgenrflag == "S")) {
  90. prcpgenrflag = "O";
  91. } else {
  92. prcpgenrflag = "I";
  93. }*/
  94. model.makeValue("/root/send/iemr/pid", model.getValue("/root/main/transfusiontext[" + tRow + "]/pid"));
  95. model.makeValue("/root/send/iemr/orddeptcd", model.getValue("/root/main/transfusiontext[" + tRow + "]/orddeptcd"));
  96. model.makeValue("/root/send/iemr/indd", model.getValue("/root/main/transfusiontext[" + tRow + "]/orddd"));
  97. model.makeValue("/root/send/iemr/docucd", model.getValue("/root/main/transfusiontext[" + tRow + "]/formcd"));
  98. model.makeValue("/root/send/iemr/ioflag", prcpgenrflag);
  99. model.makeValue("/root/send/iemr/cmc_cretno", model.getValue("/root/main/transfusiontext[" + tRow + "]/cretno"));
  100. model.makeValue("/root/send/iemr/cmc_spcid", "");
  101. model.makeValue("/root/send/iemr/cmc_orddate", "");
  102. model.makeValue("/root/send/iemr/cmc_orderseqno", "");
  103. if(window.children.item("imgemrviewer") == null) {
  104. open("SSMRC03110", "", "", "", "imgemrviewer", "/root/send/iemr", "/root/hidden/temp");
  105. //window.load("SSMRC03110.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
  106. }
  107. else
  108. {
  109. // 팝업 EMR Viewer 사용중인 상태에서 리로드 기능 추가 - 20080416
  110. var iemrNode = instance1.selectSingleNode("/root/send/iemr");
  111. window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
  112. // 팝업 EMR Viewer 화면 맨 앞으로 가져오기
  113. window.children.item("imgemrviewer").modelesstopmost = true;
  114. window.children.item("imgemrviewer").modelesstopmost = false;
  115. }
  116. }
  117. function fKeyEvent(){
  118. //if(event.keyCode == "13"){
  119. if(event.target == "ipt_pid"){
  120. model.setvalue("/root/hidden/ref/pid", ipt_pid.currentText);
  121. fGetTansfusionList();
  122. ipt_pid.selBegin = 0;
  123. ipt_pid.selEnd = ipt_pid.currentText.length;
  124. }
  125. //}
  126. }
  127. ]]>
  128. </script>
  129. </xhtml:head>
  130. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  131. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; "/>
  132. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  133. <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  134. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  135. <caption id="caption2" class="search_name" style="left:16px; top:9px; width:99px; height:17px; ">진료일자 :</caption>
  136. <caption id="caption222" class="search_name" style="left:526px; top:9px; width:99px; height:17px; ">등록번호 :</caption>
  137. <input id="ipt_pid" ref="/root/hidden/ref/pid" accesskey="f1" class="input_button" inputtype="button" appearance="input" style="left:616px; top:9px; width:99px; height:19px; ">
  138. <script type="javascript" ev:event="onbuttonclick">
  139. <![CDATA[
  140. fKeyEvent();
  141. ]]>
  142. </script>
  143. <script type="javascript" ev:event="onkeypress">
  144. <![CDATA[
  145. if(event.keyCode == "13"){
  146. fKeyEvent();
  147. }
  148. ]]>
  149. </script>
  150. </input>
  151. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  152. <caption>조회</caption>
  153. <script type="javascript" ev:event="onclick">
  154. <![CDATA[
  155. fGetTansfusionList();
  156. ]]>
  157. </script>
  158. </button>
  159. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  160. <input id="input26" ref="/root/hidden/ref/startdd" class="input_s_essential" inputtype="date" style="left:105px; top:8px; width:90px; height:19px; "/>
  161. <caption id="caption3" class="search_no_b" style="left:199px; top:9px; width:15px; height:17px; ">~</caption>
  162. <input id="input1" ref="/root/hidden/ref/enddd" class="input_s_essential" inputtype="date" style="left:216px; top:8px; width:90px; height:19px; "/>
  163. </group>
  164. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">수혈동의서 리스트</caption>
  165. <datagrid id="transfusiontext" nodeset="/root/main/transfusiontext" caption="동의서명^상태^출력여부^동의서코드^생성번호^등록번호^진료일^진료과^환자명^진료타입^진료과/병실^출력일시" colsep="^" colwidth="160, 85, 65, 40, 40, 100, 40, 40, 115, 40, 100, 135" dataheight="23" defaultrows="1" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1194px; height:646px; ">
  166. <col ref="formnm" style="text-align:center; "/>
  167. <col ref="stat" style="text-align:center; "/>
  168. <col ref="scanyn" style="text-align:center; "/>
  169. <col ref="formcd" visibility="hidden" style="text-align:center; "/>
  170. <col ref="cretno" visibility="hidden" style="text-align:center; "/>
  171. <col ref="pid" style="text-align:center; "/>
  172. <col ref="orddd" visibility="hidden" style="text-align:center; "/>
  173. <col ref="orddeptcd" visibility="hidden" style="text-align:center; "/>
  174. <col ref="patnm" style="text-align:center; "/>
  175. <col ref="ordtype" visibility="hidden" style="text-align:center; "/>
  176. <col ref="wardroom" style="text-align:center; "/>
  177. <col ref="prntdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  178. <script type="javascript" ev:event="ondblclick">
  179. <![CDATA[
  180. fOpenview();
  181. ]]>
  182. </script>
  183. </datagrid>
  184. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  185. <button id="button10" class="btn2_letter2" style="left:1152px; top:50px; width:44px; height:19px; ">
  186. <caption>엑셀</caption>
  187. </button>
  188. </group>
  189. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  190. <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  191. <caption>초기화</caption>
  192. <script type="javascript" ev:event="onclick">
  193. <![CDATA[
  194. fSetInit();
  195. ]]>
  196. </script>
  197. </button>
  198. <line id="line15" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  199. </group>
  200. <group id="group5" style="left:0px; top:0px; width:1195px; height:13px; ">
  201. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">수혈동의서조회</caption>
  202. </group>
  203. </xhtml:body>
  204. </xhtml:html>