123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- <?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>
- <antibioinfo>
- </antibioinfo>
- <cond>
- <pid/>
- <fromdd/>
- <todd/>
- <drugcd/>
- </cond>
- <antibiomediinfo>
- <antibiomediinfolist>
- <check/>
- <prcpdd/>
- <infcflagcd/>
- <spcldrug/>
- <drugcd/>
- <drugnm/>
- <drugusdt/>
- <druguedt/>
- <drugkind/>
- <orddeptcd/>
- <wardcd/>
- <roomcd/>
- <prcpnm/>
- <orddrid/>
- <prcpvol/>
- <ordunit/>
- <prcpqty/>
- <basemthdcd/>
- <prcptims/>
- <prcpdayno/>
- <holdyn/>
- <tpnyn/>
- <anticncryn/>
- <steroidyn/>
- </antibiomediinfolist>
- </antibiomediinfo>
- </main>
- <send>
- <reqdata/>
- </send>
- <hidden>
- </hidden>
- <init>
- </init>
- <temp>
- <antibioinfo>
- <antibioinfolist>
- <drugcd/>
- </antibioinfolist>
- </antibioinfo>
- <count>1</count>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRASB01501");
- ]]>
- </script>
- <submission id="TRASB01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/antibioinfo"/>
- </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="../../../emr/commonweb/js/EMRCommon.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="496" pageheight="257" style="margin-left:8; margin-right:8; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:480px; height:232px; ">
- <datagrid id="grd_antibiolist" nodeset="/root/main/antibioinfo/antibioinfolist" caption="선택^항생제 코드^항생제 명" colsep="^" colwidth="0, 87, 314" dataheight="23" defaultrows="0" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:0px; width:480px; height:230px; ">
- <col ref="check" type="checkbox"/>
- <col ref="drugcd"/>
- <col ref="drugnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if((grd_antibiolist.mouseRow > 0) && ( grd_antibiolist.mouseRow <= grd_antibiolist.rows )) {
- var bool = "false";
- var iRow = grd_antibiolist.row;
- var iCnt = model.getValue("/root/temp/count");
- var selDrugcd = model.getValue("/root/main/antibioinfo/antibioinfolist["+ iRow + "]/drugcd");
- if(iCnt == "1" || iCnt == 1){
- opener.model.removeNodeset("/root/main/antibiomediinfo");
- }
- if(iCnt != 1){
- for(var i=1; i<=iCnt; i++) {
- if(selDrugcd == model.getValue("/root/temp/antibioinfo/antibioinfolist[" + i + "]/drugcd")){
- bool = "ture";
- return;
- }
- }
- }
- if(bool == "false"){
- opener.model.setValue("/root/send/reqdata/drugcd", model.getValue("/root/main/antibioinfo/antibioinfolist[" +iRow+ "]/drugcd"));
- opener.model.setValue("/root/main/cond/drugcd", model.getValue("/root/main/antibioinfo/antibioinfolist[" +iRow+ "]/drugcd"));
-
- opener.model.setValue("/root/send/reqdata/pid", model.getValue("/root/main/cond/pid"));
- opener.model.setValue("/root/send/reqdata/fromdd", model.getValue("/root/main/cond/fromdd"));
- opener.model.setValue("/root/send/reqdata/todd", model.getValue("/root/main/cond/todd"));
- opener.model.refresh();
- opener.TRASB00801.attribute("add") = "bottom";
- opener.javascript.submit("TRASB00801");
- iCnt=parseInt(iCnt)+1;
- model.makeValue("/root/temp/antibioinfo/antibioinfolist[" + iCnt + "]/drugcd", selDrugcd);
- model.setValue("/root/temp/count", iCnt);
- }
- window.close();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_antibiolist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:230px; width:480px; height:27px; ">
- <button id="btn_cnfm" class="btn4_letter2" style="left:363px; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var bool = "false";
- var iRow = grd_antibiolist.row;
- var iCnt = model.getValue("/root/temp/count");
- var selDrugcd = model.getValue("/root/main/antibioinfo/antibioinfolist["+ iRow + "]/drugcd");
- if(iCnt == "1" || iCnt == 1){
- opener.model.removeNodeset("/root/main/antibiomediinfo");
- }
- if(iCnt != 1){
- for(var i=1; i<=iCnt; i++) {
- if(selDrugcd == model.getValue("/root/temp/antibioinfo/antibioinfolist[" + i + "]/drugcd")){
- bool = "ture";
- return;
- }
- }
- }
- if(bool == "false"){
- opener.model.setValue("/root/send/reqdata/drugcd", model.getValue("/root/main/antibioinfo/antibioinfolist[" +iRow+ "]/drugcd"));
- opener.model.setValue("/root/main/cond/drugcd", model.getValue("/root/main/antibioinfo/antibioinfolist[" +iRow+ "]/drugcd"));
-
- opener.model.setValue("/root/send/reqdata/pid", model.getValue("/root/main/cond/pid"));
- opener.model.setValue("/root/send/reqdata/fromdd", model.getValue("/root/main/cond/fromdd"));
- opener.model.setValue("/root/send/reqdata/todd", model.getValue("/root/main/cond/todd"));
- opener.model.refresh();
- opener.TRASB00801.attribute("add") = "bottom";
- opener.javascript.submit("TRASB00801");
- iCnt=parseInt(iCnt)+1;
- model.makeValue("/root/temp/antibioinfo/antibioinfolist[" + iCnt + "]/drugcd", selDrugcd);
- model.setValue("/root/temp/count", iCnt);
- }
-
- window.close();
-
- ]]>
- </script>
- </button>
- <button id="btn_cncl" class="btn4_letter2" style="left:421px; top:3px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|