SMLBT10600_혈액준비관리(간소화).xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  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 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>혈액준비관리</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>2</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. fSetPrepImport("SAME");
  72. model.removeNodeset("/root/main/getbloodinfo");
  73. model.removeNodeset("/root/main/blod/getprepbloodlist");
  74. //grd_prepblood.refresh();
  75. grd_prcplist.refresh(); // 처방목록
  76. grd_detllist.refresh(); // 수혈내역
  77. grd_com.refresh(); // 혈액성분
  78. grd_prepblood.refresh(); // 준비혈액
  79. model.makeValue("/root/send/scrnid", getScreenID());
  80. submit("TRLLC90101");
  81. fAutoAcpt("Y"); // 준비화면열때 자동접수랑 자동조회되도록 -2008-10-09 정은추가
  82. group4.disabled = true;
  83. model.setFocus("ID_txt");
  84. /*
  85. fTimer();
  86. group2.refresh();
  87. model.setFocus("ipt_testpsn");
  88. fSetPrepImport("SAME");
  89. model.removeNodeset("/root/main/getbloodinfo");
  90. model.removeNodeset("/root/main/blod/getprepbloodlist");
  91. //grd_prepblood.refresh();
  92. grd_prcplist.refresh(); // 처방목록
  93. grd_detllist.refresh(); // 수혈내역
  94. grd_com.refresh(); // 혈액성분
  95. grd_prepblood.refresh(); // 준비혈액
  96. model.makeValue("/root/send/scrnid", getScreenID());
  97. submit("TRLLC90101");
  98. fAutoAcpt("Y"); // 준비화면열때 자동접수랑 자동조회되도록 -2008-10-09 정은추가
  99. */
  100. ]]>
  101. </script>
  102. <submission id="TXLBT10202" ref="/root/hidden2/ref" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/hidden2/temp"/>
  103. </model>
  104. <script type="javascript">
  105. <![CDATA[
  106. iCnt = 1; // 자동접수 On
  107. //iCnt = 0; // 자동접수 Off
  108. var gTimerID;
  109. function fTimer(){
  110. iCnt ++;
  111. if(iCnt%2 == 0){
  112. m = model.getvalue("/root/hidden2/autom");
  113. gTimerID = window.setInterval( "fAutoAcpt('Y')", m * 60000 );
  114. button89.attribute("text") = "자동접수 On";
  115. input1.disabled = true;
  116. }
  117. else{
  118. model.setvalue("/root/hidden2/autoref" , "2");
  119. button89.attribute("text") = "자동접수 Off";
  120. input1.disabled = false;
  121. window.clearInterval(gTimerID) ;
  122. }
  123. }
  124. function fSettingDate(){
  125. var today = getCurrentDate();
  126. var ttime = getCurrentTime();
  127. var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-5);
  128. var mTime = (getCurrentDate()+getCurrentTime()).toDate("YYYYMMDDhhmm").getAddDate(8, "h");
  129. model.setValue("/root/hidden2/ref/reffromdd" , mDate.getDateFormat("YYYYMMDD")); // -5일
  130. model.setValue("/root/hidden2/ref/reftodd" , mTime.getDateFormat("YYYYMMDD")); // 현재일시 +8시간 더한 날짜
  131. model.setValue("/root/hidden2/ref/reffromtm" , ttime.substring(0,4)); // 현재시간
  132. model.setValue("/root/hidden2/ref/reftotm" , mTime.getDateFormat("hhmm")); // +8시간
  133. model.refresh();
  134. }
  135. function fAutoAcpt(ref){
  136. //자동접수,화면로딩시에만 현재시간으로 셋팅.
  137. if(ref == "Y"){
  138. fSettingDate();
  139. }
  140. submit("TXLBT10202");
  141. model.setValue("/root/send/dispflag", "A"); //준비관리, 이형준비관리 구분인가?? 2008.09.04 김성희
  142. //if(ref == "Y"){
  143. // fGetBloodPrcpList("btn"); // 2008-10-05 정은 추가 자동접수후 재조회하기
  144. //}
  145. if(ref == "Y"){
  146. fGetBloodPrcpList("btn"); // 2008-10-05 정은 추가 자동접수후 재조회하기
  147. //자동접수후 신규 접수내역이 있고, 알람사용이 체크되어 있으면 알람 띠링띠링. 2009.04.29 김성희
  148. if(model.getValue("/root/hidden2/ref/alarmyn") == "Y" && model.getValue("/root/hidden2/temp/totalInsCnt/totalinscnt") > 0){
  149. snd ="c:\\windows\\media\\" + model.getValue("/root/init/LB1201/cd");
  150. MediaPlayer.settings.playCount = model.getValue("/root/init/LB1201/etc01");
  151. MediaPlayer.url = snd;
  152. }
  153. }
  154. }
  155. // 초기화 버튼
  156. function fSetClear(){
  157. model.reset();
  158. }
  159. ]]>
  160. </script>
  161. </xhtml:head>
  162. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  163. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  164. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:199px; height:14px; ">혈액준비관리(간소화)</caption>
  165. </group>
  166. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  167. <group id="group2" style="left:0px; top:5px; width:1195px; height:35px; vertical-align:top; ">
  168. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:35px; "/>
  169. <caption id="caption2" class="search_name" style="left:3px; top:9px; width:91px; height:17px; ">조회일자 :</caption>
  170. <line id="line13" class="line_4" style="x1:1124px; y1:5px; x2:1124px; y2:27px; "/>
  171. <caption id="caption4" class="search_name" style="left:365px; top:10px; width:75px; height:17px; ">접수자 :</caption>
  172. <caption id="caption5" class="search_name" style="left:737px; top:9px; width:91px; height:17px; ">혈액번호 :</caption>
  173. <caption id="caption16" class="search_name" style="left:571px; top:9px; width:93px; height:17px; ">등록번호 :</caption>
  174. <caption id="caption3" class="search_no_b" style="left:217px; top:9px; width:15px; height:17px; ">~</caption>
  175. <button id="btn_ref" class="btn1_letter2" style="left:1136px; top:7px; width:56px; height:22px; ">
  176. <caption>조회</caption>
  177. <script type="javascript" ev:event="DOMActivate">
  178. <![CDATA[
  179. fAutoAcpt("N");
  180. fGetBloodPrcpList("btn");
  181. ]]>
  182. </script>
  183. </button>
  184. <input id="ipt_fromdd" ref="/root/hidden2/ref/reffromdd" class="input_s_essential" inputtype="date" style="left:89px; top:8px; width:91px; height:19px; "/>
  185. <input id="ipt_todd" ref="/root/hidden2/ref/reftodd" class="input_s_essential" inputtype="date" style="left:232px; top:8px; width:91px; height:19px; "/>
  186. <input id="ipt_fromtm" ref="/root/hidden2/ref/reffromtm" class="input_search" format="hh:nn" style="left:179px; top:8px; width:35px; height:19px; "/>
  187. <input id="ipt_totm" ref="/root/hidden2/ref/reftotm" class="input_search" format="hh:nn" style="left:322px; top:8px; width:35px; height:19px; "/>
  188. <input id="ipt_testpsn" ref="/root/hidden2/ref/testpsnid" class="input_search" style="left:438px; top:9px; width:64px; height:19px; "/>
  189. <input id="ipt_pid" ref="/root/hidden2/ref/pid" class="input_search" style="left:662px; top:8px; width:68px; height:19px; "/>
  190. <input id="ipt_bloodno" ref="/root/hidden2/ref/bloodno" class="input_search" style="left:827px; top:8px; width:68px; height:19px; "/>
  191. <output id="opt_testpsn" ref="/root/hidden2/ref/testpsnnm" class="output_fix" style="left:503px; top:9px; width:61px; height:19px; "/>
  192. <select id="chk_spclblod" ref="/root/hidden2/ref/spclblood" visibility="hidden" overflow="visible" appearance="full" style="left:901px; top:10px; width:70px; height:15px; border-style:none; ">
  193. <choices>
  194. <item>
  195. <label>특수혈액</label>
  196. <value>1</value>
  197. </item>
  198. </choices>
  199. <script type="javascript" ev:event="xforms-value-changed">
  200. <![CDATA[
  201. // 간호부전송 버튼 설정
  202. fSetNurseBtn();
  203. ]]>
  204. </script>
  205. </select>
  206. <button id="button89" class="btn5_letter7" style="left:978px; top:8px; width:97px; height:19px; ">
  207. <caption>자동접수 On</caption>
  208. <script type="javascript" ev:event="DOMActivate">
  209. <![CDATA[
  210. fTimer();
  211. ]]>
  212. </script>
  213. </button>
  214. <input id="input1" ref="/root/hidden2/autom" class="input_search" style="left:1076px; top:8px; width:24px; height:19px; "/>
  215. <caption id="caption8" class="search_no_b" style="left:1100px; top:8px; width:15px; height:17px; ">분</caption>
  216. </group>
  217. <import id="import1" src="../../../lis\tnsmngtweb\xrw\SMLBT80600_혈액준비관리상세(간소화)_경북.xrw" style="left:0px; top:45px; width:1193px; height:695px; "/>
  218. </group>
  219. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  220. <line id="line15" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  221. <button id="btn_prnt" class="btn3_letter5" style="left:0px; top:3px; width:92px; height:22px; ">
  222. <caption>프린터선택</caption>
  223. <script type="javascript" ev:event="DOMActivate">
  224. <![CDATA[
  225. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  226. if(count == 0) {
  227. model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  228. }
  229. modal("SPLLC90100" , "","","","","/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  230. ]]>
  231. </script>
  232. </button>
  233. <button id="button8" class="btn3_letter4" style="left:95px; top:3px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
  234. <caption>이력조회</caption>
  235. <script type="javascript" ev:event="DOMActivate">
  236. <![CDATA[
  237. //setParameter ( "SMMMO02500_cond", model.getvalue("/root/hidden2/ref/pid")+ "▩");
  238. //open ( "SMMMO02500" );
  239. if(model.getvalue("/root/hidden2/ref/pid") ==""){
  240. setParameter ( "SMMMO02500_cond", getPatientInfo("pid"));
  241. }else{
  242. setParameter ( "SMMMO02500_cond", model.getvalue("/root/hidden2/ref/pid"));
  243. }
  244. open ( "SMMMO02500" );
  245. ]]>
  246. </script>
  247. </button>
  248. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  249. <caption>초기화</caption>
  250. <script type="javascript" ev:event="DOMActivate">
  251. <![CDATA[
  252. fSetClear();
  253. ]]>
  254. </script>
  255. </button>
  256. <button id="btn_prep" class="btn4_letter4" style="left:985px; top:3px; width:80px; height:22px; ">
  257. <caption>준비완료</caption>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. fSetReady();
  261. ]]>
  262. </script>
  263. </button>
  264. <button id="button3" class="btn4_letter8" visibility="visible" style="left:854px; top:3px; width:128px; height:22px; ">
  265. <caption>이형혈액준비관리</caption>
  266. <script type="javascript" ev:event="DOMActivate">
  267. <![CDATA[
  268. model.setValue("/root/hidden2/popupyn", "Y");
  269. open("SMLBT10700_이형혈액준비관리(간소화).xrw", "", "", "", "", "/root/hidden2/popupyn", "/root/hidden2/popupyn");
  270. ]]>
  271. </script>
  272. </button>
  273. <button id="button1" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  274. <caption>접수</caption>
  275. <script type="javascript" ev:event="DOMActivate">
  276. <![CDATA[
  277. // 접수버튼 클릭시만 자동접수 타게
  278. fAutoAcpt("Y");
  279. ]]>
  280. </script>
  281. </button>
  282. <button id="button2" class="btn3_letter4" style="left:178px; top:3px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
  283. <caption>보관검체</caption>
  284. <script type="javascript" ev:event="DOMActivate">
  285. <![CDATA[
  286. // SPLBT10900_보관검체등록.xrw
  287. open ( "SPLBT10900" );
  288. //modal("SPLBT10900","","","","","/root/hidden/pid", "/root/hidden/pid");
  289. ]]>
  290. </script>
  291. </button>
  292. <object id="MediaPlayer" visibility="hidden" clsid="{6bf52a52-394a-11d3-b153-00c04f79faa6}" playCount="-1" style="left:730px; top:0px; width:40px; height:25px; border-style:none; "/>
  293. <select id="chk_alarmyn" ref="/root/hidden2/ref/alarmyn" appearance="full" voverflow="visible" style="left:780px; top:5px; width:70px; height:15px; border-style:none; ">
  294. <choices>
  295. <item>
  296. <label>알람사용</label>
  297. <value>Y</value>
  298. </item>
  299. </choices>
  300. </select>
  301. </group>
  302. <script type="javascript" ev:event="onkeypress">
  303. <![CDATA[
  304. fKeyEvent();
  305. ]]>
  306. </script>
  307. <caption id="caption1" style="left:270px; top:12px; width:55px; height:25px; font-size:12pt; font-weight:bold; border-color:#f3e1bf; border-width:1px; border-style:solid; ">보검</caption>
  308. <caption id="caption7" style="left:475px; top:12px; width:55px; height:25px; font-size:12pt; font-weight:bold; border-color:#f3e1bf; border-width:1px; border-style:solid; ">재고</caption>
  309. <caption id="cap_keep" ref="/root/hidden2/keepnoblodcnt/keepno" style="left:330px; top:12px; width:125px; height:25px; font-size:11pt; font-weight:bold; border-color:#f3e1bf; border-width:1px; border-style:solid; ">1</caption>
  310. <caption id="cap_blodcnt" ref="/root/hidden2/keepnoblodcnt/bno" style="left:535px; top:12px; width:65px; height:25px; font-size:14pt; font-weight:bold; border-color:#f3e1bf; border-width:1px; border-style:solid; ">1</caption>
  311. <caption id="caption9" visibility="hidden" style="left:903px; top:40px; width:183px; height:12px; font-size:8pt; color:#0000ff; vertical-align:top; ">▼ PC, LRSDP 는 체크하고 조회</caption>
  312. <group id="Group_idChk" style="left:466px; top:240px; width:280px; height:165px; background-color:#ff99cc; border-color:#5abaff; border-width:1px; border-style:solid; ">
  313. <caption id="caption10" style="left:19px; top:19px; width:242px; height:70px; font-size:18pt; font-weight:bold; ">접수자를 입력하세요</caption>
  314. <textarea id="ID_txt" overflow="hidden" style="left:34px; top:89px; width:195px; height:55px; font-size:22pt; ">
  315. <script type="javascript" ev:event="onkeypress">
  316. <![CDATA[
  317. if(event.keyCode == "13"){
  318. var I_txt = ID_txt.currentText;
  319. model.setValue("/root/hidden2/ref/testpsnid", (I_txt).toUpperCase());
  320. model.setValue("/root/hidden2/ref/testpsnid", model.getvalue("/root/hidden2/ref/testpsnid").replace("\n", ""));
  321. fGetTestPsn();
  322. if(model.getValue("/root/hidden2/ref/testpsnnm") == ""){
  323. }else{
  324. model.setFocus("ipt_pid");
  325. ipt_pid.selBegin = 0;
  326. ipt_pid.selEnd = ipt_pid.currentText.length;
  327. Group_idChk.visible = false;
  328. group4.disabled = false;
  329. }
  330. }
  331. ]]>
  332. </script>
  333. </textarea>
  334. <button id="button44" style="left:232px; top:119px; width:42px; height:25px; font-size:8pt; font-weight:bold; color:#003399; text-align:center; background-image:../../../lis\commonweb\images\btn_lis.gif; background-repeat:no-repeat; background-stretch:stretch; ">
  335. <caption>닫기</caption>
  336. <script type="javascript" ev:event="onclick">
  337. <![CDATA[
  338. Group_idChk.visible = false;
  339. ]]>
  340. </script>
  341. </button>
  342. </group>
  343. </xhtml:body>
  344. </xhtml:html>