SMLBS00700_혈액일지.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. * 제 목 : SMLBS00700_혈액일지.xrw
  4. * 설 명 : 혈액일지
  5. * 설 계 자 :
  6. * 작 성 자 : 김성희
  7. * 작 성 일 : 2009.10.28
  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/>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <bloddiary>
  20. <getbloddiary/>
  21. <getbloddetldiary/>
  22. </bloddiary>
  23. <iolist>
  24. <getiolist/>
  25. </iolist>
  26. </main>
  27. <send>
  28. <blodvol/>
  29. <rh/>
  30. <todd/>
  31. </send>
  32. <init>
  33. </init>
  34. <hidden>
  35. <ref>
  36. <todd/>
  37. <blodvol/>
  38. <rh/>
  39. </ref>
  40. </hidden>
  41. </root>
  42. </instance>
  43. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  45. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. fExeInitialize();
  50. ]]>
  51. </script>
  52. <script type="javascript">
  53. <![CDATA[
  54. // 초기화
  55. function fExeInitialize(){
  56. model.setValue("/root/hidden/ref/todd", getCurrentDate());
  57. model.setValue("/root/hidden/ref/blodvol", "0");
  58. model.setValue("/root/hidden/ref/rh", "");
  59. model.toggle("case1");
  60. model.resetInstanceNode("/root/main/blodlist/getblodlist");
  61. model.refresh();
  62. }
  63. // 혈액 일지
  64. function fGetBlodDiary(){
  65. //alert(switch1.selectedIndex);
  66. model.setValue("/root/send/todd", model.getValue("/root/hidden/ref/todd"));
  67. model.setValue("/root/send/blodvol", model.getValue("/root/hidden/ref/blodvol"));
  68. model.setValue("/root/send/rh" , model.getValue("/root/hidden/ref/rh"));
  69. //alert(model.getValue("/root/hidden/ref/rh"));
  70. if(switch1.selectedIndex=="0"){ // 일지
  71. submit("TRLBS00701");
  72. grd_blodlist.rebuildStyle();
  73. if(grd_blodlist.rows > 1){
  74. setRowStyle("grd_blodlist", "0", "금일재고", "blodkind", "equal"); // 0 - 붉으죽죽한색
  75. setRowStyle("grd_blodlist", "1", "현재고", "blodkind", "equal"); // 0 - 주황색
  76. }
  77. }else if(switch1.selectedIndex=="1"){ // 상세일지
  78. submit("TRLBS00702");
  79. grd_detllist.rebuildStyle();
  80. if(grd_detllist.rows > 1){
  81. setRowStyle("grd_detllist", "0", "금일재고", "blodkind", "equal"); // 0 - 붉으죽죽한색
  82. setRowStyle("grd_detllist", "1", "현재고", "blodkind", "equal"); // 0 - 붉으죽죽한색
  83. }
  84. }
  85. submit("TRLBS00703");
  86. }
  87. ]]>
  88. </script>
  89. <submission id="TRLBS00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/bloddiary/getbloddiary"/>
  90. <submission id="TRLBS00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/bloddiary/getbloddetldiary"/>
  91. <submission id="TRLBS00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/iolist/getiolist"/>
  92. </model>
  93. </xhtml:head>
  94. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  95. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  96. <group id="group2" style="left:0px; top:31px; width:1194px; height:711px; ">
  97. <group id="group1" style="left:0px; top:0px; width:1194px; height:35px; ">
  98. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  99. <button id="button3" class="btn1_letter2" navindex="4" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  100. <caption>조회</caption>
  101. <script type="javascript" ev:event="DOMActivate">
  102. <![CDATA[
  103. // 혈액일지
  104. fGetBlodDiary();
  105. ]]>
  106. </script>
  107. </button>
  108. <line id="line14" class="line_4" style="x1:1108px; y1:6px; x2:1108px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
  109. <caption id="caption23" class="search_name" style="left:15px; top:9px; width:90px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">조회일자 :</caption>
  110. <input id="ipt_todd" ref="/root/hidden/ref/todd" class="input_default" inputtype="date" style="left:105px; top:9px; width:100px; height:19px; "/>
  111. <select1 id="rdo_blodvol" ref="/root/hidden/ref/blodvol" class="radio_search" appearance="full" cellspacing="8" cols="3" overflow="visible" style="left:315px; top:10px; width:180px; height:16px; border-style:none; ">
  112. <choices>
  113. <item>
  114. <label>전체</label>
  115. <value>0</value>
  116. </item>
  117. <item>
  118. <label>320 ml</label>
  119. <value>320</value>
  120. </item>
  121. <item>
  122. <label>400 ml</label>
  123. <value>400</value>
  124. </item>
  125. </choices>
  126. <script type="javascript" ev:event="xforms-value-changed">
  127. <![CDATA[
  128. ]]>
  129. </script>
  130. </select1>
  131. <caption id="caption2" class="search_name" style="left:225px; top:9px; width:90px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">혈액용량 :</caption>
  132. <select id="chk_rh" ref="/root/hidden/ref/rh" overflow="visible" appearance="full" style="left:505px; top:10px; width:50px; height:16px; border-style:none; ">
  133. <choices>
  134. <item>
  135. <label>Rh-</label>
  136. <value>1</value>
  137. </item>
  138. </choices>
  139. </select>
  140. </group>
  141. <switch id="switch1" style="left:0px; top:165px; width:1194px; height:505px; ">
  142. <case id="case_blodlist">
  143. <caption id="caption32" class="tit_2" style="left:10px; top:5px; width:131px; height:13px; ">혈액 일지</caption>
  144. <line id="line19" class="line_1" style="x1:5px; y1:20px; x2:1183px; y2:20px; "/>
  145. <datagrid id="grd_blodlist" nodeset="/root/main/bloddiary/getbloddiary" backcoloralternate="transparent" caption="구분^계^W/B^PRC^P/F PRC^FFP^PC^LRSDP^Cryo^자가^WRC^HPC^DGI^FP^seq" colsep="^" colwidth="100, 70, 70, 70, 80, 70, 70, 70, 70, 70, 70, 70, 70, 70, 0" dataheight="18" focuscolor="#99ccff" mergecellsfixedrows="bycolrec" rowheight="18" rowsep="|" selectionmode="free" style="left:5px; top:25px; width:1178px; height:470px; ">
  146. <col ref="blodkind" style="font-weight:bold; "/>
  147. <col ref="hap" style="font-weight:bold; "/>
  148. <col ref="wb"/>
  149. <col ref="prc"/>
  150. <col ref="pfprc"/>
  151. <col ref="ffp"/>
  152. <col ref="pc"/>
  153. <col ref="lrsdp"/>
  154. <col ref="cryo"/>
  155. <col ref="auto"/>
  156. <col ref="wrc"/>
  157. <col ref="hpc"/>
  158. <col ref="dgi"/>
  159. <col ref="fp"/>
  160. <col ref="seq" style="font-weight:bold; "/>
  161. </datagrid>
  162. </case>
  163. <case id="case_detllist" selected="true">
  164. <caption id="caption1" class="tit_2" style="left:10px; top:5px; width:131px; height:13px; ">혈액 상세 일지</caption>
  165. <datagrid id="grd_detllist" nodeset="/root/main/bloddiary/getbloddetldiary" caption="구분^계^W/B^W/B^W/B^W/B^PRC^PRC^PRC^PRC^P/F PRC^P/F PRC^P/F PRC^P/F PRC^FFP^FFP^FFP^FFP^PC^PC^PC^PC^LRSDP^LRSDP^LRSDP^LRSDP^Cryo^Cryo^Cryo^Cryo^자가^자가^자가^자가^washed RBC^washed RBC^washed RBC^washed RBC^HPC^HPC^HPC^HPC^DGI^DGI^DGI^DGI^FP^FP^FP^FP^seq|구분^계^A^B^O^AB^A^B^O^AB^A^B^O^AB^A^B^O^AB^A^B^O^AB^A^B^O^AB^A^B^O^AB^A^B^O^AB^A^B^O^AB^A^B^O^AB^A^B^O^AB^A^B^O^AB^seq" colsep="^" colwidth="90, 70, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,0" frozencols="2" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:24px; width:1178px; height:471px; ">
  166. <col ref="blodkind" style="font-weight:bold; "/>
  167. <col ref="hap" style="font-weight:bold; "/>
  168. <col ref="wbA"/>
  169. <col ref="wbB"/>
  170. <col ref="wbO"/>
  171. <col ref="wbAB"/>
  172. <col ref="prcA"/>
  173. <col ref="prcB"/>
  174. <col ref="prcO"/>
  175. <col ref="prcAB"/>
  176. <col ref="pfprcA"/>
  177. <col ref="pfprcB"/>
  178. <col ref="pfprcO"/>
  179. <col ref="pfprcAB"/>
  180. <col ref="ffpA"/>
  181. <col ref="ffpB"/>
  182. <col ref="ffpO"/>
  183. <col ref="ffpAB"/>
  184. <col ref="pcA"/>
  185. <col ref="pcB"/>
  186. <col ref="pcO"/>
  187. <col ref="pcAB"/>
  188. <col ref="lrsdpA"/>
  189. <col ref="lrsdpB"/>
  190. <col ref="lrsdpO"/>
  191. <col ref="lrsdpAB"/>
  192. <col ref="cryoA"/>
  193. <col ref="cryoB"/>
  194. <col ref="cryoO"/>
  195. <col ref="cryoAB"/>
  196. <col ref="autoA"/>
  197. <col ref="autoB"/>
  198. <col ref="autoO"/>
  199. <col ref="autoAB"/>
  200. <col ref="wrcA"/>
  201. <col ref="wrcB"/>
  202. <col ref="wrcO"/>
  203. <col ref="wrcAB"/>
  204. <col ref="hpcA"/>
  205. <col ref="hpcB"/>
  206. <col ref="hpcO"/>
  207. <col ref="hpcAB"/>
  208. <col ref="dgiA"/>
  209. <col ref="dgiB"/>
  210. <col ref="dgiO"/>
  211. <col ref="dgiAB"/>
  212. <col ref="fpA"/>
  213. <col ref="fpB"/>
  214. <col ref="fpO"/>
  215. <col ref="fpAB"/>
  216. <col ref="seq"/>
  217. </datagrid>
  218. <line id="line1" class="line_1" style="x1:5px; y1:20px; x2:1183px; y2:21px; "/>
  219. </case>
  220. </switch>
  221. <button id="button1" class="btn_sw" group="tab" selected="true" style="left:0px; top:144px; width:70px; height:22px; ">
  222. <caption>혈액일지</caption>
  223. <script type="javascript" ev:event="DOMActivate">
  224. <![CDATA[
  225. model.toggle("case_blodlist");
  226. ]]>
  227. </script>
  228. </button>
  229. <button id="button2" class="btn_sw" group="tab" style="left:70px; top:144px; width:100px; height:22px; ">
  230. <caption>혈액상세일지</caption>
  231. <script type="javascript" ev:event="DOMActivate">
  232. <![CDATA[
  233. model.toggle("case_detllist");
  234. ]]>
  235. </script>
  236. </button>
  237. <caption id="caption3" class="tit_2" style="left:10px; top:45px; width:131px; height:14px; ">교환입출고</caption>
  238. <line id="line2" class="line_1" style="x1:5px; y1:60px; x2:1183px; y2:60px; "/>
  239. <datagrid id="datagrid1" nodeset="/root/main/iolist/getiolist" backcoloralternate="transparent" caption="W/B^PRC^P/F PRC^FFP^PC^LRSDP^Cryo^자가^WRC^HPC^DGI^FP" colsep="^" colwidth="70, 70, 80, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70" dataheight="18" focuscolor="#99ccff" mergecellsfixedrows="bycolrec" rowheight="18" rowsep="|" selectionmode="free" style="left:5px; top:65px; width:1178px; height:50px; ">
  240. <col ref="wb"/>
  241. <col ref="prc"/>
  242. <col ref="pfprc"/>
  243. <col ref="ffp"/>
  244. <col ref="pc"/>
  245. <col ref="lrsdp"/>
  246. <col ref="cryo"/>
  247. <col ref="auto"/>
  248. <col ref="wrc"/>
  249. <col ref="hpc"/>
  250. <col ref="dgi"/>
  251. <col ref="fp"/>
  252. </datagrid>
  253. <button id="btn_excel" class="btn2_letter2" style="left:1140px; top:145px; width:42px; height:19px; ">
  254. <caption>엑셀</caption>
  255. <script type="javascript" ev:event="DOMActivate">
  256. <![CDATA[
  257. //alert(switch1.selectedIndex);
  258. if(switch1.selectedIndex=="0"){ // 일지
  259. var filename = "혈액일지_"+model.getValue("/root/hidden/ref/todd");
  260. var excelFilename = window.fileDialog("save",",",false,filename,"xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls");
  261. if(excelFilename != "") {
  262. grd_blodlist.saveExcel(excelFilename);
  263. }
  264. }else if(switch1.selectedIndex=="1"){ // 상세일지
  265. var filename = "혈액상세일지_"+model.getValue("/root/hidden/ref/todd");
  266. var excelFilename = window.fileDialog("save",",",false,filename,"xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls");
  267. if(excelFilename != "") {
  268. grd_detllist.saveExcel(excelFilename);
  269. }
  270. }
  271. ]]>
  272. </script>
  273. </button>
  274. </group>
  275. <group id="grp_btn" style="left:0px; top:3px; width:1195px; height:27px; ">
  276. <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  277. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  278. <caption>초기화</caption>
  279. <script type="javascript" ev:event="DOMActivate">
  280. <![CDATA[
  281. fExeInitialize();
  282. ]]>
  283. </script>
  284. </button>
  285. </group>
  286. </group>
  287. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  288. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:15px; ">혈액일지</caption>
  289. </group>
  290. </xhtml:body>
  291. </xhtml:html>