123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262 |
- <?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="">
- <main>
- <patinfo>
- <patinfolist>
- <pid/>
- <patnm/>
- <rrgstno1/>
- <rrgstno2visible/>
- <rrgstno2/>
- <homeTel/>
- <mpphontel/>
- <zipcd1/>
- <zipcd2/>
- <detladdr/>
- <wardcd/>
- <deptnm/>
- <roomcd/>
- </patinfolist>
- </patinfo>
- <cond>
- <refflag>1</refflag>
- <refnm/>
- </cond>
- </main>
- <send>
- <reqdata/>
- </send>
- <init>
- </init>
- <hidden>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var refnm = "";
- if (window.opener != null) {
- var refnm = opener.javascript.getParameter("refnm");
- }
-
- if( refnm == "" ) {
- model.setFocus("ipt_refnm");
- ipt_refnm.attribute("imemode") = "hangul";
- }else {//상위 페이지에서 검색어를 치고 들어온경우
- model.setValue("/root/main/cond/refnm", refnm);
- ipt_refnm.refresh();
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNP06101");
-
- var msg = model.getValue("/root/properties/error/msg");
- var refCnt = msg.substring(0, 1);
- if( refCnt == "0" ) {
- messageBox("조회된 결과가", "I004");
- model.setFocus("ipt_refnm");
- }
- }
- ]]>
- </script>
- <submission id="TRMNP06101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/patinfo/patinfolist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- /* -------------------------------------------------------*/
- /* model.getValue(); 를 함수로 만들었습니다. */
- /* param1 : node는 grid의 xPath입니다. */
- /* param2 : row는 grid에서 선택한 row값입니다. */
- /* param3 : element는 getvalue할 해당 element 명입니다. */
- /* */
- /* 해당 getvalue값을 return 해줍니다. */
- /* return 하지 않으면 해당값을 가져올 수 없습니다. */
- /* -------------------------------------------------------*/
-
- function fGetValue(node, row, element) {
- var rtnValue = model.getValue(node + "[" + row + "]/" + element);
- return rtnValue;
- }
-
- function fDblClick(pRow) {
- var iParam="";
- var iNode = "/root/main/patinfo/patinfolist";
-
- var iParam_pid = fGetValue(iNode, pRow, "pid");
- var iParam_patnm = fGetValue(iNode, pRow, "patnm");
- var iParam_rrgstno1 = fGetValue(iNode, pRow, "rrgstno1");
- var iParam_rrgstno2 = fGetValue(iNode, pRow, "rrgstno2");
- var iParam_hometel = fGetValue(iNode, pRow, "hometel");
- var iParam_mpphontel = fGetValue(iNode, pRow, "mpphontel");
- var iParam_zipcd1 = fGetValue(iNode, pRow, "zipcd1");
- var iParam_zipcd2 = fGetValue(iNode, pRow, "zipcd2");
- var iParam_detladdr = fGetValue(iNode, pRow, "detladdr");
- var iParam_wardcd = fGetValue(iNode, pRow, "wardcd");
- var iParam_roomcd = fGetValue(iNode, pRow, "roomcd");
- var iParam_patsearflag = "2";//환자번호 조회로 셋팅(조건명에 등록번호가 들어가므로)
-
- iParam = iParam_pid +"|"+ iParam_patnm +"|"
- + iParam_rrgstno1 +"|"+ iParam_rrgstno2 +"|"
- + iParam_hometel +"|"+ iParam_mpphontel +"|"
- + iParam_zipcd1 +"|"+ iParam_zipcd2 +"|"
- + iParam_detladdr +"|"+ iParam_wardcd +"|"
- + iParam_roomcd +"|"+ iParam_patsearflag;
-
- opener.javascript.setParameter("SendData", iParam);
- opener.javascript.setParameter("pid", iParam_pid);
- opener.javascript.setParameter("patnm", iParam_patnm);
-
- window.close();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="534" 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:518px; height:316px; ">
- <group id="group2" style="left:0px; top:0px; width:518px; height:35px; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:517px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:5px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="6" style="left:445px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var refnm = model.getValue("/root/main/cond/refnm");
- var refflag = model.getValue("/root/main/cond/refflag");
- var length = refnm.length;
-
- if( refflag == "1" ) {
- if( length < 2 ) {
- messageBox("검색어는 2자리 이상", "E008");
- model.setFocus("ipt_refnm");
- }else {
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNP06101");
-
- var msg = model.getValue("/root/hidden/error/msg");
- var refCnt = msg.substring(0, 1);
- if( refCnt == "0" ) {
- messageBox("조회된 결과가", "I004");
- model.setFocus("ipt_refnm");
- }
- }
- }else if( refflag == "2" ) {
- if( length < 4 ) {
- messageBox("검색어는 4자리 이상", "E008");
- model.setFocus("ipt_refnm");
- }else {
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNP06101");
-
- var msg = model.getValue("/root/hidden/error/msg");
- var refCnt = msg.substring(0, 1);
- if( refCnt == "0" ) {
- messageBox("조회된 결과가", "I004");
- model.setFocus("ipt_refnm");
- }
- }
- }
-
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:434px; y1:7px; x2:434px; y2:29px; border-color:#ffe4bb; "/>
- <select1 id="rdo_refflag" ref="/root/main/cond/refflag" appearance="full" cols="2" overflow="visible" style="left:90px; top:9px; width:130px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>환자명</label>
- <value>1</value>
- </item>
- <item>
- <label>등록번호</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("ipt_refnm");
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="search_name" style="left:225px; top:9px; width:86px; height:17px; ">조회조건 :</caption>
- <input id="ipt_refnm" ref="/root/main/cond/refnm" style="left:315px; top:8px; width:115px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- </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:517px; y2:60px; "/>
- <datagrid id="grd_patinfolist" nodeset="/root/main/patinfo/patinfolist" caption="등록번호^한글이름^주민등록번호^주민등록번호^주민번호hidden^집전화번호^휴대전화^우편번호^우편번호^상세주소^병동코드^부서명^병실코드" colsep="^" colwidth="87, 90, 60, 60, 0, 100, 100, 0, 0, 0, 0, 0, 0" dataheight="23" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" navindex="7" style="left:0px; top:65px; width:517px; height:230px; ">
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="rrgstno1" style="text-align:center; "/>
- <col ref="rrgstno2visible" style="text-align:center; "/>
- <col ref="rrgstno2" visibility="hidden"/>
- <col ref="homeTel" style="text-align:center; "/>
- <col ref="mpphontel" style="text-align:center; "/>
- <col ref="zipcd1" visibility="hidden"/>
- <col ref="zipcd2" visibility="hidden"/>
- <col ref="detladdr" visibility="hidden"/>
- <col ref="wardcd" visibility="hidden"/>
- <col ref="deptnm" visibility="hidden"/>
- <col ref="roomcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var iRow = -1;
-
- iRow = grd_patinfolist.row;
-
- if(iRow < 1)
- {
- messageBox("리스트에서 선택한 것이", "I004");
- return;
- }else
- {
- fDblClick(iRow);
- }
-
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:316px; width:518px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" navindex="8" style="left:402px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var iRow = -1;
-
- iRow = grd_patinfolist.row;
-
- if(iRow < 1)
- {
- messageBox("리스트에서 선택한 것이", "I004");
- return;
- }else
- {
- fDblClick(iRow);
- }
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" navindex="9" style="left:461px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|