123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <sumlist>
- <suminfo>
- <groupcd/>
- <prcpcd/>
- <prcpnm/>
- <sumqty/>
- </suminfo>
- </sumlist>
- <prcplist>
- <prcpinfo>
- <flag1/>
- <flag2/>
- <flag3/>
- <pid/>
- <hngnm/>
- <orddeptcd/>
- <depthngnm/>
- <roomcd/>
- <groupcd/>
- <prcpcd/>
- <prcpnm/>
- <prcpqty/>
- <prcptims/>
- <prcpdayno/>
- <totqty/>
- <prcpdd/>
- <rtndd/>
- </prcpinfo>
- </prcplist>
- <sumterm>
- <suminfo>
- <sumflag/>
- <sumdt/>
- <sumfromdd/>
- <sumfromtm/>
- <sumtodd/>
- <sumtotm/>
- <sumnm/>
- </suminfo>
- </sumterm>
- </main>
- <send>
- <srchdata>
- <deptflag/>
- <drugflag>1 2</drugflag>
- <prcpflag>1 2 3</prcpflag>
- <srchfromdd/>
- <srchtodd/>
- <srchorddeptcd/>
- <srchprcpcd/>
- <udsflag>N</udsflag>
- <prcpkindcd>T</prcpkindcd>
- <sumdt/>
- <srchorddeptflag/>
- <sumdeptcd/>
- <srchflag>T</srchflag>
- <srchdeptcd/>
- </srchdata>
- </send>
- <init>
- <orddept>
- <dept>
- <chk/>
- <deptcd/>
- <depthngnm/>
- <orddeptflag/>
- <sumkind/>
- </dept>
- </orddept>
- <sumorddept>
- <dept>
- <chk/>
- <deptcd/>
- <depthngnm/>
- <orddeptflag/>
- <sumkind/>
- </dept>
- </sumorddept>
- </init>
- <hidden>
- <popupmenu>
- <menu>
- <label>전체선택</label>
- <func>fAllCheck</func>
- </menu>
- <menu>
- <label>전체선택해제</label>
- <func>fAllCheckDel</func>
- </menu>
- </popupmenu>
- </hidden>
- <temp>
- <ret/>
- <sumrslt>
- <sumdt/>
- </sumrslt>
- <prntinfo>
- <sumflagnm>주사</sumflagnm>
- <wardnm>외래주사실</wardnm>
- <sumfromdd>20070901</sumfromdd>
- <sumfromtm>0000</sumfromtm>
- <sumtodd>20070930</sumtodd>
- <sumtotm>2400</sumtotm>
- <sumflag/>
- <usetype/>
- <sumdt/>
- </prntinfo>
- <prntprcpinfo>
- <suminfo>
- <wardnm/>
- <prcpcd/>
- <prcpnm/>
- <prcpflag/>
- <sumqty/>
- <keepmthdyn/>
- <keepmthd/>
- <divflag/>
- </suminfo>
- <sumtitle>
- <drugtype/>
- <drugcd/>
- <hngnm/>
- <sumqty/>
- <spcltype/>
- </sumtitle>
- <expnlist>
- <prcpdd/>
- <drugcd/>
- <drugnm/>
- <drugno/>
- <roomcd/>
- <orddeptnm/>
- <pid/>
- <hngnm/>
- <prcpqty/>
- <prcpdayno/>
- <sumqty/>
- </expnlist>
- </prntprcpinfo>
- <prntudsinfo>
- <injinfo>
- <roomcd/>
- <hngnm/>
- <pid/>
- <drugno/>
- <drugcd/>
- <prcpqty/>
- <prcptims/>
- <drugtype/>
- <prcpcd/>
- <sumqty/>
- </injinfo>
- <exuinfo>
- <roomcd/>
- <hngnm/>
- <pid/>
- <drugno/>
- <drugcd/>
- <prcpqty/>
- <prcptims/>
- <drugtype/>
- <prcpcd/>
- <sumqty/>
- </exuinfo>
- <ptpinfo>
- <roomcd/>
- <hngnm/>
- <pid/>
- <drugno/>
- <drugcd/>
- <prcpqty/>
- <prcptims/>
- <drugtype/>
- <prcpcd/>
- <sumqty/>
- </ptpinfo>
- </prntudsinfo>
- <prntpatprcp>
- <prcpdrug>
- <roomcd/>
- <hngnm/>
- <pid/>
- <rrgstno/>
- <sna/>
- <drugno/>
- <drugcd/>
- <prcpvol/>
- <prcpqty/>
- <prcptims/>
- <prcpkindcd/>
- <drughngnm/>
- <prcpdayno/>
- <mthdcnts/>
- </prcpdrug>
- </prntpatprcp>
- <deptcd/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- grd_deptlist.fixedcellcheckbox(0,0) = true;
- model.setValue("/root/send/srchdata/srchfromdd", getCurrentDate());
- model.setValue("/root/send/srchdata/srchtodd", getCurrentDate());
- //rdo_srchflag.dispatch("xforms-value-changed")
- model.refresh();
-
- if ( model.getValue("/root/temp/deptcd") !=""){
- grd_deptlist.visible=false;
- }
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var gv_deptflag="";
-
- function fSelDeptflag(){
- // 진료과
- chk_deptcd.visible=true;
- var deptflag = model.getValue("/root/send/srchdata/deptflag");
- if(deptflag != ""){
- if (deptflag.indexOf("W") >-1 ){
- rdo_prcp.visible=true;
- } else {
- rdo_prcp.visible=false;
- }
- submit("TRADT10301");
-
- //model.setValue("/root/send/srchdata/srchdeptcd", "");
-
- var srchdeptcd = model.GetValue("/root/send/srchdata/srchdeptcd");
-
- var tmp_deptflag = deptflag.split(" ");
-
- for(i=0; i < tmp_deptflag.length; i++){
- if(!isSearchString(gv_deptflag, tmp_deptflag[i])){
- if(srchdeptcd != "" ) srchdeptcd += "|"; // 데이터 연결을 위한 구분자 삽입
- for(var j = 1; j <= getNodesetCount("/root/init/orddept/dept"); j++){
- if(model.getValue("/root/init/orddept/dept["+j+"]/orddeptflag") == tmp_deptflag[i]){ // 부서구분이 같은 상세부서만..
- srchdeptcd += model.getValue("/root/init/orddept/dept["+j+"]/deptcd")+"|";
- //if(j != getNodesetCount("/root/init/orddept/dept")+1) srchdeptcd += "|"; // 가장 마지막은 구분자 삽입하지 않음.
- }
- model.setValue("/root/init/orddept/dept["+j+"]/chk", "Y");
- }
- }
- }
- srchdeptcd = srchdeptcd.substr(0,parseInt(srchdeptcd.length)-1); // 마지막 구분자는 삭제
-
- model.setValue("/root/send/srchdata/srchdeptcd", srchdeptcd);
- gv_deptflag = deptflag; // 이전 선택된 부서구분을 위한 비교변수 설정
- }
- model.refresh();
- }
-
- function fAllCheck(){
-
- model.setValue("/root/send/srchdata/srchdeptcd", "");
-
- var srchdeptcd = "";
-
- for(var i = 1; i <= getNodesetCount("/root/init/orddept/dept"); i++){
- srchdeptcd += model.getValue("/root/init/orddept/dept["+i+"]/deptcd")+"|";
- }
- srchdeptcd = srchdeptcd.substr(0,parseInt(srchdeptcd.length)-1); // 마지막 구분자는 삭제
-
- model.setValue("/root/send/srchdata/srchdeptcd", srchdeptcd);
- model.refresh();
- }
-
- function fAllCheckDel(){
-
- model.setValue("/root/send/srchdata/srchdeptcd", "");
- model.refresh();
- }
- ]]>
- </script>
- <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" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <submission id="TRADT10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/init/orddept"/>
- <submission id="TRADT10302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumlist"/>
- <submission id="TRADT10304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumterm"/>
- <submission id="TRADT10305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumlist"/>
- <submission id="TRADT10306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/init/orddept"/>
- <submission id="TRADT10307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/prcplist"/>
- <submission id="TRADT10309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntprcpinfo"/>
- <submission id="TRADT10310" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" resultref="/root/init/sumorddept"/>
- <submission id="TRADT10312" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntudsinfo"/>
- <submission id="TRADT10313" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntpatprcp"/>
- <submission id="TRADT10314" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntprcpinfo"/>
- <submission id="TXADT10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/ret"/>
- <submission id="TXADT10302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" add="bottom" resultref="/root/temp/ret"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" 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; ">약국 집계 조회/출력</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1194px; height:742px; ">
- <datagrid id="grd_drugsum" nodeset="/root/main/sumterm/suminfo" caption="집계구분^집계일시^집계구간^집계구간^집계구간^집계구간^집계자" colsep="^" colwidth="241, 116, 68, 34, 68, 34, 66" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:609px; top:0px; width:584px; height:160px; ">
- <col ref="sumflag"/>
- <col ref="sumdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="sumfromdd" format="yyyy-mm-dd"/>
- <col ref="sumfromtm" format="hh:nn"/>
- <col ref="sumtodd" format="yyyy-mm-dd"/>
- <col ref="sumtotm" format="hh:nn"/>
- <col ref="sumnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/temp/prntinfo/sumflag", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumflag"));
- model.setValue("/root/temp/prntinfo/sumfromdd", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumfromdd"));
- model.setValue("/root/temp/prntinfo/sumfromtm", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumfromtm"));
- model.setValue("/root/temp/prntinfo/sumtodd", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumtodd"));
- model.setValue("/root/temp/prntinfo/sumtotm", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumtotm"));
- model.setValue("/root/temp/prntinfo/sumdt", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt"));
- model.setValue("/root/send/srchdata/sumdt", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt"));
- submit("TRADT10310");
-
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept[1]/deptcd"));
- model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/sumorddept/dept[1]/orddeptflag"));
- submit("TRADT10305");
-
- model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo[1]/prcpcd"));
- submit("TRADT10307");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_drugsum.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_deptlist" nodeset="/root/init/sumorddept/dept" caption="^코드^부서" colsep="^" colwidth="25, 93, 234" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:2px; top:170px; width:375px; height:245px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="deptcd"/>
- <col ref="depthngnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( ! isDataCell() ) return;
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept["+grd_deptlist.row+"]/deptcd"));
- model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/sumorddept/dept["+grd_deptlist.row+"]/orddeptflag"));
- submit("TRADT10305");
-
- model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo[1]/prcpcd"));
- submit("TRADT10307");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_deptlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:162px; x2:1194px; y2:162px; "/>
- <datagrid id="grd_sumlist" nodeset="/root/main/sumlist/suminfo" class="datagrid2" caption="Group코드^처방코드^처방명^총불출수량" colsep="^" colwidth="89, 89, 120, 49" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:2px; top:420px; width:375px; height:320px; ">
- <col ref="groupcd"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="sumqty" style="text-align:right; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( ! isDataCell() ) return;
- model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo["+grd_sumlist.row+"]/prcpcd"));
- submit("TRADT10307");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_sumlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_prcplist" nodeset="/root/main/prcplist/prcpinfo" caption="구분^구분^구분^등록번호^환자명^진료과코드^진료과^병실^Group코드^처방코드^처방명^1일수량^횟수^일수^불출수량^처방일자^반환일시" colsep="^" colwidth="38, 48, 36, 73, 45, 60, 100, 41, 82, 90, 201, 49, 36, 33, 59, 81, 101, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:380px; top:170px; width:814px; height:570px; ">
- <col ref="flag1"/>
- <col ref="flag2"/>
- <col ref="flag3"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="orddeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="depthngnm" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="groupcd" visibility="visible" style="text-align:center; "/>
- <col ref="prcpcd" style="text-align:center; "/>
- <col ref="prcpnm"/>
- <col ref="prcpqty" style="text-align:right; "/>
- <col ref="prcptims"/>
- <col ref="prcpdayno" style="text-align:right; "/>
- <col ref="totqty" style="text-align:right; "/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rtndd"/>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1194px; height:27px; ">
- <button id="button1" class="btn6_letter5" style="left:190px; top:5px; width:92px; height:22px; ">
- <caption>집계표출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeNode("/root/temp/prntprcpinfo/sumtitle");
- submit("TRADT10314"); // 집계구간내 향정,영양수액,고가 품목/집계량 조회
- if(model.getValue("/root/temp/prntprcpinfo/sumtitle/drugcd") != ""){
- for(var i = 0; i < 2; i++){
- if(i == 0){
- model.setValue("/root/temp/prntinfo/usetype", "<약제팀용>");
- }else model.setValue("/root/temp/prntinfo/usetype", "<병동용>");
- model.refresh();
- exeReportPreview("RPADT10306", "XMLSTR", "", "", "true","","","","","true"); // 집계표 맨 앞장 (향정신성 및 고가의약품 총집계량)
- if(getNodesetCount("/root/temp/prntprcpinfo/expnlist") > 0){
- exeReportPreview("RPADT10307", "XMLSTR", "", "", "true","","","","","true"); // 집계표 맨 앞장 (고가리스트)
- }
- }
- }
-
- for(var i = grd_deptlist.fixedRows; i < grd_deptlist.rows; i++){
- if ( model.getValue("/root/init/sumorddept/dept["+i+"]/chk")=="Y"){
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept["+i+"]/deptcd"));
-
- if(submit("TRADT10309")){ // 병동별 집계
- var item_cnt = getNodesetCount("/root/temp/prntprcpinfo/suminfo");
- model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/temp/prntprcpinfo/suminfo["+item_cnt+"]/wardnm"));
-
- var div_cnt = 1;
- for(var j = 1; j <= item_cnt ; j++){
- if((j-1) % 10 == 0){
- div_cnt ++;
- }
- if(model.getValue("/root/temp/prntprcpinfo/suminfo["+j+"]/keepmthdyn") == "Y"){
- model.setValue("/root/temp/prntprcpinfo/suminfo["+j+"]/divflag", div_cnt);
- }else{
- model.setValue("/root/temp/prntprcpinfo/suminfo["+j+"]/divflag", "-");
- }
- }
- for(var cnt = 0; cnt < 2; cnt++){
- if(cnt == 0){
- model.setValue("/root/temp/prntinfo/usetype", "<약제팀용>");
- }else model.setValue("/root/temp/prntinfo/usetype", "<병동용>");
- exeReportPreview("RPADT10301", "XMLSTR", "", "", "true","","","","","true");
- }
- }
- //exeReportPreview("RPADT10301", "XMLSTR", "", "", "true","","","","","true");
- }
- }
- //exeReportPreview("RPADT10300", "XML", "/root/send/srchdata");
- //exeReportPreview("RPADT10300", "XMLSTR", "", "", "true","","","","","true");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn3_letter4" visibility="hidden" style="left:105px; top:5px; width:80px; height:22px; ">
- <caption>약국집계</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMADT10310",0,20,150,"SMADT10310","","");
-
- submit("TRADT10304"); //집계리스트 조회
-
- ]]>
- </script>
- </button>
- <button id="button3" class="btn6_letter6" style="left:285px; top:5px; width:104px; height:22px; ">
- <caption>Fill List출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i = grd_deptlist.fixedRows; i < grd_deptlist.rows; i++){
- if ( model.getValue("/root/init/sumorddept/dept["+i+"]/chk")=="Y"){
- //UDS로 집계된 사항만 Fill List로 출력 가능
- if(model.getValue("/root/init/sumorddept/dept/sumkind") == "U"){
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept["+i+"]/deptcd"));
- model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/init/sumorddept/dept["+i+"]/depthngnm"));
-
- submit("TRADT10312");
- // 주사제 fill list 출력
- if(model.getValue("/root/temp/prntudsinfo/injinfo/pid") != ""){
- exeReportPreview("RPADT10302", "XMLSTR", "", "", "true","","","","","true");
- }
- // 수액
- if(model.getValue("/root/temp/prntudsinfo/exuinfo/pid") != ""){
- exeReportPreview("RPADT10303", "XMLSTR", "", "", "true","","","","","true");
- }
- // PTP
- if(model.getValue("/root/temp/prntudsinfo/ptpinfo/pid") != ""){
- exeReportPreview("RPADT10304", "XMLSTR", "", "", "true","","","","","true");
- }
- }else{
-
- messageBox("UDS 집계항목을", "C002");
- break;
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="button4" class="btn3_letter6" style="left:0px; top:5px; width:104px; height:22px; ">
- <caption>수액집계조회</caption>
- </button>
- <button id="button6" class="btn6_letter6" style="left:392px; top:5px; width:104px; height:22px; ">
- <caption>환자별검수지</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i = grd_deptlist.fixedRows; i < grd_deptlist.rows; i++){
- if ( model.getValue("/root/init/sumorddept/dept["+i+"]/chk")=="Y"){
- //UDS로 집계된 사항만 환자별검수지 출력 가능
- //if(model.getValue("/root/init/orddept/dept/sumkind") == "U"){
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept["+i+"]/deptcd"));
- model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/init/sumorddept/dept["+i+"]/depthngnm"));
-
- submit("TRADT10313");
- if(model.getValue("/root/temp/prntpatprcp/prcpdrug/pid") != ""){
- exeReportPreview("RPADT10305", "XMLSTR", "", "", "true","","","","","true");
- }
- /*
- }else{
- messageBox("UDS 집계항목을", "C002");
- break;
- }
- */
- }
- }
- ]]>
- </script>
- </button>
- <button id="button7" class="btn6_letter4" style="left:500px; top:5px; width:80px; height:22px; ">
- <caption>네임카드</caption>
- </button>
- <button id="button5" class="btn4_letter4" visibility="hidden" style="left:1110px; top:5px; width:80px; height:22px; ">
- <caption>집계취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("집계취소를 ","Q004")==6 ) {
- submit("TXADT10302");
- submit("TRADT10304");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:40px; width:605px; height:160px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:605px; height:154px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:5px; top:36px; width:60px; height:17px; ">대상 :</caption>
- <caption id="caption1" class="search_name" style="left:5px; top:11px; width:90px; height:17px; ">조회구간 :</caption>
- <caption id="caption4" class="search_name" style="left:5px; top:58px; width:70px; height:17px; ">구분1 :</caption>
- <caption id="caption5" class="search_name" style="left:5px; top:104px; width:70px; height:17px; ">구분2 :</caption>
- <select id="checkbox1" ref="/root/send/srchdata/drugflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:150px; top:58px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>약</label>
- <value>1</value>
- </item>
- <item>
- <label>주사</label>
- <value>2</value>
- </item>
- </choices>
- </select>
- <select id="checkbox3" ref="/root/send/srchdata/prcpflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:98px; top:129px; width:200px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>일반</label>
- <value>1</value>
- </item>
- <item>
- <label>선처치</label>
- <value>2</value>
- </item>
- <item>
- <label>Set처방</label>
- <value>3</value>
- </item>
- </choices>
- </select>
- <line id="line13" class="line_4" style="x1:525px; y1:70px; x2:525px; y2:148px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:535px; top:95px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdata/sumdeptcd", model.getValue("/root/temp/deptcd"));
- chk_deptcd.visible = false;
- var srchdeptcd = new Array();
- var chkcnt = 0;
- var chkrow = new Array();
- var srchflag = model.getValue("/root/send/srchdata/srchflag");
- if(srchflag == "T"){
- // 조회시 대상에 대한 전체 부서 체크박스 선택
- if(model.getValue("/root/send/srchdata/deptflag") != "" && model.getValue("/root/send/srchdata/srchdeptcd") == ""){
- //fSelDeptflag();
- messageBox("대상의 상세부서를","C002");
- chk_deptcd.visible=true;
- return;
- }
- submit("TRADT10304");
- }else if(srchflag == "P"){
-
-
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_sumdt1" ref="/root/send/srchdata/srchfromdd" class="input_default" inputtype="date" style="left:98px; top:11px; width:95px; height:19px; "/>
- <input id="ipt_sumdt2" ref="/root/send/srchdata/srchtodd" class="input_default" inputtype="date" style="left:210px; top:11px; width:95px; height:19px; "/>
- <caption id="caption32" style="left:197px; top:10px; width:15px; height:20px; vertical-align:middle; ">~</caption>
- <select1 id="rdo_prcp" ref="/root/send/srchdata/prcpkindcd" appearance="full" cellspacing="5" cols="6" overflow="visible" style="left:98px; top:104px; width:205px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>정규</label>
- <value>R</value>
- </item>
- <item>
- <label>추가</label>
- <value>A</value>
- </item>
- <item>
- <label>응급/Admission</label>
- <value>E</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio1" ref="/root/send/srchdata/udsflag" appearance="full" cols="1" rows="2" vcellspacing="8" overflow="visible" style="left:98px; top:55px; width:50px; height:50px; border-style:none; ">
- <choices>
- <item>
- <label>일반</label>
- <value>N</value>
- </item>
- <item>
- <label>UDS</label>
- <value>U</value>
- </item>
- </choices>
- </select1>
- <select id="checkbox4" ref="/root/send/srchdata/drugflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:150px; top:83px; width:175px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>PTP</label>
- <value>3</value>
- </item>
- <item>
- <label>주사</label>
- <value>4</value>
- </item>
- <item>
- <label>외용,수제</label>
- <value>5</value>
- </item>
- </choices>
- </select>
- <caption id="caption3" class="search_name" style="left:5px; top:129px; width:70px; height:17px; ">구분3 :</caption>
- <select id="chk_deptflag" ref="/root/send/srchdata/deptflag" class="checkbox_search" overflow="visible" appearance="full" cols="8" style="left:100px; top:36px; width:500px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>병동</label>
- <value>W</value>
- </item>
- <item>
- <label>응급실</label>
- <value>E</value>
- </item>
- <item>
- <label>수술실</label>
- <value>O</value>
- </item>
- <item>
- <label>외래주사실</label>
- <value>J</value>
- </item>
- <item>
- <label>검사부서</label>
- <value>X</value>
- </item>
- <item>
- <label>진료부서</label>
- <value>D</value>
- </item>
- <item>
- <label>복막투석실</label>
- <value>A</value>
- </item>
- <item>
- <label>건진</label>
- <value>S</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //fSelDeptflag();
-
- // 진료과
- chk_deptcd.visible=true;
- var deptflag = model.getValue("/root/send/srchdata/deptflag");
- if(deptflag != ""){
- if (deptflag.indexOf("W") >-1 ){
- rdo_prcp.visible=true;
- } else {
- rdo_prcp.visible=false;
- }
- submit("TRADT10301");
-
- //model.setValue("/root/send/srchdata/srchdeptcd", "");
-
- var srchdeptcd = model.GetValue("/root/send/srchdata/srchdeptcd");
-
- var tmp_deptflag = deptflag.split(" ");
- /*
- for(i=0; i < tmp_deptflag.length; i++){
- if(!isSearchString(gv_deptflag, tmp_deptflag[i])){
- if(srchdeptcd != "" ) srchdeptcd += "|"; // 데이터 연결을 위한 구분자 삽입
- for(var j = 1; j <= getNodesetCount("/root/init/orddept/dept"); j++){
- if(model.getValue("/root/init/orddept/dept["+j+"]/orddeptflag") == tmp_deptflag[i]){ // 부서구분이 같은 상세부서만..
- srchdeptcd += model.getValue("/root/init/orddept/dept["+j+"]/deptcd")+"|";
- //if(j != getNodesetCount("/root/init/orddept/dept")+1) srchdeptcd += "|"; // 가장 마지막은 구분자 삽입하지 않음.
- }
- model.setValue("/root/init/orddept/dept["+j+"]/chk", "Y");
- }
- }
- }
- srchdeptcd = srchdeptcd.substr(0,parseInt(srchdeptcd.length)-1); // 마지막 구분자는 삭제
- */
- //model.setValue("/root/send/srchdata/srchdeptcd", srchdeptcd);
- //gv_deptflag = deptflag; // 이전 선택된 부서구분을 위한 비교변수 설정
- }
- model.refresh();
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- // 진료과
- chk_deptcd.visible=true;
- var deptflag = model.getValue("/root/send/srchdata/deptflag");
- if(deptflag != ""){
- if (deptflag.indexOf("W") >-1 ){
- rdo_prcp.visible=true;
- } else {
- rdo_prcp.visible=false;
- }
- submit("TRADT10301");
-
- // 체크박스 해제한 항목을 조회조건에서 제외 - 그외 기존 체크항목 유지
- var srchdeptcd = "";
- var tmp_srchdeptcd = model.getValue("/root/send/srchdata/srchdeptcd").split("|"); //기존 선택한 [상세부서]목록 설정
- for(var i = 1; i <= getNodesetCount("/root/init/orddept/dept"); i++){ // 새로조회된 [상세부서]목록만큼.. * 인스턴스배열은 1부터..
- if(isSearchString(deptflag, model.getValue("/root/init/orddept/dept["+i+"]/orddeptflag"))){ // 새로 조회된 부서 중 이전 선택한 항목에 대해서만.. [부서구분]으로 비교
- for(j = 0; j < tmp_srchdeptcd.length; j++){
- if(model.getValue("/root/init/orddept/dept["+i+"]/deptcd") == tmp_srchdeptcd[j]){ // 신/구 [상세부서] 비교
- srchdeptcd += tmp_srchdeptcd[j]+"|";
- //if(i != (getNodesetCount("/root/init/orddept/dept")+1)) srchdeptcd += "|"; // 가장 마지막은 구분자 삽입하지 않음.
- }
- model.setValue("/root/init/orddept/dept["+i+"]/chk", "Y");
- }
- }
- }
- srchdeptcd = srchdeptcd.substr(0,parseInt(srchdeptcd.length)-1); // 마지막 구분자는 삭제
- model.setValue("/root/send/srchdata/srchdeptcd", srchdeptcd);
- gv_deptflag = deptflag; // 이전 선택된 부서구분을 위한 비교변수 설정
-
- }else{
- // 선택한 대상부서가 없을시 부서 조회조건 초기화
- model.resetInstanceNode("/root/init/orddept/dept");
- model.setValue("/root/send/srchdata/srchdeptcd", "");
- gv_deptflag = "";
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- chk_deptcd.visible=true;
- ]]>
- </script>
- </select>
- <select1 id="rdo_srchflag" ref="/root/send/srchdata/srchflag" appearance="full" cellspacing="5" cols="3" rows="1" overflow="visible" style="left:407px; top:11px; width:183px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>시간별</label>
- <value>T</value>
- </item>
- <item>
- <label>선불출</label>
- <value>P</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var srchflag = model.getValue("/root/send/srchdata/srchflag");
- if(srchflag == "T"){
- //group5.visible = false;
- //group6.visible = false;
- grd_drugsum.visible = true;
- chk_deptflag.disabled = false;
- //model.resetInstanceNode("/root/init/orddept");
- }else if(srchflag == "D"){
- group5.visible = true;
- group6.visible = true;
- chk_deptflag.disabled = false;
- //model.resetInstanceNode("/root/init/orddept");
- }else if(srchflag == "P"){
- //group5.visible = false;
- //group6.visible = false;
- grd_drugsum.visible = false;
- chk_deptflag.disabled = true;
- model.resetInstanceNode("/root/init/orddept");
- model.setValue("/root/send/srchdata/deptflag", "");
- model.setValue("/root/send/srchdata/srchdeptcd","");
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption7" class="search_name" style="left:315px; top:10px; width:90px; height:17px; ">조회구분 :</caption>
- </group>
- <select id="chk_deptcd" ref="/root/send/srchdata/srchdeptcd" visibility="visible" overflow="visible" appearance="full" cols="3" sep="|" style="left:100px; top:95px; width:100px; height:20px; background-color:#f8f8f8; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onmousemove">
- <![CDATA[
- chk_deptcd.visible=true;
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- chk_deptcd.visible=false;
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("chk_deptcd", false , "/root/hidden/popupmenu/menu", "label", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </select>
- </xhtml:body>
- </xhtml:html>
|