123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLBP02200_입원환자기간별혈액분출현황.xrw
- * 설 명 : 입원환자 기간별 혈액분출현황
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2008-11-04
- * 수정이력 :
- * 기 타 :
- -->
- <?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>입원환자 기간별 혈액분출현황</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <getinddpatlist>
- <pid/>
- <hngnm/>
- <indd/>
- <dschgbn/>
- <dept/>
- <dcnt/>
- </getinddpatlist>
- <getpidinfo>
- <getpidbloodlist>
- <blodno/>
- <blodcomnm/>
- <btype/>
- <reqqty/>
- <deliveqty/>
- <prcpdt/>
- <prepblodseqno/>
- <delivedt/>
- <stat/>
- <roomcd/>
- <orddept/>
- </getpidbloodlist>
- <getpiddelivery>
- <blodcomnm/>
- <reqqty/>
- <deliveqty/>
- <cmqty/>
- <abnqty/>
- <rtnqty/>
- <rtnqty2/>
- <prepqty/>
- </getpiddelivery>
- <getpidcmtest>
- <blodcomnm/>
- <reqqty/>
- <cmtestqty/>
- </getpidcmtest>
- <getpidabnblood>
- <blodcomnm/>
- <reqqty/>
- <abnqty/>
- </getpidabnblood>
- <getpidrtnblood>
- <blodcomnm/>
- <reqqty/>
- <rtnqty/>
- </getpidrtnblood>
- </getpidinfo>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <pid/>
- <dschgbn/>
- <indd/>
- </send>
- <init>
- </init>
- <hidden>
- <refparam>
- <startdd/>
- <enddd/>
- <pid/>
- <dschgbn/>
- </refparam>
- <report>
- <getpidbloodlist/>
- <getpiddelivery/>
- <patinfo>
- <pid/>
- <patnm/>
- <indd/>
- <enddd/>
- <dept/>
- </patinfo>
- </report>
- </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="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <submission id="TRLBP02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getinddpatlist"/>
- <submission id="TRLBP02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getpidinfo"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 초기화
- function fSetInit(){
-
- model.setvalue("/root/hidden/refparam/startdd", getCurrentDate());
- model.setvalue("/root/hidden/refparam/enddd", getCurrentDate());
- model.setValue("/root/hidden/refparam/pid", "");
- model.setValue("/root/hidden/refparam/dschgbn", "");
-
- model.removeNodeset("/root/main/getinddpatlist"); // 환자목록 초기화
- model.removeNodeset("/root/main/getpidinfo/getpidbloodlist"); // 혈액분출 현황 초기화
- model.removeNodeset("/root/main/getpidinfo/getpiddelivery"); // 혈액분출 수량조회 초기화
-
- if(getPatientInfo("pid") != ""){
- delPatientInfos(); //환자정보 전체 삭제
- }
-
- model.refresh();
-
- }
-
-
- // 입원환자 목록 조회
- function fGetInddPatlist(){
- if(model.getValue("/root/hidden/refparam/startdd") =="" || model.getValue("/root/hidden/refparam/enddd")==""){
- alert("입원기간을 입력하십시오.");
- return;
- }
-
- model.setValue("/root/send/fromdd", model.getValue("/root/hidden/refparam/startdd"));
- model.setValue("/root/send/todd", model.getValue("/root/hidden/refparam/enddd"));
- model.setValue("/root/send/pid", model.getValue("/root/hidden/refparam/pid"));
- model.setValue("/root/send/dschgbn", model.getValue("/root/hidden/refparam/dschgbn"));
-
- submit("TRLBP02201");
-
- }
-
- // 환자목록 조회해서 혈액분출 현황 조회하기
- function fGetPidBloodlist(){
-
- if(datagrid1.row < 1){
- alert("환자를 선택하십시오.");
- return;
- }
-
- model.setValue("/root/send/fromdd", model.getValue("/root/hidden/refparam/startdd"));
- model.setValue("/root/send/todd", model.getValue("/root/hidden/refparam/enddd"));
- model.setValue("/root/send/pid", model.getValue("/root/main/getinddpatlist["+datagrid1.row+"]/pid"));
- model.setValue("/root/send/indd", model.getValue("/root/main/getinddpatlist["+datagrid1.row+"]/indd"));
-
- submit("TRLBP02202");
-
- }
-
- // 출력
- function fExePrint(){
-
- if(grd_piddelivery.rows < 1){
- alert("출력할 내용이 없습니다. ");
- return;
- }
-
- model.copyNode("/root/hidden/report", "/root/main/getpidinfo");
- model.makeNode("/root/hidden/report/patinfo");
- model.makeValue("/root/hidden/report/patinfo/pid", model.getValue("/root/main/getinddpatlist["+datagrid1.row+"]/pid"));
- model.makeValue("/root/hidden/report/patinfo/patnm", model.getValue("/root/main/getinddpatlist["+datagrid1.row+"]/hngnm"));
- model.makeValue("/root/hidden/report/patinfo/indd", model.getValue("/root/main/getinddpatlist["+datagrid1.row+"]/indd"));
- model.makeValue("/root/hidden/report/patinfo/enddd", model.getValue("/root/main/getinddpatlist["+datagrid1.row+"]/dschgbn"));
- model.makeValue("/root/hidden/report/patinfo/dept", model.getValue("/root/main/getinddpatlist["+datagrid1.row+"]/dept"));
-
- exeReportPreview("RPLBP02201", "XMLSTR", "/root/hidden/report");
-
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; "/>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:9px; width:94px; height:17px; ">입원기간 :</caption>
- <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetInddPatlist();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <input id="input26" ref="/root/hidden/refparam/startdd" class="input_s_essential" inputtype="date" style="left:110px; top:8px; width:90px; height:19px; "/>
- <caption id="caption3" class="search_no_b" style="left:204px; top:9px; width:15px; height:17px; ">~</caption>
- <input id="input1" ref="/root/hidden/refparam/enddd" class="input_s_essential" inputtype="date" style="left:221px; top:8px; width:90px; height:19px; "/>
- <caption id="caption5" class="search_name" style="left:355px; top:9px; width:94px; height:17px; ">등록번호 :</caption>
- <select id="checkbox1" ref="/root/hidden/refparam/dschgbn" overflow="visible" appearance="full" style="left:573px; top:10px; width:110px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>재원환자 Only</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <input id="ipt_pid" ref="/root/hidden/refparam/pid" class="input_button" inputtype="button" style="left:445px; top:8px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13"){
-
- // 검사자 바코드 리딩시
- if(event.target == "ipt_pid"){
- model.setvalue("/root/hidden/refparam/pid", (ipt_pid.currentText).toUpperCase());
-
- fGetInddPatlist();
-
- ipt_pid.selBegin = 0;
- ipt_pid.selEnd = ipt_pid.currentText.length;
- }
-
- }
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">환자목록</caption>
- <datagrid id="datagrid1" nodeset="/root/main/getinddpatlist" backcoloralternate="transparent" caption="등록번호^환자이름^입원일^퇴원일^퇴원부서^혈액은행불출^blodbarcd" colsep="^" colwidth="80, 70, 80, 70, 70, 84, 0" dataheight="23" defaultrows="1" explorerbar="sortshow" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:495px; height:668px; ">
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="indd" format="yyyy-mm-dd"/>
- <col ref="dschgbn"/>
- <col ref="dept"/>
- <col ref="dcnt"/>
- <col ref="blodbarcd"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 환자목록 선택해서 혈액분출 현황 조회
- if(datagrid1.isCell(event.target) && datagrid1.row >= datagrid1.fixedRows){
- fGetPidBloodlist();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid1.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:495px; y2:70px; "/>
- <caption id="caption4" class="tit_2" style="left:506px; top:55px; width:131px; height:14px; ">혈액불출 현황</caption>
- <line id="line2" class="line_1" style="x1:500px; y1:70px; x2:1195px; y2:70px; "/>
- <button id="btn_excel" class="btn2_letter2" visibility="hidden" style="left:1153px; top:49px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*var filename = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls");
-
- if(filename != "") {
- grd_piddelivery.saveExcel(filename);
- }
- */
- ]]>
- </script>
- </button>
- <datagrid id="datagrid5" nodeset="/root/main/getpidinfo/getpiddelivery" caption="혈액성분^처방수량^불출수량^검사완료수량^반환수량^폐기수량^병원사유폐기^준비수량" colsep="^" colwidth="120, 80, 80, 80, 80, 80, 80, 73" dataheight="23" defaultrows="1" explorerbar="sortshow" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:500px; top:530px; width:695px; height:213px; ">
- <col ref="blodcomnm"/>
- <col ref="reqqty"/>
- <col ref="deliveqty"/>
- <col ref="cmqty"/>
- <col ref="abnqty"/>
- <col ref="rtnqty"/>
- <col ref="rtnqty2"/>
- <col ref="prepqty"/>
- </datagrid>
- <caption id="caption7" class="tit_2" style="left:506px; top:510px; width:131px; height:14px; ">혈액불출 수량조회</caption>
- <line id="line3" class="line_1" style="x1:500px; y1:525px; x2:1195px; y2:525px; "/>
- <datagrid id="grd_piddelivery" nodeset="/root/main/getpidinfo/getpidbloodlist" caption="혈액번호^성분^혈액형^처방수량^불출수량^처방일자^혈액순번^불출일시^상태^병실^처방부서" colsep="^" colwidth="70, 84, 42, 56, 56, 101, 54, 101, 66, 43, 60" dataheight="23" defaultrows="1" explorerbar="sortshow" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:500px; top:75px; width:695px; height:425px; ">
- <col ref="blodno"/>
- <col ref="blodcomnm"/>
- <col ref="btype"/>
- <col ref="reqqty" format="yyyy-mm-dd hh:nn"/>
- <col ref="deliveqty" format="yyyy-mm-dd hh:nn"/>
- <col ref="prcpdt"/>
- <col ref="prepblodseqno"/>
- <col ref="delivedt"/>
- <col ref="stat"/>
- <col ref="roomcd"/>
- <col ref="orddept"/>
- </datagrid>
- <button id="button2" class="btn2_letter2" style="left:453px; top:49px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var filename = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls");
-
- if(filename != "") {
- datagrid1.saveExcel(filename);
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <line id="line15" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:96px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExePrint();
- ]]>
- </script>
- </button>
- </group>
- <group id="group5" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:301px; height:14px; ">입원환자 기간별 혈액불출현황</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|