123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>환자기초정보조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <acptdd/>
- <inhospyn/>
- <hiddenflag/>
- </send>
- <init>
- <P0350list>
- <P0350>
- <cdnm/>
- <cdid/>
- </P0350>
- </P0350list>
- <orddeptcd>
- <orddeptcdlist>
- <cd/>
- <nm/>
- </orddeptcdlist>
- </orddeptcd>
- <orddrid>
- <orddridlist>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddridlist>
- </orddrid>
- </init>
- <hidden>
- <uid>
- <myself/>
- <opener/>
- </uid>
- <tmp/>
- </hidden>
- </root>
- </instance>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0350"), new Array("/root/init/P0350list"));
-
- //진료과코드 진료의사ID 조회
- pamGetDeptCDDrIDList();
-
- //플래그 초기화!
- opener.model.makeNode("/root/main/popupendflag");
- opener.model.setValue("/root/main/popupendflag", "cancel");
-
- var sp = opener.document.url.split("/");
- var nsp = sp[sp.length-1].split(".")[0].substr(0,10);
-
- // pamcomnweb/pam.js 추가이력 20100224 JHP SPPMC02500_환자조회 원무쪽과 원무이외의쪽 구분하는 구분 변수 var PatRefPamFlag 전역변수
- PatRefPamFlag = nsp.substr(0,3);
- if(PatRefPamFlag == "SMP" || PatRefPamFlag == "SPP"){
- grd_patinfo.visible = true;
- grd_patinfo2.visible= false;
- }else{
- grd_patinfo.visible = false;
- grd_patinfo2.visible= true;
- }
-
- if( getNodesetCount("/root/send/srchcond") > 0 ){
- if( model.getValue("/root/send/checkfnexam") != "1" ){
- //조회조건에서 '예약일시'를 제거한다.
- cmb_cond.choices.itemset.attribute("nodeset") = "/root/init/P0350list/P0350[cdid != '5' ]";
- }
-
- if( model.getValue("/root/send/srchcond") == '' || model.getValue("/root/send/srchcond") == '-' ){
- model.setValue("/root/send/srchcond", "4");
- }
- fChangeSearchCondition(model.getValue("/root/send/srchcond"));
- model.refresh();
-
- //값이 부모창에서 입력되었을 경우 조회한다.
- if(model.getValue("/root/send/srchcond") != '5' && fInputValueCheckXformsReady()){
- //if( fInputValueCheckXformsReady()){
- if( submit("TRPMC02500")){
- if(PatRefPamFlag == "SMP" || PatRefPamFlag == "SPP"){
- if( grd_patinfo.rows == 2 ){
- if( model.getValue("/root/send/autoflag").toUpperCase() == "Y" ){ //조회 내역이 1건일 경우 자동 화면 닫기
- model.setFocus("grd_patinfo");
- btn_confirm.dispatch("DOMActivate");
- window.close();
- }
- }
- if( grd_patinfo.rows > 1 ){
- model.setFocus("grd_patinfo");
- }else{
- if( model.getValue("/root/send/autoflag").toUpperCase() == "NON" ){ //조회 내역이 없을 경우 자동 화면 닫기
- //model.setFocus("grd_patinfo");
- btn_cancel.dispatch("DOMActivate");
- //window.close();
- }
- fChangeSearchCondition( cmb_cond.value );
- }
- }else{
- if( grd_patinfo2.rows == 2 ){
- if( model.getValue("/root/send/autoflag").toUpperCase() == "Y" ){ //조회 내역이 1건일 경우 자동 화면 닫기
- model.setFocus("grd_patinfo2");
- btn_confirm.dispatch("DOMActivate");
- window.close();
- }
- }
- if( grd_patinfo2.rows > 1 ){
- model.setFocus("grd_patinfo2");
- }else{
- if( model.getValue("/root/send/autoflag").toUpperCase() == "NON" ){ //조회 내역이 없을 경우 자동 화면 닫기
- //model.setFocus("grd_patinfo");
- btn_cancel.dispatch("DOMActivate");
- //window.close();
- }
- fChangeSearchCondition( cmb_cond.value );
- }
- }
- }
- }
- }else{
- //조회조건에서 '예약일시'를 제거한다.
- cmb_cond.choices.itemset.attribute("nodeset") = "/root/init/P0350list/P0350[cdid != '5' ]";
-
- model.makeNode("/root/send/srchcond");
- model.makeNode("/root/send/pid");
- model.makeNode("/root/send/hngnm");
- model.makeNode("/root/send/rrgstno1");
- model.makeNode("/root/send/rrgstno2");
- model.makeNode("/root/send/acptdd");
-
- model.refresh();
- }
-
- //진료일 오늘 날짜 디폴트 세팅
- model.makeNode("/root/send/acptdd");
- model.setValue("/root/send/acptdd", getCurrentDate() );
-
- model.makeNode("/root/send/inhospyn");
- model.setValue("/root/send/inhospyn", "N" );
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- /*
- * 창 생성시 부모창으로 부터 받은 입력값의 유효범위 체크
- */
- function fInputValueCheckXformsReady(){
- var cond = model.getValue("/root/send/srchcond");
- switch(cond){
- case '1':
- //환자등록번호 체크
- if(ipt_pid.currentText.length == 0){
- return (false);
- }else{
- if(ipt_pid.currentText.length >= 1){
- model.setValue("/root/send/pid", ipt_pid.currentText);
- return (true);
- }else{
- messageBox("환자등록번호를 정확히", "C001");
- model.setFocus("ipt_pid");
- return (false);
- }
- }
- break;
-
- case '2':
- //환자이름 체크
- if(ipt_hngnm.currentText.length == 0){
- return (false);
- }else{
- if(ipt_hngnm.currentText.length >= 2){
- model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
- return (true);
- }else{
- messageBox("환자이름을 2자리 이상", "C001");
- model.setFocus("ipt_hngnm");
- return (false);
- }
- }
- break;
-
- case '3':
- //환자 주민번호 체크
- if(ipt_rrgstno1.currentText.length == 0 && ipt_rrgstno2.currentText.length == 0){
- return (false);
- }else{
- if(ipt_rrgstno1.currentText.length >= 4 && ipt_rrgstno2.currentText.length >= 1){
- model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
- model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
- return (true);
- }else{
- if(ipt_rrgstno1.currentText.length < 4){
- messageBox("환자 주민번호 앞자리를 4자리 이상", "C001");
- model.setFocus("ipt_rrgstno1");
- return (false);
- }
- if(ipt_rrgstno2.currentText.length < 1){
- messageBox("환자 주민번호 뒷자리를 1자리 이상", "C001");
- model.setFocus("ipt_rrgstno2");
- return (false);
- }
- messageBox("환자 주민번호를", "C001");
- model.setFocus("ipt_rrgstno1");
- return (false);
- }
- }
- break;
-
- case '4':
- //환자명+주민번호 체크
- if(ipt_hngnm.currentText.length == 0 && ipt_rrgstno1.currentText.length == 0){
- return (false);
- }
-
- if(ipt_hngnm.currentText.length != 0 && ipt_rrgstno1.currentText.length != 0){
- //환자이름 체크
- if(ipt_hngnm.currentText.length >= 2){
- model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
- }else{
- messageBox("환자이름을 2자리 이상", "C001");
- model.setFocus("ipt_hngnm");
- return (false);
- }
-
- //환자 주민번호 체크
- if(ipt_rrgstno1.currentText.length >= 4){
- model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
- model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
- }else{
- if(ipt_rrgstno1.currentText.length < 4){
- messageBox("환자 주민번호 앞자리를 4자리 이상", "C001");
- model.setFocus("ipt_rrgstno1");
- return (false);
- }
- }
- return (true);
-
- }else{
- if(ipt_hngnm.currentText.length != 0 && ipt_rrgstno1.currentText.length == 0){
- //환자명 조회로 변경
- model.setValue("/root/send/srchcond", "2");
- fChangeSearchCondition("2")
- if(ipt_hngnm.currentText.length >= 2){
- model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
- }else{
- messageBox("환자이름을 2자리 이상", "C001");
- model.setFocus("ipt_hngnm");
- return (false);
- }
- return (true);
-
- }else if(ipt_hngnm.currentText.length == 0){
- //주민번호 조회로 변경
- model.setValue("/root/send/srchcond", "3");
- fChangeSearchCondition("3")
- if(ipt_rrgstno1.currentText.length >= 4 && ipt_rrgstno2.currentText.length >= 1){
- model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
- model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
- }else{
- if(ipt_rrgstno1.currentText.length < 4){
- messageBox("환자 주민번호 앞자리를 4자리 이상", "C001");
- model.setFocus("ipt_rrgstno1");
- return (false);
- }
- if(ipt_rrgstno2.currentText.length < 1){
- messageBox("환자 주민번호 뒷자리를 1자리 이상", "C001");
- model.setFocus("ipt_rrgstno2");
- return (false);
- }
- messageBox("환자 주민번호를", "C001");
- model.setFocus("ipt_rrgstno1");
- return (false);
- }
- return (true);
- }
- }
- break;
-
- case '5':
- //예약일자 유효성 체크
- if(isValidDateTime( model.getValue("/root/send/acptdd"), "YYYYMMDD")){
- model.setValue("/root/send/acptdd", model.getValue("/root/send/acptdd"));
- //model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
- return (true);
- }else{
- // messageBox("예약일자를 정확히", "C001");
- return (false);
- }
- break;
-
- default :
- model.setFocus("cmb_cond");
- return( false );
- break;
- }
- }
-
- /*
- * 입력값의 유효범위 체크
- */
- function fInputValueCheck(){
- var cond = model.getValue("/root/send/srchcond");
- switch(cond){
- case '1':
- //환자등록번호 체크
- if(ipt_pid.currentText.length >= 1 ){
- model.setValue("/root/send/pid", ipt_pid.currentText);
- return (true);
- }else{
- messageBox("환자등록번호를 정확히", "C001");
- model.setFocus("ipt_pid");
- return (false);
- }
- break;
-
- case '2':
- //환자이름 체크
- if( ipt_hngnm.currentText.length >= 2 ){
- model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
- return (true);
- }else{
- messageBox("환자이름을 2자리 이상", "C001");
- model.setFocus("ipt_hngnm");
- return (false);
- }
- break;
-
- case '3':
- //환자 주민번호 체크
- if( ipt_rrgstno1.currentText.length >= 4 && ipt_rrgstno2.currentText.length >= 1){
- model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
- model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
- return (true);
- }else{
- if(ipt_rrgstno1.currentText.length < 4){
- messageBox("환자 주민번호 앞자리를 4자리 이상", "C001");
- model.setFocus("ipt_rrgstno1");
- return (false);
- }
- if(ipt_rrgstno2.currentText.length < 1){
- messageBox("환자 주민번호 뒷자리를 1자리 이상", "C001");
- model.setFocus("ipt_rrgstno2");
- return (false);
- }
- messageBox("환자 주민번호를", "C001");
- model.setFocus("ipt_rrgstno1");
- return (false);
- }
- break;
-
- case '4':
- //환자이름 유효성 체크. 환자 주민번호 체크
-
- //환자이름 체크
- if(ipt_hngnm.currentText.length >= 2){
- model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
- }else{
- messageBox("환자이름을 2자리 이상", "C001");
- model.setFocus("ipt_hngnm");
- return (false);
- }
- //환자 주민번호 체크
- if( ipt_rrgstno1.currentText.length >= 4 ){
- model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
- model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
- }else{
- if(ipt_rrgstno1.currentText.length < 4){
- messageBox("환자 주민번호 앞자리를 4자리 이상", "C001");
- model.setFocus("ipt_rrgstno1");
- return (false);
- }
- }
- return( true );
- break;
-
- case '5':
- //예약일자 유효성 체크
- model.refresh();
- if(isValidDateTime( model.getValue("/root/send/acptdd"), "YYYYMMDD")){
- return (true);
- }else{
- messageBox("예약일자를 정확히", "C001");
- return (false);
- }
- break;
-
- default :
- messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
- model.setFocus("cmb_cond");
- return( false );
- break;
- }
- }
-
- //조회 조건에 맞는 input 컨트롤을 세팅해 준다.
- function fChangeSearchCondition(cond){
- switch(cond){
- case '1':
- model.makeNode("/root/send/pid");
-
- ipt_pid.attribute("visibility") = "visible";
- ipt_pid.attribute("left") = "219px";
- ipt_pid.attribute("top") = "8px";
- ipt_hngnm.attribute("visibility") = "hidden";
- ipt_rrgstno1.attribute("visibility") = "hidden";
- ipt_rrgstno2.attribute("visibility") = "hidden";
- ipt_acptdd.attribute("visibility") = "hidden";
-
- model.setFocus("ipt_pid");
- break;
-
- case '2':
- model.makeNode("/root/send/hngnm");
-
- ipt_hngnm.attribute("visibility") = "visible";
- ipt_hngnm.attribute("left") = "219px";
- ipt_hngnm.attribute("top") = "8px";
- ipt_pid.attribute("visibility") = "hidden";
- ipt_rrgstno1.attribute("visibility") = "hidden";
- ipt_rrgstno2.attribute("visibility") = "hidden";
- ipt_acptdd.attribute("visibility") = "hidden";
-
- model.setFocus("ipt_hngnm");
- break;
-
- case '3':
- model.makeNode("/root/send/rrgstno1");
- model.makeNode("/root/send/rrgstno2");
-
- ipt_rrgstno1.attribute("visibility") = "visible";
- ipt_rrgstno2.attribute("visibility") = "visible";
- ipt_rrgstno1.attribute("left") = "219px";
- ipt_rrgstno1.attribute("top") = "8px";
- ipt_rrgstno2.attribute("left") = "307px";
- ipt_rrgstno2.attribute("top") = "8px";
- ipt_hngnm.attribute("visibility") = "hidden";
- ipt_pid.attribute("visibility") = "hidden";
- ipt_acptdd.attribute("visibility") = "hidden";
-
- model.setFocus("ipt_rrgstno1");
- break;
-
- case '4':
- //model.makeNode("/root/send/pid");
- model.makeNode("/root/send/hngnm");
- model.makeNode("/root/send/rrgstno1");
- model.makeNode("/root/send/rrgstno2");
-
- ipt_hngnm.attribute("visibility") = "visible";
- ipt_hngnm.attribute("left") = "219px";
- ipt_hngnm.attribute("top") = "8px";
- ipt_pid.attribute("visibility") = "hidden";
- ipt_rrgstno1.attribute("visibility") = "visible";
- ipt_rrgstno1.attribute("left") = "352px";
- ipt_rrgstno1.attribute("top") = "8px";
- ipt_rrgstno2.attribute("visibility") = "visible";
- ipt_rrgstno2.attribute("left") = "440px";
- ipt_rrgstno2.attribute("top") = "8px";
- ipt_acptdd.attribute("visibility") = "hidden";
-
- model.setFocus("ipt_hngnm");
- break;
-
- case '5':
- model.makeNode("/root/send/acptdd");
-
- ipt_acptdd.attribute("visibility") = "visible";
- ipt_acptdd.attribute("left") = "219px";
- ipt_acptdd.attribute("top") = "8px";
- ipt_hngnm.attribute("visibility") = "hidden";
- ipt_pid.attribute("visibility") = "hidden";
- ipt_rrgstno1.attribute("visibility") = "hidden";
- ipt_rrgstno2.attribute("visibility") = "hidden";
-
- //진료일 오늘 날짜 디폴트 세팅
- model.makeNode("/root/send/acptdd");
- model.setValue("/root/send/acptdd", getCurrentDate() );
- model.setFocus("ipt_acptdd");
- break;
-
- default :
- //messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
- break;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="634" pageheight="343" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:618px; height:316px; ">
- <datagrid id="grd_patinfo2" nodeset="/root/main/patinfo/patinfolist" class="datagrid2" caption="등록번호^합번^기관코드^환자성명^영문이름^한문이름^주민등록번호^주민등록번호^주민등록번호^최근보험유형^집전화번호^휴대전화번호^최근내원일^최근내원과^외래미수금^퇴원미수금^생년월일^성별^나이^합본등록번호^기타전화번호1^기타전화번호2^sms전송승인 여부^이메일 계정^우편번호^우편번호^우편번호순서^주소^상세주소^혈액형^RH혈액형^외국인여부^국적^여권번호^추천여부^추천인ID^추천인명^추천인관계^VIP여부^VIP비고^종교코드^세례명^성당명^사망여부^사망시각^사망일자^사망시간^내원사유^동물여부^원외예외사유코드^재원여부^장애인여부^특이/문제환자^당일퇴원여부^참고사항^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시^pidflag" colsep="^" colwidth="60, 18, 100, 65, 65, 65, 50, 50, 50, 100, 85, 100, 100, 100, 100, 100, 75, 100, 100, 100, 100, 100, 120, 100, 50, 50, 100, 250, 250, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 119, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="2" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" navindex="7" style="left:0px; top:65px; width:617px; height:250px; ">
- <col ref="pid"/>
- <col ref="bindyn"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="hngnm"/>
- <col ref="engnm" visibility="hidden"/>
- <col ref="chinm" visibility="hidden"/>
- <col ref="rrgstno1"/>
- <col ref="rrgstno2" visibility="hidden"/>
- <col ref="rrgstno3"/>
- <col ref="lastinsukind"/>
- <col ref="hometel" visibility="hidden"/>
- <col ref="mpphontel" visibility="hidden"/>
- <col ref="lastorddd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="lastorddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="outuncoamt" visibility="hidden"/>
- <col ref="dschuncoamt" visibility="hidden"/>
- <col ref="brthdd" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="sex" visibility="hidden"/>
- <col ref="age" visibility="hidden"/>
- <col ref="bindpid" visibility="hidden"/>
- <col ref="etctel1" visibility="hidden"/>
- <col ref="etctel2" visibility="hidden"/>
- <col ref="smsaprvyn" visibility="hidden"/>
- <col ref="email" visibility="hidden"/>
- <col ref="zipcd1" visibility="hidden"/>
- <col ref="zipcd2" visibility="hidden"/>
- <col ref="zipcdseq" visibility="hidden"/>
- <col ref="addr"/>
- <col ref="detladdr" visibility="hidden"/>
- <col ref="btype" visibility="hidden"/>
- <col ref="rh" visibility="hidden"/>
- <col ref="forgeryn" visibility="hidden"/>
- <col ref="nati" visibility="hidden"/>
- <col ref="psptno" visibility="hidden"/>
- <col ref="recmyn" visibility="hidden"/>
- <col ref="recmerid" visibility="hidden"/>
- <col ref="recmernm" visibility="hidden"/>
- <col ref="recmerrela" visibility="hidden"/>
- <col ref="vipyn" visibility="hidden"/>
- <col ref="viprem" visibility="hidden"/>
- <col ref="religncd" visibility="hidden"/>
- <col ref="baptnm" visibility="hidden"/>
- <col ref="chchnm" visibility="hidden"/>
- <col ref="dethyn" visibility="hidden"/>
- <col ref="dethdt" visibility="hidden"/>
- <col ref="dethdd" visibility="hidden"/>
- <col ref="dethtm" visibility="hidden"/>
- <col ref="chosresn" visibility="hidden"/>
- <col ref="animyn" visibility="hidden"/>
- <col ref="exptresncd" visibility="hidden"/>
- <col ref="inhospyn" visibility="hidden"/>
- <col ref="handicapryn" visibility="hidden"/>
- <col ref="patspcfyn" visibility="hidden"/>
- <col ref="tdaydsch" visibility="hidden"/>
- <col ref="remfact" visibility="hidden"/>
- <col ref="acptdd" visibility="hidden"/>
- <col ref="acptno" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <col ref="pidflag" visibility="hidden"/>
- <col ref="hngnm2" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(checkOpener()){
- // row = grd_patinfo.row;
- // if(row > 0){
- // if(getNodesetCount("/root/main/patinfo/patinfolist") > 0){
- // opener.model.copyNode("/root/main/patinfo/patinfolist", grd_patinfo.getNode(row));
- // opener.model.makeNode("/root/main/popupendflag");
- // opener.model.setValue("/root/main/popupendflag", "ok");
- // opener.model.refresh();
- // window.close();
- // }
- // }
- if(isDataCell()){
- btn_confirm.dispatch("DOMActivate");
- }
-
- }else{
- messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- /*
- if(checkOpener()){
- row = grd_patinfo.row;
- if(row > 0){
- if(getNodesetCount("/root/main/patinfo/patinfolist") > 1){
- opener.model.copyNode("/root/main/patinfo/patinfolist", grd_patinfo.getNode(row));
- opener.model.refresh();
- }
- }
- }else{
- messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- }
- */
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if( event.keyCode == 13 ){
- btn_confirm.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:0px; top:0px; width:618px; height:35px; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:617px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="6" style="left:545px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fInputValueCheck()){
- // 2017/09/05 환자 조회시 function 조회 안하도록 수정(속도개선)
- model.makeValue("/root/send/functionyn", "N");
- // 2017/09/05 환자 조회시 function 조회 안하도록 수정(속도개선)
-
- // 주민번호 검색 - 전화예약환자 예외처리용
- if (ipt_rrgstno1.currentText.length == 6 && ipt_rrgstno2.currentText.length == 7) {
- model.makeValue("/root/send/hiddenflag", "");
- } else {
- model.makeValue("/root/send/hiddenflag", "Y");
- }
-
- if(submit("TRPMC02500")){
- if(PatRefPamFlag == "SMP" || PatRefPamFlag == "SPP"){
- if(grd_patinfo.rows > 1){
- grd_patinfo.row = 1;
- model.setFocus("grd_patinfo");
-
- }else{
- fChangeSearchCondition(cmb_cond.value);
- }
- }else{
- if(grd_patinfo2.rows > 1){
- grd_patinfo2.row = 1;
- model.setFocus("grd_patinfo2");
-
- }else{
- fChangeSearchCondition(cmb_cond.value);
- }
- }
- }
- }
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:529px; y1:7px; x2:529px; y2:29px; border-color:#ffe4bb; "/>
- <input id="ipt_hngnm" ref="/root/send/hngnm" class="input_search" navindex="1" visibility="hidden" autonext="false" imemode="hangul" style="left:224px; top:8px; width:130px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_rrgstno1" ref="/root/send/rrgstno1" class="input_search" navindex="2" visibility="hidden" format="999999" style="left:247px; top:8px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_cond" ref="/root/send/srchcond" class="combo_search" navindex="10" appearance="minimal" style="left:106px; top:8px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0350list/P0350">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var cond = model.getValue("/root/send/srchcond");
- fChangeSearchCondition(cond);
- ]]>
- </script>
- </select1>
- <input id="ipt_rrgstno2" ref="/root/send/rrgstno2" class="input_search" navindex="3" visibility="hidden" autonext="false" format="9999999" style="left:285px; top:8px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_pid" ref="/root/send/pid" class="input_search" navindex="4" visibility="hidden" autonext="false" style="left:325px; top:8px; width:130px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_acptdd" ref="/root/send/acptdd" class="input_search" navindex="5" visibility="hidden" autonext="false" inputtype="date" style="left:390px; top:8px; width:130px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:95px; height:14px; ">인적사항</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:617px; y2:60px; "/>
- <datagrid id="grd_patinfo" nodeset="/root/main/patinfo/patinfolist" class="datagrid2" caption="등록번호^합번^기관코드^환자성명^영문이름^한문이름^주민등록번호^주민등록번호^주민등록번호^최근보험유형^집전화번호^휴대전화번호^최근내원일^최근내원과^외래미수금^퇴원미수금^생년월일^성별^나이^합본등록번호^기타전화번호1^기타전화번호2^sms전송승인 여부^이메일 계정^우편번호^우편번호^우편번호순서^주소^상세주소^혈액형^RH혈액형^외국인여부^국적^여권번호^추천여부^추천인ID^추천인명^추천인관계^VIP여부^VIP비고^종교코드^세례명^성당명^사망여부^사망시각^사망일자^사망시간^내원사유^동물여부^원외예외사유코드^재원여부^장애인여부^특이/문제환자^당일퇴원여부^참고사항^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시^pidflag^caption1^caption2^caption3" colsep="^" colwidth="60, 18, 100, 65, 65, 65, 50, 50, 50, 100, 85, 100, 100, 100, 100, 100, 75, 100, 100, 100, 100, 100, 120, 100, 50, 50, 100, 250, 250, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 119, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="2" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" navindex="7" style="left:0px; top:65px; width:617px; height:250px; ">
- <col ref="pid"/>
- <col ref="bindyn"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="hngnm"/>
- <col ref="engnm" visibility="hidden"/>
- <col ref="chinm" visibility="hidden"/>
- <col ref="rrgstno1"/>
- <col ref="rrgstno2" visibility="hidden"/>
- <col ref="rrgstno3"/>
- <col ref="lastinsukind"/>
- <col ref="hometel"/>
- <col ref="mpphontel"/>
- <col ref="lastorddd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="lastorddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="outuncoamt" visibility="hidden"/>
- <col ref="dschuncoamt" visibility="hidden"/>
- <col ref="brthdd" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="sex" visibility="hidden"/>
- <col ref="age" visibility="hidden"/>
- <col ref="bindpid" visibility="hidden"/>
- <col ref="etctel1" visibility="hidden"/>
- <col ref="etctel2" visibility="hidden"/>
- <col ref="smsaprvyn" visibility="hidden"/>
- <col ref="email" visibility="hidden"/>
- <col ref="zipcd1" visibility="hidden"/>
- <col ref="zipcd2" visibility="hidden"/>
- <col ref="zipcdseq" visibility="hidden"/>
- <col ref="addr"/>
- <col ref="detladdr"/>
- <col ref="btype" visibility="hidden"/>
- <col ref="rh" visibility="hidden"/>
- <col ref="forgeryn" visibility="hidden"/>
- <col ref="nati" visibility="hidden"/>
- <col ref="psptno" visibility="hidden"/>
- <col ref="recmyn" visibility="hidden"/>
- <col ref="recmerid" visibility="hidden"/>
- <col ref="recmernm" visibility="hidden"/>
- <col ref="recmerrela" visibility="hidden"/>
- <col ref="vipyn" visibility="hidden"/>
- <col ref="viprem" visibility="hidden"/>
- <col ref="religncd" visibility="hidden"/>
- <col ref="baptnm" visibility="hidden"/>
- <col ref="chchnm" visibility="hidden"/>
- <col ref="dethyn" visibility="hidden"/>
- <col ref="dethdt" visibility="hidden"/>
- <col ref="dethdd" visibility="hidden"/>
- <col ref="dethtm" visibility="hidden"/>
- <col ref="chosresn" visibility="hidden"/>
- <col ref="animyn" visibility="hidden"/>
- <col ref="exptresncd" visibility="hidden"/>
- <col ref="inhospyn" visibility="hidden"/>
- <col ref="handicapryn" visibility="hidden"/>
- <col ref="patspcfyn" visibility="hidden"/>
- <col ref="tdaydsch" visibility="hidden"/>
- <col ref="remfact" visibility="hidden"/>
- <col ref="acptdd" visibility="hidden"/>
- <col ref="acptno" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <col ref="pidflag" visibility="hidden"/>
- <col ref="hngnm2" visibility="hidden"/>
- <col ref="scanyn" visibility="hidden"/>
- <col ref="carnum" visibility="hidden"/>
- <col ref="spifscanyn" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( checkOpener() ) {
- // row = grd_patinfo.row;
- // if(row > 0){
- // if(getNodesetCount("/root/main/patinfo/patinfolist") > 0){
- // opener.model.copyNode("/root/main/patinfo/patinfolist", grd_patinfo.getNode(row));
- // opener.model.makeNode("/root/main/popupendflag");
- // opener.model.setValue("/root/main/popupendflag", "ok");
- // opener.model.refresh();
- // window.close();
- // }
- // }
- if(model.getValue("/root/send/worktype").toUpperCase() == 'PAM' ){
- var hngnm = grd_patinfo.valueMatrix(grd_patinfo.row, grd_patinfo.colRef("hngnm"));
- var rrgstno1 = grd_patinfo.valueMatrix(grd_patinfo.row, grd_patinfo.colRef("rrgstno1"));
- var cnt = getNodesetCount("/root/main/patinfo/patinfolist[hngnm='"+ hngnm + "' and rrgstno1='" + rrgstno1 + "']");
- if(parseInt(cnt)>1){
- messageBox("동명이인이 있으니 인적정보(주소, 전화번호 등)를 확인하여\n주시기 바랍니다", "I");
- }
-
- if(isDataCell()){
- btn_confirm.dispatch("DOMActivate");
- }
- }else{
- if(isDataCell()){
- btn_confirm.dispatch("DOMActivate");
- }
- }
- }else{
- messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- /*
- if(checkOpener()){
- row = grd_patinfo.row;
- if(row > 0){
- if(getNodesetCount("/root/main/patinfo/patinfolist") > 1){
- opener.model.copyNode("/root/main/patinfo/patinfolist", grd_patinfo.getNode( row ));
- opener.model.refresh();
- }
- }
- }else{
- messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- }
- */
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if( event.keyCode == 13 ){
- btn_confirm.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_patinfo.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <!-- 수정이력 20100223 JHP 여의도 기준 다른팀에서 작업하기 싫어서 원무팀에 넘긴 일정임 원무팀에서 본 화면 열때는 원래대로 다른 팀 화면에서 열때는 하단의 그리드 보여지도록 수정함.-->
- <caption id="caption3" style="left:550px; top:40px; width:50px; height:20px; ">재원여부</caption>
- <bool id="bl_inhospyn" checkvalue="Y,N" ref="/root/send/inhospyn" style="left:527px; top:39px; width:20px; height:20px; "/>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:316px; width:618px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" navindex="8" style="left:502px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(checkOpener()){
-
- if(PatRefPamFlag == "SMP" || PatRefPamFlag == "SPP"){
- row = grd_patinfo.row;
- }else{
- row = grd_patinfo2.row;
- }
-
- opener.model.makeNode("/root/main/popupendflag");
- opener.model.setValue("/root/main/popupendflag", "cancel");
-
- if(row > 0){
- if(getNodesetCount("/root/main/patinfo/patinfolist") > 0){
- //합번된 등록번호 메세지 처리
- var sPid = model.getValue("/root/main/patinfo/patinfolist[" + row + "]/pid");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist[" + row + "]/hngnm");
- var sBindPid = model.getValue("/root/main/patinfo/patinfolist[" + row + "]/bindpid");
-
- if (!isNull(sPid)) {
- model.makeValue("/root/send/srchcond", "1");
- model.makeValue("/root/send/pid", sPid);
- model.makeValue("/root/send/hiddenflag", "");
- submit("TRPMC02500")
-
- row = 1;
- }
-
- if( sBindPid != '' && sBindPid != '-' && sBindPid != ' '){
- var retValue = messageBox(sPid + "(" + sHngnm + ") 환자의 등록번호가 [ " + sBindPid + " ] 로 합번 되었습니다. 합번된 등록번호로 재조회 하시겠습니까?", "Q999", "");
- if( retValue == '6' ){
- try{
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/srchcond", "1");
- fChangeSearchCondition( '1' );
- model.setValue("/root/send/pid", sBindPid);
- model.refresh();
-
- btn_search.dispatch("DOMActivate");
- }catch(e){
- return false;
- }
- }
- return false;
- }
-
- if(PatRefPamFlag == "SMP" || PatRefPamFlag == "SPP"){
- opener.model.copyNode("/root/main/patinfo/patinfolist", grd_patinfo.getNode( row ));
- }else{
- opener.model.copyNode("/root/main/patinfo/patinfolist", grd_patinfo2.getNode( row ));
- }
- opener.model.makeNode("/root/main/popupendflag");
- opener.model.setValue("/root/main/popupendflag", "ok");
- }
- //else{
- // opener.model.setValue("/root/main/popupendflag", "cancel");
- //}
- //opener.model.refresh();
- //window.close();
-
- }else {
- //opener.model.setValue("/root/main/popupendflag", "cancel");
- messageBox("행이 정확히 선택되지", "E007");
- //opener.model.refresh();
- //window.close();
- }
- } else {
- messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- //opener.model.setValue("/root/main/popupendflag", "cancel");
- //opener.model.refresh();
- //window.close();
- }
- opener.model.refresh();
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" navindex="9" style="left:561px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- opener.model.makeNode("/root/main/popupendflag");
- opener.model.setValue("/root/main/popupendflag", "cancel");
- window.close();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:618px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|