123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381 |
- <?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>
- <prcplist>
- <prcpinfo>
- <inorddeptnm/>
- <calcscorcd/>
- <hngnm/>
- <totqty/>
- <execdeptcd/>
- <eryn/>
- </prcpinfo>
- </prcplist>
- <patlist>
- <patinfo/>
- </patlist>
- </main>
- <send>
- <srchfromdd/>
- <calcscorcd/>
- <execdeptcd/>
- <sumlistinfo>
- <prcpflag>O</prcpflag>
- </sumlistinfo>
- <endtime/>
- <fromddflag/>
- <fromtm/>
- <toddflag/>
- <totm/>
- <fromdd/>
- <todd/>
- <srchorddeptcd/>
- <endtimenm/>
- <eryn/>
- </send>
- <init>
- <sumtmflaglist>
- <flaglist>
- <flagcd/>
- <flagnm/>
- <fromddflag/>
- <fromtm/>
- <toddflag/>
- <totm/>
- </flaglist>
- </sumtmflaglist>
- <updmflaglist>
- <flaglist>
- <fromddflag/>
- <fromtm/>
- </flaglist>
- </updmflaglist>
- </init>
- <hidden>
- </hidden>
- </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"/>
- <submission id="TRADT11021" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prcplist"/>
- <submission id="TRADT11022" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/patlist"/>
- <submission id="TRADT11023" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sumlistinfo" replace="instance" resultref="/root/init/updmflaglist"/>
- <submission id="TRADT10206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sumlistinfo" replace="instance" resultref="/root/init/sumtmflaglist"/>
- <submission id="TXADT10326" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/prcplist/prcpinfo" replace="instance" resultref="/root/hidden/result"/>
- <submission id="TXADT10327" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/prcplist/prcpinfo" replace="instance" resultref="/root/hidden/result"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- model.removenode("/root/main/prcplist");
- model.setValue("/root/send/srchfromdd", getCurrentDate());
- submit("TRADT10206");
-
- submit("TRADT11023");
-
- var fromday = model.getValue("/root/init/updmflaglist/flaglist/fromddflag");
- var fromtime = model.getValue("/root/init/updmflaglist/flaglist/fromtm");
-
- var sumtm = (fromday.toDate("YYYYMMDD")).getDateFormat("YYYYMMDD") + " " + fromtime;
- alert("마지막 집계 시간은"+ fromday+" "+fromtime+ " "+"입니다. 다음 집계 시작시간은"+ fromday+" "+fromtime + "입니다.");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- //부서별약품집계조회(수액집계조회) 화면을 통해 수액집계조회 호출하는 경우 "마감시간관리"설정 불가하도록 처리 (2009.05.27 JJE)
- //var openerScrnID = opener.javascript.getParameter("SMADT11000_openerscrnid");
- var openerAuth = opener.javascript.getParameter("SMADT11000_openerauth");
- //if( openerScrnID == "SMADT10800" ){
- if( openerAuth == "R" ){ //읽기 권한 화면에서 오픈한 경우 마감시간관리 버튼 숨김
- btn_setendtm.visible = false;
- }
- ]]>
- </script>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1225;1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">수액 집계조회(Ver 0525)</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:5px; width:1195px; height:40px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:3px; width:1194px; height:37px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" style="x1:1091px; y1:7px; x2:1091px; y2:34px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption4" class="search_name" style="left:15px; top:10px; width:104px; height:17px; ">검색일자 :</caption>
- <input id="input5" ref="/root/send/srchfromdd" class="input_search" inputtype="date" style="left:105px; top:10px; width:99px; height:19px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1115px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //model.removeNodeset("/root/main/prcplist/prcpinfo");
- //model.refresh();
- // submit("TRADT10701");
- // if ( model.getValue("/root/send/endflag") =="N"){
- // for ( var i = 1 ; i<grd_prcp.rows; i++){
- // grd_prcp.addStatus(i,"update");
- // }
- // }
- // var sumtm = substr(fromday, 0, 4)+"/"+substr(fromday,4,6)+"/"+substr(fromday,6,8)+" "+substr(fromtime,0,2)+":"+substr(fromtime,2,4)+":"+substr(fromtime,4,6);
-
- //alert(sumtm);
-
- model.removeNodeset("/root/main/prcplist/prcpinfo");
-
- var fromddflag = model.getValue("/root/send/fromddflag");
- var fromdd = model.getValue("/root/send/fromdd");
- var fromtm = model.getValue("/root/send/fromtm");
- var toddflag = model.getValue("/root/send/toddflag");
- var todd = model.getValue("/root/send/todd");
- var totm = model.getValue("/root/send/totm");
- var prcpdd = model.getValue("/root/send/srchfromdd");
-
- if(fromddflag == "0") {
- fromdd = ((prcpdd.toDate("YYYYMMDD")).getAddDate(-1,"D")).getDateFormat("YYYYMMDD") ;
- model.setValue("/root/send/fromdd", fromdd);
- } else {
- fromdd = prcpdd ;
- model.setValue("/root/send/fromdd", fromdd);
- }
-
- if(toddflag == "0") {
- todd = ((prcpdd.toDate("YYYYMMDD")).getAddDate(-1,"D")).getDateFormat("YYYYMMDD") ;
- model.setValue("/root/send/todd", todd);
- } else {
- todd = prcpdd ;
- model.setValue("/root/send/todd", todd);
- }
- if ( fromtm == "" ){
-
- fromtm ="0000";
- model.setValue("/root/send/fromtm",fromtm);
-
- }
- if ( totm == "" ){
- totm ="2359";
- model.setValue("/root/send/totm",totm);
- }
- fromtm = fromtm.substring( 0,4 )+ "00";
- totm = totm.substring( 0,4 ) + "59";
-
-
-
- model.setValue("/root/send/fromtm", fromtm);
- model.setValue("/root/send/totm", totm);
-
-
-
-
- model.refresh();
-
- submit("TRADT11021");
- ]]>
- </script>
- </button>
- <select1 id="cmb_sumtmflag" ref="/root/send/endtime" class="combo_search" appearance="minimal" style="left:325px; top:10px; width:260px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/sumtmflaglist/flaglist">
- <label ref="flagnm"/>
- <value ref="flagcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var idx = cmb_sumtmflag.mouseRow + 1;
-
- var fromddflag = model.getValue("/root/init/sumtmflaglist/flaglist[" + idx + "]/fromddflag");
- var fromtm = model.getValue("/root/init/sumtmflaglist/flaglist[" + idx + "]/fromtm");
- var toddflag = model.getValue("/root/init/sumtmflaglist/flaglist[" + idx + "]/toddflag");
- var totm = model.getValue("/root/init/sumtmflaglist/flaglist[" + idx + "]/totm");
-
- model.setValue("/root/send/fromddflag", fromddflag);
- model.setValue("/root/send/fromtm", fromtm);
- model.setValue("/root/send/toddflag", toddflag);
- model.setValue("/root/send/totm", totm);
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_totm" ref="/root/send/totm" class="input_search" autonext="false" maxlength="5" format="hh:nn" style="left:790px; top:10px; width:50px; height:19px; "/>
- <select1 id="cmb_fromddflag" ref="/root/send/fromddflag" class="combo_search" appearance="minimal" style="left:590px; top:10px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>전일</label>
- <value>0</value>
- </item>
- <item>
- <label>당일</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_fromtm" ref="/root/send/fromtm" class="input_search" autonext="false" maxlength="5" format="hh:nn" style="left:655px; top:10px; width:45px; height:19px; "/>
- <select1 id="cmb_toddflag" ref="/root/send/toddflag" class="combo_search" appearance="minimal" style="left:725px; top:10px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>전일</label>
- <value>0</value>
- </item>
- <item>
- <label>당일</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <caption id="caption17" class="search_name" style="left:240px; top:8px; width:80px; height:23px; vertical-align:middle; ">마감구분</caption>
- <caption id="caption18" style="left:705px; top:9px; width:30px; height:25px; font-weight:bold; vertical-align:middle; ">~</caption>
- <button id="button2" class="btn1_letter4" style="left:1030px; top:10px; width:80px; height:22px; ">
- <caption>집계 조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removeNodeset("/root/main/prcplist/prcpinfo");
-
- var fromddflag = model.getValue("/root/send/fromddflag");
- var fromdd = model.getValue("/root/send/fromdd");
- var fromtm = model.getValue("/root/send/fromtm");
- var toddflag = model.getValue("/root/send/toddflag");
- var todd = model.getValue("/root/send/todd");
- var totm = model.getValue("/root/send/totm");
- var prcpdd = model.getValue("/root/send/srchfromdd");
-
- if(toddflag == "0") {
- todd = ((prcpdd.toDate("YYYYMMDD")).getAddDate(-1,"D")).getDateFormat("YYYYMMDD") ;
- model.setValue("/root/send/todd", todd);
- } else {
- todd = prcpdd ;
- model.setValue("/root/send/todd", todd);
- }
-
- if ( totm == "" ){
- totm = getCurrentTime();
- var totm1 = totm.substring(0,4) + "59";
- model.setValue("/root/send/totm",totm1);
- } else {
- totm = totm.substring( 0,4 ) + "59";
- var totm1 = getCurrentTime();
- totm1 = totm1.substring(0.4) + "59";
- if (totm < totm1) {
- model.setValue("/root/send/totm", totm);
- } else {
- model.setValue("/root/send/totm", totm1);
- }
- }
- var fromday = model.getValue("/root/init/updmflaglist/flaglist/fromddflag");
- var fromtime = model.getValue("/root/init/updmflaglist/flaglist/fromtm");
- var today = model.getValue("/root/send/todd");
- var totime = model.getValue("/root/send/totm");
- model.setValue("/root/send/fromdd", fromday);
- model.setValue("/root/send/fromtm", fromtime);
- var frday = model.getValue("/root/send/fromdd");
- var ftime = model.getValue("/root/send/fromtm");
- model.refresh();
-
- var fdy = (frday.toDate("YYYYMMDD")).getDateFormat("YYYY/MM/DD");
- var ftm = (ftime.substring(0,2) + ":" + ftime.substring(2,4) + ":" + ftime.substring(4,6));
- var tdy = (today.toDate("YYYYMMDD")).getDateFormat("YYYY/MM/DD");
- var ttm = (totime.substring(0,2) + ":" + totime.substring(2,4) + ":" + totime.substring(4,6));
- alert("집계조회 시간은"+ fdy+" "+ ftm + "에서"+ tdy+ " " + ttm + "입니다");
-
- submit("TRADT11021");
-
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_prcp" nodeset="/root/main/prcplist/prcpinfo" caption="부서명^코드^약품명^집계량^caption1" colsep="^" colwidth="99, 74, 159, 57, 100" explorerbar="sortshow" rowheader="update" rowsep="|" style="left:0px; top:75px; width:435px; height:668px; ">
- <col ref="inorddeptnm"/>
- <col ref="calcscorcd" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="totqty" style="text-align:right; "/>
- <col ref="execdeptcd" visibility="hidden"/>
- <col ref="eryn" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/send/execdeptcd", model.getValue("/root/main/prcplist/prcpinfo[" + grd_prcp.row + "]/execdeptcd"));
- model.setValue("/root/send/calcscorcd", model.getValue("/root/main/prcplist/prcpinfo[" + grd_prcp.row + "]/calcscorcd"));
- model.setValue("/root/send/eryn", model.getValue("/root/main/prcplist/prcpinfo[" +grd_prcp.row +"]/eryn"));
- submit("TRADT11022");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_prcp.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption10" class="tit_2" style="left:6px; top:58px; width:183px; height:14px; ">수액 집계리스트</caption>
- <datagrid id="datagrid1" nodeset="/root/main/patlist/patinfo" caption="집계^처방종류^I/O^병실^등록번호^이름^코드^약품명^집계량" colsep="^" colwidth="35, 60, 32, 45, 99, 100, 74, 159, 57" explorerbar="sortshow" rowheader="update" rowsep="|" style="left:440px; top:75px; width:754px; height:668px; ">
- <col ref="chk" type="checkbox"/>
- <col ref="prcpkindcdnm"/>
- <col ref="ioflag"/>
- <col ref="roomcd"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="calcscorcd" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="totqty" style="text-align:right; "/>
- </datagrid>
- <line id="line4" class="line_1" style="x1:1px; y1:73px; x2:433px; y2:73px; "/>
- <line id="line1" class="line_1" style="x1:440px; y1:73px; x2:1194px; y2:73px; "/>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button1" class="btn6_letter2" style="left:65px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/endtimenm",cmb_sumtmflag.label);
- exeReportPreview("RPADT11001", "XMLSTR", "", "", "false","","","","","false");
- ]]>
- </script>
- </button>
- <button id="btn_setendtm" class="btn3_letter6" navindex="18" style="left:126px; top:5px; width:104px; height:22px; ">
- <caption>마감시간관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fSetEndTime();
- modal("SPADT64100");
- if(getParameter("SPADT64100_param") == "Y") {
- //model.makeValue("/root/send/sumlistinfo/prcpflag", "A");
- if(submit("TRADT10206")) {
- var idx = cmb_sumtmflag.value;
- var fromddflag = model.getValue("/root/init/sumtmflaglist/flaglist[flagcd = '" + idx + "']/fromddflag");
- var fromtm = model.getValue("/root/init/sumtmflaglist/flaglist[flagcd = '" + idx + "']/fromtm");
- var toddflag = model.getValue("/root/init/sumtmflaglist/flaglist[flagcd = '" + idx + "']/toddflag");
- var totm = model.getValue("/root/init/sumtmflaglist/flaglist[flagcd = '" + idx + "']/totm");
-
- model.setValue("/root/send/fromddflag", fromddflag);
- model.setValue("/root/send/fromtm", fromtm);
- model.setValue("/root/send/toddflag", toddflag);
- model.setValue("/root/send/totm", totm);
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter2" style="left:5px; top:5px; width:56px; height:22px; ">
- <caption>집계</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/endtimenm",cmb_sumtmflag.label);
- submit("TXADT10326");
- submit("TXADT10327");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|