123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLBS00500_헌혈통계.xrw
- * 설 명 : 수혈환자수
- * 설 계 자 : (주)에이씨케이 - 박정은
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2008.06.12
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <month>
- <orddept/>
- <a01/>
- <a02/>
- <a03/>
- <a04/>
- <a05/>
- <a06/>
- <a07/>
- <a08/>
- <a09/>
- <a10/>
- <a11/>
- <a12/>
- </month>
- <quarter>
- <orddept/>
- <b01/>
- <b02/>
- <b03/>
- <b04/>
- </quarter>
- <year>
- <orddept/>
- <c01/>
- <c02/>
- <c03/>
- <c04/>
- <c05/>
- <c06/>
- <c07/>
- <c08/>
- <c09/>
- <c10/>
- </year>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <gbn/>
- <flag/>
- <codeflag/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <fromdd/>
- <todd/>
- <gbn>00</gbn>
- <flag/>
- <yy/>
- <blodgbn>00</blodgbn>
- </ref>
- <report>
- <month/>
- <quarter/>
- <year/>
- </report>
- </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" 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/LB0605"/>
- <submission id="TRLBS00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/month"/>
- <submission id="TRLBS00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/quarter"/>
- <submission id="TRLBS00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/year"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //초기화
- function fSetInit(){
- model.setValue("/root/hidden/ref/fromdd", getCurrentDate());
- model.setValue("/root/hidden/ref/todd" , getCurrentDate());
-
- model.removeNodeset("/root/main/month");
- model.removeNodeset("/root/main/quarter");
- model.removeNodeset("/root/main/year");
-
- btn_1.selected = true;
- btn_2.selected = false;
- btn_3.selected = false;
- model.toggle("case1");
-
- //공통코드
- model.setValue("/root/send/codeflag", "0605|0002|"); // 0605 blodbarcd // 0002 진료과
- submit("TRLZZ00101");
-
- model.refresh();
- }
-
-
- // 수혈환자수 조회
- function fGetTransPidCnt(){
- model.setValue("/root/send/fromdd", model.getValue("/root/hidden/ref/fromdd"));
- model.setValue("/root/send/todd", model.getValue("/root/hidden/ref/todd"));
- model.setValue("/root/send/gbn", model.getValue("/root/hidden/ref/gbn")); // 1=전체, 2= 입원, 3=외래
- //model.setValue("/root/send/flag", model.getValue("/root/hidden/ref/flag")); // 1=월별, 2=분기별, 3=연별
-
- if(model.getValue("/root/hidden/ref/flag")=="1"){
- submit("TRLBS00301");
- }else if(model.getValue("/root/hidden/ref/flag")=="2"){
- submit("TRLBS00302");
- }else if(model.getValue("/root/hidden/ref/flag")=="3"){
- fYearCaption();
- submit("TRLBS00303");
- }
- }
-
- // 엑셀저장
- function fSaveExcel(){
- var filename = window.fileDialog("save", ",", false, "Excel", "xls", "All Files(*.*)|*.*|Excel File(*.xls)|*.xls");
-
- if(model.getValue("/root/hidden/ref/flag")=="1"){//월별
- if(filename != "") {
- grd_month.saveExcel(filename);
- }
- }else if(model.getValue("/root/hidden/ref/flag")=="2"){//분기별
- if(filename != "") {
- grd_quarter.saveExcel(filename);
- }
- }else if(model.getValue("/root/hidden/ref/flag")=="3"){//연별
- if(filename != "") {
- grd_year.saveExcel(filename);
- }
- }
-
- }
-
-
- // 출력
- function fExePrint(){
- if(model.getValue("/root/hidden/ref/flag")=="1"){ //월별
- model.removeNodeset("/root/hidden/report/month");
- for(i=1; i<grd_month.rows; i++){
- copyNodeListType("/root/hidden/report", "/root/main/month["+i+"]", "arter");
- }
- model.makeValue("/root/hidden/report/fromdd", model.getValue("/root/hidden/ref/fromdd"));
- model.makeValue("/root/hidden/report/todd", model.getValue("/root/hidden/ref/todd"));
- exeReportPreview("RPLBS00300", "XMLSTR", "/root/hidden/report");
-
- }else if(model.getValue("/root/hidden/ref/flag")=="2"){ //분기별
- model.removeNodeset("/root/hidden/report/quarter");
- for(i=1; i<grd_quarter.rows; i++){
- copyNodeListType("/root/hidden/report", "/root/main/quarter["+i+"]", "after");
- }
- model.makeValue("/root/hidden/report/fromdd", model.getValue("/root/hidden/ref/fromdd"));
- model.makeValue("/root/hidden/report/todd", model.getValue("/root/hidden/ref/todd"));
- exeReportPreview("RPLBS00400", "XMLSTR", "/root/hidden/report");
-
- }else if(model.getValue("/root/hidden/ref/flag")=="3"){ //연별
- model.removeNodeset("/root/hidden/report/year");
- for(i=1; i<grd_year.rows; i++){
- copyNodeListType("/root/hidden/report", "/root/main/year["+i+"]", "after");
- }
- model.makeValue("/root/hidden/report/fromdd", model.getValue("/root/hidden/ref/fromdd"));
- model.makeValue("/root/hidden/report/todd", model.getValue("/root/hidden/ref/todd"));
- var sdd = parseInt(model.getValue("/root/hidden/ref/fromdd").substr(0,4));
- model.makeValue("/root/hidden/report/title/title1", sdd);
- model.makeValue("/root/hidden/report/title/title2", (sdd+1));
- model.makeValue("/root/hidden/report/title/title3", (sdd+2));
- model.makeValue("/root/hidden/report/title/title4", (sdd+3));
- model.makeValue("/root/hidden/report/title/title5", (sdd+4));
- model.makeValue("/root/hidden/report/title/title6", (sdd+5));
- model.makeValue("/root/hidden/report/title/title7", (sdd+6));
- model.makeValue("/root/hidden/report/title/title8", (sdd+7));
- model.makeValue("/root/hidden/report/title/title9", (sdd+8));
- model.makeValue("/root/hidden/report/title/title10", (sdd+9));
-
- exeReportPreview("RPLBS00500", "XMLSTR", "/root/hidden/report");
-
- }
-
- }
-
- // 연별 캡션 변경
- function fYearCaption(){
- for(q=1; q<=10; q++){
- grd_year.colHidden(q) = true;
- }
- var fromyy = model.getValue("/root/hidden/ref/fromdd").substr(0,4);
- var toyy = model.getValue("/root/hidden/ref/todd").substr(0,4);
- var newCap = "진료과";
- var cnt = "0";
- for(i=fromyy; i<=toyy; i++){
- newCap += "^" + i;
- cnt ++;
- }
- if(cnt > 10){
- alert("10년이상 조회하면 마비되요");
- }
-
- for(z=1; z<=cnt; z++){
- grd_year.colHidden(z) = false;
- }
-
- grd_year.caption = newCap;
- }
- ]]>
- </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:35px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:35px; "/>
- <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[
- // fGetTransPidCnt();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" style="x1:1108px; y1:6px; x2:1108px; y2:28px; "/>
- <caption id="caption5" class="search_name" style="left:383px; top:9px; width:73px; height:17px; ">진료과 :</caption>
- <input id="ipt_workfromdd" ref="/root/hidden/ref/fromdd" class="input_search" inputtype="date" style="left:128px; top:8px; width:90px; height:19px; "/>
- <input id="ipt_worktodd" ref="/root/hidden/ref/todd" class="input_search" inputtype="date" style="left:233px; top:8px; width:90px; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:15px; top:9px; width:110px; height:17px; ">통계 희망일 :</caption>
- <caption id="caption9" class="search_no_b" style="left:220px; top:10px; width:13px; height:17px; ">~</caption>
- <select1 id="cmb_rtnabnflag" ref="/root/hidden/ref/gbn" appearance="minimal" itemcount="20" style="left:463px; top:8px; width:102px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0002">
- <label ref="etc01"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo1" ref="/root/hidden/ref/blodgbn" appearance="minimal" style="left:738px; top:8px; width:102px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0605">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption6" class="search_name" style="left:643px; top:9px; width:86px; height:17px; ">혈액종류 :</caption>
- </group>
- <switch id="switch1" style="left:0px; top:75px; width:1195px; height:665px; ">
- <case id="case1" selected="true">
- <caption id="caption32" class="tit_2" style="left:10px; top:5px; width:131px; height:14px; ">일별 헌혈통계</caption>
- <line id="line19" class="line_1" style="x1:5px; y1:20px; x2:1188px; y2:20px; "/>
- <datagrid id="grd_month" nodeset="/root/main/month" caption="헌혈구분^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^Total" colsep="^" colwidth="120, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:25px; width:1183px; height:625px; ">
- <col ref="orddept"/>
- <col ref="a01"/>
- <col ref="a02"/>
- <col ref="a03"/>
- <col ref="a04"/>
- <col ref="a05"/>
- <col ref="a06"/>
- <col ref="a07"/>
- <col ref="a08"/>
- <col ref="a09"/>
- <col ref="a10"/>
- <col ref="a11"/>
- <col ref="a12"/>
- <col ref="bhap"/>
- </datagrid>
- </case>
- <case id="case2">
- <caption id="caption2" class="tit_2" style="left:10px; top:5px; width:131px; height:14px; ">월별 헌혈통계</caption>
- <line id="line1" class="line_1" style="x1:5px; y1:20px; x2:1188px; y2:20px; "/>
- <datagrid id="grd_quarter" nodeset="/root/main/quarter" caption="헌혈구분^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^Total" colsep="^" colwidth="120, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:25px; width:1183px; height:625px; ">
- <col ref="orddept"/>
- <col ref="b01"/>
- <col ref="b02"/>
- <col ref="b03"/>
- <col ref="b04"/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col ref="bhap"/>
- </datagrid>
- </case>
- <case id="case3">
- <caption id="caption3" class="tit_2" style="left:10px; top:5px; width:131px; height:14px; ">연별 헌혈통계</caption>
- <line id="line4" class="line_1" style="x1:5px; y1:20px; x2:1188px; y2:20px; "/>
- <datagrid id="grd_year" nodeset="/root/main/year" caption="헌혈구분^^^^^^^^^^^Total" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:25px; width:1183px; height:625px; ">
- <col ref="orddept"/>
- <col ref="c01"/>
- <col ref="c02"/>
- <col ref="c03"/>
- <col ref="c04"/>
- <col ref="c05"/>
- <col ref="c06"/>
- <col ref="c07"/>
- <col ref="c08"/>
- <col ref="c09"/>
- <col ref="c10"/>
- <col ref="bhap"/>
- </datagrid>
- </case>
- </switch>
- <button id="btn_1" class="btn_sw" group="tab" selected="true" style="left:0px; top:54px; width:70px; height:22px; ">
- <caption>일별</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case1");
- model.setValue("/root/hidden/ref/flag", "1"); // 월별
- ]]>
- </script>
- </button>
- <button id="btn_2" class="btn_sw" group="tab" selected="true" style="left:70px; top:54px; width:70px; height:22px; ">
- <caption>월별</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case2");
- model.setValue("/root/hidden/ref/flag", "2"); // 분기별
- ]]>
- </script>
- </button>
- <button id="btn_3" class="btn_sw" group="tab" selected="true" style="left:140px; top:54px; width:70px; height:22px; ">
- <caption>연별</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case3");
- model.setValue("/root/hidden/ref/flag", "3"); // 연별
- //연별캡션 변경
- fYearCaption();
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:53px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveExcel();
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_2" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:96px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fExePrint();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">헌혈통계</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|