123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337 |
- <?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>
- <hospiceinfo>
- <pid/>
- <cretno/>
- <cretdt/>
- <indd/>
- <seqno/>
- <hngnm/>
- <sexage/>
- <rrgstno/>
- <hosecnt/>
- <recdd/>
- </hospiceinfo>
- <hospicefamy>
- <famylist>
- <status/>
- <maincarednor/>
- <famyrel/>
- <famynm/>
- <addr/>
- <cntctel/>
- <marytypeflag/>
- <cmt/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseq/>
- <detladdr/>
- <separationfamyyn/>
- <zipcode/>
- <pid/>
- <cretseqno/>
- <instcd/>
- <address/>
- </famylist>
- </hospicefamy>
- </main>
- <send/>
- <hidden/>
- <init>
- <pid/>
- <M0206list>
- <cdid/>
- <cdnm/>
- </M0206list>
- <M0204list>
- <cdid/>
- <cdnm/>
- </M0204list>
- </init>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../emr/agonalcareweb/js/SMMNH03500.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- zbcfGetCodeList(new Array("M0206","M0204"), new Array("/root/init/M0206list","/root/init/M0204list"));
-
- fSearch();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMNH03501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/hospiceinfo"/>
- <submission id="TRMNH03502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/hospicefamy"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var soclstatpatflag ; //환자
- var soclstatprocerflag ; //보호자
- var mainprocerflag ; //주보호자
- var ordamtownflag ; //진료비 부담자
- var deptcd; //부서
- var atdoctnm; //주치의
- var econstatcd; //경제상태
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="700" pageheight="300" guideline="1,1232;1,1228;1,1234;1,1246;1,1226;1,-3;2,604;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:230px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">환자가족 등록</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:13px; width:677px; height:267px; ">
- <caption id="caption51" class="cell_1" style="left:148px; top:11px; width:49px; height:23px; text-align:center; vertical-align:middle; ">환자명</caption>
- <caption id="caption52" class="cell_1" style="left:0px; top:11px; width:74px; height:23px; text-align:center; vertical-align:middle; ">등록번호</caption>
- <input id="ipt_pid" ref="/root/main/hospiceinfo/pid" class="output_fix" maxlength="10" style="left:77px; top:13px; width:68px; height:19px; "/>
- <output id="opt_hngnm" ref="/root/main/hospiceinfo/hngnm" class="output_fix" style="left:200px; top:13px; width:71px; height:19px; "/>
- <line id="line34" class="line_1" style="x1:0px; y1:6px; x2:667px; y2:6px; "/>
- <caption id="caption54" class="cell_1" style="left:272px; top:11px; width:74px; height:23px; text-align:center; vertical-align:middle; ">S/A</caption>
- <output id="opt_sexage" ref="/root/main/hospiceinfo/sexage" class="output_fix" style="left:349px; top:13px; width:68px; height:19px; "/>
- <caption id="caption55" class="cell_1" style="left:419px; top:11px; width:74px; height:23px; text-align:center; vertical-align:middle; ">주민번호</caption>
- <output id="opt_rrgstno" ref="/root/main/hospiceinfo/rrgstno" class="output_fix" style="left:497px; top:13px; width:109px; height:19px; "/>
- <line id="line35" class="line_3" style="x1:0px; y1:35px; x2:667px; y2:35px; "/>
- <datagrid id="grd_famylist" nodeset="/root/main/hospicefamy/famylist" scroll="auto" caption="주보호자^가족관계^이름^주소^전화번호^결혼형태^비고^zipcd1^zipcd2^zipcdseq^detladdr^separationfamyyn^pid^btn" colsep="^" colwidth="70, 69, 58, 219, 98, 67, 78, 0, 0, 0, 0, 0, 0, 0" defaultrows="1" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:667px; height:192px; ">
- <col ref="maincarednor" type="output"/>
- <col disabled="true" ref="famyrel" type="combo">
- <choices>
- <itemset nodeset="/root/init/M0204list/M0204">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="famynm"/>
- <col ref="addr"/>
- <col ref="cntctel"/>
- <col disabled="true" ref="marytypeflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/M0206list/M0206">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cmt"/>
- <col ref="zipcd1"/>
- <col ref="zipcd2"/>
- <col ref="zipcdseq"/>
- <col ref="detladdr"/>
- <col ref="separationfamyyn"/>
- <col ref="pid"/>
- <col ref="address"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- iRow = grd_famylist.row;
-
- var famyrel_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/famyrel"
- var zipcd1_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/zipcd1"
- var zipcd2_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/zipcd2"
- var zipcdseq_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/zipcdseq"
- var detladdr_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/detladdr"
- var addr_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/addr"
- var marytypeflag_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/marytypeflag"
- var cntctel_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/cntctel"
- var famynm_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/famynm"
- var maincarednor_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/maincarednor"
- var cmt_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/cmt"
- var address_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/address"
- //var btn_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/btn"
-
-
- var famyrel = model.getValue("/root/main/hospicefamy/famylist"+"["+iRow+"]/famyrel")
- var zipcd1 = model.getValue("/root/main/hospicefamy/famylist"+"["+iRow+"]/zipcd1")
- var zipcd2 = model.getValue("/root/main/hospicefamy/famylist"+"["+iRow+"]/zipcd2")
- var zipcdseq = model.getValue("/root/main/hospicefamy/famylist"+"["+iRow+"]/zipcdseq")
- var detladdr = model.getValue("/root/main/hospicefamy/famylist"+"["+iRow+"]/detladdr")
- var addr = model.getValue("/root/main/hospicefamy/famylist"+"["+iRow+"]/addr")
- var marytypeflag = model.getValue("/root/main/hospicefamy/famylist"+"["+iRow+"]/marytypeflag")
- var cntctel = model.getValue("/root/main/hospicefamy/famylist"+"["+iRow+"]/cntctel")
- var famynm = model.getValue("/root/main/hospicefamy/famylist"+"["+iRow+"]/famynm")
- var maincarednor = model.getValue("/root/main/hospicefamy/famylist"+"["+iRow+"]/maincarednor")
- var cmt = model.getValue("/root/main/hospicefamy/famylist"+"["+iRow+"]/cmt")
- var address = model.getValue("/root/main/hospicefamy/famylist"+"["+iRow+"]/address")
- //var btn = model.getValue("/root/main/hospicefamy/famylist"+"["+iRow+"]/btn")
-
- setParameter("cretno", model.getValue("/root/main/hospiceinfo/cret"));
- setParameter("indd", model.getValue("/root/main/hospiceinfo/indd"));
- setParameter("pid", model.getValue("/root/main/hospiceinfo/pid"));
-
- setParameter("famyrel_path", famyrel_path);
- setParameter("zipcd1_path", zipcd1_path);
- setParameter("zipcd2_path", zipcd2_path);
- setParameter("zipcdseq_path", zipcdseq_path);
- setParameter("detladdr_path", detladdr_path);
- setParameter("addr_path", addr_path);
- setParameter("marytypeflag_path", marytypeflag_path);
- setParameter("cntctel_path", cntctel_path);
- setParameter("famynm_path", famynm_path);
- setParameter("maincarednor_path", maincarednor_path);
- setParameter("cmt_path", cmt_path);
- setParameter("address_path", address_path);
- //setParameter("btn_path", btn_path);
-
- setParameter("famyrel", famyrel);
- setParameter("zipcd1", zipcd1);
- setParameter("zipcd2", zipcd2);
- setParameter("zipcdseq", zipcdseq);
- setParameter("detladdr", detladdr);
- setParameter("addr", addr);
- setParameter("marytypeflag", marytypeflag);
- setParameter("cntctel", cntctel);
- setParameter("famynm", famynm);
- setParameter("maincarednor", maincarednor);
- setParameter("cmt", cmt);
- setParameter("address", address);
- //setParameter("btn", btn);
-
-
- var left = event.screenX-200;
- var top = event.screenY-250;
- modal("SMMNH03000",1,left,top);
-
- model.setValue("/root/main/hospicefamy/famylist"+"["+iRow+"]/pid",model.getValue("/root/main/hospiceinfo/pid"));
-
- //환자가족 취소시 인서트한 마지막줄 삭제.
- //if(model.getValue("/root/main/hospicefamy/famylist"+"["+iRow+"]/btn")=="C"){
- //grd_famylist.deleteItem(grd_famylist.row);
- //}
-
- clearParameter("famyrel_path");
- clearParameter("zipcd1_path");
- clearParameter("zipcd2_path");
- clearParameter("zipcdseq_path");
- clearParameter("detladdr_path");
- clearParameter("addr_path");
- clearParameter("marytypeflag_path");
- clearParameter("cntctel_path");
- clearParameter("famynm_path");
- clearParameter("maincarednor_path");
- clearParameter("cmt_path");
- clearParameter("address_path");
- //clearParameter("btn_path");
-
- clearParameter("famyrel");
- clearParameter("zipcd1");
- clearParameter("zipcd2");
- clearParameter("zipcdseq");
- clearParameter("detladdr");
- clearParameter("addr");
- clearParameter("marytypeflag");
- clearParameter("cntctel");
- clearParameter("famynm");
- clearParameter("maincarednor");
- clearParameter("cmt");
- clearParameter("address");
- //clearParameter("btn");
- ]]>
- </script>
- </datagrid>
- <button id="button90" class="btn5_letter2" navindex="59" style="left:490px; top:43px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("","Q002") != 6) return;
- fSave();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter4" style="left:602px; top:43px; width:64px; height:19px; ">
- <caption>한줄삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_famylist.deleteItem(grd_famylist.row);
- ]]>
- </script>
- </button>
- <button id="button12" class="btn2_letter4" style="left:536px; top:43px; width:64px; height:19px; ">
- <caption>한줄추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_famylist.addRow(true, true);
- iRow = grd_famylist.row;
-
- var famyrel_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/famyrel"
- var zipcd1_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/zipcd1"
- var zipcd2_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/zipcd2"
- var zipcdseq_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/zipcdseq"
- var detladdr_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/detladdr"
- var addr_path ="/root/main/hospicefamy/famylist"+"["+iRow+"]/addr"
- var address_path ="/root/main/hospicefamy/famylist"+"["+iRow+"]/address"
- var marytypeflag_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/marytypeflag"
- var cntctel_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/cntctel"
- var famynm_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/famynm"
- var maincarednor_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/maincarednor"
- var cmt_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/cmt"
- //var btn_path = "/root/main/hospicefamy/famylist"+"["+iRow+"]/btn"
- setParameter("cretno", model.getValue("/root/main/hospiceinfo/cret"));
- setParameter("indd", model.getValue("/root/main/hospiceinfo/indd"));
- setParameter("pid", model.getValue("/root/main/hospiceinfo/pid"));
-
- setParameter("famyrel_path", famyrel_path);
- setParameter("zipcd1_path", zipcd1_path);
- setParameter("zipcd2_path", zipcd2_path);
- setParameter("zipcdseq_path", zipcdseq_path);
- setParameter("detladdr_path", detladdr_path);
- setParameter("addr_path", addr_path);
- setParameter("address_path", address_path);
- setParameter("marytypeflag_path", marytypeflag_path);
- setParameter("cntctel_path", cntctel_path);
- setParameter("famynm_path", famynm_path);
- setParameter("maincarednor_path", maincarednor_path);
- setParameter("cmt_path", cmt_path);
- //setParameter("btn_path", btn_path);
-
-
- var left = event.screenX+200;
- var top = event.screenY+250;
- modal("SMMNH03000",1,left,top);
-
- model.setValue("/root/main/hospicefamy/famylist"+"["+iRow+"]/pid",model.getValue("/root/main/hospiceinfo/pid"));
-
- //환자가족 취소시 인서트한 마지막줄 삭제.
- if( (model.getValue(maincarednor_path) == "" )&&
- (model.getValue(famyrel_path) == "" )&&
- (model.getValue(famynm_path) == "" )&&
- (model.getValue(addr_path) == "" )&&
- (model.getValue(cntctel_path) == "" )&&
- (model.getValue(marytypeflag_path) == "" )&&
- (model.getValue(cmt_path) == "" ) )
- {
- grd_famylist.deleteItem(grd_famylist.row);
- }
-
- clearParameter("famyrel_path");
- clearParameter("zipcd1_path");
- clearParameter("zipcd2_path");
- clearParameter("zipcdseq_path");
- clearParameter("detladdr_path");
- clearParameter("addr_path");
- clearParameter("address_path");
- clearParameter("marytypeflag_path");
- clearParameter("cntctel_path");
- clearParameter("famynm_path");
- clearParameter("maincarednor_path");
- clearParameter("cmt_path");
- //clearParameter("btn_path");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|