123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280 |
- <?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>
- <ordcnstinfo>
- <emrcnst>
- <pid/>
- <reqdd/>
- <reqdeptcd/>
- <reqdeptnm/>
- <requserid/>
- <requsernm/>
- <recvdd/>
- <recvdeptcd/>
- <recvdeptnm/>
- <recvuserid/>
- <recvusernm/>
- <hopedd/>
- </emrcnst>
- </ordcnstinfo>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <pid/>
- <hngnm/>
- <flag/>
- </send>
- <init/>
- <hidden>
- <temp>
- <emrcnst/>
- </temp>
- </hidden>
- <hidden>
- <source>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </source>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if( checkOpener() ){
- var pid = opener.javascript.getParameter("SPPMO01300_PID");
- var hngnm = opener.javascript.getParameter("SPPMO01300_HNGNM");
- var flag = opener.javascript.getParameter("SPPMO01300_FLAG");
-
- opener.javascript.setParameter("SPPMO01300_RTN", "NO");
- //2007-12-27 이동식 추가 - 외래등록/전화예약 구분을 위해
- if( flag != '' && flag != ' ' && flag != '-' ){
- FLAG = flag; //구분자 세팅
- }else{
- FLAG = 'O';
- }
-
- if( pid != '' && pid != ' ' && pid != '-' ){
- model.setValue("/root/send/pid", pid);
- model.setValue("/root/send/hngnm", hngnm);
- model.setValue("/root/send/flag", FLAG);
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- <submission id="TRPAC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/temp"/>
- <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/source" resultref="/root/main/patinfo"/>
- <script type="javascript">
- <![CDATA[
- //광역변수 생성
- var FLAG = 'O'; //외래등록 DEFAULT
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="700" pageheight="343" guideline="2,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:663px; height:316px; ">
- <group id="group2" style="left:0px; top:0px; width:662px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:662px; 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" style="left:590px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/send/pid");
- var hngnm = model.getValue("/root/send/hngnm");
- if( pid == '' || pid == '' || pid == '-' ){
- messageBox("등록번호가 없습니다. 환자조회 후 다시 시도해 주세요.", "E999", "");
- return false;
- }else{
- model.setValue("/root/hidden/source/srchcond", "1");
- model.setValue("/root/hidden/source/pid", pid);
- if(submit("TRPMC02500")){
- if( getNodesetCount("/root/main/patinfo/patinfolist/pid") > 0 ){
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/send/flag", FLAG);
- model.refresh();
- }else{
- messageBox("존재하지 않는 등록번호입니다. 등록번호를 확인하세요.", 'E999', '');
- return false;
- }
- }else{
- return false;
- }
- }
-
- if(submit("TRPAC00301")){
- //alert( instance1.selectSingleNode("/root/main/result/temp").xml);
- //alert( instance1.selectSingleNode("/root/main/result/temp"));
- model.copyNode("/root/main/ordcnstinfo", "/root/hidden/temp");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:574px; y1:7px; x2:574px; y2:29px; "/>
- <input id="input3" ref="/root/send/pid" class="input_search" style="left:106px; top:8px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- //model.setValue("/root/hidden/source/srchcond", "1");
- model.setValue("/root/send/pid", input3.currentText);
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:225px; top:8px; width:86px; height:17px; ">환자이름 :</caption>
- <input id="input1" ref="/root/send/hngnm" class="input_search" appearance="input" style="left:316px; top:8px; width:65px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- model.resetInstanceNode("/root/hidden/source");
- model.setValue("/root/hidden/source/srchcond", "2");
- model.setValue("/root/hidden/source/hngnm", input1.currentText);
-
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden/source", "/root/send");
-
- if(model.getValue("/root/main/popupendflag") == 'ok'){
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- }
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="button1" accesskey="f2" class="icon_search" style="left:200px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //초기화
- //fInitialize();
- //model.resetInstanceNode("/root/hidden/source");
- //model.setValue("/root/hidden/source/srchcond", "1");
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden/source", "/root/send");
-
- if(model.getValue("/root/main/popupendflag") == 'ok'){
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:390px; top:8px; width:61px; height:17px; ">구분 :</caption>
- <!--
- <select1 id="radio1" ref="/root/send/flag" appearance="full" cols="2" overflow="visible" style="left:345px; top:10px; width:125px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>당일만</label>
- <value>O</value>
- </item>
- <item>
- <label>이전포함</label>
- <value>T</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- FLAG = model.getValue("/root/send/flag");
- ]]>
- </script>
- </select1>
- -->
- <select id="checkbox1" ref="/root/send/flag" overflow="visible" appearance="full" style="left:455px; top:10px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>당일만</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- FLAG = model.getValue("/root/send/flag");
- ]]>
- </script>
- </select>
- </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:662px; y2:60px; "/>
- <datagrid id="grd_emrcnstinfo" nodeset="/root/main/ordcnstinfo/emrcnst" caption="등록번호^의뢰일자^의뢰과^의뢰자명^수신과^수신자명^희망진료일자" colsep="^" colwidth="24, 100, 120, 100, 120, 100, 70" dataheight="23" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:65px; width:662px; height:249px; ">
- <col ref="pid" visibility="hidden"/>
- <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="reqdeptnm" style="text-align:left; "/>
- <col ref="requsernm" style="text-align:center; "/>
- <col ref="recvdeptnm" style="text-align:left; "/>
- <col ref="recvusernm" style="text-align:center; "/>
- <col ref="hopedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- btn_confirm.dispatch("DOMActivate");
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:316px; width:663px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:606px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- if( FLAG == 'O' ){
- var currow = grd_emrcnstinfo.row;
- if( currow > 0 ){
- var msg = messageBox("선택하신 협진내역을 접수하시겠습니까?", "Q999", "");
- if( msg == 6 ){
- opener.javascript.setParameter("SPPMO01300_RTN", "OK");
- opener.javascript.setParameter("SPPMO01300_ORDDD", model.getValue("/root/main/ordcnstinfo/emrcnst[" + currow + "]/hopedd"));
- opener.javascript.setParameter("SPPMO01300_ORDDEPTCD", model.getValue("/root/main/ordcnstinfo/emrcnst[" + currow + "]/recvdeptcd"));
- opener.javascript.setParameter("SPPMO01300_ORDDRID", model.getValue("/root/main/ordcnstinfo/emrcnst[" + currow + "]/recvuserid"));
- opener.javascript.setParameter("SPPMO01300_ORDREQFORMFLAG", model.getValue("/root/main/ordcnstinfo/emrcnst[" + currow + "]/ordreqformflag"));
- opener.javascript.setParameter("SPPMO01300_FORMRECSEQ", model.getValue("/root/main/ordcnstinfo/emrcnst[" + currow + "]/formrecseq"));
- }else{
- opener.javascript.setParameter("SPPMO01300_RTN", "NO");
- }
- }else{
- opener.javascript.setParameter("SPPMO01300_RTN", "NO");
- }
- }else{
- opener.javascript.setParameter("SPPMO01300_RTN", "NO");
- }
- */
- var currow = grd_emrcnstinfo.row;
- if( currow > 0 ){
- var msg = messageBox("선택하신 협진내역을 접수하시겠습니까?", "Q999", "");
- if( msg == 6 ){
- opener.javascript.setParameter("SPPMO01300_RTN", "OK");
- opener.javascript.setParameter("SPPMO01300_ORDDD" , model.getValue("/root/main/ordcnstinfo/emrcnst[" + currow + "]/hopedd"));
- opener.javascript.setParameter("SPPMO01300_ORDDEPTCD" , model.getValue("/root/main/ordcnstinfo/emrcnst[" + currow + "]/recvdeptcd"));
- opener.javascript.setParameter("SPPMO01300_ORDDRID" , model.getValue("/root/main/ordcnstinfo/emrcnst[" + currow + "]/recvuserid"));
- opener.javascript.setParameter("SPPMO01300_ORDREQFORMFLAG" , model.getValue("/root/main/ordcnstinfo/emrcnst[" + currow + "]/ordreqformflag"));
- opener.javascript.setParameter("SPPMO01300_FORMRECSEQ" , model.getValue("/root/main/ordcnstinfo/emrcnst[" + currow + "]/formrecseq"));
- }else{
- opener.javascript.setParameter("SPPMO01300_RTN", "NO");
- }
- }else{
- opener.javascript.setParameter("SPPMO01300_RTN", "NO");
- }
- window.close();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:662px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|