123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525 |
- <?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>
- <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>
- </main>
- <send>
- <execfromdd/>
- <exectodd/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <suppdeptcd/>
- <lrgcd/>
- <mdlcd/>
- <flag/>
- <partflag/>
- <basecdflag/>
- <flag2/>
- <srchdate/>
- <srchflag/>
- </send>
- <init>
- <cmb_lrgcd/>
- <cmb_mdlcd/>
- </init>
- <hidden>
- <comcd/>
- </hidden>
- </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/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/flag", "E");
- model.setValue("/root/send/basecdflag", "R");
-
- submit("TRAES01502", false);
- aezfInsertInstance2("/root/hidden/comcd", "lrgcdlist", "전체", "", "/root/init/cmb_lrgcd");
-
- setTitle();
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRAES05501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
- <submission id="TRAES01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_lrgcd"/>
- <submission id="TRAES01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_mdlcd"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function getimgSytsStatsCaseList(){
-
- // 일별
- 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;
- }
-
- model.removenode("/root/main/list");
-
- if (submit("TRAES05501")) {
-
- 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 : 통계 구분별 그리드 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 sDayCnt = baseDate.toDate().getMonthDay();
- var baseYear = baseDate.substr(0,4);
-
- stHeader = "검사코드^검사명^";
- grd_daylist.colHidden(grd_daylist.colRef("systkey1")) = true;
- grd_monthlist.colHidden(grd_monthlist.colRef("systkey1")) = true;
-
- grd_daylist.colWidth(1) = 100;
- grd_monthlist.colWidth(1) = 100;
-
- grd_daylist.colWidth(2) = 240;
- grd_monthlist.colWidth(2) = 240;
-
- 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월 ^ 합계 ";
-
- // 일별
- stDay = stHeader + stDay;
- grd_daylist.caption = stDay;
-
- // 월별
- stMonth = stHeader + stMonth;
- grd_monthlist.caption = stMonth;
-
- 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();
- }
-
- /* @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";
-
- for(i=2; 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, 2);
-
- rowCnt = 0;
-
- // 증감율 구하기
- 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")) = "(-)#,### %";
-
- } // 분기별일 경우 분기별 증감율 구하기 끝
- }
- }
- }
-
- /* @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;
- }
-
- ]]>
- </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:200px; height:14px; ">건진 통합 검사별 실적</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group1" style="left:0px; top:10px; width:1195px; height:30px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:25px; "/>
- <button id="button1" class="btn1_letter2" navindex="4" style="left:1125px; top:4px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- openLoadingBar("검사별 실적을 조회 중입니다....") ;
-
- getimgSytsStatsCaseList();
- closeLoadingBar() ;//처리중 화면을 close한다.
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:230px; top:7px; width:76px; height:17px; ">대분류 :</caption>
- <caption id="caption9" class="search_name" style="left:415px; top:7px; width:76px; height:17px; ">중분류 :</caption>
- <select1 id="radio1" ref="/root/send/flag" appearance="full" cols="2" overflow="visible" style="left:705px; top:7px; width:140px; height:17px; border-style:none; ">
- <choices>
- <item>
- <label>촬영건수</label>
- <value>E</value>
- </item>
- <item>
- <label>부위건수</label>
- <value>B</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_lrgcd" ref="/root/send/lrgcd" appearance="minimal" editmode="input" style="left:305px; top:6px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_lrgcd/lrgcdlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- // if ( model.getValue("/root/send/lrgcd") == "GR" ) {
- //
- // if ( model.getValue("/root/send/flag") == "" ) {
- // model.setValue("/root/send/flag" , "E"); // 검사수
- // model.refresh();
- // }else {
- // model.setValue("/root/send/flag2" , "");
- // model.refresh();
- // }
- // checkbox1.visible = true;
- // }else {
- // model.setValue("/root/send/flag" , "E"); // 검사수
- // model.setValue("/root/send/flag2" , ""); // 부위건수
- // model.refresh();
- // checkbox1.visible = false;
- // }
- //
- // model.removenode("/root/main/list");
-
- model.setValue("/root/send/mdlcd", "");
- model.resetInstanceNode("/root/init/cmb_mdlcd/mdlcdlist");
-
- if ( model.getValue("/root/send/lrgcd") == "" ) {
- model.resetInstanceNode("/root/init/cmb_lrgcd/lrgcdlist");
- submit("TRAES01502");
- }else {
- submit("TRAES01503");
- }
- ]]>
- </script>
- </select1>
- <select1 id="cmb_mdlcd" ref="/root/send/mdlcd" appearance="minimal" editmode="input" style="left:490px; top:6px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_mdlcd/mdlcdlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:885px; top:7px; width:60px; height:17px; ">분류 :</caption>
- <select1 id="rdo_partflag" ref="/root/send/partflag" appearance="full" cols="3" overflow="visible" style="left:950px; top:7px; width:134px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>종합</label>
- <value>C</value>
- </item>
- <item>
- <label>일반</label>
- <value>G</value>
- </item>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:640px; top:7px; width:66px; height:17px; ">구분 :</caption>
- <caption id="caption2" class="search_name" style="left:20px; top:7px; width:86px; height:17px; ">기준년월 :</caption>
- <input id="input4" ref="/root/send/srchdate" class="input_default" inputtype="date" format="yyyy-mm" style="left:110px; top:6px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- setTitle();
- ]]>
- </script>
- </input>
- </group>
- <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");
- // 검사별 통합 통계 조회
- getimgSytsStatsCaseList();
- ]]>
- </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");
- // 검사별 통합 통계 조회
- getimgSytsStatsCaseList();
- ]]>
- </script>
- </button>
- <button id="button2" 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);
- }
- }
- ]]>
- </script>
- </button>
- <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="100, 240, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 60" frozencols="2" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" multitotal="true" rowheader="seq" rowsep="|" subtotalposition="below" tooltip="true" style="left:0px; top:0px; width:1192px; height:625px; ">
- <col ref="systkey1" style="text-align:center; "/>
- <col ref="systkey2" 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="100, 240, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 92" ellipsis="true" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" tooltip="true" style="left:0px; top:0px; width:1192px; height:625px; ">
- <col ref="systkey1" style="text-align:center; "/>
- <col ref="systkey2" 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; "/>
- </datagrid>
- </case>
- </switch>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|