SMLBP00700_미수령혈액조회.xrw 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 미수령혈액조회.xrw
  4. * 설 명 : 미수령혈액조회
  5. * 설 계 자 : (주)에이씨케이 - 송요셉
  6. * 작 성 자 : (주)에이씨케이 -
  7. * 작 성 일 : 2007. 8. 8
  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>Untitle</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <undoacptbloodlist>
  20. <pid/>
  21. <patnm/>
  22. <roomcd/>
  23. <blodcomnm/>
  24. <prepblodseqno/>
  25. <blodno/>
  26. <iryn/>
  27. <execdt/>
  28. <validd/>
  29. <validt/>
  30. <transexcdd/>
  31. <prcpdd/>
  32. <btype/>
  33. <validtyn/>
  34. </undoacptbloodlist>
  35. </main>
  36. <send>
  37. <codeflag/>
  38. <refsdd/>
  39. <refedd/>
  40. <bldkind/>
  41. </send>
  42. <init>
  43. </init>
  44. <hidden>
  45. <ref>
  46. <refsdd/>
  47. <refedd/>
  48. </ref>
  49. <bldkind>00</bldkind>
  50. <blodkind2/>
  51. </hidden>
  52. </root>
  53. </instance>
  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="../../../com/commonweb/js/tfHelper.js"/>
  57. <script type="javascript" ev:event="xforms-ready">
  58. <![CDATA[
  59. fsetstart();
  60. ]]>
  61. </script>
  62. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/codeflag" replace="instance" resultref="/root/LB0605"/>
  63. <submission id="TRLBP00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/undoacptbloodlist"/>
  64. </model>
  65. <script type="javascript">
  66. <![CDATA[
  67. function fsetstart(){
  68. grd_blod.rebuildStyle();
  69. var toDay = getCurrentDate();
  70. var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-5);
  71. model.setValue("/root/hidden/ref/refsdd", mDate.getDateFormat("YYYYMMDD"));
  72. model.setValue("/root/hidden/ref/refedd", toDay);
  73. model.setValue("/root/send/codeflag", "0605|"); //성분제제 blodbarcd
  74. submit("TRLZZ00101");
  75. }
  76. function fExeblodlist() {
  77. var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-5);
  78. var mDateFormat = mDate.getDateFormat("YYYYMMDD");
  79. model.setValue("/root/send/refsdd", model.getValue("/root/hidden/ref/refsdd"));
  80. model.setValue("/root/send/refedd", model.getValue("/root/hidden/ref/refedd"));
  81. model.setValue("/root/send/bldkind", model.getValue("/root/hidden/bldkind"));
  82. submit("TRLBP00701");
  83. grd_blod.rebuildStyle();
  84. var tday = getCurrentDate();
  85. if(grd_blod.rows >1){
  86. for(i=1; i<grd_blod.rows; i++){
  87. //setRowStyle("grd_blod", "5", tday, "validt", "smallThen"); //"5" 붉은색
  88. //PC,LRSDP는 하루전날(B) 노랑, 당일(A) 빨강, 나머지는 5일(A) 빨강
  89. if(model.getValue("/root/main/undoacptbloodlist["+i+"]/validtyn") == "A"){
  90. grd_blod.cellstyle("background-color",i,1,i,13) = "#f7a08b";
  91. }else if(model.getValue("/root/main/undoacptbloodlist["+i+"]/validtyn") == "B"){
  92. grd_blod.cellstyle("background-color",i,1,i,13) = "#ffe79d";
  93. }
  94. }
  95. }
  96. }
  97. function fSetInit() {
  98. //model.reset();
  99. model.resetInstanceNode("/root/main/undoacptbloodlist");
  100. grd_blod.refresh();
  101. }
  102. ]]>
  103. </script>
  104. </xhtml:head>
  105. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  106. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; "/>
  107. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  108. <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  109. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  110. <caption id="caption2" class="search_name" style="left:16px; top:9px; width:99px; height:17px; ">검사일자 :</caption>
  111. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  112. <caption>조회</caption>
  113. <script type="javascript" ev:event="DOMActivate">
  114. <![CDATA[
  115. fExeblodlist();
  116. ]]>
  117. </script>
  118. </button>
  119. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  120. <input id="input26" ref="/root/hidden/ref/refsdd" class="input_s_essential" inputtype="date" style="left:105px; top:8px; width:110px; height:19px; "/>
  121. <caption id="caption3" class="search_no_b" style="left:219px; top:9px; width:15px; height:17px; ">~</caption>
  122. <input id="input1" ref="/root/hidden/ref/refedd" class="input_s_essential" inputtype="date" style="left:236px; top:8px; width:110px; height:19px; "/>
  123. <caption id="caption5" class="search_name" style="left:376px; top:9px; width:99px; height:17px; ">혈액종류 :</caption>
  124. <select1 id="combo2" ref="/root/hidden/bldkind" class="combo_s_essential" appearance="minimal" style="left:465px; top:8px; width:215px; height:19px; ">
  125. <choices>
  126. <itemset nodeset="/root/init/LB0605">
  127. <label ref="nm"/>
  128. <value ref="cd"/>
  129. </itemset>
  130. </choices>
  131. </select1>
  132. </group>
  133. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">미수령 혈액 목록</caption>
  134. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  135. <datagrid id="grd_blod" nodeset="/root/main/undoacptbloodlist" caption="등록번호^환자명^병실^혈액형^처방^일련번호^혈액번호^IR^실시일시^유효일자^유효일시^검사일자^처방일자" colsep="^" colwidth="80, 80, 70, 60, 100, 100, 110, 30, 119, 90, 110, 110, 90" dataheight="23" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1194px; height:646px; text-align:center; ">
  136. <col ref="pid"/>
  137. <col ref="patnm" style="text-align:center; "/>
  138. <col ref="roomcd"/>
  139. <col ref="btype"/>
  140. <col ref="blodcomnm"/>
  141. <col ref="prepblodseqno" style="text-align:center; "/>
  142. <col ref="blodno"/>
  143. <col checkvalue="Y,N" ref="iryn"/>
  144. <col ref="execdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  145. <col ref="validd" format="yyyy-mm-dd"/>
  146. <col ref="validt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  147. <col ref="transexcdd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  148. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  149. <script type="javascript" ev:event="onaftersort">
  150. <![CDATA[
  151. grd_blod.gridToInstance();
  152. ]]>
  153. </script>
  154. </datagrid>
  155. </group>
  156. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  157. <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  158. <caption>초기화</caption>
  159. <script type="javascript" ev:event="onclick">
  160. <![CDATA[
  161. fSetInit();
  162. ]]>
  163. </script>
  164. </button>
  165. <line id="line15" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  166. </group>
  167. <group id="group5" style="left:0px; top:0px; width:1195px; height:13px; ">
  168. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">미수령 혈액 조회</caption>
  169. </group>
  170. </xhtml:body>
  171. </xhtml:html>