123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : 건수분석자료.xrw
- * 설 명 : 건수분석자료
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 송요셉
- * 작 성 일 : 2007.07.04
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <usecntlist>
- <tclsnm/>
- <avgcnt/>
- <patcnt/>
- <testcnt/>
- <tab1/>
- <tclsnm2/>
- <avgcnt2/>
- <patcnt2/>
- <testcnt2/>
- <tab2/>
- <tclsnm3/>
- <avgcnt3/>
- <patcnt3/>
- <testcnt3/>
- </usecntlist>
- <workday/>
- </main>
- <send>
- <srchym/>
- <srchym2/>
- <srchbdioflag/>
- <workday/>
- </send>
- <init>
- </init>
- <hidden>
- <workday/>
- <daypatcnt/>
- <daytestcnt/>
- <allpatsum/>
- <alltestsum/>
- <testcntsum/>
- </hidden>
- </root>
- </instance>
- <script src="../../../com/commonweb/js/common.js" type="javascript"/>
- <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
- <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
- <script ev:event="xforms-ready" type="javascript">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <submission id="TRLNP00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/usecntlist"/>
- <submission id="TXLNP00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fSetInit(){
- model.removeNodeset("/root/main/usecntlist");
- var toDay = getCurrentDate();
- var toDays = toDay.substr(0,6)
- model.setValue("/root/send/srchbdioflag","O");
- model.setValue("/root/send/srchym", toDays);
- model.setValue("/root/send/srchym2", toDays);
- input3.attribute("format") = "yyyy-mm";
- input7.attribute("format") = "yyyy-mm";
- model.setValue("/root/hidden/workday", "");
- model.setValue("/root/hidden/daypatcnt", "");
- model.setValue("/root/hidden/daytestcnt", "");
- model.refresh();
- }
-
- function fGetUseCntList(){
-
- model.setValue("/root/hidden/workday", "");
- model.setValue("/root/hidden/daypatcnt", "");
- model.setValue("/root/hidden/daytestcnt", "");
- model.removeNodeset("/root/main/workday");
- model.removeNodeset("/root/main/usecntlist");
-
- submit("TRLNP00501");
-
-
-
-
- model.setValue("/root/hidden/alltestsum", model.getValue("/root/main/usecntlist[1]/alltestsum"));
- model.setValue("/root/hidden/allpatsum", model.getValue("/root/main/usecntlist[1]/allpatsum"));
- model.setValue("/root/hidden/testcntsum", model.getValue("/root/main/usecntlist[1]/testcntsum"));
- model.setValue("/root/hidden/workday", model.getValue("/root/main/workday/cnt"));
-
- if(model.getValue("/root/hidden/workday") != ""){
- model.refresh();
- fCalcnt();
- }
-
- model.refresh();
- }
-
- function fCalcnt(){
-
-
- model.setvalue("/root/hidden/workday",input2.currentText);
-
- var daypatcnt = model.getValue("/root/main/usecntlist[1]/allpatsum") / model.getValue("/root/hidden/workday");
- var daytestcnt = model.getValue("/root/main/usecntlist[1]/alltestsum") / model.getValue("/root/hidden/workday");
-
- var ext = Math.pow(10, 2);
- var caldaypatcnt = Math.round(daypatcnt * ext) / ext;
- var caldaytestcnt = Math.round(daytestcnt * ext) / ext;
-
-
-
- model.setValue("/root/hidden/daypatcnt", caldaypatcnt);
- model.setValue("/root/hidden/daytestcnt", caldaytestcnt);
-
- model.refresh();
-
- }
-
- function setValueMove(){
-
- model.setValue("/root/main/usecntlist[25]/tclsnm3", "검사항목수");
- model.setValue("/root/main/usecntlist[24]/tclsnm3", "일평균 실건수");
- model.setValue("/root/main/usecntlist[23]/tclsnm3", "일평균 환자수");
- model.setValue("/root/main/usecntlist[22]/tclsnm3", "실건수 합계");
- model.setValue("/root/main/usecntlist[21]/tclsnm3", "환자수 합계");
- model.setValue("/root/main/usecntlist[20]/tclsnm3", "근무일수");
-
- model.setValue("/root/main/usecntlist[25]/avgcnt3", model.getValue("/root/hidden/testcntsum"));
- model.setValue("/root/main/usecntlist[24]/avgcnt3", model.getValue("/root/hidden/daytestcnt"));
- model.setValue("/root/main/usecntlist[23]/avgcnt3", model.getValue("/root/hidden/daypatcnt"));
- model.setValue("/root/main/usecntlist[22]/avgcnt3", model.getValue("/root/hidden/alltestsum"));
- model.setValue("/root/main/usecntlist[21]/avgcnt3", model.getValue("/root/hidden/allpatsum"));
- model.setValue("/root/main/usecntlist[20]/avgcnt3", model.getValue("/root/hidden/workday"));
- }
-
- function setValueReMove(){
-
- model.setValue("/root/main/usecntlist[25]/tclsnm3", "");
- model.setValue("/root/main/usecntlist[24]/tclsnm3", "");
- model.setValue("/root/main/usecntlist[23]/tclsnm3", "");
- model.setValue("/root/main/usecntlist[22]/tclsnm3", "");
- model.setValue("/root/main/usecntlist[21]/tclsnm3", "");
- model.setValue("/root/main/usecntlist[20]/tclsnm3", "");
-
- model.setValue("/root/main/usecntlist[25]/avgcnt3", "");
- model.setValue("/root/main/usecntlist[24]/avgcnt3", "");
- model.setValue("/root/main/usecntlist[23]/avgcnt3", "");
- model.setValue("/root/main/usecntlist[22]/avgcnt3", "");
- model.setValue("/root/main/usecntlist[21]/avgcnt3", "");
- model.setValue("/root/main/usecntlist[20]/avgcnt3", "");
- }
-
- function fReportPrint(){
- exeReportPreview("RPLNP00500", "XMLSTR", "", "", "true", "", "", "", "","true");
- //exeReportPreview("RPLNP00500", "XMLSTR", "", "");
-
- }
-
- function fSetWorkDayCnt(){
-
- var srchym = model.getValue("/root/send/srchym");
- var srchym2 = model.getValue("/root/send/srchym2");
-
- if(srchym == srchym2){
-
- model.setValue("/root/send/workday", model.getValue("/root/hidden/workday"));
-
- submit("TXLNP00501");
-
- }else{
-
- alert("조회된 기간이 한달이 아닙니다.");
-
- }
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; font-weight:bold; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <button id="btn_Ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- fGetUseCntList();
- ]]>
- </script>
- </button>
- <caption id="caption11" class="search_name" style="left:40px; top:8px; width:91px; height:17px; text-align:left; ">기준월 :</caption>
- <input id="input3" ref="/root/send/srchym" class="input_default" inputtype="date" format="yyyy-mm" style="left:125px; top:8px; width:90px; height:19px; "/>
- <input id="input7" ref="/root/send/srchym2" class="input_default" inputtype="date" format="yyyy-mm" style="left:245px; top:8px; width:90px; height:19px; "/>
- <caption id="caption8" style="left:220px; top:10px; width:20px; height:20px; text-align:center; ">~</caption>
- </group>
- <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:134px; height:14px; ">건수분석 리스트</caption>
- <datagrid id="grd_usecntlist" nodeset="/root/main/usecntlist" caption="검사명^1인당 소모량^월 환자수^월 실건수^^검사명^1인당 소모량^월 환자수^월 실건수^^검사명^1인당 소모량^월 환자수^월 실건수" colwidth="140, 85, 85, 85, 3, 140, 85, 85, 85, 3, 140, 85, 85, 85" dataheight="25" defaultrows="1" mergecellsfixedrows="bycolrec" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1194px; height:606px; font-weight:normal; ">
- <col ref="tclsnm"/>
- <col ref="avgcnt" style="text-align:center; "/>
- <col ref="patcnt" style="text-align:center; "/>
- <col ref="testcnt" style="text-align:center; "/>
- <col ref="tab1"/>
- <col ref="tclsnm2"/>
- <col ref="avgcnt2" style="text-align:center; "/>
- <col ref="patcnt2" style="text-align:center; "/>
- <col ref="testcnt2" style="text-align:center; "/>
- <col ref="tab2"/>
- <col ref="tclsnm3"/>
- <col ref="avgcnt3" style="text-align:center; "/>
- <col ref="patcnt3" style="text-align:center; "/>
- <col ref="testcnt3" style="text-align:center; "/>
- </datagrid>
- <caption id="caption4" class="cell_1" style="left:567px; top:689px; width:70px; height:23px; text-align:center; vertical-align:middle; ">근무일수</caption>
- <caption id="caption5" class="cell_1" style="left:712px; top:689px; width:83px; height:23px; text-align:center; vertical-align:middle; ">일평균 환자수</caption>
- <caption id="caption1" class="cell_1" style="left:895px; top:689px; width:83px; height:23px; text-align:center; vertical-align:middle; ">일평균 실건수</caption>
- <input id="input1" ref="/root/hidden/daypatcnt" format="0.00" style="left:797px; top:690px; width:97px; height:19px; "/>
- <input id="input2" ref="/root/hidden/workday" style="left:639px; top:690px; width:72px; height:19px; ">
- <script ev:event="onkeydown" type="javascript">
- <![CDATA[
- if(event.keyCode == "13"){
- fCalcnt();
- }
-
- ]]>
- </script>
- </input>
- <input id="input4" ref="/root/hidden/daytestcnt" format="0.00" style="left:980px; top:690px; width:97px; height:19px; "/>
- <line id="line2" class="line_3" style="x1:70px; y1:688px; x2:1077px; y2:688px; "/>
- <button id="btn_excel" class="btn2_letter4" navindex="2" style="left:0px; top:689px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script ev:event="onclick" type="javascript">
- <![CDATA[
- setValueMove();
-
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_usecntlist.saveExcel(fileName);
- }
-
- setValueReMove();
-
- ]]>
- </script>
- </button>
- <caption id="caption2" class="cell_1" style="left:394px; top:689px; width:83px; height:23px; text-align:center; vertical-align:middle; ">실건수 합계</caption>
- <caption id="caption7" class="cell_1" style="left:220px; top:689px; width:83px; height:23px; text-align:center; vertical-align:middle; ">환자수 합계</caption>
- <input id="input5" ref="/root/hidden/allpatsum" style="left:305px; top:690px; width:87px; height:19px; "/>
- <input id="input6" ref="/root/hidden/alltestsum" style="left:479px; top:690px; width:87px; height:19px; "/>
- <line id="line4" class="line_3" style="x1:70px; y1:712px; x2:1077px; y2:712px; "/>
- <caption id="caption9" class="cell_1" style="left:70px; top:689px; width:78px; height:23px; text-align:center; vertical-align:middle; ">검사항목수</caption>
- <input id="input8" ref="/root/hidden/testcntsum" style="left:151px; top:690px; width:67px; height:19px; "/>
- <button id="button1" class="btn4_letter6" style="left:1085px; top:689px; width:104px; height:22px; ">
- <caption>근무일수저장</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- fSetWorkDayCnt();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">건수분석 자료관리</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <button id="button11" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- fReportPrint();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|