123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLS01100_부서별통계.xrw
- * 설 명 : 부서별통계
- * 설 계 자 : (주)에이씨케이 - 윤재한
- * 작 성 자 : (주)에이씨케이 -
- * 작 성 일 : 2008.04.18
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <ddstats/>
- <yystats/>
- <totalstats/>
- <mmstats/>
- <totalcnts>
- <totaltest/>
- <totalbcno/>
- <totalpid/>
- <totalblood/>
- <totaltranspid/>
- </totalcnts>
- </main>
- <send/>
- <init>
- </init>
- <hidden>
- <statshopefromdd/>
- <statshopetodd/>
- <ioflag>0</ioflag>
- <sectcd/>
- <workgbn>A</workgbn>
- <cntgbn>T</cntgbn>
- <itemgbn/>
- <ddstandard>1</ddstandard>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit(); //초기화 함수 호출
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TRLMS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ddstats"/>
- <submission id="TRLMS00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/mmstats"/>
- <submission id="TRLMS00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/yystats"/>
- <submission id="TRLMS00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/totalcnts"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //화면 open시 초기화
- function fSetInit() {
- fBaseInfoRef("0111|"); //0111 : 계코드
-
- var toDay = getCurrentDate();
-
- model.setValue("/root/hidden/sectcd", "00"); //부서를 전체로 놓는다.
- model.setValue("/root/hidden/ioflag", "0"); //입원/외래구분을 전체로 놓는다.
- model.setValue("/root/hidden/statshopefromdd", toDay); //통계희망시작일 = 현재일자
- model.setValue("/root/hidden/statshopetodd", toDay); //통계희망종료일 = 현재일자
-
- caption9.visible = false;
- ipt_workfromdd.attribute("format") = "yyyy-mm";
- ipt_worktodd.visible = false;
-
- //그리드초기화
- model.removeNodeset("/root/main/ddstats"); //일별
- model.removeNodeset("/root/main/mmstats"); //월별
- model.resetInstanceNode("/root/main/yystats"); //연별
-
- btn_ddstats.selected = true; // 일별 switch 버튼 선택
- model.toggle("dd");
- model.refresh();
-
- //model.makeValue("/root/hidden/sectnm", combo1.label.substr(4).getTrim()); //Report에 표시할 부서명
-
- //makeReportPreview(0, 0, 1193, 636,"임시");
- //exeReportPreview("RPLLS02200", "XMLSTR", "", "", "", "", "", "", "", "", "", "임시");//Rexpert 크로스탭
-
- model.refresh();
- }
-
- //switch 버튼 클릭시 그리드 초기화 2008-12-12
- function fGridInit() {
- // model.removeNodeset("/root/main/ddstats"); //일별
- // model.removeNodeset("/root/main/mmstats"); //월별
- // model.resetInstanceNode("/root/main/yystats"); //연별
-
- //var cols = grd_yy.cols-grd_yy.fixedCols;
-
- //for( var i = 0; i < cols; i++ ) {
- // grd_yy.removeColumn(); //연별 그리드 컬럼 다 지우기.. 지우지 않으면 그리드 형태가 유지되어 다른 통계 조회후 연별 통계시 그리드 옆에 이어져 조회됨.
- //}
-
- /*
- //if(button1.selected == true) {
- if(model.getValue("/root/hidden/sectcd") != "U") {
- //exeReportPreview("RPLBP00200", "XMLFILE", "", "", "", "", "", "", "", "", "", "임시");
- //model.makeValue("/root/hidden/sectnm", combo1.label.substr(4).getTrim()); //Report에 표시할 부서명
- //exeReportPreview("RPLLS02200", "XMLSTR", "", "", "", "", "", "", "", "", "", "임시");//Rexpert 크로스탭
- //model.toggle("임시"); //초기시 일별그리드 표시
- model.toggle("dd"); //초기시 일별그리드 표시
- //button1.selected = true; //일별switch 버튼 선택
- btn_ddstats.selected = true; //일별switch 버튼 선택
- } else {
- model.toggle("dd"); //초기시 일별그리드 표시
- btn_ddstats.selected = true; //일별switch 버튼 선택
- }
- */
- if(btn_ddstats.selected == true){
- model.toggle("dd");
- btn_ddstats.selected = true; //일별switch 버튼 선택
- btn_mmstats.selected = false; //월별switch 버튼 선택
- btn_yystats.selected = false; //연별switch 버튼 선택
- caption9.visible = false;
- model.setValue("/root/hidden/statshopefromdd", getCurrentDate().substr(0, 6));
- ipt_workfromdd.attribute("format") = "yyyy-mm";
- ipt_worktodd.visible = false;
-
- }else if(btn_mmstats.selected == true){
- model.toggle("mm");
- btn_ddstats.selected = false; //월별switch 버튼 선택
- btn_mmstats.selected = true; //일별switch 버튼 선택
- btn_yystats.selected = false; //연별switch 버튼 선택
- caption9.visible = false;
- model.setValue("/root/hidden/statshopefromdd", getCurrentDate().substr(0, 6));
- ipt_workfromdd.attribute("format") = "yyyy-mm";
- ipt_worktodd.visible = false;
-
- }else if(btn_yystats.selected == true){
- model.toggle("yy");
- btn_ddstats.selected = false; //일별switch 버튼 선택
- btn_mmstats.selected = false; //월별switch 버튼 선택
- btn_yystats.selected = true; //연별switch 버튼 선택
-
- fSetyytitle();
- }
-
- model.refresh();
- }
-
- // 연도별 선택시 타이틀 설정
- function fSetyytitle(){
-
- model.setValue("/root/hidden/statshopefromdd", getCurrentDate().substr(0, 4));
- model.setValue("/root/hidden/statshopetodd", getCurrentDate().substr(0, 4));
- grd_yy.colWidth(4) = 80;
- for(i = 5; i<= grd_yy.cols;i++){
- grd_yy.colHidden(i) = true;
- }
- caption9.visible = true;
- ipt_workfromdd.attribute("format") = "yyyy";
- ipt_worktodd.visible = true;
- ipt_worktodd.attribute("format") = "yyyy";
-
- grd_yy.caption = "부서^검사항목^Total^"+ model.getValue("/root/hidden/statshopefromdd");
-
- }
-
- //통계희망일, 검사시행부서, 장비, 조회구분(일,월,연) 에 따른 조회 --- 2008-12-12
- function fGetStats() {
- model.resetInstanceNode("/root/main/totalstats2");
- model.resetInstanceNode("/root/main/totalstats3");
- ///model.removeNodeset("/root/main/totalstats"); //통계조회
-
- model.makeValue("/root/send/sectcd", model.getValue("/root/hidden/sectcd")); //계코드 부서콤보
- model.makeValue("/root/send/workgbn", model.getValue("/root/hidden/workgbn")); //근무구분 Ο주간 Ο야간 ΟAll
- model.makeValue("/root/send/cntgbn", model.getValue("/root/hidden/cntgbn")); //건수구분 Ο검사T Ο환자P
- model.makeValue("/root/send/itemgbn", model.getValue("/root/hidden/itemgbn")); //검사항목제외
- model.makeValue("/root/send/ioflag", model.getValue("/root/hidden/ioflag")); //입원/외래구분 I, O, E, S
- model.makeValue("/root/send/statshopefromdd", model.getValue("/root/hidden/statshopefromdd")); //통계희망시작일
- model.makeValue("/root/send/statshopetodd", model.getValue("/root/hidden/statshopetodd")); //통계희망종료일
- model.makeValue("/root/send/ddstandard", model.getValue("/root/hidden/ddstandard")); //통계기준일 1= 접수일 2=보고일
-
-
- if(btn_ddstats.selected == true) {
- model.makeValue("/root/send/refflag", "dd"); //일월연구분
- submit("TRLMS00201");
- grd_dd.rebuildStyle();
- if(model.getValue("/root/hidden/itemgbn")!= "Y"){
- setRowStyle("grd_dd", "2", "소계", "tclsscrnnm", "equal"); //소계 색변경
- }
- setRowStyle("grd_dd", "11", "부서계", "tclsscrnnm", "equal"); //부서별합계 색변경
- setRowStyle("grd_dd", "11", "부서합계", "tclsscrnnm", "equal"); //부서별합계 색변경
- setRowStyle("grd_dd", "3", "합계", "tclsscrnnm", "equal"); //총합계 색변경 에메랄드색
- }else if(btn_mmstats.selected == true){
- model.makeValue("/root/send/refflag", "mm"); //일월연구분
- submit("TRLMS00203");
- grd_mm.rebuildStyle();
- if(model.getValue("/root/hidden/itemgbn")!= "Y"){
- setRowStyle("grd_mm", "2", "소계", "tclsscrnnm", "equal"); //소계 색변경
- }
- setRowStyle("grd_mm", "11", "부서계", "tclsscrnnm", "equal"); //부서별합계 색변경
- setRowStyle("grd_mm", "11", "부서합계", "tclsscrnnm", "equal"); //부서별합계 색변경
- setRowStyle("grd_mm", "3", "합계", "tclsscrnnm", "equal"); //총합계 색변경 에메랄드색
- } else {
- //submit("TRLLS01102");
- //exeReportPreview("RPLLS02200", "XMLSTR", "", "", "", "", "", "", "", "", "", "임시");//Rexpert 크로스탭
- fSetyygrid();
- model.makeValue("/root/send/refflag", "yy"); //일월연구분
- submit("TRLMS00204");
- grd_yy.rebuildStyle();
- if(model.getValue("/root/hidden/itemgbn")!= "Y"){
- setRowStyle("grd_yy", "2", "소계", "tclsscrnnm", "equal"); //소계 색변경
- }
- setRowStyle("grd_yy", "11", "부서계", "tclsscrnnm", "equal"); //부서별합계 색변경
- setRowStyle("grd_yy", "11", "부서합계", "tclsscrnnm", "equal"); //부서별합계 색변경
- setRowStyle("grd_yy", "3", "합계", "tclsscrnnm", "equal"); //총합계 색변경 에메랄드색
- }
-
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main/totalcnts");
- }
-
- // 연별조회시 그리드 타이틀 설정 2008-12-12
- function fSetyygrid(){
- for(j = 5; j<= grd_yy.cols; j++){
- grd_yy.colHidden(j) = true;
- }
-
- var sdd = model.getValue("/root/hidden/statshopefromdd");
- var edd = model.getValue("/root/hidden/statshopetodd");
- var ddcnt = parseInt(edd) - parseInt(sdd);
- var aa = "부서^코드^검사항목^Total";
-
- var zz = 0;
- for(i = 5; i< (ddcnt+5); i++){
- grd_yy.colHidden(i) = false;
- aa += "^" + (parseInt(sdd) + parseInt(zz));
- zz ++;
- }
-
- grd_yy.caption = aa + "^" + edd;
-
- }
-
- // 그리드 선택시 총검사건수, 총바코드수, 총환자수, 총수혈건수, 총수혈환자수 조회 2008-12-12
- function fGetSelectTotacnts(){
- if(btn_ddstats.selected == true){ // 일별 8자리
- model.makeValue("/root/send/refdd", model.getValue("/root/hidden/statshopefromdd").substr(0,6) + grd_dd.valueMatrix(0, grd_dd.col));
- model.makeValue("/root/send/refflag", "dd");
- }else if(btn_mmstats.selected == true){ // 월별 6자리
- model.makeValue("/root/send/refdd", model.getValue("/root/hidden/statshopefromdd").substr(0,4) + grd_mm.valueMatrix(0, grd_mm.col));
- model.makeValue("/root/send/refflag", "mm");
- }else if(btn_yystats.selected == true){ // 연별 4자리
- model.makeValue("/root/send/refdd", grd_yy.valueMatrix(0, grd_yy.col));
- model.makeValue("/root/send/refflag", "yy");
- }
- model.makeValue("/root/send/sectcd", model.getValue("/root/hidden/sectcd")); //계코드 부서콤보
- model.makeValue("/root/send/workgbn", model.getValue("/root/hidden/workgbn")); //근무구분 Ο주간 Ο야간 ΟAll
- model.makeValue("/root/send/cntgbn", model.getValue("/root/hidden/cntgbn")); //건수구분 Ο검사T Ο환자P
- model.makeValue("/root/send/itemgbn", model.getValue("/root/hidden/itemgbn")); //검사항목제외
- model.makeValue("/root/send/ioflag", model.getValue("/root/hidden/ioflag")); //입원/외래구분 I, O, E, S
- model.makeValue("/root/send/ddstandard", model.getValue("/root/hidden/ddstandard")); //통계기준일 1= 접수일 2=보고일
-
- submit("TRLLS01105");
-
- }
-
- //연별 통계 조회
- function fGetYYStats() {
- var cols = grd_yy.cols-grd_yy.fixedCols;
- var rows = grd_yy.rows-grd_yy.fixedRows;
-
- for( var i = 0; i < cols; i++ ) {
- grd_yy.removeColumn(false); //연별 그리드 컬럼 다 지우기..지우지 않으면 그리드 형태가 유지되어 그리드 옆에 이어져 조회됨.
- }
-
- model.removeNodeset("/root/main/yystats"); //연별그리드 초기화
-
- model.makeNode("/root/main/yystats/row");
-
- model.makeValue("/root/send/sectcd", model.getValue("/root/hidden/sectcd")); //계코드
- model.makeValue("/root/send/testeqmtcd", model.getValue("/root/hidden/testeqmtcd")); //장비코드
- model.makeValue("/root/send/statshopefromdd", model.getValue("/root/hidden/statshopefromdd")); //통계희망시작일
- model.makeValue("/root/send/statshopetodd", model.getValue("/root/hidden/statshopetodd")); //통계희망종료일
-
- submit("TRLLS00802"); //통계조회
-
- model.removeNodeset("/root/send");
- model.makeNode("/root/send");
-
- //caption 정보
- var gridCaption = model.getValue("/root/hidden/yystats/header/caption");
- if(gridCaption == "") return;
-
- //ref 정보
- var gridColRef = model.getValue("/root/hidden/yystats/header/colref");
- var gridColRefArray = gridColRef.split("^");
-
- //type 정보
- var gridColType = model.getValue("/root/hidden/yystats/header/type");
- var gridColTypeArray = gridColType.split("^");
-
- for( var i = 0; i < gridColRefArray.length; i++ ) {
- if(i == 0) {
- grd_yy.addColumn("ref:" + gridColRefArray[i] + "; type:"+gridColTypeArray[i]+"; style:text-align:left; ", false); //Grid 속성 지정
- } else {
- grd_yy.addColumn("ref:" + gridColRefArray[i] + "; type:"+gridColTypeArray[i]+"; format:#,###; ", false); //Grid 속성 지정
- }
- }
-
- grd_yy.colWidth(1) = 150; //검사항목 Column은 폭이 달라서 따로 지정.
-
- for( i = 2; i < grd_yy.cols; i++ ) {
- grd_yy.colWidth(i) = 60; //Column 폭 조정
- }
-
- grd_yy.caption = gridCaption; //Caption 지정
-
- var node = instance1.selectSingleNode("/root/main");
- node.replaceChild(instance1.root.hidden.yystats, instance1.root.main.yystats); //조회하고 수정한 사항을 main에 보냄
-
- grd_yy.rowheight(0) = 23; //Title 높이 조정
-
- model.refresh();
-
- fGetTotal(); //연도별 Total 계산
- }
-
- //연도별 통계 Total계산
- function fGetTotal() {
- //Column 합계
- for(r = 1; r < grd_yy.rows; r++) {
- colsum = 0;
- for(i = 2; i < grd_yy.cols - 1; i++) {
- if(grd_yy.textmatrix(r, i) != "") {
- colsum += parseInt(grd_yy.textmatrix(r, i));
- }
- }
- model.setValue("/root/main/yystats/row["+ r +"]/total", colsum);
- }
-
- //Row 합계
- grd_yy.addRow();
- model.refresh();
-
- grd_yy.textmatrix(grd_yy.rows-1, 1) = "Total";
-
- for(i = 2; i < grd_yy.cols; i++) {
- rowsum = 0;
- for(r = 1; r < grd_yy.rows-1; r++) {
- if(grd_yy.textmatrix(r, i) != "") {
- rowsum += parseInt(grd_yy.textmatrix(r, i));
- }
- }
-
- grd_yy.textmatrix(grd_yy.rows-1, i) = rowsum;
- }
- }
-
- //엑셀저장 2008-12-12
- function fExeSaveToExcel() {
- if(btn_ddstats.selected == true) { //일별
- fSaveExcel("grd_dd");
- } else if(btn_mmstats.selected == true) { //월별
- fSaveExcel("grd_mm");
- } else if(btn_yystats.selected == true) { //연별
- fSaveExcel("grd_yy");
- }
- }
-
- //통계그리드를 출력한다.
- function fPrint() {
- if(btn_ddstats.selected == true) { //일별
- exeReportPreview("RPLLS02300");
- } else if(btn_mmstats.selected == true) { //월별
- exeReportPreview("RPLLS01100");
- } else if(btn_yystats.selected == true) { //연별
- exeReportPreview("RPLLS01300");
- }
- }
-
- // 이미 조회해온 총 검사건수 골라서 뿌려주기
- function fGetTotalcntsetting(){
-
- var stsdy = model.getValue("/root/hidden/statshopefromdd").substr(0,4);
-
- if(btn_ddstats.selected == true) {
- var col = grd_dd.valueMatrix(0, grd_dd.col);
- var stsdm = model.getValue("/root/hidden/statshopefromdd").substr(4,2);
-
- model.setValue("/root/main/totalcnts/totaltest", model.getValue("/root/main/totalstats2[stsdy=" + stsdy + " and stsdm= " + stsdm + " and stsdd=" + col + "]/test"));
- model.setValue("/root/main/totalcnts/totalbcno", model.getValue("/root/main/totalstats2[stsdy=" + stsdy + " and stsdm= " + stsdm + " and stsdd=" + col + "]/bcno"));
- model.setValue("/root/main/totalcnts/totalpid", model.getValue("/root/main/totalstats2[stsdy=" + stsdy + " and stsdm= " + stsdm + " and stsdd=" + col + "]/pid"));
-
- model.setValue("/root/main/totalcnts/totalblood", model.getValue("/root/main/totalstats3[stsdy=" + stsdy + " and stsdm= " + stsdm + " and stsdd=" + col + "]/btest"));
- model.setValue("/root/main/totalcnts/totaltranspid", model.getValue("/root/main/totalstats3[stsdy=" + stsdy + " and stsdm= " + stsdm + " and stsdd=" + col + "]/bpid"));
-
- }else if(btn_mmstats.selected == true) {
- var col = grd_mm.valueMatrix(0, grd_mm.col);
-
- model.setValue("/root/main/totalcnts/totaltest", model.getValue("/root/main/totalstats2[stsdy=" + stsdy + " and stsdm= " + col + "]/test"));
- model.setValue("/root/main/totalcnts/totalbcno", model.getValue("/root/main/totalstats2[stsdy=" + stsdy + " and stsdm= " + col + "]/bcno"));
- model.setValue("/root/main/totalcnts/totalpid", model.getValue("/root/main/totalstats2[stsdy=" + stsdy + " and stsdm= " + col + "]/pid"));
-
- model.setValue("/root/main/totalcnts/totalblood", model.getValue("/root/main/totalstats3[stsdy=" + stsdy + " and stsdm= " + col + "]/btest"));
- model.setValue("/root/main/totalcnts/totaltranspid", model.getValue("/root/main/totalstats3[stsdy=" + stsdy + " and stsdm= " + col + "]/bpid"));
-
- }else if(btn_yystats.selected == true) {
- var col = grd_yy.valueMatrix(0, grd_yy.col);
-
- model.setValue("/root/main/totalcnts/totaltest", model.getValue("/root/main/totalstats2[stsdy=" + col + "]/test"));
- model.setValue("/root/main/totalcnts/totalbcno", model.getValue("/root/main/totalstats2[stsdy=" + col + "]/bcno"));
- model.setValue("/root/main/totalcnts/totalpid", model.getValue("/root/main/totalstats2[stsdy=" + col + "]/pid"));
-
- model.setValue("/root/main/totalcnts/totalblood", model.getValue("/root/main/totalstats3[stsdy=" + col + "]/btest"));
- model.setValue("/root/main/totalcnts/totaltranspid", model.getValue("/root/main/totalstats3[stsdy=" + col + "]/bpid"));
-
- }
-
- model.refresh();
- }
- ]]>
- </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; ">
- <group id="group1" style="left:0px; top:10px; width:1195px; height:60px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:60px; "/>
- <button id="btn_ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(btn_yystats.selected == true){
- var fromdd = parseInt(model.getValue("/root/hidden/statshopefromdd").substr(0,4));
- var todd = parseInt(model.getValue("/root/hidden/statshopetodd").substr(0,4));
- if(todd - fromdd >9 ){
- alert("10년 이내로 조회 가능합니다\n조회기간을 다시 선택하세요");
- return;
- }
-
- if(fromdd > todd){
- alert("통계 희망일 시작시간이 종료시간보다 작아야 합니다. ");
- return;
- }
- }
-
- fGetStats();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" style="x1:1108px; y1:6px; x2:1108px; y2:28px; "/>
- <input id="ipt_workfromdd" ref="/root/hidden/statshopefromdd" class="input_search" inputtype="date" style="left:133px; top:8px; width:70px; height:19px; "/>
- <input id="ipt_worktodd" ref="/root/hidden/statshopetodd" class="input_search" visibility="hidden" inputtype="date" style="left:218px; top:8px; width:70px; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:20px; top:9px; width:110px; height:17px; ">통계 희망일 :</caption>
- <caption id="caption9" class="search_no_b" visibility="hidden" style="left:205px; top:8px; width:13px; height:17px; ">~</caption>
- <select1 id="combo1" ref="/root/hidden/sectcd" visibility="hidden" appearance="minimal" style="left:880px; top:34px; width:122px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0111">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGridInit();
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" visibility="hidden" style="left:815px; top:35px; width:62px; height:17px; ">부서 :</caption>
- <select1 id="radio1" ref="/root/hidden/workgbn" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="3" style="left:945px; top:10px; width:145px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>주간</label>
- <value>D</value>
- </item>
- <item>
- <label>야간</label>
- <value>N</value>
- </item>
- <item>
- <label>All</label>
- <value>A</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio2" ref="/root/hidden/cntgbn" overflow="visible" appearance="full" cellspacing="10" cols="3" style="left:665px; top:10px; width:170px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>검사</label>
- <value>T</value>
- </item>
- <item>
- <label>환자</label>
- <value>P</value>
- </item>
- <item>
- <label>검체</label>
- <value>B</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" visibility="hidden" style="left:925px; top:10px; width:15px; height:20px; ">|</caption>
- <select id="checkbox1" ref="/root/hidden/itemgbn" visibility="hidden" overflow="visible" appearance="full" style="left:235px; top:36px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>검사항목 제외</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption12" class="search_name" visibility="hidden" style="left:500px; top:35px; width:110px; height:17px; ">.... :</caption>
- <caption id="caption13" class="search_name" visibility="hidden" style="left:595px; top:35px; width:99px; height:17px; ">통계기준일 :</caption>
- <select1 id="combo2" ref="/root/hidden/ddstandard" visibility="hidden" appearance="minimal" style="left:700px; top:34px; width:92px; height:19px; ">
- <choices>
- <item>
- <label>보고일</label>
- <value>1</value>
- </item>
- <item>
- <label>접수일</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGridInit();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_rtnabnflag" ref="/root/hidden/ioflag" visibility="hidden" appearance="minimal" style="left:119px; top:34px; width:93px; height:19px; ">
- <choices>
- <item>
- <label>- 전 체 -</label>
- <value>0</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- <item>
- <label>건진</label>
- <value>S</value>
- </item>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" visibility="hidden" style="left:15px; top:35px; width:94px; height:17px; ">입원/외래 :</caption>
- <caption id="caption2" class="search_name" style="left:594px; top:9px; width:63px; height:17px; ">구분 :</caption>
- </group>
- <switch id="swt_statflag" class="sw_box" style="left:0px; top:100px; width:1195px; height:642px; ">
- <case id="dd" selected="true">
- <datagrid id="grd_dd" nodeset="/root/main/ddstats" caption="부서^코드^검사항목^Total^01^02^03^04^05^06^07^08^09^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, 60, 300, 80, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40" dataheight="23" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" selectionmode="bycol" style="left:0px; top:0px; width:1190px; height:636px; text-align:center; ">
- <col ref="sectnm"/>
- <col ref="tclscd" style="text-align:left; "/>
- <col ref="tclsscrnnm" style="text-align:left; "/>
- <col ref="total" format="#,###" style="text-align:right; background-color:#ffe79d; "/>
- <col ref="d01" format="#,###" style="text-align:right; "/>
- <col ref="d02" format="#,###" style="text-align:right; "/>
- <col ref="d03" format="#,###" style="text-align:right; "/>
- <col ref="d04" format="#,###" style="text-align:right; "/>
- <col ref="d05" format="#,###" style="text-align:right; "/>
- <col ref="d06" format="#,###" style="text-align:right; "/>
- <col ref="d07" format="#,###" style="text-align:right; "/>
- <col ref="d08" format="#,###" style="text-align:right; "/>
- <col ref="d09" format="#,###" style="text-align:right; "/>
- <col ref="d10" format="#,###" style="text-align:right; "/>
- <col ref="d11" format="#,###" style="text-align:right; "/>
- <col ref="d12" format="#,###" style="text-align:right; "/>
- <col ref="d13" format="#,###" style="text-align:right; "/>
- <col ref="d14" format="#,###" style="text-align:right; "/>
- <col ref="d15" format="#,###" style="text-align:right; "/>
- <col ref="d16" format="#,###" style="text-align:right; "/>
- <col ref="d17" format="#,###" style="text-align:right; "/>
- <col ref="d18" format="#,###" style="text-align:right; "/>
- <col ref="d19" format="#,###" style="text-align:right; "/>
- <col ref="d20" format="#,###" style="text-align:right; "/>
- <col ref="d21" format="#,###" style="text-align:right; "/>
- <col ref="d22" format="#,###" style="text-align:right; "/>
- <col ref="d23" format="#,###" style="text-align:right; "/>
- <col ref="d24" format="#,###" style="text-align:right; "/>
- <col ref="d25" format="#,###" style="text-align:right; "/>
- <col ref="d26" format="#,###" style="text-align:right; "/>
- <col ref="d27" format="#,###" style="text-align:right; "/>
- <col ref="d28" format="#,###" style="text-align:right; "/>
- <col ref="d29" format="#,###" style="text-align:right; "/>
- <col ref="d30" format="#,###" style="text-align:right; "/>
- <col ref="d31" format="#,###" style="text-align:right; "/>
- </datagrid>
- </case>
- <case id="mm">
- <datagrid id="grd_mm" nodeset="/root/main/mmstats" caption="부서^코드^검사항목^Total^01^02^03^04^05^06^07^08^09^10^11^12" colsep="^" colwidth="0, 60, 300, 80, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60" dataheight="23" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" selectionmode="bycol" style="left:0px; top:0px; width:1190px; height:636px; text-align:center; ">
- <col ref="sectnm"/>
- <col ref="tclscd" style="text-align:left; "/>
- <col ref="tclsscrnnm" style="text-align:left; "/>
- <col ref="total" format="#,###" style="text-align:right; background-color:#ffe79d; "/>
- <col ref="d01" format="#,###" style="text-align:right; "/>
- <col ref="d02" format="#,###" style="text-align:right; "/>
- <col ref="d03" format="#,###" style="text-align:right; "/>
- <col ref="d04" format="#,###" style="text-align:right; "/>
- <col ref="d05" format="#,###" style="text-align:right; "/>
- <col ref="d06" format="#,###" style="text-align:right; "/>
- <col ref="d07" format="#,###" style="text-align:right; "/>
- <col ref="d08" format="#,###" style="text-align:right; "/>
- <col ref="d09" format="#,###" style="text-align:right; "/>
- <col ref="d10" format="#,###" style="text-align:right; "/>
- <col ref="d11" format="#,###" style="text-align:right; "/>
- <col ref="d12" format="#,###" style="text-align:right; "/>
- </datagrid>
- </case>
- <case id="yy">
- <datagrid id="grd_yy" nodeset="/root/main/yystats" caption="^^^^^^^^^^^^^" colsep="^" colwidth="0, 60, 300, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="bycol" style="left:0px; top:0px; width:1185px; height:636px; ">
- <col ref="sectnm"/>
- <col ref="tclscd" style="text-align:left; "/>
- <col ref="tclsscrnnm"/>
- <col ref="total" format="#,###" style="text-align:right; background-color:#ffe79d; "/>
- <col ref="d01" format="#,###" style="text-align:right; "/>
- <col ref="d02" format="#,###" style="text-align:right; "/>
- <col ref="d03" format="#,###" style="text-align:right; "/>
- <col ref="d04" format="#,###" style="text-align:right; "/>
- <col ref="d05" format="#,###" style="text-align:right; "/>
- <col ref="d06" format="#,###" style="text-align:right; "/>
- <col ref="d07" format="#,###" style="text-align:right; "/>
- <col ref="d08" format="#,###" style="text-align:right; "/>
- <col ref="d09" format="#,###"/>
- <col ref="d10" format="#,###" style="text-align:right; "/>
- </datagrid>
- </case>
- <case id="임시"/>
- </switch>
- <button id="btn_mmstats" class="btn_sw" visibility="visible" group="tab" style="left:75px; top:79px; width:75px; height:22px; ">
- <caption>월별 통계</caption>
- <toggle case="mm" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGridInit();
- ]]>
- </script>
- </button>
- <button id="btn_ddstats" class="btn_sw" visibility="visible" group="tab" style="left:0px; top:79px; width:75px; height:22px; ">
- <caption>일별 통계</caption>
- <toggle case="dd" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGridInit();
- ]]>
- </script>
- </button>
- <button id="btn_yystats" class="btn_sw" visibility="visible" group="tab" style="left:150px; top:79px; width:75px; height:22px; ">
- <caption>연별 통계</caption>
- <toggle case="yy" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGridInit();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn_sw" visibility="hidden" group="tab" style="left:225px; top:79px; width:75px; height:22px; ">
- <caption>임시</caption>
- <toggle case="임시" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGridInit();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">검사 통계</caption>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line2" class="line_2" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fPrint();
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn6_letter5" style="left:0px; top:3px; width:92px; height:22px; ">
- <caption>EXCEL저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSaveToExcel();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|