123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <hospinfo/>
- <deptinfo/>
- </main>
- <send>
- <searchhosp>
- <hospnm/>
- <hosptype/>
- </searchhosp>
- <searchdept>
- <organizationoid/>
- </searchdept>
- </send>
- <init>
- <initinfo/>
- </init>
- <hidden>
- <areainfo>
- <list>
- <cdid/>
- <cdnm>전체</cdnm>
- </list>
- <list>
- <cdid>TK</cdid>
- <cdnm>대구경북</cdnm>
- </list>
- <list>
- <cdid>PK</cdid>
- <cdnm>부산경남</cdnm>
- </list>
- <list>
- <cdid>S</cdid>
- <cdnm>서울</cdnm>
- </list>
- </areainfo>
- </hidden>
- </root>
- </instance>
- <submission id="TRARH00505" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchhosp" resultref="/root/main/hospinfo"/>
- <submission id="TRARH00506" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/initinfo"/>
- <submission id="TRARH00507" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchdept" resultref="/root/main/deptinfo"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if(!checkOpener()){
- window.close();
- }
-
- fInit();
- ]]>
- </script>
- </model>
- </xhtml:head>
- <script src="../../../com/commonweb/js/common.js" type="javascript"/>
- <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
- <script type="javascript">
- <![CDATA[
- function fInit(){
- submit("TRARH00506");
-
- addComboItem("cmb_hosptype","전체","","above");
-
- fSearch();
- model.refresh();
- }
-
-
- function fSearch(){
- submit("TRARH00505",false);
- }
-
- function fSearchDept(){
- submit("TRARH00507",false);
- }
-
- function fSetReturn(){
-
- opener.javascript.setParameter("SPARH00510_RETURN_organizationoid", model.getValue("/root/main/hospinfo/hosplist["+grd_hosplist.row+"]/organizationoid"));
- opener.javascript.setParameter("SPARH00510_RETURN_organizationid", model.getValue("/root/main/hospinfo/hosplist["+grd_hosplist.row+"]/organizationid"));
- opener.javascript.setParameter("SPARH00510_RETURN_organizationname", model.getValue("/root/main/hospinfo/hosplist["+grd_hosplist.row+"]/organizationname"));
- opener.javascript.setParameter("SPARH00510_RETURN_telecom", model.getValue("/root/main/hospinfo/hosplist["+grd_hosplist.row+"]/telecom"));
- opener.javascript.setParameter("SPARH00510_RETURN_postalcode", model.getValue("/root/main/hospinfo/hosplist["+grd_hosplist.row+"]/postalcode"));
- opener.javascript.setParameter("SPARH00510_RETURN_address", model.getValue("/root/main/hospinfo/hosplist["+grd_hosplist.row+"]/address"));
-
- opener.javascript.setParameter("SPARH00510_RETURN_departmentcode", model.getValue("/root/main/deptinfo/deptlist["+grd_deptlist.row+"]/departmentcode"));
- opener.javascript.setParameter("SPARH00510_RETURN_departmentname", model.getValue("/root/main/deptinfo/deptlist["+grd_deptlist.row+"]/departmentname"));
-
- opener.javascript.setParameter("SPARH00510_RETURN_flag","Y");
-
- }
- ]]>
- </script>
- <xhtml:body pagewidth="1000" pageheight="500" style="margin-left:8; ">
- <group id="group5" style="left:0px; top:25px; width:985px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:985px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:885px; y1:9px; x2:885px; y2:31px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="33" style="left:910px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
-
- model.removeNodeset("/root/main/deptinfo/deptlist");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="input2" ref="/root/send/searchhosp/hospnm" navindex="32" style="left:90px; top:10px; width:125px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode==13)
- {
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption7" class="search_name" style="left:8px; top:10px; width:94px; height:17px; ">병의원명</caption>
- <select1 id="cmb_hosptype" ref="/root/send/searchhosp/hosptype" appearance="minimal" style="left:335px; top:10px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/initinfo/hosptypelist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption36" class="search_name" style="left:245px; top:10px; width:94px; height:17px; ">병원타입</caption>
- </group>
- <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:205px; height:14px; ">HIE 병의원 및 진료과 선택</caption>
- <datagrid id="grd_hosplist" nodeset="/root/main/hospinfo/hosplist" scroll="autovscroll" caption="요양기관기호^병원명^병원타입^전화번호^주소" colsep="^" colwidth="100, 155, 82, 103, 286" dataheight="25" defaultrows="0" extendlastcol="scroll" frozencols="3" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" style="left:0px; top:85px; width:765px; height:371px; vertical-align:middle; ">
- <col ref="organizationid"/>
- <col ref="organizationname"/>
- <col ref="organizationtypecode" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/initinfo/hosptypelist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="telecom"/>
- <col ref="address"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_hosplist.row<1) return;
-
- var row = grd_hosplist.row;
- var organizationoid = model.getValue("/root/main/hospinfo/hosplist["+ row + "]/organizationoid");
- model.setValue("/root/send/searchdept/organizationoid",organizationoid);
-
- fSearchDept();
-
- model.refresh();
-
-
-
-
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn4_letter2" style="left:450px; top:465px; width:56px; height:22px; ">
- <caption>선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_hosplist.row < 1){
- messageBox("병의원이 선택되지 않았습니다.","E999");
- return;
- }
-
- if(grd_deptlist.row < 1){
- messageBox("과 선택이 되지 않았습니다.","E999");
- return;
- }
-
-
- fSetReturn();
- window.close();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" style="left:515px; top:465px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:0px; top:70px; width:152px; height:13px; ">병의원 선택</caption>
- <caption id="caption3" class="tit_2" style="left:770px; top:70px; width:152px; height:14px; ">과 선택</caption>
- <datagrid id="grd_deptlist" nodeset="/root/main/deptinfo/deptlist" caption="이름" colsep="^" colwidth="198" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:770px; top:85px; width:213px; height:371px; ">
- <col ref="departmentname"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_hosplist.row < 1){
- messageBox("병의원이 선택되지 않았습니다.","E999");
- return;
- }
-
- if(grd_deptlist.row < 1){
- messageBox("과 선택이 되지 않았습니다.","E999");
- return;
- }
-
-
- fSetReturn();
- window.close();
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|