123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- * 제 목 : SPLBT90200_특수혈액간호부전송.xrw
- * 설 명 : 특수혈액간호부전송
- * 설 계 자 :
- * 작 성 자 :
- * 작 성 일 : 2009.02.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>
- <main>
- <spclblodlist>
- <getspclblodlist>
- <chk/>
- <pid/>
- <patnm/>
- <prcpdd/>
- <prcphopedt/>
- <blodcomcd/>
- <tclsscrnnm/>
- <tnsreqacptdt/>
- <tnsreqacptno/>
- <iryn/>
- <prcperflag/>
- <reqty/>
- <btype/>
- <prcpgenrflag/>
- <orddeptnm/>
- <spclblodreqyn/>
- <trsmyn/>
- <trsmnm/>
- <trsmdt/>
- <nurstrsmnm/>
- <nurstrsmdt/>
- </getspclblodlist>
- </spclblodlist>
- </main>
- <send>
- <codeflag/>
- <trsmgbn/>
- <grddata/>
- <pid/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <trsmgbn/>
- <pid/>
- </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"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB1101"/>
- <submission id="TRLBT90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spclblodlist"/>
- <submission id="TXLBT90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- finit();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 초기값
- function finit(){
- model.setValue("/root/send/codeflag", "1101|");
- submit("TRLZZ00101");
-
- //등록번호 초기화 및 포커스
- model.setFocus("ipt_pid");
- model.setValue("/root/hidden/ref/pid", "");
-
- btn_trsm.disabled = false;
- chk_trsmgbn.deselect(0);
-
- grd_spclblodlist.fixedcellcheckbox(0,1)=true; //해더에 전체체크박스 기능
- grd_spclblodlist.fixedcellischeck(0,1) = false; //전체체크 해제
- grd_spclblodlist.colHidden(1) = false; //체크박스 컬럼 보이기
-
- model.removeNodeset("/root/main/spclblodlist");
-
- model.refresh();
-
- fGetSpclBlodList();
- }
-
- //조회
- function fGetSpclBlodList(){
-
- model.removeNodeset("/root/main/getblodprcplist");
- model.refresh();
-
- model.setValue("/root/send/pid" , model.getValue("/root/hidden/ref/pid"));
- model.setValue("/root/send/trsmgbn" , model.getValue("/root/hidden/ref/trsmgbn"));
-
- submit("TRLBT90201");
- }
-
- //간호부전송
- function fSpclNursTrsmSave(){
- var cnt = getNodesetCount("/root/main/spclblodlist/getspclblodlist");
- var TF = false;
-
- for(iRow = 1; iRow <= cnt; iRow++){
- if(model.getValue("/root/main/spclblodlist/getspclblodlist["+iRow+"]/chk") == "Y"){
- grd_spclblodlist.addStatus(iRow, "insert");
- TF = true;
- }
- }
-
- if(TF){
- //alert(grd_spclblodlist.getUpdateData("insert"));
- model.setValue("/root/send/grddata" , grd_spclblodlist.getUpdateData("insert"));
- submit("TXLBT90201");
-
- grd_spclblodlist.clearStatus();
- grd_spclblodlist.fixedcellischeck(0,1) = false;
- grd_spclblodlist.refresh();
-
- fGetSpclBlodList();
- }else{
- messageBox("간호부 전송 할 내역이 없습니다." , "I");
- return;
- }
- }
-
- //전송완료포함 체크하면 간호부전송 버튼 disabled
- function fGridSetting(param){
-
- if(param == "Y"){
- btn_trsm.disabled = true;
- grd_spclblodlist.colHidden(1) = true;
- }else{
- btn_trsm.disabled = false;
- grd_spclblodlist.colHidden(1) = false;
- }
- }
-
- //키이벤트 엔터키 입력시
- function fKeyEvent(){
- if(event.keyCode == "13"){
- // 등록번호 바코드 리딩시
- if(event.target == "ipt_pid"){
- model.setvalue("/root/hidden/ref/pid", ipt_pid.currentText);
- fGetSpclBlodList();
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1150" pageheight="770" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_btn" style="left:0px; top:0px; width:1130px; height:24px; ">
- <button id="btn_trsm" class="btn4_letter5" style="left:957px; top:1px; width:92px; height:22px; ">
- <caption>간호부전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSpclNursTrsmSave();
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:1051px; top:1px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- finit();
- ]]>
- </script>
- </button>
- <caption id="caption6" class="tit_1" style="left:0px; top:5px; width:199px; height:13px; ">LRSDP 간호부전송</caption>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:25px; width:1130px; height:745px; ">
- <line id="line2" class="line_1" style="x1:0px; y1:55px; x2:1120px; y2:55px; "/>
- <caption id="caption5" class="tit_2" style="left:5px; top:40px; width:270px; height:13px; ">처방 목록</caption>
- <group id="group2" style="left:0px; top:0px; width:1125px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1120px; height:35px; "/>
- <line id="line1" class="line_4" style="x1:360px; y1:5px; x2:360px; y2:27px; "/>
- <caption id="caption4" class="search_name" visibility="visible" style="left:11px; top:9px; width:91px; height:17px; ">등록번호 :</caption>
- <button id="btn_pid" class="btn1_letter2" style="left:375px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetSpclBlodList();
- ]]>
- </script>
- </button>
- <input id="ipt_pid" ref="/root/hidden/ref/pid" class="input_button" inputtype="button" style="left:100px; top:9px; width:100px; height:19px; "/>
- <select id="chk_trsmgbn" ref="/root/hidden/ref/trsmgbn" overflow="visible" appearance="full" style="left:230px; top:10px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전송완료 포함</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGridSetting(chk_trsmgbn.value);
- fGetSpclBlodList();
- ]]>
- </script>
- </select>
- </group>
- <datagrid id="grd_spclblodlist" nodeset="/root/main/spclblodlist/getspclblodlist" class="datagrid2" caption="^전송
여부^등록번호^환자명^처방^Type^I^수량^E^처방부서^예약일시^접수일시^특수혈액
신청여부^간호부
전송일시^간호부
전송자^재접수일시^재접수자^성분제제코드^접수번호^prcpgenrflag" colsep="^" colwidth="25, 60, 80, 70, 60, 70, 30, 50, 30, 85, 102, 102, 0, 102, 51, 102, 60, 0, 0, 0" dataheight="23" ellipsis="true" explorerbar="sortshow" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:60px; width:1120px; height:675px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="trsmyn" style="font-weight:bold; text-align:center; "/>
- <col ref="pid" style="font-weight:bold; text-align:center; "/>
- <col ref="patnm" style="font-weight:bold; text-align:center; "/>
- <col ref="tclsscrnnm" style="text-align:center; "/>
- <col ref="btype"/>
- <col ref="iryn" style="text-align:center; "/>
- <col ref="reqty" style="text-align:center; "/>
- <col ref="prcperflag" style="text-align:center; "/>
- <col ref="orddeptnm"/>
- <col ref="prcphopedt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="tnsreqacptdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="spclblodreqyn" style="text-align:center; "/>
- <col ref="trsmdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="trsmnm" style="text-align:center; "/>
- <col ref="nurstrsmdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="nurstrsmnm" style="text-align:center; "/>
- <col ref="blodcomcd" style="text-align:center; "/>
- <col ref="tnsreqacptno" style="text-align:center; "/>
- <col ref="prcpgenrflag" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- //sort 후에 인스턴스 재정렬
- grd_spclblodlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|