123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349 |
- <?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>
- <baseinfo>
- <patinfolist>
- <pid/>
- <hngnm/>
- <sex/>
- <brthdd/>
- <hometel/>
- <mpphontel/>
- <detladdr/>
- </patinfolist>
- </baseinfo>
- <drughistory>
- <item>
- <flag/>
- <prcpcd/>
- <prcpnm/>
- <prcpqtyunit/>
- </item>
- </drughistory>
- <prcphistory2>
- <item>
- <prcpdd/>
- <ionm/>
- <orddeptnm/>
- <ioflag/>
- <orddeptid/>
- <orddd/>
- </item>
- </prcphistory2>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <prcporderhistory>
- <item>
- <drugno/>
- <hosinhosoutflagnm/>
- <execprcphistcd/>
- <prcpno/>
- <prcpcd/>
- <prcpnm/>
- <prcpvol/>
- <prcpvolunit/>
- <prcpqty/>
- <prcpqtyunit/>
- <prcptims/>
- <prcpdayno/>
- <mthdcd/>
- <mthdnm/>
- <prcpmixno/>
- <powdflag/>
- <selfprcpflag/>
- <erprcpflag/>
- <precureprcpflag/>
- <prcpauthflag/>
- <payflagcd/>
- <issdeptnm/>
- <prcpexecdeptnm/>
- <inclprcpcd/>
- </item>
- <memoinfo>
- <pid/>
- <seqno/>
- <hosinhosoutflag/>
- <instcd/>
- <orddeptcd/>
- <orddeptnm/>
- <drugdd/>
- <drugno/>
- <writid2/>
- <writnm/>
- <writdt/>
- <memo/>
- <m/>
- <ioflag/>
- <writid/>
- <useyn/>
- <indd/>
- </memoinfo>
- </prcporderhistory>
- <reqlist>
- <reqlist>
- <stat/>
- <pid/>
- <hngnm/>
- <cretno/>
- <orddeptcd/>
- <prcpgenrflag/>
- <reqdd/>
- <repldd/>
- <replpharmst/>
- <reqdetlflag/>
- <wardnm/>
- <agesex/>
- <rrgstno/>
- <patstat/>
- <diagcd/>
- <orddd/>
- <inhospday/>
- <reqdrug/>
- <reqdeptnm/>
- <requsernm/>
- <reqresn/>
- <reqcommnet/>
- <formrecseq/>
- <reqdeptcd/>
- <requserid/>
- </reqlist>
- </reqlist>
- </main>
- <send>
- <srchdata>
- <pid/>
- <prcpfromdd/>
- <prcpfromdt>0000</prcpfromdt>
- <prcptodd/>
- <prcptodt>2400</prcptodt>
- <tmedflag/>
- <drugcd/>
- <hngnm/>
- <prcpdd/>
- <orddeptcd/>
- <ioflag/>
- <startreqdd/>
- <endreqdd/>
- <reqpid/>
- <srchpid/>
- <srchindd/>
- <srchprcpdd/>
- </srchdata>
- <memosrchinfo>
- <srchpid/>
- <srchseqno/>
- <srchindd/>
- <srchinstcd/>
- <srchioflag/>
- <srchhosinhosoutflag/>
- <srchorddeptcd/>
- </memosrchinfo>
- <srchdata2>
- <pid/>
- <prcpfromdd/>
- <prcpfromdt>0000</prcpfromdt>
- <prcptodd/>
- <prcptodt>2400</prcptodt>
- <tmedflag/>
- <drugcd/>
- <hngnm/>
- <prcpdd/>
- <orddeptcd/>
- <ioflag/>
- <startreqdd/>
- <endreqdd/>
- <reqpid/>
- <srchpid/>
- <srchindd/>
- <srchprcpdd/>
- </srchdata2>
- </send>
- <init>
- <M0009list>
- <M0009>
- <cdid/>
- <cdnm/>
- </M0009>
- </M0009list>
- </init>
- <hidden/>
- <temp>
- <patinfo>
- <pid/>
- </patinfo>
- </temp>
- </root>
- </instance>
- <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" ev:event="xforms-ready">
- <![CDATA[
- var pid=getPatientId();
- //var pname=getPatientName();
- //alert(pid); alert(pname);
- zbcfGetCodeList(new Array("M0009"), new Array("/root/init/M0009list"));
-
- model.setValue("/root/send/srchdata2/prcpfromdd", (((getCurrentDate()).toDate("YYYYMMDD")).getAddDate(-1,"M")).getDateFormat("YYYYMMDD") );
- model.setValue("/root/send/srchdata2/prcptodd", getCurrentDate());
-
- if(pid != "") {
- model.setValue("/root/main/baseinfo/patinfolist/pid", pid);
- } else if(model.getValue("/root/temp/receivedata/reqpid") != "") {
- model.setValue("/root/main/baseinfo/patinfolist/pid", model.getValue("/root/temp/receivedata/reqpid"));
- }
- //model.setValue("/root/main/baseinfo/patinfolist/hngnm", pname);
- model.refresh()
- if (model.getValue("/root/main/baseinfo/patinfolist/pid")!=""){
- fView();
- }
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fView(){
- model.setValue("/root/send/srchdata2/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
- //model.setValue("/root/send/srchdata/pid", "10000404");
- model.setValue("/root/send/srchdata2/reqpid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
- submit("TRADB10101");
-
- //if ( btn_prcp.selected== true ){
- submit("TRADB10102");
- /*} else if ( btn_cnst.selected==true){
- model.setValue("/root/send/srchdata/startreqdd", model.getValue("/root/send/srchdata/prcpfromdd"));
- model.setValue("/root/send/srchdata/endreqdd", model.getValue("/root/send/srchdata/prcptodd"));
- submit("TRADC00102");
- }else if ( btn_drug.selected==true){
- submit("TRADB10104");
- }
- */
- viewDetail(1);
- }
-
- function viewDetail(selectedrow){ //
- //var selectedrow = grd_prcphistory.row;
-
- model.setValue("/root/send/srchdata2/srchpid", model.getValue("/root/send/srchdata/pid"));
- model.setValue("/root/send/srchdata2/srchindd", model.getValue("/root/main/prcphistory/item["+selectedrow+"]/orddd"));
-
- model.setValue("/root/send/srchdata2/prcpdd", model.getValue("/root/main/prcphistory/item["+selectedrow+"]/prcpdd"));
- model.setValue("/root/send/srchdata2/orddeptcd", model.getValue("/root/main/prcphistory/item["+selectedrow+"]/orddeptcd"));
- model.setValue("/root/send/srchdata2/ioflag",model.getValue("/root/main/prcphistory/item["+selectedrow+"]/ioflag"));
- submit("TRADB10103");
- grd_prcplist.rebuildStyle();
- setRowStyle("grd_prcplist" , "4" , "C" , "execprcphistcd", "equal" );
- setRowStyle("grd_prcplist" , "4" , "50" , "execprcphistcd", "equal" );
- setRowStyle("grd_prcplist" , "3" , "D" , "execprcphistcd", "equal" );
- setRowStyle("grd_prcplist" , "2" , "E" , "execprcphistcd", "equal" );
- }
- ]]>
- </script>
- <submission id="TRADC00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/reqlist"/>
- <submission id="TRADB10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata2" replace="instance" resultref="/root/main/baseinfo"/>
- <submission id="TRADB10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata2" replace="instance" resultref="/root/main/prcphistory"/>
- <submission id="TRADB10103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata2" replace="instance" resultref="/root/main/prcporderhistory"/>
- <submission id="TRADB10104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/drughistory"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="827" pageheight="784" guideline="1,811;2,786;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:70px; width:810px; height:600px; ">
- <datagrid id="grd_prcphistory" nodeset="/root/main/prcphistory/item" caption="처방일자^입/외^진료과^caption1^" colsep="^" colwidth="72, 54, 100, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:230px; height:590px; ">
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="ionm"/>
- <col ref="orddeptnm"/>
- <col ref="ioflag"/>
- <col ref="orddeptid"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var selectedrow = grd_prcphistory.row;
- viewDetail(selectedrow);
- //viewDetail();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_prcplist" nodeset="/root/main/prcporderhistory/item" class="datagrid2" scroll="auto" caption="약번호^구분^실시처방변경이력^처방번호^약품코드^약품명^1일용량^단위^1일수량^단위^횟수^일수^용법^용법명^Mix^산제^자가^응급^선처치^부서처방^급여^발행부서^수행부서^M-Set" colsep="^" colwidth="45, 48, 55, 1, 95, 243, 55, 31, 47, 30, 23, 26, 56, 100, 25, 25, 25, 25, 30, 33, 54, 100, 100, 100" explorerbar="sortshowmove" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowsep="|" style="left:235px; top:0px; width:575px; height:590px; ">
- <col ref="drugno" style="text-align:center; "/>
- <col ref="hosinhosoutflagnm"/>
- <col id="cmb_execprcphistcd" disabled="true" ref="execprcphistcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/M0009list/M0009">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpno"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="prcpvol" style="text-align:right; "/>
- <col ref="prcpvolunit"/>
- <col ref="prcpqty" style="text-align:right; "/>
- <col ref="prcpqtyunit"/>
- <col ref="prcptims" style="text-align:right; "/>
- <col ref="prcpdayno" style="text-align:right; "/>
- <col ref="mthdcd"/>
- <col ref="mthdnm"/>
- <col ref="prcpmixno"/>
- <col checkvalue="Y,N" ref="powdflag" type="checkbox"/>
- <col checkvalue="Y,N" ref="selfprcpflag" type="checkbox"/>
- <col checkvalue="Y,N" ref="erprcpflag" type="checkbox"/>
- <col ref="precureprcpflag" type="checkbox"/>
- <col checkvalue="Y,N" ref="prcpauthflag" type="checkbox"/>
- <col ref="payflagcd"/>
- <col ref="issdeptnm"/>
- <col ref="prcpexecdeptnm"/>
- <col ref="inclprcpcd"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var receiveref = model.getValue("/root/temp/receivedata/receiveref");
- var receivedrugflag = model.getValue("/root/temp/receivedata/receivedrugflag");
- if ( checkOpener() ) {
- opener.model.setValue(receiveref, model.getValue("/root/main/prcporderhistory/item["+grd_prcplist.row+"]/prcpcd"));
- opener.model.setValue(receivedrugflag, "C");
- //opener.model.makeNode (receiveref +"/ordnm");
- //opener.model.setValue(receiveref +"/ordnm", model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/ordnm"));
- opener.model.refresh();
- window.close();
- } else {
- alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group6" style="left:0px; top:5px; width:810px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:810px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption24" class="search_name" style="left:310px; top:8px; width:86px; height:17px; ">적용일시 :</caption>
- <input id="input9" ref="/root/send/srchdata2/prcpfromdd" class="input_search" inputtype="date" style="left:399px; top:8px; width:85px; height:19px; "/>
- <caption id="caption26" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">환자 :</caption>
- <input id="input10" ref="/root/main/baseinfo/patinfolist/hngnm" class="output_fix" editable="false" style="left:175px; top:8px; width:105px; height:19px; "/>
- <input id="input11" ref="/root/main/baseinfo/patinfolist/pid" class="output_fix" editable="false" style="left:80px; top:8px; width:90px; height:19px; "/>
- <input id="input12" ref="/root/send/srchdata2/prcptodd" class="input_search" inputtype="date" style="left:499px; top:8px; width:85px; height:19px; "/>
- <caption id="caption29" style="left:487px; top:8px; width:15px; height:15px; ">~</caption>
- <button id="btn_sea" class="btn1_letter2" style="left:740px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //if ( btn_prcp.selected == true ){
- fView();
- //}
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="top:8px; x1:726px; y1:7px; x2:726px; y2:30px; "/>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:64px; x2:810px; y2:64px; "/>
- <caption id="caption7" class="tit_2" style="left:0px; top:50px; width:95px; height:14px; ">처방조회</caption>
- </xhtml:body>
- </xhtml:html>
|