123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401 |
- <?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>NST추구관리대상자검색</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <nstcntrllist>
- <mainlist>
- <cnststatnm/>
- <epgubun/>
- <roomcd/>
- <orddeptnm/>
- <pid/>
- <hngnm/>
- <sna/>
- <orddrnm/>
- <firstreqdd/>
- <firstrepldd/>
- <replddilsu/>
- <repldd/>
- <prcpdd/>
- <prcpcd/>
- <cnstcnts20/>
- <firstsau/>
- <orddd/>
- <dschdd/>
- <dschyn/>
- <cnstkind/>
- <cnstseqno/>
- <formrecseq/>
- <cretno/>
- <prcpgenrflag/>
- <cnststat/>
- <formcd/>
- <rgstseqno/>
- <cnstcnts8/>
- <cnstcnts9/>
- <cnstcnts10/>
- <cnstcnts11/>
- </mainlist>
- </nstcntrllist>
- </main>
- <send>
- <srchdd1/>
- <srchdd2/>
- <reqdrugcd/>
- <pid/>
- <orddeptcd/>
- <wardcd/>
- <statflag/>
- <nutrflag>A</nutrflag>
- <ioflag/>
- <repflag>A</repflag>
- <deptinfo>
- <deptflag/>
- </deptinfo>
- <replddilsu1/>
- <replddilsu2/>
- <cnstinfolist>
- <data1/>
- </cnstinfolist>
- <dschyn/>
- </send>
- <init>
- <cmb_baseinfo>
- <initexecorddept>
- <execorddeptcdnm/>
- <execorddeptcdid/>
- </initexecorddept>
- <initward>
- <wardcd/>
- <wardnm/>
- </initward>
- </cmb_baseinfo>
- </init>
- <hidden>
- <deptlist>
- <dept>
- <deptcd/>
- <deptnm/>
- </dept>
- <ward>
- <wardcd/>
- <wardnm/>
- </ward>
- </deptlist>
- <cnststatinfo>
- <cnststat/>
- </cnststatinfo>
- </hidden>
- <temp>
- <cnstinfo>
- <formrecseq/>
- <pid/>
- <rgstseqno/>
- <cnstdd/>
- <prcpgenrflag/>
- <orddd/>
- <cretno/>
- <cnsttype/>
- <formcd/>
- <prcpcd/>
- <prcpno/>
- <cnstseqno/>
- <plusyn/>
- <sau/>
- <roomcd/>
- </cnstinfo>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- ipt_srchdd1.value = getCurrentDate().toDate().getAddDate(-14,"D").getDateFormat("YYYYMMDD");
- ipt_srchdd2.value = getCurrentDate();
-
- model.refresh();
-
- submit("TRADC00101");
- astfAddCombo("/root/hidden/deptlist", "dept", "deptcd,deptnm", ",");
- astfAddCombo("/root/hidden/deptlist", "ward", "wardcd,wardnm", ",");
-
- ]]>
- </script>
- <submission id="TRADC03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/nstcntrllist"/>
- <submission id="TRADC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo" replace="instance" resultref="/root/hidden/deptlist"/>
- <submission id="TXADC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/cnstinfo" replace="instance" resultref="/root/hidden/cnststatinfo"/>
- <submission id="TXADC02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cnstinfolist/data1" replace="instance" resultref="/root/hidden/cnstinfolist"/>
- </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/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,748;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">NST관리 대상자 검색화면</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:760px; ">
- <datagrid id="grd_nstmngt" nodeset="/root/main/nstcntrllist/mainlist" caption="상태^EN/PN^병실/외래^진료과^등록번호^환자명^S/A^주치의/의뢰인^의뢰일^회신일^전번회신후 일수^최근회신일^최종처방일^처방코드^비고^의뢰사유^진료/입원일^퇴원일^퇴원예고/퇴원^cnstkind^cnstseqno^formrecseq^cretno^prcpgenrflag^cnststat^formcd^rgstseqno^cnstcnts8^cnstcnts9^cnstcnts10^cnstcnts11" colsep="^" colwidth="83, 70, 64, 100, 87, 73, 40, 103, 86, 81, 100, 100, 79, 100, 208, 169, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:1px; top:105px; width:1189px; height:625px; text-align:center; ">
- <col ref="cnststatnm" style="text-align:left; "/>
- <col ref="epgubun"/>
- <col ref="roomcd"/>
- <col ref="orddeptnm"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="sna"/>
- <col ref="orddrnm"/>
- <col ref="firstreqdd" format="yyyy-mm-dd"/>
- <col ref="firstrepldd" format="yyyy-mm-dd"/>
- <col ref="replddilsu"/>
- <col ref="repldd" format="yyyy-mm-dd"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="prcpcd"/>
- <col ref="cnstcnts20" type="input" style="text-align:left; "/>
- <col ref="firstsau" style="text-align:left; "/>
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="dschdd" format="yyyy-mm-dd"/>
- <col ref="dschyn"/>
- <col ref="cnstkind" visibility="hidden"/>
- <col ref="cnstseqno" visibility="hidden"/>
- <col ref="formrecseq" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="prcpgenrflag" visibility="hidden"/>
- <col ref="cnststat" visibility="hidden"/>
- <col ref="formcd" visibility="hidden"/>
- <col ref="rgstseqno" visibility="hidden"/>
- <col ref="cnstcnts8" visibility="hidden"/>
- <col ref="cnstcnts9" visibility="hidden"/>
- <col ref="cnstcnts10" visibility="hidden"/>
- <col ref="cnstcnts11" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //2010-01-06 비고란 저장 가능하도록 처리 (미회신사유등록..)
- //if ( grd_nstmngt.isCell(event.target) && grd_nstmngt.row >= grd_nstmngt.fixedRows ) {
- if ( grd_nstmngt.isCell(event.target) && grd_nstmngt.row >= grd_nstmngt.fixedRows && grd_nstmngt.colRef("cnstcnts20") != grd_nstmngt.col) {
-
- //기록된 서식
- var cnstseqno = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/cnstseqno" );
- var formrecseq = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/formrecseq" );
- var formcd = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/formcd" );
- var pid = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/pid" );
- var cretno = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/cretno" );
- var prcpgenrflag = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/prcpgenrflag" );
- var rgstseqno = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/rgstseqno" );
- var reqdd = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/reqdd" );
- var orddd = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/orddd" );
- var prcpcd = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/prcpcd" );
- var prcpno = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/prcpno" );
- var plusyn = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/plusyn" );
- var sau = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/sau" ); //2009-12-03 회신서출력시 [의뢰사유] 출력요청
- var roomcd = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/roomcd" ); //2009-12-03 회신서출력시 [병실] 출력요청
-
- setParameter("openmode", "reccnstform");
- setParameter("formrecseq", formrecseq); //서식기록테이블의 formrecseq(기록순번)
- setParameter("pid", pid);
- setParameter("rgstseqno", rgstseqno);
- model.setValue("/root/temp/cnstinfo/cnstseqno", cnstseqno);
- model.setValue("/root/temp/cnstinfo/formrecseq", formrecseq);
- model.setValue("/root/temp/cnstinfo/pid", pid);
- model.setValue("/root/temp/cnstinfo/cretno", cretno);
- model.setValue("/root/temp/cnstinfo/prcpgenrflag", prcpgenrflag);
- model.setValue("/root/temp/cnstinfo/rgstseqno", rgstseqno);
- model.setValue("/root/temp/cnstinfo/cnstdd", reqdd);
- model.setValue("/root/temp/cnstinfo/orddd", orddd);
- model.setValue("/root/temp/cnstinfo/cnsttype","ast"); // 약품식별회신을 위한 변수 설정
- model.setValue("/root/temp/cnstinfo/plusyn", plusyn); //추구관리가능여부
- model.setValue("/root/temp/cnstinfo/sau", sau); //2009-12-03 회신서출력시 [의뢰사유] 출력요청
- model.setValue("/root/temp/cnstinfo/roomcd", roomcd); //2009-12-03 회신서출력시 [병실] 출력요청
-
- //********************************* 해당 의뢰건을 의뢰확정 상태로 변경 *********************************
- if(formrecseq != ""){
- var success = submit("TXADC00101");
- if(success){
- if(model.getValue("/root/hidden/cnststatinfo/cnststat") == "04")
- messageBox("취소된 의뢰건","I009");
- }
- }
-
- if ( formcd =="0000000770" || formcd == "0000003019"){ //NST
- model.setValue("/root/temp/cnstinfo/formcd",formcd); // EN, PN구분을 위한 formcd 설정
-
- if(formrecseq == ""){
- model.setValue("/root/temp/cnstinfo/prcpcd",prcpcd);
- model.setValue("/root/temp/cnstinfo/prcpno",prcpno);
- }
- modal("SMADC02600", 1, 0, 0 ,"SMADC02600","/root/temp/cnstinfo", "/root/temp/cnstinfo");
- btn_sea.dispatch("DOMActivate");
-
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- // 소트 후 인스턴스 정리
- grd_nstmngt.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
-
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:5px; top:15px; width:1190px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1189px; height:59px; "/>
- <line id="line1" class="line_4" style="x1:1111px; y1:9px; x2:1111px; y2:51px; "/>
- <select1 id="combo10" ref="/root/hidden/deptlist/ward" class="combo_search" appearance="minimal" cols="2" style="left:670px; top:35px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/deptlist/ward">
- <label ref="wardnm"/>
- <value ref="wardcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:580px; top:35px; width:86px; height:17px; ">병 동 :</caption>
- <select1 id="radio2" ref="/root/send/ioflag" class="radio_search" appearance="full" cellspacing="3" cols="3" rows="1" overflow="visible" style="left:395px; top:10px; width:153px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:305px; top:10px; width:85px; height:17px; ">구 분 :</caption>
- <select1 id="combo1" ref="/root/hidden/deptlist/dept" class="combo_search" appearance="minimal" style="left:671px; top:9px; width:127px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/deptlist/dept">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:18px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue( "/root/send/reqdrugcd" , model.getValue("/root/send/reqdrugcd").toUpperCase() ); //2008-11-01 의뢰약품 대문자 처리
- model.setValue("/root/send/orddeptcd",model.getValue("/root/hidden/deptlist/dept")); // 의뢰과 선택
- model.setValue("/root/send/wardcd",model.getValue("/root/hidden/deptlist/ward")); // 병동 선택
- submit("TRADC03101");
- grd_nstmngt.rebuildStyle();
- setRowStyle("grd_nstmngt" , "1", "Y" , "dschyn", "equal" ); //그리드 특정 컬럼값을 비교하여 로우 백컬러 변경
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption9" class="search_name" visibility="visible" style="left:860px; top:10px; width:101px; height:17px; ">등 록 번 호 :</caption>
- <input id="input1" ref="/root/send/pid" class="input_search" visibility="visible" style="left:970px; top:9px; width:89px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_sea","DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption10" class="search_name" style="left:580px; top:10px; width:90px; height:17px; ">의 뢰 과 :</caption>
- <caption id="caption2" class="search_name" style="left:6px; top:11px; width:91px; height:17px; ">조회구간 :</caption>
- <input id="ipt_srchdd1" ref="/root/send/srchdd1" class="input_search" inputtype="date" style="left:95px; top:10px; width:87px; height:19px; "/>
- <input id="ipt_srchdd2" ref="/root/send/srchdd2" class="input_search" inputtype="date" style="left:194px; top:10px; width:87px; height:19px; "/>
- <caption id="caption13" style="left:182px; top:12px; width:15px; height:20px; ">~</caption>
- <caption id="caption1" class="search_name" style="left:305px; top:35px; width:90px; height:17px; ">의뢰영역 :</caption>
- <select1 id="rdo_nutrflag" ref="/root/send/nutrflag" class="radio_search" appearance="full" cellspacing="3" cols="4" rows="1" overflow="visible" style="left:395px; top:35px; width:125px; height:21px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>EN</label>
- <value>E</value>
- </item>
- <item>
- <label>PN</label>
- <value>P</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- inputEnterKey("rdo_reqflag","onclick");
- ]]>
- </script>
- </select1>
- <input id="input2" ref="/root/send/replddilsu1" class="input_search" visibility="visible" format="#,###" style="left:970px; top:34px; width:38px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_sea","DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" visibility="visible" style="left:860px; top:35px; width:104px; height:17px; ">회신후 일수 :</caption>
- <input id="input3" ref="/root/send/replddilsu2" class="input_search" visibility="visible" format="#,###" style="left:1020px; top:34px; width:38px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_sea","DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption4" style="left:1008px; top:35px; width:15px; height:20px; ">~</caption>
- <select id="checkbox1" ref="/root/send/dschyn" overflow="visible" appearance="full" style="left:175px; top:35px; width:100px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>퇴원환자포함</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <line id="line2" class="line_1" style="x1:2px; y1:102px; x2:1191px; y2:102px; "/>
- <button id="button51" class="btn2_letter4" style="left:1125px; top:80px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file_name = window.fileDialog("save","","true","","xls","All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- grd_nstmngt.saveExcel(file_name);
- ]]>
- </script>
- </button>
- <caption id="caption12" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">NST추구관리대상자검색</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:740px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" navindex="308" style="left:1130px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var update = getGridUpdateData(grd_nstmngt);
- // var update = model.getValue("/root/send/req/data");
- if(update == ""){
- messageBox("저장할 정보가 없습니다. 확인하여 주시기바랍니다", "I");
- return 0;
-
- } else {
- model.setValue( "/root/send/cnstinfolist/data1", grd_nstmngt.getUpdateData());
- submit("TXADC02501");
- }
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|