123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--수정이력 : 2007.10.15 박재형 - 감면정보에 가족주민번호, 가족성명 추가 -->
- <?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>
- <newpatinfo>
- <pid/>
- <hngnm/>
- <rrgstno/>
- <rrgstno1/>
- <rrgstno2/>
- <remfact/>
- </newpatinfo>
- <rsrvpatinfo>
- <orddd/>
- <orddeptcd/>
- <orddeptabbr/>
- <orddrid/>
- <orddeptdrabbr/>
- <issno/>
- </rsrvpatinfo>
- <rsrvpat>
- <rsrvpatlist>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <orddeptcd/>
- <orddrid/>
- </rsrvpatlist>
- </rsrvpat>
- <checknewrsrvpat/>
- </main>
- <send/>
- <init>
- <orddeptcd>
- <orddeptcdlist>
- <cd/>
- <nm/>
- <deptengabbr/>
- </orddeptcdlist>
- </orddeptcd>
- <orddrid>
- <orddridlist>
- <cd/>
- <nm/>
- <abbr/>
- </orddridlist>
- </orddrid>
- </init>
- <hidden>
- <patcardissue>
- </patcardissue>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <submission id="TXPAM00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/patcardissue" resultref="/root/hidden/patcardissue/result"/>
- <!-- 수정 추가 : 2007.10.15 박재형 : 감면저장-->
- <!-- 수정추가 : 2007.10.15 박재형 : 감면 조회-->
- <submission id="TRPMC04201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/rsrvpatinfo" resultref="/root/main/rsrvpat"/>
- <submission id="TRPMC04202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/newpatinfo"/>
- </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/numericHelper.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"/>
- <!-- 수정추가 : 20071015 박재형 : 할인분류구분 공통코드추가 (P0417)-->
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- //2007-10-04 이동식 추가 - 환자카드발급 PC정보를 읽어온다.
- fGetPCID();
- //alert(app.macAddress);
- //END..
-
- //초기화
- fInit();
-
- //진료과코드 진료의사ID 조회
- pamGetDeptCDDrIDList();
-
- model.makeNode("/root/init/temp/orddeptcd/orddeptcdlist/cd");
- model.makeNode("/root/init/temp/orddeptcd/orddeptcdlist/nm");
- copyNodesetType("/root/init/orddeptcd/orddeptcdlist", "/root/init/temp/orddeptcd/orddeptcdlist", "before");
- model.removeNodeset("/root/init/temp");
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- var IssCard = null;
-
- //초기화
- function fInit(){
- //데이터 초기화
- model.resetInstanceNode("/root/main/newpatinfo");
- model.resetInstanceNode("/root/main/rsrvpatinfo");
- model.removeNodeset("/root/main/rsrvpat/rsrvpatlist");
-
- //오늘 날자 세팅
- model.setValue("/root/main/rsrvpatinfo/orddd", getCurrentDate());
-
- //예약환자화면 디폴트처리
- model.setValue("/root/main/checknewrsrvpat", 'R');
- group4.visible = false;
- group5.visible = true;
-
- model.refresh();
- }
-
- //2007-10-04 이동식 추가 - 환자카드발급신청
- function fIssuePatientCard(){
-
- //노드생성
- model.makeNode("/root/hidden/patcardissue/flag");
- model.makeNode("/root/hidden/patcardissue/pid");
- model.makeNode("/root/hidden/patcardissue/rrgstno1");
- model.makeNode("/root/hidden/patcardissue/rrgstno2");
- model.makeNode("/root/hidden/patcardissue/issflag");
- model.makeNode("/root/hidden/patcardissue/issno");
- model.makeNode("/root/hidden/patcardissue/hngnm");
- model.makeNode("/root/hidden/patcardissue/remfact");
- model.makeNode("/root/hidden/patcardissue/result");
- //데이터 체크
- var pid = model.getValue("/root/main/newpatinfo/pid");
- if( pid == '' || pid == ' ' || pid == '-' ){
- messageBox("등록번호를 찾을 수 없습니다.", "E999", "");
- return false;
- }
-
- var rrgstno1 = model.getValue("/root/main/newpatinfo/rrgstno1");
- if( rrgstno1 == '' || rrgstno1 == ' ' || rrgstno1 == '-' ){
- messageBox("주민등록번호 앞 6자리를 찾을 수 없습니다.", "E999", "");
- return false;
- }else{
-
- if( ! fRrgstNo1Veri() ){
- return false;
- }
- }
-
- var rrgstno2 = model.getValue("/root/main/newpatinfo/rrgstno2");
- if( rrgstno2 == '' || rrgstno2 == ' ' || rrgstno2 == '-' ){
- messageBox("주민등록번호 뒤 7자리를 찾을 수 없습니다.", "E999", "");
- return false;
- }else{
-
- if( ! fRrgstNo2Veri() ){
- return false;
- }
- }
-
- var hngnm = model.getValue("/root/main/newpatinfo/hngnm");
- if( hngnm == '' || hngnm == ' ' || hngnm == '-' ){
- messageBox("환자이름을 찾을 수 없습니다.", "E999", "");
- return false;
- }
-
- var issno = model.getValue("/root/hidden/patcardissue/pcinfo");
- if( issno == '' || issno == ' ' || issno == '-' ){
- messageBox("PC 고유번호 정보를 찾을 수 없습니다.", "E999", "");
- return false;
- }
-
-
- //노드값 세팅
- model.setValue("/root/hidden/patcardissue/flag", "R"); //재발행 cf)최초발행은 'F'
- model.setValue("/root/hidden/patcardissue/pid", pid);
- model.setValue("/root/hidden/patcardissue/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/patcardissue/rrgstno2", rrgstno2);
- model.setValue("/root/hidden/patcardissue/issflag", "7"); //환자 cf)직원은 '4"
- model.setValue("/root/hidden/patcardissue/issno", issno);
- model.setValue("/root/hidden/patcardissue/hngnm", hngnm);
- model.setValue("/root/hidden/patcardissue/remfact", model.getValue("/root/main/newpatinfo/remfact"));
-
- setForceOn();
- if(submit("TXPAM00201")){
-
- messageBox("환자카드 발급신청을 정상적으로 완료했습니다. 카드발급 프린터에서 발급상황을 확인하세요.", "I999", "");
- model.removenode("/root/hidden/patcardissue/flag");
- model.removenode("/root/hidden/patcardissue/pid");
- model.removenode("/root/hidden/patcardissue/rrgstno1");
- model.removenode("/root/hidden/patcardissue/rrgstno2");
- model.removenode("/root/hidden/patcardissue/issflag");
- model.removenode("/root/hidden/patcardissue/issno");
- model.removenode("/root/hidden/patcardissue/hngnm");
- model.removenode("/root/hidden/patcardissue/remfact");
- model.removenode("/root/hidden/patcardissue/result");
-
- model.resetInstanceNode("/root/main/newpatinfo");
- model.refresh();
-
- model.setFocus("ipt_pid");
- }
- }
- //END..
-
- // 수정추가 : 2007.10.17 : 박재형 - 감면정보 조회시 주민번호 앞자리 조건 확인
- function fRrgstNo1Veri()
- {
- var rrgstno1 = model.getValue("/root/main/newpatinfo/rrgstno1");
-
- if (rrgstno1 != null && rrgstno1 != "" && rrgstno1 != " " && rrgstno1 != "-")
- {
- if (rrgstno1.length != 6)
- {
- messageBox("주민번호1은 6자리여야 합니다!","E999","");
- model.setFocus("rrgstno1");
- model.refresh();
- return false;
- }
-
- if (rrgstno1.isNumber() != true)
- {
- messageBox("주민번호1은 숫자형태로 입력되어야 합니다!","E999","");
- model.setFocus("rrgstno1");
- model.refresh();
- return false;
- }
- }
- else
- {
- messageBox("주민번호1은 6자리여야 합니다!","E999","");
- model.setFocus("rrgstno1");
- model.refresh();
- return false;
- }
-
- return true;
- }
-
- // 수정추가 : 2007.10.17 : 박재형 - 감면정보 조회시 주민번호 뒷자리 조건 확인 및 앞자리 날짜입력양식 확인
- function fRrgstNo2Veri()
- {
- var brthdd;
- var rrgstno1 = model.getValue("/root/main/newpatinfo/rrgstno1");
- var rrgstno2 = model.getValue("/root/main/newpatinfo/rrgstno2");
-
- if (rrgstno1.length != 6)
- {
- messageBox("환자주민번호1은 6자리입니다!","E999","");
- model.setFocus("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/ptbspatinfo/brthdd",brthdd);
-
- if (isValidDateTime(brthdd, "YYYYMMDD") == false)
- {
- if( messageBox("주민번호 앞6자리 형식오류입니다. 계속 진행하시겠습니까?","Q999","") != 6 ){
- model.setValue("/root/main/newpatinfo/rrgstno1","");
- model.setValue("/root/main/newpatinfo/rrgstno2","");
- //model.setValue("/root/main/ptbspatinfo/brthdd","");
- model.refresh();
- return false;
- }
- }
-
- var rrgstno = rrgstno1.concat(rrgstno2);
- //var age = rrgstno1;
- //model.setValue("/root/main/patinfo/patinfolist/age",getFullAge(model.getValue("/root/main/patinfo/patinfolist/brthdd")));
- //model.refresh();
- if (isResidentNo(rrgstno) == false)
- {
- if( messageBox("유효하지 않은 주민번호입니다!, 계속 진행하시겠습니까?","Q999","") != 6 ){
- model.setValue("/root/main/newpatinfo/rrgstno1","");
- model.setValue("/root/main/newpatinfo/rrgstno2","");
- model.refresh();
- return false;
- }else{
- return true;
- }
- }
-
- return true;
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" scroll="auto" style="left:0px; top:475px; width:840px; height:27px; ">
- <button id="btn_initialize" class="btn4_letter3" style="left:772px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //데이터 초기화
- model.resetInstanceNode("/root/main/newpatinfo");
- model.resetInstanceNode("/root/main/rsrvpatinfo");
- model.removeNodeset("/root/main/rsrvpat/rsrvpatlist");
-
- //오늘 날자 세팅
- model.setValue("/root/main/rsrvpatinfo/orddd", getCurrentDate());
-
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:840px; y2:0px; "/>
- </group>
- <group id="group3" style="left:0px; top:0px; width:845px; height:13px; ">
- <caption id="caption22" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">전자카드발급</caption>
- </group>
- <group id="group2" style="left:0px; top:13px; width:845px; height:466px; ">
- <group id="group4" style="left:0px; top:25px; width:840px; height:435px; ">
- <input id="ipt_rrgstno2" ref="/root/main/newpatinfo/rrgstno2" class="font_pid" visibility="hidden" maxlength="7" format="9999999" style="left:528px; top:167px; width:307px; height:65px; color:#000000; text-align:left; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- model.setFocus("textarea1");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if( isNaN(ipt_rrgstno2.currentText) ){
-
- messageBox("주민번호2이 숫자형 데이터가 아닙니다!", "E999", "");
- model.setValue("/root/main/newpatinfo/rrgstno2", "");
- ipt_rrgstno2.refresh();
- model.setFocus("ipt_rrgstno2");
- return false;
- }
- ]]>
- </script>
- </input>
- <input id="ipt_rrgstno1" ref="/root/main/newpatinfo/rrgstno1" class="font_pid" visibility="hidden" maxlength="6" format="999999" style="left:225px; top:167px; width:299px; height:65px; color:#000000; text-align:left; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- model.setFocus("ipt_rrgstno2");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if( isNaN(ipt_rrgstno1.currentText) ){
-
- messageBox("주민번호1이 숫자형 데이터가 아닙니다!", "E999", "");
- model.setValue("/root/main/newpatinfo/rrgstno1", "");
- ipt_rrgstno1.refresh();
- model.setFocus("ipt_rrgstno1");
- return false;
- }
- ]]>
- </script>
- </input>
- <input id="ipt_rrgstno" ref="/root/main/newpatinfo/rrgstno" class="font_pid" navindex="3" format="999999-9999999" style="left:225px; top:167px; width:610px; height:65px; color:#000000; text-align:left; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- var rrgstno = ipt_rrgstno.currentText;
- if( rrgstno.length != 14 ){
- messageBox("주민번호를 정확히 입력하지 않았습니다.", "E999", "");
- //model.setValue("/root/main/newpatinfo/rrgstno", "");
- model.setValue("/root/main/newpatinfo/rrgstno1", "");
- model.setValue("/root/main/newpatinfo/rrgstno2", "");
- model.refresh();
- return false;
- }
-
- rrgstno = rrgstno.replace("-", "");
-
- if( isNaN(rrgstno) ){
- messageBox("주민번호가 숫자형 데이터가 아닙니다!", "E999", "");
- model.setValue("/root/main/newpatinfo/rrgstno", "");
- model.setValue("/root/main/newpatinfo/rrgstno1", "");
- model.setValue("/root/main/newpatinfo/rrgstno2", "");
- model.refresh();
- return false;
- //model.setFocus("ipt_rrgstno2");
- }
-
- model.setFocus("textarea1");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
-
- var rrgstno = ipt_rrgstno.currentText;
-
- if( rrgstno.length != 14 ){
- messageBox("주민번호를 정확히 입력하지 않았습니다.", "E999", "");
- //model.setValue("/root/main/newpatinfo/rrgstno", "");
- model.setValue("/root/main/newpatinfo/rrgstno1", "");
- model.setValue("/root/main/newpatinfo/rrgstno2", "");
- model.refresh();
- return false;
- }
-
- rrgstno = rrgstno.replace("-", "");
-
- if( isNaN(rrgstno) ){
- messageBox("주민번호가 숫자형 데이터가 아닙니다!", "E999", "");
- model.setValue("/root/main/newpatinfo/rrgstno", "");
- model.setValue("/root/main/newpatinfo/rrgstno1", "");
- model.setValue("/root/main/newpatinfo/rrgstno2", "");
- model.refresh();
- return false;
- //model.setFocus("ipt_rrgstno2");
- }
-
- model.setValue("/root/main/newpatinfo/rrgstno1", rrgstno.substr(0,6));
- model.setValue("/root/main/newpatinfo/rrgstno2", rrgstno.substr(6,7));
- model.refresh();
-
- model.setFocus("textarea1");
- ]]>
- </script>
- </input>
- <input id="ipt_hngnm" ref="/root/main/newpatinfo/hngnm" class="font_pid" navindex="2" imemode="hangul" style="left:225px; top:99px; width:610px; height:65px; color:#000000; text-align:left; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- model.setValue("/root/main/newpatinfo/hngnm", ipt_hngnm.currentText);
- ipt_hngnm.refresh();
- model.setFocus("ipt_rrgstno");
- }
- ]]>
- </script>
- </input>
- <textarea id="textarea1" ref="/root/main/newpatinfo/remfact" navindex="4" imemode="hangul" style="left:225px; top:235px; width:610px; height:163px; font-size:26pt; color:#000000; "/>
- <caption id="caption1" class="cell_1" style="left:0px; top:234px; width:223px; height:166px; font-size:26pt; vertical-align:middle; ">참고사항</caption>
- <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:126px; height:14px; ">신환환자</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:25px; x2:836px; y2:25px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:164px; x2:836px; y2:164px; "/>
- <caption id="caption81" class="cell_1" style="left:0px; top:166px; width:223px; height:67px; font-size:26pt; vertical-align:middle; ">주민등록번호</caption>
- <caption id="caption82" class="cell_1" style="left:0px; top:30px; width:223px; height:67px; font-size:26pt; vertical-align:middle; ">등록번호</caption>
- <caption id="caption79" class="cell_1" style="left:0px; top:98px; width:223px; height:67px; font-size:26pt; vertical-align:middle; ">환자이름</caption>
- <line id="line1" class="line_2" style="x1:0px; y1:96px; x2:836px; y2:96px; "/>
- <button id="button2" class="btn4_letter2" navindex="5" style="left:710px; top:403px; width:56px; height:22px; ">
- <caption>발급</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fIssuePatientCard();
- ]]>
- </script>
- </button>
- <line id="line9" class="line_3" style="x1:0px; y1:400px; x2:836px; y2:400px; "/>
- <button id="button4" class="btn4_letter3" style="left:768px; top:403px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //데이터 초기화
- model.resetInstanceNode("/root/main/newpatinfo");
- model.resetInstanceNode("/root/main/rsrvpatinfo");
- model.removeNodeset("/root/main/rsrvpat/rsrvpatlist");
-
- //오늘 날자 세팅
- model.setValue("/root/main/rsrvpatinfo/orddd", getCurrentDate());
-
- model.refresh();
-
- model.setFocus("ipt_pid");
- ]]>
- </script>
- </button>
- <line id="line4" class="line_2" style="x1:0px; y1:232px; x2:836px; y2:232px; "/>
- <input id="ipt_pid" ref="/root/main/newpatinfo/pid" class="font_pid" navindex="1" autonext="false" maxlength="10" style="left:226px; top:31px; width:610px; height:65px; color:#000000; text-align:left; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- if( isNaN(ipt_pid.currentText) ){
-
- messageBox("등록번호가 숫자형 데이터가 아닙니다!", "E999", "");
- model.setValue("/root/main/newpatinfo/pid", "");
- ipt_pid.refresh();
- model.setFocus("ipt_pid");
- return false;
- }
-
- model.makeNode("/root/send/pid");
- model.makeNode("/root/temp/newpatinfo");
- model.setValue("/root/send/pid", ipt_pid.currentText);
- model.setValue("/root/main/newpatinfo/pid", ipt_pid.currentText);
- model.refresh();
-
- setForceOn();
- if( submit("TRPMC04202") ){
-
- if( getNodesetCount("/root/temp/newpatinfo/newpatinfolist") > 0 ){
-
- var issdd = model.getValue("/root/temp/newpatinfo/newpatinfolist/issdd");
- var msgdd = issdd.substr(0, 4) + "년 " + issdd.substr(4,2) + "월 " + issdd.substr(6,2) + "일에 ";
- var msg = messageBox( msgdd + "전자카드가 발급되었습니다. 재발급 하시겠습니까?", "Q999", "");
- if( msg == 6 ){
-
- model.setValue("/root/main/newpatinfo/pid", model.getValue("/root/temp/newpatinfo/newpatinfolist/pid"));
- model.setValue("/root/main/newpatinfo/hngnm", model.getValue("/root/temp/newpatinfo/newpatinfolist/hngnm"));
- model.setValue("/root/main/newpatinfo/rrgstno1", model.getValue("/root/temp/newpatinfo/newpatinfolist/rrgstno1"));
- model.setValue("/root/main/newpatinfo/rrgstno2", model.getValue("/root/temp/newpatinfo/newpatinfolist/rrgstno2"));
- model.setValue("/root/main/newpatinfo/rrgstno", model.getValue("/root/temp/newpatinfo/newpatinfolist/rrgstno1") + model.getValue("/root/temp/newpatinfo/newpatinfolist/rrgstno2") );
- model.setValue("/root/main/newpatinfo/remfact", '재발급');
- model.refresh();
-
- button2.dispatch("DOMActivate"); //발급버튼 실행
- }else{
-
- button4.dispatch("DOMActivate"); //초기화버튼 실행
- return false;
- }
- }else{
-
- model.setValue("/root/main/newpatinfo/pid", ipt_pid.currentText);
- model.refresh();
- model.setFocus("ipt_hngnm");
- }
-
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if( isNaN(ipt_pid.currentText) ){
-
- messageBox("등록번호가 숫자형 데이터가 아닙니다!", "E999", "");
- model.setValue("/root/main/newpatinfo/pid", "");
- ipt_pid.refresh();
- model.setFocus("ipt_pid");
- return false;
- }
- ]]>
- </script>
- </input>
- </group>
- <group id="group5" style="left:0px; top:25px; width:843px; height:440px; ">
- <datagrid id="datagrid1" nodeset="/root/main/rsrvpat/rsrvpatlist" caption="등록번호^환자명^주민등록번호^주민등록번호^진료과명^전문의명^진료예약일^생성일자^발급일자^발급시간" colsep="^" colwidth="80, 70, 50, 55, 140, 70, 85, 85, 85, 70" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:67px; width:840px; height:368px; ">
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="rrgstno1"/>
- <col ref="rrgstno2"/>
- <col disabled="true" ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddrid" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="isscretdd" format="yyyy-mm-dd"/>
- <col ref="issdd" format="yyyy-mm-dd"/>
- <col ref="isstm" format="hh:nn:ss"/>
- </datagrid>
- <line id="line2" class="line_1" style="x1:0px; y1:62px; x2:840px; y2:62px; "/>
- <caption id="caption14" class="tit_2" style="left:5px; top:47px; width:144px; height:13px; ">예약환자리스트</caption>
- <group id="group6" style="left:0px; top:0px; width:840px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:840px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="11" style="left:685px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var orddd = model.getValue("/root/main/rsrvpatinfo/orddd");
- var orddeptcd = model.getValue("/root/main/rsrvpatinfo/orddeptcd");
-
- if( orddd == '' || orddd == ' ' || orddd == null || orddd == '-' ){
- messageBox("진료일자를 넣고, 조회해주세요.", "E999", "");
- return false;
- }else if( orddeptcd == '' || orddeptcd == ' ' || orddeptcd == null || orddeptcd == '-' ){
- var msg = messageBox("해당 진료일에 예약환자가 있는 의사정보를 조회합니다. 조회하시겠습니까?", "Q999", "");
- if( msg != 6 ){
- return false;
- }
- }
-
- var issno = model.getValue("/root/hidden/patcardissue/pcinfo");
- if( issno == '' || issno == ' ' || issno == '-' ){
- messageBox("발급PC정보를 읽을 수 없습니다. \n전자카드발급을 위한 PC정보 파일이 있는지 확인하세요.(C:\WINDOWS\Device.ini)", "E999", "");
- return false;
- }else{
- model.setValue("/root/main/rsrvpatinfo/issno", issno);
- }
-
- setForceOn();
- if( ! submit("TRPMC04201") ){
-
- }
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:670px; y1:7px; x2:670px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_orddrid" ref="/root/main/rsrvpatinfo/orddrid" class="combo_s_essential" navindex="10" appearance="minimal" style="left:580px; top:8px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var orddrid = cmb_orddrid.value;
- var drengabbr = model.getValue("/root/init/orddrid/orddridlist[ cd = '" + cmb_orddrid.value + "']/drengabbr");
- var orddeptcd = model.getValue("/root/init/orddrid/orddridlist[ cd = '" + cmb_orddrid.value + "']/dp");
- //진료과 세팅
- model.setValue("/root/main/rsrvpatinfo/orddeptcd", orddeptcd );
- cmb_orddeptcd.refresh();
- cmb_orddeptcd.dispatch("xforms-value-changed");
- //END..
-
- //2007-08-17 이동식 추가 - 진료의 선택시 영문약어표시
- model.setValue("/root/main/rsrvpatinfo/orddrid", orddrid);
- model.setValue("/root/main/rsrvpatinfo/orddeptdrabbr", drengabbr);
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_orddeptdrabbr" ref="/root/main/rsrvpatinfo/orddeptdrabbr" class="input_s_essential" navindex="9" maxlength="4" _chartype="upper" style="left:530px; top:8px; width:47px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- //2007-12-14 최종수정 - 진료의약어 입력시 진료과 진료의 동시세팅!
- var orddrabbr = ipt_orddeptdrabbr.value;
- if( orddrabbr == '' || orddrabbr.length < 2 || orddrabbr == ' '){
- return false;
- }
- var orddrid = model.getValue("/root/init/orddrid/orddridlist[ drengabbr = '" + orddrabbr.toUpperCase() + "']/cd");
- var orddeptcd = model.getValue("/root/init/orddrid/orddridlist[ drengabbr = '" + orddrabbr.toUpperCase() + "']/dp");
- //진료과 세팅
- model.setValue("/root/main/rsrvpatinfo/orddeptcd", orddeptcd );
- cmb_orddeptcd.refresh();
- cmb_orddeptcd.dispatch("xforms-value-changed");
- //진료의 세팅
- model.setValue("/root/main/rsrvpatinfo/orddrid", orddrid );
- cmb_orddrid.refresh();
- cmb_orddrid.dispatch("xforms-value-changed");
- model.setFocus("btn_search");
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13"){
- if( ipt_orddeptdrabbr.value.length == 4 ){
- model.setFocus("btn_search");
- }else{
- model.setFocus("cmb_orddrid");
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:198px; top:8px; width:81px; height:17px; vertical-align:middle; ">진료과 :</caption>
- <caption id="caption4" class="search_name" style="left:7px; top:8px; width:73px; height:17px; vertical-align:middle; ">진료일 :</caption>
- <caption id="caption5" class="search_name" style="left:453px; top:8px; width:78px; height:17px; vertical-align:middle; ">전문의 :</caption>
- <input id="ipt_orddeptabbr" ref="/root/main/rsrvpatinfo/orddeptabbr" class="input_s_essential" navindex="7" maxlength="4" _chartype="upper" style="left:273px; top:8px; width:47px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- //var abbr = ipt_orddeptabbr.value;
- var orddeptabbr = ipt_orddeptabbr.value;
-
- //진료과 세팅
- var orddeptcd = model.getValue("/root/init/orddeptcd/orddeptcdlist[ deptengabbr = '" + orddeptabbr.toUpperCase() + "']/cd");
- model.setValue("/root/main/rsrvpatinfo/orddeptcd", orddeptcd );
- cmb_orddeptcd.refresh();
- cmb_orddeptcd.dispatch("xforms-value-changed");
-
- model.setFocus("ipt_orddeptdrabbr")
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13"){
- if( ipt_orddeptabbr.value.length >= 2 ){
- model.setFocus("ipt_orddeptdrabbr");
- }else{
- model.setFocus("cmb_orddeptcd");
- }
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_orddeptcd" ref="/root/main/rsrvpatinfo/orddeptcd" class="combo_s_essential" navindex="8" appearance="minimal" style="left:323px; top:8px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var otpt_orddeptcd = model.getValue("/root/main/rsrvpatinfo/orddeptcd");
-
- //2007-08-17 이동식 추가 - 진료과 선택시 영문약어표시
- var deptengabbr = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_orddeptcd.value + "']/deptengabbr");
- //model.makeNode("");
- model.setValue("/root/main/rsrvpatinfo/orddeptabbr", deptengabbr);
- //END..
-
- //진료의 세팅
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "']";
- model.setValue("/root/main/rsrvpatinfo/orddrid", "");
- //model.makeNode("/root/main/otpt/otpt_orddeptdrabbr");
- model.setValue("/root/main/rsrvpatinfo/orddeptdrabbr","");
- model.refresh();
-
- model.setFocus("cmb_orddrid");
- ]]>
- </script>
- </select1>
- <input id="input3" ref="/root/main/rsrvpatinfo/orddd" class="input_s_essential" navindex="6" inputtype="date" appearance="input" style="left:82px; top:8px; width:100px; height:19px; "/>
- <line id="line3" class="line_4" style="top:7; x1:755px; y1:7px; x2:755px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="button1" class="btn4_letter2" navindex="12" style="left:770px; top:7px; width:56px; height:22px; ">
- <caption>발급</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( getNodesetCount("/root/main/rsrvpat/rsrvpatlist") < 1 ){
- messageBox("전자카드 발급 할 예약환자 리스트가 없습니다!", "E999", "");
- return false;
- }
- model.makeNode("/root/hidden/patcardissue/send");
- model.copyNode("/root/hidden/patcardissue/send", "/root/main/rsrvpat");
- model.makeNode("/root/hidden/patcardissue/result");
-
- setForceOn();
- if(submit("TXPAM00201")){
-
- messageBox("환자카드 발급신청을 정상적으로 완료했습니다. 카드발급 프린터에서 발급상황을 확인하세요.", "I999", "");
- model.removenode("/root/hidden/patcardissue/send");
- model.removenode("/root/hidden/patcardissue/result");
- }
-
- ]]>
- </script>
- </button>
- </group>
- <button id="button3" class="btn2_letter4" style="left:776px; top:41px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- datagrid1.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- </group>
- <select1 id="radio1" ref="/root/main/checknewrsrvpat" class="radio_default" overflow="visible" appearance="full" style="left:5px; top:5px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>신환환자</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var check = model.getValue("/root/main/checknewrsrvpat");
- if( check == 'N' ){
-
- group4.visible = true; //신환환자 전자카드 발급 화면
- group5.visible = false; //예약환자 전자카드 발급 화면
- group1.visible = false; //하단 초기화 버튼
-
- model.setFocus("ipt_pid");
- }else{
-
- group4.visible = false; //신환환자 전자카드 발급 화면
- group5.visible = true;; //예약환자 전자카드 발급 화면
- group1.visible = true; //하단 초기화 버튼
-
- model.setFocus("input3");
- }
- ]]>
- </script>
- </select1>
- <select1 id="radio2" ref="/root/main/checknewrsrvpat" class="radio_default" overflow="visible" appearance="full" style="left:78px; top:5px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>예약환자</label>
- <value>R</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var check = model.getValue("/root/main/checknewrsrvpat");
- if( check == 'N' ){
-
- group4.visible = true; //신환환자 전자카드 발급 화면
- group5.visible = false; //예약환자 전자카드 발급 화면
- group1.visible = false; //하단 초기화 버튼
-
- model.setFocus("ipt_pid");
- }else{
-
- group4.visible = false; //신환환자 전자카드 발급 화면
- group5.visible = true;; //예약환자 전자카드 발급 화면
- group1.visible = true; //하단 초기화 버튼
-
- model.setFocus("input3");
- }
- ]]>
- </script>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|