123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581 |
- <?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>
- <orddeptcd/>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <todaypatyn/>
- <acptdd/>
- </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>
- <codedata>
- <popup>
- <popupnm>전화번호 변경</popupnm>
- <popupcd>fShowPopup</popupcd>
- </popup>
- </codedata>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0350"), new Array("/root/init/P0350list"));
-
- // 간호외래진료부서콤보 (특정하위부서를 포함- 분만실, 육아상담실, 인공신장실)
- zsdfGetCareOutOrderDepartmentList(getUserInfo("dutplceinstcd"), "/root/init/orddept", getCurrentDate()); // com/departmentcodeweb/js/ZSD001.js
- //addComboInstance("/root/init/orddept", "deptcd^depthngnm", "0000000000^전체진료과", "dept"); //진료부서 콤보 전체추가
- addComboItem("cmb_orddept", "전체", "0000000000", "above"); // 진료부서 콤보 전체추가_ tfHelper.js
- model.makeValue("/root/send/orddeptcd", getUserInfo("dutplcecd")); // 근무지부서코드
- if(cmb_orddept.label==""){
- model.makeValue("/root/send/orddeptcd", "0000000000"); // 근무지부서코드
- }
-
- //진료과코드 진료의사ID 조회
- pamGetDeptCDDrIDList();
-
- //플래그 초기화!
- opener.model.makeNode("/root/main/popupendflag");
- opener.model.setValue("/root/main/popupendflag", "cancel");
-
- var openerpid = opener.model.getValue("/root/main/cond/pid");
- if(openerpid != ""){
- model.makeValue("/root/send/pid", openerpid);
- cmb_cond.refresh();
- ipt_pid.refresh();
- fSrchPatInfo();
- }
- else{
- //검색조건 디폴트값 셋팅
- if(cmb_cond.label==""){
- model.makeValue("/root/send/srchcond", "3"); //검색 조건
- fChangeSearchCondition("3");
- cmb_cond.refresh();
- }
- }
-
-
- model.removeNodeset("/root/main/patinfo/patinfolist");
- grd_patinfo.refresh();
- ]]>
- </script>
- <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"/>-->
- <submission id="TRMNO02400" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfo"/>
- <submission id="TRZSD00206" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- </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="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript">
- <![CDATA[
-
- //창 생성시 부모창으로 부터 받은 입력값의 유효범위 체크
- function fInputValueCheckXformsReady(){
-
- 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");
- return (false);
- }
- break;
-
- case '2':
- //환자이름 체크
- //if( ipt_hngnm.currentText.length >= 2 ) return (true);
- if(ipt_hngnm.currentText.length >= 2 ){
- model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
- return (true);
- }else{
- //messageBox("환자이름을 2자리 이상", "C001");
- return (false);
- }
- break;
-
- case '3':
- //환자 주민번호 체크
- if( ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1){
- model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
- model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
- return (true);
- }else{
- //messageBox("환자 주민번호를", "C001");
- return (false);
- }
- break;
-
- case '4':
- //환자이름 유효성 체크. 환자 주민번호 체크
- if(ipt_hngnm.currentText.length >= 2 || ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1){
- model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
- model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
- model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
- }else{
- //messageBox("환자이름을 2자리 이상", "C001");
- return (false);
- }
-
- return( true );
- break;
-
- default :
- model.setFocus("cmb_orddept");
- 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");
- return (false);
- }
- break;
-
- case '2':
- //환자이름 체크
- //if( ipt_hngnm.currentText.length >= 2 ) return (true);
- if(ipt_hngnm.currentText.length >= 2 ){
- model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
- return (true);
- }else{
- messageBox("환자이름을 2자리 이상", "C001");
- return (false);
- }
- break;
-
- case '3':
- //환자 주민번호 체크
- if( ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1 ){
- model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
- model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
- return (true);
- }else{
- messageBox("환자 주민번호를", "C001");
- return (false);
- }
- break;
-
- case '4':
- //환자이름 유효성 체크. 환자 주민번호 체크
- if(ipt_hngnm.currentText.length >= 2 || ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1){
- model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
- model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
- model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
- }else{
- messageBox("환자이름 또는 주민번호를", "C001");
- return (false);
- }
-
-
- return( true );
- 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_hngnm.attribute("visibility") = "hidden";
- ipt_rrgstno1.attribute("visibility") = "hidden";
- ipt_rrgstno2.attribute("visibility") = "hidden";
-
- ipt_pid.attribute("left") = "479px";
- model.setFocus("ipt_pid");
- break;
-
- case '2':
- model.makeNode("/root/send/hngnm");
-
- ipt_pid.attribute("visibility") = "hidden";
- ipt_hngnm.attribute("visibility") = "visible";
- ipt_rrgstno1.attribute("visibility") = "hidden";
- ipt_rrgstno2.attribute("visibility") = "hidden";
-
- ipt_hngnm.attribute("left") = "479px";
- model.setFocus("ipt_hngnm");
- break;
-
- case '3':
- model.makeNode("/root/send/rrgstno1");
- model.makeNode("/root/send/rrgstno2");
-
- ipt_pid.attribute("visibility") = "hidden";
- ipt_hngnm.attribute("visibility") = "hidden";
- ipt_rrgstno1.attribute("visibility") = "visible";
- ipt_rrgstno2.attribute("visibility") = "visible";
-
- ipt_rrgstno1.attribute("left") = "479px";
- ipt_rrgstno2.attribute("left") = "542px";
- 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_pid.attribute("visibility") = "hidden";
- ipt_hngnm.attribute("visibility") = "visible";
- ipt_rrgstno1.attribute("visibility") = "visible";
- ipt_rrgstno2.attribute("visibility") = "visible";
-
- ipt_hngnm.attribute("left") = "479px";
- ipt_rrgstno1.attribute("left") = "567px";
- ipt_rrgstno2.attribute("left") = "630px";
- model.setFocus("ipt_hngnm");
- break;
-
- default :
- //messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
- break;
- }
-
- }
- function fSrchPatInfo(){
- if( fInputValueCheck() ){
- if( submit("TRMNO02400") ){
- if( grd_patinfo.rows > 1 ){
- model.setFocus("grd_patinfo");
- }else{
- fChangeSearchCondition( cmb_cond.value );
- }
- }
-
- // 입력란 초기화
- model.makeValue("/root/send/pid","");
- model.makeValue("/root/send/hngnm","");
- model.makeValue("/root/send/rrgstno1","");
- model.makeValue("/root/send/rrgstno2","");
- ipt_pid.refresh();
- ipt_hngnm.refresh();
- ipt_rrgstno1.refresh();
- ipt_rrgstno2.refresh();
- }
- }
-
- //전화번호 수정 팝업 호출 2009.06.15 taebum
- function fShowPopup(){
- var cur_row = grd_patinfo.row;
- if(cur_row < 1){
- return false;
- }
- var hngnm = grd_patinfo.valueMatrix( cur_row, grd_patinfo.colRef("hngnm"));
- var pid = grd_patinfo.valueMatrix( cur_row, grd_patinfo.colRef("pid"));
-
- if (pid == null && pid == "" && pid == " " && pid == "-" ){
- return false;
- }
-
- model.removeNodeset("/root/temp/source");
- model.makeValue("/root/temp/source/srchcond", "1");
- model.makeValue("/root/temp/source/pid", pid);
-
- modal("SPPMO01400", "1", "100", "100", "SPPMO01400", "/root/temp/source", "/root/source");
-
- var hometel = getParameter("SMPMO01400_hometel");
- var mpphontel = getParameter("SMPMO01400_mpphontel");
- if(mpphontel == "" || mpphontel == null || mpphontel == "undefined"){
- mpphontel = "";
- }
-
- //if( hometel != '' && mpphontel != '' ){
- grd_patinfo.valueMatrix( cur_row, grd_patinfo.colRef("hometel")) = hometel;
- grd_patinfo.valueMatrix( cur_row, grd_patinfo.colRef("mpphontel")) = mpphontel;
- model.removeNodeset("/root/temp/source");
- //}
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="870" pageheight="343" guideline="2,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:845px; height:316px; ">
- <group id="group2" style="left:0px; top:5px; width:840px; height:35px; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:840px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:273px; top:9px; width:86px; height:17px; ">검색조건 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="7" style="left:775px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSrchPatInfo();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:769px; y1:7px; x2:769px; y2:29px; border-color:#ffe4bb; "/>
- <input id="ipt_rrgstno1" ref="/root/send/rrgstno1" class="input_search" navindex="4" visibility="hidden" format="999999" style="left:567px; top:8px; width:60px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_hngnm" ref="/root/send/hngnm" class="input_search" navindex="3" visibility="hidden" autonext="false" imemode="hangul" style="left:479px; 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="6" visibility="hidden" autonext="false" style="left:480px; top:8px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_rrgstno2" ref="/root/send/rrgstno2" class="input_search" navindex="5" visibility="hidden" autonext="false" format="9999999" style="left:630px; top:8px; width:60px; 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="2" appearance="minimal" style="left:361px; top:8px; width:115px; height:19px; ">
- <choices>
- <item>
- <label>등록번호</label>
- <value>1</value>
- </item>
- <item>
- <label>환자명</label>
- <value>2</value>
- </item>
- <item>
- <label>주민번호</label>
- <value>3</value>
- </item>
- <item>
- <label>환자명/주민번호</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var cond = model.getValue("/root/send/srchcond");
-
- //model.refresh();
- fChangeSearchCondition(cond);
- ]]>
- </script>
- </select1>
- <select id="checkbox2" ref="/root/send/todaypatyn" class="checkbox_search" overflow="visible" appearance="full" style="left:698px; top:10px; width:70px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>당일환자</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption3" class="search_name" style="left:5px; top:9px; width:73px; height:17px; ">진료과 :</caption>
- <select1 id="cmb_orddept" ref="/root/send/orddeptcd" class="combo_search" navindex="1" appearance="minimal" style="left:79px; top:8px; width:176px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- </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:840px; y2:60px; "/>
- <datagrid id="grd_patinfo" nodeset="/root/main/patinfo/patinfolist" caption="등록번호^환자성명^주민등록번호^주민등록번호^집전화번호^휴대전화번호^최근내원일^최근내원과^주소^상세주소" colsep="^" colwidth="60, 65, 50, 50, 85, 100, 100, 100, 250, 250" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" navindex="8" style="left:0px; top:65px; width:840px; height:250px; ">
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="rrgstno1"/>
- <col ref="rrgstno2"/>
- <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="addr"/>
- <col ref="detladdr"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (event.button == 3 ){
- window.setPopupMenu( true, "/root/codedata/popup", "popupnm", "popupcd", false);
- }else{
- window.setPopupMenu(false);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( checkOpener()) {
- if(isDataCell()){
- row = grd_patinfo.row;
- //if(row >0 && grd_patinfo.col == 1)
- 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();
- }
- }
- }
- } else {
- messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if( event.keyCode == 13 ){
- btn_confirm.dispatch("DOMActivate");
- }
- //alert("aaa");
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:316px; width:840px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" navindex="9" style="left:717px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( checkOpener() ) {
- row = grd_patinfo.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( sBindPid != '' && sBindPid != '-' ){
- messageBox(sPid + "(" + sHngnm + ") 환자의 등록번호가 [ " + sBindPid + " ] 로 합번 되었습니다.", "I999", "");
- return false;
- }
-
- opener.model.copyNode("/root/main/patinfo/patinfolist", grd_patinfo.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="10" style="left:776px; 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:838px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|