123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474 |
- <?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>VIP환자신청관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <vippatbaseinfo>
- <vippatbaseinfolist>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <hometel/>
- <mpphontel/>
- <etctel/>
- <vipcls/>
- <vipflag/>
- <dutplce/>
- <jobpos/>
- <remfact/>
- <vipcheck/>
- <age/>
- <brthdd/>
- </vippatbaseinfolist>
- </vippatbaseinfo>
- <appcnfm>
- <appcnfmlist/>
- </appcnfm>
- <result>
- <vippatbaseinfo>
- <vippatbaseinfolist/>
- </vippatbaseinfo>
- </result>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <popupendflag/>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <updatedata/>
- <pid/>
- </send>
- <init>
- <P0443list>
- <P0443>
- <cdnm/>
- <cdid/>
- </P0443>
- </P0443list>
- <P0444list>
- <P0444>
- <cdnm/>
- <cdid/>
- </P0444>
- </P0444list>
- </init>
- <hidden>
- <source>
- <autoflag/>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </source>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPMC04701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/appcnfm"/>
- <submission id="TXPMC04702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/vippatbaseinfo/vippatbaseinfolist" resultref="/root/main/result"/>
- <submission id="TRPMC02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/source" resultref="/root/main/result/vippatbaseinfo"/>
- </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/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0443", "P0444"), new Array("/root/init/P0443list", "/root/init/P0444list"));
-
- //초기화
- fInitialize();
- model.refresh();
-
- //팝업화면으로 사용될 때
- if (checkOpener()){
- var pid = opener.javascript.getParameter("SPPMC04700_pid");
- var hngnm = opener.javascript.getParameter("SPPMC04700_hngnm");
- var rrgstno1 = opener.javascript.getParameter("SPPMC04700_rrgstno1");
- var rrgstno2 = opener.javascript.getParameter("SPPMC04700_rrgstno2");
-
- if( pid != '') {
- //진료과 세팅
- model.setValue("/root/main/vippatbaseinfo/vippatbaseinfolist/pid", pid);
- }else if( hngnm != '') {
- model.setValue("/root/main/vippatbaseinfo/vippatbaseinfolist/hngnm", hngnm);
- }else if( rrgstno1 != '') {
- model.setValue("/root/main/vippatbaseinfo/vippatbaseinfolist/rrgstno1", rrgstno1);
- }else if( rrgstno2 != '') {
- model.setValue("/root/main/vippatbaseinfo/vippatbaseinfolist/rrgstno2", rrgstno2);
- }
- }
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main/vippatbaseinfo/vippatbaseinfolist");
-
- // 날짜 입력 항목에 오늘 날짜 세팅
- var curDate = getCurrentDate();
- model.setValue("/root/send/fromdd", curDate);
- model.setValue("/root/send/todd", curDate);
-
- model.refresh();
- }
-
- function fdataCheck() {
- //환자이름 체크
- if( model.getValue("/root/main/vippatbaseinfo/vippatbaseinfolist/hngnm").getTrim().length < 2 ){
- messageBox("환자 이름을 정확히 입력하지 않았습니다. 다시 시도해 주십시오.", "E999", "" );
- model.setFocus("ipt_hngnm");
- return false;
- }
-
- //환자 주민번호 체크
- var rrgstno1 = model.getValue("/root/main/vippatbaseinfo/vippatbaseinfolist/rrgstno1").getTrim();
- var rrgstno2 = model.getValue("/root/main/vippatbaseinfo/vippatbaseinfolist/rrgstno2").getTrim();
- var rrgstno = rrgstno1.concat(rrgstno2);
- var vipcls = model.getValue("/root/main/vippatbaseinfo/vippatbaseinfolist/vipcls");
- var vipflag = model.getValue("/root/main/vippatbaseinfo/vippatbaseinfolist/vipflag");
- var pid = model.getValue("/root/main/vippatbaseinfo/vippatbaseinfolist/pid");
-
- if( rrgstno1.length != 6 || rrgstno2.length != 7){
- messageBox("주민등록번호를 정확히 입력하지 않았습니다. 다시 시도해 주십시오.", "E999", "" );
- return false;
- }else if (isResidentNo(rrgstno) == false){
- if( messageBox("유효하지 않은 주민등록번호입니다. 무시하고 계속 진행하시겠습니까?", "Q999", "") != 6){
- model.setFocus("ipt_rrgstno1");
- return false;
- }
- }
-
- //미입력사항 체크
- if( pid == '' || pid == null || pid == '-' || pid == ' '){
- model.setValue("/root/main/vippatbaseinfo/vippatbaseinfolist/pid", "-");
- }
-
- if( vipcls == '' || vipcls == null || vipcls == '-' || vipcls == ' '){
- messageBox("VIP분류가 선택되지 않았습니다. 다시 시도해 주십시오", "E999");
- return false;
- }
-
- if( vipflag == '' || vipflag == null || vipflag == '-' || vipflag == ' '){
- messageBox("VIP구분이 선택되지 않았습니다. 다시 시도해 주십시오", "E999");
- return false;
- }
- return true;
- }
-
- function f_vipinfosrch(){
- submit("TRPMC04701");
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="515" pageheight="450" guideline="2,442;1,496;2,203;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:496px; height:176px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:95px; height:13px; ">VIP입력사항</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:495px; y2:20px; "/>
- <input id="ipt_pid" ref="/root/main/vippatbaseinfo/vippatbaseinfolist/pid" appearance="input" style="left:95px; top:25px; width:125px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- //무조건 재조회 할수 있도록 clear 후에 조회 호출 필요
- if (event.keyCode == "13"){
- model.setValue("/root/hidden/source/srchcond", "1");
- var pid = ipt_pid.currentText;
-
- if( pid == '' || pid == ' ' ){
- model.setValue("/root/main/vippatbaseinfo/vippatbaseinfolist/pid", '');
- model.setFocus("ipt_hngnm");
-
- }else if( pid.length < 2 || isNaN(pid) ){
- model.setValue("/root/main/vippatbaseinfo/vippatbaseinfolist/pid", '');
- model.refresh();
- }else{
- model.setValue("/root/hidden/source/pid", pid);
-
- model.resetInstanceNode("/root/main/vippatbaseinfo/vippatbaseinfolist");
- if(submit("TRPMC02501")){
- model.copyNode("/root/main/vippatbaseinfo/vippatbaseinfolist", "/root/main/result/vippatbaseinfo/vippatbaseinfolist");
- model.refresh();
- }
-
- var vipcheck = model.getValue("/root/main/vippatbaseinfo/vippatbaseinfolist/vipcheck");
- if(vipcheck == 'N'){
- messageBox("이미 신청된 VIP환자입니다.", "E999", "");
- model.resetInstanceNode("/root/main/vippatbaseinfo/vippatbaseinfolist");
- model.resetInstanceNode("/root/hidden/source");
- model.refresh();
- return;
-
- }else if(vipcheck == 'Y') {
- messageBox("이미 승인된 VIP환자입니다. ", "E999", "");
- model.resetInstanceNode("/root/main/vippatbaseinfo/vippatbaseinfolist");
- model.resetInstanceNode("/root/hidden/source");
- model.refresh();
- return;
- }
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption29" class="cell_1" style="left:0px; top:24px; width:90px; height:23px; vertical-align:middle; ">등록번호</caption>
- <input id="ipt_hngnm" ref="/root/main/vippatbaseinfo/vippatbaseinfolist/hngnm" class="input_s_essential" appearance="input" style="left:348px; top:25px; width:140px; 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>
- <caption id="caption2" class="cell_1" style="left:250px; top:24px; width:92px; height:23px; vertical-align:middle; ">이름</caption>
- <caption id="caption4" class="cell_1" style="left:250px; top:49px; width:92px; height:23px; vertical-align:middle; ">전화번호[집]</caption>
- <input id="input3" ref="/root/main/vippatbaseinfo/vippatbaseinfolist/hometel" appearance="input" style="left:348px; top:50px; width:140px; height:19px; "/>
- <input id="ipt_rrgstno1" ref="/root/main/vippatbaseinfo/vippatbaseinfolist/rrgstno1" class="input_s_essential" navindex="1" autonext="true" format="999999" style="left:95px; top:51px; width:73px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- var hngnm = ipt_hngnm.currentText;
- var rrgstno1 = ipt_rrgstno1.currentText;
- var rrgstno2 = ipt_rrgstno2.currentText;
-
- if( hngnm.length > 1 ){
- model.setValue("/root/hidden/source/srchcond", "4");
- model.setValue("/root/hidden/source/hngnm", hngnm);
- model.setValue("/root/hidden/source/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/source/rrgstno2", rrgstno2);
-
- }else{
- model.setValue("/root/hidden/source/srchcond", "3");
- model.setValue("/root/hidden/source/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/source/rrgstno2", rrgstno2)
- }
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_rrgstno2" ref="/root/main/vippatbaseinfo/vippatbaseinfolist/rrgstno2" class="input_s_essential" navindex="2" autonext="false" format="9999999" style="left:172px; top:51px; width:73px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13"){
- var hngnm = ipt_hngnm.currentText;
- var rrgstno1 = ipt_rrgstno1.currentText;
- var rrgstno2 = ipt_rrgstno2.currentText;
-
- if( hngnm.length > 1 ){
- model.setValue("/root/hidden/source/srchcond", "4");
- model.setValue("/root/hidden/source/hngnm", hngnm);
- model.setValue("/root/hidden/source/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/source/rrgstno2", rrgstno2);
-
- }else{
- model.setValue("/root/hidden/source/srchcond", "3");
- model.setValue("/root/hidden/source/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/source/rrgstno2", rrgstno2);
- }
-
- //주민번호 뒷자리의 노드가 사라짐 해결
- model.setValue("/root/main/vippatbaseinfo/vippatbaseinfolist/rrgstno2", rrgstno2);
- if( rrgstno1.length == 6 && rrgstno2.length == 7 ){
- model.setValue("/root/hidden/source/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/source/rrgstno2", rrgstno2);
-
- if(submit("TRPMC02501")){
- if( getNodesetCount("/root/main/result/vippatbaseinfo/vippatbaseinfolist") == 1 ){
- model.copyNode("/root/main/vippatbaseinfo/vippatbaseinfolist", "/root/main/result/vippatbaseinfo/vippatbaseinfolist");
- model.setValue("/root/main/popupendflag", "ok");
-
- var vipcheck = model.getValue("/root/main/vippatbaseinfo/vippatbaseinfolist/vipcheck");
- if(vipcheck == 'N'){
- messageBox("이미 신청된 VIP환자입니다.", "E999", "");
- model.resetInstanceNode("/root/main/vippatbaseinfo/vippatbaseinfolist");
- model.resetInstanceNode("/root/hidden/source");
- model.refresh();
- return;
-
- }else if(vipcheck == 'Y') {
- messageBox("이미 승인된 VIP환자입니다. ", "E999", "");
- model.resetInstanceNode("/root/main/vippatbaseinfo/vippatbaseinfolist");
- model.resetInstanceNode("/root/hidden/source");
- model.refresh();
- return;
- }
-
- //주민번호체크
- model.setValue("/root/main/vippatbaseinfo/vippatbaseinfolist/age",getFullAge(model.getValue("/root/main/vippatbaseinfo/vippatbaseinfolist/brthdd")));
- model.refresh();
- // model.copyNode("/root/tmp/vippatbaseinfolist", "/root/main/result/vippatbaseinfo/vippatbaseinfolist");
-
- }else if(getNodesetCount("/root/main/result/vippatbaseinfo/vippatbaseinfolist") > 1 ){
- inputEnterKey("btn_search", "DOMActivate");
-
- }else{
- messageBox("일치하는 환자가 없습니다.", "E999", "");
- //model.resetInstanceNode("");
- }
- }
- }else{
- inputEnterKey("btn_search", "DOMActivate");
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption35" class="cell_1" style="left:0px; top:49px; width:90px; height:23px; ">주민번호</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:74px; width:90px; height:23px; ">휴대폰</caption>
- <input id="input2" ref="/root/main/vippatbaseinfo/vippatbaseinfolist/mpphontel" style="left:95px; top:76px; width:150px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:250px; top:74px; width:92px; height:23px; ">기타전화번호</caption>
- <input id="input4" ref="/root/main/vippatbaseinfo/vippatbaseinfolist/etctel" style="left:348px; top:76px; width:140px; height:19px; "/>
- <caption id="caption6" class="cell_1" style="left:0px; top:149px; width:90px; height:23px; ">특이사항</caption>
- <input id="input5" ref="/root/main/vippatbaseinfo/vippatbaseinfolist/remfact" style="left:96px; top:151px; width:395px; height:19px; "/>
- <caption id="caption8" class="cell_1" style="left:250px; top:99px; width:92px; height:23px; vertical-align:middle; ">VIP구분</caption>
- <select1 id="combo1" ref="/root/main/vippatbaseinfo/vippatbaseinfolist/vipflag" appearance="minimal" style="left:348px; top:100px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0444list/P0444">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="cell_1" style="left:0px; top:99px; width:90px; height:23px; ">VIP분류</caption>
- <select1 id="combo2" ref="/root/main/vippatbaseinfo/vippatbaseinfolist/vipcls" appearance="minimal" style="left:95px; top:102px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0443list/P0443">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption10" class="cell_1" style="left:0px; top:124px; width:90px; height:23px; ">근무처</caption>
- <input id="input6" ref="/root/main/vippatbaseinfo/vippatbaseinfolist/dutplce" style="left:95px; top:126px; width:150px; height:19px; "/>
- <caption id="caption11" class="cell_1" style="left:250px; top:124px; width:92px; height:23px; vertical-align:middle; ">직책</caption>
- <input id="input7" ref="/root/main/vippatbaseinfo/vippatbaseinfolist/jobpos" style="left:348px; top:125px; width:140px; height:19px; "/>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:171px; width:496px; height:32px; ">
- <button id="btn_vipapp" class="btn4_letter2" navindex="9" style="left:437px; top:6px; width:56px; height:22px; ">
- <caption>신청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //입력사항 체크
- if(fdataCheck() ) {
- if(submit("TXPMC04702")) {
- messageBox("신청이 ", "I001");
- f_vipinfosrch();
- model.resetInstanceNode("/root/hidden/source");
- fInitialize();
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="datagrid1" nodeset="/root/main/appcnfm/appcnfmlist" caption="승인상태^VIP구분^VIP분류^등록번호^환자이름^주민번호^주민번호^전화번호[집]^핸드폰번호^기타전화번호^근무처^직책^신청일자^승인일자^최초등록자^최초등록일시^최종수정자^최종수정일시" colwidth="60, 65, 65, 70, 65, 65, 65, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" defaultrows="2" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:247px; width:496px; height:160px; ">
- <col disabled="true" ref="aprstat" type="combo">
- <choices>
- <item>
- <label>승인</label>
- <value>Y</value>
- </item>
- <item>
- <label>취소</label>
- <value>C</value>
- </item>
- <item>
- <label>신청</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="vipcls" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0443list/P0443">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="vipflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0444list/P0444">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="rrgstno1"/>
- <col ref="rrgstno2"/>
- <col ref="hometel"/>
- <col ref="mpphontel"/>
- <col ref="etctel"/>
- <col ref="dutplce"/>
- <col ref="jobpos"/>
- <col ref="appdd"/>
- <col ref="aprdd"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- </datagrid>
- <button id="button2" class="btn4_letter2" style="left:438px; top:411px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_patSearch" class="btn1_letter2" navindex="6" style="left:437px; top:217px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- f_vipinfosrch();
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:0px; top:217px; width:86px; height:17px; ">검색조건 :</caption>
- <caption id="caption21" style="left:95px; top:217px; width:59px; height:19px; vertical-align:middle; ">일자 :</caption>
- <caption id="caption24" style="left:219px; top:217px; width:15px; height:19px; text-align:center; ">~</caption>
- <input id="ipt_todd" ref="/root/send/todd" class="input_default" navindex="5" inputtype="date" style="left:235px; top:217px; width:85px; height:19px; "/>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_default" navindex="4" inputtype="date" style="left:133px; top:217px; width:85px; height:19px; "/>
- <button id="btn_search" accesskey="f2" class="icon_search" style="left:228px; top:28px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/hidden/source/autoflag", "Y");
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden/source", "/root/send");
-
- //빠진노드 생성
- model.makeNode("/root/main/patinfo/patinfolist/etctel")
- model.makeNode("/root/main/patinfo/patinfolist/vipcls");
- model.makeNode("/root/main/patinfo/patinfolist/vipflag");
- model.makeNode("/root/main/patinfo/patinfolist/vipcls");
- model.makeNode("/root/main/patinfo/patinfolist/dutplce");
- model.makeNode("/root/main/patinfo/patinfolist/jobpos");
- model.makeNode("/root/main/patinfo/patinfolist/remfact");
- model.setValue("/root/main/patinfo/patinfolist/etctel", model.getValue("/root/main/patinfo/patinfolist/etctel1"));
-
- var popupendflag = model.getValue("/root/main/popupendflag");
- if (popupendflag == "ok"){
- model.copyNode("/root/main/vippatbaseinfo/vippatbaseinfolist", "/root/main/patinfo/patinfolist");
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|