123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLBD91300_환자조회.xrw
- * 설 명 : 환자조회
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2007.11.12
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <patinfolist>
- <tnsrpid/>
- <tnsrnm/>
- <sexage/>
- <rrgstno/>
- <iogb/>
- <ordtype/>
- <orddd/>
- <cretno/>
- <instcd/>
- <acptseqno/>
- <orgorddd/>
- </patinfolist>
- </main>
- <send>
- <refgbn/>
- <reftext/>
- </send>
- <init>
- </init>
- <hidden>
- <refgbn>1</refgbn>
- <reftext/>
- <tnsrpid>
- <pid/>
- </tnsrpid>
- <viewgbn>
- <view/>
- </viewgbn>
- <patinfo>
- <tnsrpid/>
- <tnsrnm/>
- <sexage/>
- <rrgstno/>
- <iogb/>
- <ordtype/>
- <orddd/>
- <cretno/>
- <instcd/>
- <acptseqno/>
- <orgorddd/>
- </patinfo>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removeNodeset("/root/main/patinfolist");
- grd_tnsrinfo.rebuild();
- ]]>
- </script>
- <submission id="TRLBD91301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/patinfolist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript">
- <![CDATA[
-
- //환자정보조회
- function fGetPatInfoRef(){
- var txt = model.getValue("/root/hidden/reftext");
-
- if(txt.length == 0){
- messageBox("검색할 값을", "C001");
- return;
- }
-
-
- if(model.getValue("/root/hidden/refgbn")=="2"){ // 주민등록번호
- if(txt.length<6){
- if(txt.length==0){
- }else{
- messageBox("최소6자 이상", "C001");
- return;
- }
- }
- }else if(model.getValue("/root/hidden/refgbn")=="1"){ // 환자명
- if(txt.length<2){
- if(txt.length==0){
- return;
- }else{
- messageBox("최소2자 이상", "C001");
- return;
- }
- }
- }
-
-
- model.setValue("/root/send/refgbn", model.getValue("/root/hidden/refgbn"));
- model.setValue("/root/send/reftext", model.getValue("/root/hidden/reftext"));
-
-
- submit("TRLBD91301");
-
- if(grd_tnsrinfo.rows > 1){
- grd_tnsrinfo.row = 1;
- model.setValue("/root/hidden/tnsrpid/pid", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/tnsrpid"));
- }
- }
-
- // 엔터키입력시
- function fKeyEvent(){
- if(event.keyCode == "13"){
- if(event.target == "ipt_text"){
- model.setvalue("/root/hidden/reftext", ipt_text.currentText);
-
- fGetPatInfoRef();
- ipt_text.selBegin = 0;
- ipt_text.selEnd = ipt_text.currentText.length;
- }
- }
- }
-
- // 확인버튼 클릭시 메인으로 pid 넘기기
- function fSetPidMain(ref){
- if(grd_tnsrinfo.row >= 1 ){
- model.setValue("/root/hidden/patinfo/tnsrpid", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/tnsrpid"));
- model.setValue("/root/hidden/patinfo/tnsrnm", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/tnsrnm"));
- model.setValue("/root/hidden/patinfo/sexage", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/sexage"));
- model.setValue("/root/hidden/patinfo/rrgstno", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/rrgstno"));
- model.setValue("/root/hidden/patinfo/iogb", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/iogb"));
- model.setValue("/root/hidden/patinfo/ordtype", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/ordtype"));
- model.setValue("/root/hidden/patinfo/orddd", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/orddd"));
- model.setValue("/root/hidden/patinfo/cretno", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/cretno"));
- model.setValue("/root/hidden/patinfo/instcd", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/instcd"));
- model.setValue("/root/hidden/patinfo/acptseqno", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/acptseqno"));
- model.setValue("/root/hidden/patinfo/orgorddd", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/orgorddd"));
-
-
- if(model.getValue("/root/hidden/viewgbn/view")=="up"){
- //model.copyNode(opener.root.hidden.tnsrpid, root.hidden.tnsrpid);
- model.copyNode(opener.root.hidden.patinfolist, root.hidden.patinfo);
- opener.model.refresh();
-
- }else{
- //model.copyNode(opener.root.hidden, root.hidden.tnsrpid);
- model.copyNode(opener.root.hidden.patinfolist, root.hidden.patinfo);
- opener.model.refresh();
- }
-
- }else{
- messageBox("선택된 환자정보가 " , "I004", ""); //없습니다.
- }
-
- window.close();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="634" pageheight="343" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:618px; height:316px; ">
- <group id="group2" style="left:0px; top:0px; width:618px; height:35px; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:617px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="6" style="left:545px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //환자정보조회
- fGetPatInfoRef();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:529px; y1:7px; x2:529px; y2:29px; border-color:#ffe4bb; "/>
- <select1 id="cmb_cond" ref="/root/hidden/refgbn" class="combo_search" appearance="minimal" style="left:106px; top:8px; width:110px; height:19px; ">
- <choices>
- <item>
- <label>환자명</label>
- <value>1</value>
- </item>
- <item>
- <label>주민등록번호</label>
- <value>2</value>
- </item>
- <item>
- <label>등록번호</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </select1>
- <input id="ipt_text" ref="/root/hidden/reftext" style="left:224px; top:8px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:95px; height:14px; ">인적사항</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:617px; y2:60px; "/>
- <datagrid id="grd_tnsrinfo" nodeset="/root/main/patinfolist" caption="등록번호^환자명^성별나이^주민등록번호^입원/외래" colsep="^" colwidth="100, 100, 80, 140, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:618px; height:250px; ">
- <col ref="tnsrpid"/>
- <col ref="tnsrnm"/>
- <col ref="sexage"/>
- <col ref="rrgstno" format="999999-9999999"/>
- <col ref="iogb"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/hidden/tnsrpid/pid", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/tnsrpid"));
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:316px; width:618px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" navindex="8" style="left:502px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPidMain();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" navindex="9" style="left:561px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:618px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|