123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLBP01400_혈액반납폐기목록조회.xrw
- * 설 명 : 혈액반납폐기목록조회
- * 설 계 자 : (주)에이씨케이 - 윤재한
- * 작 성 자 : (주)에이씨케이 -
- * 작 성 일 : 2007.08.20
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <rtnabnlist>
- <blodno/>
- <comcd/>
- <btype/>
- <testpsn/>
- <acptpsn/>
- <rtnabn/>
- <cnfmdt/>
- <cnfm/>
- <rsn/>
- </rtnabnlist>
- <rtnpsnnm/>
- </main>
- <send>
- <rtnpsn/>
- <pid/>
- <blodno/>
- <flag/>
- <appsdt/>
- <appedt/>
- <abn/>
- </send>
- <init>
- </init>
- <hidden>
- <rtnpsn/>
- <pid/>
- <blodno/>
- <flag/>
- <appsdt/>
- <appedt/>
- <abn/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- group3.disabled = true;
- group2.disabled = true;
- model.setFocus("ID_txt");
- ]]>
- </script>
- <submission id="TRLBP01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
- <submission id="TRLBP01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rtnabnlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //초기화
- function fSetInit() {
- var toDay = getCurrentDate();
-
- model.setValue("/root/hidden/rtnpsn", "");
- model.setValue("/root/main/rtnpsnnm", "");
- model.setValue("/root/hidden/pid", "");
- model.setValue("/root/hidden/blodno", "");
- model.setValue("/root/hidden/flag", "0");
- model.setValue("/root/hidden/appsdt", toDay);
- model.setValue("/root/hidden/appedt", toDay);
- model.setValue("/root/hidden/abn", "");
- opt_abn.value = "";
-
- model.removeNodeset("/root/main/rtnabnlist");
-
- model.refresh();
- }
-
- //반환(폐기)자 조회
- function fGetRtnPsnNm() {
- model.setValue("/root/hidden/rtnpsn", ipt_rtnpsn.currentText);
- model.setValue("/root/send/rtnpsn", model.getValue("/root/hidden/rtnpsn"));
-
- submit("TRLBP01401");
- }
-
- //조회
- function fGetRtnAbnList() {
- model.setValue("/root/send/rtnpsn", model.getValue("/root/hidden/rtnpsn"));
- model.setValue("/root/send/pid", model.getValue("/root/hidden/pid"));
- model.setValue("/root/send/blodno", model.getValue("/root/hidden/blodno"));
- model.setValue("/root/send/flag", model.getValue("/root/hidden/flag"));
- model.setValue("/root/send/appsdt", model.getValue("/root/hidden/appsdt"));
- model.setValue("/root/send/appedt", model.getValue("/root/hidden/appedt"));
- model.setValue("/root/send/abn", model.getValue("/root/hidden/abn"));
-
- submit("TRLBP01402");
- }
- //엑셀저장
- function fSaveExcel() {
- var filename = window.fileDialog("save", ",", false, "Excel", "xls", "All Files(*.*) || *.* ||Excel Files(*.xls) || *.xls");
-
- if(filename != "") {
- grd_rtnabnlist.saveExcel(filename);
- }
- }
-
- //키이벤트발생
- function fKeyEvent() {
- if(event.keyCode == "13") {
- if(event.target == "ipt_rtnpsn") {
- fGetRtnPsnNm();
- model.setFocus("ipt_pid");
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group4" style="left:0px; top:40px; width:1195px; height:744px; ">
- <caption id="caption11" class="tit_2" style="left:5px; top:80px; width:139px; height:13px; ">반환(폐기) 목록</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:95px; x2:1194px; y2:95px; "/>
- <datagrid id="grd_rtnabnlist" nodeset="/root/main/rtnabnlist" caption="혈액번호^혈액성분^B Type^검사자^수령자^반환/폐기^확인일시^확인^사유" colsep="^" colwidth="120, 160, 80, 75, 75, 80, 120, 40, 410" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:100px; width:1194px; height:623px; text-align:center; ">
- <col ref="blodno"/>
- <col ref="comcd"/>
- <col ref="btype"/>
- <col ref="testpsn"/>
- <col ref="acptpsn"/>
- <col ref="rtnabn"/>
- <col ref="cnfmdt" format="yyyy-mm-dd hh:nn"/>
- <col checkvalue="true,false" ref="cnfm" type="checkbox"/>
- <col ref="rsn" style="text-align:left; "/>
- </datagrid>
- <group id="group2" style="left:0px; top:10px; width:1195px; height:60px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:1195px; height:60px; "/>
- <select1 id="rdo_flag" ref="/root/hidden/flag" class="radio_search" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:830px; top:10px; width:187px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>반환</label>
- <value>1</value>
- </item>
- <item>
- <label>폐기</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_appsdt" ref="/root/hidden/appsdt" class="input_search" inputtype="date" style="left:130px; top:33px; width:90px; height:19px; "/>
- <input id="ipt_sppedt" ref="/root/hidden/appedt" class="input_search" inputtype="date" style="left:242px; top:33px; width:90px; height:19px; "/>
- <input id="ipt_abn" ref="/root/hidden/abn" class="input_search" style="left:439px; top:33px; width:100px; height:19px; "/>
- <button id="btn_ref" class="btn1_letter2" style="left:1124px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetRtnAbnList();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:111px; height:17px; ">반환(폐기)자 :</caption>
- <caption id="caption1" class="search_name" style="left:348px; top:34px; width:90px; height:17px; ">폐기사유 :</caption>
- <caption id="caption3" class="search_name" style="left:15px; top:34px; width:89px; height:17px; ">신청일시 :</caption>
- <line id="line13" class="line_4" style="x1:1109px; y1:8px; x2:1109px; y2:52px; "/>
- <caption id="caption6" class="search_name" style="left:348px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
- <caption id="caption7" class="search_name" style="left:762px; top:9px; width:65px; height:17px; ">구분 :</caption>
- <input id="ipt_rtnpsn" ref="/root/hidden/rtnpsn" class="input_search" maxlength="10" style="left:130px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- // fGetRtnPsnNm();
- ]]>
- </script>
- </input>
- <output id="opt_rtnpsnnm" ref="/root/main/rtnpsnnm" class="output_search" style="left:232px; top:8px; width:100px; height:19px; "/>
- <input id="ipt_pid" ref="/root/hidden/pid" class="input_search" style="left:439px; top:8px; width:100px; height:19px; "/>
- <caption id="caption8" class="search_name" style="left:555px; top:9px; width:86px; height:17px; ">혈액번호 :</caption>
- <input id="ipt_blodno" ref="/root/hidden/blodno" class="input_search" style="left:646px; top:8px; width:100px; height:19px; "/>
- <button id="button61" class="icon_search" style="left:542px; top:35px; width:16px; height:16px; ">
- <caption/>
- </button>
- <output id="opt_abn" class="output_search" style="left:564px; top:33px; width:436px; height:19px; "/>
- <caption id="caption4" class="search_no_b" style="left:225px; top:34px; width:15px; height:17px; ">~</caption>
- </group>
- <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:74px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveExcel();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption5" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">혈액반납폐기목록조회</caption>
- </group>
- <group id="group3" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- </button>
- <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:96px; height:22px; ">
- <caption>출력</caption>
- </button>
- </group>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- <group id="Group_idChk" style="left:476px; top:250px; width:280px; height:165px; background-color:#ff99cc; border-color:#5abaff; border-width:1px; border-style:solid; ">
- <caption id="caption9" style="left:19px; top:19px; width:249px; height:70px; font-size:18pt; font-weight:bold; ">반환자를 입력하세요</caption>
- <textarea id="ID_txt" overflow="hidden" style="left:34px; top:89px; width:195px; height:55px; font-size:22pt; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13"){
- var I_txt = ID_txt.currentText;
-
- model.setValue("/root/hidden/rtnpsn", I_txt);
- model.setValue("/root/send/rtnpsn", model.getValue("/root/hidden/rtnpsn"));
- submit("TRLBP01401");
-
- if(model.getValue("/root/main/rtnpsnnm") == ""){
- }else{
- model.setFocus("ipt_pid");
- ipt_pid.selBegin = 0;
- ipt_pid.selEnd = ipt_pid.currentText.length;
- Group_idChk.visible = false;
- group3.disabled = false;
- group2.disabled = false;
-
- }
-
-
-
-
- }
- ]]>
- </script>
- </textarea>
- <button id="button44" style="left:232px; top:119px; width:42px; height:25px; font-size:8pt; font-weight:bold; color:#003399; text-align:center; background-image:../../../lis\commonweb\images\btn_lis.gif; background-repeat:no-repeat; background-stretch:stretch; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- Group_idChk.visible = false;
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|