123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPASI01900" position="absolute 0 0 747 267" titletext="선천성매독표본감시결과신고" oninit="model1_oninit" onload="SPASI01900_onload">
- <Layouts>
- <Layout>
- <Div id="grp_btn" taborder="24" text="Div00" position="absolute 2 239 747 261">
- <Layouts>
- <Layout>
- <Button id="btn_save" taborder="0" text="저장" onclick="btn_save_onclick" onlbuttonup="btn_save_onlbuttonup" class="btn4" position="absolute 558 0 614 22" anchor="default"/>
- <Button id="btn_cncl" taborder="1" text="삭제" onclick="btn_cncl_onclick" onlbuttonup="btn_cncl_onlbuttonup" class="btn4" position="absolute 617 0 673 22" anchor="default"/>
- <Button id="btn_init" taborder="2" text="초기화" onclick="btn_init_onclick" onlbuttonup="btn_init_onlbuttonup" class="btn4" position="absolute 676 0 744 22" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_main" taborder="43" text="Div00" position="absolute -4 25 746 234">
- <Layouts>
- <Layout>
- <Static id="Static07" class="sta_DA_box" position="absolute 4 0 750 209" anchor="default"/>
- <Edit id="input6" taborder="8" imemode="hangul" class="input_default" visible="false" position="absolute 707 124 742 144" anchor="default"/>
- <Static id="cap_diagdd" text="진단일" class="cell_1" position="absolute 394 28 449 52" style="align:center middle;" anchor="default"/>
- <Edit id="input5" taborder="9" imemode="hangul" class="input_default" visible="false" position="absolute 670 124 705 144" anchor="default"/>
- <Edit id="input4" taborder="10" imemode="hangul" class="input_default" visible="false" position="absolute 633 124 668 144" anchor="default"/>
- <Edit id="input3" taborder="11" imemode="hangul" class="input_default" visible="false" position="absolute 593 124 628 144" anchor="default"/>
- <Edit id="input2" taborder="12" imemode="hangul" class="input_default" visible="false" position="absolute 553 124 588 144" anchor="default"/>
- <Edit id="input1" taborder="13" imemode="hangul" class="input_default" visible="false" position="absolute 514 124 549 144" anchor="default"/>
- <Edit id="ipt_diagmthdetc" taborder="14" imemode="hangul" class="input_default" position="absolute 86 185 746 205" anchor="default"/>
- <Radio id="rdo_diagmthd" taborder="7" columncount="1" rowcount="0" innerdataset="@ds_init_A0136" codecolumn="cdid" datacolumn="cdnm" position="absolute 86 53 743 183" anchor="default" onitemchanged="grp_main_rdo_diagmthd_onitemchanged"/>
- <Edit id="ipt_procernm" taborder="6" imemode="hangul" class="input_default" position="absolute 635 30 746 50" anchor="default"/>
- <Calendar id="ipt_diagdd" taborder="5" class="input_essential" position="absolute 452 30 562 50" style="align:left middle;" anchor="default" ontextchanged="grp_main_ipt_diagdd_ontextchanged" dateformat="yyyy-MM-dd " value="null"/>
- <Edit id="opt_rgstno2" taborder="4" readonly="true" position="absolute 204 30 304 50" anchor="default"/>
- <Edit id="opt_rgstno1" taborder="3" readonly="true" position="absolute 86 30 186 50" anchor="default"/>
- <Edit id="opt_age" taborder="2" readonly="true" position="absolute 635 5 746 25" mask="####-##-##" anchor="default"/>
- <Edit id="opt_sex" taborder="1" readonly="true" position="absolute 452 5 562 25" style="align:center middle;" anchor="default"/>
- <Edit id="opt_nm" taborder="0" readonly="true" position="absolute 86 5 390 25" anchor="default"/>
- <Edit id="ipt_ioflag" taborder="15" imemode="hangul" class="input_default" visible="false" position="absolute 475 124 510 144" anchor="default"/>
- <Edit id="ipt_pid" taborder="16" imemode="hangul" class="input_default" visible="false" position="absolute 396 124 431 144" anchor="default"/>
- <Edit id="ipt_indd" taborder="17" imemode="hangul" class="input_default" visible="false" position="absolute 436 124 471 144" anchor="default"/>
- <Static id="caption4" text="진단방법" class="cell_1" position="absolute 4 53 83 208" style="align:center middle;" anchor="default"/>
- <Static id="caption3" text="생년월일" class="cell_1" position="absolute 565 3 632 27" style="align:center middle;" anchor="default"/>
- <Static id="caption14" text="보호자성명" class="cell_1" position="absolute 565 28 632 52" style="align:center middle;" anchor="default" wordwrap="none"/>
- <Static id="caption2" text="성명" class="cell_1" position="absolute 4 3 83 27" style="align:center middle;" anchor="default"/>
- <Static id="caption1" text="주민등록번호" class="cell_1" position="absolute 4 28 83 52" style="align:center middle;" anchor="default" wordwrap="none"/>
- <Static id="caption13" text="-" class="search_no_b" position="absolute 187 30 203 47" style="align:center;" anchor="default"/>
- <Static id="caption10" text="성별" class="cell_1" position="absolute 394 3 449 27" style="align:center middle;" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="선천성매독표본감시결과신고" class="tit_1" position="absolute 0 0 220 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_A0136" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdgrupid" type="STRING" size="256"/>
- <Column id="bizflag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_cngntlsyphsmmrsltreptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <Column id="state" type="STRING" size="256"/>
- <Column id="reptflag" type="STRING" size="256"/>
- <Column id="psnflag" type="STRING" size="256"/>
- <Column id="patnm" type="STRING" size="256"/>
- <Column id="sexflag" type="STRING" size="256"/>
- <Column id="age" type="STRING" size="256"/>
- <Column id="rgstno" type="STRING" size="256"/>
- <Column id="rgstno2" type="STRING" size="256"/>
- <Column id="diagdd" type="STRING" size="256"/>
- <Column id="procernm" type="STRING" size="256"/>
- <Column id="diagmthd" type="STRING" size="256"/>
- <Column id="diagmthdcnts" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="indd" type="STRING" size="256"/>
- <Column id="wrtedt" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="seqno" type="STRING" size="256"/>
- <Column id="lglydiscd" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="brthdd" type="STRING" size="256"/>
- <Column id="lasthistyn" type="STRING" size="256"/>
- <ColumnInfo>
- <Column id="state" type="STRING" size="256"/>
- <Column id="reptflag" type="STRING" size="256"/>
- <Column id="psnflag" type="STRING" size="256"/>
- <Column id="patnm" type="STRING" size="256"/>
- <Column id="sexflag" type="STRING" size="256"/>
- <Column id="age" type="STRING" size="256"/>
- <Column id="rgstno" type="STRING" size="256"/>
- <Column id="rgstno2" type="STRING" size="256"/>
- <Column id="diagdd" type="STRING" size="256"/>
- <Column id="procernm" type="STRING" size="256"/>
- <Column id="diagmthd" type="STRING" size="256"/>
- <Column id="diagmthdcnts" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="indd" type="STRING" size="256"/>
- <Column id="wrtedt" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="seqno" type="STRING" size="256"/>
- <Column id="lglydiscd" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="brthdd" type="STRING" size="256"/>
- <Column id="lasthistyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="diagmthd">01</Col>
- <Col id="lasthistyn">Y</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddeptcd"/>
- <Column id="cnclyn"/>
- <Column id="state"/>
- <Column id="seqno"/>
- <Column id="psnflag"/>
- <Column id="patnm"/>
- <Column id="sexflag"/>
- <Column id="age"/>
- <Column id="job"/>
- <Column id="jobcd"/>
- <Column id="rgstno"/>
- <Column id="rgstno2"/>
- <Column id="procernm"/>
- <Column id="zipcd1"/>
- <Column id="zipcd2"/>
- <Column id="cntcaddr1"/>
- <Column id="tel"/>
- <Column id="residncflag"/>
- <Column id="idflag"/>
- <Column id="wrtedt"/>
- <Column id="pid"/>
- <Column id="indd"/>
- <Column id="indd"/>
- <Column id="cretno"/>
- <Column id="lglydiscd"/>
- <Column id="grup4lglydisnewsymp"/>
- <Column id="apntlglydisnm"/>
- <Column id="attackdd"/>
- <Column id="diagdd"/>
- <Column id="dethyn"/>
- <Column id="dethresn"/>
- <Column id="patflag"/>
- <Column id="cnfmsnwtestrslt"/>
- <Column id="estminfcpath"/>
- <Column id="estminfcarea"/>
- <Column id="estminfcareanaticd"/>
- <Column id="estminfcareastayterm"/>
- <Column id="estminfcareastaytermday"/>
- <Column id="chgrept"/>
- <Column id="chgzipcd1"/>
- <Column id="chgzipcd2"/>
- <Column id="chgzipcdseq"/>
- <Column id="chgreptaddr"/>
- <Column id="chgreptaddrdtl"/>
- <Column id="updtreptcnts"/>
- <Column id="reptflag"/>
- <Column id="naticd"/>
- <Column id="ecntrydd"/>
- <Column id="pastcureflag"/>
- <Column id="cureterm"/>
- <Column id="pastcurecnt"/>
- <Column id="bisiziflag"/>
- <Column id="bisiziinocmthd"/>
- <Column id="sputumdm"/>
- <Column id="sputumby"/>
- <Column id="sputumodm"/>
- <Column id="sputumoby"/>
- <Column id="tisstestlag"/>
- <Column id="etctestflag"/>
- <Column id="rayrsltflag"/>
- <Column id="tooberrsltsize"/>
- <Column id="solidsize"/>
- <Column id="curefromdd"/>
- <Column id="diagcd"/>
- <Column id="diagnm"/>
- <Column id="curedrugcd"/>
- <Column id="curedrugcdetc"/>
- <Column id="curetodd"/>
- <Column id="curersltflag"/>
- <Column id="curersltetc"/>
- <Column id="preinochstflag"/>
- <Column id="diagmthd"/>
- <Column id="diagmthdetc"/>
- <Column id="symp"/>
- <Column id="stayterm"/>
- <Column id="staytermday"/>
- <Column id="estminfcareacd"/>
- <Column id="dethflag"/>
- <Column id="lglydiscnts"/>
- <Column id="brwavetestflag"/>
- <Column id="brwavetestcnts"/>
- <Column id="raytestflag"/>
- <Column id="raytestcnts"/>
- <Column id="crbrfldtestflag"/>
- <Column id="crbrfldtestcnts"/>
- <Column id="prnpagenetestflag"/>
- <Column id="testpartcd"/>
- <Column id="testpartremcnts"/>
- <Column id="testmthdcd"/>
- <Column id="plaqflagcd"/>
- <Column id="codonnm"/>
- <Column id="codonflag"/>
- <Column id="codonflag2"/>
- <Column id="codoncnts"/>
- <Column id="patflag2"/>
- <Column id="dngrcascd"/>
- <Column id="dngrcasremcnts"/>
- <Column id="infcnts"/>
- <Column id="matrno"/>
- <Column id="fstdiagdd"/>
- <Column id="cnfmtestinstnm"/>
- <Column id="cnfmtestinstcd"/>
- <Column id="dethcascd"/>
- <Column id="dethdd"/>
- <Column id="spckindcd"/>
- <Column id="sympremcnts"/>
- <Column id="estminfcpathremcnts"/>
- <Column id="tmpcol1"/>
- <Column id="tmpcol2"/>
- <Column id="tmpcol21"/>
- <Column id="tmpcol22"/>
- <Column id="tmpcol23"/>
- <Column id="tmpcol3"/>
- <Column id="etcnts1"/>
- <Column id="etcnts2"/>
- <Column id="etcnts3"/>
- <Column id="lglykindcd"/>
- <Column id="relyn"/>
- <Column id="testrslt1"/>
- <Column id="testrslt2"/>
- <Column id="brthdd"/>
- <Column id="tmpcol1"/>
- <Column id="tmpcol2"/>
- <Column id="tmpcol3"/>
- <Column id="symp"/>
- <Column id="sympremcnts"/>
- <Column id="estminfcpath"/>
- <Column id="estminfcareacd"/>
- <Column id="estminfcareanaticd"/>
- <Column id="stayterm"/>
- <Column id="staytermday"/>
- <Column id="tisstestlag"/>
- <Column id="etcnts1"/>
- <Column id="etcnts2"/>
- <Column id="etcnts3"/>
- <Column id="crbrfldtestcnts"/>
- <Column id="testcnts1"/>
- <Column id="testcnts2"/>
- <Column id="testcnts3"/>
- <Column id="testcnts4"/>
- <Column id="testcnts5"/>
- <Column id="testcnts6"/>
- <Column id="lasthistyn"/>
- <Column id="infcfocus"/>
- <Column id="infcfocusetc"/>
- <Column id="antimicsentest"/>
- <Column id="antimicsentest_1"/>
- <Column id="antimicsentest_2"/>
- <Column id="antimicsentest_3"/>
- <Column id="antimicsentest_4"/>
- <Column id="antimicsentest_5"/>
- <Column id="antimicsentest1"/>
- <Column id="antimicsentest1_1"/>
- <Column id="antimicsentest1_2"/>
- <Column id="antimicsentest1_3"/>
- <Column id="antimicsentest2"/>
- <Column id="antimicsentest2_1"/>
- <Column id="antimicsentest2_2"/>
- <Column id="antimicsentestetc"/>
- <Column id="spckindetc"/>
- <Column id="spccolldd"/>
- <Column id="spcbcno"/>
- <Column id="spcsepdd"/>
- <Column id="spimipenemval1"/>
- <Column id="spimipenemval2"/>
- <Column id="spmeropenemval1"/>
- <Column id="spmeropenemval2"/>
- <Column id="spertapenemval1"/>
- <Column id="spertapenemval2"/>
- <Column id="spetcnm"/>
- <Column id="spetcnmval1"/>
- <Column id="spetcnmval2"/>
- <Column id="micimipenemval1"/>
- <Column id="micimipenemval2"/>
- <Column id="micmeropenemval1"/>
- <Column id="micmeropenemval2"/>
- <Column id="micertapenemval1"/>
- <Column id="micertapenemval2"/>
- <Column id="micetcnm"/>
- <Column id="micetcnmval1"/>
- <Column id="micetcnmval2"/>
- <Column id="crebreakenzyme"/>
- <Column id="crebreakenzymeetc"/>
- <Column id="cresepavirus"/>
- <Column id="cresepavirusetc"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_reptdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="reptdt" type="STRING" size="256"/>
- <Column id="reptyn" type="STRING" size="256"/>
- <Column id="chgyn" type="STRING" size="256"/>
- <Column id="prt_reptdt" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_diagcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item3" compid="grp_main.opt_rgstno1" propid="value" datasetid="ds_cngntlsyphsmmrsltreptlist" columnid="rgstno"/>
- <BindItem id="item2" compid="grp_main.opt_age" propid="value" datasetid="ds_cngntlsyphsmmrsltreptlist" columnid="brthdd"/>
- <BindItem id="item1" compid="grp_main.opt_sex" propid="value" datasetid="ds_cngntlsyphsmmrsltreptlist" columnid="sexflag"/>
- <BindItem id="item0" compid="grp_main.opt_nm" propid="value" datasetid="ds_cngntlsyphsmmrsltreptlist" columnid="patnm"/>
- <BindItem id="item4" compid="grp_main.opt_rgstno2" propid="value" datasetid="ds_cngntlsyphsmmrsltreptlist" columnid="rgstno2"/>
- <BindItem id="item5" compid="grp_main.ipt_diagdd" propid="value" datasetid="ds_cngntlsyphsmmrsltreptlist" columnid="diagdd"/>
- <BindItem id="item6" compid="grp_main.ipt_procernm" propid="value" datasetid="ds_cngntlsyphsmmrsltreptlist" columnid="procernm"/>
- <BindItem id="item7" compid="grp_main.rdo_diagmthd" propid="value" datasetid="ds_cngntlsyphsmmrsltreptlist" columnid="diagmthd"/>
- <BindItem id="item8" compid="grp_main.ipt_diagmthdetc" propid="value" datasetid="ds_cngntlsyphsmmrsltreptlist" columnid="diagmthdcnts"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-27
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-27 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // xjs Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "com_basiccodexp::ZBC001.xjs";
- include "com_commodulexp::SMZFS00501.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var strRegtdt = "";
- var Curstate;
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument :
- *
- * Description : 초기화 함수
- ****************************************************************************************/
- function fInit() {
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"state","");
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"seqno","");
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"wrtedt","");
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"diagdd","");
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"procernm","");
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"diagmthd","");
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"diagmthdcnts","");
- grp_main.ipt_diagmthdetc.enable = false;
- }
- /****************************************************************************************
- * Argument :
- *
- * Description : 화면 셋팅//신고대상자조회화면에서 state="S" 일 때, 입력가능여부 처리
- ****************************************************************************************/
- function fChgReptDisable(result){
- if( frmf_isPopup() ){
- var strState = this.getOwnerFrame().LEGALINFECT_state;
- var menuParam = this.getOwnerFrame().LEGALINFECT_menuparam;
- }else {
- var strState = "I";
- }
-
- //(start) 수정 상태 셋팅 추가, 수정 및 삭제를 가능하도록 하기 위함 (2009.11.03 JJE)
- var chkWrtedt = ds_temp_reptdtinfo.getColumn(0,"reptdt");
- var chkReptdt = ds_temp_reptdtinfo.getColumn(0,"prt_reptdt");
-
- if(!utlf_isNull(chkWrtedt)) chkWrtedt = chkWrtedt.substring(0, 8);
- if(!utlf_isNull(chkReptdt)) chkReptdt = chkReptdt.substring(0, 8);
- if(!utlf_isNull(chkWrtedt) && chkWrtedt != "99991231" && !utlf_isNull(chkReptdt) && chkReptdt == "99991231" && utlf_isNull(strState)){
- var strState = "U"; //작성은 됐고, 출력(신고)는 안한 상태
- }
- //(end) 수정 상태 셋팅 끝
-
- //100622 진료 처방저장 시(작성은 됐고, 출력(신고)는 안한 상태 와 상관없음) -- 정리 필요
- if (opener.frmf_getParameter("PrcpLglyDis") != null && opener.frmf_getParameter("PrcpLglyDis") == "PrcpLglyDis" ) strState = "I";
-
- if(frmf_isPopup() && strState == "U" ){
- //@@
- if(result == "6"){
- grp_main.enable = true;
- grp_btn.btn_save.enable = true; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
- grp_btn.btn_init.enable = true; //추가 2009.11.13 JJE
- grp_btn.btn_cncl.enable = false;
- fInit();
- }else{
- grp_main.enable = false;
- grp_btn.btn_save.enable = false;
- grp_btn.btn_init.enable = false; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
- grp_btn.btn_cncl.enable = true; //추가 2009.11.13 JJE
- }
- return;
- }else if(frmf_isPopup() && strState == "S" ){
- if(menuParam != "" && !utlf_isNull(menuParam)){
- //진료메뉴에서 호출시.
- if( this.getOwnerFrame().LEGALINFECT_DisabledChk =="Y"){ //삭제된 신고서
- grp_main.enable = false;
- grp_btn.btn_save.enable = false;
- grp_btn.btn_init.enable = false;
- grp_btn.btn_cncl.enable = false;
- }else{
- grp_main.enable = true;
- grp_btn.btn_save.enable = true;
- grp_btn.btn_init.enable = true;
- grp_btn.btn_cncl.enable = true;
- }
- }else{
- //진료와 감염관리실 이외의 사용자일 경우 삭제버튼 불활성화 않음.
- if( this.getOwnerFrame().LEGALINFECT_LglyDeptChk == "N"){
- grp_btn.btn_cncl.enable=false;
- }else{
- grp_btn.btn_cncl.enable=true;
- }
- grp_main.enable = false;
- //grp_btn.disabled = true;
- grp_btn.btn_save.enable = false; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
- grp_btn.btn_init.enable = false; //추가 2009.11.13 JJE
- }
- return;
- }else {
- if(result == "6"){ //수정모드, 신고대상자조회에서 오픈모드가 아닐 경우... ex:최초..
- grp_main.enable = true;
- grp_btn.btn_save.enable = true; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
- grp_btn.btn_init.enable = true; //추가 2009.11.13 JJE
- grp_btn.btn_cncl.enable = false;
- fInit();
- }else{
- grp_main.enable = false;
- grp_btn.btn_save.enable = false; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
- grp_btn.btn_init.enable = false; //추가 2009.11.13 JJE
- grp_btn.btn_cncl.enable = true;
- }
- return;
- }
-
- if( utlf_isNull(ds_cngntlsyphsmmrsltreptlist.getColumn(0,"pid"))){
- grp_main.enable = false;
- grp_btn.enable = false;
- }
- }
- /****************************************************************************************
- * Argument :
- *
- * Description : 기신고서가 있는지 check
- ****************************************************************************************/
- function fChkReptYN() {
-
- var diagList = ds_temp_diagcdlist.rowcount;
- var diagcd = "";
- var statcd = "";
- var status = "";
-
- if(diagList > 0 ) {
- for(var i=0 ; i< diagList; i++) {
- status = ds_temp_diagcdlist.getColumn(i,"status");
- if(status == "I" || status == "U" || status == "-") {
- diagcd += ds_temp_diagcdlist.getColumn(i,"diagcd").substr(0,4) + "▦";
- statcd += ds_temp_diagcdlist.getColumn(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/cngntlsyphsmmrsltreptinfo/cngntlsyphsmmrsltreptlist/pid"));
- // model.makeValue("/root/send/reqdata/reptflag", "04");
- }
- }
- //=======================================================================================
- // Transaction Callback
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : 01. strSvcID
- * 02. nErrorCode
- * 03. strErrorMsg
- * Description : cbf_TXASI01901 콜백함수
- ****************************************************************************************/
- // function cbf_TXASI01901_02(strSvcID, nErrorCode, strErrorMsg){
- // //에러 처리
- // if(nErrorCode == 0){
- // var sInDsName = dsf_createDsRow("in_ds_search"
- // , [{col: "pid", val: ds_cngntlsyphsmmrsltreptlist.getColumn(0,"pid")}
- // , {col: "reptflag", val: ds_cngntlsyphsmmrsltreptlist.getColumn(0,"reptflag")}
- // ]);
- // //ds_grid_grd_limantibiouspatref.clearData();
- // tranf_submit({
- // id: "TRASI01502"
- // , service: "infcmngtapp.LglyDisMngt"
- // , method: "reqGetReptdtInfo"
- // , inds : "req="+sInDsName
- // , outds: "ds_temp_reptdtinfo=reptdtinfo"
- // , callback: "cbf_TRASI01502_2"
- // , async: false
- // });
- // }
- // }
- /****************************************************************************************
- * Argument : 01. strSvcID
- * 02. nErrorCode
- * 03. strErrorMsg
- * Description : cbf_TRASI01502_2 콜백함수
- ****************************************************************************************/
- function cbf_TXASI01901_02(strSvcID, nErrorCode, strErrorMsg){
- //에러 처리
- if(nErrorCode == 0){
- //if( utlf_isNull(ds_temp_reptdtinfo.getColumn(0,"reptdt")) ){
- sysf_messageBox("삭제" ,"I001");
- //}
- }
- }
- /****************************************************************************************
- * Argument : 01. strSvcID
- * 02. nErrorCode
- * 03. strErrorMsg
- * Description : cbf_TRASI01501 콜백함수
- ****************************************************************************************/
- function cbf_TRASI01501(strSvcID, nErrorCode, strErrorMsg){
- if(nErrorCode == 0){
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"patnm",ds_temp_info.getColumn(0,"patnm"));
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"sexflag",ds_temp_info.getColumn(0,"sexflag"));
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"age",ds_temp_info.getColumn(0,"age"));
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"rgstno",ds_temp_info.getColumn(0,"rgstno"));
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"rgstno2",ds_temp_info.getColumn(0,"rgstno2"));
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"diagdd",ds_temp_info.getColumn(0,"diagdd"));
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"procernm",ds_temp_info.getColumn(0,"procernm"));
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"diagmthd",ds_temp_info.getColumn(0,"diagmthd"));
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"diagmthdcnts",ds_temp_info.getColumn(0,"diagmthdetc"));
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"brthdd",ds_temp_info.getColumn(0,"brthdd"));
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"wrtedt",ds_temp_info.getColumn(0,"wrtedt"));
- }
- }
- /****************************************************************************************
- * Argument : 01. strSvcID
- * 02. nErrorCode
- * 03. strErrorMsg
- * Description : cbf_TRASI01502 콜백함수
- ****************************************************************************************/
- function cbf_TRASI01502(strSvcID, nErrorCode, strErrorMsg){
- if(nErrorCode == 0){
- strRegtdt = ds_temp_reptdtinfo.getColumn(0,"reptdt");
- }
- }
- /****************************************************************************************
- * Argument : 01. strSvcID
- * 02. nErrorCode
- * 03. strErrorMsg
- * Description : cbf_TXASI01901_2 콜백함수
- ****************************************************************************************/
- function cbf_TXASI01901(strSvcID, nErrorCode, strErrorMsg){
- //에러 처리
- if(nErrorCode == 0){
- //model.copyNode("/root/main/cngntlsyphsmmrsltreptinfo/cngntlsyphsmmrsltreptlist", "/root/main/getlglydisinfo/info");
- if(Curstate == "I"){
- sysf_messageBox("저장되었습니다","I");
- }else if (Curstate == "U"){
- sysf_messageBox("수정되었습니다.","I");
- }
- this.close();
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : SPASI01900
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SPASI01900_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
-
- // 공통코드를 조회한다.
-
- appf_getCodeList([{dsNm: "ds_init_A0136", cdGrpId: "A0136"}
- ], true);
-
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"reptflag","04");
-
- var pid = "";
-
- var iDate = new Date();
- var strYearCal = "";
-
- var pamInfoCvs = sysf_getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
- if(frmf_isPopup() && !utlf_isNull(this.getOwnerFrame().LEGALINFECT_pid)){
-
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"pid", this.getOwnerFrame().LEGALINFECT_pid );
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"indd", this.getOwnerFrame().LEGALINFECT_indd );
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"psnflag", this.getOwnerFrame().LEGALINFECT_psnflag );
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"wrtedt", this.getOwnerFrame().objLEGALINFECT_wrtedt );
- }else if( !utlf_isNull(pamInfoCvs) ){ //cvs가 ""이 아닌 경우에만 처리함.
- ds_temp_paminfo.loadCSV(pamInfoCvs);
- var ioflag = ds_temp_paminfo.getColumn(0,"ioflag");
- if(ioflag == "I" || ioflag == "E"){
- pid = ds_temp_paminfo.getColumn(0,"pid");
- indd = ds_temp_paminfo.getColumn(0,"indd");
- cretno = ds_temp_paminfo.getColumn(0,"cretno");
-
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"pid",pid);
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"indd",indd);
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"cretno",cretno);
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"psnflag",ioflag);
- }else if(ioflag == "O"){
- pid = ds_temp_paminfo.getColumn(0,"pid");
- orddd = ds_temp_paminfo.getColumn(0,"orddd");
- cretno = ds_temp_paminfo.getColumn(0,"cretno");
-
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"pid",pid);
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"indd",orddd);
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"cretno",cretno);
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"psnflag",ioflag);
- }
- }
- if( !utlf_isNull(ds_cngntlsyphsmmrsltreptlist.getColumn(0,"pid")) ){
- //@@
- tranf_submit({
- id: "TRASI01501"
- , service: "infcmngtapp.LglyDisMngt"
- , method: "reqGetLglyDisPatInfo"
- , inds : "req=ds_cngntlsyphsmmrsltreptlist"
- , outds: "ds_temp_info=info"
- , callback: "cbf_TRASI01501"
- , async: false
- });
-
- //@@
- var result = 1;
- if(!utlf_isNull(opener.frmf_getParameter("PrcpLglyDis"))){
- //처방에서 호출한 경우 상병체크하여 초기화
- fInit();
- result=6;
- }
- if(frmf_isPopup() && ( this.getOwnerFrame().LEGALINFECT_state == "U" || this.getOwnerFrame().LEGALINFECT_state == "S" || !utlf_isNull(opener.frmf_getParameter("PrcpLglyDis")) )){
-
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"state",this.getOwnerFrame().LEGALINFECT_state);
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"wrtedt",this.getOwnerFrame().LEGALINFECT_wrtedt);
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"seqno",this.getOwnerFrame().LEGALINFECT_seqno);
- ds_temp_reptdtinfo.addRow(0);
- ds_temp_reptdtinfo.setColumn(0,"reptdt", this.getOwnerFrame().LEGALINFECT_reptdt );
- ds_temp_reptdtinfo.setColumn(0,"reptyn", this.getOwnerFrame().LEGALINFECT_reptyn );
- ds_temp_reptdtinfo.setColumn(0,"chgyn", this.getOwnerFrame().LEGALINFECT_chgyn );
- ds_temp_reptdtinfo.setColumn(0,"prt_reptdt", this.getOwnerFrame().LEGALINFECT_prt_reptdt );
-
- }else if(frmf_isPopup() && ( this.getOwnerFrame().LEGALINFECT_state != "U" || utlf_isNull( opener.frmf_getParameter("PrcpLglyDis") )) ){
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"state", this.getOwnerFrame().LEGALINFECT_state );
- strRegtdt = "";
- var sInDsName = dsf_createDsRow("in_ds_search"
- , [{col: "pid", val: ds_cngntlsyphsmmrsltreptlist.getColumn(0,"pid")}
- , {col: "reptflag", val: ds_cngntlsyphsmmrsltreptlist.getColumn(0,"reptflag")}
- ]);
- //ds_grid_grd_limantibiouspatref.clearData();
- tranf_submit({
- id: "TRASI01502"
- , service: "infcmngtapp.LglyDisMngt"
- , method: "reqGetReptdtInfo"
- , inds : "req="+sInDsName
- , outds: "ds_temp_reptdtinfo=reptdtinfo"
- , callback: "cbf_TRASI01502"
- , async: false
- });
-
- if( !utlf_isNull(strRegtdt) ){
- var today = utlf_getCurrentDate();
- var temp = utlf_str2Date(utlf_getCurrentDate()).getAddDate(-1, "Y");
- strYearCal = utlf_getRemoveFormatter(utlf_date2Str(temp));
- }
-
-
- if( ds_temp_reptdtinfo.getColumn(0,"reptyn") != "" && ds_temp_reptdtinfo.getColumn(0,"reptyn") != null ){ //100616 이미 신고내용이 존재할 경우(기간 고려X - 기간 : Y, N)
- //messageBox(" 신고주기는 12개월이므로 재신고가 불가합니다 \n 해당 환자의 신고일은 " + strRegtdt ,"E008");
- //@@재호출 메시지 내용 변경
- //result = messageBox("신고주기는 12개월이므로 재신고가 불가합니다 \n 해당 환자의 신고일은 " + strRegtdt+ "입니다. \n \n수정", "S001");
- result = sysf_messageBox(strRegtdt.substring(0,4)+"년 "+strRegtdt.substring(4,6)+"월 "+strRegtdt.substring(6,8)+"일 "
- + "선천성매독 (으)로 전염병이 신고되어 있어 \n 신규 입력이 아니면 자료가 중복됩니다. \n 그래도 ", "Q003");
- //model.close();
- //return;
- } else { //신고 내용이 없다면
- result=6;
- }
-
- if( ds_temp_reptdtinfo.getColumn(0,"chgyn") == 'Y' ){
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"state","U");
- fChkReptYN();
- // if(model.getValue("/root/temp/tmplist/tmplist/wc") == "Y") {
- // model.close();
- // return;
- // }
- }
- }
- fChgReptDisable(result);
- }else{
- grp_btn.enable = false;
- }
- grp_main.ipt_diagmthdetc.enable = false;
- grp_main.ipt_diagdd.setFocus();
- }
- //
- // /****************************************************************************************
- // * Components : Button
- // * Components ID : btn_save
- // * Event : onclick
- // * Argument : 01.obj : Button
- // * : 02.e : ClickEventInfo
- // * Description : 신고를 저장하거나 수정한다.
- // ****************************************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if( utlf_isNull(ds_cngntlsyphsmmrsltreptlist.getColumn(0,"diagdd")) ){
- sysf_messageBox("진단일은","I003");
- return;
- }
-
- if((ds_cngntlsyphsmmrsltreptlist.getColumn(0,"diagmthd")=="")){
- sysf_messageBox("진단방법은 ","I003");
- return;
- }
-
- //var a = model.getValue("/root/main/cngntlsyphsmmrsltreptinfo/cngntlsyphsmmrsltreptlist/wrtedt");
- //alert(a);
-
- if( utlf_isNull(ds_cngntlsyphsmmrsltreptlist.getColumn(0,"wrtedt")) ){
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"wrtedt", utlf_getCurrentDate() +""+ utlf_getCurrentTime());
- ds_cngntlsyphsmmrsltreptlist.addColumn("reptdt","string");
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"reptdt",utlf_getCurrentDate() +""+ utlf_getCurrentTime());
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"state", "I");
- } else {
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"state", "U");
- }
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"orddeptcd", ds_temp_paminfo.getColumn(0,"orddeptcd"));
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"orddeptcd", "04");
- //model.copyNode("/root/send/savedata", "/root/main/cngntlsyphsmmrsltreptinfo/cngntlsyphsmmrsltreptlist");
- //@@
- Curstate = ds_cngntlsyphsmmrsltreptlist.getColumn(0,"state");
-
- tranf_submit({
- id: "TXASI01901"
- , service: "infcmngtapp.LglyDisMngt"
- , method: "reqExeCngntlSyphSmMRsltReptList"
- , inds : "req=ds_cngntlsyphsmmrsltreptlist"
- , outds: "ds_temp_reptdtinfo=info"
- , callback: "cbf_TXASI01901"
- , async: false
- });
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_init
- * Event : onclick
- * Argument : 01.obj : Button
- * : 02.e : ClickEventInfo
- * Description : 초기화 시킨다
- ****************************************************************************************/
- function btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- fInit();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_cncl
- * Event : onclick
- * Argument : 01.obj : Button
- * : 02.e : ClickEventInfo
- * Description : 기존에 신고된 것을 삭제한다.
- ****************************************************************************************/
- function btn_cncl_onclick(obj:Button, e:ClickEventInfo)
- {
- var prt_reptdt = ds_temp_reptdtinfo.getColumn(0,"prt_reptdt");
- if(prt_reptdt.toString().substring(0,8) != "99991231" ){ //작성일자가 아닌 신고일자로 체크하도록 수정 (2009.11.13 JJE)
- sysf_messageBox(" 이미 신고된 건은 삭제 " ,"E001");
- return;
- }
-
- var result = sysf_messageBox("","Q001"); //삭제하시겠습니까?
-
- if (result == "7"){
- sysf_messageBox("삭제가 취소되었습니다","I");
- return;
- }else{
- ds_temp_reptdtinfo.addRow(0);
- ds_temp_reptdtinfo.setColumn(0,"reptdt", this.getOwnerFrame().LEGALINFECT_reptdt );
- ds_temp_reptdtinfo.setColumn(0,"reptyn", this.getOwnerFrame().LEGALINFECT_reptyn );
- ds_temp_reptdtinfo.setColumn(0,"chgyn", this.getOwnerFrame().LEGALINFECT_chgyn );
- ds_temp_reptdtinfo.setColumn(0,"prt_reptdt", this.getOwnerFrame().LEGALINFECT_prt_reptdt );
-
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"state","D");
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"wrtedt", ds_temp_info.getColumn(0,"wrtedt"));
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"seqno", ds_temp_info.getColumn(0,"seqno"));
- ds_cngntlsyphsmmrsltreptlist.setColumn(0,"reptflag", ds_temp_info.getColumn(0,"reptflag"));
- //model.copyNode("/root/send/savedata","/root/main/cngntlsyphsmmrsltreptinfo/cngntlsyphsmmrsltreptlist");
- tranf_submit({
- id: "TXASI01901"
- , service: "infcmngtapp.LglyDisMngt"
- , method: "reqExeCngntlSyphSmMRsltReptList"
- , inds : "req=ds_cngntlsyphsmmrsltreptlist"
- , outds: "ds_temp_reptdtinfo=info"
- , callback: "cbf_TXASI01901_02"
- , async: false
- });
- this.close();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : rdo_diagmthd
- * Event : onitemchanged
- * Argument : 01.obj : Radio
- * : 02.e : ItemChangeEventInfo
- * Description : 기타를 누르면 input창이 활성화된다.
- ****************************************************************************************/
- function grp_main_rdo_diagmthd_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if( obj.value == 99 ){
- grp_main.ipt_diagmthdetc.enable = true;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : rdo_diagmthd
- * Event : onitemchanged
- * Argument : 01.obj : Radio
- * : 02.e : ItemChangeEventInfo
- * Description : 날짜를 다 입력하면 자동적으로 다음 컴포넌트로 넘어간다
- ****************************************************************************************/
- function grp_main_ipt_diagdd_ontextchanged(obj:Calendar, e:TextChangedEventInfo)
- {
- var pos = obj.getCaretPos();
- if(pos == 10)
- {
- var nextComponent = getNextComponent(obj);
- nextComponent.setFocus();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : Button00
- * Event : onclick
- * Argument : 01.obj : Button
- * : 02.e : ClickEventInfo
- * Description : 화면을 닫는다.
- ****************************************************************************************/
- function Button00_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|