123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361 |
- <?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>
- <infctioninfo>
- <pid/>
- <hngnm/>
- <sexflag/>
- <age/>
- <isoldispcd/>
- <isoldiagcd/>
- <etccnts/>
- <dispfromdt/>
- <disptodt/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtid/>
- <seqno/>
- <indd/>
- <cretno/>
- <status/>
- </infctioninfo>
- <infclist/>
- <getinfclist/>
- <paminfo/>
- <isolinfo/>
- </main>
- <hidden>
- <condition>
- <pid/>
- <indd/>
- <cretno/>
- <orddeptcd/>
- </condition>
- </hidden>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <init>
- <A0140list/>
- <A0220list/>
- <A0910list/>
- <A0920list/>
- <A0930list/>
- <A0940list/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array( "A0140", "A0220", "A0910", "A0920", "A0930", "A0940"),
- new Array("/root/init/A0140list", "/root/init/A0220list", "/root/init/A0910list", "/root/init/A0920list", "/root/init/A0930list", "/root/init/A0940list"));
- model.refresh();
- 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" || ioflag == "D"){
- model.setValue("/root/hidden/condition/pid", model.getValue("/root/main/paminfo/list/pid") );
- model.setValue("/root/hidden/condition/indd", model.getValue("/root/main/paminfo/list/indd"));
- model.setValue("/root/hidden/condition/cretno", model.getValue("/root/main/paminfo/list/cretno"));
- model.setValue("/root/hidden/condition/orddeptcd", model.getValue("/root/main/paminfo/list/orddeptcd"));
- model.refresh();
- }else if(ioflag == "O" || ioflag == "S"){
- model.setValue("/root/hidden/condition/pid", model.getValue("/root/main/paminfo/list/pid") );
- model.setValue("/root/hidden/condition/indd", model.getValue("/root/main/paminfo/list/orddd"));
- model.setValue("/root/hidden/condition/cretno", model.getValue("/root/main/paminfo/list/cretno"));
- model.setValue("/root/hidden/condition/orddeptcd", model.getValue("/root/main/paminfo/list/orddeptcd"));
- model.refresh();
- }else{
- var rtn = messageBox("상단의 정보와 ", "E004");
- return;
- }
- }
- model.setValue("/root/main/infctioninfo/pid", model.getValue("/root/main/paminfo/list/pid"));
- model.setValue("/root/main/infctioninfo/hngnm", model.getValue("/root/main/paminfo/list/hngnm"));
- model.setValue("/root/main/infctioninfo/sexflag", model.getValue("/root/main/paminfo/list/sex"));
- model.setValue("/root/main/infctioninfo/age", model.getValue("/root/main/paminfo/list/age"));
-
- if(model.getValue("/root/hidden/condition/pid") != "" && model.getValue("/root/hidden/condition/pid") != null) {
- model.makeValue("/root/send/reqdata/pid",model.getValue( "/root/hidden/condition/pid"));
- submit("TRASB01101");
- }
-
- var grd_rows=grd_infclist.rows;
- var grd_fixrows=grd_infclist.fixedRows;
- if(grd_rows>grd_fixrows){
- for(var i=grd_fixrows; i<grd_rows; i++){
- var end_day=grd_infclist.valueMatrix(i, grd_infclist.colRef("disptodt"));
- var current_day=getCurrentDate();
- if(current_day <end_day){
- grd_infclist.rowstyle(i, "data", "background-color") = "#FFF000";
- }
- }
- }
-
- if( isNull(model.getValue("/root/main/infctioninfo/dispfromdt")) ){
- model.setValue("/root/main/infctioninfo/dispfromdt", getCurrentDate());
- }
- if( isNull(model.getValue("/root/main/infctioninfo/disptodt")) ){
- model.setValue("/root/main/infctioninfo/disptodt","99991231");
- }
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRASB01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/infclist"/>
- <submission id="TRASB01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/isolinfo"/>
- <submission id="TXASB01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/getinfclist"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- </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/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="886" pageheight="360" guideline="2,348;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:870px; height:320px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:95px; height:13px; ">감염리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:61px; x2:517px; y2:61px; "/>
- <datagrid id="grd_infclist" nodeset="/root/main/infclist/info" caption="주의종류^감염질환^시작일^해제일^등록자^수정자^caption1" colsep="^" colwidth="73, 155, 67, 67, 68, 68, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:0px; top:21px; width:517px; height:299px; text-align:center; ">
- <col disabled="true" ref="isoldispcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/A0140list/A0140">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="isoldiagcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/A0220list/A0220">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="dispfromdt" format="yyyy-mm-dd"/>
- <col ref="disptodt" format="yyyy-mm-dd"/>
- <col ref="fstrgstrid"/>
- <col ref="lastupdtrid"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="hngnm" visibility="hidden"/>
- <col ref="sexflag" visibility="hidden"/>
- <col ref="age" visibility="hidden"/>
- <col ref="indd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="etccnts" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var currentRow = grd_infclist.mouseRow;
- var lastRow = grd_infclist.rows - grd_infclist.fixedRows;
- if(currentRow > 0 && currentRow <= lastRow ){
- model.removenode("/root/main/infctioninfo");
- model.makeNode("/root/main/infctioninfo");
- model.makeValue("/root/main/infctioninfo/isoldispcd", model.getValue("/root/main/infclist/info["+grd_infclist.row+"]/isoldispcd"));
- radio1.dispatch("xforms-value-changed");
- model.copyNode("/root/main/infctioninfo", "/root/main/infclist/info["+grd_infclist.row+"]");
- radio1.disabled=true;
- cmb_isoldiagcd.disabled=true;
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:522px; top:5px; width:95px; height:13px; ">감염정보</caption>
- <caption id="caption8" class="cell_1" style="left:522px; top:22px; width:80px; height:22px; text-align:center; vertical-align:middle; ">환자정보</caption>
- <line id="line3" class="line_2" style="x1:521px; y1:45px; x2:864px; y2:45px; "/>
- <caption id="cap_isoldispcd" class="cell_1" style="left:522px; top:47px; width:80px; height:23px; text-align:center; vertical-align:middle; ">주의종류</caption>
- <line id="line4" class="line_2" style="x1:521px; y1:71px; x2:864px; y2:71px; "/>
- <caption id="cap_isoldiagcd" class="cell_1" style="left:522px; top:73px; width:80px; height:23px; text-align:center; vertical-align:middle; ">감염질환</caption>
- <line id="line5" class="line_2" style="x1:521px; y1:97px; x2:864px; y2:97px; "/>
- <caption id="caption9" class="cell_1" style="left:522px; top:99px; width:80px; height:23px; text-align:center; vertical-align:middle; ">시 작 일</caption>
- <line id="line8" class="line_2" style="x1:521px; y1:149px; x2:864px; y2:149px; "/>
- <line id="line9" class="line_2" style="x1:521px; y1:123px; x2:864px; y2:123px; "/>
- <caption id="caption10" class="cell_1" style="left:522px; top:125px; width:80px; height:23px; text-align:center; vertical-align:middle; ">해 제 일</caption>
- <caption id="caption12" class="cell_1" style="left:522px; top:150px; width:80px; height:165px; text-align:center; vertical-align:middle; ">안 내 문</caption>
- <line id="line2" class="line_3" style="x1:522px; y1:318px; x2:865px; y2:318px; "/>
- <textarea id="textarea1" ref="/root/main/infctioninfo/etccnts" style="left:605px; top:151px; width:259px; height:164px; "/>
- <input id="input1" ref="/root/main/infctioninfo/disptodt" class="input_default" disabled="false" inputtype="date" style="left:605px; top:127px; width:115px; height:19px; "/>
- <input id="input2" ref="/root/main/infctioninfo/dispfromdt" class="input_default" disabled="true" inputtype="date" style="left:605px; top:101px; width:115px; height:19px; "/>
- <select1 id="cmb_isoldiagcd" ref="/root/main/infctioninfo/isoldiagcd" class="combo_essential" appearance="minimal" style="left:605px; top:75px; width:225px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/getinfclist/diaginfo">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var type=model.getValue("/root/main/infctioninfo/isoldispcd");
- var cdid=model.getValue("/root/main/infctioninfo/isoldiagcd");
- var today = getCurrentDate();
-
- if(type=="B"){
- model.setValue("/root/main/infctioninfo/disptodt","99991231");
- }else if(type=="C"){
- if(cdid=="I04"||cdid=="I05"||cdid=="I06"||cdid=="I07"||cdid=="I08"||cdid=="I09"||
- cdid=="I10"||cdid=="I11"||cdid=="I12"||cdid=="I20"||cdid=="I21"||cdid=="I22"){
- var disptodt = (today.toDate()).getAddDate(21);
- model.setValue("/root/main/infctioninfo/disptodt",disptodt.getDateFormat());
- }else if(cdid=="I13"){
- var disptodt = (today.toDate()).getAddDate(7);
- model.setValue("/root/main/infctioninfo/disptodt",disptodt.getDateFormat());
- }
- }else if(type=="A"){
- if(cdid=="I14"||cdid=="I15"||cdid=="I17"||cdid=="I22"){
- var disptodt = (today.toDate()).getAddDate(14);
- model.setValue("/root/main/infctioninfo/disptodt",disptodt.getDateFormat());
- }else if(cdid=="I19"||cdid=="I16"||cdid=="I18"){
- var disptodt = (today.toDate()).getAddDate(7);
- model.setValue("/root/main/infctioninfo/disptodt",disptodt.getDateFormat());
- }
- }
- if(cdid!=null && cdid!=""){
- model.setValue("/root/main/infctioninfo/etccnts", model.getValue("/root/init/A0940list/A0940[cdid='"+cdid+"']/cdnm"));
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <output id="output1" ref="/root/main/infctioninfo/hngnm" class="output_fix" appearance="output" style="left:686px; top:24px; width:53px; height:19px; "/>
- <output id="output2" ref="/root/main/infctioninfo/sexflag" class="output_fix" appearance="output" style="left:813px; top:24px; width:23px; height:19px; "/>
- <output id="output3" ref="/root/main/infctioninfo/age" class="output_fix" appearance="output" style="left:839px; top:24px; width:23px; height:19px; "/>
- <caption id="caption13" class="cell_1" style="left:744px; top:22px; width:66px; height:22px; vertical-align:middle; ">성별/나이</caption>
- <line id="line6" class="line_3" style="x1:520px; y1:20px; x2:863px; y2:20px; "/>
- <select1 id="radio1" ref="/root/main/infctioninfo/isoldispcd" appearance="full" cols="3" rows="1" overflow="visible" style="left:605px; top:50px; width:225px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/A0140list/A0140">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var isoresncd=model.getValue("/root/main/infctioninfo/isoldispcd");
- if(isoresncd=="A"){
- copyNodeset("/root/main/getinfclist/diaginfo", "/root/init/A0930list/A0930");
- }else if(isoresncd=="B"){
- copyNodeset("/root/main/getinfclist/diaginfo", "/root/init/A0910list/A0910");
- }else if(isoresncd=="C"){
- copyNodeset("/root/main/getinfclist/diaginfo", "/root/init/A0920list/A0920");
- }
- model.makeValue("/root/main/infctioninfo/disptodt","");
- model.makeValue("/root/main/infctioninfo/etccnts","");
- model.makeValue("/root/main/infctioninfo/isoldiagcd", "");
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="input3" ref="/root/main/infctioninfo/pid" style="left:607px; top:24px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13"){
- setInputNodeCurText();
- model.makeValue("/root/send/reqdata/pid",model.getValue("/root/main/infctioninfo/pid"));
- submit("TRASB01101");
- }
- ]]>
- </script>
- </input>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:333px; width:870px; height:27px; ">
- <line id="line12" class="line_6" style="x1:0px; y1:0px; x2:864px; y2:0px; "/>
- <button id="button5" class="btn4_letter2" style="left:810px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/getinfclist");
- model.makeNode("/root/main/getinfclist");
-
- if( !isRequiredControls("rdo_isoldispcd","cmb_isoldiagcd")){
- return;
- }
-
- if( isNull(model.getValue("/root/main/infctioninfo/seqno")) ){
- model.makeValue("/root/main/infctioninfo/status", "i");
- }else{
- model.makeValue("/root/main/infctioninfo/status", "u");
- }
- var strStatus = model.getValue("/root/main/infctioninfo/status");
- var updRow = grd_infclist.row;
-
- model.setValue("/root/main/infctioninfo/indd", model.getValue("/root/hidden/condition/indd") );
- model.setValue("/root/main/infctioninfo/cretno", model.getValue("/root/hidden/condition/cretno") );
- model.makeValue("/root/main/infctioninfo/orddeptcd", model.getValue("/root/hidden/condition/orddeptcd") );
-
- model.makeValue("/root/main/infctioninfo/isoresncd", model.getValue("/root/main/infctioninfo/isoldiagcd"));
-
- if(isNull(model.getValue("/root/main/infctioninfo/disptodt"))){
- model.makeValue("/root/main/infctioninfo/disptodt","99991231");
- }
-
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.copyNode("/root/send/savedata", "/root/main/infctioninfo");
-
- submit("TXASB01101");
-
- model.copyNode("/root/main/infclist", "/root/main/getinfclist");
- model.refresh();
- model.makeValue("/root/send/reqdata/pid",model.getValue( "/root/hidden/condition/pid"));
- if( submit("TRASB01102")){
- var sEYN = model.getValue("/root/main/isolinfo/info/existyn");
- //setPatientInfo("infection","12345678|Y^N^Y");
- setPatientInfo("infection", sEYN);
- }
- if(isPopup()) {
- model.close();
- }
- ]]>
- </script>
- </button>
- <button id="button6" class="btn4_letter2" style="left:753px; top:3px; width:56px; height:22px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.makeValue("/root/main/infctioninfo/isoldispcd", "");
- model.makeValue("/root/main/infctioninfo/isoldiagcd", "");
- model.makeValue("/root/main/infctioninfo/testrsltdt", "");
- model.makeValue("/root/main/infctioninfo/dispfromdt", getCurrentDate());
- model.makeValue("/root/main/infctioninfo/disptodt", "");
- model.makeValue("/root/main/infctioninfo/etccnts", "");
- model.makeValue("/root/main/infctioninfo/seqno", "");
- radio1.disabled=false;
- cmb_isoldiagcd.disabled=false;
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:870px; height:13px; ">
- <caption id="caption14" class="tit_1" style="left:0px; top:0px; width:162px; height:15px; ">감염주의 표시등록</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|