SPLBT90410_외래혈종수혈처방조회.xrw 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLBT90400_외래수혈처방조회.xrw
  4. * 설 명 : 외래수혈처방조회
  5. * 설 계 자 : (주)에이씨케이 - 박정은
  6. * 작 성 자 : (주)에이씨케이 -
  7. * 작 성 일 : 2009.03.23
  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>
  18. <main>
  19. <bloodprcplist>
  20. <outprcplist>
  21. <prcpstat/>
  22. <prcpdd/>
  23. <prcphopedd/>
  24. <prcphopetm/>
  25. <pid/>
  26. <hngnm/>
  27. <deptnm/>
  28. <blodcomabbrnm/>
  29. <reqqty/>
  30. <btype/>
  31. <keepno/>
  32. <bfaborh/>
  33. <tnsreqacptno/>
  34. <prcpcd/>
  35. <stat2/>
  36. <bankcnfmyn/>
  37. <outcnfmyn/>
  38. <rsrvcnfmdt/>
  39. <voltrans/>
  40. <bcnoinfo/>
  41. </outprcplist>
  42. </bloodprcplist>
  43. </main>
  44. <send>
  45. <fromdd/>
  46. <todd/>
  47. <pid/>
  48. </send>
  49. <init>
  50. </init>
  51. <hidden>
  52. <ref>
  53. <fromdd/>
  54. <todd/>
  55. <pid/>
  56. </ref>
  57. <autom>1</autom>
  58. <autoref>1</autoref>
  59. </hidden>
  60. </root>
  61. </instance>
  62. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  66. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  67. <script type="javascript" ev:event="xforms-ready">
  68. <![CDATA[
  69. fSetInit();
  70. ]]>
  71. </script>
  72. <submission id="TRLBT90402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/bloodprcplist/outprcplist"/>
  73. <submission id="TXLBT90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  74. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  75. </model>
  76. <script type="javascript">
  77. <![CDATA[
  78. iCnt = 1;
  79. var gTimerID;
  80. function fTimer(){
  81. iCnt ++;
  82. if(iCnt%2 == 0){
  83. m = model.getvalue("/root/hidden/autom");
  84. gTimerID = window.setInterval( "fGetOutPrcpList()", m * 60000 );
  85. button89.attribute("text") = "자동조회 On";
  86. input2.disabled = true;
  87. }
  88. else{
  89. model.setvalue("/root/hidden/autoref" , "2");
  90. button89.attribute("text") = "자동조회 Off";
  91. input2.disabled = false;
  92. window.clearInterval(gTimerID) ;
  93. }
  94. }
  95. //초기화
  96. function fSetInit() {
  97. model.setFocus("ipt_pid");
  98. fBaseInfoRef("0000|");
  99. fTimer();
  100. model.resetInstanceNode("/root/main/bloodprcplist/outprcplist");
  101. model.setValue("/root/hidden/ref/fromdd", getCurrentDate().toDate("YYYYMMDD").getAddDate(-1, "D").getDateFormat("YYYYMMDD"));
  102. model.setValue("/root/hidden/ref/todd", getCurrentDate());
  103. model.setValue("/root/hidden/ref/pid", "");
  104. // 화면열때 자동조회
  105. fGetOutPrcpList();
  106. model.refresh();
  107. }
  108. // 조회
  109. function fGetOutPrcpList(){
  110. model.setValue("/root/send/fromdd", model.getValue("/root/hidden/ref/fromdd"));
  111. model.setValue("/root/send/todd", model.getValue("/root/hidden/ref/todd"));
  112. model.setValue("/root/send/pid", model.getValue("/root/hidden/ref/pid"));
  113. submit("TRLBT90402");
  114. grd_dnorinfo.rebuildStyle();
  115. // 미접수인거 (미수납) readonly
  116. for(i=1; i<grd_dnorinfo.rows; i++){
  117. if( (model.getValue("/root/main/bloodprcplist/outprcplist["+i+"]/stat2")=="000")
  118. || (model.getValue("/root/main/bloodprcplist/outprcplist["+i+"]/stat2")=="0")
  119. || (model.getValue("/root/main/bloodprcplist/outprcplist["+i+"]/stat2")=="230")
  120. || model.getValue("/root/init/LB0000/nm") != "L"){ //진검 아닌 부서에서 해당화면 사용하기위해 외래확인 컬럼 비활성화 요청
  121. grd_dnorinfo.isReadOnly(i, grd_dnorinfo.colRef("outcnfmyn")) = true;
  122. }else{
  123. grd_dnorinfo.isReadOnly(i, grd_dnorinfo.colRef("outcnfmyn")) = false;
  124. }
  125. }
  126. //grd_dnorinfo
  127. grd_dnorinfo.refresh();
  128. }
  129. //키이벤트 엔터키 입력시
  130. function fKeyEvent(){
  131. if(event.keyCode == "13"){
  132. if(event.target=="ipt_pid"){
  133. model.setValue("/root/hidden/ref/pid", (ipt_pid.currentText).getTrim() );
  134. fGetOutPrcpList();
  135. }
  136. }
  137. }
  138. // 혈액은행 확인, 외래확인 체크
  139. function fSetRsrvCNFM(){
  140. model.makeValue("/root/send/outcnfmdata", grd_dnorinfo.getUpdateData());
  141. submit("TXLBT90401");
  142. fGetOutPrcpList();
  143. }
  144. ]]>
  145. </script>
  146. </xhtml:head>
  147. <xhtml:body pagewidth="1020" pageheight="770" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  148. <group id="grp_biz" scroll="auto" style="left:0px; top:14px; width:990px; height:756px; ">
  149. <datagrid id="grd_dnorinfo" nodeset="/root/main/bloodprcplist/outprcplist" class="datagrid3" caption="상태^처방일자^예약일시^예약일시^등록번호^환자명^진료과^처방명^수량^Btype^최근수혈&#xA;혈액형^보관&#xA;검체^혈액&#xA;은행&#xA;확인^외래&#xA;확인^확인일시^보관검체정보^tnsreqacptno^stat2^용량변경&#xA;수량" colsep="^" colwidth="60, 75, 75, 40, 78, 68, 55, 70, 34, 92, 54, 54, 30, 30, 110, 180, 0, 0, 0" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:5px; top:75px; width:975px; height:655px; text-align:center; ">
  150. <col ref="prcpstat" style="text-align:center; "/>
  151. <col ref="prcpdd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  152. <col ref="prcphopedd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  153. <col ref="prcphopetm" format="hh:nn"/>
  154. <col ref="pid"/>
  155. <col ref="hngnm"/>
  156. <col ref="deptnm"/>
  157. <col ref="blodcomabbrnm" style="text-align:left; "/>
  158. <col ref="reqqty"/>
  159. <col ref="btype"/>
  160. <col ref="bfaborh"/>
  161. <col ref="keepno"/>
  162. <col ref="bankcnfmyn"/>
  163. <col checkvalue="Y,N" ref="outcnfmyn" type="checkbox"/>
  164. <col ref="rsrvcnfmdt" format="yyyy-mm-dd hh:nn"/>
  165. <col ref="bcnoinfo"/>
  166. <col ref="tnsreqacptno"/>
  167. <col ref="stat2"/>
  168. <col ref="voltrans" visibility="hidden"/>
  169. <script type="javascript" ev:event="onaftersort">
  170. <![CDATA[
  171. grd_dnorinfo.gridToInstance();
  172. ]]>
  173. </script>
  174. <script type="javascript" ev:event="xforms-value-changed">
  175. <![CDATA[
  176. fSetRsrvCNFM();
  177. ]]>
  178. </script>
  179. </datagrid>
  180. <line id="line10" class="line_1" style="x1:5px; y1:70px; x2:980px; y2:70px; "/>
  181. <caption id="caption32" class="tit_2" style="left:5px; top:55px; width:167px; height:13px; ">외래환자 수혈처방 조회</caption>
  182. <group id="grp_sea" style="left:0px; top:10px; width:979px; height:35px; vertical-align:top; ">
  183. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:979px; height:35px; "/>
  184. <line id="line13" class="line_4" style="x1:893px; y1:7px; x2:893px; y2:29px; "/>
  185. <caption id="caption2" class="search_name" style="left:16px; top:9px; width:94px; height:17px; ">예약일시 :</caption>
  186. <button id="btn_ref" class="btn1_letter2" style="left:908px; top:7px; width:56px; height:22px; ">
  187. <caption>조회</caption>
  188. <script type="javascript" ev:event="DOMActivate">
  189. <![CDATA[
  190. fGetOutPrcpList();
  191. ]]>
  192. </script>
  193. </button>
  194. <caption id="caption3" class="search_no_b" style="left:205px; top:8px; width:15px; height:17px; ">~</caption>
  195. <input id="input26" ref="/root/hidden/ref/fromdd" class="input_s_essential" inputtype="date" style="left:105px; top:8px; width:95px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  196. <input id="input1" ref="/root/hidden/ref/todd" class="input_s_essential" inputtype="date" style="left:224px; top:8px; width:95px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  197. <caption id="caption1" class="search_name" style="left:381px; top:9px; width:94px; height:17px; ">등록번호 :</caption>
  198. <input id="ipt_pid" ref="/root/hidden/ref/pid" inputtype="button" style="left:475px; top:8px; width:100px; height:19px; ">
  199. <script type="javascript" ev:event="onkeypress">
  200. <![CDATA[
  201. fKeyEvent();
  202. ]]>
  203. </script>
  204. </input>
  205. <input id="input2" ref="/root/hidden/autom" class="input_search" style="left:831px; top:8px; width:24px; height:19px; "/>
  206. <caption id="caption8" class="search_no_b" style="left:855px; top:8px; width:15px; height:17px; ">분</caption>
  207. <button id="button89" class="btn5_letter6" style="left:743px; top:8px; width:92px; height:19px; ">
  208. <caption>자동조회 On</caption>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. fTimer();
  212. ]]>
  213. </script>
  214. </button>
  215. </group>
  216. <button id="button1" class="btn4_letter2" style="left:925px; top:731px; width:56px; height:22px; ">
  217. <caption>닫기</caption>
  218. <script type="javascript" ev:event="onclick">
  219. <![CDATA[
  220. //opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "");
  221. window.close();
  222. ]]>
  223. </script>
  224. </button>
  225. </group>
  226. <group id="grp_tle" style="left:0px; top:0px; width:980px; height:13px; ">
  227. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:179px; height:13px; ">외래환자 수혈처방 조회</caption>
  228. </group>
  229. </xhtml:body>
  230. </xhtml:html>