123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858 |
- <?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>
- <rareobstrgst>
- <rareobstrgst>
- <flag1/>
- <flag2/>
- <status/>
- <genrdd/>
- <genrno/>
- <histno/>
- <instcd/>
- <histcd/>
- <anohosprgstflag/>
- <genrflagcd/>
- <pid/>
- <insukind/>
- <rareobstcnfmdd/>
- <orddeptcd/>
- <orddrid/>
- <rareobstno/>
- <rareobstfromdd/>
- <rareobsttodd/>
- <genrorddd/>
- <genrcretno/>
- <ediflag/>
- <editretdd/>
- <editrettm/>
- <maindiagcd/>
- <prntyn/>
- <signyn/>
- <rcptremfact/>
- <maindiagnm/>
- <zipcdhead/>
- <zipcdfoot/>
- <seqno/>
- <infromdd/>
- <intodd/>
- <acptplcebaseaddr/>
- <acptplceaddr/>
- <acptplcetel/>
- <acptplcempphon/>
- <hngnm/>
- <sex/>
- <brthdd/>
- <addr/>
- <roomcd/>
- <remfact/>
- <ioflag/>
- <lastupdttrnm/>
- <mig/>
- <maincd/>
- <report/>
- </rareobstrgst>
- </rareobstrgst>
- <rgstinfo>
- <rareobstrgstlist>
- <rareobstrgstlist>
- <status/>
- <genrdd/>
- <genrno/>
- <histno/>
- <instcd/>
- <histcd/>
- <anohosprgstflag/>
- <genrflagcd/>
- <pid/>
- <insukind/>
- <rareobstcnfmdd/>
- <orddeptcd/>
- <orddrid/>
- <rareobstno/>
- <rareobstfromdd/>
- <rareobsttodd/>
- <genrorddd/>
- <genrcretno/>
- <ediflag/>
- <editretdd/>
- <editrettm/>
- <maindiagcd/>
- <prntyn/>
- <signyn/>
- <rcptremfact/>
- <maindiagnm/>
- <zipcdhead/>
- <zipcdfoot/>
- <seqno/>
- <infromdd/>
- <intodd/>
- <acptplcebaseaddr/>
- <acptplceaddr/>
- <acptplcetel/>
- <acptplcempphon/>
- <flag1/>
- <flag2/>
- <remfact/>
- <ioflag/>
- <lastupdttrnm/>
- <maincd/>
- <mig/>
- <report/>
- </rareobstrgstlist>
- </rareobstrgstlist>
- <rareddinfo/>
- <rareobstdelinfo/>
- </rgstinfo>
- <patinfo>
- <patinfo>
- <flag1/>
- <flag2/>
- <pid/>
- <hngnm/>
- <sex/>
- <brthdd/>
- <addr/>
- <indd/>
- <dschdd/>
- <insukind/>
- <roomcd/>
- <acptplcebaseaddr/>
- <acptplceaddr/>
- <acptplcetel/>
- <acptplcempphon/>
- <zipcdhead/>
- <zipcdfoot/>
- <seqno/>
- <rcptremfact/>
- </patinfo>
- </patinfo>
- <hardno>
- <trgtcd/>
- </hardno>
- </main>
- <send>
- <reqdata/>
- <flag/>
- </send>
- <init>
- <P0008/>
- <insukind/>
- <genrflagcd/>
- <orddept>
- <dept>
- <deptcd>-</deptcd>
- <depthngnm>전체</depthngnm>
- </dept>
- </orddept>
- </init>
- <temp>
- <terminfo>
- <tplinfo/>
- <icdo3info/>
- <icd10info/>
- <selectdiaginfo>
- <selectdiaglist/>
- </selectdiaginfo>
- </terminfo>
- <rareobstcalc/>
- <apchlist/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if ( checkOpener() ) {
- model.setValue("/root/main/rareobstrgst/rareobstrgst/pid", opener.javascript.getParameter("SPMRD02100_pid"));
- model.setValue("/root/init/genrflagcd", opener.javascript.getParameter("SPMRD02100_genrflagcd"));
-
- if (opener.javascript.getParameter("SPMRD02100_pid") == ""){
- messageBox("등록번호가 입력되지", "E007" );
- model.setFocus("ipt_pid");
- } else {
- submit("TRMRD02104", false);
- btn_search.dispatch("DOMActivate");
- model.setFocus("ipt_rareobstfromdd");
- }
- }else{
- model.setFocus("ipt_pid");
- }
- model.setValue("/root/main/rareobstrgst/rareobstrgst/status", "I");
-
- zbcfGetCodeList(new Array("P0008"), new Array("/root/init/P0008"));
- copyNodesetType("/root/init/insukind", "/root/init/P0008/P0008[cdid >=11 and cdid<=22]", "replace"); //희귀난치 보험만 적용 20090701 희귀난치 의료급여까지 적용 20101124 이은영
- // if ( getUserInfo("dutplcecd").getTrim() == "4040300000" || getUserInfo("dutplcecd").getTrim() == "4040304000" ||
- // getUserInfo("dutplcecd").getTrim() == "4041000000" || getUserInfo("dutplcecd").getTrim() == "4041002000" ||
- // getUserInfo("dutplcecd").getTrim() == "4040307010" || getUserInfo("dutplcecd").getTrim() == "4040307020" ||
- // getUserInfo("dutplcecd").getTrim() == "4100907000" || getUserInfo("dutplcecd").getTrim() == "2280211000" ||
- // getUserInfo("dutplcecd").getTrim() == "4040400000" || getUserInfo("dutplcecd").getTrim() == "4040500000") {
- // btn_insert.disabled = false; //입력
- // btn_update.disabled = false; //수정
- // btn_del.disabled = false; //삭제
- // } else {
- // btn_insert.disabled= true;
- // btn_update.disabled = true;
- // btn_del.disabled = true;
- // }
- submit("TRMRD02106");
-
- //if ( getUserInfo("dutplcecd").getTrim() == "3230000000") {
- if(model.getValue("/root/main/hardno/trgtcd") != ""){
- btn_insert.disabled = true; //입력
- btn_update.disabled = true; //수정
- btn_del.disabled = true; //삭제
- } else {
- btn_insert.disabled= false;
- btn_update.disabled = false;
- btn_del.disabled = false;
- }
-
- btn_small.visible = false;
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101" method="post" mediatype="application/x-www-form-urlencoded"/>
- <submission id="TRMRD02101" ref="/root/main/rareobstrgst/rareobstrgst/pid" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/rgstinfo"/>
- <submission id="TRMRD02103" ref="/root/main/rareobstrgst/rareobstrgst" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/temp/apchlist"/>
- <submission id="TXMRD02101" ref="/root/main/rareobstrgst/rareobstrgst" method="post" mediatype="application/x-www-form-urlencoded"/>
- <submission id="TRMRD02102" ref="/root/main/rareobstrgst/rareobstrgst" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/rgstinfo"/>
- <submission id="TRMRD02104" ref="/root/main/rareobstrgst/rareobstrgst/pid" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/rareobstrgst/rareobstrgst"/>
- <submission id="TRMRD02105" ref="/root/main/rareobstrgst/rareobstrgst" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/rgstinfo/rareobstdelinfo"/>
- <submission id="TRMRD02106" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/hardno"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- function fSrchTerm(flag, code, ref, resref, nmref){
- if(flag == "toph"){
- //model.makeValue("/root/send/reqdata/flag", "toph");
- //model.makeValue("/root/send/reqdata/tophcd", model.getValue(ref));
- //submit("TRMRD00104");
- //copyNodeset(resref, "/root/temp/terminfo/tplinfo");
- model.removeNodeset("/root/temp/terminfo/tplinfo");
- setParameter("SPMRT01500_param_nodepath", "/root/temp/terminfo/tplinfo");
- setParameter("SPMRT01500_SEARCHDATA", code);
- setParameter("SPMRT01500_FLAG", "3");
- modal("SPMRT01500");
- if(getParameter("SPMRT01500_FLAG") == ""){
- return;
- }
- model.setValue(ref, model.getValue("/root/temp/terminfo/tplinfo/tophlgcd"));
- model.setValue(nmref, model.getValue("/root/temp/terminfo/tplinfo/engnm"));
- model.setValue(resref, model.getValue("/root/temp/terminfo/tplinfo/seqno"));
- } else if(flag == "morph1"){
- //model.makeValue("/root/send/reqdata/flag", "morph");
- //model.makeValue("/root/send/reqdata/morphcd", model.getValue(ref));
- //submit("TRMRD00104");
- //copyNodeset(resref, "/root/temp/terminfo/icdo3info")
- model.removeNodeset("/root/temp/terminfo/icdo3info");
- setParameter("SPMRT01500_param_nodepath", "/root/temp/terminfo/icdo3info");
- setParameter("SPMRT01500_SEARCHDATA", code);
- setParameter("SPMRT01500_FLAG", "2");
- modal("SPMRT01500");
- if(getParameter("SPMRT01500_FLAG") == ""){
- return;
- }
- model.setValue(ref, model.getValue("/root/temp/terminfo/icdo3info/histlgccd"));
- model.setValue(nmref, model.getValue("/root/temp/terminfo/icdo3info/engnm"));
- model.setValue(resref, model.getValue("/root/temp/terminfo/icdo3info/seqno"));
- } else if(flag == "morph2"){
- //model.makeValue("/root/send/reqdata/flag", "morph");
- //model.makeValue("/root/send/reqdata/morphcd", model.getValue(ref));
- //submit("TRMRD00104");
- //copyNodeset(resref, "/root/temp/terminfo/icdo3info")
- //model.resetInstanceNode("/root/temp/terminfo/icdo3info");
- model.removeNodeset("/root/temp/terminfo/icdo3info");
- setParameter("SPMRT01500_param_nodepath", "/root/temp/terminfo/icdo3info");
- setParameter("SPMRT01500_SEARCHDATA", code);
- setParameter("SPMRT01500_FLAG", "2");
- modal("SPMRT01500");
- if(getParameter("SPMRT01500_FLAG") == ""){
- return;
- }
- model.setValue(ref, model.getValue("/root/temp/terminfo/icdo3info/histlgccd"));
- model.setValue(nmref, model.getValue("/root/temp/terminfo/icdo3info/engnm"));
- model.setValue(resref, model.getValue("/root/temp/terminfo/icdo3info/seqno"));
- }else if(flag == "icd10"){
- //model.makeValue("/root/send/reqdata/flag", "icd10");
- //model.makeValue("/root/send/reqdata/icd10cd", code);
- //submit("TRMRD00104");
- //model.makeValue(resref, model.getValue("/root/temp/terminfo/icd10info/icd10engnm"));
- model.removeNodeset("/root/temp/terminfo/icd10info");
- setParameter("SPMRT01500_param_nodepath", "/root/temp/terminfo/icd10info");
- setParameter("SPMRT01500_SEARCHDATA", code);
- setParameter("SPMRT01500_FLAG", "1");
- modal("SPMRT01500");
- if(getParameter("SPMRT01500_FLAG") == ""){
- return;
- }
- model.setValue(ref, model.getValue("/root/temp/terminfo/icd10info/selectdiaglist/diagcd"));
- model.setValue(nmref, model.getValue("/root/temp/terminfo/icd10info/selectdiaglist/diagengnm"));
- }
- model.removeNodeset("/root/send/reqdata");
- model.refresh();
- }
-
- function fOpenTop(flag)
- {
- if (flag == "true") {
- btn_small.visible = true;
- btn_big.visible = false;
- textarea1.attribute("style") = "left:85px; top:180px; width:475px; height:200px; ";
- } else {
- btn_small.visible = false;
- btn_big.visible = true;
- textarea1.attribute("style") = "left:85px; top:180px; width:475px; height:48px; ";
- }
- }
- /**
- * @desc : Source Node의 갯수를 구한다.
- * @
- * @param : path - node path
- * @return :
- * @authur : 김선태 2007. 5. 8
- * @---------------------------------------------------
- */
- function getNodeSetCnt(path)
- {
- var insXml = model.instances(0);
- var nodeList = insXml.selectNodes(path);
- return nodeList.length;
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="600" pageheight="430" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <line id="line1" class="line_1" style="x1:0px; y1:15px; x2:560px; y2:15px; "/>
- <caption id="caption14" class="tit_2" style="left:0px; top:0px; width:152px; height:14px; vertical-align:middle; ">희귀난치환자 등록</caption>
- <caption id="caption1" class="cell_1" style="left:205px; top:25px; width:79px; height:23px; text-align:center; vertical-align:middle; ">환자명</caption>
- <caption id="caption2" class="cell_1" style="left:205px; top:50px; width:79px; height:23px; text-align:center; vertical-align:middle; ">주소</caption>
- <caption id="caption3" class="cell_1" style="left:446px; top:25px; width:49px; height:23px; text-align:center; vertical-align:middle; ">성별</caption>
- <caption id="caption13" class="cell_1" style="left:1px; top:50px; width:79px; height:23px; text-align:center; vertical-align:middle; ">생년월일</caption>
- <caption id="caption26" class="cell_1" style="left:1px; top:25px; width:79px; height:23px; text-align:center; vertical-align:middle; ">등록번호</caption>
- <caption id="caption4" class="tit_2" style="left:0px; top:84px; width:152px; height:13px; vertical-align:middle; ">희귀난치환자 등록사항</caption>
- <caption id="caption5" class="cell_1" style="left:1px; top:129px; width:79px; height:23px; text-align:center; vertical-align:middle; ">종료일자</caption>
- <caption id="caption6" class="cell_1" style="left:1px; top:104px; width:79px; height:23px; text-align:center; vertical-align:middle; ">시작일자</caption>
- <caption id="caption7" class="cell_1" style="left:295px; top:104px; width:104px; height:23px; text-align:center; vertical-align:middle; ">희귀난치등록번호</caption>
- <caption id="caption8" class="cell_1" style="left:295px; top:129px; width:104px; height:23px; text-align:center; vertical-align:middle; ">보험구분</caption>
- <caption id="caption9" class="cell_1" style="left:1px; top:154px; width:79px; height:23px; text-align:center; vertical-align:middle; ">진단상병</caption>
- <input id="input3" ref="/root/main/rareobstrgst/rareobstrgst/maindiagnm" style="left:160px; top:156px; width:400px; height:19px; "/>
- <caption id="caption10" class="tit_2" style="left:0px; top:233px; width:152px; height:13px; vertical-align:middle; ">희귀난치환자 등록내역</caption>
- <input id="input4" ref="/root/main/rareobstrgst/rareobstrgst/maincd" style="left:85px; top:156px; width:70px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- //inputEnterKey("btn_diagsrch", "DOMActivate");
- if(event.keyCode == 13){
- setInputNodeCurText();
- //var code = model.getValue("/root/main/rareobstrgst/rareobstrgst/maindiagcd");
- var code = model.getValue("/root/main/rareobstrgst/rareobstrgst/maincd");
- code = code.toUpperCase();
- var resref = "/root/main/rareobstrgst/rareobstrgst/maindiagnm";
- //var ref = "/root/main/rareobstrgst/rareobstrgst/maindiagcd";
- var ref = "/root/main/rareobstrgst/rareobstrgst/maincd";
- var nmref = "/root/main/rareobstrgst/rareobstrgst/maindiagnm";
- fSrchTerm("icd10", code, ref, resref, nmref);
-
- //model.makeValue("/root/main/rareobstinfo/rareobstinfo/maindiagcd",model.getValue("/root/main/rareobstrgst/rareobstrgst/maincd"));
- model.makeValue("/root/main/rareobstrgst/rareobstrgst/maindiagcd",model.getValue("/root/main/rareobstrgst/rareobstrgst/maincd"));
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <datagrid id="grd_rareobstrgstlist" nodeset="/root/main/rgstinfo/rareobstrgstlist/rareobstrgstlist" caption="시작일자^종료일자^희귀난치등록번호^보험구분^취소여부^진단상병^출력여부^사인여부^수납비고^상병명^환자명^성별^생년월일^주소^flag2^삭제자" colwidth="58, 58, 105, 76, 54, 68, 54, 54, 100, 100, 100, 100, 100, 100, 100, 56" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:254px; width:560px; height:171px; ">
- <col ref="rareobstfromdd"/>
- <col ref="rareobsttodd"/>
- <col ref="rareobstno"/>
- <col ref="insukind" type="combo" disabled="true">
- <choices>
- <itemset nodeset="/root/init/insukind">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="histcd" type="combo" disabled="true">
- <choices>
- <item>
- <label>등록</label>
- <value>O</value>
- </item>
- <item>
- <label>삭제</label>
- <value>H</value>
- </item>
- </choices>
- </col>
- <col ref="maindiagcd"/>
- <col ref="prntyn"/>
- <col ref="signyn" style="left:496px; top:23px; width:59px; height:23px; "/>
- <col ref="rcptremfact" visibility="hidden"/>
- <col ref="maindiagnm" visibility="hidden"/>
- <col ref="hngnm" visibility="hidden"/>
- <col ref="sex" visibility="hidden"/>
- <col ref="brthdd" visibility="hidden"/>
- <col ref="addr" visibility="hidden"/>
- <col ref="flag2" visibility="hidden"/>
- <col ref="lastupdttrnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var currow = grd_rareobstrgstlist.row;
- if( grd_rareobstrgstlist.isCell(event.target) && grd_rareobstrgstlist.row >= grd_rareobstrgstlist.fixedRows ) {
- model.copyNode("/root/main/rareobstrgst/rareobstrgst", "/root/main/rgstinfo/rareobstrgstlist/rareobstrgstlist["+currow+"]");
-
- //200810071500 원무 김은정 선생님 요청
- if(model.getValue("/root/main/rgstinfo/rareobstrgstlist/rareobstrgstlist/rareobstno") == "의뢰서작성"){
- model.setValue("/root/main/rareobstrgst/rareobstrgst/rareobstno", "-");
- }
-
- if(model.getValue("/root/main/rareobstrgst/rareobstrgst/histcd") == "H"){
- messageBox("삭제된 데이터가 ", "E005" );
- }
- model.refresh();
- }
-
- ]]>
- </script>
- </datagrid>
- <button id="btn_update" class="btn4_letter2" style="left:447px; top:77px; width:56px; height:22px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 삭제된 데이터 수정일 경우
- if(model.getValue("/root/main/rareobstrgst/rareobstrgst/histcd") == "H"){
- messageBox("삭제된 데이터는 수정할 수 ", "I004" );
- return;
- }
-
- if (model.getValue("/root/main/rareobstrgst/rareobstrgst/flag2") == "Y") {
- var ioflagcd = "I";
- } else {
- var ioflagcd = "O";
-
- model.setValue("/root/main/rareobstrgst/rareobstrgst/infromdd", "00000000");
- model.setValue("/root/main/rareobstrgst/rareobstrgst/intodd", "00000000");
- }
- //model.setValue("/root/main/rareobstrgst/rareobstrgst/pid", model.getValue("/root/main/patinfo/patinfo/pid") );
- //model.setValue("/root/main/rareobstrgst/rareobstrgst/genrflagcd", model.getValue("/root/init/genflagcd") );
- model.setValue("/root/main/rareobstrgst/rareobstrgst/genrflagcd", ioflagcd );
- model.setValue("/root/main/rareobstrgst/rareobstrgst/ioflag", ioflagcd );
- if(model.getValue("/root/main/rareobstrgst/rareobstrgst/pid") == ""){
- messageBox("등록번호가 입력되지", "E007" );
- return;
- }
- if (model.getValue("/root/main/rareobstrgst/rareobstrgst/rareobstfromdd") =="") {
- messageBox("시작일자가 입력되지", "E007" );
- return;
- }
-
- //if (model.getValue("/root/main/rareobstrgst/rareobstrgst/rareobstno") =="") {
- // messageBox("희귀난치등록번호가 입력되지", "E007" );
- // return;
- //}
-
- //희귀난치등록시 희귀난치번호가 null이거나 '-'인 경우에는 희귀난치등록이 가능하도록 요청.
- //희귀난치번호에 숫자가 들어있는 경우에는 보험구분에 따라 희귀난치자릿수를 체크할 것 - 200810071430 원무팀 김은정 선생님 요청
-
- //alert(model.getValue("/root/main/rareobstrgst/rareobstrgst/rareobstno"));
- if(model.getValue("/root/main/rareobstrgst/rareobstrgst/rareobstno") != "" && model.getValue("/root/main/rareobstrgst/rareobstrgst/rareobstno") != '-'){
- if (model.getValue("/root/main/rareobstrgst/rareobstrgst/insukind") >= "21" && model.getValue("/root/main/rareobstrgst/rareobstrgst/insukind") <= "25"
- && model.getValue("/root/main/rareobstrgst/rareobstrgst/rareobstno").length != "15") {
- messageBox("희귀난치등록번호가 정확히 입력되지", "E007" );
- model.setFocus("ipt_rareobstno");
- return;
- } else if (model.getValue("/root/main/rareobstrgst/rareobstrgst/insukind") >= "10" && model.getValue("/root/main/rareobstrgst/rareobstrgst/insukind") <= "20"
- && model.getValue("/root/main/rareobstrgst/rareobstrgst/rareobstno").length != "10") {
- messageBox("희귀난치등록번호가 정확히 입력되지", "E007" );
- model.setFocus("ipt_rareobstno");
- return;
- }
- }
-
- if (model.getValue("/root/main/rareobstrgst/rareobstrgst/insukind") =="") {
- messageBox("보험구분이 입력되지", "E007" );
- return;
- }
- if (model.getValue("/root/main/rareobstrgst/rareobstrgst/maindiagcd") =="") {
- //messageBox("진단상병이 입력되지", "E007" );
- //return;
- //model.setValue("/root/main/rareobstrgst/rareobstrgst/genrflagcd","-" );
- }
-
- //if (submit("TRMRD02103")) { // 희귀난치 시작/종료일자 비교
- //alert("값이 중복되어 저장되지 않았습니다.");
- //return;
- //} else {
- model.setValue("/root/main/rareobstrgst/rareobstrgst/status", "U");
- submit("TXMRD02101"); // Update
- if (model.getValue("/root/send/flag") != 'Y'){
- alert("수정이 완료되었습니다.");
- }
- btn_search.dispatch("DOMActivate");
- //model.resetInstanceNode("/root/main/rareobstrgst/rareobstrgst");
- model.refresh();
- //}
- //}
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn4_letter2" style="left:504px; top:77px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("해당 자료를", "Q001") == 6 ) {
- submit("TRMRD02105");
- var cnt = getNodeSetCnt("/root/main/rgstinfo/rareobstdelinfo");
-
- if (cnt > 0){
- alert("이미 삭제 처리된 자료입니다.");
- return;
- } else {
- if(model.getValue("/root/main/rareobstrgst/rareobstrgst/rcptremfact") != ""){
- model.makeValue("/root/send/flag","Y");
-
- btn_update.dispatch("DOMActivate"); //수정
-
- model.setValue("/root/main/rareobstrgst/rareobstrgst/status", "D");
- model.setValue("/root/main/rareobstrgst/rareobstrgst/pid", model.getValue("/root/main/rareobstrgst/rareobstrgst/pid") );
- model.setValue("/root/main/rareobstrgst/rareobstrgst/genrflagcd", model.getValue("/root/init/genflagcd") );
-
- if (submit("TXMRD02101")){
- alert("삭제가 완료되었습니다.");
-
- btn_search.dispatch("DOMActivate");
- //model.resetInstanceNode("/root/main/rareobstrgst/rareobstrgst");
- model.refresh();
- } else {
- alert("삭제가 취소되었습니다.");
- return;
- }
- }else{
- messageBox("삭제사유를 비고란에 ","C001");
- model.setFocus("textarea1");
- return;
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_search" class="btn1_letter2" visibility="hidden" style="left:140px; top:75px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRMRD02104");
- model.setValue("/root/main/rareobstrgst/rareobstrgst/status", "I");
-
- if(model.getValue("/root/main/rareobstrgst/rareobstrgst/flag1") == "N"){
- model.makeNode("/root/main/rareobstrgst/rareobstrgst/pid");
- messageBox("없는 환자 번호 입니다.", "E999", "");
- model.setFocus("ipt_pid");
- return;
- } else {
- //if(!submit("TRMRD02101",false)){
- submit("TRMRD02101");
- var cnt = getNodeSetCnt("/root/main/rgstinfo/rareobstrgstlist/rareobstrgstlist");
-
- //if (grd_rareobstrgstlist.rows > 0){
- if (cnt > 0) {
- model.copyNode("/root/main/rareobstrgst/rareobstrgst", "/root/main/rgstinfo/rareobstrgstlist/rareobstrgstlist[1]");
- model.refresh();
- // }
- } else {
- submit("TRMRD02104");
- }
-
- //200810071500 원무 김은정 선생님 요청
- if(model.getValue("/root/main/rareobstrgst/rareobstrgst/rareobstno") == "의뢰서작성"){
- model.setValue("/root/main/rareobstrgst/rareobstrgst/rareobstno", "-");
- }
- model.refresh();
-
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:321px; top:77px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/rgstinfo/rareobstrgstlist/rareobstrgstlist");
- model.resetInstanceNode("/root/main/patinfo/patinfo");
- model.resetInstanceNode("/root/main/rareobstrgst/rareobstrgst");
- model.setValue("/root/main/rareobstrgst/rareobstrgst/pid", model.getValue("/root/main/rareobstrgst/rareobstrgst/pid") );
- model.setValue("/root/main/rareobstrgst/rareobstrgst/status", "I" );
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_pid" ref="/root/main/rareobstrgst/rareobstrgst/pid" class="input_s_essential" autonext="false" appearance="output" style="left:82px; top:25px; width:113px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // if(event.keyCode == "13") {
- // setInputNodeCurText();
- // var pid = model.getValue("/root/main/rgstinfo/patinfo/patinfo/pid");
- // //if (model.getValue("/root/main/rgstinfo/patinfo/patinfo/pid") == ""){
- // if (pid == "") {
- // messageBox("등록번호가 입력되지", "E007" );
- // model.setFocus("ipt_pid");
- // return;
- // } else {
- // inputEnterKey("btn_search", "DOMActivate");
- // }
- // }
-
- //등록번호 입력후 바로 엔터가능 하게 수정
- if(event.keyCode == 13) {
- inputEnterKey("btn_search", "DOMActivate");
- }
-
- ]]>
- </script>
- </input>
- <output id="opt_hngnm" ref="/root/main/rareobstrgst/rareobstrgst/hngnm" class="output_fix" style="left:287px; top:26px; width:96px; height:19px; "/>
- <output id="opt_sex" ref="/root/main/rareobstrgst/rareobstrgst/sex" class="output_fix" style="left:498px; top:26px; width:62px; height:19px; "/>
- <output id="opt_brthdd" ref="/root/main/rareobstrgst/rareobstrgst/brthdd" class="output_fix" format="yyyy-mm-dd" style="left:82px; top:51px; width:114px; height:19px; "/>
- <output id="opt_addr" ref="/root/main/rareobstrgst/rareobstrgst/addr" class="output_fix" style="left:287px; top:51px; width:273px; height:19px; "/>
- <input id="ipt_rareobstfromdd" ref="/root/main/rareobstrgst/rareobstrgst/rareobstfromdd" inputtype="date" format="yyyy-mm-dd" style="left:85px; top:106px; width:135px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/main/rareobstrgst/rareobstrgst/rareobsttodd") == "" || model.getValue("/root/main/rareobstrgst/rareobstrgst/rareobsttodd") == "00000000"){
- if(model.getValue("/root/main/rareobstrgst/rareobstrgst/rareobstfromdd") > getCurrentDate()){
- messageBox("희귀난치 시작일자가 현재일자를 ", "E003" );
- return;
- }else{
- model.setValue("/root/main/rareobstrgst/rareobstrgst/rareobsttodd", ((model.getValue("/root/main/rareobstrgst/rareobstrgst/rareobstfromdd").toDate()).getAddDate(5, "Y").getAddDate(-1)).getDateFormat() );
- model.refresh();
- }
- }else{
- if(model.getValue("/root/main/rareobstrgst/rareobstrgst/rareobstfromdd") > getCurrentDate()){
- messageBox("희귀난치 시작일자가 현재일자를 ", "E003" );
- return;
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_rareobsttodd" ref="/root/main/rareobstrgst/rareobstrgst/rareobsttodd" inputtype="date" format="yyyy-mm-dd" style="left:85px; top:131px; width:135px; height:19px; "/>
- <input id="ipt_rareobstno" ref="/root/main/rareobstrgst/rareobstrgst/rareobstno" style="left:405px; top:106px; width:155px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 13){
- model.setFocus("caption7");
- var datano = model.getValue("/root/main/rareobstrgst/rareobstrgst/rareobstno" );
-
- datano = datano.getLeftPad( 10, "0");
- model.setValue("/root/main/rareobstrgst/rareobstrgst/rareobstno", datano);
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <select1 id="cbo_insukind" ref="/root/main/rareobstrgst/rareobstrgst/insukind" appearance="minimal" style="left:405px; top:129px; width:155px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/insukind">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //model.setValue("/root/main/rareobstrgst/rareobstrgst/prntyn",model.getValue("/root/main/rareobstrgst/rareobstrgst/signyn"));
- model.setValue("/root/main/rareobstrgst/rareobstrgst/insukind",model.getValue("/root/main/rareobstrgst/rareobstrgst/insukind"));
- ]]>
- </script>
- </select1>
- <line id="line2" class="line_1" style="x1:0px; y1:100px; x2:560px; y2:100px; "/>
- <line id="line4" class="line_1" style="x1:0px; y1:248px; x2:560px; y2:248px; "/>
- <caption id="caption11" class="cell_1" style="left:1px; top:179px; width:79px; height:48px; text-align:center; vertical-align:top; ">비고</caption>
- <textarea id="textarea1" ref="/root/main/rareobstrgst/rareobstrgst/rcptremfact" style="left:85px; top:180px; width:475px; height:48px; "/>
- <button id="button1" class="btn3_letter8" style="left:191px; top:77px; width:109px; height:22px; ">
- <caption>희귀난치환자관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("SMMRD02000_pid", model.getValue("/root/main/rareobstrgst/rareobstrgst/pid"));
- setParameter("SMMRD02000_orddeptcd", model.getValue("/root/init/orddept/dept")) ;
- modal("SMMRD02000");
- ]]>
- </script>
- </button>
- <button id="btn_diagsrch" class="icon_search" visibility="hidden" style="left:150px; top:145px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // if (model.getValue("/root/main/rareobstrgst/rareobstrgst/maindiagcd") ==""){
- // messageBox("진단상병이 입력되지", "E007" );
- // model.setFocus("input4");
- // return;
- // } else { //SPMMO00800
- // setParameter("SPMRT01500_cond1", 1);
- // setParameter("SPMRT01500_cond2", 1);
- // setParameter("SPMRT01500_cond3", "E");
- // setParameter("SPMRT01500_cond4", getCurrentDate());
- //// setParameter("SPMMO00800_cond5", model.getValue("/root/main/rareobstinfo/rareobstinfo/healcarediagcd"));
- // //setParameter("SPMMO00800_cond5", model.getValue("/root/main/rareobstinfo/rareobstinfo/maindiagcd"));
- // setParameter("SPMRT01500_cond5", model.getValue("/root/main/rareobstrgst/rareobstrgst/maindiagcd"));
- //
- // modal("SPMRT01500");
-
- // var rtnparam = getParameter("SPMMO00800_rtn");
- //
- // if ( rtnparam.getTrim() != "") {
- // rtnparam = rtnparam.split("▩");
- // var tmpstr = rtnparam[1];
- //
- // tmpstr = tmpstr.split("▦");
- //
- //// model.setValue("/root/main/rareobstinfo/rareobstinfo/healcarediagcd", tmpstr[9]);
- //// model.setValue("/root/main/rareobstinfo/rareobstinfo/healcarediagnm", tmpstr[2]);
- // //model.setValue("/root/main/rareobstinfo/rareobstinfo/maindiagcd", tmpstr[9]);
- // model.setValue("/root/main/rareobstrgst/rareobstrgst/maindiagcd", tmpstr[8]);
- // model.setValue("/root/main/rareobstrgst/rareobstrgst/maindiagnm", tmpstr[2]);
- //
- // model.refresh();
- // }
- // }
- ]]>
- </script>
- </button>
- <output id="output1" ref="/root/main/rareobstrgst/rareobstrgst/flag2" class="output_fix" visibility="hidden" style="left:394px; top:26px; width:35px; height:19px; "/>
- <button id="btn_small" class="btn2_letter3" style="left:15px; top:200px; width:53px; height:19px; ">
- <caption>접히기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fOpenTop("false");
- ]]>
- </script>
- </button>
- <button id="btn_big" class="btn2_letter3" style="left:15px; top:200px; width:53px; height:19px; ">
- <caption>펼치기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fOpenTop("true");
- ]]>
- </script>
- </button>
- <button id="btn_insert" class="btn4_letter2" style="left:390px; top:77px; width:56px; height:22px; ">
- <caption>입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/main/rareobstrgst/rareobstrgst/flag2") == "Y") {
- var ioflagcd = "I";
- } else {
- var ioflagcd = "O";
-
- model.setValue("/root/main/rareobstrgst/rareobstrgst/infromdd", "00000000");
- model.setValue("/root/main/rareobstrgst/rareobstrgst/intodd", "00000000");
- model.refresh();
- }
- //model.setValue("/root/main/rareobstrgst/rareobstrgst/pid", model.getValue("/root/main/patinfo/patinfo/pid") );
- //model.setValue("/root/main/rareobstrgst/rareobstrgst/genrflagcd", model.getValue("/root/init/genflagcd") );
- model.setValue("/root/main/rareobstrgst/rareobstrgst/genrflagcd", ioflagcd );
- model.setValue("/root/main/rareobstrgst/rareobstrgst/ioflag", ioflagcd );
- model.setValue("/root/main/rareobstrgst/rareobstrgst/report", "1");
- if(model.getValue("/root/main/rareobstrgst/rareobstrgst/pid") == ""){
- messageBox("등록번호가 입력되지", "E007" );
- return;
- }
- if (model.getValue("/root/main/rareobstrgst/rareobstrgst/rareobstfromdd") =="") {
- messageBox("시작일자가 입력되지", "E007" );
- return;
- }
-
- if (model.getValue("/root/main/rareobstrgst/rareobstrgst/rareobstno") =="") {
- //messageBox("희귀난치등록번호가 입력되지", "E007" );
- //return;
- }
-
- if (model.getValue("/root/main/rareobstrgst/rareobstrgst/insukind") =="") {
- messageBox("보험구분이 입력되지", "E007" );
- return;
- }
- submit("TRMRD02103");
- //var cnt = getNodeSetCnt("/root/main/rgstinfo/rgstinfo/rareddinfo/rareddinfo");
- var cnt = getNodesetCount("/root/temp/apchlist");
- //if(cnt > 0){
- if (model.getValue("/root/main/rareobstrgst/rareobstrgst/insukind") >= "21" && model.getValue("/root/main/rareobstrgst/rareobstrgst/insukind") <= "25"
- && model.getValue("/root/main/rareobstrgst/rareobstrgst/rareobstno").length != "15") {
- messageBox("희귀난치등록번호가 정확히 입력되지", "E007" );
- model.setFocus("ipt_rareobstno");
- return;
- } else if (model.getValue("/root/main/rareobstrgst/rareobstrgst/insukind") >= "10" && model.getValue("/root/main/rareobstrgst/rareobstrgst/insukind") <= "20"
- && model.getValue("/root/main/rareobstrgst/rareobstrgst/rareobstno").length != "10") {
- messageBox("희귀난치등록번호가 정확히 입력되지", "E007" );
- model.setFocus("ipt_rareobstno");
- return;
- }
- //}
-
- if (model.getValue("/root/main/rareobstrgst/rareobstrgst/maindiagcd") =="") {
- //messageBox("진단상병이 입력되지", "E007" );
- //return;
- }
- // if (submit("TRMRD02103",false) == false) { // 희귀난치 시작/종료일자 비교
- // alert("값이 중복되어 저장되지 않았습니다.");
- // return;
- // } else {
- // model.setValue("/root/main/rareobstrgst/rareobstrgst/status", "I");
- //
- // submit("TXMRD02101"); // Insert
- // alert("저장이 완료되었습니다.");
- //
- // btn_search.dispatch("DOMActivate"); //조회버튼
- // model.refresh();
- // //model.resetInstanceNode("/root/main/rareobstrgst/rareobstrgst");
- // }
- if (cnt > 0) { // 희귀난치 시작/종료일자 비교
- alert("값이 중복되어 저장되지 않았습니다.");
- return;
- } else {
- model.makeValue("/root/main/rareobstrgst/rareobstrgst/status", "I");
- model.makeValue("/root/main/rareobstrgst/rareobstrgst/orddeptcd", "-");
- model.makeValue("/root/main/rareobstrgst/rareobstrgst/orddrid", "-");
- model.makeValue("/root/main/rareobstrgst/rareobstrgst/genrorddd", "-");
- if(model.getValue("/root/main/rareobstrgst/rareobstrgst/rareobstno") == ""){
- model.makeValue("/root/main/rareobstrgst/rareobstrgst/rareobstno", "-");
- }
- submit("TXMRD02101"); // Insert
- alert("저장이 완료되었습니다.");
- btn_search.dispatch("DOMActivate"); //조회버튼
- model.refresh();
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|