123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLBT90300_공여자처방결과.xrw
- * 설 명 : 교차시험완료
- * 설 계 자 : (주)에이씨케이 - 박정은
- * 작 성 자 : (주)에이씨케이 -
- * 작 성 일 : 2009.03.10
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <dnorinfo>
- <dnorprcpinfo>
- <tnsrpid/>
- <prcpdt/>
- <spcacptdt/>
- <dnornm/>
- <dnorno/>
- </dnorprcpinfo>
- <dnorprcprslt>
- <testcd/>
- <tclsnm/>
- <reptrslt/>
- <refval/>
- <lastreptdt/>
- <prcpcd/>
- </dnorprcprslt>
- <dnorrslt102>
- <rsltlbd102/>
- </dnorrslt102>
- <dnorrslt101>
- <rsltlbd101/>
- </dnorrslt101>
- </dnorinfo>
- </main>
- <send>
- <blodno/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <blodno/>
- </ref>
- </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" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <submission id="TRLBT90301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dnorinfo"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- //초기화
- function fSetInit() {
-
- button4.disabled = false;
- button9.disabled = false;
-
- var blodno = model.getValue("/root/hidden/ref/blodno");
-
- if(blodno == ""){
- return;
- }
-
- model.setValue("/root/send/blodno", blodno);
-
- submit("TRLBT90301");
-
- setRowStyle("grd_dnorrslt", "4", "LBD100", "prcpcd", "equal"); // 사전검사
-
- setRowStyle("grd_dnorrslt", "1", "LBD101", "prcpcd", "equal"); // NAT
-
- setRowStyle("grd_dnorrslt", "11", "LBD102", "prcpcd", "equal"); // 사후검사
-
- // 사후검사 결과 여부
- if(model.getValue("/root/main/dnorinfo/dnorrslt102/rsltlbd102")=="Y"){
-
- // NAT 결과 여부
- if(model.getValue("/root/main/dnorinfo/dnorrslt101/rsltlbd101")=="N"){
- alert("NAT 미결과 공여자 입니다. \n NAT 미검사 동의서를 받으시고 Comment에 '응급'이라고 써 주십시오. ");
- }
- }else{ // 사후검사 결과 없음
- alert("사후검사 결과가 없어 불출 할 수 없습니다. ");
- button4.disabled = false; //닫기버튼
- button9.disabled = true; //불출버튼
- opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "Y");
- return;
- }
-
-
- }
-
- // 불출 버튼 클릭시
- function fExeDelive(){
-
- if(model.getValue("/root/main/dnorinfo/dnorrslt102/rsltlbd102")=="Y"){ // 사후검사결과있을때
- var refynlist = "";
-
- for(i=1; i<grd_dnorrslt.rows; i++){
- if(model.getValue("/root/main/dnorinfo/dnorprcprslt["+i+"]/refyn")=="N"){
- refynlist += model.getValue("/root/main/dnorinfo/dnorprcprslt["+i+"]/refyn");
- }
- }
- //alert("refynlist= " + refynlist );
- if(refynlist == ""){ // 이상치결과 없을때
- opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "Y");
- }else{ // positive 있을때
- opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "N");
- }
- }else{ // 사후검사결과 없을때는 불출돼야함
- opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "Y");
- }
-
- window.close();
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="690" pageheight="470" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:670px; height:440px; ">
- <datagrid id="grd_dnorinfo" nodeset="/root/main/dnorinfo/dnorprcpinfo" caption="등록번호^처방시간^접수시간^공여자명^공여자번호" colsep="^" colwidth="90, 130, 130, 100, 120" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:5px; top:30px; width:640px; height:94px; text-align:center; ">
- <col ref="tnsrpid" style="text-align:center; "/>
- <col ref="prcpdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="spcacptdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="dnornm"/>
- <col ref="dnorno"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_dnorinfo.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line10" class="line_1" style="x1:5px; y1:25px; x2:645px; y2:25px; "/>
- <caption id="caption32" class="tit_2" style="left:10px; top:10px; width:131px; height:13px; ">공여자 처방 정보</caption>
- <line id="line15" class="line_1" style="x1:5px; y1:149px; x2:645px; y2:149px; "/>
- <caption id="caption14" class="tit_2" style="left:10px; top:134px; width:145px; height:13px; ">공여자 처방 결과</caption>
- <datagrid id="grd_dnorrslt" nodeset="/root/main/dnorinfo/dnorprcprslt" caption="처방코드^처망명^결과^참고치^결과입력일시^prcpcd" colsep="^" colwidth="80, 180, 90, 130, 120, 0" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:5px; top:154px; width:640px; height:254px; text-align:center; ">
- <col ref="testcd" style="text-align:left; "/>
- <col ref="tclsnm" style="text-align:left; "/>
- <col ref="reptrslt" style="text-align:left; "/>
- <col ref="refval" style="text-align:left; "/>
- <col ref="lastreptdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="prcpcd"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_dnorrslt.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:0px; top:410px; width:668px; height:27px; ">
- <button id="button4" class="btn4_letter2" style="left:531px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "");
-
- if(model.getValue("/root/main/dnorinfo/dnorrslt102/rsltlbd102")=="Y"){ // 사후검사결과있을때
- var refynlist = "";
-
- for(i=1; i<grd_dnorrslt.rows; i++){
- if(model.getValue("/root/main/dnorinfo/dnorprcprslt["+i+"]/refyn")=="N"){
- refynlist += model.getValue("/root/main/dnorinfo/dnorprcprslt["+i+"]/refyn");
- }
- }
-
- if(refynlist == ""){
- opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "Y");
- }else{
- opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "N");
- }
- }else{ // 사후검사결과 없음
- opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "Y");
- }
-
- window.close();
- ]]>
- </script>
- </button>
- <line id="line14" class="line_6" style="x1:5px; y1:0px; x2:643px; y2:0px; "/>
- <button id="button9" class="btn4_letter2" style="left:590px; top:5px; width:56px; height:22px; ">
- <caption>불출</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExeDelive();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption1" style="left:145px; top:127px; width:60px; height:20px; text-align:center; vertical-align:middle; background-color:#b9e5fb; border-style:solid; ">사전검사</caption>
- <caption id="caption2" style="left:210px; top:127px; width:60px; height:20px; text-align:center; vertical-align:middle; background-color:#e5f3c2; border-style:solid; ">사후검사</caption>
- <caption id="caption3" style="left:275px; top:127px; width:60px; height:20px; text-align:center; vertical-align:middle; background-color:#ffe79d; border-style:solid; ">NAT</caption>
- </group>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- //fKeyEvent();
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|