123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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>
- <patlist/>
- <patinfo>
- <hngnm/>
- <hngnm2/>
- <newhngnm2/>
- </patinfo>
- </main>
- <send>
- <pid/>
- <hngnm2/>
- <autoyn/>
- <hngnm/>
- </send>
- <init/>
- <hidden>
- <patinfo>
- <hngnm2/>
- </patinfo>
- </hidden>
- </root>
- </instance>
- <submission id="TRPMC07300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patlist"/>
- <submission id="TXPMC07301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/patinfo"/>
- <submission id="TRPMC07302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfo"/>
- <submission id="TRPMC07303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfo"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 수동저장
- function fSave(pid, hngnm2) {
-
- model.setValue("/root/send/autoyn", "N");
-
- if (submit("TXPMC07301")) {
-
- messageBox("저장되었습니다.", "I000");
- }
-
- return hngnm2;
- }
-
- // 화면호출없이 자동으로 중복제거 후 등록
- function fAutoSave(pid, hngnm) {
-
- model.setValue("/root/send/pid", pid);
- model.setValue("/root/send/hngnm", hngnm);
- model.setValue("/root/send/autoyn", "Y");
-
- submit("TXPMC07301");
-
- var hngnm2 = model.getValue("/root/hidden/patinfo/hngnm2");
-
- return hngnm2;
- }
-
- // 동명이인 대상 리스트 취득
- function fSearch(pid) {
-
- model.setValue("/root/send/pid", pid);
- model.setValue("/root/main/patinfo/hngnm", "");
- model.setValue("/root/main/patinfo/hngnm2", "");
-
- submit("TRPMC07302");
- submit("TRPMC07300");
- if (datagrid1.rows <= 1) {
- messageBox("동명이인 환자가 존재하지 않습니다.", "I000")
- }
- }
-
- // 중복되지 않는 표시명 취득
- function fGetNewHngnm2(pid, hngnm) {
-
- model.setValue("/root/send/pid", pid);
- model.setValue("/root/send/hngnm", hngnm);
-
- submit("TRPMC07303");
-
- return model.getValue("/root/main/patinfo/newhngnm2");
- }
-
- ]]>
- </script>
- <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/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="580" pageheight="370" style="margin-left:8; margin-top:0; margin-right:0; margin-bottom:0; ">
- <datagrid id="datagrid1" nodeset="/root/main/patlist" caption="환자번호^성명^표시명^입원일자^상태^병동^병실" colsep="^" colwidth="80, 80, 80, 80, 40, 120, 52" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:110px; width:550px; height:249px; ">
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="hngnm2"/>
- <col ref="indd"/>
- <col ref="indschacptstat"/>
- <col ref="wardnm"/>
- <col ref="roomcd"/>
- </datagrid>
- <input id="input1" ref="/root/send/pid" navindex="1" style="left:109px; top:32px; width:93px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- setInputNodeCurText();
- button1.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="button1" class="icon_search" navindex="2" style="left:209px; top:33px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/send/pid");
-
- if (isNull(pid)) {
-
- messageBox("환자번호는 필수입니다.", "C000");
- return;
- }
-
- fSearch(pid);
- ]]>
- </script>
- </button>
- <caption id="caption2" class="cell_1" style="left:308px; top:54px; width:82px; height:20px; ">수정표시명</caption>
- <input id="input2" ref="/root/send/hngnm2" navindex="3" style="left:392px; top:54px; width:98px; height:19px; "/>
- <button id="button2" class="btn4_letter2" navindex="4" style="left:499px; top:53px; width:56px; height:22px; text-align:left; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/send/pid")
- var hngnm2 = model.getValue("/root/send/hngnm2");
-
- // 필수값 체크
- if (isNull(pid) || isNull(hngnm2)) {
- messageBox("환자번호 및 표시명은 필수입니다.", "C000");
- return;
- }
-
- // 중복체크
- for (i = 0; i < datagrid1.rows; i++) {
-
- if (model.getValue("/root/main/patlist[" + i + "]/hngnm2") == hngnm2) {
-
- // 동일한 이름이 존재
- messageBox("동일한 표시명이 존재합니다. 표시명을 수정하십시요.", "C000");
-
- return;
- }
-
- }
-
- // 저장
- fSave(pid, hngnm2);
- ]]>
- </script>
- </button>
- <caption id="caption3" style="left:300px; top:35px; width:258px; height:15px; color:#ff0000; text-align:center; ">
- <![CDATA[* 동명이인환자 리스트를 참고하여 수정 *]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fAutoSave(model.getValue("/root/send/pid"), model.getValue("/root/send/hngnm2"));
- ]]>
- </script>
- </caption>
- <caption id="caption4" class="cell_1" visibility="visible" style="left:6px; top:54px; width:101px; height:20px; ">성명/현표시명</caption>
- <input id="input3" ref="/root/main/patinfo/hngnm" disabled="true" style="left:109px; top:54px; width:93px; height:19px; "/>
- <input id="input4" ref="/root/main/patinfo/hngnm2" disabled="true" style="left:201px; top:54px; width:98px; height:19px; "/>
- <caption id="caption5" class="tit_2" style="left:6px; top:10px; width:100px; height:13px; ">환자정보</caption>
- <caption id="caption6" class="tit_2" style="left:5px; top:90px; width:139px; height:13px; ">동명이인환자 리스트</caption>
- <line id="line1" class="line_1" style="x1:5px; y1:25px; x2:555px; y2:25px; "/>
- <line id="line2" class="line_1" style="x1:5px; y1:105px; x2:555px; y2:105px; "/>
- <caption id="caption7" class="cell_1" visibility="visible" style="left:6px; top:32px; width:101px; height:20px; ">환자번호</caption>
- </xhtml:body>
- </xhtml:html>
|