SMLBT10200_혈액준비관리.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLBT10200_혈액준비관리.xrw
  4. * 설 명 : 혈액준비관리
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 박정은
  7. * 작 성 일 : 2007.05.30
  8. * 수정이력 : 2007.08.31 printer
  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. <send>
  19. <fromdd/>
  20. <todd/>
  21. <fromtm/>
  22. <totm/>
  23. <testpsnid/>
  24. <pid/>
  25. <blodno/>
  26. <tnsreqacptno/>
  27. <spclyn/>
  28. </send>
  29. <init>
  30. </init>
  31. <hidden2>
  32. <ref>
  33. <reffromdd/>
  34. <reffromtm/>
  35. <reftodd/>
  36. <reftotm/>
  37. <testpsnid/>
  38. <testpsnnm/>
  39. <pid/>
  40. <bloodno/>
  41. <spclblood/>
  42. <alarmyn/>
  43. <tmptestpsnid/>
  44. </ref>
  45. <autoref>1</autoref>
  46. <keepnoblodcnt>
  47. <bno/>
  48. <keepno/>
  49. </keepnoblodcnt>
  50. <autom>5</autom>
  51. <popupyn/>
  52. <temp>
  53. <totalInsCnt>
  54. <totalinscnt/>
  55. </totalInsCnt>
  56. </temp>
  57. </hidden2>
  58. </root>
  59. </instance>
  60. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  62. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  63. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  64. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  65. <script type="javascript" ev:event="xforms-ready">
  66. <![CDATA[
  67. //var dd= today.getAddDate(2, "D");
  68. //getDateInterval();
  69. fTimer();
  70. group2.refresh();
  71. model.setFocus("ipt_testpsn");
  72. fSetPrepImport("SAME");
  73. model.removeNodeset("/root/main/getbloodinfo");
  74. model.removeNodeset("/root/main/blod/getprepbloodlist");
  75. //grd_prepblood.refresh();
  76. grd_prcplist.refresh(); // 처방목록
  77. grd_detllist.refresh(); // 수혈내역
  78. grd_com.refresh(); // 혈액성분
  79. grd_prepblood.refresh(); // 준비혈액
  80. model.makeValue("/root/send/scrnid", getScreenID());
  81. submit("TRLLC90101");
  82. fAutoAcpt("Y"); // 준비화면열때 자동접수랑 자동조회되도록 -2008-10-09 정은추가
  83. ]]>
  84. </script>
  85. <submission id="TXLBT10202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden2/ref" replace="instance" resultref="/root/hidden2/temp"/>
  86. </model>
  87. <script type="javascript">
  88. <![CDATA[
  89. iCnt = 1;
  90. var gTimerID;
  91. function fTimer(){
  92. iCnt ++;
  93. if(iCnt%2 == 0){
  94. m = model.getvalue("/root/hidden2/autom");
  95. gTimerID = window.setInterval( "fAutoAcpt('Y')", m * 60000 );
  96. button89.attribute("text") = "자동접수 On";
  97. input1.disabled = true;
  98. }
  99. else{
  100. model.setvalue("/root/hidden2/autoref" , "2");
  101. button89.attribute("text") = "자동접수 Off";
  102. input1.disabled = false;
  103. window.clearInterval(gTimerID) ;
  104. }
  105. }
  106. function fSettingDate(){
  107. var today = getCurrentDate();
  108. var ttime = getCurrentTime();
  109. var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-5);
  110. var mTime = (getCurrentDate()+getCurrentTime()).toDate("YYYYMMDDhhmm").getAddDate(8, "h");
  111. model.setValue("/root/hidden2/ref/reffromdd" , mDate.getDateFormat("YYYYMMDD")); // -5일
  112. model.setValue("/root/hidden2/ref/reftodd" , mTime.getDateFormat("YYYYMMDD")); // 현재일시 +8시간 더한 날짜
  113. model.setValue("/root/hidden2/ref/reffromtm" , ttime.substring(0,4)); // 현재시간
  114. model.setValue("/root/hidden2/ref/reftotm" , mTime.getDateFormat("hhmm")); // +8시간
  115. model.refresh();
  116. }
  117. function fAutoAcpt(ref){
  118. //자동접수,화면로딩시에만 현재시간으로 셋팅.
  119. if(ref == "Y"){
  120. fSettingDate();
  121. }
  122. submit("TXLBT10202");
  123. model.setValue("/root/send/dispflag", "A"); //준비관리, 이형준비관리 구분인가?? 2008.09.04 김성희
  124. if(ref == "Y"){
  125. fGetBloodPrcpList("btn"); // 2008-10-05 정은 추가 자동접수후 재조회하기
  126. //자동접수후 신규 접수내역이 있고, 알람사용이 체크되어 있으면 알람 띠링띠링. 2009.04.29 김성희
  127. if(model.getValue("/root/hidden2/ref/alarmyn") == "Y" && model.getValue("/root/hidden2/temp/totalInsCnt/totalinscnt") > 0){
  128. snd ="c:\\windows\\media\\" + model.getValue("/root/init/LB1201/cd");
  129. MediaPlayer.settings.playCount = model.getValue("/root/init/LB1201/etc01");
  130. MediaPlayer.url = snd;
  131. }
  132. }
  133. }
  134. // 초기화 버튼
  135. function fSetClear(){
  136. model.reset();
  137. }
  138. ]]>
  139. </script>
  140. </xhtml:head>
  141. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  142. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  143. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:199px; height:13px; ">혈액준비관리</caption>
  144. </group>
  145. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  146. <group id="group2" style="left:0px; top:5px; width:1195px; height:35px; vertical-align:top; ">
  147. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:35px; "/>
  148. <caption id="caption2" class="search_name" style="left:3px; top:9px; width:91px; height:17px; ">조회일자 :</caption>
  149. <line id="line13" class="line_4" style="x1:1124px; y1:5px; x2:1124px; y2:27px; "/>
  150. <caption id="caption4" class="search_name" style="left:365px; top:10px; width:75px; height:17px; ">접수자 :</caption>
  151. <caption id="caption5" class="search_name" style="left:737px; top:9px; width:91px; height:17px; ">혈액번호 :</caption>
  152. <caption id="caption16" class="search_name" style="left:571px; top:9px; width:93px; height:17px; ">등록번호 :</caption>
  153. <caption id="caption3" class="search_no_b" style="left:217px; top:9px; width:15px; height:17px; ">~</caption>
  154. <button id="btn_ref" class="btn1_letter2" style="left:1136px; top:7px; width:56px; height:22px; ">
  155. <caption>조회</caption>
  156. <script type="javascript" ev:event="DOMActivate">
  157. <![CDATA[
  158. fAutoAcpt("N");
  159. fGetBloodPrcpList("btn");
  160. ]]>
  161. </script>
  162. </button>
  163. <input id="ipt_fromdd" ref="/root/hidden2/ref/reffromdd" class="input_s_essential" inputtype="date" style="left:89px; top:8px; width:91px; height:19px; "/>
  164. <input id="ipt_todd" ref="/root/hidden2/ref/reftodd" class="input_s_essential" inputtype="date" style="left:232px; top:8px; width:91px; height:19px; "/>
  165. <input id="ipt_fromtm" ref="/root/hidden2/ref/reffromtm" class="input_search" format="hh:nn" style="left:179px; top:8px; width:35px; height:19px; "/>
  166. <input id="ipt_totm" ref="/root/hidden2/ref/reftotm" class="input_search" format="hh:nn" style="left:322px; top:8px; width:35px; height:19px; "/>
  167. <input id="ipt_testpsn" ref="/root/hidden2/ref/testpsnid" class="input_search" style="left:438px; top:9px; width:64px; height:19px; "/>
  168. <input id="ipt_pid" ref="/root/hidden2/ref/pid" class="input_search" style="left:662px; top:8px; width:68px; height:19px; "/>
  169. <input id="ipt_bloodno" ref="/root/hidden2/ref/bloodno" class="input_search" style="left:827px; top:8px; width:68px; height:19px; "/>
  170. <output id="opt_testpsn" ref="/root/hidden2/ref/testpsnnm" class="output_fix" style="left:503px; top:9px; width:61px; height:19px; "/>
  171. <select id="chk_spclblod" ref="/root/hidden2/ref/spclblood" overflow="visible" appearance="full" style="left:901px; top:10px; width:70px; height:15px; border-style:none; ">
  172. <choices>
  173. <item>
  174. <label>특수혈액</label>
  175. <value>1</value>
  176. </item>
  177. </choices>
  178. <script type="javascript" ev:event="xforms-value-changed">
  179. <![CDATA[
  180. // 간호부전송 버튼 설정
  181. fSetNurseBtn();
  182. ]]>
  183. </script>
  184. </select>
  185. <button id="button89" class="btn5_letter7" style="left:978px; top:8px; width:97px; height:19px; ">
  186. <caption>자동접수 On</caption>
  187. <script type="javascript" ev:event="DOMActivate">
  188. <![CDATA[
  189. fTimer();
  190. ]]>
  191. </script>
  192. </button>
  193. <input id="input1" ref="/root/hidden2/autom" class="input_search" style="left:1076px; top:8px; width:24px; height:19px; "/>
  194. <caption id="caption8" class="search_no_b" style="left:1100px; top:8px; width:15px; height:17px; ">분</caption>
  195. </group>
  196. <import id="import1" src="../../../lis\tnsmngtweb\xrw\SMLBT80200_혈액준비관리상세.xrw" style="left:0px; top:45px; width:1193px; height:695px; "/>
  197. </group>
  198. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  199. <line id="line15" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  200. <button id="btn_prnt" class="btn3_letter5" style="left:0px; top:3px; width:92px; height:22px; ">
  201. <caption>프린터선택</caption>
  202. <script type="javascript" ev:event="DOMActivate">
  203. <![CDATA[
  204. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  205. if(count == 0) {
  206. model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  207. }
  208. modal("SPLLC90100" , "","","","","/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  209. ]]>
  210. </script>
  211. </button>
  212. <button id="button8" class="btn3_letter4" style="left:94px; top:3px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
  213. <caption>이력조회</caption>
  214. <script type="javascript" ev:event="DOMActivate">
  215. <![CDATA[
  216. //setParameter ( "SMMMO02500_cond", model.getvalue("/root/hidden2/ref/pid")+ "▩");
  217. //open ( "SMMMO02500" );
  218. if(model.getvalue("/root/hidden2/ref/pid") == ""){
  219. setParameter ( "SMMMO02500_cond", getPatientInfo("pid"));
  220. }else{
  221. setParameter ( "SMMMO02500_cond", model.getvalue("/root/hidden2/ref/pid"));
  222. }
  223. open ( "SMMMO02500" );
  224. ]]>
  225. </script>
  226. </button>
  227. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  228. <caption>초기화</caption>
  229. <script type="javascript" ev:event="DOMActivate">
  230. <![CDATA[
  231. fSetClear();
  232. ]]>
  233. </script>
  234. </button>
  235. <button id="btn_prep" class="btn4_letter4" style="left:1044px; top:3px; width:80px; height:22px; ">
  236. <caption>준비완료</caption>
  237. <script type="javascript" ev:event="DOMActivate">
  238. <![CDATA[
  239. fSetReady();
  240. ]]>
  241. </script>
  242. </button>
  243. <button id="button3" class="btn4_letter8" visibility="visible" style="left:913px; top:3px; width:128px; height:22px; ">
  244. <caption>이형혈액준비관리</caption>
  245. <script type="javascript" ev:event="DOMActivate">
  246. <![CDATA[
  247. model.setValue("/root/hidden2/popupyn", "Y");
  248. open("SMLBT10500_이형혈액준비관리.xrw", "", "", "", "", "/root/hidden2/popupyn", "/root/hidden2/popupyn");
  249. ]]>
  250. </script>
  251. </button>
  252. <select id="chk_alarmyn" ref="/root/hidden2/ref/alarmyn" appearance="full" voverflow="visible" style="left:835px; top:5px; width:70px; height:15px; border-style:none; ">
  253. <choices>
  254. <item>
  255. <label>알람사용</label>
  256. <value>Y</value>
  257. </item>
  258. </choices>
  259. </select>
  260. <object id="MediaPlayer" clsid="{6bf52a52-394a-11d3-b153-00c04f79faa6}" visibility="hidden" playCount="-1" style="left:750px; top:0px; width:40px; height:25px; border-style:none; "/>
  261. <button id="button1" class="btn3_letter5" style="left:176px; top:3px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
  262. <caption>수혈혈액형</caption>
  263. <script type="javascript" ev:event="DOMActivate">
  264. <![CDATA[
  265. open ( "SPLBT90500" );
  266. ]]>
  267. </script>
  268. </button>
  269. </group>
  270. <script type="javascript" ev:event="onkeypress">
  271. <![CDATA[
  272. fKeyEvent();
  273. ]]>
  274. </script>
  275. <caption id="caption1" style="left:275px; top:12px; width:55px; height:25px; font-size:12pt; font-weight:bold; border-color:#f3e1bf; border-width:1px; border-style:solid; ">보검</caption>
  276. <caption id="caption7" style="left:460px; top:12px; width:55px; height:25px; font-size:12pt; font-weight:bold; border-color:#f3e1bf; border-width:1px; border-style:solid; ">재고</caption>
  277. <caption id="cap_keep" ref="/root/hidden2/keepnoblodcnt/keepno" style="left:340px; top:12px; width:85px; height:25px; font-size:14pt; font-weight:bold; border-color:#f3e1bf; border-width:1px; border-style:solid; ">1</caption>
  278. <caption id="cap_blodcnt" ref="/root/hidden2/keepnoblodcnt/bno" style="left:525px; top:12px; width:65px; height:25px; font-size:14pt; font-weight:bold; border-color:#f3e1bf; border-width:1px; border-style:solid; ">1</caption>
  279. <caption id="caption9" style="left:903px; top:40px; width:183px; height:12px; font-size:8pt; color:#0000ff; vertical-align:top; ">▼ PC, LRSDP 는 체크하고 조회</caption>
  280. </xhtml:body>
  281. </xhtml:html>