123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373 |
- <?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>
- <cond>
- <subdeptcd/>
- </cond>
- <pidlist1>
- <mainpidlist>
- <pid/>
- <patnm/>
- <sna/>
- <flag/>
- <wardcd/>
- <roomcd/>
- <juminno/>
- <emrinpat/>
- </mainpidlist>
- </pidlist1>
- </main>
- <send>
- <userid/>
- <flag/>
- <dailyyn/>
- </send>
- <init>
- <cmb_ward>
- <initexecward>
- <execwardcdid/>
- <execwardcdnm/>
- </initexecward>
- </cmb_ward>
- <cmb_orddept>
- <initexecorddept>
- <execorddeptcdid/>
- <execorddeptcdnm/>
- </initexecorddept>
- </cmb_orddept>
- <cmb_room>
- <initexecroom>
- <execroomcdid/>
- <execroomcdnm/>
- </initexecroom>
- </cmb_room>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.makeValue("/root/send/flag", "0");
-
- submit("TRMMI00131"); // 진료과코드
- cmb_deptlist.value = getUserInfo("dutplcecd");
-
- cmb_deptlist.dispatch("xforms-value-changed");
- cmb_medispcllist.value = getUserInfo("userid");
- submit("TRMMI00132"); // 병동코드 조회
- fGetPatList() ;
- ]]>
- </script>
- <submission id="TRAER00819" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/pidlist1"/>
- <submission id="TRAER00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/wardcd" replace="instance" resultref="/root/init/cmb_room"/>
- <submission id="TRAER00804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptcd" replace="instance" resultref="/root/init/cmb_orddr"/>
- <submission id="TRMMI00131" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_orddept"/>
- <submission id="TRMMI00132" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_ward"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
-
- function fGetPatList() {
-
- var deptcd = model.getValue("/root/send/deptcd");
- var drid = model.getValue("/root/send/drid");
- var wardcd = model.getValue("/root/send/wardcd");
- var roomcd = model.getValue("/root/send/roomcd");
- if ( deptcd == "" && drid == "" && wardcd == "" && roomcd == "" ) {
- messageBox("조회 항목[진료과,주치의,병동,병실]을 선택하세요.","I999");
- return;
- }
-
-
- submit("TRAER00819");
-
- var srchLength1 = model.instances(0).selectNodes( "/root/main/pidlist1/mainpidlist" ).length;
- if ( srchLength1 > 0 ) {
-
- // Grid Background Color Clear
- for ( var i = 1; i <= srchLength1; i++ ) {
- grd_pidlist.rowstyle( i , "data" , "background-color" ) = "#ffffff";
- }
-
- for ( var i = 1; i <= srchLength1; i++ ) {
-
- if ( model.getValue("/root/main/pidlist1/mainpidlist[" + i + "]/emrinpat") == "N3") {
- grd_pidlist.rowstyle( i , "data" , "background-color" ) = "#b9e5fb";
- }
- }
-
- }
-
- }
-
-
- function fSendPidList(grdobj){
-
- // alert("1");
- if ( grdobj.row >= grdobj.fixedRows ) {
-
- var row = grdobj.row;
-
- var pid = model.getValue("/root/main/pidlist1/mainpidlist[" + row + "]/pid");
- var patnm = model.getValue("/root/main/pidlist1/mainpidlist[" + row + "]/patnm");
- var juminno = model.getValue("/root/main/pidlist1/mainpidlist[" + row + "]/juminno");
- //var warcd = model.getValue("/root/main/pidlist1/mainpidlist[" + row + "]/wardcd");
- window.opener.model.setValue("/root/send/data/singdata/srchpid", pid);
- window.opener.model.makeValue("/root/main/patinfo/patinfolist/hngnm", patnm);
- window.opener.model.makeValue("/root/main/patinfo/patinfolist/rrgstno1", juminno);
-
- //if ( warcd != "" )
- // window.opener.model.setValue("/root/send/data/singdata/wardcd", wardcd);
-
- window.opener.model.refresh();
-
- window.opener.javaScript.btn_srch.dispatch("DOMActivate");
- // searchChart("/root/hidden/temp")
-
- }
-
- }
-
-
- /* @group : 결과조회
- * @ver : 2007.06.14
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 주치의정보 조회를 위한 Function
- */
- function fChngSrchDrId() {
-
- if ( model.getValue("/root/send/deptcd") == "" ) return;
- model.resetInstanceNode("/root/init/cmb_orddr/initexecorddr");
- submit("TRAER00804");
- }
-
- /* @group : 결과조회
- * @ver : 2007.06.14
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 병실정보 조회를 위한 Function
- */
- function fChngSrchRoomCd() {
- if ( model.getValue("/root/send/wardcd") == "" ) return;
- model.resetInstanceNode("/root/init/cmb_room/initexecroom");
- submit("TRAER00802");
- }
-
- /**
- * @desc : NodeSet의 최종길이를 구한다.
- * @param : path : xpath
- * @return : NodeSet 최종 길이값
- * @authur : 이상현 200?. ?. ??
- * @---------------------------------------------------
- */
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body overflow="hidden" pagewidth="460" pageheight="650" guideline="1,409;1,455;">
- <shape id="roundrect5" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:7px; top:0px; width:448px; height:122px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:390px; top:50px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/flag", cmb_flag.value);
- fGetPatList();
- window.modelesstopmost = true;
- ]]>
- </script>
- </button>
- <datagrid id="grd_pidlist" nodeset="/root/main/pidlist1/mainpidlist" autoresize="true" caption="병실^등록번호^이름^S/A^구분^주민번호^대상자" colsep="^" colwidth="75, 85, 90, 55, 50, 70, 0" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" style="left:6px; top:130px; width:449px; height:510px; ">
- <col ref="roomcd" style="text-align:left; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="font-weight:bold; "/>
- <col ref="sna" style="text-align:center; "/>
- <col ref="flag" style="text-align:center; "/>
- <col ref="juminno" style="text-align:center; "/>
- <col ref="emrinpat" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_pidlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( (grd_pidlist.row >= grd_pidlist.fixedRows) && (grd_pidlist.isCell(event.target))) {
- fSendPidList(grd_pidlist);
- }
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:6px; y1:125px; x2:455px; y2:125px; "/>
- <caption id="caption3" class="search_name" style="left:12px; top:4px; width:91px; height:17px; ">조회기준</caption>
- <caption id="caption1" class="search_name" style="left:12px; top:27px; width:93px; height:17px; ">진 료 과</caption>
- <select1 id="cmb_deptlist" ref="/root/send/deptcd" class="combo_search" appearance="minimal" style="left:105px; top:25px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_orddept/initexecorddept">
- <label ref="execorddeptcdnm"/>
- <value ref="execorddeptcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChngSrchDrId();
-
- btn_sea.dispatch("DOMActivate");
- window.modelesstopmost = true;
-
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:12px; top:51px; width:73px; height:17px; ">주 치 의</caption>
- <select1 id="cmb_medispcllist" ref="/root/send/drid" class="combo_search" appearance="minimal" style="left:105px; top:49px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_orddr/initexecorddr">
- <label ref="execorddrcdnm"/>
- <value ref="execorddrcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_sea.dispatch("DOMActivate");
- window.modelesstopmost = true;
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="search_name" style="left:12px; top:75px; width:86px; height:17px; ">병 동</caption>
- <select1 id="combo3" ref="/root/send/wardcd" class="combo_search" appearance="minimal" style="left:105px; top:74px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_ward/initexecward">
- <label ref="execwardcdnm"/>
- <value ref="execwardcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChngSrchRoomCd();
-
- btn_sea.dispatch("DOMActivate");
- window.modelesstopmost = true;
- ]]>
- </script>
- </select1>
- <select1 id="combo4" ref="/root/send/roomcd" class="combo_search" appearance="minimal" style="left:205px; top:74px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_room/initexecroom">
- <label ref="execroomcdnm"/>
- <value ref="execroomcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_sea.dispatch("DOMActivate");
- window.modelesstopmost = true;
- ]]>
- </script>
- </select1>
- <select id="chk_DailyResult" ref="/root/send/dailyyn" overflow="visible" appearance="full" style="left:300px; top:4px; width:70px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>당일결과</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- alert('[당일결과만 존재하는 대상자 조회] 기능은 구현중입니다.');
- ]]>
- </script>
- </select>
- <line id="line2" class="line_4" style="x1:380px; y1:8px; x2:380px; y2:114px; "/>
- <select1 id="cmb_flag" ref="/root/send/flag" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:105px; top:4px; width:180px; height:17px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>외래</label>
- <value>2</value>
- </item>
- <item>
- <label>입원</label>
- <value>1</value>
- </item>
- <item>
- <label>응급</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo5" ref="/root/main/cond/subdeptcd" class="combo_search" appearance="minimal" style="left:205px; top:25px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_orddept/initexecorddept">
- <label ref="execorddeptcdnm"/>
- <value ref="execorddeptcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChngSrchDrId();
-
- btn_sea.dispatch("DOMActivate");
- window.modelesstopmost = true;
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:205px; top:51px; width:75px; height:17px; ">담 당 의</caption>
- <select1 id="combo6" ref="/root/send/drid" class="combo_search" appearance="minimal" style="left:285px; top:49px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_orddr/initexecorddr">
- <label ref="execorddrcdnm"/>
- <value ref="execorddrcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_sea.dispatch("DOMActivate");
- window.modelesstopmost = true;
- ]]>
- </script>
- </select1>
- <caption id="caption6" class="search_name" style="left:12px; top:99px; width:89px; height:17px; ">담당간호사</caption>
- <select1 id="combo7" ref="/root/send/drid" class="combo_search" appearance="minimal" style="left:105px; top:98px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_orddr/initexecorddr">
- <label ref="execorddrcdnm"/>
- <value ref="execorddrcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_sea.dispatch("DOMActivate");
- window.modelesstopmost = true;
- ]]>
- </script>
- </select1>
- </xhtml:body>
- </xhtml:html>
|