123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- <?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>
- <prcplist>
- <prcpinfo>
- <genrdd/>
- <genrtm/>
- <prcpdd/>
- <spcldrug/>
- <deptnm/>
- <wardnm/>
- <pid/>
- <panm/>
- <calcscorcd/>
- <engnm/>
- <execprcptotqty/>
- <execdd/>
- <issdeptcd/>
- <prcpgenrflag/>
- <execprcpuniqno/>
- <sumflag/>
- </prcpinfo>
- </prcplist>
- <patlist>
- <patinfo/>
- </patlist>
- <astlist>
- <astinfo/>
- </astlist>
- <prnlist>
- <prninfo/>
- </prnlist>
- </main>
- <send>
- <srchfromdd/>
- <calcscorcd/>
- <execdeptcd/>
- <sumlistinfo>
- <prcpflag>O</prcpflag>
- </sumlistinfo>
- <endtime/>
- <fromddflag/>
- <fromtm>150001</fromtm>
- <toddflag/>
- <totm>150000</totm>
- <fromdd/>
- <todd/>
- <srchorddeptcd/>
- <issdeptcd/>
- <spcldrug/>
- <maendflag/>
- <ddflag/>
- <srchdeptcd>전체</srchdeptcd>
- <offset>0</offset>
- <pagesize>1000</pagesize>
- <indeptcd/>
- </send>
- <init>
- <sumtmflaglist>
- <flaglist>
- <flagcd/>
- <flagnm/>
- <fromddflag/>
- <fromtm/>
- <toddflag/>
- <totm/>
- </flaglist>
- </sumtmflaglist>
- <updmflaglist>
- <flaglist>
- <fromddflag/>
- <fromtm/>
- <nextfromtm/>
- </flaglist>
- </updmflaglist>
- <chksum>
- <item>
- <chkast/>
- </item>
- </chksum>
- <chkyn/>
- <chktm/>
- <chkinstcd>
- <hosp>
- <hospnm/>
- <hospnm1/>
- </hosp>
- </chkinstcd>
- <sumdtinfo/>
- </init>
- <hidden>
- <chkpid>
- <pharm>
- <pharmflag/>
- </pharm>
- </chkpid>
- </hidden>
- <temp>
- <drugcd/>
- <fromddflag/>
- <toddflag/>
- <fromtm/>
- <totm/>
- <issdeptcd/>
- </temp>
- <result>
- <hidden/>
- </result>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removeNodeset(datagrid1.nodeset);
-
- btn_srch.dispatch("DOMActivate");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- ]]>
- </script>
- <submission id="TXRST06905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/prcplist/prcpinfo"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="860" pageheight="780" guideline="1,839;1,836;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:836px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">약품 재고 환자별 상세 내역</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:15px; width:836px; height:745px; ">
- <group id="group2" style="left:0px; top:5px; width:820px; height:45px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:3px; width:815px; height:37px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" visibility="hidden" style="left:185px; top:15px; width:185px; height:17px; vertical-align:middle; ">조회/마감/재고반영 부서</caption>
- <button id="btn_srch" class="btn3_letter2" navindex="18" visibility="hidden" style="left:700px; top:10px; width:104px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/calcscorcd",model.getValue("/root/temp/drugcd"));
- // model.setValue("/root/send/fromddflag",model.getValue("/root/temp/fromddflag"));
- model.setValue("/root/send/toddflag",model.getValue("/root/temp/toddflag"));
- model.setValue("/root/send/indeptcd",model.getValue("/root/temp/indeptcd"));
- model.setValue("/root/send/issdeptcd",model.getValue("/root/temp/issdeptcd"));
- // model.setValue("/root/send/fromtm",model.getValue("/root/temp/fromtm"));
- // model.setValue("/root/send/totm",model.getValue("/root/temp/totm"));
- /*
- var issdeptcd = model.getValue("/root/temp/issdeptcd");
- if(issdeptcd == "병동약국") {
- model.setValue("/root/send/issdeptcd","3240300000");
- } else if(issdeptcd == "외래약국") {
- model.setValue("/root/send/issdeptcd","3240400000");
- } else if(issdeptcd == "특수조제실") {
- model.setValue("/root/send/issdeptcd","3240807000");
- }*/
- submit("TXRST06905");
-
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption10" class="tit_2" style="left:6px; top:53px; width:183px; height:13px; ">상세 내역</caption>
- <datagrid id="datagrid1" nodeset="/root/main/prcplist/prcpinfo" caption="마감일자^마감시간^적용일자^약품구분^입고부서^병동^등록번호^환자명^약품코드^약품명^불출수량^UNIQNO^재고반영여부" colsep="^" colwidth="60, 60, 60, 60, 107, 65, 75, 80, 100, 180, 60, 80" explorerbar="sortshow" rowheader="seq" style="left:0px; top:85px; width:815px; height:635px; ">
- <col ref="genrdd" style="text-align:center; "/>
- <col ref="genrtm" style="text-align:center; "/>
- <col ref="prcpdd" style="text-align:center; "/>
- <col ref="spcldrug" visibility="hidden" style="text-align:center; "/>
- <col ref="deptnm" style="text-align:center; "/>
- <col ref="wardnm" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="panm" style="text-align:center; "/>
- <col ref="calcscorcd" visibility="hidden"/>
- <col ref="engnm" style="text-align:left; "/>
- <col ref="execprcptotqty" style="text-align:center; "/>
- <col ref="execdd" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="onscroll">
- <![CDATA[
- if(datagrid1.vscroll.attribute("max") == datagrid1.vscroll.attribute("pos")) {
- // end of scroll
- model.setValue("/root/send/offset", datagrid1.rows-datagrid1.fixedRows); // grid의 header row는 제외
- submit("TRADT50203");
- datagrid1.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid1.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- ]]>
- </script>
- </datagrid>
- <line id="line4" class="line_1" style="x1:0px; y1:68px; x2:494px; y2:68px; "/>
- <line id="line1" class="line_1" style="x1:440px; y1:68px; x2:815; y2:68px; "/>
- <button id="btn_excsave" class="btn2_letter4" visibility="hidden" style="left:15px; top:15px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // 조회일자로 ast에 집계 출력된 내역이 있는지 확인.
- submit("TRADT11026");
- var chkast = model.getValue("/root/init/chksum/item/chkast");
-
- // ast에 집계된 내역이 없으면 중지
- if( chkast != "Y") {
- alert("조회된 일자로 발주된 데이터가 없습니다. ");
- model.refresh();
- return;
- }
-
- // 조회일자로 집계된 내역을 출력한다.
- var prcplist = model.getValue("/root/main/prcplist/prcpinfo/inorddeptnm");
- model.setValue("/root/send/prnflag", "E");
-
- if (prcplist == "") {
- model.removeNodeset("/root/main/prcplist/prcpinfo/");
- submit("TRADT11024");
- }
-
-
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
-
- if (file != ""){
- grd.prcp.saveExcel(file);
- }
- model.removeNodeset("/root/send/prcplist/prcpinfo")
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|