SMLBP00500_환자별수혈내역조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLBP00500_환자별수혈내역조회.xrw
  4. * 설 명 : 환자별수혈내역조회
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 박정은
  7. * 작 성 일 : 2007.06.25
  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>환자별수혈내역조회</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <!--
  20. <tnslist>
  21. <pid>12345678</pid>
  22. <nm>나상실</nm>
  23. <sexage>F/27</sexage>
  24. <orddept>진료과</orddept>
  25. <wardroom>A병동</wardroom>
  26. <hopedt>200701100900</hopedt>
  27. <tnsgbn>일반(수혈)</tnsgbn>
  28. <comprod>Red blood cell(RBC)</comprod>
  29. <abo>B+</abo>
  30. <reqcnt>2</reqcnt>
  31. <pseudelive>0</pseudelive>
  32. <delivecnt>2</delivecnt>
  33. <rtncnt>0</rtncnt>
  34. <abncnt>0</abncnt>
  35. <btype/>
  36. <blodno/>
  37. <gbn>접수</gbn>
  38. </tnslist>
  39. -->
  40. <getTnsReqList>
  41. <lvl/>
  42. <pid/>
  43. <patnm/>
  44. <sexage/>
  45. <orddeptnm/>
  46. <wardroom/>
  47. <prcphopedd/>
  48. <tnsreqacptflag/>
  49. <blodcomnm/>
  50. <req/>
  51. <ccnt/>
  52. <dcnt/>
  53. <rcnt/>
  54. <xcnt/>
  55. <btype/>
  56. <blodno/>
  57. <stat/>
  58. </getTnsReqList>
  59. </main>
  60. <send>
  61. <pid/>
  62. <hopefromdd/>
  63. <hopetodd/>
  64. <tnsflag/>
  65. <tnsstat/>
  66. </send>
  67. <init>
  68. </init>
  69. <hidden>
  70. <ref>
  71. <pid/>
  72. <hopefromdd/>
  73. <hopetodd/>
  74. <tnsflag>0</tnsflag>
  75. <tnsstat>
  76. <stat1/>
  77. <stat2/>
  78. <stat3/>
  79. <stat4/>
  80. <stat5/>
  81. <stat6/>
  82. <stat7/>
  83. <value/>
  84. </tnsstat>
  85. </ref>
  86. </hidden>
  87. </root>
  88. </instance>
  89. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  92. <script type="javascript" ev:event="xforms-ready">
  93. <![CDATA[
  94. var toDay = getCurrentDate();
  95. model.setValue("/root/hidden/ref/hopefromdd", toDay);
  96. model.setValue("/root/hidden/ref/hopetodd", toDay);
  97. grp_ref.refresh();
  98. ]]>
  99. </script>
  100. <submission id="TRLBP00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getTnsReqList"/>
  101. </model>
  102. <script type="javascript">
  103. <![CDATA[
  104. //키이벤트 엔터키 입력시
  105. function fKeyEvent(){
  106. if(event.keyCode == "13"){
  107. // 검사자 바코드 리딩시
  108. if(event.target == "ipt_pid"){
  109. model.setvalue("/root/hidden/ref/pid", (ipt_pid.currentText).toUpperCase());
  110. fGetTnsReqList();
  111. ipt_pid.selBegin = 0;
  112. ipt_pid.selEnd = ipt_pid.currentText.length;
  113. }
  114. }
  115. }
  116. // 초기화
  117. function fSetInit() {
  118. model.reset();
  119. }
  120. // 수혈의뢰현황조회
  121. function fGetTnsReqList(){
  122. model.setValue("/root/send/pid", model.getValue("/root/hidden/ref/pid")); // 등록번호
  123. model.setValue("/root/send/hopefromdd", model.getValue("/root/hidden/ref/hopefromdd")); // 수혈희망시작일
  124. model.setValue("/root/send/hopetodd", model.getValue("/root/hidden/ref/hopetodd")); // 수혈희망종료일
  125. model.setValue("/root/send/tnsflag", model.getValue("/root/hidden/ref/tnsflag")); // 상태
  126. model.setValue("/root/send/tnsstat", model.getValue("/root/hidden/ref/tnsstat/value")); // 상태
  127. //alert("tnsstat= " + model.getValue("/root/hidden/ref/tnsstat/value"));
  128. //alert("tnsflag= " + model.getValue("/root/hidden/ref/tnsflag"));
  129. //if(model.getValue("/root/send/tnsstat")==""){
  130. // alert("수혈상태를 하나이상 선택하십시오");
  131. // return;
  132. //}
  133. if(submit("TRLBP00501")==true){
  134. //fSetMakeTree();
  135. //grd_tnslist.rebuild();
  136. // 트리 만들고 + 하위노드 접기
  137. setTree(grd_tnslist, 1, 1, true);
  138. }
  139. }
  140. // 수혈상태 변경
  141. function fSetTnsStat(Ref){
  142. //alert("Ref= " + Ref);
  143. var tstat = "";
  144. if(chk_a.value == "1"){
  145. tstat += "'1'";
  146. }
  147. if(chk_b.value == "2"){
  148. if(tstat == ""){
  149. tstat += "'2'";
  150. }else{
  151. tstat += ",'2'";
  152. }
  153. }
  154. if(chk_c.value == "3"){
  155. if(tstat == ""){
  156. tstat += "'3'";
  157. }else{
  158. tstat += ",'3'";
  159. }
  160. }
  161. if(chk_d.value == "4"){
  162. if(tstat == ""){
  163. tstat += "'4'";
  164. }else{
  165. tstat += ",'4'";
  166. }
  167. }
  168. if(chk_e.value == "5"){
  169. if(tstat == ""){
  170. tstat += "'5'";
  171. }else{
  172. tstat += ",'5'";
  173. }
  174. }
  175. if(chk_f.value == "6"){
  176. if(tstat == ""){
  177. tstat += "'6'";
  178. }else{
  179. tstat += ",'6'";
  180. }
  181. }
  182. if(chk_g.value == "7"){
  183. if(tstat == ""){
  184. tstat += "'7'";
  185. }else{
  186. tstat += ",'7'";
  187. }
  188. }
  189. //alert("tstat= " + tstat);
  190. model.setValue("/root/hidden/ref/tnsstat/value", tstat);
  191. }
  192. // 트리구조 만들기 사용안함
  193. function fSetMakeTree(){
  194. for(var i = 1; i<grd_tnslist.rows; i++) {
  195. grd_tnslist.IsSubtotal(i) = true; //그리드의 모든 row를 subtotal 속성을 가진 row로 변경 해주셔야 합니다..
  196. grd_tnslist.outlinelevel(i) = grd_tnslist.TextMatrix(i, 1); //인스턴스H_DEPTH 값임 (이넘이 그리드에서 각 로우가 트리상 어떤 Depth를 갖는지 결정하는 넘입니다..)
  197. }
  198. grd_tnslist.OutlineCol = 1; // 트리 만들 col
  199. grd_tnslist.OutlineBar = 4; //+ , - , 사각형 안보이게 하려면 0 으로 세팅 //4가 정상
  200. grd_tnslist.TreeColor = "gray";
  201. }
  202. // 엑셀 저장
  203. function fExeExcel(pGridId) {
  204. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  205. if (fileName != "")
  206. {
  207. pGridId.saveExcel(fileName);
  208. }
  209. }
  210. ]]>
  211. </script>
  212. </xhtml:head>
  213. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  214. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; "/>
  215. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  216. <caption id="caption1" class="tit_2" style="left:5px; top:80px; width:145px; height:14px; ">수혈의뢰현황 목록</caption>
  217. <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1194px; y2:95px; "/>
  218. <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:74px; width:42px; height:19px; ">
  219. <caption>엑셀</caption>
  220. <script type="javascript" ev:event="DOMActivate">
  221. <![CDATA[
  222. fExeExcel(grd_tnslist);
  223. ]]>
  224. </script>
  225. </button>
  226. <group id="grp_ref" style="left:0px; top:10px; width:1195px; height:60px; ">
  227. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:1195px; height:60px; "/>
  228. <caption id="caption9" class="search_name" style="left:15px; top:34px; width:89px; height:17px; ">수혈상태 :</caption>
  229. <line id="line2" class="line_4" style="x1:1109px; y1:8px; x2:1109px; y2:52px; "/>
  230. <caption id="caption4" class="search_name" style="left:16px; top:9px; width:99px; height:17px; ">등록번호 :</caption>
  231. <caption id="caption10" class="search_name" style="left:630px; top:9px; width:99px; height:17px; ">수혈구분 :</caption>
  232. <caption id="caption11" class="search_name" style="left:256px; top:9px; width:112px; height:17px; ">수혈희망일자 :</caption>
  233. <input id="input7" ref="/root/hidden/ref/hopefromdd" class="input_s_essential" inputtype="date" style="left:380px; top:8px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  234. <input id="input8" ref="/root/hidden/ref/hopetodd" class="input_s_essential" inputtype="date" style="left:496px; top:8px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  235. <caption id="caption12" class="search_no_b" style="left:482px; top:10px; width:15px; height:17px; vertical-align:middle; ">~</caption>
  236. <select1 id="radio1" ref="/root/hidden/ref/tnsflag" appearance="full" cellspacing="20" cols="4" overflow="visible" style="left:730px; top:10px; width:290px; height:13px; border-style:none; ">
  237. <choices>
  238. <item>
  239. <label>All</label>
  240. <value>0</value>
  241. </item>
  242. <item>
  243. <label>준비</label>
  244. <value>1</value>
  245. </item>
  246. <item>
  247. <label>수혈</label>
  248. <value>2</value>
  249. </item>
  250. <item>
  251. <label>교차미필</label>
  252. <value>3</value>
  253. </item>
  254. </choices>
  255. </select1>
  256. <button id="btn_ref" class="btn1_letter2" style="left:1124px; top:19px; width:56px; height:22px; ">
  257. <caption>조회</caption>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. fGetTnsReqList();
  261. ]]>
  262. </script>
  263. </button>
  264. <select id="chk_a" ref="/root/hidden/ref/tnsstat/stat1" class="checkbox_search" overflow="visible" appearance="full" style="left:109px; top:34px; width:55px; height:15px; border-style:none; ">
  265. <choices>
  266. <item>
  267. <label>접수</label>
  268. <value>1</value>
  269. </item>
  270. </choices>
  271. <script type="javascript" ev:event="xforms-value-changed">
  272. <![CDATA[
  273. fSetTnsStat();
  274. ]]>
  275. </script>
  276. </select>
  277. <select id="chk_b" ref="/root/hidden/ref/tnsstat/stat2" class="checkbox_search" overflow="visible" appearance="full" style="left:169px; top:34px; width:115px; height:15px; border-style:none; ">
  278. <choices>
  279. <item>
  280. <label>가출고 전 검사중</label>
  281. <value>2</value>
  282. </item>
  283. </choices>
  284. <script type="javascript" ev:event="xforms-value-changed">
  285. <![CDATA[
  286. fSetTnsStat();
  287. ]]>
  288. </script>
  289. </select>
  290. <select id="chk_c" ref="/root/hidden/ref/tnsstat/stat3" class="checkbox_search" overflow="visible" appearance="full" style="left:290px; top:34px; width:60px; height:15px; border-style:none; ">
  291. <choices>
  292. <item>
  293. <label>가출고</label>
  294. <value>3</value>
  295. </item>
  296. </choices>
  297. <script type="javascript" ev:event="xforms-value-changed">
  298. <![CDATA[
  299. fSetTnsStat();
  300. ]]>
  301. </script>
  302. </select>
  303. <select id="chk_d" ref="/root/hidden/ref/tnsstat/stat4" class="checkbox_search" overflow="visible" appearance="full" style="left:356px; top:34px; width:55px; height:15px; border-style:none; ">
  304. <choices>
  305. <item>
  306. <label>대기</label>
  307. <value>4</value>
  308. </item>
  309. </choices>
  310. <script type="javascript" ev:event="xforms-value-changed">
  311. <![CDATA[
  312. fSetTnsStat();
  313. ]]>
  314. </script>
  315. </select>
  316. <select id="chk_e" ref="/root/hidden/ref/tnsstat/stat5" class="checkbox_search" overflow="visible" appearance="full" style="left:415px; top:34px; width:55px; height:15px; border-style:none; ">
  317. <choices>
  318. <item>
  319. <label>출고</label>
  320. <value>5</value>
  321. </item>
  322. </choices>
  323. <script type="javascript" ev:event="xforms-value-changed">
  324. <![CDATA[
  325. fSetTnsStat();
  326. ]]>
  327. </script>
  328. </select>
  329. <select id="chk_f" ref="/root/hidden/ref/tnsstat/stat6" class="checkbox_search" overflow="visible" appearance="full" style="left:475px; top:34px; width:55px; height:15px; border-style:none; ">
  330. <choices>
  331. <item>
  332. <label>반납</label>
  333. <value>6</value>
  334. </item>
  335. </choices>
  336. <script type="javascript" ev:event="xforms-value-changed">
  337. <![CDATA[
  338. fSetTnsStat();
  339. ]]>
  340. </script>
  341. </select>
  342. <select id="chk_g" ref="/root/hidden/ref/tnsstat/stat7" class="checkbox_search" overflow="visible" appearance="full" style="left:535px; top:34px; width:55px; height:15px; border-style:none; ">
  343. <choices>
  344. <item>
  345. <label>폐기</label>
  346. <value>7</value>
  347. </item>
  348. </choices>
  349. <script type="javascript" ev:event="xforms-value-changed">
  350. <![CDATA[
  351. fSetTnsStat();
  352. ]]>
  353. </script>
  354. </select>
  355. <input id="ipt_pid" ref="/root/hidden/ref/pid" class="input_s_essential" style="left:107px; top:7px; width:100px; height:19px; ">
  356. <script type="javascript" ev:event="onkeypress">
  357. <![CDATA[
  358. fKeyEvent();
  359. ]]>
  360. </script>
  361. </input>
  362. </group>
  363. <datagrid id="grd_tnslist" nodeset="/root/main/getTnsReqList" class="datagrid2" caption="레벨^등록번호^성명^SexAge^진료과^병동/병실^수혈희망일^수혈구분^성분제제^의뢰&#xA;수량^가출고&#xA;수량^출고&#xA;수량^반납&#xA;수량^폐기&#xA;수량^혈액형^혈액번호^구분" colsep="^" colwidth="25, 75, 70, 50, 60, 70, 100, 80, 130, 50, 50, 50, 50, 50, 60, 80, 60" dataheight="23" defaultrows="1" extendlastcol="scroll" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="40" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:100px; width:1194px; height:631px; ">
  364. <col ref="lvl"/>
  365. <col ref="pid"/>
  366. <col ref="patnm"/>
  367. <col ref="sexage"/>
  368. <col ref="orddeptnm"/>
  369. <col ref="wardroom"/>
  370. <col ref="prcphopedd" format="yyyy-mm-dd"/>
  371. <col ref="tnsreqacptflag"/>
  372. <col checkvalue="1,0" ref="blodcomnm"/>
  373. <col ref="req" format="yyyy-mm-dd"/>
  374. <col ref="ccnt" format="yyyy-mm-dd"/>
  375. <col ref="dcnt"/>
  376. <col ref="rcnt"/>
  377. <col ref="xcnt"/>
  378. <col ref="btype"/>
  379. <col ref="blodno"/>
  380. <col ref="stat"/>
  381. </datagrid>
  382. </group>
  383. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  384. <line id="line15" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  385. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  386. <caption>초기화</caption>
  387. <script type="javascript" ev:event="onclick">
  388. <![CDATA[
  389. fSetInit();
  390. ]]>
  391. </script>
  392. </button>
  393. </group>
  394. <group id="group5" style="left:0px; top:0px; width:1195px; height:13px; ">
  395. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">환자별수혈내역조회</caption>
  396. </group>
  397. </xhtml:body>
  398. </xhtml:html>