123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <?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>
- <wardlist>
- <dept/>
- <ioflag/>
- <execcnt/>
- <endcnt/>
- </wardlist>
- <outlist>
- <dept/>
- <ioflag/>
- <execcnt/>
- <endcnt/>
- </outlist>
- <astlist>
- <dept/>
- <ioflag/>
- <execcnt/>
- <endcnt/>
- </astlist>
- </main>
- <send>
- <search>
- </search>
- <cond>
- <execdd/>
- </cond>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRPAS03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main"/>
- </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">
- <![CDATA[
- /** ----------------------------------------------------------------------
- *
- * 날짜 계산(기준일자를 기준으로 입력일자만큼 이후 날짜를 찾아오기)
- *
- * ----------------------------------------------------------------------
- **/
- function getDateAddc(inputday,addend){
- var backDate ="";
- var rt = 0;
- var yyyy = inputday.substring(0,4) +"";
- var mm = inputday.substring(4,6) +"";
- var dd = inputday.substring(6,8) +"";
- var startDate = new Date(yyyy,(eval(mm)-1),dd);
- startDate.setTime(startDate.getTime()+(86400000*addend));
- NowYear = startDate.getYear();// 년
- NowMonth = startDate.getMonth()+1;// 월
- NowDay = startDate.getDate(); // 일
- backDate += NowYear ; //년도
- if (NowMonth < 10 ) backDate += "0" + NowMonth ;
- else backDate += (startDate.getMonth() + 1);
- if (NowDay < 10 ) backDate += "0" + NowDay ;
- else backDate += (startDate.getDate());
-
- return backDate ;
- }
- function fInitialize(){
- var today = getCurrentDate();
- model.setValue("/root/send/cond/execdd", getDateAddc(today, -1));
-
- model.removeNodeset("/root/main/projlist/list/proj");
- model.refresh();
- }
-
- function fGetActingCountList(){
- model.removeNodeset("/root/main");
- model.refresh();
- submit("TRPAS03401");
- grd_wardlist.colstyle(3,"data","text-align") = "right";
- grd_wardlist.colstyle(4,"data","text-align") = "right";
- grd_outlist.colstyle(3,"data","text-align") = "right";
- grd_outlist.colstyle(4,"data","text-align") = "right";
- grd_astlist.colstyle(3,"data","text-align") = "right";
- grd_astlist.colstyle(4,"data","text-align") = "right";
-
- var xWardPath = "/root/main/wardlist"
- var wRow = grd_wardlist.rows;
- var xOutPath = "/root/main/outlist"
- var oRow = grd_outlist.rows;
- var xAstPath = "/root/main/astlist"
- var aRow = grd_astlist.rows;
-
- for(i=1; i<wRow; i++){
- var execCnt = model.getValue(xWardPath+"["+i+"]/execcnt");
- var endCnt = model.getValue(xWardPath+"["+i+"]/endcnt");
-
- if(execCnt != endCnt){
- grd_wardlist.rowstyle(i, "data", "background-color") = '#FFCCCC';
- }
- }
-
- for(i=1; i<oRow; i++){
- var execCnt = model.getValue(xOutPath+"["+i+"]/execcnt");
- var endCnt = model.getValue(xOutPath+"["+i+"]/endcnt");
-
- if(execCnt != endCnt){
- grd_outlist.rowstyle(i, "data", "background-color") = '#FFCCCC';
- }
- }
- for(i=1; i<aRow; i++){
- var execCnt = model.getValue(xAstPath+"["+i+"]/execcnt");
- var endCnt = model.getValue(xAstPath+"["+i+"]/endcnt");
-
- if(execCnt != endCnt){
- grd_astlist.rowstyle(i, "data", "background-color") = '#FFCCCC';
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,782;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; ">액팅 및 마감건수 조회</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:45px; width:1195px; height:730px; ">
- <group id="group6" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <line id="line18" class="line_4" style="x1:1116px; y1:7px; x2:1116px; y2:29px; border-left-style:solid; "/>
- <button id="button1" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetActingCountList();
-
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:15px; top:8px; width:76px; height:17px; ">액팅일자</caption>
- <input id="ipt_execdd" ref="/root/send/cond/execdd" class="input_default" inputtype="date" style="left:103px; top:8px; width:105px; height:19px; "/>
- </group>
- <line id="line20" class="line_1" style="x1:1px; y1:81px; x2:1194px; y2:81px; "/>
- <caption id="caption8" class="tit_2" style="left:5px; top:66px; width:162px; height:14px; ">병동</caption>
- <datagrid id="grd_wardlist" nodeset="/root/main/wardlist" caption="실시부서^입원/외래^액팅건수^마감건수^seq" colsep="^" colwidth="120, 70, 70, 70" dataheight="23" defaultrows="0" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:1px; top:85px; width:380px; height:640px; ">
- <col ref="dept"/>
- <col ref="ioflag"/>
- <col ref="execcnt"/>
- <col ref="endcnt"/>
- </datagrid>
- <datagrid id="grd_outlist" nodeset="/root/main/outlist" caption="실시부서^입원/외래^액팅건수^마감건수^seq" colsep="^" colwidth="120, 70, 70, 70" dataheight="23" defaultrows="0" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:401px; top:85px; width:380px; height:640px; ">
- <col ref="dept"/>
- <col ref="ioflag"/>
- <col ref="execcnt"/>
- <col ref="endcnt"/>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:405px; top:66px; width:162px; height:14px; ">진료과</caption>
- <datagrid id="grd_astlist" nodeset="/root/main/astlist" caption="실시부서^입원/외래^액팅건수^마감건수^seq" colsep="^" colwidth="120, 70, 70, 70" dataheight="23" defaultrows="0" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:805px; top:85px; width:385px; height:640px; ">
- <col ref="dept"/>
- <col ref="ioflag"/>
- <col ref="execcnt"/>
- <col ref="endcnt"/>
- </datagrid>
- <caption id="caption4" class="tit_2" style="left:805px; top:66px; width:162px; height:14px; ">진료지원</caption>
- </group>
- <group id="group3" style="left:0px; top:13px; width:1190px; height:27px; ">
- <button id="button7" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1120px; top:2px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1189px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|