123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPAED00100.xrw
- * 설 명 : 처방조회
- * 설 계 자 : 손승현
- * 작 성 자 : 손승현
- * 작 성 일 : 2010.09.28
- * 수정이력 : 2010.09.28 손승현 신규
- * 기 타 :
- -->
- <?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>
- <![CDATA[">]]>
- <xhtml:title>처방조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <ordlist1>
- <mainordlist>
- <check/>
- <pid/>
- <hngnm/>
- <sna/>
- <rrgstno1/>
- <rrgstno2/>
- <orddepthngnm/>
- <orddrnm/>
- <portprcpflag/>
- <calcscorcd/>
- <prcpdd/>
- <execprcpstatcd/>
- <roomcd/>
- <srchrsrvdt/>
- <prcpnm/>
- <rsrvrid/>
- <execdt/>
- <execrid1/>
- <execrnm/>
- <rcptyn/>
- <hight/>
- <weight/>
- <prcpexecdeptnm/>
- <execdeptnm/>
- <hometel/>
- <mpphontel/>
- <statcd/>
- <basecd/>
- <execprcpuniqno/>
- <prcpexecdeptcd/>
- <excuroomcd/>
- <inflag/>
- <rcptacptyn/>
- <execbaseflag/>
- <excupartcd/>
- <modality/>
- <execrem/>
- <prcpdelivefact/>
- <carecnfmdd/>
- <prcpkindcd/>
- <rcptno/>
- <acptseqno/>
- <prcpgenrflag/>
- <orddd/>
- <orddeptcd/>
- <rcptdd/>
- <orddrid/>
- <prcpno/>
- <eqmtifyn/>
- <basesuppdeptcd/>
- <cretno/>
- <wardcd/>
- <rsrvdt/>
- <rgstdeptcd/>
- <rgstrid/>
- <inclprcpcd/>
- <lrgcd/>
- <mdlcd/>
- <actorddd/>
- <actcretno/>
- <examroomnm/>
- <prcphistno/>
- <pacsnocretyn/>
- <tmpldata/>
- <prcpdt/>
- <rsrvrnm/>
- <deptengabbr/>
- <cnclresncdnm/>
- <rsrvexmptmplcd/>
- <age/>
- <tretflagcd/>
- <rsrvexcuroomposscd/>
- <prcphopedd/>
- <precureprcpflag/>
- <clincstdycd/>
- <aftrcptinfo/>
- <centcd/>
- <prcpclscd/>
- <ioflag/>
- <bf_srchrsrvtm/>
- <emryn/>
- <prcpqty/>
- <unrsrvexecyn/>
- <insukind/>
- <ordrsrvdt/>
- </mainordlist>
- </ordlist1>
- </main>
- <send>
- <srch>
- <srchfromdd/>
- <srchtodd/>
- <srchhngnm/>
- <suppdeptcd/>
- <srchprcpflag/>
- </srch>
- <data>
- <srchpid/>
- <srchdate1/>
- <srchdate2/>
- <acptlistflag/>
- <selectexcuroom/>
- <excuroomcd/>
- <prcpgenrflag/>
- <prcpexecdeptcd/>
- <centyn/>
- <cenflag/>
- <sgubn/>
- <term/>
- <largeclass/>
- </data>
- <globalinstance>
- <instance1/>
- </globalinstance>
- </send>
- <hidden>
- <receiveref/>
- </hidden>
- <init>
- <cmb_info>
- <initexcuroomcd>
- <excuroomcd/>
- </initexcuroomcd>
- <initexecroom>
- <excuroomcdid/>
- <excuroomcdnm/>
- </initexecroom>
- <initexecrid1>
- <execrid1cdnm/>
- <execrid1cdid/>
- </initexecrid1>
- <prcpexecdeptcdlist>
- <prcpexecdeptcd/>
- </prcpexecdeptcdlist>
- <cdidlist>
- <cdid/>
- </cdidlist>
- </cmb_info>
- </init>
- </root>
- </instance>
- <submission id="TRAEA01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ordlist1"/>
- <submission id="TRAEA01115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 검색조건 설정
- var vpid = opener.javascript.getParameter("SPAVT00110_PID");
-
- model.setValue("/root/send/data/srchpid", vpid);
- model.refresh();
-
- // 자동조회
- model.setValue("/root/send/data/excuroomcd", model.getValue("/root/properties/menu/menuprestdeptcd"));
- model.setValue("/root/send/data/acptlistflag", "Y");
- model.setValue("/root/send/data/prcpexecdeptcd", model.getValue("/root/properties/menu/menuprestdeptcd"));
-
- aezfSetSuppDeptcd();
- model.setValue("/root/send/srch/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- model.setValue("/root/send/data/acptlistflag", "N");
- // submit("TRAEA01101", false);
-
- //검사실 갖고오기
- submit("TRAEA01115",false);
-
- // if(grd_temproom.rows == 2 ) {
- // var excuroomcd = model.getValue("/root/init/cmb_info/initexcuroomcd[1]/excuroomcd") ;
- // }
- // if(grd_temproom.rows >2 ) {
- var loop = getNodesetCount("/root/init/cmb_info/initexcuroomcd");
- var excuroomcd = "";
- for(var i = 1; i <= loop; i++){
- excuroomcd = model.getValue("/root/init/cmb_info/initexcuroomcd["+i+"]/excuroomcd") + " " + excuroomcd;
- }
- // }
- model.setValue("/root/send/data/selectexcuroom", excuroomcd );
- // submit("TRAEA01101", false);
-
- //20160708 kya 수정
- ////2011.01.26 c y w
- // 일자 setting
- var curDD = getCurrentDate();
- if ( vpid != "") {
- var curDD_from = curDD.substring (0, 6) + "01";
- model.setValue("/root/send/data/srchdate1" , curDD_from ); // 조회시작일자
- model.setValue("/root/send/data/srchdate2" , curDD ); // 조회종료일자
- btn_search.dispatch("DOMActivate");
- } else {
- model.setValue("/root/send/data/srchdate1" , curDD ); // 조회시작일자
- model.setValue("/root/send/data/srchdate2" , curDD ); // 조회종료일자
- }
-
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fSetOpener(){
- var statcd = model.getValue("/root/main/ordlist1/mainordlist[" + grd_ordlist1.row + "]/statcd") ;
- var roomcd = model.getValue("/root/main/ordlist1/mainordlist[" + grd_ordlist1.row + "]/roomcd" );
-
- //if( model.getValue("/root/main/ordlist1/mainordlist[" + grd_ordlist1.row + "]/statcd" ) == "수납" ){
- if ( statcd == "수납" || roomcd != "" ){
- if( checkOpener() ){
- opener.model.makeNode("/root/temp/okflag");
- opener.model.setValue("/root/temp/okflag", "ok");
-
- var idx = grd_ordlist1.row;
-
- // opener.model.makeNode("/root/send/ordlist1/mainordlist");
-
- // Opener Node에 복사
- copyNodeListType("/root/send/ordlist1", "/root/main/ordlist1/mainordlist[" + idx + "]", "replace", opener.model, model );
-
- window.close();
- }
- }else{
- messageBox("처방상태가 수납일 경우에만 접수", "I006");
- return;
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="820" pageheight="380" guideline="1,807;2,380;1,2;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:21px; width:795px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="tit_2" style="left:0px; top:0px; width:175px; height:14px; vertical-align:middle; ">처방조회</caption>
- <caption id="caption3" class="search_name" style="left:320px; top:30px; width:86px; height:17px; ">등록번호 :</caption>
- <line id="line1" style="x1:719px; y1:27px; x2:719px; y2:49px; border-color:#ffe4bb; border-left-style:solid; "/>
- <line id="line3" class="line_1" style="x1:5px; y1:58px; x2:800px; y2:58px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:731px; top:28px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( submit("TRAEA01101") ){
- if( model.getValue("/root/send/srch/srchprcpflag") != "true" ){
- var cnt = getNodesetCount("/root/main/ordlist1/mainordlist");
- for(var i = cnt ; i >= 1 ; i-- ){
- // alert(" i ==> " + i );
- if( model.getValue("/root/main/ordlist1/mainordlist[" + i + "]/statcd") != "수납" ){
- // alert("here");
- model.removenode("/root/main/ordlist1/mainordlist[" + i + "]");
- }
- }
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_cfm" class="btn4_letter2" style="left:678px; top:355px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 조회됐는지 확인
- var rows = grd_ordlist1.rows;
-
- if( rows >= 1 ){
- fSetOpener();
- } else {
- messageBox("조회된 처방 정보가", "I004" , "다시 조회해주세요.");
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_can" class="btn4_letter2" style="left:735px; top:355px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( checkOpener() ) {
- opener.model.makeNode("/root/temp/okflag");
- opener.model.setValue("/root/temp/okflag", "");
- }
- window.close();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:20px; top:30px; width:86px; height:17px; ">기 간 :</caption>
- <input id="ipt_srchpid" ref="/root/send/data/srchpid" class="input_search" style="left:409px; top:30px; width:106px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_srchfromdd" ref="/root/send/data/srchdate1" class="input_s_essential" inputtype="date" style="left:90px; top:30px; width:100px; height:19px; "/>
- <caption id="lbl_~" class="search_no_b" style="left:193px; top:31px; width:12px; height:17px; ">~</caption>
- <input id="ipt_srchtodd" ref="/root/send/data/srchdate2" class="input_s_essential" inputtype="date" style="left:207px; top:30px; width:100px; height:19px; "/>
- <input id="input1" ref="/root/send/srch/srchhngnm" class="input_search" style="left:517px; top:30px; width:106px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <datagrid id="grd_ordlist1" nodeset="/root/main/ordlist1/mainordlist" caption="^등록번호^성명^S/A^진료과^진료의^처방코드^처방일자^처방상태^병실^예약시간^처방명^비고란^예약자^실시시간^실시자^수납여부^취소코드" colsep="^" colwidth="16, 72, 70, 45, 73, 58, 80, 104, 70, 61, 116, 165, 214, 59, 121, 62, 54, 100" explorerbar="sortshow" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:70px; width:795px; height:275px; ">
- <col checkvalue="true,false" ref="check" type="checkbox" visibility="hidden"/>
- <col ref="pid"/>
- <col ref="hngnm" style="left:0px; top:20px; width:63px; height:20px; "/>
- <col ref="sna"/>
- <col ref="orddepthngnm"/>
- <col ref="orddrnm"/>
- <col ref="calcscorcd"/>
- <col ref="prcpdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="statcd"/>
- <col ref="roomcd"/>
- <col ref="srchrsrvdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="prcpnm"/>
- <col ref="prcpdelivefact"/>
- <col ref="rsrvrnm" type="output"/>
- <col ref="execdt"/>
- <col ref="execrnm" type="output"/>
- <col ref="rcptyn"/>
- <col ref="basecd"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_ordlist1", false, "/root/hidden/popupmenu/menu/item", "label", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_ordlist1.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- /* if (isDataCell()) {
- for ( var i = 1; i < grd_ordlist1.rows; i++) {
- model.setValue("/root/main/ordlist1/mainordlist["+i+"]/check", "false");
- }
- for ( var i =0 ; i< grd_ordlist1.selectedRows;i++){
- model.setValue("/root/main/ordlist1/mainordlist[" + grd_ordlist1.selectedRow(i) + "]/check", "true");
- }
-
- if(grd_ordlist1.selectedRows == 1 ){
-
- var idx = grd_ordlist1.row;
-
- model.setValue("/root/send/data/excuroomcd",model.getValue("/root/main/ordlist1/mainordlist["+ idx + "]/excuroomcd"));
- model.setValue("/root/send/data/srchpid", model.getValue("/root/main/ordlist1/mainordlist[" + idx + "]/pid"));
- model.setValue("/root/send/data/orddd", model.getValue("/root/main/ordlist1/mainordlist["+ idx +"]/orddd"));
- model.setValue("/root/send/data/genrflag", model.getValue("/root/main/ordlist1/mainordlist["+ idx +"]/prcpgenrflag"));
- model.setValue("/root/send/data/prcpno", model.getValue("/root/main/ordlist1/mainordlist["+ idx +"]/prcpno"));
- model.setValue("/root/send/data/prcpdd", model.getValue("/root/main/ordlist1/mainordlist["+ idx +"]/prcpdd"));
- model.setValue("/root/send/data/execprcpuniqno", model.getValue("/root/main/ordlist1/mainordlist["+ idx +"]/execprcpuniqno"));
- model.setValue("/root/send/data/srchrsrvdt", model.getValue("/root/main/ordlist1/mainordlist["+ idx +"]/srchrsrvdt"));
-
- //환자Comment 환자정보 조회
- submit("TRAEA01114",false);
- model.setValue("/root/hidden/isolinfo/isoldata", "");
- if (model.getValue("/root/main/patrem/isolinfo/isoldispcd") != "") {
- model.setValue("/root/hidden/isolinfo/isoldata", "확인");
- }
- model.refresh();
- }else {
- //상단정보 초기화
- delPatientInfos();
- }
- }*/
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // 조회됐는지 확인
- var rows = grd_ordlist1.rows;
-
- if( rows >= 1 ){
- if(grd_ordlist1.row != 0) {
- fSetOpener();
- }
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_temproom" nodeset="/root/init/cmb_info/initexcuroomcd" visibility="hidden" caption="caption3" colsep="^" colwidth="127" mergecellsfixedrows="bycolrec" rowsep="|" style="left:490px; top:115px; width:220px; height:190px; ">
- <col ref="excuroomcd"/>
- </datagrid>
- <bool id="bool1" ref="/root/send/srch/srchprcpflag" style="left:630px; top:30px; width:20px; height:20px; "/>
- <caption id="caption4" style="left:650px; top:31px; width:50px; height:20px; ">처방포함</caption>
- </xhtml:body>
- </xhtml:html>
|