123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>인플루엔자 표본검시 신고</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <infcsmmrsltreptinfo>
- <infcsmmrsltreptlist>
- <state/>
- <reptflag/>
- <psnflag/>
- <patnm/>
- <sexflag/>
- <age/>
- <rgstno/>
- <rgstno2/>
- <diagdd/>
- <spckindcd/>
- <preinochstflag/>
- <pid/>
- <wrtedt/>
- <instcd/>
- <seqno/>
- <cretno/>
- <orddd/>
- <indd/>
- <orddeptcd/>
- <lasthistyn>Y</lasthistyn>
- </infcsmmrsltreptlist>
- </infcsmmrsltreptinfo>
- <getlglydisinfo>
- </getlglydisinfo>
- <getreptdtinfo>
- </getreptdtinfo>
- <paminfo/>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden/>
- <init>
- <initdate>
- <today/>
- </initdate>
- <A0628list>
- <A0628/>
- </A0628list>
- <A0134list>
- <A0134>
- </A0134>
- </A0134list>
- </init>
- <diaginfo>
- <diagcdlist/>
- </diaginfo>
- <temp>
- <tmplist/>
- </temp>
- </root>
- </instance>
- <!--
- <submission id="TXASI01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/getlglydisinfo"/>
- -->
- <submission id="TXASI03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/getlglydisinfo"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // model.refresh();
- // window.left= 10;
- // window.top= 10;
- // window.visible=false;
- // window.height = 10;
- // window.width= 10;
- //
- // fChkReptYN();
- //
- // //alert(model.getValue("/root/temp/tmplist/tmplist/wc"));
- //
- // if(model.getValue("/root/temp/tmplist/tmplist/wc") == "Y") {
- // model.close();
- // return;
- // }else{
- // model.refresh();
- // window.left= 300;
- // window.top= 400;
- // window.visible=true;
- // window.height = 220;
- // window.width= 790;
- // }
-
- // zbcfGetCodeList(new Array("A0628", "A0134"), new Array("/root/init/A0628list", "/root/init/A0134list"));
- zbcfGetCodeList(new Array("A0628"), new Array("/root/init/A0628list")); // 0701
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/reptflag", "07");
- model.refresh();
-
- /*if(isPopup()){
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/wrtedt", opener.javascript.getParameter("wrtedt"));
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/seqno", opener.javascript.getParameter("seqno"));
- }*/
-
- var pid = "";
- var strRegtdt = "";
- var iDate = new Date();
- var strYearCal = "";
-
- var pamInfoCvs = getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
- if(pamInfoCvs != ""){ //cvs가 ""이 아닌 경우에만 처리함.
- model.removeNodeSet("/root/main/paminfo/list");
- setCSVToNode("/root/main/paminfo", pamInfoCvs);
- var ioflag = model.getValue("/root/main/paminfo/list/ioflag");
-
- if(ioflag == "I" || ioflag == "E"){
- pid = model.getValue("/root/main/paminfo/list/pid");
- indd = model.getValue("/root/main/paminfo/list/indd");
- cretno = model.getValue("/root/main/paminfo/list/cretno");
-
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid", pid );
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/indd", indd);
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/cretno", cretno);
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/psnflag", ioflag);
- model.refresh();
- }else if(ioflag == "O"){
- pid = model.getValue("/root/main/paminfo/list/pid");
- orddd = model.getValue("/root/main/paminfo/list/orddd");
- cretno = model.getValue("/root/main/paminfo/list/cretno");
-
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid", pid );
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/indd", orddd);
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/cretno", cretno);
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/psnflag", ioflag);
- model.refresh();
- }
- }else if(isPopup()){
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid", opener.javascript.getParameter("pid"));
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/indd", opener.javascript.getParameter("indd"));
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/psnflag", opener.javascript.getParameter("psnflag"));
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/wrtedt", opener.javascript.getParameter("wrtedt"));
- }
-
- if(!isNull(model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid"))){
- model.copyNode("/root/send/reqdata", "/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist");
- if(submit("TRASI01501")){
- model.copyNode("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist", "/root/main/getlglydisinfo/info");
- //fChgReptDisable();
- //@@
- //fChgReptDisable(result);
- model.refresh();
- }
-
- //@@
- 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/infcsmmrsltreptinfo/infcsmmrsltreptlist/state", opener.javascript.getParameter("state"));
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/wrtedt", opener.javascript.getParameter("wrtedt"));
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/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)
-
- }else if(isPopup() && (opener.javascript.getParameter("state") != "U" || isNull(opener.javascript.getParameter("PrcpLglyDis"))) ){
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/state", opener.javascript.getParameter("state"));
- model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid"));
- model.makeValue("/root/send/reqdata/reptflag", model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/reptflag"));
- strRegtdt = "";
- if (submit("TRASI01502")){
- strRegtdt = model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt");
- }
- if( !isNull(strRegtdt) ){
- strYearCal = (iDate.getAddDate(-1, "Y")).getDateFormat();
- }
-
- 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;
- }
- // if( model.getValue("/root/main/getreptdtinfo/reptdtinfo/chgyn") == 'Y' ){
- // model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/state", "U" );
- // fChkReptYN();
- // if(model.getValue("/root/temp/tmplist/tmplist/wc") == "Y") {
- // model.close();
- // return;
- // }
- // }
- }
- // model.copyNode("/root/send/reqdata", "/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist");
- // if(submit("TRASI01501")){
- // model.copyNode("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist", "/root/main/getlglydisinfo/info");
- // fChgReptDisable();
- //@@
- fChgReptDisable(result);
- model.refresh();
- // }
- }else{
- grp_btn.disabled = true;
- }
- ]]>
- </script>
- <submission id="TRZBC00101" 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"/>
- </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/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
-
- function fInit() {
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/state", "");
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/wrtedt", "");
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/seqno", "");
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/diagdd", "");
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/spckindcd", "");
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/preinochstflag", "");
- }
-
- //신고대상자조회화면에서 state="S" 일 때, 입력가능여부 처리
- //function fChgReptDisable(){
- function fChgReptDisable(result){
- 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;
- }
- // //grp_btn.disabled = false;
- // grp_main.disabled = true;
- // btn_save.disabled = true; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
- // btn_init.disabled = true; //추가 2009.11.13 JJE
- // btn_cncl.disabled=false;
- 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;
- }
- grp_main.disabled = true;
- //grp_btn.disabled = true;
- btn_save.disabled = true; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
- btn_init.disabled = true; //추가 2009.11.13 JJE
- }
- return;
- }else {
- 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;
- }
- return;
- }
-
- if( isNull(model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid"))){
- grp_main.disabled = true;
- grp_btn.disabled = true;
- }
- }
-
-
- /*
- 기신고서가 있는지 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/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid"));
- // if(model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid")!=""){
- // model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid"));
- // } else {
- // model.makeValue("/root/send/reqdata/pid", getPatientInfo("pid"));
- // //alert(model.getValue("/root/send/reqdata/pid"));
- // }
- model.makeValue("/root/send/reqdata/reptflag", "07");
- if(submit("TRASI01503")){
- if(model.getValue("/root/temp/tmplist/tmplist/wc") == "Y") {
- model.close();
- return;
- }
- }
-
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="775" pageheight="185" style="margin-left:8; margin-right:8; ">
- <group id="grp_tle" style="left:0px; top:0px; width:756px; height:22px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:181px; height:14px; ">인플루엔자 표본검시 신고서</caption>
- </group>
- <group id="grp_main" scroll="auto" style="left:0px; top:23px; width:755px; height:117px; ">
- <caption id="caption10" class="cell_1" style="left:393px; top:5px; width:55px; height:23px; text-align:center; vertical-align:middle; ">성별</caption>
- <line id="line56" class="line_3" style="x1:0px; y1:114px; x2:755px; y2:114px; "/>
- <caption id="caption13" class="search_no_b" style="left:187px; top:28px; width:12px; height:17px; ">-</caption>
- <caption id="caption1" class="cell_1" style="left:0px; top:29px; width:79px; height:23px; text-align:center; vertical-align:middle; ">주민등록번호</caption>
- <caption id="caption2" class="cell_1" style="left:0px; top:5px; width:79px; height:23px; text-align:center; vertical-align:middle; ">성명</caption>
- <caption id="caption11" class="cell_1" style="left:564px; top:5px; width:67px; height:23px; text-align:center; vertical-align:middle; ">나이</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:53px; width:79px; height:23px; text-align:center; vertical-align:middle; ">검체종류</caption>
- <caption id="caption8" class="cell_1" style="left:0px; top:77px; width:79px; height:37px; text-align:center; vertical-align:middle; ">
- <![CDATA[당해 연도
- 백신접종력]]>
- </caption>
- <line id="line4" class="line_2" style="x1:0px; y1:27px; x2:755px; y2:27px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:51px; x2:755px; y2:51px; "/>
- <line id="line37" class="line_1" style="x1:0px; y1:0px; x2:755px; y2:0px; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:0px; x2:755px; y2:1px; "/>
- <caption id="caption4" style="left:733px; top:7px; width:15px; height:20px; vertical-align:middle; ">세</caption>
- <line id="line1" class="line_2" style="x1:0px; y1:75px; x2:755px; y2:75px; "/>
- <output id="opt_nm" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/patnm" class="output_fix" style="left:82px; top:6px; width:308px; height:19px; "/>
- <input id="ipt_ioflag" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/psnflag" class="input_default" visibility="hidden" style="left:594px; top:85px; width:35px; height:19px; "/>
- <input id="ipt_indd" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/indd" class="input_default" visibility="hidden" style="left:555px; top:85px; width:35px; height:19px; "/>
- <input id="ipt_pid" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid" class="input_default" visibility="hidden" style="left:515px; top:85px; width:35px; height:19px; "/>
- <output id="opt_sex" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/sexflag" class="output_fix" style="left:451px; top:6px; width:110px; height:19px; "/>
- <output id="opt_age" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/age" class="output_fix" style="left:634px; top:6px; width:97px; height:19px; "/>
- <output id="opt_rgstno1" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/rgstno" class="output_fix" style="left:82px; top:30px; width:100px; height:19px; "/>
- <output id="opt_rgstno2" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/rgstno2" class="output_fix" style="left:199px; top:30px; width:100px; height:19px; "/>
- <input id="ipt_diagdd" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/diagdd" class="input_essential" inputtype="date" style="left:451px; top:30px; width:110px; height:19px; "/>
- <select1 id="rdo_diagnm" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/spckindcd" appearance="full" cellspacing="30" cols="4" vcellspacing="10" overflow="visible" style="left:82px; top:51px; width:420px; height:25px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/A0628list/A0628">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="input1" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/wrtedt" class="input_default" visibility="hidden" style="left:633px; top:85px; width:35px; height:19px; "/>
- <input id="input2" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/instcd" class="input_default" visibility="hidden" style="left:670px; top:85px; width:35px; height:19px; "/>
- <input id="input3" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/seqno" class="input_default" visibility="hidden" style="left:707px; top:85px; width:35px; height:19px; "/>
- <input id="input4" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/cretno" class="input_default" visibility="hidden" style="left:525px; top:55px; width:35px; height:19px; "/>
- <input id="input5" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/orddd" class="input_default" visibility="hidden" style="left:565px; top:55px; width:35px; height:19px; "/>
- <caption id="cap_diagdd" class="cell_1" style="left:393px; top:29px; width:55px; height:23px; text-align:center; vertical-align:middle; ">진단일</caption>
- <input id="input6" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/orddeptcd" class="input_default" visibility="hidden" style="left:680px; top:55px; width:35px; height:19px; "/>
- <select1 id="radio1" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/preinochstflag" appearance="full" cellspacing="50" cols="3" overflow="visible" style="left:82px; top:83px; width:317px; height:25px; border-style:none; ">
- <choices>
- <item>
- <label>유</label>
- <value>Y</value>
- </item>
- <item>
- <label>무</label>
- <value>N</value>
- </item>
- <item>
- <label>모름</label>
- <value>X</value>
- </item>
- </choices>
- </select1>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:142px; width:755px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:567px; top:2px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/reptflag", "07");
- model.makeValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/lglydiscd", "603");
-
- if( !isRequiredControls("ipt_diagdd") ){
- return;
- }
-
- if(isNull(model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/diagdd")) ){
- messageBox("진단일은 ","I003");
- return;
- }
-
- if((model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/spckindcd")=="")){
- messageBox("전염병명은","I003");
- return;
- }
-
- if((model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/preinochstflag")=="")){
- messageBox("예방접종내력은","I003");
- return;
- }
-
- if(isNull(model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/wrtedt"))){
- model.makeValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/state", "I");
- model.makeValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/wrtedt", getCurrentDate() +""+ getCurrentTime());
- // model.makeValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/reptdt", getCurrentDate() +""+ getCurrentTime());
- } else {
- model.makeValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/state", "U");
- }
-
- model.makeValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/orddeptcd", model.getValue("/root/main/paminfo/list/orddeptcd"));
- model.copyNode("/root/send/savedata", "/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist");
- //@@
- var Curstate = model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/state")
- if(submit("TXASI03401")) {
- model.copyNode("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist", "/root/main/getlglydisinfo/info");
- model.refresh();
- //@@
- if(Curstate == "I"){
- messageBox("저장되었습니다","I");
- }else if (Curstate == "U"){
- messageBox("수정되었습니다.","I");
- }
- model.close();
- }
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:684px; top:2px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInit();
- //model.resetInstanceNode("/root/main");
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_cncl" class="btn4_letter2" style="left:625px; top:144px; width:56px; height:22px; ">
- <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/prt_reptdt").substring(0,8) != "99991231" ){ //작성일자가 아닌 신고일자로 체크하도록 수정 (2009.11.13 JJE)
- messageBox(" 이미 신고된 건은 삭제 " ,"E001");
- return;
- }
-
- var result = messageBox("","Q001"); //삭제하시겠습니까?
-
- if (result == "7"){
- messageBox("삭제가 취소되었습니다","I");
- return;
- }
- 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)
-
- model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/state", "D");
- model.copyNode("/root/send/savedata","/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist");
-
- if(submit("TXASI03401") != false){
- model.copyNode("/root/main/infcsmmrsltreptinfo", "/root/main/getlglydisinfo");
- model.refresh();
-
- model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid"));
- model.makeValue("/root/send/reqdata/reptflag", model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/reptflag"));
- if(submit("TRASI01502", false)){
- if( isNull(model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt")) ){
- messageBox("삭제" ,"I001");
- window.close();
- }
- }
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|