123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLBD91400_외래환자접수목록조회.xrw
- * 설 명 : 외래환자접수목록조회
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2009.02.03
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <otptlist>
- <pid/>
- <hngnm/>
- <sex/>
- <age/>
- <orddd/>
- <orddeptnm/>
- <orddrnm/>
- <suppkind2/>
- <insukind2/>
- <orddeptcd/>
- <orddrid/>
- <ordtm/>
- <rsrvflag/>
- <etcordflag/>
- <instcd/>
- <medamtestmyn/>
- <medamtfreeresn/>
- <insukind/>
- <suppkind/>
- <insucd/>
- <suppkindresn/>
- </otptlist>
- <patinfo>
- <pid/>
- <hngnm/>
- <sex/>
- <age/>
- </patinfo>
- </main>
- <send>
- <pid/>
- <orddd/>
- <orddeptcd/>
- <orddrid/>
- <ordtm/>
- <instcd/>
- <insukind/>
- <insucd/>
- <suppkindresn/>
- </send>
- <init>
- </init>
- <hidden>
- <pid/>
- <otpt>
- <otptyn/>
- </otpt>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <submission id="TRLBD91401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/otptlist"/>
- <submission id="TXLBD91401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
-
- // 초기화
- function fSetInit(){
-
- if(model.getValue("/root/hidden/pid") == ""){ // 등록번호 없으면 초기화
- model.resetInstanceNode("/root/main/otptlist");
- model.resetInstanceNode("/root/main/patinfo");
- model.refresh();
- return;
- }
-
- // 등록번호 오면 접수내역 조회
- model.setValue("/root/send/pid", model.getValue("/root/hidden/pid"));
-
- submit("TRLBD91401");
-
- if(grd_otptlist.rows > 1){
- model.setValue("/root/main/patinfo/pid", model.getValue("/root/main/otptlist[1]/pid"));
- model.setValue("/root/main/patinfo/hngnm", model.getValue("/root/main/otptlist[1]/hngnm"));
- model.setValue("/root/main/patinfo/sex", model.getValue("/root/main/otptlist[1]/sex"));
- model.setValue("/root/main/patinfo/age", model.getValue("/root/main/otptlist[1]/age"));
-
- model.refresh();
- }
- }
-
- // 확인, 그리드선택 B=확인버튼 G=그리드선택
- function fSetOtptAcpt(gbn){
-
- if(grd_otptlist.row < 1 ){
- alert("접수내역을 선택하십시오.");
- return;
- }
-
- //alert("구현중");
-
- model.setValue("/root/send/pid", model.getValue("/root/main/otptlist["+grd_otptlist.row+"]/pid"));
- model.setValue("/root/send/orddd", getCurrentDate());
- model.setValue("/root/send/orddeptcd", model.getValue("/root/main/otptlist["+grd_otptlist.row+"]/orddeptcd"));
- model.setValue("/root/send/orddrid", model.getValue("/root/main/otptlist["+grd_otptlist.row+"]/orddrid"));
- model.setValue("/root/send/ordtm", model.getValue("/root/main/otptlist["+grd_otptlist.row+"]/ordtm"));
- model.setValue("/root/send/instcd", model.getValue("/root/main/otptlist["+grd_otptlist.row+"]/instcd"));
- model.setValue("/root/send/insukind", model.getValue("/root/main/otptlist["+grd_otptlist.row+"]/insukind"));
- model.setValue("/root/send/insucd", model.getValue("/root/main/otptlist["+grd_otptlist.row+"]/insucd"));
- model.setValue("/root/send/suppkindresn", model.getValue("/root/main/otptlist["+grd_otptlist.row+"]/suppkindresn"));
-
- if(gbn=="B"){
- // 외래접수 태우기
- if(submit("TXLBD91401")){
- alert("접수성공");
- //fSetInit();
- model.setValue("/root/hidden/otpt/otptyn", "Y");
- model.copyNode(opener.root.hidden.otpt, root.hidden.otpt);
- window.close();
- }
- }
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="620" 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:601px; height:311px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:58px; width:95px; height:13px; ">접수목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:73px; x2:601px; y2:73px; "/>
- <caption id="cap_regno" class="cell_1" style="left:0px; top:25px; width:70px; height:23px; text-align:center; ">등록번호</caption>
- <caption id="caption2" class="tit_2" style="left:5px; top:5px; width:95px; height:14px; ">환자정보</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:20px; x2:601px; y2:20px; "/>
- <caption id="caption3" class="cell_1" style="left:176px; top:25px; width:70px; height:23px; text-align:center; ">환자성명</caption>
- <caption id="caption4" class="cell_1" style="left:352px; top:25px; width:60px; height:23px; text-align:center; ">성별</caption>
- <caption id="caption5" class="cell_1" style="left:478px; top:25px; width:60px; height:23px; text-align:center; ">나이</caption>
- <line id="line9" class="line_3" style="x1:0px; y1:47px; x2:601px; y2:47px; "/>
- <datagrid id="grd_otptlist" nodeset="/root/main/otptlist" caption="pid^hngnm^sex^age^진료일자^진료과^진료의사^특진^보험유형^orddeptcd^orddrid^ordtm^rsrvflag^etcordflag^instcd^medamtestmyn^medamtfreeresn^insukind^suppkind^insucd^suppkindresn" colsep="^" colwidth="0, 0, 0, 0, 100, 150, 100, 101, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:78px; width:601px; height:230px; ">
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="sex"/>
- <col ref="age"/>
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="orddeptnm"/>
- <col ref="orddrnm"/>
- <col ref="suppkind2" format="999999-9999999"/>
- <col ref="insukind2"/>
- <col ref="orddeptcd"/>
- <col ref="orddrid"/>
- <col ref="ordtm"/>
- <col ref="rsrvflag"/>
- <col ref="etcordflag"/>
- <col ref="instcd"/>
- <col ref="medamtestmyn"/>
- <col ref="medamtfreeresn"/>
- <col ref="insukind"/>
- <col ref="suppkind"/>
- <col ref="insucd"/>
- <col ref="suppkindresn"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_otptlist.isCell(event.target) && grd_otptlist.row >= grd_otptlist.fixedRows){
- fSetOtptAcpt("G");
- }
- ]]>
- </script>
- </datagrid>
- <output id="opt_pid" ref="/root/main/patinfo/pid" class="output_fix" style="left:73px; top:26px; width:100px; height:19px; text-align:center; "/>
- <output id="opt_hngnm" ref="/root/main/patinfo/hngnm" class="output_fix" style="left:249px; top:26px; width:100px; height:19px; text-align:center; "/>
- <output id="opt_sex" ref="/root/main/patinfo/sex" class="output_fix" style="left:415px; top:26px; width:60px; height:19px; text-align:center; "/>
- <output id="opt_age" ref="/root/main/patinfo/age" class="output_fix" style="left:541px; top:26px; width:60px; height:19px; text-align:center; "/>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:311px; width:601px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" navindex="8" style="left:486px; top:5px; width:56px; height:22px; ">
- <caption>접수</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fSetOtptAcpt("B");
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" navindex="9" style="left:545px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/hidden/otpt/otptyn", "N");
- model.copyNode(opener.root.hidden.otpt, root.hidden.otpt);
- window.close();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:600px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|