123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- * 제 목 : SMLBS00700_혈액일지.xrw
- * 설 명 : 혈액일지
- * 설 계 자 :
- * 작 성 자 : 김성희
- * 작 성 일 : 2009.10.28
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title/>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <bloddiary>
- <getbloddiary/>
- <getbloddetldiary/>
- </bloddiary>
- <iolist>
- <getiolist/>
- </iolist>
- </main>
- <send>
- <blodvol/>
- <rh/>
- <todd/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <todd/>
- <blodvol/>
- <rh/>
- </ref>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- // 초기화
- function fExeInitialize(){
-
- model.setValue("/root/hidden/ref/todd", getCurrentDate());
-
- model.setValue("/root/hidden/ref/blodvol", "0");
- model.setValue("/root/hidden/ref/rh", "");
-
- model.toggle("case1");
-
- model.resetInstanceNode("/root/main/blodlist/getblodlist");
- model.refresh();
-
- }
-
- // 혈액 일지
- function fGetBlodDiary(){
- //alert(switch1.selectedIndex);
- model.setValue("/root/send/todd", model.getValue("/root/hidden/ref/todd"));
-
- model.setValue("/root/send/blodvol", model.getValue("/root/hidden/ref/blodvol"));
- model.setValue("/root/send/rh" , model.getValue("/root/hidden/ref/rh"));
-
- //alert(model.getValue("/root/hidden/ref/rh"));
-
- if(switch1.selectedIndex=="0"){ // 일지
-
- submit("TRLBS00701");
-
- grd_blodlist.rebuildStyle();
- if(grd_blodlist.rows > 1){
- setRowStyle("grd_blodlist", "0", "금일재고", "blodkind", "equal"); // 0 - 붉으죽죽한색
- setRowStyle("grd_blodlist", "1", "현재고", "blodkind", "equal"); // 0 - 주황색
- }
- }else if(switch1.selectedIndex=="1"){ // 상세일지
-
- submit("TRLBS00702");
-
- grd_detllist.rebuildStyle();
- if(grd_detllist.rows > 1){
- setRowStyle("grd_detllist", "0", "금일재고", "blodkind", "equal"); // 0 - 붉으죽죽한색
- setRowStyle("grd_detllist", "1", "현재고", "blodkind", "equal"); // 0 - 붉으죽죽한색
- }
- }
-
- submit("TRLBS00703");
- }
-
- ]]>
- </script>
- <submission id="TRLBS00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/bloddiary/getbloddiary"/>
- <submission id="TRLBS00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/bloddiary/getbloddetldiary"/>
- <submission id="TRLBS00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/iolist/getiolist"/>
- </model>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:31px; width:1194px; height:711px; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <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; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 혈액일지
- fGetBlodDiary();
- ]]>
- </script>
- </button>
- <line id="line14" class="line_4" style="x1:1108px; y1:6px; x2:1108px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
- <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>
- <input id="ipt_todd" ref="/root/hidden/ref/todd" class="input_default" inputtype="date" style="left:105px; top:9px; width:100px; height:19px; "/>
- <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; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>320 ml</label>
- <value>320</value>
- </item>
- <item>
- <label>400 ml</label>
- <value>400</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
-
- ]]>
- </script>
- </select1>
- <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>
- <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; ">
- <choices>
- <item>
- <label>Rh-</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- </group>
- <switch id="switch1" style="left:0px; top:165px; width:1194px; height:505px; ">
- <case id="case_blodlist">
- <caption id="caption32" class="tit_2" style="left:10px; top:5px; width:131px; height:13px; ">혈액 일지</caption>
- <line id="line19" class="line_1" style="x1:5px; y1:20px; x2:1183px; y2:20px; "/>
- <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; ">
- <col ref="blodkind" style="font-weight:bold; "/>
- <col ref="hap" style="font-weight:bold; "/>
- <col ref="wb"/>
- <col ref="prc"/>
- <col ref="pfprc"/>
- <col ref="ffp"/>
- <col ref="pc"/>
- <col ref="lrsdp"/>
- <col ref="cryo"/>
- <col ref="auto"/>
- <col ref="wrc"/>
- <col ref="hpc"/>
- <col ref="dgi"/>
- <col ref="fp"/>
- <col ref="seq" style="font-weight:bold; "/>
- </datagrid>
- </case>
- <case id="case_detllist" selected="true">
- <caption id="caption1" class="tit_2" style="left:10px; top:5px; width:131px; height:13px; ">혈액 상세 일지</caption>
- <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; ">
- <col ref="blodkind" style="font-weight:bold; "/>
- <col ref="hap" style="font-weight:bold; "/>
- <col ref="wbA"/>
- <col ref="wbB"/>
- <col ref="wbO"/>
- <col ref="wbAB"/>
- <col ref="prcA"/>
- <col ref="prcB"/>
- <col ref="prcO"/>
- <col ref="prcAB"/>
- <col ref="pfprcA"/>
- <col ref="pfprcB"/>
- <col ref="pfprcO"/>
- <col ref="pfprcAB"/>
- <col ref="ffpA"/>
- <col ref="ffpB"/>
- <col ref="ffpO"/>
- <col ref="ffpAB"/>
- <col ref="pcA"/>
- <col ref="pcB"/>
- <col ref="pcO"/>
- <col ref="pcAB"/>
- <col ref="lrsdpA"/>
- <col ref="lrsdpB"/>
- <col ref="lrsdpO"/>
- <col ref="lrsdpAB"/>
- <col ref="cryoA"/>
- <col ref="cryoB"/>
- <col ref="cryoO"/>
- <col ref="cryoAB"/>
- <col ref="autoA"/>
- <col ref="autoB"/>
- <col ref="autoO"/>
- <col ref="autoAB"/>
- <col ref="wrcA"/>
- <col ref="wrcB"/>
- <col ref="wrcO"/>
- <col ref="wrcAB"/>
- <col ref="hpcA"/>
- <col ref="hpcB"/>
- <col ref="hpcO"/>
- <col ref="hpcAB"/>
- <col ref="dgiA"/>
- <col ref="dgiB"/>
- <col ref="dgiO"/>
- <col ref="dgiAB"/>
- <col ref="fpA"/>
- <col ref="fpB"/>
- <col ref="fpO"/>
- <col ref="fpAB"/>
- <col ref="seq"/>
- </datagrid>
- <line id="line1" class="line_1" style="x1:5px; y1:20px; x2:1183px; y2:21px; "/>
- </case>
- </switch>
- <button id="button1" class="btn_sw" group="tab" selected="true" style="left:0px; top:144px; width:70px; height:22px; ">
- <caption>혈액일지</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_blodlist");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn_sw" group="tab" style="left:70px; top:144px; width:100px; height:22px; ">
- <caption>혈액상세일지</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_detllist");
- ]]>
- </script>
- </button>
- <caption id="caption3" class="tit_2" style="left:10px; top:45px; width:131px; height:14px; ">교환입출고</caption>
- <line id="line2" class="line_1" style="x1:5px; y1:60px; x2:1183px; y2:60px; "/>
- <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; ">
- <col ref="wb"/>
- <col ref="prc"/>
- <col ref="pfprc"/>
- <col ref="ffp"/>
- <col ref="pc"/>
- <col ref="lrsdp"/>
- <col ref="cryo"/>
- <col ref="auto"/>
- <col ref="wrc"/>
- <col ref="hpc"/>
- <col ref="dgi"/>
- <col ref="fp"/>
- </datagrid>
- <button id="btn_excel" class="btn2_letter2" style="left:1140px; top:145px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //alert(switch1.selectedIndex);
- if(switch1.selectedIndex=="0"){ // 일지
- var filename = "혈액일지_"+model.getValue("/root/hidden/ref/todd");
- var excelFilename = window.fileDialog("save",",",false,filename,"xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls");
-
- if(excelFilename != "") {
- grd_blodlist.saveExcel(excelFilename);
- }
- }else if(switch1.selectedIndex=="1"){ // 상세일지
- var filename = "혈액상세일지_"+model.getValue("/root/hidden/ref/todd");
- var excelFilename = window.fileDialog("save",",",false,filename,"xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls");
-
- if(excelFilename != "") {
- grd_detllist.saveExcel(excelFilename);
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:3px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- </button>
- </group>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:15px; ">혈액일지</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|