123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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="">
- <send>
- <search>
- <pid/>
- <hngnm/>
- <coophospnm/>
- <drnm/>
- </search>
- </send>
- <main>
- <list>
- <reqlist>
- <pid/>
- <hngnm/>
- <reqdd/>
- <orddd/>
- <orddeptnm/>
- <orddrnm/>
- <coophospnm/>
- <drnm/>
- <cretno/>
- <acptseqno/>
- <seqno/>
- <orddeptcd/>
- <orddrid/>
- <coophospcd/>
- <coopdrcd/>
- <fromdd/>
- <chospath/>
- <fsexamflag/>
- <reqtype/>
- <cptype/>
- <reqpath/>
- <replmthd/>
- <enddd/>
- <repltype/>
- <rgstdd/>
- <endflag/>
- <replflag/>
- <endtype/>
- <cc/>
- <rem/>
- <fstprntdt/>
- <indschprntdt/>
- </reqlist>
- </list>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <popupendflag/>
- </main>
- <init>
- <areacd>
- <A0426>
- </A0426>
- </areacd>
- <hospgrade>
- <A0429>
- </A0429>
- </hospgrade>
- </init>
- <temp/>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRARC02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/soclworkweb/js/AWMCommon.js"/>
- <script type="javascript">
- <![CDATA[
- // 초기값
- function fInit()
- {
- // 공통코드 목록 가져오기
- zbcfGetCodeList(new Array("A0429", "A0426"), new Array("/root/init/hospgrade", "/root/init/areacd") , true);
-
- model.removeNodeset("/root/main/list/reqlist");
-
- if (checkOpener()) {
- var pid = opener.javascript.getParameter("pid");
- var hngnm = opener.javascript.getParameter("hngnm");
-
- model.setValue("/root/send/search/pid", pid);
- model.setValue("/root/send/search/hngnm", hngnm);
-
- } else {
- messageBox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
- }
-
- if (model.getValue("/root/send/search/pid") != "")
- {
- //fPatPopUp();
-
- fSearch();
- }
-
- model.refresh();
-
- //inputEnterKey("btn_pat", "DOMActivate");
-
-
- }
-
- // 병원 선택
- function fConfirm() {
- if (grd_list.rows <= 1) return;
- if (grd_list.row < 1) return;
-
- /*
- if (checkOpener()) {
- opener.javascript.setParameter("flag", "Y");
- opener.javascript.setParameter("coophospnm", model.getValue("/root/main/list/req_hosp_list[" + grd_list.row + " ]/coophospnm"));
- opener.javascript.setParameter("hospflag", model.getValue("/root/main/list/req_hosp_list[" + grd_list.row + " ]/hospflag"));
- opener.javascript.setParameter("drnm", model.getValue("/root/main/list/req_hosp_list[" + grd_list.row + " ]/drnm"));
- opener.javascript.setParameter("emailnm", model.getValue("/root/main/list/req_hosp_list[" + grd_list.row + " ]/emailnm"));
- opener.javascript.setParameter("telno1", model.getValue("/root/main/list/req_hosp_list[" + grd_list.row + " ]/telno1"));
- opener.javascript.setParameter("coophospcd", model.getValue("/root/main/list/req_hosp_list[" + grd_list.row + " ]/coophospcd"));
- opener.javascript.setParameter("coopdrcd", model.getValue("/root/main/list/req_hosp_list[" + grd_list.row + " ]/coopdrcd"));
- opener.javascript.setParameter("fromdd", model.getValue("/root/main/list/req_hosp_list[" + grd_list.row + " ]/fromdd"));
- opener.javascript.setParameter("areacd", model.getValue("/root/main/list/req_hosp_list[" + grd_list.row + " ]/areacd"));
- opener.javascript.setParameter("faxno", model.getValue("/root/main/list/req_hosp_list[" + grd_list.row + " ]/faxno1"));
- model.close();
- }
- */
-
- if ( checkOpener() ) {
- var row = grd_list.row;
- /*
- model.makeNode("/root/main/temp");
- opener.model.copyNode("/root/main/temp", "/root/main/list/reqlist[" + row + "]");
- alert(model.getValue("/root/main/list/reqlist"));
- model.refresh();
- */
-
- if( row > 0 ){
- if( getNodesetCount("/root/main/list/reqlist") > 0 ){
- //opener.model.copyNode("/root/main/reqpopup/reqpopuplist", getNode( row ));
- //opener.model.makeNode("/root/main/reqpopup/reqpopuplist1");
- //opener.model.copyNode("/root/main/reqpopup/reqpopuplist", "/root/main/list/reqlist[1]");
- model.copyNode(opener.root.main.reqpopup.reqpopuplist, "/root/main/list/reqlist[" + row + "]");
- //model.copyNode(opener.root.rtnValue, root.childValue);
- //alert("AA");
- //opener.model.makeNode("/root/main/reqpopupflag");
- opener.model.setValue("/root/main/reqpopupflag", "Y");
-
- opener.model.refresh();
- window.close();
- }
- }
-
- } else {
- messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- }
-
- }
-
- // 조회
- function fSearch()
- {
- // reqmngt
- // reqGetReqPopupList
- // getReqPopupList
- if (submit("TRARC02101", false) == true)
- {
-
- }
- else
- {
- messageBox("조회를", "E009");
- }
-
- }
-
- // 등록번호 조회 팝업
- function fPatPopUp()
- {
- model.makeValue("/root/temp/pid", model.getValue("/root/send/search/pid"));
- model.makeValue("/root/temp/srchcond","1");
- model.makeValue("/root/temp/autoflag","Y");
-
- modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/temp", "/root/send");
-
- //model.resetInstanceNode("/root/main/patinfo/patinfolist");
- //model.resetInstanceNode("/root/send/cond");
- model.setValue("/root/send/search/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/search/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
-
- //fHistSearch();
-
- model.refresh();
-
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="876" pageheight="497" guideline="1,2;500,500;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:860px; height:470px; ">
- <group id="grp_tle" style="left:0px; top:0px; width:860px; height:13px; ">
- <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">의뢰환자조회</caption>
- </group>
- <group id="group1" style="left:0px; top:25px; width:860px; height:40px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:857px; height:40px; "/>
- <line id="line8" class="line_4" style="x1:785px; y1:5px; x2:785px; y2:35px; "/>
- <caption id="caption4" class="search_name" visibility="hidden" style="left:555px; top:10px; width:94px; height:17px; ">의뢰의사 :</caption>
- <input id="input2" ref="/root/send/search/coophospnm" class="input_search" visibility="hidden" imemode="hangul" style="left:435px; top:10px; width:100px; height:19px; "/>
- <caption id="caption3" class="search_name" visibility="hidden" style="left:345px; top:10px; width:99px; height:17px; ">의뢰병원 :</caption>
- <input id="input4" ref="/root/send/search/drnm" class="input_search" visibility="hidden" imemode="hangul" style="left:645px; top:10px; width:100px; height:19px; "/>
- <output id="input1" ref="/root/send/search/hngnm" class="output_fix" appearance="output" style="left:210px; top:10px; width:100px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:795px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_pid" ref="/root/send/search/pid" class="input_search" disabled="true" style="left:110px; top:10px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13 && ipt_pid.currentText.length> 0)
- {
- inputEnterKey("btn_pat", "DOMActivate");
-
- }
- ]]>
- </script>
- </input>
- <caption id="caption23" class="search_name" style="left:20px; top:10px; width:95px; height:17px; ">등록번호 :</caption>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:89px; x2:860px; y2:89px; "/>
- <datagrid id="grd_list" nodeset="/root/main/list/reqlist" caption="등록번호^환자명^의뢰일자^진료일자^진료과^진료의사^의뢰병원^의뢰의사^의뢰번호" colsep="^" colwidth="80, 110, 100, 100, 110, 100, 110, 110, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:2px; top:93px; width:858px; height:365px; ">
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddeptnm"/>
- <col ref="orddrnm"/>
- <col ref="coophospnm"/>
- <col ref="drnm"/>
- <col ref="reqpseqno"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fConfirm();
- ]]>
- </script>
- </datagrid>
- <caption id="caption8" class="tit_2" style="left:5px; top:72px; width:119px; height:13px; ">의뢰환자 리스트</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:468px; width:860px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:742px; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fConfirm();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:801px; top:3px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (checkOpener()) {
- opener.model.makeNode("/root/main/reqpopupflag");
- opener.model.setValue("/root/main/reqpopupflag", "N");
- window.close();
- }
- model.close();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|