123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857 |
- <?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>
- <list>
- <item>
- <systkey1/>
- <systkey2/>
- <item01/>
- <item02/>
- <item03/>
- <item04/>
- <item05/>
- <item06/>
- <item07/>
- <item08/>
- <item09/>
- <item10/>
- <item11/>
- <item12/>
- <item13/>
- <item14/>
- <item15/>
- <item16/>
- <item17/>
- <item18/>
- <item19/>
- <item20/>
- <item21/>
- <item22/>
- <item23/>
- <item24/>
- <item25/>
- <item26/>
- <item27/>
- <item28/>
- <item29/>
- <item30/>
- <item31/>
- <total/>
- </item>
- </list>
- <isublist>
- <item>
- <ioflag/>
- <drugqty/>
- <cnt/>
- <total/>
- </item>
- </isublist>
- <osublist>
- <item>
- <ioflag/>
- <drugqty/>
- <cnt/>
- <total/>
- </item>
- </osublist>
- <examsum>
- <isum/>
- <osum/>
- <total/>
- </examsum>
- </main>
- <send>
- <srchdate/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <suppdeptcd/>
- <srchstatsflag>A</srchstatsflag>
- <excuroomgrpcdid/>
- <excuroomcdid/>
- <srchflag>D</srchflag>
- <srchioflag>A</srchioflag>
- <srchseanflag>G</srchseanflag>
- </send>
- <inti>
- <cmb_info>
- <initexcuroomgrp/>
- <excuroom/>
- </cmb_info>
- </inti>
- <hidden/>
- <inti_com>
- <srchdate/>
- </inti_com>
- </root>
- </instance>
- <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/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- aezfSetSuppDeptcd();
- // 검사실
- model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- model.setValue("/root/send/srchdate", getCurrentDate().substr(0,6));
- model.removenode("/root/main/list");
- model.setValue("/root/send/srchstatsflag", "CS");
- model.setValue("/root/send/srchioflag", "A");
-
- btn_case1.selected = true;
-
- submit("TRAES09001", false);
-
- addComboItem("cmb_excuroomgrp","--전체--","","above");
-
- grd_daylist.colHidden(grd_daylist.colRef("systkey1")) = true;
- grd_monthlist.colHidden(grd_monthlist.colRef("systkey1")) = true;
- grd_qurtlist.colHidden(grd_qurtlist.colRef("systkey1")) = true;
- grd_yearlist.colHidden(grd_yearlist.colRef("systkey1")) = true;
-
- grd_daylist.colWidth(1) = 100;
- grd_monthlist.colWidth(1) = 100;
- grd_qurtlist.colWidth(1) = 100;
- grd_yearlist.colWidth(1) = 100;
-
- grd_daylist.colWidth(2) = 240;
- grd_monthlist.colWidth(2) = 240;
- grd_qurtlist.colWidth(2) = 240;
- grd_yearlist.colWidth(2) = 240;
-
- grd_daylist.colHidden(3) = true;
- grd_monthlist.colHidden(3) = true;
- grd_qurtlist.colHidden(3) = true;
- grd_yearlist.colHidden(3) = true;
-
- setTitle();
-
- rdo_srchioflag.visible = false;
- model.refresh();
- ]]>
- </script>
- <submission id="TRAES09001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TRAEA01418" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/cmb_info"/>
- <submission id="TRAES05301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- /* @group : 통합 통계
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검사별 통합 통계 리스트 조회
- */
- function getNmedSytsStatsCaseList(){
-
- // 일별
- if (btn_case1.selected == true) {
- model.setValue("/root/send/srchflag","D");
- grd_list = grd_daylist;
- // 월별
- } else if (btn_case2.selected == true) {
- model.setValue("/root/send/srchflag","M");
- grd_list = grd_monthlist;
- // 분기별
- } else if (btn_case3.selected == true) {
- model.setValue("/root/send/srchflag","Q");
- grd_list = grd_qurtlist;
- // 년도별
- } else if (btn_case4.selected == true) {
- model.setValue("/root/send/srchflag","Y");
- grd_list = grd_yearlist;
- }
- model.removenode("/root/main/list");
-
- if (submit("TRAES05301")) {
-
- var cnt = getNodesetCount("/root/main/list/item");
-
- if (cnt > 1) {
-
- var srchstatsflag = model.getValue("/root/send/srchstatsflag");
-
- // 소계 및 합계 구하는 함수 호출 - grid Object, 통계구분, 탭구분)
- fSetSubTotal(grd_list, srchstatsflag , model.getValue("/root/send/srchflag"));
-
- }
- }
- }
-
- /* @group : 통합 통계
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 조회된 통계 데이타에 대한 소계 및 총계를 구하는 함수
- */
- function fSetSubTotal(grd_list, srchstatsflag, srchflag) {
-
- var colpos = 0;
- var rowCnt = 0;
-
- grd_list.colSort(0) = "asc";
- grd_list.sort(0, 0, grd_list.rows, grd_list.cols) = "usersort";
-
- // 검사별
- if (srchstatsflag == "CS") {
-
- for(i=3; i<grd_list.cols; i++) {
- grd_list.subtotal("sum", -1, i, "#,###", "background-color:#CCFFCC; color:#0000ff; font-weight:bold; ", 1, "총계");
- }
- grd_list.mergeByFree(grd_list.rows-1, 1 , grd_list.rows-1, 3);
-
- rowCnt = 0;
-
- // 진료의별 소계 위치
- } else if (srchstatsflag == "OR") {
- colpos = grd_list.colRef("systkey3");
-
- for(i=3; i<grd_list.cols; i++) {
- grd_list.subtotal("sum", 1, i, "#,###", "background-color:#FFFFCC; color:#0000ff; font-weight:bold; ", colpos, "소계");
- grd_list.subtotal("sum", -1, i, "#,###", "background-color:#CCFFCC; color:#0000ff; font-weight:bold; ", 1, "총계");
- }
- grd_list.mergeByFree(grd_list.rows-1, 1 , grd_list.rows-1, 3);
-
- rowCnt = grd_list.rows;
-
- // 진료과별, 보험유형별 소계 위치
- } else {
- colpos = grd_list.colRef("systkey2");
-
- for(i=3; i<grd_list.cols; i++) {
- grd_list.subtotal("sum", 1, i, "#,###", "background-color:#FFFFCC; color:#0000ff; font-weight:bold; ", colpos, "소계");
- grd_list.subtotal("sum", -1, i, "#,###", "background-color:#CCFFCC; color:#0000ff; font-weight:bold; ", 1, "총계");
- }
- grd_list.mergeByFree(grd_list.rows-1, 1 , grd_list.rows-1, 3);
-
- rowCnt = grd_list.rows;
-
- }
-
- // 증감율 구하기
- var colnm = "";
- var subtotal = 0;
- var subcomparecnt = 0;
- var subcomparerate = "";
-
- for (i=0; i<rowCnt; i++) {
- colnm = grd_list.valueMatrix(i, colpos);
-
- if (colnm == "소계" ) {
-
- // 소계 합계
- subtotal = grd_list.valueMatrix(i, grd_list.colRef("total"));
- subcomparecnt = grd_list.valueMatrix(i, grd_list.colRef("comparecnt"));
- grd_list.valueMatrix(i, grd_list.colRef("comparerate")) = setCompareRate(subtotal, subcomparecnt);
-
- // 분기별일 경우 분기별 증감율 구하기
- if (srchflag == "Q") {
-
- // 1분기
- subtotal = grd_list.valueMatrix(i, grd_list.colRef("item01"));
- subcomparecnt = grd_list.valueMatrix(i, grd_list.colRef("item09"));
- grd_list.valueMatrix(i, grd_list.colRef("item02")) = setCompareRate(subtotal, subcomparecnt);
-
- // 2분기
- subtotal = grd_list.valueMatrix(i, grd_list.colRef("item03"));
- subcomparecnt = grd_list.valueMatrix(i, grd_list.colRef("item10"));
- grd_list.valueMatrix(i, grd_list.colRef("item04")) = setCompareRate(subtotal, subcomparecnt);
-
- // 3분기
- subtotal = grd_list.valueMatrix(i, grd_list.colRef("item05"));
- subcomparecnt = grd_list.valueMatrix(i, grd_list.colRef("item11"));
- grd_list.valueMatrix(i, grd_list.colRef("item06")) = setCompareRate(subtotal, subcomparecnt);
-
- // 4분기
- subtotal = grd_list.valueMatrix(i, grd_list.colRef("item07"));
- subcomparecnt = grd_list.valueMatrix(i, grd_list.colRef("item12"));
- grd_list.valueMatrix(i, grd_list.colRef("item08")) = setCompareRate(subtotal, subcomparecnt);
-
- grd_list.cellformat(i, grd_list.colRef("item02")) = "(-)#,### %";
- grd_list.cellformat(i, grd_list.colRef("item04")) = "(-)#,### %";
- grd_list.cellformat(i, grd_list.colRef("item06")) = "(-)#,### %";
- grd_list.cellformat(i, grd_list.colRef("item08")) = "(-)#,### %";
- grd_list.cellformat(i, grd_list.colRef("comparerate")) = "(-)#,### %";
-
- } // 분기별일 경우 분기별 증감율 구하기 끝
- }
- }
-
- //총계 증감율 합계
-
- var total = 0;
- var comparecnt = 0;
- var comparerate = "";
-
- // 분기별일 경우 총계 분기별 증감율 구하기
- if (srchflag == "Q") {
-
- // 1분기
- total = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item01"));
- comparecnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item09"));
- grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item02")) = setCompareRate(total, comparecnt);
-
- // 2분기
- total = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item03"));
- comparecnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item10"));
- grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item04")) = setCompareRate(total, comparecnt);
-
- // 3분기
- total = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item05"));
- comparecnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item11"));
- grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item06")) = setCompareRate(total, comparecnt);
-
- // 4분기
- total = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item07"));
- comparecnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item12"));
- grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item08")) = setCompareRate(total, comparecnt);
-
- grd_list.cellformat(grd_list.rows-1, grd_list.colRef("item02")) = "(-)#,### %";
- grd_list.cellformat(grd_list.rows-1, grd_list.colRef("item04")) = "(-)#,### %";
- grd_list.cellformat(grd_list.rows-1, grd_list.colRef("item06")) = "(-)#,### %";
- grd_list.cellformat(grd_list.rows-1, grd_list.colRef("item08")) = "(-)#,### %";
-
- }
-
- //총계 증감율 합계
- total = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("total"));
- comparecnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("comparecnt"));
-
- grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("comparerate")) = setCompareRate(total, comparecnt) ;
- grd_list.cellformat(grd_list.rows-1, grd_list.colRef("comparerate")) = "(-)#,### %";
-
- model.refresh();
-
- }
-
- /* @group : 통합 통계
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 증감율을 구하는 함수
- */
- function setCompareRate(total, comparecnt) {
-
- var comparerate = 0;
-
- if (parseInt(comparecnt) > 0) {
- comparerate = ( ( parseInt(total) - parseInt(comparecnt) ) / parseInt(comparecnt) ) * 100;
-
- if (comparerate != null) {
- comparerate = comparerate.toString().getRound(-1,"HALF_UP");
- } else {
- comparerate = 0;
- }
- } else {
- comparerate = 0;
- }
-
- return comparerate;
- }
-
- /* @group : 통합 통계
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 통계 구분별 그리드 header를 정의하는 함수
- */
- function setTitle() {
-
- var srchstatsflag = model.getValue("/root/send/srchstatsflag");
- var baseDate = model.getValue("/root/send/srchdate") + "01";
-
- model.removenode("/root/main/list");
-
- var stHeader = "";
- var stMonthHeader = "";
- var stDay = "";
- var stMonth = "";
- var stQurt = "";
- var stYear = "";
-
- var sDayCnt = baseDate.toDate().getMonthDay();
- var baseYear = baseDate.substr(0,4);
-
- // 검사별
- if (srchstatsflag == "CS") {
- stHeader = "검사실^검사명^검사명^";
- grd_daylist.colHidden(grd_daylist.colRef("systkey1")) = true;
- grd_monthlist.colHidden(grd_monthlist.colRef("systkey1")) = true;
- grd_qurtlist.colHidden(grd_qurtlist.colRef("systkey1")) = true;
- grd_yearlist.colHidden(grd_yearlist.colRef("systkey1")) = true;
-
- grd_daylist.colWidth(1) = 100;
- grd_monthlist.colWidth(1) = 100;
- grd_qurtlist.colWidth(1) = 100;
- grd_yearlist.colWidth(1) = 100;
-
- grd_daylist.colWidth(2) = 240;
- grd_monthlist.colWidth(2) = 240;
- grd_qurtlist.colWidth(2) = 240;
- grd_yearlist.colWidth(2) = 240;
-
- grd_daylist.colHidden(3) = true;
- grd_monthlist.colHidden(3) = true;
- grd_qurtlist.colHidden(3) = true;
- grd_yearlist.colHidden(3) = true;
-
- // 진료과별
- } else if (srchstatsflag == "OE") {
- stHeader = "진료과^검사명^검사명^";
- grd_daylist.colHidden(grd_daylist.colRef("systkey1")) = false;
- grd_monthlist.colHidden(grd_monthlist.colRef("systkey1")) = false;
- grd_qurtlist.colHidden(grd_qurtlist.colRef("systkey1")) = false;
- grd_yearlist.colHidden(grd_yearlist.colRef("systkey1")) = false;
-
- grd_daylist.colWidth(1) = 100;
- grd_monthlist.colWidth(1) = 100;
- grd_qurtlist.colWidth(1) = 100;
- grd_yearlist.colWidth(1) = 100;
-
- grd_daylist.colWidth(2) = 240;
- grd_monthlist.colWidth(2) = 240;
- grd_qurtlist.colWidth(2) = 240;
- grd_yearlist.colWidth(2) = 240;
-
- grd_daylist.colHidden(3) = true;
- grd_monthlist.colHidden(3) = true;
- grd_qurtlist.colHidden(3) = true;
- grd_yearlist.colHidden(3) = true;
-
- // 진료의별
- } else if (srchstatsflag == "OR") {
- stHeader = "진료과^진료의^검사명^";
- grd_daylist.colHidden(grd_daylist.colRef("systkey1")) = false;
- grd_monthlist.colHidden(grd_monthlist.colRef("systkey1")) = false;
- grd_qurtlist.colHidden(grd_qurtlist.colRef("systkey1")) = false;
- grd_yearlist.colHidden(grd_yearlist.colRef("systkey1")) = false;
-
- grd_daylist.colWidth(1) = 100;
- grd_monthlist.colWidth(1) = 100;
- grd_qurtlist.colWidth(1) = 100;
- grd_yearlist.colWidth(1) = 100;
-
- grd_daylist.colWidth(2) = 100;
- grd_monthlist.colWidth(2) = 100;
- grd_qurtlist.colWidth(2) = 100;
- grd_yearlist.colWidth(2) = 100;
-
- grd_daylist.colHidden(3) = false;
- grd_monthlist.colHidden(3) = false;
- grd_qurtlist.colHidden(3) = false;
- grd_yearlist.colHidden(3) = false;
-
- }
- //stHeader = "검사실^검사명^검사명^";
-
- stDay = "1일^2일^3일^4일^5일^6일^7일^8일^9일^10일^11일^12일^13일^14일^15일^16일^17일^18일^19일^20일^21일^22일^23일^24일^25일^26일^27일^28일^29일^30일^31일^합계";
- stMonth = " " + baseYear + "년^ "+ baseYear + "년^ "+ baseYear + "년^ "+ baseYear + "년^ "+ baseYear + "년^ "+ baseYear + "년^ "+ baseYear + "년^ "+ baseYear + "년^ "+ baseYear + "년^ "+ baseYear + "년^ "+ baseYear + "년^ "+ baseYear + "년^합계^전년도합계^증감율|"+ stHeader +" 1월 ^ 2월 ^ 3월 ^ 4월 ^ 5월 ^ 6월 ^ 7월 ^ 8월 ^ 9월 ^ 10월 ^ 11월 ^ 12월 ^합계^전년도합계^증감율";
- stQurt = " 1분기 ^ 1분기 ^ 2분기 ^ 2분기 ^ 3분기 ^ 3분기 ^ 4분기 ^ 4분기 ^전년도^전년도^전년도^전년도^합계^전년도합계^증감율|"+ stHeader +"금액^증감율^금액^증감율^금액^증감율^금액^증감율^ 1분기 ^ 2분기 ^ 3분기 ^ 4분기 ^합계^전년도합계^증감율";
-
- var dtYearMonth = baseDate.toDate().getAddDate(-4, "Y");
- var addYear = "";
-
- for (var i = 0; i <= 4; i++) {
- addYear = dtYearMonth.getDateFormat("YYYY");
- stYear = stYear + addYear + "년^";
- dtYearMonth.getAddDate(1, "Y");
- }
- stYear = stYear + "합계^전년도합계^증감율";
-
- // 일별
- stDay = stHeader + stDay;
- grd_daylist.caption = stDay;
-
- // 월별
- stMonth = stHeader + stMonth;
- grd_monthlist.caption = stMonth;
-
- // 분기별
- stQurt = stHeader + stQurt;
- grd_qurtlist.caption = stQurt;
-
- // 년도별
- stYear = stHeader + stYear;
- grd_yearlist.caption =stYear;
-
- if(sDayCnt > 30) {
- grd_daylist.colHidden(grd_daylist.colRef("item29")) = false;
- grd_daylist.colHidden(grd_daylist.colRef("item30")) = false;
- grd_daylist.colHidden(grd_daylist.colRef("item31")) = false;
- }else if(sDayCnt == 29) {
- grd_daylist.colHidden(grd_daylist.colRef("item29")) = false;
- grd_daylist.colHidden(grd_daylist.colRef("item30")) = true;
- grd_daylist.colHidden(grd_daylist.colRef("item31")) = true;
- }else if(sDayCnt < 29) {
- grd_daylist.colHidden(grd_daylist.colRef("item29")) = true;
- grd_daylist.colHidden(grd_daylist.colRef("item30")) = true;
- grd_daylist.colHidden(grd_daylist.colRef("item31")) = true;
- }else {
- grd_daylist.colHidden(grd_daylist.colRef("item29")) = false;
- grd_daylist.colHidden(grd_daylist.colRef("item30")) = false;
- grd_daylist.colHidden(grd_daylist.colRef("item31")) = true;
- }
-
- grd_daylist.rebuild();
- grd_monthlist.rebuild();
- grd_qurtlist.rebuild();
- grd_yearlist.rebuild();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <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:335px; height:14px; ">검사별 수입 통계</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <button id="btn_excsave" class="btn2_letter4" visibility="visible" style="left:1130px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "") {
- // 일별
- if (btn_case1.selected == true) {
- grd_daylist.saveExcel(fileName);
- // 월별
- } else if (btn_case2.selected == true) {
- grd_monthlist.saveExcel(fileName);
-
- // 분기별
- } else if (btn_case3.selected == true) {
- grd_qurtlist.saveExcel(fileName);
- // 년도별
- } else if (btn_case4.selected == true) {
- grd_yearlist.saveExcel(fileName);
- }
- }
- ]]>
- </script>
- </button>
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:30px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:25px; "/>
- <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:1120px; top:4px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 검사별 통합 통계 조회
- getNmedSytsStatsCaseList();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:305px; top:7px; width:86px; height:17px; ">기준년월 :</caption>
- <input id="input4" ref="/root/send/srchdate" class="input_default" inputtype="date" format="yyyy-mm" style="left:395px; top:6px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- setTitle();
- ]]>
- </script>
- </input>
- <select1 id="cmb_excuroomgrp" ref="/root/send/excuroomgrpcdid" class="combo_default" appearance="minimal" style="left:580px; top:6px; width:118px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/initexcuroomgrp">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var excuroomgrpcdid = model.getValue("/root/send/excuroomgrpcdid");
-
- if (excuroomgrpcdid == "") {
- cmb_excuroom.disabled = true;
- } else {
- cmb_excuroom.disabled = false;
- }
-
- if (submit("TRAEA01418", false)) {
- model.makeNode("/root/init/cmb_info/excuroom");
- copyNodeType("/root/init/cmb_info/excuroom","/root/hidden/cmb_info/excuroom","replace");
- }
-
- model.removenode("/root/main/list");
-
- model.refresh();
-
- ]]>
- </script>
- </select1>
- <select1 id="cmb_excuroom" ref="/root/send/excuroomcdid" class="combo_default" appearance="minimal" style="left:700px; top:6px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/excuroom/initexcuroom">
- <label ref="excuroomcdnm"/>
- <value ref="excuroomcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 검사별 통합 통계 조회
- getNmedSytsStatsCaseList();
- ]]>
- </script>
- </select1>
- <caption id="caption7" class="search_name" style="left:500px; top:7px; width:80px; height:17px; ">검사실 :</caption>
- <caption id="caption12" class="search_name" style="left:855px; top:7px; width:62px; height:17px; ">구분 :</caption>
- <select1 id="radio2" ref="/root/send/srchioflag" appearance="full" cols="3" overflow="visible" style="left:919px; top:7px; width:136px; height:18px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 검사별 통합 통계 조회
- getNmedSytsStatsCaseList();
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="search_name" style="left:10px; top:7px; width:86px; height:17px; ">통계구분 :</caption>
- <select1 id="cmb_statsflag" ref="/root/send/srchstatsflag" appearance="minimal" style="left:105px; top:6px; width:165px; height:19px; ">
- <choices>
- <item>
- <label>검사별</label>
- <value>CS</value>
- </item>
- <item>
- <label>진료과별</label>
- <value>OE</value>
- </item>
- <item>
- <label>진료의별</label>
- <value>OR</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- setTitle();
- ]]>
- </script>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
- <switch id="switch1" style="left:0px; top:75px; width:1195px; height:633px; ">
- <case id="case1" selected="true">
- <datagrid id="grd_daylist" nodeset="/root/main/list/item" backcoloralternate="transparent" caption="검사실^검사명^검사명^1일^2일^3일^4일^5일^6일^7일^8일^9일^10일^11일^12일^13일^14일^15일^16일^17일^18일^19일^20일^21일^22일^23일^24일^25일^26일^27일^28일^29일^30일^31일^합계" colsep="^" colwidth="0, 0, 240, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 80" ellipsis="true" frozencols="2" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" multitotal="true" rowheader="seq" rowsep="|" subtotalposition="below" tooltip="true" style="left:0px; top:0px; width:1192px; height:630px; ">
- <col ref="systkey1" style="text-align:center; "/>
- <col ref="systkey2" style="text-align:center; "/>
- <col ref="systkey3" style="text-align:left; "/>
- <col ref="item01" format="#,###" style="text-align:right; "/>
- <col ref="item02" format="#,###" style="text-align:right; "/>
- <col ref="item03" format="#,###" style="text-align:right; "/>
- <col ref="item04" format="#,###" style="text-align:right; "/>
- <col ref="item05" format="#,###" style="text-align:right; "/>
- <col ref="item06" format="#,###" style="text-align:right; "/>
- <col ref="item07" format="#,###" style="text-align:right; "/>
- <col ref="item08" format="#,###" style="text-align:right; "/>
- <col ref="item09" format="#,###" style="text-align:right; "/>
- <col ref="item10" format="#,###" style="text-align:right; "/>
- <col ref="item11" format="#,###" style="text-align:right; "/>
- <col ref="item12" format="#,###" style="text-align:right; "/>
- <col ref="item13" format="#,###" style="text-align:right; "/>
- <col ref="item14" format="#,###" style="text-align:right; "/>
- <col ref="item15" format="#,###" style="text-align:right; "/>
- <col ref="item16" format="#,###" style="text-align:right; "/>
- <col ref="item17" format="#,###" style="text-align:right; "/>
- <col ref="item18" format="#,###" style="text-align:right; "/>
- <col ref="item19" format="#,###" style="text-align:right; "/>
- <col ref="item20" format="#,###" style="text-align:right; "/>
- <col ref="item21" format="#,###" style="text-align:right; "/>
- <col ref="item22" format="#,###" style="text-align:right; "/>
- <col ref="item23" format="#,###" style="text-align:right; "/>
- <col ref="item24" format="#,###" style="text-align:right; "/>
- <col ref="item25" format="#,###" style="text-align:right; "/>
- <col ref="item26" format="#,###" style="text-align:right; "/>
- <col ref="item27" format="#,###" style="text-align:right; "/>
- <col ref="item28" format="#,###" style="text-align:right; "/>
- <col ref="item29" format="#,###" style="text-align:right; "/>
- <col ref="item30" format="#,###" style="text-align:right; "/>
- <col ref="item31" format="#,###" style="text-align:right; "/>
- <col ref="total" format="#,###" style="text-align:right; "/>
- </datagrid>
- </case>
- <case id="case2">
- <datagrid id="grd_monthlist" nodeset="/root/main/list/item" backcoloralternate="transparent" caption="검사실^검사명^검사명^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^합계^전년도합계^증감율^전년도합계^증감(%)|검사실^검사명^검사명^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^합계^전년도합계^증감율" colsep="^" colwidth="0, 0, 240, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 100, 100, 64" ellipsis="true" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" tooltip="true" style="left:0px; top:0px; width:1192px; height:630px; ">
- <col ref="systkey1" style="text-align:center; "/>
- <col ref="systkey2" style="text-align:center; "/>
- <col ref="systkey3" style="text-align:left; "/>
- <col ref="item01" format="#,###" style="text-align:right; "/>
- <col ref="item02" format="#,###" style="text-align:right; "/>
- <col ref="item03" format="#,###" style="text-align:right; "/>
- <col ref="item04" format="#,###" style="text-align:right; "/>
- <col ref="item05" format="#,###" style="text-align:right; "/>
- <col ref="item06" format="#,###" style="text-align:right; "/>
- <col ref="item07" format="#,###" style="text-align:right; "/>
- <col ref="item08" format="#,###" style="text-align:right; "/>
- <col ref="item09" format="#,###" style="text-align:right; "/>
- <col ref="item10" format="#,###" style="text-align:right; "/>
- <col ref="item11" format="#,###" style="text-align:right; "/>
- <col ref="item12" format="#,###" style="text-align:right; "/>
- <col ref="total" format="#,###" style="text-align:right; "/>
- <col ref="comparecnt" format="#,###" style="text-align:right; "/>
- <col ref="comparerate" format="(-)#,### %" style="text-align:right; "/>
- </datagrid>
- </case>
- <case id="case3">
- <datagrid id="grd_qurtlist" nodeset="/root/main/list/item" backcoloralternate="transparent" caption="검사실^검사명^검사명^1분기^1분기^2분기^2분기^3분기^3분기^4분기^4분기^전년도^전년도^전년도^전년도^합계^전년도합계^증감율|검사실^검사명^검사명^금액^증감율^금액^증감율^금액^증감율^금액^증감율^1분기^2분기^3분기^4분기^합계^전년도합계^증감율" colsep="^" colwidth="100, 100, 240, 100, 50, 100, 50, 100, 50, 100, 50, 100, 100, 100, 100, 100, 100, 73" ellipsis="true" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" tooltip="true" style="left:0px; top:0px; width:1192px; height:630px; ">
- <col ref="systkey1" style="text-align:center; "/>
- <col ref="systkey2" style="text-align:center; "/>
- <col ref="systkey3" style="text-align:left; "/>
- <col ref="item01" format="#,###" style="text-align:right; "/>
- <col ref="item02" format="(-)#,### %" style="text-align:right; "/>
- <col ref="item03" format="#,###" style="text-align:right; "/>
- <col ref="item04" style="text-align:right; "/>
- <col ref="item05" format="#,###" style="text-align:right; "/>
- <col ref="item06" format="(-)#,### %" style="text-align:right; "/>
- <col ref="item07" format="#,###" style="text-align:right; "/>
- <col ref="item08" format="(-)#,### %" style="text-align:right; "/>
- <col ref="item09" format="#,###" style="text-align:right; "/>
- <col ref="item10" format="#,###" style="text-align:right; "/>
- <col ref="item11" format="#,###" style="text-align:right; "/>
- <col ref="item12" format="#,###" style="text-align:right; "/>
- <col ref="total" format="#,###" style="text-align:right; "/>
- <col ref="comparecnt" format="#,###" style="text-align:right; "/>
- <col ref="comparerate" format="(-)#,### %" style="text-align:right; "/>
- </datagrid>
- </case>
- <case id="case4">
- <datagrid id="grd_yearlist" nodeset="/root/main/list/item" backcoloralternate="transparent" caption="검사실^검사명^검사명^2005년^2006년^2007년^2008년^2009년^합계^전년도합계^증감율" colsep="^" colwidth="0, 0, 240, 120, 120, 120, 120, 120, 120, 120, 70" ellipsis="true" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" tooltip="true" style="left:0px; top:0px; width:1192px; height:630px; ">
- <col ref="systkey1" style="text-align:center; "/>
- <col ref="systkey2" style="text-align:center; "/>
- <col ref="systkey3" style="text-align:left; "/>
- <col ref="item01" format="#,###" style="text-align:right; "/>
- <col ref="item02" format="#,###" style="text-align:right; "/>
- <col ref="item03" format="#,###" style="text-align:right; "/>
- <col ref="item04" format="#,###" style="text-align:right; "/>
- <col ref="item05" format="#,###" style="text-align:right; "/>
- <col ref="total" format="#,###" style="text-align:right; "/>
- <col ref="comparecnt" format="#,###" style="text-align:right; "/>
- <col ref="comparerate" format="(-)#,### %" style="text-align:right; "/>
- </datagrid>
- </case>
- </switch>
- <button id="btn_case1" class="btn_sw" group="tab2" selected="true" style="left:2px; top:48px; width:60px; height:22px; ">
- <caption>일별</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/main/list");
- model.refresh();
- model.toggle("case1");
- rdo_srchioflag.visible = false;
-
- // 검사별 통합 통계 조회
- getNmedSytsStatsCaseList();
- ]]>
- </script>
- </button>
- <button id="btn_case2" class="btn_sw" group="tab2" style="left:62px; top:48px; width:60px; height:22px; ">
- <caption>월별</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/main/list");
- model.refresh();
- model.toggle("case2");
-
- rdo_srchioflag.visible = false;
- // 검사별 통합 통계 조회
- getNmedSytsStatsCaseList();
- ]]>
- </script>
- </button>
- <button id="btn_case3" class="btn_sw" group="tab2" style="left:122px; top:48px; width:60px; height:22px; ">
- <caption>분기별</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/main/list");
- model.refresh();
- model.toggle("case3");
- rdo_srchioflag.visible = true;
- // 검사별 통합 통계 조회
- getNmedSytsStatsCaseList();
- ]]>
- </script>
- </button>
- <button id="btn_case4" class="btn_sw" group="tab2" style="left:182px; top:48px; width:60px; height:22px; ">
- <caption>년도별</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/main/list");
- model.refresh();
- model.toggle("case4");
-
- rdo_srchioflag.visible = false;
- // 검사별 통합 통계 조회
- getNmedSytsStatsCaseList();
- ]]>
- </script>
- </button>
- <select1 id="rdo_srchioflag" ref="/root/send/srchseanflag" appearance="full" cols="3" overflow="visible" style="left:260px; top:50px; width:115px; height:18px; border-style:none; ">
- <choices>
- <item>
- <label>일반</label>
- <value>G</value>
- </item>
- <item>
- <label>회기별</label>
- <value>H</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 검사별 통합 통계 조회
- getNmedSytsStatsCaseList();
- ]]>
- </script>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|