123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLBT90400_외래수혈처방조회.xrw
- * 설 명 : 외래수혈처방조회
- * 설 계 자 : (주)에이씨케이 - 박정은
- * 작 성 자 : (주)에이씨케이 -
- * 작 성 일 : 2009.03.23
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <main>
- <bloodprcplist>
- <outprcplist>
- <prcpstat/>
- <prcpdd/>
- <prcphopedd/>
- <prcphopetm/>
- <pid/>
- <hngnm/>
- <deptnm/>
- <blodcomabbrnm/>
- <reqqty/>
- <btype/>
- <keepno/>
- <bfaborh/>
- <tnsreqacptno/>
- <prcpcd/>
- <stat2/>
- <bankcnfmyn/>
- <outcnfmyn/>
- <rsrvcnfmdt/>
- <voltrans/>
- <bcnoinfo/>
- </outprcplist>
- </bloodprcplist>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <pid/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <fromdd/>
- <todd/>
- <pid/>
- </ref>
- <autom>1</autom>
- <autoref>1</autoref>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <submission id="TRLBT90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/bloodprcplist/outprcplist"/>
- <submission id="TXLBT90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- </model>
- <script type="javascript">
- <![CDATA[
- iCnt = 1;
- var gTimerID;
- function fTimer(){
-
- iCnt ++;
-
- if(iCnt%2 == 0){
- m = model.getvalue("/root/hidden/autom");
- gTimerID = window.setInterval( "fGetOutPrcpList()", m * 60000 );
-
- button89.attribute("text") = "자동조회 On";
- input2.disabled = true;
- }
- else{
- model.setvalue("/root/hidden/autoref" , "2");
- button89.attribute("text") = "자동조회 Off";
- input2.disabled = false;
- window.clearInterval(gTimerID) ;
- }
-
- }
-
-
- //초기화
- function fSetInit() {
- model.setFocus("ipt_pid");
- fBaseInfoRef("0000|");
-
- fTimer();
-
- model.resetInstanceNode("/root/main/bloodprcplist/outprcplist");
-
- model.setValue("/root/hidden/ref/fromdd", getCurrentDate().toDate("YYYYMMDD").getAddDate(-1, "D").getDateFormat("YYYYMMDD"));
- model.setValue("/root/hidden/ref/todd", getCurrentDate());
- model.setValue("/root/hidden/ref/pid", "");
-
- // 화면열때 자동조회
- fGetOutPrcpList();
-
- model.refresh();
-
- }
-
- // 조회
- function fGetOutPrcpList(){
-
- model.setValue("/root/send/fromdd", model.getValue("/root/hidden/ref/fromdd"));
- model.setValue("/root/send/todd", model.getValue("/root/hidden/ref/todd"));
- model.setValue("/root/send/pid", model.getValue("/root/hidden/ref/pid"));
-
- submit("TRLBT90401");
-
- grd_dnorinfo.rebuildStyle();
-
- // 미접수인거 (미수납) readonly
- for(i=1; i<grd_dnorinfo.rows; i++){
- if( (model.getValue("/root/main/bloodprcplist/outprcplist["+i+"]/stat2")=="000")
- || (model.getValue("/root/main/bloodprcplist/outprcplist["+i+"]/stat2")=="0")
- || (model.getValue("/root/main/bloodprcplist/outprcplist["+i+"]/stat2")=="230")
- || model.getValue("/root/init/LB0000/nm") != "L"){ //진검 아닌 부서에서 해당화면 사용하기위해 외래확인 컬럼 비활성화 요청
- grd_dnorinfo.isReadOnly(i, grd_dnorinfo.colRef("outcnfmyn")) = true;
- }else{
- grd_dnorinfo.isReadOnly(i, grd_dnorinfo.colRef("outcnfmyn")) = false;
- }
- }
- //grd_dnorinfo
- grd_dnorinfo.refresh();
- }
-
- //키이벤트 엔터키 입력시
- function fKeyEvent(){
- if(event.keyCode == "13"){
- if(event.target=="ipt_pid"){
- model.setValue("/root/hidden/ref/pid", (ipt_pid.currentText).getTrim() );
-
- fGetOutPrcpList();
- }
- }
- }
-
- // 혈액은행 확인, 외래확인 체크
- function fSetRsrvCNFM(){
- model.makeValue("/root/send/outcnfmdata", grd_dnorinfo.getUpdateData());
- submit("TXLBT90401");
-
- fGetOutPrcpList();
-
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1020" pageheight="770" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:14px; width:990px; height:756px; ">
- <datagrid id="grd_dnorinfo" nodeset="/root/main/bloodprcplist/outprcplist" class="datagrid3" caption="상태^처방일자^예약일시^예약일시^등록번호^환자명^진료과^처방명^수량^Btype^최근수혈
혈액형^보관
검체^혈액
은행
확인^외래
확인^확인일시^보관검체정보^tnsreqacptno^stat2^용량변경
수량" colsep="^" colwidth="60, 75, 75, 40, 78, 68, 55, 70, 34, 92, 54, 54, 30, 30, 110, 180, 0, 0, 0" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:5px; top:75px; width:975px; height:655px; text-align:center; ">
- <col ref="prcpstat" style="text-align:center; "/>
- <col ref="prcpdd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="prcphopedd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="prcphopetm" format="hh:nn"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="deptnm"/>
- <col ref="blodcomabbrnm" style="text-align:left; "/>
- <col ref="reqqty"/>
- <col ref="btype"/>
- <col ref="bfaborh"/>
- <col ref="keepno"/>
- <col ref="bankcnfmyn"/>
- <col checkvalue="Y,N" ref="outcnfmyn" type="checkbox"/>
- <col ref="rsrvcnfmdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="bcnoinfo"/>
- <col ref="tnsreqacptno"/>
- <col ref="stat2"/>
- <col ref="voltrans" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_dnorinfo.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetRsrvCNFM();
- ]]>
- </script>
- </datagrid>
- <line id="line10" class="line_1" style="x1:5px; y1:70px; x2:980px; y2:70px; "/>
- <caption id="caption32" class="tit_2" style="left:5px; top:55px; width:167px; height:13px; ">외래환자 수혈처방 조회</caption>
- <group id="grp_sea" style="left:0px; top:10px; width:979px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:979px; height:35px; "/>
- <line id="line13" class="line_4" style="x1:893px; y1:7px; x2:893px; y2:29px; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:9px; width:94px; height:17px; ">예약일시 :</caption>
- <button id="btn_ref" class="btn1_letter2" style="left:908px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetOutPrcpList();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_no_b" style="left:205px; top:8px; width:15px; height:17px; ">~</caption>
- <input id="input26" ref="/root/hidden/ref/fromdd" class="input_s_essential" inputtype="date" style="left:105px; top:8px; width:95px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <input id="input1" ref="/root/hidden/ref/todd" class="input_s_essential" inputtype="date" style="left:224px; top:8px; width:95px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <caption id="caption1" class="search_name" style="left:381px; top:9px; width:94px; height:17px; ">등록번호 :</caption>
- <input id="ipt_pid" ref="/root/hidden/ref/pid" inputtype="button" style="left:475px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- <input id="input2" ref="/root/hidden/autom" class="input_search" style="left:831px; top:8px; width:24px; height:19px; "/>
- <caption id="caption8" class="search_no_b" style="left:855px; top:8px; width:15px; height:17px; ">분</caption>
- <button id="button89" class="btn5_letter6" style="left:743px; top:8px; width:92px; height:19px; ">
- <caption>자동조회 On</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fTimer();
- ]]>
- </script>
- </button>
- </group>
- <button id="button1" class="btn4_letter2" style="left:925px; top:731px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "");
- window.close();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:980px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:179px; height:13px; ">외래환자 수혈처방 조회</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|