1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <data1>
- <ddflag/>
- <fromdd/>
- <todd/>
- </data1>
- <data2>
- <sess_posinstcd>012</sess_posinstcd>
- </data2>
- <data3>
- <pid/>
- <indd/>
- </data3>
- <data4>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </data4>
- <data5>
- <s_tlpm>
- <tlpm/>
- </s_tlpm>
- </data5>
- <data6>
- <hngnm/>
- <mode/>
- <rrgstno1/>
- <rrgstno2/>
- </data6>
- </send>
- <main>
- <ptbs>
- <ptbs_status/>
- <ptbs_pid/>
- <ptbs_hngnm/>
- <ptbs_engnm/>
- <ptbs_rrgstno1/>
- <ptbs_rrgstno2/>
- <ptbs_brthdd/>
- <ptbs_sex/>
- <ptbs_age/>
- <ptbs_hometel/>
- <ptbs_mpphontel/>
- <ptbs_zipcd1/>
- <ptbs_zipcd2/>
- <ptbs_zipcdseq/>
- <ptbs_zipnm/>
- <ptbs_detladdr/>
- <ptbs_forgeryn/>
- <ptbs_recmyn/>
- <ptbs_recmerid/>
- <ptbs_vipyn/>
- <ptbs_religncd/>
- <ptbs_remfact/>
- <ptbs_inhospyn/>
- </ptbs>
- <tlpm>
- <tlpm_status/>
- <tlpm_pid/>
- <tlpm_indd/>
- <tlpm_instcd/>
- <tlpm_arvdd/>
- <tlpm_issdd/>
- <tlpm_travno/>
- <tlpm_curetermfromdd/>
- <tlpm_curetermtodd/>
- <tlpm_reqdd/>
- <tlpm_reqinstnmcd/>
- <tlpm_procinsnmcd/>
- <tlpm_procinsnm/>
- <tlpm_discvplce/>
- <tlpm_mngtcnts/>
- <tlpm_fstrgstrid/>
- <tlpm_fstrgstdt/>
- <tlpm_lastupdtrid/>
- <tlpm_lastupdtdt/>
- </tlpm>
- <inpt>
- <inpt_orddeptcd/>
- <inpt_medispclid/>
- <inpt_atdoctid/>
- <inpt_insukind/>
- <inpt_indd/>
- <inpt_dschdd/>
- <inpt_inpath/>
- <inpt_specordyn/>
- <inpt_suppkind/>
- <inpt_insucd/>
- </inpt>
- <otpt>
- <otpt_orddd/>
- <otpt_insukind/>
- <otpt_suppkind/>
- <otpt_orddrid/>
- <otpt_orddeptcd/>
- <otpt_specordyn/>
- <otpt_insucd/>
- </otpt>
- <tlpmlist>
- <grdtravpatlist/>
- </tlpmlist>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <hidden>
- <original>
- </original>
- <rcv>
- <ptbs>
- <ptbs_status/>
- <ptbs_pid/>
- <ptbs_hngnm/>
- <ptbs_engnm/>
- <ptbs_rrgstno1/>
- <ptbs_rrgstno2/>
- <ptbs_brthdd/>
- <ptbs_sex/>
- <ptbs_age/>
- <ptbs_hometel/>
- <ptbs_mpphontel/>
- <ptbs_zipcd1/>
- <ptbs_zipcd2/>
- <ptbs_zipnm/>
- <ptbs_detladdr/>
- <ptbs_forgeryn/>
- <ptbs_recmyn/>
- <ptbs_recmerid/>
- <ptbs_vipyn/>
- <ptbs_religncd/>
- <ptbs_remfact/>
- <ptbs_inhospyn/>
- </ptbs>
- <tlpm>
- <tlpm_status/>
- <tlpm_pid/>
- <tlpm_indd/>
- <tlpm_instcd/>
- <tlpm_arvdd/>
- <tlpm_issdd/>
- <tlpm_travno/>
- <tlpm_curetermfromdd/>
- <tlpm_curetermtodd/>
- <tlpm_reqdd/>
- <tlpm_reqinstnmcd/>
- <tlpm_procinsnmcd/>
- <tlpm_procinsnm/>
- <tlpm_discvplce/>
- <tlpm_mngtcnts/>
- <tlpm_fstrgstrid/>
- <tlpm_fstrgstdt/>
- <tlpm_lastupdtrid/>
- <tlpm_lastupdtdt/>
- </tlpm>
- <inpt>
- <inpt_orddeptcd/>
- <inpt_medispclid/>
- <inpt_atdoctid/>
- <inpt_insukind/>
- <inpt_indd/>
- <inpt_dschdd/>
- <inpt_inpath/>
- <inpt_specordyn/>
- <inpt_insucd/>
- </inpt>
- <otpt>
- <otpt_insukind/>
- <otpt_suppkind/>
- <otpt_orddrid/>
- <otpt_orddeptcd/>
- <otpt_specordyn/>
- <otpt_orddd/>
- <otpt_insucd/>
- </otpt>
- </rcv>
- <init>
- <disccd>
- <cd/>
- <nm/>
- </disccd>
- <insukind>
- <cd/>
- <nm/>
- </insukind>
- <suppkind>
- <cd/>
- <nm/>
- <up/>
- <io/>
- </suppkind>
- <orddeptcd>
- <cd/>
- <nm/>
- </orddeptcd>
- <orddrid>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddrid>
- <flag>
- <prestdd/>
- <mskindflag/>
- </flag>
- <wardcd>
- <cd/>
- <nm/>
- <of/>
- </wardcd>
- <roomcd>
- <cd/>
- <nm/>
- <wd/>
- </roomcd>
- </init>
- <rcvflag>
- <flag>
- <chkcount/>
- </flag>
- </rcvflag>
- <check>
- <ptbs>
- <ptbs_status/>
- <ptbs_pid/>
- <ptbs_hngnm/>
- <ptbs_engnm/>
- <ptbs_rrgstno1/>
- <ptbs_rrgstno2/>
- <ptbs_brthdd/>
- <ptbs_sex/>
- <ptbs_age/>
- <ptbs_hometel/>
- <ptbs_mpphontel/>
- <ptbs_zipcd1/>
- <ptbs_zipcd2/>
- <ptbs_zipnm/>
- <ptbs_detladdr/>
- <ptbs_forgeryn/>
- <ptbs_recmyn/>
- <ptbs_recmerid/>
- <ptbs_vipyn/>
- <ptbs_religncd/>
- <ptbs_remfact/>
- <ptbs_inhospyn/>
- </ptbs>
- </check>
- <popup>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <insuflag/>
- <srchcnts/>
- </popup>
- <saveflag/>
- </hidden>
- <init>
- <P0002list>
- <P0002>
- <cdnm/>
- <cdid/>
- </P0002>
- </P0002list>
- </init>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/init"/>
- <submission id="TRPMC00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/tlpmlist"/>
- <submission id="TRPMC00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/rcv"/>
- <submission id="TRPMC00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/rcvflag"/>
- <submission id="TXPMC00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5" resultref="/root/hidden/saveflag"/>
- <submission id="TRPMI00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data6" resultref="/root/hidden/check"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fInitialize(initflag)
- {
- switch(initflag) {
-
- case "0":
- model.resetInstanceNode("/root/send/data3");
- model.resetInstanceNode("/root/send/data4");
- model.resetInstanceNode("/root/send/data5");
- model.resetInstanceNode("/root/main");
- model.resetInstanceNode("/root/hidden/original");
- model.resetInstanceNode("/root/hidden/rcv");
- model.resetInstanceNode("/root/hidden/rcvflag");
- model.resetInstanceNode("/root/hidden/saveflag");
- model.refresh();
- break;
- case "1":
- model.resetInstanceNode("/root/send/data3");
- model.resetInstanceNode("/root/send/data4");
- model.resetInstanceNode("/root/send/data5");
- model.resetInstanceNode("/root/main/ptbs");
- model.resetInstanceNode("/root/main/tlpm");
- model.resetInstanceNode("/root/main/inpt");
- model.resetInstanceNode("/root/main/otpt");
- model.resetInstanceNode("/root/hidden/original");
- model.resetInstanceNode("/root/hidden/rcv");
- model.resetInstanceNode("/root/hidden/rcvflag");
- model.resetInstanceNode("/root/hidden/saveflag");
- model.refresh();
- break;
- default:
- }
- }
-
- function fPatInfoSrch()
- {
- if (submit("TRPMC00702")) {
-
- var iptbscnt = getNodesetCount("/root/hidden/rcv/ptbs");
- var itlpmcnt = getNodesetCount("/root/hidden/rcv/tlpm");
- var iinptcnt = getNodesetCount("/root/hidden/rcv/inpt");
- var iotptcnt = getNodesetCount("/root/hidden/rcv/otpt");
-
- if (iinptcnt > 0) {
- copyNodeType("/root/main/inpt","/root/hidden/rcv/inpt","replace");
- } else {
- if(iotptcnt > 0) {
- copyNodeType("/root/main/otpt","/root/hidden/rcv/otpt","replace");
- model.setValue("/root/main/inpt/inpt_indd",model.getValue("/root/main/otpt/otpt_orddd"));
- model.setValue("/root/main/inpt/inpt_insucd",model.getValue("/root/main/otpt/otpt_insucd"));
- model.setValue("/root/main/inpt/inpt_insukind",model.getValue("/root/main/otpt/otpt_insukind"));
- model.setValue("/root/main/inpt/inpt_suppkind",model.getValue("/root/main/otpt/otpt_suppkind"));
- model.setValue("/root/main/inpt/inpt_medispclid",model.getValue("/root/main/otpt/otpt_orddrid"));
- model.setValue("/root/main/inpt/inpt_orddeptcd",model.getValue("/root/main/otpt/otpt_orddeptcd"));
- model.setValue("/root/main/inpt/inpt_specordyn",model.getValue("/root/main/otpt/otpt_specordyn"));
- } else {
- messageBox("환자의 외래,입원 내역이","I004");
- model.resetInstanceNode("/root/main/ptbs");
- model.resetInstanceNode("/root/main/tlpm");
- model.resetInstanceNode("/root/main/inpt");
- model.resetInstanceNode("/root/main/otpt");
-
- model.setFocus("ipt_pid");
-
- model.refresh();
- return false;
- }
- }
-
- if (iptbscnt > 0) {
- copyNodeType("/root/main/ptbs","/root/hidden/rcv/ptbs","replace");
- } else {
- messageBox("환자인적이","I004");
- model.resetInstanceNode("/root/main/ptbs");
- model.resetInstanceNode("/root/main/tlpm");
- model.resetInstanceNode("/root/main/inpt");
- model.resetInstanceNode("/root/main/otpt");
-
- model.setFocus("ipt_pid");
-
- model.refresh();
- return false;
- }
-
- if (itlpmcnt > 0) {
- copyNodeType("/root/main/tlpm","/root/hidden/rcv/tlpm","replace");
- copyNodeType("/root/hidden/original","/root/hidden/rcv","replace");
- } else {
- model.resetInstanceNode("/root/main/tlpm");
- }
- model.refresh();
- }
-
- }
- function fRrgstNo1Veri()
- {
- var ptbs_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
-
- if (ptbs_rrgstno1 != null && ptbs_rrgstno1 != "" && ptbs_rrgstno1 != " " && ptbs_rrgstno1 != "-")
- {
- if (ptbs_rrgstno1.length != 6)
- {
- messageBox("주민번호1은 6자리여야 합니다!","E999","");
- model.setFocus("ptbs_rrgstno1");
- model.refresh();
- return false;
- }
-
- if (ptbs_rrgstno1.isNumber() != true)
- {
- messageBox("주민번호1은 숫자형태로 입력되어야 합니다!","E999","");
- model.setFocus("ptbs_rrgstno1");
- model.refresh();
- return false;
- }
- }
- else
- {
- messageBox("주민번호1은 6자리여야 합니다!","E999","");
- model.setFocus("ptbs_rrgstno1");
- model.refresh();
- return false;
- }
- }
-
- function fRrgstNo2Veri()
- {
- var ptbs_brthdd;
- var ptbs_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
- var ptbs_rrgstno2 = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
-
- if (ptbs_rrgstno1.length != 6)
- {
- messageBox("환자주민번호1은 6자리입니다!","E999","");
- model.setFocus("ipt_rrgstno1");
- return false;
- }
- if (ptbs_rrgstno2.length != 7)
- {
- messageBox("환자주민번호2은 7자리입니다!","E999","");
- model.setFocus("ipt_rrgstno2");
- return false;
- }
-
- var gubn = ptbs_rrgstno2.substr(0,1);
- switch(gubn){
- case '1' :
- case '2' :
- case '5' :
- case '6' :
- ptbs_brthdd = '19'.concat(ptbs_rrgstno1);
- break;
- case '3' :
- case '4' :
- case '7' :
- case '8' :
- ptbs_brthdd = '20'.concat(ptbs_rrgstno1);
- break;
- case '9' :
- case '0' :
- ptbs_brthdd = '18'.concat(ptbs_rrgstno1);
- break;
- default :
- ptbs_brthdd = '19'.concat(ptbs_rrgstno1);
- break;
- }
-
- model.setValue("/root/main/ptbs/ptbs_brthdd",ptbs_brthdd);
-
- if (isValidDateTime(ptbs_brthdd, "YYYYMMDD") == false)
- {
- messageBox("주민번호 앞6자리 형식오류입니다. 올바른 일자형태로 입력하십시요!","E999","");
- model.setValue("/root/main/ptbs/ptbs_rrgstno1","");
- model.setValue("/root/main/ptbs/ptbs_rrgstno2","");
- model.setValue("/root/main/ptbs/ptbs_brthdd","");
- model.refresh();
- return false;
- }
- /*
- var ptbs_sex = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
- model.setValue("/root/main/ptbs/ptbs_sex",getGender(ptbs_sex));
-
- var ptbs_age = ptbs_rrgstno1;
- model.setValue("/root/main/ptbs/ptbs_age",getFullAge(model.getValue("/root/main/ptbs/ptbs_brthdd")));
- model.refresh();
-
- if (isResidentNo(ptbs_age) == false)
- {
- messageBox("유효하지 않은 주민번호입니다!","E999","");
- return false;
- }
- */
- }
-
- function fHngNmVeri(gubn)
- {
- var ptbs_hngnm;
- if (gubn == "xforms-next") ptbs_hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
- else if (gubn == "onkeypress" || gubn == "onkeyup")
- {
- ptbs_hngnm = (ipt_hngnm.currentText).toString();
- }
-
- //한글 한글자를 그냥 길이1로 계산
- if (eval((ptbs_hngnm.length).toString()) < 2)
- {
- messageBox("환자성명은 2글자 이상되어야 합니다!","E999","");
- model.setFocus("ipt_hngnm");
- return false;
- }
- }
-
- function fChangeCheck()
- {
- var tlpm_flag;
- var ins = document.models( 0 ).instances( 0 );
-
- var h_tlpm = ins.selectSingleNode("/root/hidden/original/tlpm");
- var o_tlpm = ins.selectSingleNode("/root/main/tlpm");
-
- // model.resetInstanceNode("/root/send/s_ptbs");
-
- if (h_tlpm == null) {
- tlpm_flag = null; // 데이터가 없으면 인스턴스 노드가 없다.
- } else if (o_tlpm == null) {
- tlpm_flag = null;
- } else if (h_tlpm.xml == o_tlpm.xml) {
- tlpm_flag = null;
- messageBox("변경사항이","I004");
- return false;
- } else if (h_tlpm.xml != o_tlpm.xml){
- tlpm_flag = 'u'
- model.setValue("/root/main/tlpm/tlpm_status",tlpm_flag);
- copyNodeType("/root/send/data5/s_tlpm","/root/main/tlpm","replace");
- return true;
- }
- }
- ]]>
- </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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0002"),new Array("/root/init/P0002list"));
-
- submit("TRPMI00106");
- var stodate = model.getValue("/root/hidden/init/flag/prestdd");
- model.setValue("/root/send/data1/fromdd",stodate.substr(0,8));
- model.setValue("/root/send/data1/todd",stodate.substr(0,8));
- model.setValue("/root/send/data1/ddflag","1");
- model.refresh();
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:300px; height:13px; ">행려환자관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <line id="line10" class="line_2" style="x1:0px; y1:152px; x2:1194px; y2:152px; "/>
- <line id="line4" class="line_3" style="x1:0px; y1:100px; x2:1194px; y2:100px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:76px; x2:1194px; y2:76px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:52px; x2:1194px; y2:52px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:170px; height:13px; ">인적사항</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <input id="input15" ref="/root/main/ptbs/ptbs_hometel" class="input_default" style="left:327px; top:55px; width:115px; height:19px; "/>
- <input id="input16" ref="/root/main/ptbs/ptbs_zipnm" class="input_default" style="left:177px; top:79px; width:170px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:1023px; top:30px; width:78px; height:23px; vertical-align:middle; ">입원경로</caption>
- <caption id="caption11" class="cell_1" style="left:0px; top:54px; width:80px; height:23px; vertical-align:middle; ">성명[한글]</caption>
- <caption id="caption12" class="cell_1" style="left:1023px; top:78px; width:78px; height:23px; vertical-align:middle; ">조합기호</caption>
- <caption id="caption14" class="cell_1" style="left:206px; top:54px; width:118px; height:23px; vertical-align:middle; ">연락처/휴대폰</caption>
- <caption id="caption15" class="cell_1" style="left:563px; top:78px; width:87px; height:23px; vertical-align:middle; ">보험유형</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:30px; width:80px; height:23px; vertical-align:middle; ">환자번호</caption>
- <caption id="caption8" class="cell_1" style="left:206px; top:30px; width:118px; height:23px; vertical-align:middle; ">주민번호/성별/나이</caption>
- <input id="input1" ref="/root/main/ptbs/ptbs_mpphontel" class="input_default" style="left:445px; top:55px; width:115px; height:19px; "/>
- <input id="input3" ref="/root/main/ptbs/ptbs_sex" class="input_default" style="left:491px; top:31px; width:33px; height:19px; "/>
- <input id="input4" ref="/root/main/ptbs/ptbs_age" class="input_default" style="left:527px; top:31px; width:33px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:0px; top:78px; width:80px; height:23px; vertical-align:middle; ">주소</caption>
- <input id="input9" ref="/root/main/ptbs/ptbs_zipcd1" class="input_default" style="left:83px; top:79px; width:33px; height:19px; "/>
- <input id="input10" ref="/root/main/ptbs/ptbs_zipcd2" class="input_default" style="left:119px; top:79px; width:33px; height:19px; "/>
- <input id="input14" ref="/root/main/ptbs/ptbs_detladdr" class="input_default" style="left:350px; top:79px; width:210px; height:19px; "/>
- <caption id="caption17" class="cell_1" style="left:1023px; top:54px; width:78px; height:23px; vertical-align:middle; ">선택진료</caption>
- <caption id="caption3" class="cell_1" style="left:563px; top:54px; width:87px; height:23px; vertical-align:middle; ">전문의/주치의</caption>
- <caption id="caption19" class="cell_1" style="left:206px; top:130px; width:90px; height:23px; vertical-align:middle; ">치료기간</caption>
- <caption id="caption20" class="cell_1" style="left:563px; top:30px; width:87px; height:23px; vertical-align:middle; ">진료과</caption>
- <caption id="caption22" class="tit_2" style="left:6px; top:210px; width:170px; height:13px; ">관리내역</caption>
- <line id="line5" class="line_1" style="x1:0px; y1:225px; x2:1194px; y2:225px; "/>
- <textarea id="textarea2" ref="/root/main/tlpm/tlpm_mngtcnts" navindex="14" style="left:0px; top:230px; width:1194px; height:77px; "/>
- <caption id="caption23" class="tit_2" style="left:5px; top:319px; width:214px; height:13px; ">행려환자 의료급여증 발급 대상자</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:334px; x2:1194px; y2:334px; "/>
- <caption id="caption25" class="cell_1" style="left:206px; top:154px; width:90px; height:23px; vertical-align:middle; ">행려번호</caption>
- <input id="input26" ref="/root/main/tlpm/tlpm_travno" class="input_default" navindex="11" format="999999-9999999" style="left:299px; top:155px; width:213px; height:19px; "/>
- <caption id="caption28" class="tit_2" style="left:5px; top:110px; width:170px; height:13px; ">등록내역</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:125px; x2:1194px; y2:125px; "/>
- <caption id="caption21" class="cell_1" style="left:515px; top:130px; width:80px; height:23px; vertical-align:middle; ">의뢰기관명</caption>
- <input id="input25" ref="/root/main/tlpm/tlpm_arvdd" class="input_default" navindex="5" inputtype="date" style="left:83px; top:131px; width:120px; height:19px; "/>
- <input id="input27" ref="/root/main/tlpm/tlpm_curetermfromdd" class="input_default" navindex="6" inputtype="date" style="left:299px; top:131px; width:97px; height:19px; "/>
- <input id="input29" ref="/root/main/tlpm/tlpm_curetermtodd" class="input_default" navindex="7" inputtype="date" style="left:415px; top:131px; width:97px; height:19px; "/>
- <caption id="caption29" class="cell_1" style="left:515px; top:154px; width:80px; height:23px; vertical-align:middle; ">의뢰일자</caption>
- <input id="input24" ref="/root/main/tlpm/tlpm_issdd" class="input_default" navindex="10" inputtype="date" style="left:83px; top:155px; width:120px; height:19px; "/>
- <input id="input30" ref="/root/main/tlpm/tlpm_reqdd" class="input_default" navindex="13" inputtype="date" style="left:598px; top:155px; width:113px; height:19px; "/>
- <caption id="caption30" class="cell_1" style="left:714px; top:154px; width:80px; height:23px; vertical-align:middle; ">발견장소</caption>
- <input id="input31" ref="/root/main/tlpm/tlpm_discvplce" class="input_default" navindex="9" style="left:797px; top:155px; width:286px; height:19px; "/>
- <caption id="caption31" class="cell_1" style="left:714px; top:130px; width:80px; height:23px; vertical-align:middle; ">보호기관명</caption>
- <caption id="caption32" class="search_no_b" style="left:399px; top:132px; width:12px; height:17px; ">~</caption>
- <caption id="caption34" class="cell_1" style="left:0px; top:130px; width:80px; height:23px; vertical-align:middle; ">도착일자</caption>
- <caption id="caption35" class="cell_1" style="left:0px; top:154px; width:80px; height:23px; vertical-align:middle; ">발급일자</caption>
- <caption id="caption36" class="cell_1" style="left:831px; top:30px; width:88px; height:23px; vertical-align:middle; ">외래/입원일자</caption>
- <caption id="caption37" class="cell_1" style="left:831px; top:54px; width:88px; height:23px; vertical-align:middle; ">퇴원일자</caption>
- <button id="button10" class="btn2_letter2" style="left:1152px; top:314px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_travpatlist.saveExcel(fileName, "SheetName", true, true, "", "");
- }
-
- window.exec(fileName);
-
- ]]>
- </script>
- </button>
- <line id="line9" class="line_3" style="x1:0px; y1:309px; x2:1194px; y2:309px; "/>
- <caption id="caption16" style="left:450px; top:316px; width:15px; height:11px; vertical-align:middle; ">~</caption>
- <input id="input35" ref="/root/send/data1/fromdd" class="input_default" inputtype="date" style="left:342px; top:313px; width:105px; height:19px; "/>
- <input id="input36" ref="/root/send/data1/todd" class="input_default" inputtype="date" style="left:465px; top:313px; width:105px; height:19px; "/>
- <button id="button9" class="btn5_letter2" style="left:1107px; top:314px; width:42px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRPMC00701");
- ]]>
- </script>
- </button>
- <line id="line11" class="line_3" style="x1:0px; y1:200px; x2:1194px; y2:200px; "/>
- <input id="input7" ref="/root/main/inpt/inpt_insucd" disabled="true" style="left:1104px; top:79px; width:90px; height:19px; "/>
- <select1 id="cmb_orddeptcd" ref="/root/main/inpt/inpt_orddeptcd" disabled="true" appearance="minimal" style="left:653px; top:31px; width:175px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_orddrid" ref="/root/main/inpt/inpt_medispclid" disabled="true" appearance="minimal" style="left:653px; top:55px; width:86px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_atdoctid" ref="/root/main/inpt/inpt_atdoctid" disabled="true" appearance="minimal" style="left:742px; top:55px; width:86px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_insukind" ref="/root/main/inpt/inpt_insukind" class="combo_default" disabled="true" appearance="minimal" style="left:653px; top:79px; width:175px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/insukind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_indd" ref="/root/main/inpt/inpt_indd" class="input_default" disabled="true" inputtype="date" style="left:922px; top:31px; width:98px; height:19px; "/>
- <input id="ipt_dschdd" ref="/root/main/inpt/inpt_dschdd" class="input_default" disabled="true" inputtype="date" style="left:922px; top:55px; width:98px; height:19px; "/>
- <select1 id="cmb_inpath" ref="/root/main/inpt/inpt_inpath" disabled="true" appearance="minimal" style="left:1104px; top:31px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0002list/P0002">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_specordyn" ref="/root/main/inpt/inpt_specordyn" disabled="true" appearance="full" cols="2" overflow="visible" style="left:1105px; top:57px; width:85px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_pid" ref="/root/main/ptbs/ptbs_pid" class="input_s_essential" navindex="1" maxlength="10" style="left:83px; top:31px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode=='13') {
-
- //조회전 클리어..
- model.resetInstanceNode("/root/send/data3");
- model.resetInstanceNode("/root/send/data4");
- model.resetInstanceNode("/root/send/data5");
-
- model.setValue("/root/main/ptbs/ptbs_pid",ipt_pid.currentText);
- model.setValue("/root/send/data3/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
- //환자인적조회 팝업 띄울때 필요한 값을 넣는다.
- model.setValue("/root/send/data4/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
- model.setValue("/root/send/data4/srchcond","1");
- fPatInfoSrch();
- //
- }
-
-
- ]]>
- </script>
- </input>
- <datagrid id="grd_travpatlist" nodeset="/root/main/tlpmlist/grdtravpatlist" caption="도착일자^등록번호^행려번호^성명^나이^진료과^구분^의뢰기관명^보호기관명^의뢰일자^발급일자^발견장소^입원일자" colsep="^" colwidth="91, 97, 108, 92, 43, 113, 87, 121, 121, 83, 85, 151, 100" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:339px; width:1194px; height:390px; ">
- <col disabled="true" ref="tlpm_arvdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="tlpm_pid" style="text-align:center; "/>
- <col disabled="true" ref="tlpm_travno" style="text-align:center; "/>
- <col disabled="true" ref="hngnm" style="text-align:center; "/>
- <col disabled="true" ref="age" style="text-align:center; "/>
- <col ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" style="text-align:center; "/>
- <col disabled="true" ref="tlpm_reqinstnmcd" style="text-align:center; "/>
- <col disabled="true" ref="tlpm_procinsnmcd" style="text-align:center; "/>
- <col disabled="true" ref="tlpm_reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="tlpm_issdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="tlpm_discvplce"/>
- <col disabled="true" ref="tlpm_indd"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- model.resetInstanceNode("/root/send/data3");
-
- var cur_row = grd_travpatlist.row;
- model.setValue("/root/send/data3/pid",model.getValue("/root/main/tlpmlist/grdtravpatlist["+ cur_row +"]/tlpm_pid"));
- model.setValue("/root/send/data3/indd",model.getValue("/root/main/tlpmlist/grdtravpatlist["+ cur_row +"]/tlpm_indd"));
-
- if (submit("TRPMC00702")) {
-
- copyNodeType("/root/main/ptbs","/root/hidden/rcv/ptbs","replace");
- copyNodeType("/root/main/tlpm","/root/hidden/rcv/tlpm","replace");
- copyNodeType("/root/main/inpt","/root/hidden/rcv/inpt","replace");
- copyNodeType("/root/hidden/original","/root/hidden/rcv","replace");
- model.refresh();
- }
-
-
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="cell_1" style="left:831px; top:78px; width:88px; height:23px; vertical-align:middle; ">보조유형</caption>
- <select1 id="combo2" ref="/root/main/inpt/inpt_suppkind" class="combo_default" disabled="true" appearance="minimal" style="left:922px; top:79px; width:98px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/suppkind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <input id="input2" ref="/root/main/ptbs/ptbs_zipcdseq" style="left:155px; top:79px; width:19px; height:19px; "/>
- <input id="ipt_hngnm" ref="/root/main/ptbs/ptbs_hngnm" class="input_s_essential" navindex="2" style="left:83px; top:55px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode=='13') {
-
- if (fHngNmVeri("onkeypress") == false) return;
- //조회전 클리어..
- model.resetInstanceNode("/root/send/data3");
- model.resetInstanceNode("/root/send/data4");
- model.resetInstanceNode("/root/send/data5");
- model.resetInstanceNode("/root/send/data6");
-
- model.setValue("/root/main/ptbs/ptbs_hngnm",ipt_hngnm.currentText);
- model.setValue("/root/send/data6/hngnm",model.getValue("/root/main/ptbs/ptbs_hngnm"));
- model.setValue("/root/send/data6/mode","1");
-
- submit("TRPMI00107");
-
- var ptbs_chkcnt = getNodesetCount("/root/hidden/check/ptbs");
- if (ptbs_chkcnt > 0) {
- //ptbs의 자료가 한개이상일 경우 팝업을 띄워준다.
- if (ptbs_chkcnt > 1) {
-
- model.setValue("/root/send/data4/hngnm",model.getValue("/root/main/ptbs/ptbs_hngnm"));
- model.setValue("/root/send/data4/srchcond","2");
-
- modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data4", "/root/send");
- if ( model.getValue("/root/main/popupendflag") == "ok" ) {
- model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/data3/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
- fPatInfoSrch();
- } else {
- return false;
- }
-
- } else {
- model.resetInstanceNode("/root/send/data3");
- model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/hidden/check/ptbs/ptbs_pid"));
- model.setValue("/root/send/data3/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
- fPatInfoSrch();
- }
-
- } else {
- messageBox("환자인적이","I004");
- model.resetInstanceNode("/root/main/ptbs");
- model.resetInstanceNode("/root/main/tlpm");
- model.resetInstanceNode("/root/main/inpt");
- model.refresh();
- return false;
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_rrgstno1" ref="/root/main/ptbs/ptbs_rrgstno1" class="input_s_essential" navindex="3" style="left:327px; top:31px; width:78px; height:19px; ">
- <script type="javascript" ev:event="xforms-next">
- <![CDATA[
- if (fRrgstNo1Veri() == false) return;
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- setInputNodeCurText();
- if (fRrgstNo1Veri() == false) return;
- }
- ]]>
- </script>
- </input>
- <input id="ipt_rrgstno2" ref="/root/main/ptbs/ptbs_rrgstno2" class="input_s_essential" navindex="4" style="left:408px; top:31px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-next">
- <![CDATA[
- if (fRrgstNo2Veri() == false) return;
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- setInputNodeCurText();
- if (fRrgstNo2Veri() == false) return;
- model.resetInstanceNode("/root/send/data3");
- model.resetInstanceNode("/root/send/data4");
- model.resetInstanceNode("/root/send/data5");
- model.resetInstanceNode("/root/send/data6");
-
- model.setValue("/root/main/ptbs/ptbs_rrgstno1",ipt_rrgstno1.currentText);
- model.setValue("/root/main/ptbs/ptbs_rrgstno2",ipt_rrgstno2.currentText);
-
- model.setValue("/root/send/data6/rrgstno1",model.getValue("/root/main/ptbs/ptbs_rrgstno1"));
- model.setValue("/root/send/data6/rrgstno2",model.getValue("/root/main/ptbs/ptbs_rrgstno2"));
-
- model.setValue("/root/send/data6/mode","1");
-
- submit("TRPMI00107");
-
- var ptbs_chkcnt = getNodesetCount("/root/hidden/check/ptbs");
- if (ptbs_chkcnt > 0) {
- //ptbs의 자료가 한개이상일 경우 팝업을 띄워준다.
- if (ptbs_chkcnt > 1) {
-
- model.setValue("/root/send/data4/rrgstno1",model.getValue("/root/main/ptbs/ptbs_rrgstno1"));
- model.setValue("/root/send/data4/rrgstno2",model.getValue("/root/main/ptbs/ptbs_rrgstno2"));
- model.setValue("/root/send/data4/srchcond","3");
-
- modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data4", "/root/send");
- if ( model.getValue("/root/main/popupendflag") == "ok" ) {
- model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/data3/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
- fPatInfoSrch();
- } else {
- return false;
- }
-
- } else {
- model.resetInstanceNode("/root/send/data3");
- model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/hidden/check/ptbs/ptbs_pid"));
- model.setValue("/root/send/data3/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
- fPatInfoSrch();
- }
-
- } else {
- messageBox("환자인적이","I004");
- model.resetInstanceNode("/root/main/ptbs");
- model.resetInstanceNode("/root/main/tlpm");
- model.resetInstanceNode("/root/main/inpt");
- model.refresh();
- return false;
- }
- }
- ]]>
- </script>
- </input>
- <input id="input5" ref="/root/main/tlpm/tlpm_procinsnm" style="left:797px; top:131px; width:135px; height:19px; "/>
- <button id="btn_insucd_search" class="icon_search" style="left:935px; top:134px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var tlpm_procinsnm = model.getValue("/root/main/tlpm/tlpm_procinsnm");
-
- model.setValue("/root/hidden/popup/insuflag","2");
- model.setValue("/root/hidden/popup/srchcnts",tlpm_procinsnm);
- // if (tlpm_procinsnm == null || tlpm_procinsnm == "" || tlpm_procinsnm == " " || tlpm_procinsnm == "-") {
- //
- // } else {
- // model.setValue("/root/hidden/popup/insuflag","2");
- // model.setValue("/root/hidden/popup/srchcnts",tlpm_procinsnm);
- // }
-
- modal("../../../pam/pamcomnweb/xrw/SPPMB01500", "1","400", "400", "SPPMB01500", "/root/hidden/popup", "/root/send");
-
- if (getParameter("SPPMB01500_RTN") == "N" || getParameter("SPPMB01500_RTN") == "") return;
-
- if (getParameter("SPPMB01500_RTN") == "Y") {
- var insucd = getParameter("SPPMB01500_insucd");
- var insucdnm = getParameter("SPPMB01500_insucdnm");
-
- model.setValue("/root/main/tlpm/tlpm_procinsnmcd", insucd);
- model.setValue("/root/main/tlpm/tlpm_procinsnm", insucdnm);
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/send/data1/ddflag" appearance="minimal" style="left:239px; top:313px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>발급일자</label>
- <value>1</value>
- </item>
- <item>
- <label>의뢰일자</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="input6" ref="/root/main/tlpm/tlpm_reqinstnmcd" style="left:598px; top:131px; width:113px; height:19px; "/>
- </group>
- <group id="group2" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button17" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize("0");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter2" style="left:1067px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //기존자료가 존재하는지를 체크한다.
- model.resetInstanceNode("/root/send/data3");
- model.resetInstanceNode("/root/hidden/rcvflag/flag/chkcount");
-
- var sPid = model.getValue("/root/main/ptbs/ptbs_pid");
- var sIndd = model.getValue("/root/main/inpt/inpt_indd");
-
- // 환자조회여부 체크
- if (isNull(sPid)) {
- messageBox("환자정보가 조회되지", "E007");
- return;
- }
-
- // 진료내역 존재여부 체크
- if (isNull(sIndd)) {
- messageBox("진료내역(외래/입원)이 없어서 등록", "E001");
- return;
- }
-
- model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
- model.setValue("/root/send/data3/indd", model.getValue("/root/main/inpt/inpt_indd"));
- submit("TRPMC00703")
-
- var ichkcount = model.getValue("/root/hidden/rcvflag/flag/chkcount");
- //데이터 존재 - 컨트롤 값이 변경되었는지 체크하여 변경시 업데이트
- if (ichkcount > 0) {
- if (fChangeCheck() == true) {
- submit("TXPMC00701");
- if (model.getValue("/root/hidden/saveflag/itlpmcnt/itlpm_cnt") > 0) {
- messageBox("변경","I001");
- fInitialize("1");
- }
- }
- //데이터 미존재 - 신규저장
- } else {
- model.setValue("/root/main/tlpm/tlpm_pid",model.getValue("/root/main/ptbs/ptbs_pid"));
- model.setValue("/root/main/tlpm/tlpm_indd",model.getValue("/root/main/inpt/inpt_indd"));
- model.setValue("/root/main/tlpm/tlpm_status","i");
- copyNodeType("/root/send/data5/s_tlpm","/root/main/tlpm","replace");
- if (submit("TXPMC00701")) {
- if (model.getValue("/root/hidden/saveflag/itlpmcnt/itlpm_cnt") > 0) {
- messageBox("저장","I001");
- fInitialize("1");
- }
- }
- }
-
-
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="button1" class="btn3_letter4" style="left:0px; top:5px; width:110px; height:20px; ">
- <caption>재원변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("../../../pam/ipatmngtweb/xrw/SMPMI00400", "1","50", "50", "SMPMI00400", "/root/source", "/root/send");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|