123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295 |
- <?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>
- <item>
- <grid>
- <deptname/>
- <deptcode/>
- <newpatient_general_normal_prev/>
- <newpatient_general_normal/>
- <newpatient_general_selection_prev/>
- <newpatient_general_selection/>
- <newpatient_healthinsurance_normal_prev/>
- <newpatient_healthinsurance_normal/>
- <newpatient_healthinsurance_selection_prev/>
- <newpatient_healthinsurance_selection/>
- <newpatient_medservice_normal_prev/>
- <newpatient_medservice_normal/>
- <newpatient_medservice_selection_prev/>
- <newpatient_medservice_selection/>
- <newpatient_carinsurance_normal_prev/>
- <newpatient_carinsurance_normal/>
- <newpatient_carinsurance_selection_prev/>
- <newpatient_carinsurance_selection/>
- <newpatient_subtotal_prev/>
- <newpatient_subtotal/>
- <deptfirstclinic_general_normal_prev/>
- <deptfirstclinic_general_normal/>
- <deptfirstclinic_general_selection_prev/>
- <deptfirstclinic_general_selection/>
- <deptfirstclinic_healthinsurance_normal_prev/>
- <deptfirstclinic_healthinsurance_normal/>
- <deptfirstclinic_healthinsurance_selection_prev/>
- <deptfirstclinic_healthinsurance_selection/>
- <deptfirstclinic_medservice_normal_prev/>
- <deptfirstclinic_medservice_normal/>
- <deptfirstclinic_medservice_selection_prev/>
- <deptfirstclinic_medservice_selection/>
- <deptfirstclinic_carinsurance_normal_prev/>
- <deptfirstclinic_carinsurance_normal/>
- <deptfirstclinic_carinsurance_selection_prev/>
- <deptfirstclinic_carinsurance_selection/>
- <deptfirstclinic_subtotal_prev/>
- <deptfirstclinic_subtotal/>
- <returnfirstclinic_general_normal_prev/>
- <returnfirstclinic_general_normal/>
- <returnfirstclinic_general_selection_prev/>
- <returnfirstclinic_general_selection/>
- <returnfirstclinic_healthinsurance_normal_prev/>
- <returnfirstclinic_healthinsurance_normal/>
- <returnfirstclinic_healthinsurance_selection_prev/>
- <returnfirstclinic_healthinsurance_selection/>
- <returnfirstclinic_medservice_normal_prev/>
- <returnfirstclinic_medservice_normal/>
- <returnfirstclinic_medservice_selection_prev/>
- <returnfirstclinic_medservice_selection/>
- <returnfirstclinic_carinsurance_normal_prev/>
- <returnfirstclinic_carinsurance_normal/>
- <returnfirstclinic_carinsurance_selection_prev/>
- <returnfirstclinic_carinsurance_selection/>
- <returnfirstclinic_subtotal_prev/>
- <returnfirstclinic_subtotal/>
- <total_thismonth/>
- <total_lastmonth/>
- <total_riseandfall/>
- </grid>
- </item>
- <condition_start/>
- <condition_end/>
- <fromdd/>
- <todd/>
- </main>
- <send>
- <searchstartdate/>
- <searchenddate/>
- <startcondition/>
- <endcondition/>
- </send>
- </root>
- </instance>
- <submission id="TRMRS01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/item"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- finitialize();
- ]]>
- </script>
- <bind id="PrevSumSubTotalCal" ref="/root/main/item/grid/total_thismonth" calculate="../newpatient_subtotal_prev + ../deptfirstclinic_subtotal_prev + ../returnfirstclinic_subtotal_prev" type="xsd:int"/>
- <bind id="SumSubTotalCal" ref="/root/main/item/grid/total_lastmonth" calculate="../newpatient_subtotal + ../deptfirstclinic_subtotal + ../returnfirstclinic_subtotal" type="xsd:int"/>
- <bind id="RiseAndFall" ref="/root/main/item/grid/total_riseandfall" calculate="../total_thismonth - ../total_lastmonth" type="xsd:int"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /*
- function fChangeDate(inputString, bStart)
- {
- var cutStr = inputString.substr(0,6);
- if(bStart)
- {
- var cond = eval(cutStr.substr(0, 6));
- cond += "%";
- model.setValue("/root/main/condition_start", cond);
- }
- else
- {
- var cond = eval(cutStr.substr(0, 6));
- cond += "%";
- model.setValue("/root/main/condition_end", cond);
-
- // 조회 종료일자를 무조건 해당월의 마지막 일로 설정한다.
- var year = eval(cutStr.substr(0, 4));
- var month = (eval(cutStr.substring(4,6))-1);
-
- var SearchEndDate = new Date(year, month); // Date 객체를 생성
- var MonthlastDay = SearchEndDate.getMonthDay(); // 해달 월의 마직막 일자를 구함.
- cutStr += MonthlastDay;
- }
- return cutStr;
- }
-
- function fValidDate(StartDate, EndDate)
- {
- var dateInterval = eval(getDateInterval(StartDate, EndDate));
- if ( dateInterval < 0 )
- {
- messageBox("조회 기간이 맞지 않습니다. 조회 기간을 다시", "C002");
- return false;
- }
- return true;
- }
- */
- /*
-
-
- /*
- 조회버튼 클릭 타는 함수
- */
-
-
- ]]>
- </script>
- <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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/emrstatsweb/js/SMMRS01100.js"/>
- </xhtml:head>
- <xhtml:body>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:205px; height:13px; ">외래환자현황(초진내역)</caption>
- </group>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:26px; width:1195px; height:54px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" style="x1:326px; y1:43px; x2:326px; y2:65px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption3" class="tit_2" style="left:0px; top:90px; width:180px; height:13px; ">외래환자현황(초진내역)</caption>
- <caption id="caption1" class="search_name" style="left:11px; top:43px; width:86px; height:17px; ">조회기간 :</caption>
- <input id="ipt_fromdd" ref="/root/main/fromdd" class="input_search" inputtype="date" style="left:100px; top:43px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var searchStart = model.getValue("/root/main/fromdd");
- var StartDate = fChangeDate(searchStart, 1); // DB 쿼리의 조회 조건을 설정
- model.setValue("/root/send/searchstartdate", searchStart);
- model.setValue("/root/main/fromdd", searchStart);
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption2" style="left:203px; top:45px; width:15px; height:20px; font-weight:bold; ">~</caption>
- <input id="ipt_todd" ref="/root/main/todd" class="input_search" inputtype="date" style="left:216px; top:43px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var searchEnd = model.getValue("/root/main/todd");
- var EndDate = fChangeDate(searchEnd, 0);
- model.setValue("/root/send/searchenddate", searchEnd);
- model.setValue("/root/main/todd", searchEnd);
- model.refresh();
- ]]>
- </script>
- </input>
- <line id="line23" class="line_1" style="x1:0px; y1:105px; x2:1195px; y2:105px; "/>
- <button id="button1" class="btn1_letter2" style="left:1056px; top:43px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var searchStart = model.getValue("/root/main/fromdd");
- var searchEnd = model.getValue("/root/main/todd");
-
- if ( fValidDate(searchStart, searchEnd) )
- {
- fClicked("search", grd_statslist);
- fCalculateStats();
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_statslist" nodeset="/root/main/item/grid" scroll="auto" backcoloralternate="#ffff9d" caption="진료과^진료과^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^전체 합계^전체 합계^전체 합계|진료과^진료과^일반^일반^일반^일반^건강보험^건강보험^건강보험^건강보험^의료보호^의료보호^의료보호^의료보호^자동차보험^자동차보험^자동차보험^자동차보험^소계^소계^일반^일반^일반^일반^건강보험^건강보험^건강보험^건강보험^의료보호^의료보호^의료보호^의료보호^자동차보험^자동차보험^자동차보험^자동차보험^소계^소계^일반^일반^일반^일반^건강보험^건강보험^건강보험^건강보험^의료보호^의료보호^의료보호^의료보호^자동차보험^자동차보험^자동차보험^자동차보험^소계^소계^현월^전월^증감|진료과^진료과코드^일반 Prev^일반 ^선택 Prev^선택^일반 Prev^일반^선택 Prev^선택^일반 Prev^일반^선택 Prev^선택^일반 Prev^일반^선택 Prev^선택^소계 Prev^소계^일반 Prev^일반 ^선택 Prev^선택^일반 Prev^일반^선택 Prev^선택^일반 Prev^일반^선택 Prev^선택^일반 Prev^일반^선택 Prev^선택^소계 Prev^소계^일반 Prev^일반 ^선택 Prev^선택^일반 Prev^일반^선택 Prev^선택^일반 Prev^일반^선택 Prev^선택^일반 Prev^일반^선택 Prev^선택^소계 Prev^소계 ^현월^전월^증감" colsep="^" colwidth="100, 100, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45" fixedcols="2" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:110px; width:1195px; height:635px; ">
- <col ref="deptname"/>
- <col ref="deptcode"/>
- <col ref="newpatient_general_normal_prev" style="text-align:right; "/>
- <col ref="newpatient_general_normal" style="text-align:right; "/>
- <col ref="newpatient_general_selection_prev" style="text-align:right; "/>
- <col ref="newpatient_general_selection" style="text-align:right; "/>
- <col ref="newpatient_healthinsurance_normal_prev" style="text-align:right; "/>
- <col ref="newpatient_healthinsurance_normal" style="text-align:right; "/>
- <col ref="newpatient_healthinsurance_selection_prev" style="text-align:right; "/>
- <col ref="newpatient_healthinsurance_selection" style="text-align:right; "/>
- <col ref="newpatient_medservice_normal_prev" style="text-align:right; "/>
- <col ref="newpatient_medservice_normal" style="text-align:right; "/>
- <col ref="newpatient_medservice_selection_prev" style="text-align:right; "/>
- <col ref="newpatient_medservice_selection" style="text-align:right; "/>
- <col ref="newpatient_carinsurance_normal_prev" style="text-align:right; "/>
- <col ref="newpatient_carinsurance_normal" style="text-align:right; "/>
- <col ref="newpatient_carinsurance_selection_prev" style="text-align:right; "/>
- <col ref="newpatient_carinsurance_selection" style="text-align:right; "/>
- <col ref="newpatient_subtotal_prev" style="text-align:right; "/>
- <col ref="newpatient_subtotal" style="text-align:right; "/>
- <col ref="deptfirstclinic_general_normal_prev" style="text-align:right; "/>
- <col ref="deptfirstclinic_general_normal" style="text-align:right; "/>
- <col ref="deptfirstclinic_general_selection_prev" style="text-align:right; "/>
- <col ref="deptfirstclinic_general_selection" style="text-align:right; "/>
- <col ref="deptfirstclinic_healthinsurance_normal_prev" style="text-align:right; "/>
- <col ref="deptfirstclinic_healthinsurance_normal" style="text-align:right; "/>
- <col ref="deptfirstclinic_healthinsurance_selection_prev" style="text-align:right; "/>
- <col ref="deptfirstclinic_healthinsurance_selection" style="text-align:right; "/>
- <col ref="deptfirstclinic_medservice_normal_prev" style="text-align:right; "/>
- <col ref="deptfirstclinic_medservice_normal" style="text-align:right; "/>
- <col ref="deptfirstclinic_medservice_selection_prev" style="text-align:right; "/>
- <col ref="deptfirstclinic_medservice_selection" style="text-align:right; "/>
- <col ref="deptfirstclinic_carinsurance_normal_prev" style="text-align:right; "/>
- <col ref="deptfirstclinic_carinsurance_normal" style="text-align:right; "/>
- <col ref="deptfirstclinic_carinsurance_selection_prev" style="text-align:right; "/>
- <col ref="deptfirstclinic_carinsurance_selection" style="text-align:right; "/>
- <col ref="deptfirstclinic_subtotal_prev" style="text-align:right; "/>
- <col ref="deptfirstclinic_subtotal" style="text-align:right; "/>
- <col ref="returnfirstclinic_general_normal_prev" style="text-align:right; "/>
- <col ref="returnfirstclinic_general_normal" style="text-align:right; "/>
- <col ref="returnfirstclinic_general_selection_prev" style="text-align:right; "/>
- <col ref="returnfirstclinic_general_selection" style="text-align:right; "/>
- <col ref="returnfirstclinic_healthinsurance_normal_prev" style="text-align:right; "/>
- <col ref="returnfirstclinic_healthinsurance_normal" style="text-align:right; "/>
- <col ref="returnfirstclinic_healthinsurance_selection_prev" style="text-align:right; "/>
- <col ref="returnfirstclinic_healthinsurance_selection" style="text-align:right; "/>
- <col ref="returnfirstclinic_medservice_normal_prev" style="text-align:right; "/>
- <col ref="returnfirstclinic_medservice_normal" style="text-align:right; "/>
- <col ref="returnfirstclinic_medservice_selection_prev" style="text-align:right; "/>
- <col ref="returnfirstclinic_medservice_selection" style="text-align:right; "/>
- <col ref="returnfirstclinic_carinsurance_normal_prev" style="text-align:right; "/>
- <col ref="returnfirstclinic_carinsurance_normal" style="text-align:right; "/>
- <col ref="returnfirstclinic_carinsurance_selection_prev" style="text-align:right; "/>
- <col ref="returnfirstclinic_carinsurance_selection" style="text-align:right; "/>
- <col ref="returnfirstclinic_subtotal_prev" style="text-align:right; "/>
- <col ref="returnfirstclinic_subtotal" style="text-align:right; "/>
- <col ref="total_thismonth" style="text-align:right; "/>
- <col ref="total_lastmonth" style="text-align:right; "/>
- <col ref="total_riseandfall" style="text-align:right; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- var prevcal = "../newpatientsubtotalprev + ../deptfirstclinicsubtotalprev + ../returnfirstclinicsubtotalprev";
- PrevSumSubTotalCal.attribute("calculate") = prevcal;
-
- var cal = "../newpatientsubtotal + ../deptfirstclinicsubtotal + ../returnfirstclinicsubtotal";
- SumSubTotalCal.attribute("calculate") = cal;
- */
- model.recalculate();
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="button3" class="btn1_letter2" style="left:1123px; top:43px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- alert("기능 구현중입니다.");
- //exeReportPreview("RPTMP00300", "XML", "/root/send/report", "", "FinePrint", "", "", "", "", "true");
- //exeReportPreview("TRMRS01001", "XML", "/root/send/", "", "FinePrint", "", "", "", "", "true");
- ]]>
- </script>
- </button>
- <button id="btn_ex" class="btn2_letter2" style="left:1153px; top:85px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveExcel();
- ]]>
- </script>
- </button>
- <line id="line5" style="x1:1045px; y1:30px; x2:1045px; y2:75px; border-color:#ffe4bb; border-left-style:solid; "/>
- </xhtml:body>
- </xhtml:html>
|