123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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 xmlns="">
- <main>
- <patlist>
- <patlist>
- <chngdt/>
- <prestward/>
- <prestroom/>
- <chngward/>
- <chngroom/>
- <pid/>
- <indd/>
- <instcd/>
- <cretno/>
- <hngnm/>
- <sexage/>
- <orddeptnm/>
- <prepamacptdd/>
- <prepamacpttm/>
- </patlist>
- </patlist>
- </main>
- <send>
- <data1/>
- </send>
- <hidden>
- <ref>
- <searchtext/>
- <searchgbn>1</searchgbn>
- </ref>
- <patinfo>
- <pid/>
- <indd/>
- <hngnm/>
- <orddeptnm/>
- <wardcd/>
- <roomcd/>
- </patinfo>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- rdo_refflag.select(0);
-
- model.removeNodeset("/root/main/patlist");
- model.removeNodeset("/root/hidden/patinfo");
- //메뉴에서 사용할 경우 사용자의 병동으로 세팅
- var instcd = getUserInfo("dutplceinstcd");
- var pid = "";
- var indd = "";
-
- pid = getPatientInfoDetail("pid");
- indd = getPatientInfoDetail("indd");
- ioflag = getPatientInfoDetail("ioflag");
- if(pid != ""){
- if(ioflag == "I") {
- model.makeValue("/root/send/pid" , pid);
- model.makeValue("/root/send/indd", indd); // 추가_20081229(ByJA)
- submit("TRMNW12401");
- }else{
- messageBox("입원환자가 아닙니다.", "I");
- return;
- }
- }
- model.refresh();
- ]]>
- </script>
- <submission id="TRMNW12401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patList"/>
- <!-- public Script Start -->
- <script type="javascript">
- <![CDATA[
- function fGetPatinfo(){
- model.removeNodeset("/root/main/patlist");
- model.removeNodeset("/root/hidden/patinfo");
- model.copyNode("/root/send/data1", "/root/hidden/ref");
- submit("TRLLP90401");
- var rows = grd_patinfo.rows - grd_patinfo.fixedRows ;
-
- if(rows > 0){
- grd_patinfo.row = 1;
- fGetPatinfolist();
- }
- }
-
- function fGetPatinfolist(){
- model.removeNodeset("/root/main/patlist");
- var pid = "";
- var indd = "";
- pid = model.getValue("/root/hidden/patinfo['"+ grd_patinfo.row +"']/pid");
- indd = model.getValue("/root/hidden/patinfo['"+ grd_patinfo.row +"']/indd");
-
- if(indd != "") {
- model.makeValue("/root/send/pid" , pid);
- model.makeValue("/root/send/indd", indd);
- submit("TRMNW12401");
- /*if((grd_patlist.rows - grd_patlist.fixedRows) == 0){
- messageBox("선택한 환자의 전실내역이 없습니다.", "I");
- return;
- }*/
- }else{
- messageBox("입원환자가 아닙니다.", "I");
- return;
- }
-
- }
- ]]>
- </script>
- <submission id="TRLLP90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/patinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="600" pageheight="600" guideline="1,1192;" 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:580px; height:575px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:240px; width:165px; height:58px; ">전실내역조회</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:255px; x2:570px; y2:255px; "/>
- <datagrid id="grd_patlist" nodeset="/root/main/patlist/patlist" caption="변경일시^From^From^To^To^등록번호^환자명^indd|변경일시^병동^병실^병동^병실^등록번호^환자명^indd^prestwardcd^chngwardcd^appdd^apptm^prepamacptdd^prepamacpttm" colsep="^" colwidth="110, 80, 45, 80, 45, 80, 80,0, 0, 0, 0, 0, 0, 0, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:260px; width:570px; height:285px; ">
- <col ref="chngdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="prestward" style="text-align:center; "/>
- <col ref="prestroom" style="text-align:center; "/>
- <col ref="chngward" style="text-align:center; "/>
- <col ref="chngroom" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="indd"/>
- <col ref="prestwardcd"/>
- <col ref="chngwardcd"/>
- <col ref="appdd"/>
- <col ref="apptm"/>
- <col ref="prepamacptdd" visibility="hidden"/>
- <col ref="prepamacpttm" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- </datagrid>
- <group id="grp_search" style="left:0px; top:10px; width:570px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:570px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button3" class="btn1_letter2" navindex="4" style="left:508px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetPatinfo();
- ]]>
- </script>
- </button>
- <line id="line14" class="line_4" style="x1:478px; y1:6px; x2:478px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:11px; top:9px; width:86px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검색구분 :</caption>
- <input id="ipt_refval" ref="/root/hidden/ref/searchtext" class="input_search" navindex="3" style="left:244px; top:8px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13"){
-
- model.setvalue("/root/hidden/ref/searchtext",ipt_refval.currentText);
- model.refresh();
- fGetPatinfo();
- ipt_refval.selBegin = 0;
- ipt_refval.selEnd = ipt_refval.currentText.length;
- }
- ]]>
- </script>
- </input>
- <!--<select1 id="cmb_refflag" ref="/root/hidden/ref/searchgbn" class="combo_search" navindex="2" appearance="minimal" style="left:106px; top:8px; width:120px; height:19px; ">
- <choices>
- <item>
- <label>등록번호</label>
- <value>1</value>
- </item>
- <item>
- <label>환자명</label>
- <value>2</value>
- </item>
- </choices>
- </select1>-->
- <select1 id="rdo_refflag" ref="/root/hidden/ref/searchgbn" class="radio_search" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:100px; top:10px; width:140px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>등록번호</label>
- <value>1</value>
- </item>
- <item>
- <label>환자명</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- </group>
- <button id="btn_save" class="btn4_letter2" style="left:510px; top:550px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <datagrid id="grd_patinfo" nodeset="/root/hidden/patinfo" caption="등록번호^환자명^입원일자^진료과^병동^병실" colsep="^" colwidth="80, 80, 80, 80, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:70px; width:570px; height:160px; ">
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="indd" format="yyyy-mm-dd"/>
- <col ref="orddeptnm"/>
- <col ref="wardcd"/>
- <col ref="roomcd"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if((grd_patinfo.rows - grd_patinfo.fixedRows) >0 ){
- fGetPatinfolist();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:5px; top:50px; width:105px; height:13px; ">입원환자조회</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:65px; x2:570px; y2:65px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|