1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <lglydisinfo>
- <info>
- <state>I</state>
- <psnflag/>
- <patnm/>
- <sexflag/>
- <age/>
- <rgstno/>
- <rgstno2/>
- <zipcd1/>
- <zipcd2/>
- <tel/>
- <cntcaddr1/>
- <cntcaddr2/>
- <pid/>
- <wrtedt/>
- <seqno/>
- <reptflag>10</reptflag>
- <lglydiscd/>
- <indd/>
- <cretno/>
- <orddeptcd/>
- <procernm/>
- <residncflag/>
- <idflag/>
- <attackdd/>
- <diagdd/>
- <diagcd/>
- <mdiag/>
- <sdiag/>
- <sdiagetc/>
- <symp/>
- <sympetc/>
- <estminfcpath/>
- <estminfcareacd/>
- <estminfcareanaticd/>
- <stayterm/>
- <staytermday/>
- <tisstestlag/>
- <tisstestdd/>
- <matrnm/>
- <matrnmetc/>
- <testcnts/>
- <testcnts1/>
- <testcnts2/>
- <testcnts3/>
- <testcnts4/>
- <testcnts5/>
- <testcnts6/>
- <lasthistyn>Y</lasthistyn>
- </info>
- </lglydisinfo>
- <getlglydisinfo>
- <info/>
- </getlglydisinfo>
- <getreptdtinfo>
- <reptdtinfo>
- <reptdt/>
- </reptdtinfo>
- </getreptdtinfo>
- <paminfo/>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden>
- </hidden>
- <init>
- <A0131list>
- <A0131/>
- </A0131list>
- <A0132list>
- <A0132/>
- </A0132list>
- <P0353list>
- <P0353/>
- </P0353list>
- </init>
- <diaginfo>
- <diagcdlist/>
- </diaginfo>
- <temp>
- <tmplist/>
- <initinfo/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("A0131", "A0132", "P0353"),
- new Array("/root/init/A0131list", "/root/init/A0132list", "/root/init/P0353list"));
-
- model.setValue("/root/main/lglydisinfo/info/reptflag", "10");
- //model.refresh();
-
- var ioflag = "";
- var pid = "";
- var orddd = "";
- var cretno = "";
- var strRegtdt = "";
- var iDate = new Date();
- var strYearCal = "";
- var wrtedt = "";
- var pamInfoCvs = getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
-
- if(pamInfoCvs != ""){ //cvs가 ""이 아닌 경우에만 처리함.
- model.removeNodeSet("/root/main/paminfo/list");
- setCSVToNode("/root/main/paminfo", pamInfoCvs);
- ioflag = model.getValue("/root/main/paminfo/list/ioflag");
- pid = model.getValue("/root/main/paminfo/list/pid");
- cretno = model.getValue("/root/main/paminfo/list/cretno");
- if(ioflag == "O") orddd = model.getValue("/root/main/paminfo/list/orddd");
- else orddd = model.getValue("/root/main/paminfo/list/indd");
-
- }else if(isPopup()){
- ioflag = opener.javascript.getParameter("psnflag");
- pid = opener.javascript.getParameter("pid");
- cretno = opener.javascript.getParameter("cretno");
- orddd = opener.javascript.getParameter("indd");
- wrtedt = opener.javascript.getParameter("wrtedt");
-
- }
- model.setValue("/root/main/lglydisinfo/info/pid", pid );
- model.setValue("/root/main/lglydisinfo/info/indd", orddd );
- model.setValue("/root/main/lglydisinfo/info/psnflag", ioflag );
- model.setValue("/root/main/lglydisinfo/info/cretno", cretno );
- model.setValue("/root/main/lglydisinfo/info/wrtedt", wrtedt );
- if( !isNull(model.getValue("/root/main/lglydisinfo/info/pid")) ) {
- //@@
- model.copyNode("/root/send/reqdata", "/root/main/lglydisinfo/info");
-
- if(submit("TRASI01501", false) ) {//환자인적정보 조회
- if( !isNull(model.getValue("/root/main/getlglydisinfo/info/pid")) ){
- model.copyNode("/root/main/lglydisinfo", "/root/main/getlglydisinfo");
- model.setValue("/root/main/lglydisinfo/info/reptflag", "10");
- model.setValue("/root/main/lglydisinfo/info/lglydiscd", "999");
- //뇌막염 환자 척수액 소견
- var testcnts = model.getValue("/root/main/lglydisinfo/info/testcnts");
- if ( testcnts != "" ||testcnts != null )
- {
- var stestcnts = testcnts.split("|");
- model.setValue("/root/main/lglydisinfo/info/testcnts1", stestcnts[0]);
- model.setValue("/root/main/lglydisinfo/info/testcnts2", stestcnts[1]);
- model.setValue("/root/main/lglydisinfo/info/testcnts3", stestcnts[2]);
- model.setValue("/root/main/lglydisinfo/info/testcnts4", stestcnts[3]);
- model.setValue("/root/main/lglydisinfo/info/testcnts5", stestcnts[4]);
- model.setValue("/root/main/lglydisinfo/info/testcnts6", stestcnts[5]);
- }
-
- //fChgReptDisable();
- //@@
- //fChgReptDisable(result);
-
-
- fChkCnclYN();
- fCtrlEnableChk("chk_sdiag");
- fCtrlEnableChk("chk_symp");
- fCtrlEnableChk("rdo_estminfcareacd");
- fCtrlEnableChk("rdo_tisstestlag");
- fCtrlEnableChk("chk_matrnm");
- }
- }
- //@@
- var result = 1;
- if(!isNull(opener.javascript.getParameter("PrcpLglyDis"))){
- //처방에서 호출한 경우 상병체크하여 초기화
- fInit();
- result=6;
- }
- if(isPopup() && (opener.javascript.getParameter("state") == "U" || opener.javascript.getParameter("state") == "S" || !isNull(opener.javascript.getParameter("PrcpLglyDis")) )){
-
- model.setValue("/root/main/lglydisinfo/info/state", opener.javascript.getParameter("state") );
- model.setValue("/root/main/lglydisinfo/info/wrtedt", opener.javascript.getParameter("wrtedt") );
- model.setValue("/root/main/lglydisinfo/info/seqno", opener.javascript.getParameter("seqno") );
-
- model.makeValue("/root/main/getreptdtinfo/reptdtinfo/reptdt", opener.javascript.getParameter("reptdt")); //추가 (2009.11.13 JJE)
- model.makeValue("/root/main/getreptdtinfo/reptdtinfo/reptyn", opener.javascript.getParameter("reptyn")); //추가 (2009.11.13 JJE)
- model.makeValue("/root/main/getreptdtinfo/reptdtinfo/chgyn", opener.javascript.getParameter("chgyn")); //추가 (2009.11.13 JJE)
- model.makeValue("/root/main/getreptdtinfo/reptdtinfo/prt_reptdt", opener.javascript.getParameter("prt_reptdt")); //추가 (2009.11.13 JJE)
-
- // grp_main.disabled = true;
- // grp_btn.disabled = true;
-
- if(opener.javascript.getParameter("state") == "U" ){
- grp_main.disabled = true;
- btn_save.disabled = true;
- btn_init.disabled = true;
- btn_cncl.disabled = false;
-
- }else if(opener.javascript.getParameter("state") == "S" ){
- grp_main.disabled = true;
- btn_save.disabled = true;
- btn_init.disabled = true;
- btn_cncl.disabled = false;
-
- //2013/07/11 Start
- input6.disabled = false;
- ipt_attackdd.disabled = false;
- ipt_diagdd.disabled = false;
- chk_mdiag.disabled = false;
- chk_sdiag.disabled = false;
- chk_symp.disabled = false;
- ipt_sdiagetc.disabled = false;
- ipt_sympetc.disabled = false;
- input12.disabled = false;
- input9.disabled = false;
- input11.disabled = false;
- input10.disabled = false;
- input13.disabled = false;
- input8.disabled = false;
- rdo_estminfcpath.disabled = false;
- cmd_estminfcareanaticd.disabled = false;
- rdo_estminfcareacd.disabled = false;
- ipt_stayterm.disabled = false;
- ipt_staytermday.disabled = false;
- rdo_tisstestlag.disabled = false;
- ipt_tisstestdd.disabled = false;
- chk_matrnm.disabled = false;
- ipt_matrnmetc.disabled = false;
- model.refresh();
- //2013/07/11 End
- }
-
- //}else if(isPopup() && (opener.javascript.getParameter("state") != "U" && opener.javascript.getParameter("state") != "S")){
- }else if(isPopup() && (opener.javascript.getParameter("state") != "U" || isNull(opener.javascript.getParameter("PrcpLglyDis"))) ){
- //fChkReptYN();
- model.setValue("/root/main/lglydisinfo/info/state", opener.javascript.getParameter("psnflag"));
- model.makeValue("/root/send/reqdata/pid", pid);
- model.makeValue("/root/send/reqdata/reptflag", model.getValue("/root/main/lglydisinfo/info/reptflag"));
- strRegtdt = "";
-
- //재신고 가능여부 체크
- if (submit("TRASI01502")){
- strRegtdt = model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt");
- }
- if( model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptyn") != "" && model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptyn") != null ){ //100616 이미 신고내용이 존재할 경우(기간 고려X - 기간 : Y, N)
- //messageBox(" 신고주기는 12개월이므로 재신고가 불가합니다 \n 해당 환자의 신고일은 " + strRegtdt ,"E008");
- //@@재호출 메시지 내용 변경
- //result = messageBox("신고주기는 12개월이므로 재신고가 불가합니다 \n 해당 환자의 신고일은 " + strRegtdt+ "입니다. \n \n수정", "S001");
- result = messageBox(strRegtdt.substring(0,4)+"년 "+strRegtdt.substring(4,6)+"월 "+strRegtdt.substring(6,8)+"일 "
- + "수족구병 (으)로 전염병이 신고되어 있어 \n 신규 입력이 아니면 자료가 중복됩니다. \n 그래도 ", "Q003");
- //model.close();
- //return;
- } else { //신고 내용이 없다면
- result=6;
- }
- }
-
- // else{
- // grp_btn.disabled = true;
- // //return;
- // }
- //
- // //재신고 가능여부 체크
- // if (submit("TRASI01502")){
- // strRegtdt = model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt");
- // }
- // if( !isNull(model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptyn")) && model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptyn") == 'N' ){
- // messageBox(" 신고주기는 12개월이므로 재신고가 불가합니다 \n 해당 환자의 신고일은 " + strRegtdt ,"E008");
- // //model.close();
- // //return;
- // }
- // model.copyNode("/root/send/reqdata", "/root/main/lglydisinfo/info");
- //
- // if(submit("TRASI01501", false) ) {//환자인적정보 조회
- if( !isNull(model.getValue("/root/main/getlglydisinfo/info/pid")) ){
- // model.copyNode("/root/main/lglydisinfo", "/root/main/getlglydisinfo");
- // model.setValue("/root/main/lglydisinfo/info/reptflag", "10");
- // model.setValue("/root/main/lglydisinfo/info/lglydiscd", "999");
- // //뇌막염 환자 척수액 소견
- // var testcnts = model.getValue("/root/main/lglydisinfo/info/testcnts");
- // if ( testcnts != "" ||testcnts != null )
- // {
- // var stestcnts = testcnts.split("|");
- // model.setValue("/root/main/lglydisinfo/info/testcnts1", stestcnts[0]);
- // model.setValue("/root/main/lglydisinfo/info/testcnts2", stestcnts[1]);
- // model.setValue("/root/main/lglydisinfo/info/testcnts3", stestcnts[2]);
- // model.setValue("/root/main/lglydisinfo/info/testcnts4", stestcnts[3]);
- // model.setValue("/root/main/lglydisinfo/info/testcnts5", stestcnts[4]);
- // model.setValue("/root/main/lglydisinfo/info/testcnts6", stestcnts[5]);
- // }
-
- //fChgReptDisable();
- //@@
- fChgReptDisable(result);
-
-
- // fChkCnclYN();
- // fCtrlEnableChk("chk_sdiag");
- // fCtrlEnableChk("chk_symp");
- // fCtrlEnableChk("rdo_estminfcareacd");
- // fCtrlEnableChk("rdo_tisstestlag");
- // fCtrlEnableChk("chk_matrnm");
- }
- // }
-
- if((model.getValue("/root/main/lglydisinfo/info/psnflag")) == "O") {
- model.setValue("/root/main/lglydisinfo/info/diagdd","")
- model.refresh();
- } else {
- var ipt_indd = model.getValue("/root/main/lglydisinfo/info/indd");
- model.setValue("/root/main/lglydisinfo/info/diagdd", ipt_indd)
- model.refresh();
- }
- //2013/07/11 Start
- //ipt_diagdd.disabled = true;
- //2013/07/11 end
-
- } else {
- grp_btn.disabled = true;
-
- }
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZSD00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRASI01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/getlglydisinfo"/>
- <submission id="TRASI01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/getreptdtinfo"/>
- <submission id="TRASI01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/tmplist"/>
- <submission id="TXASI03701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/getlglydisinfo"/>
- </model>
- <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/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript">
- <![CDATA[
- /*
- 초기화화면 버튼 클릭시
- */
- function fInit(){
- model.copyNode("/root/main/lglydisinfo", "/root/main/getlglydisinfo");
-
- //값을 없애도록 수정..
- model.makeValue("/root/main/lglydisinfo/info/state", "");
- model.makeValue("/root/main/lglydisinfo/info/wrtedt", "");
- model.makeValue("/root/main/lglydisinfo/info/seqno", "");
- model.makeValue("/root/main/lglydisinfo/info/attackdd", "");
- model.makeValue("/root/main/lglydisinfo/info/diagdd", "");
- model.makeValue("/root/main/lglydisinfo/info/mdiag", "");
- model.makeValue("/root/main/lglydisinfo/info/sdiag", "");
- model.makeValue("/root/main/lglydisinfo/info/sdiagetc", "");
- model.makeValue("/root/main/lglydisinfo/info/symp", "");
- model.makeValue("/root/main/lglydisinfo/info/sympetc", "");
- model.makeValue("/root/main/lglydisinfo/info/testcnts1", "");
- model.makeValue("/root/main/lglydisinfo/info/testcnts2", "");
- model.makeValue("/root/main/lglydisinfo/info/testcnts3", "");
- model.makeValue("/root/main/lglydisinfo/info/testcnts4", "");
- model.makeValue("/root/main/lglydisinfo/info/testcnts5", "");
- model.makeValue("/root/main/lglydisinfo/info/testcnts6", "");
- model.makeValue("/root/main/lglydisinfo/info/estminfcpath", "");
- model.makeValue("/root/main/lglydisinfo/info/estminfcareacd", "");
- model.makeValue("/root/main/lglydisinfo/info/estminfcareanaticd", "");
- model.makeValue("/root/main/lglydisinfo/info/stayterm", "");
- model.makeValue("/root/main/lglydisinfo/info/staytermday", "");
- model.makeValue("/root/main/lglydisinfo/info/tisstestlag", "");
- model.makeValue("/root/main/lglydisinfo/info/tisstestdd", "");
- model.makeValue("/root/main/lglydisinfo/info/matrnm", "");
- model.makeValue("/root/main/lglydisinfo/info/matrnmetc", "");
-
- fChkCnclYN();
- fCtrlEnableChk("chk_sdiag");
- fCtrlEnableChk("chk_symp");
- fCtrlEnableChk("rdo_estminfcareacd");
- fCtrlEnableChk("rdo_tisstestlag");
- fCtrlEnableChk("chk_matrnm");
- }
-
- /*
- 삭제된건은 조회만 가능
- */
- function fChkCnclYN(){
- if(model.getValue("/root/main/lglydisinfo/info/cnclyn") =="'Y" && opener.javascript.getParameter("state") == "S" ){
- messageBox("삭제된 신고서", "I009"); //메세지 추가 (2009.11.13 JJE)
- grp_btn.disabled = true;
- }
- }
- /*
- 신고대상자조회화면에서 state="S",
- 진단에서 state="I",
- 퇴원시 1군, 일본뇌염 이고 법정전염병신고서가 작성되어 있을경우 state="U"
- 메뉴에서 상단환자정보를 가지고 조회해서 법정전염병 신고서가 작성되어 있고 전염병이 1군, 일본뇌염이 존재시 state="U"
- 상태에 따라 입력가능여부 처리
- */
- //function fChgReptDisable(){
- //@@
- function fChgReptDisable(result){
- //grp_chg.disabled = true;
- if( isPopup() ){
- var strState = opener.javascript.getParameter("state");
- var menuParam = opener.javascript.getParameter("menuparam");
- }else {
- var strState = "I";
- }
- //(start) 수정 상태 셋팅 추가, 수정 및 삭제를 가능하도록 하기 위함 (2009.11.03 JJE)
- var chkWrtedt = model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt");
- var chkReptdt = model.getValue("/root/main/getreptdtinfo/reptdtinfo/prt_reptdt");
- if(!isNull(chkWrtedt)) chkWrtedt = chkWrtedt.substring(0, 8);
- if(!isNull(chkReptdt)) chkReptdt = chkReptdt.substring(0, 8);
- if(!isNull(chkWrtedt) && chkWrtedt != "99991231" && !isNull(chkReptdt) && chkReptdt == "99991231" && isNull(strState)){
- var strState = "U"; //작성은 됐고, 출력(신고)는 안한 상태
- }
- //(end) 수정 상태 셋팅 끝
-
- //100622 진료 처방저장 시(작성은 됐고, 출력(신고)는 안한 상태 와 상관없음) -- 정리 필요
- if (opener.javascript.getParameter("PrcpLglyDis") != null && opener.javascript.getParameter("PrcpLglyDis") == "PrcpLglyDis" ) strState = "I";
- if(isPopup() && strState == "U" ){
- //@@
- if(result == "6"){
- grp_main.disabled = false;
- btn_save.disabled = false;
- btn_init.disabled = false;
- btn_cncl.disabled = true;
- fInit();
- }else{
- grp_main.disabled = true;
- btn_save.disabled = true;
- btn_init.disabled = true;
- btn_cncl.disabled = false;
- rdo_estminfcpath.disabled = true;
- }
-
- // grp_main.disabled = true;
- // //grp_chg.disabled = false;
- // btn_save.disabled = true; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
- // btn_init.disabled = true; //추가 2009.11.13 JJE
- // btn_cncl.disabled = false; //추가 2009.11.13 JJE
- return;
- }else if(isPopup() && strState == "S" ){
- if(menuParam != "" && !isNull(menuParam)){
- //진료메뉴에서 호출시.
- if(opener.javascript.getParameter("DisabledChk")=="Y"){ //삭제된 신고서
- grp_main.disabled = true;
- btn_save.disabled = true;
- btn_init.disabled = true;
- btn_cncl.disabled = true;
- }else{
- grp_main.disabled = false;
- btn_save.disabled = false;
- btn_init.disabled = false;
- btn_cncl.disabled = false;
- }
- }else{
- //진료와 감염관리실 이외의 사용자일 경우 삭제버튼 불활성화 않음.
- if(opener.javascript.getParameter("LglyDeptChk")=="N"){
- btn_cncl.disabled=true;
- }else{
- btn_cncl.disabled=false;
- }
- //2013/07/11 Start
- //grp_main.disabled = true;
- grp_main.disabled = false;
- btn_save.disabled = false;
- //2013/07/11 End
- //grp_chg.disabled = true;
- //grp_btn.disabled = true;
- //btn_save.disabled = false; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
- btn_init.disabled = true; //추가 2009.11.13 JJE
- //btn_cncl.disabled = false; //추가 2009.11.13 JJE
- }
- return;
- }else if(isPopup() && strState != "U" ){
- if(result == "6"){
- grp_main.disabled = false;
- btn_save.disabled = false;
- btn_init.disabled = false;
- btn_cncl.disabled = true;
- fInit();
- }else{
- grp_main.disabled = true;
- btn_save.disabled = true;
- btn_init.disabled = true;
- btn_cncl.disabled = false;
- rdo_estminfcpath.disabled = true;
- }
- return;
- }
- }
-
- function fCtrlEnableChk(pControlID){
- if (pControlID == "chk_sdiag") { // 동반진단
- if ( isSearchString(model.getValue("/root/main/lglydisinfo/info/sdiag"), "99") ) {
- ipt_sdiagetc.disabled = false;
- model.setFocus("ipt_sdiagetc");
- } else {
- ipt_sdiagetc.disabled = true;
- model.setValue("/root/main/lglydisinfo/info/sdiagetc", "");
- model.refresh();
- }
- } else if (pControlID == "chk_symp") {
- if ( isSearchString(model.getValue("/root/main/lglydisinfo/info/symp"), "99") ) {
- ipt_sympetc.disabled = false;
- model.setFocus("ipt_sympetc");
- } else {
- ipt_sympetc.disabled = true;
- model.setValue("/root/main/lglydisinfo/info/sympetc", "");
- model.refresh();
- }
-
- } else if (pControlID == "rdo_estminfcareacd") { // 추정감염지역
- if (model.getValue("/root/main/lglydisinfo/info/estminfcareacd") == "O") {
- cmd_estminfcareanaticd.disabled = false;
- ipt_stayterm.disabled = false;
- ipt_staytermday.disabled = false;
- model.setFocus("rdo_tisstestlag");
- } else {
- cmd_estminfcareanaticd.disabled = true;
- ipt_stayterm.disabled = true;
- ipt_staytermday.disabled = true;
- model.makeValue("/root/main/lglydisinfo/info/estminfcareanaticd", "");
- model.makeValue("/root/main/lglydisinfo/info/stayterm", "");
- model.makeValue("/root/main/lglydisinfo/info/staytermday", "");
- model.refresh();
- }
- } else if (pControlID == "rdo_tisstestlag") { // 검체채취유무
- if (model.getValue("/root/main/lglydisinfo/info/tisstestlag") == "Y") {
- ipt_tisstestdd.disabled = false;
- model.setFocus("ipt_tisstestdd");
- } else {
- ipt_tisstestdd.disabled = true;
- model.setValue("/root/main/lglydisinfo/info/tisstestdd", "");
- model.refresh();
- }
- } else if (pControlID == "chk_matrnm") { // 가검물명
- if ( isSearchString(model.getValue("/root/main/lglydisinfo/info/matrnm"), "99") ) {
- ipt_matrnmetc.disabled = false;
- model.setFocus("ipt_matrnmetc");
- } else {
- ipt_matrnmetc.disabled = true;
- model.setValue("/root/main/lglydisinfo/info/matrnmetc", "");
- model.refresh();
- }
- }
- }
-
- /*
- * 신고된 신고서가 있는지 check
- */
- function fChkReptYN() {
-
- var diagList = instance1.selectNodes("/root/diaginfo/diagcdlist");
- var diagcd = "";
- var statcd = "";
-
- if(diagList.length > 0 ) {
- for(var i=0 ; i< diagList.length ; i++) {
- status = model.getValue("/root/diaginfo/diagcdlist["+ i +"]/status");
- if(status == "I" || status == "U" || status == "-") {
- diagcd += model.getValue("/root/diaginfo/diagcdlist["+ i +"]/diagcd").substr(0,4) + "▦"; //확장코드 자르기
- statcd += model.getValue("/root/diaginfo/diagcdlist["+ i +"]/status") + "▦";
- }
- }
- }
-
- if(diagcd != "") {
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/diagcd", diagcd);
- model.makeValue("/root/send/reqdata/status", statcd);
- model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/lglydisinfo/info/pid"));
- model.makeValue("/root/send/reqdata/reptflag", "10");
- if(submit("TRASI01503", false)) {
- if(model.getValue("/root/temp/tmplist/tmplist/wc") == "Y") {
- model.close();
- return;
- }
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="772" pageheight="670" guideline="1,767;" style="margin-left:8; margin-right:8; ">
- <output id="output8" style="left:640px; top:555px; width:100px; height:19px; "/>
- <caption id="caption30" class="cell_1" style="left:0px; top:545px; width:750px; height:70px; font-weight:bold; vertical-align:middle; line-spacing:4; ">
- <![CDATA[
- ① 합병증을 동반한 수족구병 : 수족구병으로 시작된 신경학적 합병증(뇌막염, 뇌염, 폴리오양 마비 등) 소견을 보인자
- ② 합병증을 동반한 수족구병의 경우에만 신고함]]>
- </caption>
- <group id="grp_tle" style="left:0px; top:0px; width:756; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:371px; height:14px; ">합병증을 동반한 수족구병 감시결과신고</caption>
- </group>
- <line id="line2" class="line_1" style="x1:0px; y1:-19px; x2:750px; y2:-18px; "/>
- <group id="grp_main" scroll="auto" style="left:0px; top:20px; width:755px; height:525px; text-align:center; ">
- <caption id="caption23" style="left:640px; top:445px; width:90px; height:20px; ">개월 일</caption>
- <select id="chk_symp" ref="/root/main/lglydisinfo/info/symp" overflow="visible" appearance="full" cellspacing="10" cols="5" sep="|" vcellspacing="5" style="left:100px; top:220px; width:647px; height:120px; text-align:left; border-style:none; ">
- <choices>
- <item>
- <label>
- <![CDATA[고열 (>37.3℃)]]>
- </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>
- <item>
- <label>근육통</label>
- <value>5</value>
- </item>
- <item>
- <label>두통</label>
- <value>6</value>
- </item>
- <item>
- <label>구토</label>
- <value>7</value>
- </item>
- <item>
- <label>경련</label>
- <value>8</value>
- </item>
- <item>
- <label>광과민증</label>
- <value>9</value>
- </item>
- <item>
- <label>경부강직</label>
- <value>10</value>
- </item>
- <item>
- <label>의식저하</label>
- <value>11</value>
- </item>
- <item>
- <label>흉통</label>
- <value>12</value>
- </item>
- <item>
- <label>호흡곤란</label>
- <value>13</value>
- </item>
- <item>
- <label>부정맥</label>
- <value>14</value>
- </item>
- <item>
- <label>복통</label>
- <value>15</value>
- </item>
- <item>
- <label>홍반성 발진</label>
- <value>16</value>
- </item>
- <item>
- <label>수포성 발진</label>
- <value>17</value>
- </item>
- <item>
- <label>심한 눈꼽</label>
- <value>18</value>
- </item>
- <item>
- <label>안구통</label>
- <value>19</value>
- </item>
- <item>
- <label>사지위약(Paralysis/Weakness of extremities</label>
- <value>20</value>
- </item>
- <item>
- <label>기타</label>
- <value>99</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCtrlEnableChk("chk_symp");
- ]]>
- </script>
- </select>
- <select id="chk_sdiag" ref="/root/main/lglydisinfo/info/sdiag" overflow="visible" appearance="full" cellspacing="20" cols="4" sep="|" vcellspacing="5" style="left:166px; top:175px; width:581px; height:43px; text-align:left; border-style:none; ">
- <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>
- <item>
- <label>기타</label>
- <value>99</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCtrlEnableChk("chk_sdiag");
- ]]>
- </script>
- </select>
- <line id="line4" class="line_1" style="x1:0px; y1:-19px; x2:750px; y2:-18px; "/>
- <caption id="caption14" class="cell_1" style="left:0px; top:6px; width:100px; height:23px; text-align:center; vertical-align:middle; ">환자 성명</caption>
- <caption id="caption15" class="cell_1" style="left:0px; top:32px; width:100px; height:23px; text-align:center; vertical-align:middle; ">생년월일</caption>
- <output id="output1" ref="/root/main/lglydisinfo/info/zipcd1" class="output_fix" style="left:103px; top:58px; width:48px; height:19px; "/>
- <output id="output2" ref="/root/main/lglydisinfo/info/cntcaddr1" class="output_fix" style="left:102px; top:82px; width:645px; height:19px; text-align:left; "/>
- <output id="output3" ref="/root/main/lglydisinfo/info/zipcd2" class="output_fix" style="left:174px; top:58px; width:48px; height:19px; "/>
- <caption id="caption16" class="cell_1" style="left:286px; top:7px; width:68px; height:23px; vertical-align:middle; ">성별</caption>
- <output id="output4" ref="/root/main/lglydisinfo/info/patnm" class="output_fix" style="left:103px; top:8px; width:110px; height:19px; "/>
- <output id="output5" ref="/root/main/lglydisinfo/info/rgstno" class="output_fix" style="left:103px; top:34px; width:80px; height:19px; "/>
- <output id="output6" ref="/root/main/lglydisinfo/info/rgstno2" class="output_fix" visibility="hidden" style="left:203px; top:34px; width:80px; height:19px; "/>
- <caption id="caption17" class="search_no_b" visibility="hidden" style="left:187px; top:33px; width:12px; height:17px; ">-</caption>
- <caption id="caption18" class="search_no_b" style="left:156px; top:58px; width:12px; height:17px; ">-</caption>
- <caption id="caption19" class="cell_1" style="left:0px; top:467px; width:100px; height:23px; text-align:center; vertical-align:middle; ">검체채취유무</caption>
- <caption id="caption20" class="cell_1" style="left:0px; top:387px; width:100px; height:78px; text-align:center; vertical-align:middle; ">
- <![CDATA[추 정
- 감염경로]]>
- </caption>
- <caption id="caption22" class="cell_1" style="left:0px; top:492px; width:100px; height:23px; text-align:center; vertical-align:middle; ">가검물명</caption>
- <caption id="caption25" class="cell_1" style="left:0px; top:56px; width:100px; height:48px; text-align:center; vertical-align:middle; ">주소 및 전화번호</caption>
- <caption id="caption26" class="cell_1" style="left:0px; top:105px; width:100px; height:23px; text-align:center; vertical-align:middle; ">발병일</caption>
- <caption id="caption27" class="cell_1" style="left:0px; top:130px; width:100px; height:89px; text-align:center; vertical-align:middle; ">진단소견</caption>
- <caption id="caption28" class="cell_1" style="left:0px; top:221px; width:100px; height:119px; text-align:center; vertical-align:middle; ">주요증상</caption>
- <caption id="caption29" class="cell_1" style="left:0px; top:342px; width:100px; height:43px; text-align:center; vertical-align:middle; ">
- <![CDATA[뇌막염 환자
- 척수액 소견]]>
- </caption>
- <line id="line5" class="line_1" style="x1:0px; y1:2px; x2:750px; y2:2px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:30px; x2:750px; y2:30px; "/>
- <line id="line7" class="line_2" style="x1:0px; y1:54px; x2:750px; y2:54px; "/>
- <line id="line8" class="line_2" style="x1:100px; y1:79px; x2:750px; y2:78px; "/>
- <line id="line9" class="line_2" style="x1:0px; y1:128px; x2:750px; y2:128px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:220px; x2:750px; y2:220px; "/>
- <line id="line12" class="line_2" style="x1:0px; y1:490px; x2:750px; y2:490px; "/>
- <caption id="caption35" class="cell_1" style="left:485px; top:7px; width:70px; height:23px; text-align:center; vertical-align:middle; ">연령</caption>
- <caption id="caption38" class="cell_1" style="left:286px; top:33px; width:199px; height:23px; vertical-align:middle; ">보호자성명( 만 19세 미만인 경우)</caption>
- <input id="input6" ref="/root/main/lglydisinfo/info/procernm" class="ipt__default" style="left:487px; top:34px; width:170px; height:19px; "/>
- <caption id="caption44" class="cell_1" style="left:286px; top:56px; width:59px; height:23px; vertical-align:middle; ">전화번호</caption>
- <select1 id="radio1" ref="/root/main/lglydisinfo/info/sexflag" disabled="true" appearance="full" cellspacing="30" cols="2" vcellspacing="5" overflow="visible" style="left:357px; top:8px; width:125px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </select1>
- <output id="output7" ref="/root/main/lglydisinfo/info/tel" class="output_fix" style="left:347px; top:58px; width:138px; height:19px; text-align:center; "/>
- <input id="input7" ref="/root/main/lglydisinfo/info/age" class="ipt__default" disabled="true" style="left:585px; top:8px; width:40px; height:19px; text-align:right; "/>
- <caption id="caption54" style="left:570px; top:11px; width:25px; height:15px; ">만</caption>
- <caption id="caption57" style="left:615px; top:11px; width:25px; height:15px; text-align:right; vertical-align:middle; ">세</caption>
- <line id="line22" class="line_2" style="x1:0px; y1:103px; x2:750px; y2:103px; "/>
- <caption id="caption58" class="cell_1" style="left:380px; top:105px; width:100px; height:23px; text-align:center; vertical-align:middle; ">입원일</caption>
- <caption id="caption61" class="cell_1" style="left:102px; top:130px; width:60px; height:43px; vertical-align:middle; ">주요진단</caption>
- <caption id="caption1" class="cell_1" style="left:102px; top:176px; width:60px; height:43px; vertical-align:middle; ">동반진단</caption>
- <input id="ipt_attackdd" ref="/root/main/lglydisinfo/info/attackdd" inputtype="date" format="yyyy-mm-dd" style="left:102px; top:107px; width:275px; height:19px; "/>
- <input id="ipt_diagdd" ref="/root/main/lglydisinfo/info/diagdd" inputtype="date" format="yyyy-mm-dd" style="left:482px; top:107px; width:265px; height:19px; "/>
- <select id="chk_residncflag" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:488px; top:59px; width:86px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>거주지 불명</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_idflag" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:579px; top:59px; width:86px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>신원미상</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <line id="line1" class="line_2" style="x1:100px; y1:174px; x2:748px; y2:174px; "/>
- <line id="line16" class="line_2" style="x1:0px; y1:341px; x2:748px; y2:341px; "/>
- <line id="line17" class="line_2" style="x1:0px; y1:386px; x2:748px; y2:386px; "/>
- <line id="line19" class="line_2" style="x1:0px; y1:466px; x2:748px; y2:466px; "/>
- <line id="line18" class="line_2" style="x1:0px; y1:515px; x2:748px; y2:515px; "/>
- <caption id="caption2" class="cell_1" style="left:380px; top:387px; width:100px; height:78px; text-align:center; vertical-align:middle; ">
- <![CDATA[추 정
- 감염지역]]>
- </caption>
- <caption id="caption3" class="cell_1" style="left:380px; top:467px; width:100px; height:23px; text-align:center; vertical-align:middle; ">검체채취일</caption>
- <select1 id="rdo_tisstestlag" ref="/root/main/lglydisinfo/info/tisstestlag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:100px; top:469px; width:85px; height:20px; text-align:center; border-style:none; ">
- <choices>
- <item>
- <label>유</label>
- <value>Y</value>
- </item>
- <item>
- <label>무</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCtrlEnableChk("rdo_tisstestlag");
- ]]>
- </script>
- </select1>
- <input id="ipt_stayterm" ref="/root/main/lglydisinfo/info/stayterm" format="#,###" style="left:580px; top:445px; width:55px; height:19px; text-align:center; "/>
- <input id="ipt_staytermday" ref="/root/main/lglydisinfo/info/staytermday" maxlength="2" format="#,###" style="left:675px; top:445px; width:25px; height:19px; text-align:center; "/>
- <caption id="caption4" style="left:490px; top:425px; width:40px; height:20px; ">(국명)</caption>
- <caption id="caption5" style="left:490px; top:445px; width:68px; height:20px; ">(체류기간)</caption>
- <caption id="caption7" style="left:105px; top:345px; width:95px; height:20px; ">백혈구(WBC) [</caption>
- <caption id="caption8" style="left:240px; top:345px; width:308px; height:20px; ">]개/㎕ 다핵구/림프구/기타(Poly/Lympho/Other) [</caption>
- <caption id="caption9" style="left:580px; top:345px; width:25px; height:20px; ">%/</caption>
- <caption id="caption10" style="left:635px; top:345px; width:25px; height:20px; ">%/</caption>
- <caption id="caption11" style="left:695px; top:345px; width:25px; height:20px; ">%]</caption>
- <caption id="caption12" style="left:105px; top:365px; width:95px; height:20px; ">단백(Protein) [</caption>
- <caption id="caption13" style="left:255px; top:365px; width:351px; height:20px; ">]㎎/㎗ 당(Glucose) [</caption>
- <caption id="caption21" style="left:505px; top:365px; width:80px; height:20px; ">]㎎/㎗</caption>
- <input id="input8" ref="/root/main/lglydisinfo/info/testcnts6" format="###,###" style="left:450px; top:365px; width:55px; height:19px; "/>
- <input id="input9" ref="/root/main/lglydisinfo/info/testcnts2" maxlength="2" format="#,###" style="left:550px; top:345px; width:30px; height:19px; "/>
- <input id="input10" ref="/root/main/lglydisinfo/info/testcnts3" maxlength="2" format="#,###" style="left:605px; top:345px; width:30px; height:19px; "/>
- <input id="input11" ref="/root/main/lglydisinfo/info/testcnts4" maxlength="2" format="#,###" style="left:665px; top:345px; width:30px; height:19px; "/>
- <input id="input12" ref="/root/main/lglydisinfo/info/testcnts1" format="###,###" style="left:190px; top:345px; width:50px; height:19px; "/>
- <input id="input13" ref="/root/main/lglydisinfo/info/testcnts5" format="###,###" style="left:190px; top:365px; width:65px; height:19px; "/>
- <line id="line3" class="line_1" style="x1:0px; y1:515px; x2:750px; y2:515px; "/>
- <select id="chk_mdiag" ref="/root/main/lglydisinfo/info/mdiag" overflow="visible" appearance="full" cellspacing="20" cols="5" sep="|" vcellspacing="5" style="left:166px; top:130px; width:581px; height:43px; text-align:left; border-style:none; ">
- <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>
- <item>
- <label>무균성뇌막염</label>
- <value>5</value>
- </item>
- <item>
- <label>뇌염</label>
- <value>6</value>
- </item>
- <item>
- <label>심근염</label>
- <value>7</value>
- </item>
- <item>
- <label>심낭염</label>
- <value>8</value>
- </item>
- <item>
- <label>확장성심근병증</label>
- <value>9</value>
- </item>
- </choices>
- </select>
- <input id="ipt_sdiagetc" ref="/root/main/lglydisinfo/info/sdiagetc" style="left:225px; top:198px; width:522px; height:19px; text-align:left; "/>
- <input id="ipt_sympetc" ref="/root/main/lglydisinfo/info/sympetc" style="left:150px; top:310px; width:597px; height:19px; text-align:left; "/>
- <input id="ipt_tisstestdd" ref="/root/main/lglydisinfo/info/tisstestdd" inputtype="date" format="yyyy-mm-dd" style="left:482px; top:469px; width:265px; height:19px; "/>
- <select id="chk_matrnm" ref="/root/main/lglydisinfo/info/matrnm" overflow="visible" appearance="full" cellspacing="10" cols="5" rows="1" sep="|" style="left:100px; top:494px; width:290px; height:20px; text-align:left; border-style:none; ">
- <choices>
- <item>
- <label>대변(Stool)</label>
- <value>1</value>
- </item>
- <item>
- <label>인후(Throat swab)</label>
- <value>2</value>
- </item>
- <item>
- <label>기타</label>
- <value>99</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCtrlEnableChk("chk_matrnm");
- ]]>
- </script>
- </select>
- <input id="ipt_matrnmetc" ref="/root/main/lglydisinfo/info/matrnmetc" style="left:390px; top:495px; width:357px; height:19px; text-align:left; "/>
- <select1 id="rdo_estminfcareacd" ref="/root/main/lglydisinfo/info/estminfcareacd" appearance="full" cols="1" vcellspacing="2" overflow="visible" style="left:480px; top:387px; width:75px; height:55px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/A0132list/A0132">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script id="script51" type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCtrlEnableChk("rdo_estminfcareacd");
- ]]>
- </script>
- </select1>
- <select1 id="cmd_estminfcareanaticd" ref="/root/main/lglydisinfo/info/estminfcareanaticd" appearance="minimal" style="left:535px; top:425px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0353list/P0353">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="grp_btn" style="left:0px; top:620px; width:756px; height:27px; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <button id="btn_init" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:685px; top:3px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //model.resetInstanceNode("/root/main");
- fInit();
- //뇌막염 환자 척수액 소견 (수정 필요)
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_cncl" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:628px; top:3px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/send");
- model.makeNode("/root/send/savedata");
-
- //if(model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt") != '99991231235959' ){
- if(model.getValue("/root/main/getreptdtinfo/reptdtinfo/prt_reptdt").substring(0,8) != "99991231" ){ //작성일자가 아닌 신고일자로 체크하도록 수정 (2009.11.13 JJE)
- messageBox(" 이미 신고된 건은 삭제 " ,"E001");
- return;
- }
- var result = messageBox("","Q001"); //삭제하시겠습니까?
-
- if (result == "7"){
- messageBox("삭제가 취소되었습니다","I");
- return;
- }else if (result =="6"){
- model.setValue("/root/main/lglydisinfo/info/state", "D");
- model.copyNode("/root/send/savedata","/root/main/lglydisinfo/info");
-
- if(submit("TXASI03701", false)){
-
- model.copyNode("/root/main/lglydisinfo", "/root/main/getlglydisinfo");
- model.refresh();
- messageBox("삭제" ,"I001");
- window.close();
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:570px; top:3px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/send");
- model.makeNode("/root/send/savedata");
- // if( isRequiredControls("ipt_attackdd","ipt_diagdd") == false ) {
- // return;
- // }
- if( isNull(model.getValue("/root/main/lglydisinfo/info/attackdd")) ){
- messageBox("발병일은 필수입니다.","I");
- return;
- }
-
- if(isNull(model.getValue("/root/main/lglydisinfo/info/mdiag")) ){
- messageBox("주요진단은 필수입니다.","I");
- return;
- }
-
- if (model.getValue("/root/main/lglydisinfo/info/estminfcareacd") == "O" && model.getValue("/root/main/lglydisinfo/info/staytermday") > "30" ) {
- messageBox("체류기간 일은 30일을 넘을 수 없습니다.", "I");
- return;
- }
- // if(isNull(model.getValue("/root/main/lglydisinfo/info/diagdd")) ){
- // messageBox("진단일은 필수입력입니다.");
- // return;
- // }
- if( isNull(model.getValue("/root/main/lglydisinfo/info/wrtedt")) ){
- model.setValue("/root/main/lglydisinfo/info/state", "I");
- model.setValue("/root/main/lglydisinfo/info/wrtedt", getCurrentDate() +""+getCurrentTime());
- } else {
- model.setValue("/root/main/lglydisinfo/info/state", "U");
- }
-
- model.setValue("/root/main/lglydisinfo/info/reptflag", "10");
- model.setValue("/root/main/lglydisinfo/info/lglydiscd", "701");
- model.setValue("/root/main/lglydisinfo/info/orddeptcd", model.getValue("/root/main/paminfo/list/orddeptcd"));
- model.setValue("/root/main/lglydisinfo/info/updtreptcnts", ""); //변경신고내용
- model.setValue("/root/main/lglydisinfo/info/diagcd",model.getValue("/root/diaginfo/diagcdlist/diagcd"));
-
- //뇌막염 환자 척수액 소견 (수정 필요)
- var testcnts = "";
- var temp = model.getValue("/root/main/lglydisinfo/info/testcnts1");
- if ( isNull(temp)) temp = "-";
- testcnts = testcnts + temp;
- temp = model.getValue("/root/main/lglydisinfo/info/testcnts2");
- if ( isNull(temp)) temp = "-";
- testcnts = testcnts + "|" +temp;
- temp = model.getValue("/root/main/lglydisinfo/info/testcnts3");
- if ( isNull(temp)) temp = "-";
- testcnts = testcnts + "|" +temp;
- temp = model.getValue("/root/main/lglydisinfo/info/testcnts4");
- if ( isNull(temp)) temp = "-";
- testcnts = testcnts + "|" +temp;
- temp = model.getValue("/root/main/lglydisinfo/info/testcnts5");
- if ( isNull(temp)) temp = "-";
- testcnts = testcnts + "|" +temp;
- temp = model.getValue("/root/main/lglydisinfo/info/testcnts6");
- if ( isNull(temp)) temp = "-";
- testcnts = testcnts + "|" +temp;
- model.setValue("/root/main/lglydisinfo/info/testcnts", testcnts);
- model.copyNode("/root/send/savedata","/root/main/lglydisinfo/info");
-
- //@@
- var Curstate = model.getValue("/root/main/lglydisinfo/info/state");
- if(submit("TXASI03701", false)){
- model.copyNode("/root/main/lglydisinfo", "/root/main/getlglydisinfo");
- //fCtrlEnableChk("rdo");
- //fCtrlEnableChk("rdo_chgrept");
- //fCtrlEnableChk("rdo_estminfcareacd");
- //fChgReptDisable();
- model.refresh();
-
- //@@
- if(Curstate == "I"){
- messageBox("저장되었습니다","I");
- }else if (Curstate == "U"){
- messageBox("수정되었습니다.","I");
- }
- model.close();
- }
-
- ]]>
- </script>
- </button>
- </group>
- <select1 id="rdo_estminfcpath" ref="/root/main/lglydisinfo/info/estminfcpath" appearance="full" cols="1" vcellspacing="2" overflow="visible" style="left:100px; top:409px; width:275px; height:75px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/A0131list/A0131">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption24" class="tit_2" style="left:20px; top:550px; width:60px; height:15px; ">비고</caption>
- <caption id="caption31" class="cell_1" style="left:0px; top:221px; width:100px; height:119px; text-align:center; vertical-align:middle; ">주요증상</caption>
- </xhtml:body>
- </xhtml:html>
|