123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766 |
- <?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>
- <popupendflag/>
- <patinfo>
- <patinfolist>
- <status/>
- <pid/>
- <factseq/>
- <sex/>
- <age/>
- <hngnm/>
- <engnm/>
- <rrgstno1/>
- <rrgstno2/>
- <clntgrde/>
- <telno/>
- <mpphon/>
- <tshirts/>
- <pants/>
- <height/>
- <bdwt/>
- <zipcd11/>
- <zipcd12/>
- <zipcdseq1/>
- <addr/>
- <detladdr1/>
- <emailid/>
- <emailtype/>
- <inclination/>
- <satsfctgrde/>
- <remfact/>
- <satsfctfact/>
- <complainfact/>
- <brthdd/>
- <lastupdtdt/>
- <cmpynm/>
- <nati/>
- <job/>
- <jobpos/>
- </patinfolist>
- <satsfctfactlist>
- <status/>
- <pid/>
- <factseq/>
- <lastupdtdt/>
- <satsfctgrde/>
- <satsfctfact/>
- </satsfctfactlist>
- <complainfactlist>
- <status/>
- <pid/>
- <factseq/>
- <lastupdtdt/>
- <satsfctgrde/>
- <complainfact/>
- </complainfactlist>
- <remfactlist>
- <lastupdtdt/>
- <remfact/>
- <factseq/>
- <pid/>
- <status/>
- </remfactlist>
- </patinfo>
- <result/>
- </main>
- <send>
- <pid/>
- <rrgstno1/>
- <rrgstno2/>
- <data1>
- <sess_posinstcd>012</sess_posinstcd>
- </data1>
- <updatedata>
- </updatedata>
- </send>
- <init>
- <A0118list>
- <A0118>
- <cdnm/>
- <cdid/>
- </A0118>
- </A0118list>
- <A0120list>
- <A0120>
- <cdnm/>
- <cdid/>
- </A0120>
- </A0120list>
- <baseinfo>
- <S920list/>
- </baseinfo>
- </init>
- <hidden>
- <source>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </source>
- <init>
- <disccd>
- <cd/>
- <nm/>
- </disccd>
- </init>
- <tmpnode>
- <patinfolist/>
- </tmpnode>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101"/>
- <submission id="TRAHA00001"/>
- <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/source" resultref="/root/main/result/patinfo"/>
- <submission id="TRAHA02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfo"/>
- <submission id="TXAHA02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/patinfo/patinfolist" resultref="/root/main/patinfo"/>
- <submission id="TXAHA02603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata"/>
- <submission id="TXAHA02604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata"/>
- </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/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../com/shortmsgweb/js/ZMS001.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.copyNode("/root/hidden/tmpnode/patinfolist", "/root/main/patinfo/patinfolist");
-
- //A0118 - 고객관리(등급) , A0120 - email
- zbcfGetCodeList(new Array( "A0118","A0120"),
- new Array( "/root/init/A0118list","/root/init/A0120list"));
- submit("TRZBC00101");
-
- healGetCodeList( new Array("S920"), new Array("/root/init/baseinfo/S920list"));
- /*
- var spid = model.getValue("/root/hidden/source/pid");
- if (spid != "") {
- model.resetInstanceNode("/root/main/result");
- model.makeNode("/root/main/result/patinfo");
- if(submit("TRPMC02500")) {
- //메인화면의 fSearch() 함수 콜!
- if (getNodesetCount("/root/main/result/patinfo/patinfolist") > 0 ){
- model.copyNode("/root/main/patinfo", "/root/main/result/patinfo");
- model.setValue("/root/main/popupendflag", "ok");
- } else{
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- model.resetInstanceNode("/root/main/detailinfo/patinsuinfo/patinsuinfolist");
- model.resetInstanceNode("/root/main/detailinfo/patdiscinfo/patdiscinfolist");
- fInitialize();
- }
- }else{
-
- fInitialize();
- }
- }else{
-
-
- }
- */
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fCheckData(){
- //환자정보 체크
-
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- if( pid.length <= 0 ){
- messageBox("등록번호가 입력되지 않았습니다.", "E999", "");
- return false;
- }
-
- var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- if( hngnm.length <= 0 ){
- messageBox("한글 이름이 정확히 입력되지 않았습니다.", "E999", "");
- return false;
- }
- //}else if( isResidentNo( rrgstno1.concat(rrgstno2) )){
-
- // if(messageBox("유효하지 않은 주민번호입니다! 계속","Q002","") != 6 ){
- // return false;
- // }
-
- //}//else if end
-
- var sex = model.getValue("/root/main/patinfo/patinfolist/sex");
- var brthdd = model.getValue("/root/main/patinfo/patinfolist/brthdd");
-
- if(brthdd == "" && sex == ""){
- if( fGetSexAgeBirthDD() == false ){
- return false;
- }
- }else if( isValidDateTime(brthdd, "YYYYMMDD") == false){
- messageBox("생년월일 형식이 정확하지 않습니다.", "E999", "");
- return false;
- }else if( sex.toUpperCase() != "M" && sex.toUpperCase() !="F" && sex.toUpperCase() != "A"){
- messageBox("생년월일 형식이 정확하지 않습니다.", "E999", "");
- return false;
- }//else if end
-
- var zipcd11 = model.getValue("/root/main/patinfo/patinfolist/zipcd11");
- var zipcd12 = model.getValue("/root/main/patinfo/patinfolist/zipcd12");
- if( zipcd11.length != 3 || zipcd12.length != 2 ){
- messageBox("우편번호 형식이 정확하지 않습니다.", "E999", "");
- model.setValue("/root/main/patinfo/patinfolist/zipcd11", "000");
- model.setValue("/root/main/patinfo/patinfolist/zipcd12", "00");
- return false;
- }
-
- return true;
- }//fCheckData end
- //환자기본정보 저장
- function fSave(){
-
- if( !fCheckData() ){
- return false;
- }
-
- if(submit("TXAHA02602")){
-
- }
- }//fSave end
-
- //주민번호 뒷자리 입력시 호출
- function fGetSexAgeBirthDD(){
- var brthdd;
- var rrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1");
- var rrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
-
- if (rrgstno1.length != 6)
- {
- messageBox("환자주민번호1은 6자리입니다!","E999","");
- model.setFocus("ipt_rrgstno1");
- return false;
- }
-
- if (rrgstno2.length != 7)
- {
- messageBox("환자주민번호2는 7자리입니다!","E999","");
- model.setFocus("ipt_rrgstno2");
- return false;
- }
-
- var gubn = rrgstno2.substr(0,1);
- switch(gubn){
- case '1' :
- case '2' :
- case '5' :
- case '6' :
- brthdd = '19'.concat(rrgstno1);
- break;
- case '3' :
- case '4' :
- case '7' :
- case '8' :
- brthdd = '20'.concat(rrgstno1);
- break;
- case '9' :
- case '0' :
- brthdd = '18'.concat(rrgstno1);
- break;
- default :
- brthdd = '19'.concat(rrgstno1);
- break;
- }
-
- model.setValue("/root/main/patinfo/patinfolist/brthdd",brthdd);
-
- if (isValidDateTime(brthdd, "YYYYMMDD") == false)
- {
- messageBox("주민번호 오류입니다. 올바른 주민등록 번호를 입력하십시요!","E999","");
- model.setValue("/root/main/patinfo/patinfolist/rrgstno1","");
- model.setValue("/root/main/patinfo/patinfolist/rrgstno2","");
- model.setValue("/root/main/patinfo/patinfolist/brthdd","");
- ipt_rrgstno1.refresh();
- ipt_rrgstno2.refresh();
- return false;
- }
- var sex = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
- model.setValue("/root/main/patinfo/patinfolist/sex",getGender(sex));//getGender - utilHelper
- var rrgstno = rrgstno1.concat(rrgstno2);
- //var age = rrgstno1;
- model.setValue("/root/main/patinfo/patinfolist/age",getFullAge(model.getValue("/root/main/patinfo/patinfolist/brthdd")));//getFullAge - utilHelper
- cmb_sex.refresh();
- ipt_age.refresh();
- if (isResidentNo(rrgstno) == false)
- {
- messageBox("유효하지 않은 주민번호입니다!","E999","");
- model.setValue("/root/main/patinfo/patinfolist/rrgstno1","");
- model.setValue("/root/main/patinfo/patinfolist/rrgstno2","");
- ipt_rrgstno1.refresh();
- ipt_rrgstno2.refresh();
- return false;
- }
- }//fGetSexAgeBirthDD end
-
- //초기화
- function fInitialize(){
-
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- model.resetInstanceNode("/root/main/patinfo/satsfctfactlist");
- model.resetInstanceNode("/root/main/patinfo/complainfactlist");
- model.resetInstanceNode("/root/hidden/source");
- //초기값 세팅
- model.refresh();
- }//fInitialize end
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,0;1,422;1,102;2,716;1,426;2,567;2,418;1,233;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group2" style="left:0px; top:18px; width:1195px; height:744px; ">
- <group id="group4" style="left:0px; top:0px; width:450px; height:700px; ">
- <line id="line7" class="line_1" style="x1:0px; y1:25px; x2:422px; y2:25px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:52px; x2:422px; y2:52px; "/>
- <line id="line15" class="line_2" style="x1:0px; y1:76px; x2:422px; y2:76px; "/>
- <line id="line17" class="line_2" style="x1:0px; y1:124px; x2:422px; y2:124px; "/>
- <line id="line18" class="line_2" style="x1:0px; y1:172px; x2:422px; y2:172px; "/>
- <line id="line19" class="line_2" style="x1:0px; y1:196px; x2:422px; y2:196px; "/>
- <line id="line20" class="line_2" style="x1:0px; y1:244px; x2:422px; y2:244px; "/>
- <line id="line105" class="line_2" style="x1:0px; y1:100px; x2:420px; y2:100px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:148px; x2:422px; y2:148px; "/>
- <line id="line12" class="line_2" style="x1:0px; y1:220px; x2:422px; y2:220px; "/>
- <caption id="caption124" class="cell_1" style="left:0px; top:222px; width:100px; height:23px; vertical-align:middle; ">성향</caption>
- <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:85px; height:13px; ">인적사항</caption>
- <caption id="caption82" class="cell_1" style="left:0px; top:30px; width:100px; height:23px; vertical-align:middle; ">등록번호</caption>
- <input id="ipt_pid" ref="/root/main/patinfo/patinfolist/pid" class="input_s_essential" navindex="1" autonext="false" maxlength="10" appearance="input" style="left:103px; top:31px; width:105px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == '13') {
- model.setValue("/root/hidden/source/srchcond", "1");
- model.setValue("/root/hidden/source/pid", ipt_pid.currentText);
- //환자등록번호 체크
- if(ipt_pid.currentText.length >= 1 ){
-
- model.resetInstanceNode("/root/main/result");
- //submit("TRPMC02500") 이후 인스턴스 구조가 바뀌므로 /root/main/patinfo/patinfolist의 인스턴그 구조를 복사해둔다.
- //model.copyNode("/root/hidden/tmpnode/patinfolist", "/root/main/patinfo/patinfolist");
-
- if(submit("TRPMC02500")){
- if( getNodesetCount("/root/main/result/patinfo/patinfolist") > 0 ){
- //데이터를 가져온 후 인스턴스가 사라짐
-
- //02500후 pid가 있으면 TRAHA02601를 해서 aham에 데이터가 있는지 확인한다.
- model.setValue("/root/send/pid", model.getValue("/root/main/result/patinfo/patinfolist/pid"));
-
- submit("TRAHA02601");
-
- //aham에 데이터가 있으면 그 결과를 뿌려주고 없으면 TRPMC02500의 결과를 뿌려준다.
- if( getNodesetCount("/root/main/patinfo/patinfolist") <= 0 ){
-
- //submit("TRPMC02500") 이후 인스턴스 구조가 다 바뀌므로 /root/hidden/tmpnode/patinfolist를 가져오고 값을 넣는다.
-
- model.makeNode("/root/main/patinfo/patinfolist");
- model.copyNode("/root/main/patinfo/patinfolist", "/root/hidden/tmpnode/patinfolist");
- model.setValue("/root/main/patinfo/patinfolist/pid", model.getValue("/root/main/result/patinfo/patinfolist/pid"));
- model.setValue("/root/main/patinfo/patinfolist/sex", model.getValue("/root/main/result/patinfo/patinfolist/sex"));
- model.setValue("/root/main/patinfo/patinfolist/age", model.getValue("/root/main/result/patinfo/patinfolist/age"));
- model.setValue("/root/main/patinfo/patinfolist/brthdd", model.getValue("/root/main/result/patinfo/patinfolist/brthdd"));
- model.setValue("/root/main/patinfo/patinfolist/hngnm", model.getValue("/root/main/result/patinfo/patinfolist/hngnm"));
- model.setValue("/root/main/patinfo/patinfolist/engnm", model.getValue("/root/main/result/patinfo/patinfolist/engnm"));
- model.setValue("/root/main/patinfo/patinfolist/rrgstno1", model.getValue("/root/main/result/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/main/patinfo/patinfolist/rrgstno2", model.getValue("/root/main/result/patinfo/patinfolist/rrgstno2"));
- model.setValue("/root/main/patinfo/patinfolist/telno", model.getValue("/root/main/result/patinfo/patinfolist/hometel"));
- model.setValue("/root/main/patinfo/patinfolist/mpphon", model.getValue("/root/main/result/patinfo/patinfolist/mpphontel"));
- model.setValue("/root/main/patinfo/patinfolist/zipcd11", model.getValue("/root/main/result/patinfo/patinfolist/zipcd1"));
- model.setValue("/root/main/patinfo/patinfolist/zipcd12", model.getValue("/root/main/result/patinfo/patinfolist/zipcd2"));
- model.setValue("/root/main/patinfo/patinfolist/detladdr1", model.getValue("/root/main/result/patinfo/patinfolist/detladdr"));
- // 20100719 JHP 건진환자정보수정시 ptbs에 수정할때 주소가 안바뀜 내용적용하기 위해 addr, zipcdseq주석삭제함.
- model.setValue("/root/main/patinfo/patinfolist/addr", model.getValue("/root/main/result/patinfo/patinfolist/addr"));
- model.setValue("/root/main/patinfo/patinfolist/zipcdseq1",model.getValue("/root/main/result/patinfo/patinfolist/zipcdseq"));
-
- model.setValue("/root/main/patinfo/patinfolist/brthdd", model.getValue("/root/main/result/patinfo/patinfolist/brthdd"));
- model.setValue("/root/main/patinfo/patinfolist/cmpynm", "");
- model.setValue("/root/main/patinfo/patinfolist/nati", "");
- model.setValue("/root/main/patinfo/patinfolist/job","");
- model.setValue("/root/main/patinfo/patinfolist/jobpos","");
- // model.setValue("/root/main/patinfo/patinfolist/satsfctfact", '');
- // model.setValue("/root/main/patinfo/patinfolist/complainfact", '');
- // model.setValue("/root/main/patinfo/patinfolist/satsfctgrde", '');
- }//else end
- model.setValue("/root/main/patinfo/patinfolist/satsfctgrde", '');
- model.setValue("/root/main/patinfo/patinfolist/satsfctfact", '');
- model.setValue("/root/main/patinfo/patinfolist/complainfact", '');
- model.refresh();
- }else{
-
- messageBox("없는 환자 번호 입니다.", "E999", "");
- fInitialize();
- }//else end
- }//if end
-
- }else{
- messageBox("환자등록번호를 정확히", "C001");
- }//if end
- model.resetInstanceNode("/root/hidden/source");
-
- //2015/07/29 우편번호 변경에 따른 팝업안내
- var cnt = getNodesetCount("/root/init/baseinfo/S920list/S920[cdid='Y']");
- if(cnt>0){
- fNewZipCdCheck(model.getValue("/root/main/patinfo/patinfolist/zipcd11"), model.getValue("/root/main/patinfo/patinfolist/zipcd12"));
- }
- //2015/07/29 우편번호 변경에 따른 팝업안내
- }//if end
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- //환자번호 수정시 화면 클리어!!
- // fInitialize();
- model.setValue("/root/main/patinfo/patinfolist/pid", pid);
- model.setFocus("ipt_pid");
- ]]>
- </script>
- </input>
- <button id="btn_search" class="icon_search" style="left:213px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //팝업창 "/root/hidden/source/srchcond" - 1.pid 2.name 3.rrgstno
- modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/source", "/root/send");
- if( model.getValue("/root/main/popupendflag") == "ok" ){
-
- //팝업의 결과가 메인으로 들어 오므로 결과 노드로 카피한다.
- model.makeNode("/root/main/result/patinfo/patinfolist");
- model.copyNode("/root/main/result/patinfo/patinfolist", "/root/main/patinfo/patinfolist");
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
-
- //인스턴스 구조가 바뀌었으므로 ready시 복사해뒀던 노드를 카피해온다.
- model.copyNode("/root/main/patinfo/patinfolist", "/root/hidden/tmpnode/patinfolist");
- //메인 노드를 초기화한다.
- //model.resetInstanceNode("/root/main/patinfo/patinfolist");
-
- submit("TRAHA02601");
-
- //aham에 데이터가 있으면 그 결과를 뿌려주고 없으면 TRPMC02500의 결과를 뿌려준다.
- if( getNodesetCount("/root/main/patinfo/patinfolist") <= 0 ){
-
- model.makeNode("/root/main/patinfo/patinfolist");
- model.copyNode("/root/main/patinfo/patinfolist", "/root/hidden/tmpnode/patinfolist");
-
- model.setValue("/root/main/patinfo/patinfolist/pid", model.getValue("/root/main/result/patinfo/patinfolist/pid"));
- model.setValue("/root/main/patinfo/patinfolist/sex", model.getValue("/root/main/result/patinfo/patinfolist/sex"));
- model.setValue("/root/main/patinfo/patinfolist/age", model.getValue("/root/main/result/patinfo/patinfolist/age"));
- model.setValue("/root/main/patinfo/patinfolist/brthdd", model.getValue("/root/main/result/patinfo/patinfolist/brthdd"));
- model.setValue("/root/main/patinfo/patinfolist/hngnm", model.getValue("/root/main/result/patinfo/patinfolist/hngnm"));
- model.setValue("/root/main/patinfo/patinfolist/engnm", model.getValue("/root/main/result/patinfo/patinfolist/engnm"));
- model.setValue("/root/main/patinfo/patinfolist/rrgstno1", model.getValue("/root/main/result/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/main/patinfo/patinfolist/rrgstno2", model.getValue("/root/main/result/patinfo/patinfolist/rrgstno2"));
- model.setValue("/root/main/patinfo/patinfolist/telno", model.getValue("/root/main/result/patinfo/patinfolist/hometel"));
- model.setValue("/root/main/patinfo/patinfolist/mpphon", model.getValue("/root/main/result/patinfo/patinfolist/mpphontel"));
- model.setValue("/root/main/patinfo/patinfolist/zipcd11", model.getValue("/root/main/result/patinfo/patinfolist/zipcd1"));
- model.setValue("/root/main/patinfo/patinfolist/zipcd12", model.getValue("/root/main/result/patinfo/patinfolist/zipcd2"));
- model.setValue("/root/main/patinfo/patinfolist/detladdr1", model.getValue("/root/main/result/patinfo/patinfolist/detladdr"));
- // 20100719 JHP 건진환자정보수정시 ptbs에 수정할때 주소가 안바뀜 내용적용하기 위해 addr, zipcdseq주석삭제함.
- model.setValue("/root/main/patinfo/patinfolist/addr", model.getValue("/root/main/result/patinfo/patinfolist/addr"));
- model.setValue("/root/main/patinfo/patinfolist/zipcdseq1",model.getValue("/root/main/result/patinfo/patinfolist/zipcdseq"));
-
- model.setValue("/root/main/patinfo/patinfolist/brthdd", model.getValue("/root/main/result/patinfo/patinfolist/brthdd"));
- model.setValue("/root/main/patinfo/patinfolist/cmpynm", "");
- model.setValue("/root/main/patinfo/patinfolist/nati", "");
- model.setValue("/root/main/patinfo/patinfolist/job","");
- model.setValue("/root/main/patinfo/patinfolist/jobpos","");
- model.setValue("/root/main/patinfo/patinfolist/remfact", '');
- model.setValue("/root/main/patinfo/patinfolist/satsfctfact", '');
- model.setValue("/root/main/patinfo/patinfolist/complainfact", '');
- model.setValue("/root/main/patinfo/patinfolist/satsfctgrde", '');
-
- }
- }
- model.resetInstanceNode("/root/hidden/source");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption83" class="cell_1" style="left:234px; top:30px; width:66px; height:23px; vertical-align:middle; ">성별/나이</caption>
- <select1 id="cmb_sex" ref="/root/main/patinfo/patinfolist/sex" navindex="5" appearance="minimal" style="left:302px; top:30px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_age" ref="/root/main/patinfo/patinfolist/age" class="input_default" style="left:364px; top:30px; width:58px; height:19px; "/>
- <caption id="caption79" class="cell_1" style="left:0px; top:54px; width:100px; height:23px; vertical-align:middle; ">성명[한/영]</caption>
- <input id="ipt_hngnm" ref="/root/main/patinfo/patinfolist/hngnm" class="input_s_essential" navindex="2" autonext="false" imemode="hangul" style="left:103px; top:55px; width:128px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- model.setValue("/root/hidden/source/srchcond", "2");
- model.setValue("/root/hidden/source/hngnm", ipt_hngnm.currentText);
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_engnm" ref="/root/main/patinfo/patinfolist/engnm" class="input_default" navindex="3" imemode="alpha" _chartype="upper" style="left:234px; top:55px; width:187px; height:19px; "/>
- <caption id="caption81" class="cell_1" style="left:0px; top:78px; width:100px; height:23px; vertical-align:middle; ">주민번호</caption>
- <input id="ipt_rrgstno1" ref="/root/main/patinfo/patinfolist/rrgstno1" class="input_s_essential" navindex="4" autonext="true" format="999999" min="6" max="6" style="left:103px; top:79px; width:60px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- model.setValue("/root/hidden/source/srchcond", "3");
- model.setValue("/root/hidden/source/rrgstno1", ipt_rrgstno1.currentText);
- model.setValue("/root/hidden/source/rrgstno2", ipt_rrgstno2.currentText);
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_rrgstno2" ref="/root/main/patinfo/patinfolist/rrgstno2" class="input_s_essential" navindex="5" autonext="true" format="9999999" min="7" max="7" style="left:166px; top:79px; width:65px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- model.setValue("/root/hidden/source/srchcond", "3");
- model.setValue("/root/hidden/source/rrgstno2", ipt_rrgstno2.currentText);
- model.setValue("/root/hidden/source/rrgstno1", ipt_rrgstno1.currentText);
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if( model.getValue("/root/main/patinfo/patinfolist/sex") == "" || model.getValue("/root/main/patinfo/patinfolist/age") == "" ){
- fGetSexAgeBirthDD();
- }
- ]]>
- </script>
- </input>
- <caption id="caption20" class="cell_1" style="left:234px; top:76px; width:66px; height:23px; vertical-align:middle; ">고객관리</caption>
- <select1 id="cmb_clntgrde" ref="/root/main/patinfo/patinfolist/clntgrde" class="combo_default" navindex="6" appearance="minimal" style="left:302px; top:76px; width:119px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/A0118list/A0118">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption85" class="cell_1" style="left:0px; top:102px; width:100px; height:23px; vertical-align:middle; ">연락처/휴대폰</caption>
- <input id="ipt_telno" ref="/root/main/patinfo/patinfolist/telno" class="input_default" navindex="7" format="9999999999999999" style="left:103px; top:103px; width:128px; height:19px; "/>
- <input id="ipt_mpphon" ref="/root/main/patinfo/patinfolist/mpphon" class="input_default" navindex="8" format="999-9999-9999" style="left:234px; top:103px; width:188px; height:19px; "/>
- <caption id="caption123" class="cell_1" style="left:0px; top:126px; width:100px; height:23px; vertical-align:middle; ">사이즈[상/하]</caption>
- <input id="ipt_tshirts" ref="/root/main/patinfo/patinfolist/tshirts" class="input_default" navindex="9" style="left:102px; top:126px; width:63px; height:19px; "/>
- <input id="ipt_pants" ref="/root/main/patinfo/patinfolist/pants" class="input_default" navindex="10" style="left:168px; top:126px; width:63px; height:19px; "/>
- <caption id="caption23" class="cell_1" style="left:234px; top:125px; width:66px; height:23px; vertical-align:middle; ">신장/체중</caption>
- <input id="ipt_height" ref="/root/main/patinfo/patinfolist/height" class="input_default" navindex="11" style="left:302px; top:125px; width:60px; height:19px; "/>
- <input id="ipt_bdwt" ref="/root/main/patinfo/patinfolist/bdwt" class="input_default" navindex="12" style="left:364px; top:125px; width:58px; height:19px; "/>
- <caption id="caption78" class="cell_1" style="left:0px; top:150px; width:100px; height:23px; vertical-align:middle; ">우편번호</caption>
- <input id="ipt_zipcd11" ref="/root/main/patinfo/patinfolist/zipcd11" class="input_default" navindex="13" maxlength="3" format="999" style="left:103px; top:151px; width:35px; height:19px; "/>
- <input id="ipt_zipcd12" ref="/root/main/patinfo/patinfolist/zipcd12" class="input_default" navindex="14" maxlength="3" format="999" style="left:141px; top:151px; width:35px; height:19px; "/>
- <input id="ipt_zipcdseq" ref="/root/main/patinfo/patinfolist/zipcdseq1" class="input_default" navindex="15" maxlength="1" format="999" style="left:179px; top:151px; width:25px; height:19px; "/>
- <button id="button37" class="icon_search" navindex="13" style="left:210px; top:152px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- zbcfOpenZipCodeList("combination", "", "/root/main/patinfo/patinfolist/zipcd11", "/root/main/patinfo/patinfolist/zipcd12", "/root/main/patinfo/patinfolist/zipcdseq1", "/root/main/patinfo/patinfolist/addr")
- ]]>
- </script>
- </button>
- <output id="ipt_addr" ref="/root/main/patinfo/patinfolist/addr" class="output_fix" appearance="output" style="left:234px; top:151px; width:188px; height:19px; "/>
- <caption id="caption80" class="cell_1" style="left:0px; top:174px; width:100px; height:23px; vertical-align:middle; ">하위주소</caption>
- <input id="ipt_detladdr" ref="/root/main/patinfo/patinfolist/detladdr1" class="input_default" navindex="14" style="left:103px; top:175px; width:319px; height:19px; "/>
- <caption id="caption21" class="cell_1" style="left:0px; top:198px; width:100px; height:23px; vertical-align:middle; ">E-MAIL</caption>
- <input id="ipt_emailid" ref="/root/main/patinfo/patinfolist/emailid" class="input_default" navindex="15" imemode="alpha" style="left:103px; top:199px; width:128px; height:19px; "/>
- <select1 id="cmb_emailtype" ref="/root/main/patinfo/patinfolist/emailtype" class="combo_default" navindex="16" appearance="minimal" style="left:235px; top:199; width:86px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/A0120list/A0120">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var idx = cmb_emailtype.value;
- if( idx == "01" ) //직접입력
- {
- ipt_emailtype.value = "@";
- model.setFocus("ipt_emailtype");
- }
- else {
- ipt_emailtype.value = cmb_emailtype.label ;
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_emailtype" ref="/root/main/patinfo/patinfolist/emailtype" class="input_default" navindex="17" imemode="alpha" maxlength="30" style="left:325px; top:199px; width:97px; height:19px; "/>
- <input id="ipt_inclination" ref="/root/main/patinfo/patinfolist/inclination" class="input_default" navindex="18" style="left:102px; top:222px; width:128px; height:19px; "/>
- <caption id="caption1" class="cell_1" style="left:0px; top:294px; width:100px; height:102px; vertical-align:middle; ">참고사항</caption>
- <textarea id="tar_remfact" ref="/root/main/patinfo/patinfolist/remfact" navindex="20" style="left:104px; top:294px; width:317px; height:102px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:398px; width:100px; height:150px; vertical-align:middle; ">만족사항</caption>
- <textarea id="tar_satsfctfact" ref="/root/main/patinfo/patinfolist/satsfctfact" navindex="21" style="left:104px; top:398px; width:317px; height:150px; "/>
- <caption id="caption4" class="cell_1" style="left:0px; top:550px; width:100px; height:150px; vertical-align:middle; ">불만사항</caption>
- <textarea id="tar_complainfact" ref="/root/main/patinfo/patinfolist/complainfact" navindex="22" style="left:104px; top:550px; width:317px; height:150px; "/>
- <caption id="caption6" class="cell_1" style="left:0px; top:246px; width:100px; height:23px; vertical-align:middle; ">단체명</caption>
- <input id="input1" ref="/root/main/patinfo/patinfolist/cmpynm" class="input_default" navindex="18" style="left:102px; top:246px; width:128px; height:19px; "/>
- <caption id="caption7" class="cell_1" style="left:233px; top:246px; width:66px; height:23px; vertical-align:middle; ">국적</caption>
- <input id="input2" ref="/root/main/patinfo/patinfolist/nati" class="input_default" navindex="17" imemode="alpha" maxlength="30" style="left:302px; top:246px; width:119px; height:19px; "/>
- <caption id="caption8" class="cell_1" style="left:0px; top:270px; width:100px; height:23px; vertical-align:middle; ">직위</caption>
- <input id="input3" ref="/root/main/patinfo/patinfolist/jobpos" class="input_default" navindex="18" style="left:102px; top:270px; width:128px; height:19px; "/>
- <input id="input4" ref="/root/main/patinfo/patinfolist/job" class="input_default" navindex="17" imemode="alpha" maxlength="30" style="left:302px; top:270px; width:119px; height:19px; "/>
- <caption id="caption9" class="cell_1" style="left:233px; top:270px; width:66px; height:23px; vertical-align:middle; ">직업</caption>
- <select1 id="cmb_satsfctgrde" ref="/root/main/patinfo/patinfolist/satsfctgrde" class="combo_default" navindex="19" appearance="minimal" style="left:0px; top:400px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/A0118list/A0118">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="button3" class="btn5_letter2" style="left:380px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( !fCheckData() ){
- return false;
- }else{
- model.setValue("/root/hidden/source/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.makeNode("/root/main/patinfo/patinfolist/status");
- model.setValue("/root/main/patinfo/patinfolist/status","i");
- submit("TXAHA02602");
- //저장한 데이터 불러오기
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- model.refresh();
- model.setValue("/root/send/pid", model.getValue("/root/hidden/source/pid"));
- submit("TRAHA02601");
- }//else end
- ]]>
- </script>
- </button>
- <button id="button4" class="btn5_letter2" style="left:337px; top:5px; width:42px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( !fCheckData() ){
- return false;
- }else{
-
- model.makeNode("/root/main/patinfo/patinfolist/status");
- model.setValue("/root/main/patinfo/patinfolist/status","u");
- submit("TXAHA02602");
- }//else end
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter3" style="left:283px; top:5px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- <group id="group7" style="left:427px; top:240px; width:768px; height:230px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:765px; y2:25px; "/>
- <caption id="caption18" class="tit_2" style="left:0px; top:10px; width:75px; height:13px; ">만족사항</caption>
- <button id="button1" class="btn5_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:723px; top:5px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/updatedata", grd_satsfctfactlist.getUpdateData("update"));
- var chk = submit("TXAHA02603","false") ;
- if ( chk ) {
- grd_satsfctfactlist.clearStatus(); // submit() 성공하면 그리드의 d상태 제거
- grd_satsfctfactlist.refresh();
- }//end if
- ]]>
- </script>
- </button>
- <datagrid id="grd_satsfctfactlist" nodeset="/root/main/patinfo/satsfctfactlist" autoresize="true" caption="연도^만족도^만족사항^일련번호^환자번호" colsep="^" colwidth="70, 100, 570, 100, 50" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:30px; width:765px; height:197px; ">
- <col ref="lastupdtdt" format="yyyy-mm-dd"/>
- <col ref="satsfctgrde" type="combo">
- <choices>
- <itemset nodeset="/root/init/A0118list/A0118">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="satsfctfact" type="input" autoresize="true"/>
- <col ref="factseq" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- </datagrid>
- </group>
- <group id="group6" style="left:427px; top:470px; width:768px; height:228px; ">
- <line id="line113" class="line_1" style="x1:0px; y1:25px; x2:765px; y2:25px; "/>
- <caption id="caption90" class="tit_2" style="left:0px; top:10px; width:69px; height:14px; ">불만사항</caption>
- <button id="button2" class="btn5_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:723px; top:5px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/updatedata", grd_complainfactlist.getUpdateData("update"));
- var chk = submit("TXAHA02603","false") ;
- if ( chk ) {
- grd_complainfactlist.clearStatus(); // submit() 성공하면 그리드의 d상태 제거
- grd_complainfactlist.refresh();
- }//end if
- ]]>
- </script>
- </button>
- <datagrid id="grd_complainfactlist" nodeset="/root/main/patinfo/complainfactlist" autoresize="true" caption="연도^만족도^불만사항^일련번호^환자번호" colsep="^" colwidth="70, 0, 671, 100, 80" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:31px; width:765px; height:197px; ">
- <col ref="lastupdtdt" format="yyyy-mm-dd"/>
- <col ref="satsfctgrde" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/A0118list/A0118">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="complainfact" type="input"/>
- <col ref="factseq" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- </datagrid>
- </group>
- <group id="group1" style="left:427px; top:0px; width:768px; height:240px; ">
- <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:765px; y2:25px; "/>
- <caption id="caption5" class="tit_2" style="left:0px; top:10px; width:75px; height:14px; ">참고사항</caption>
- <button id="button6" class="btn5_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:723px; top:5px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/updatedata", grd_remfactlist.getUpdateData("update"));
- var chk = submit("TXAHA02603","false") ;
- if ( chk ) {
- grd_remfactlist.clearStatus(); // submit() 성공하면 그리드의 d상태 제거
- grd_remfactlist.refresh();
- }//end if
- ]]>
- </script>
- </button>
- <datagrid id="grd_remfactlist" nodeset="/root/main/patinfo/remfactlist" autoresize="true" caption="연도^참고사항^일련번호^환자번호^상태" colsep="^" colwidth="70, 671, 100, 50, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:30px; width:765px; height:210px; ">
- <col ref="lastupdtdt" format="yyyy-mm-dd"/>
- <col ref="remfact" type="input" autoresize="true"/>
- <col ref="factseq" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="status" visibility="hidden"/>
- </datagrid>
- </group>
- </group>
- <group id="group3" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption22" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">건진고객관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|