123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLBP00300_혈액반납폐기율.xrw
- * 설 명 : 혈액반납폐기율
- * 설 계 자 : (주)에이씨케이 - 이재민
- * 작 성 자 : (주)에이씨케이 - 이재민
- * 작 성 일 : 2010.01.19
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <main>
- <ddstat>
- <chk/>
- <blodtest/>
- <delive/>
- <rtn/>
- <perc/>
- <d01/>
- <d02/>
- <d03/>
- <d04/>
- <d05/>
- <d06/>
- <d07/>
- <d08/>
- <d09/>
- <d10/>
- <d11/>
- <d12/>
- <d13/>
- <d14/>
- <d15/>
- <d16/>
- <d17/>
- <d18/>
- <d19/>
- <d20/>
- <d21/>
- <d22/>
- <d23/>
- <d24/>
- <d25/>
- <d26/>
- <d27/>
- <d28/>
- <d29/>
- <d30/>
- <d31/>
- </ddstat>
- <mmstat>
- <chk/>
- <blodtest/>
- <t1/>
- <m1/>
- <p1/>
- <t2/>
- <m2/>
- <p2/>
- <t3/>
- <m3/>
- <p3/>
- <t4/>
- <m4/>
- <p4/>
- <t5/>
- <m5/>
- <p5/>
- <t6/>
- <m6/>
- <p6/>
- <t7/>
- <m7/>
- <p7/>
- <t8/>
- <m8/>
- <p8/>
- <t9/>
- <m9/>
- <p9/>
- <t10/>
- <m10/>
- <p10/>
- <t11/>
- <m11/>
- <p11/>
- <t12/>
- <m12/>
- <p12/>
- </mmstat>
- <yystat>
- <chk/>
- <blodtest/>
- <d1/>
- <d2/>
- <d3/>
- <d4/>
- <d5/>
- <d6/>
- <d7/>
- <d8/>
- <d9/>
- </yystat>
- <ccstat>
- <chk/>
- <blod/>
- <resndesc/>
- <hap/>
- <pa/>
- <m1/>
- <m2/>
- <m3/>
- <m4/>
- <m5/>
- <m6/>
- <m7/>
- <m8/>
- <m9/>
- <m10/>
- <m11/>
- <m12/>
- </ccstat>
- <cystat>
- <chk/>
- <blod/>
- <resndesc/>
- <hap/>
- <pa/>
- <d1/>
- <d2/>
- <d3/>
- </cystat>
- </main>
- <send>
- <rtnabnflag/>
- <refflag/>
- <cls/>
- <stathopefromdd/>
- <stathopetodd/>
- <perc/>
- <mon/>
- <code/>
- <bloodnm/>
- <list/>
- <dept/>
- <res/>
- </send>
- <init>
- </init>
- <hidden>
- <rtnabnflag>1</rtnabnflag>
- <cls/>
- <stathopefromdd/>
- <stathopetodd/>
- <perc/>
- <code>2</code>
- <bloodnm/>
- <list/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.toggle("dd");
- btn_ddstat.selected = true;
- fSetInit();
- ]]>
- </script>
- <submission id="TRLBP00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
- <submission id="TRLBP00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
- <submission id="TRLBP00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
- <submission id="TRLBP00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fDvisible() { //일별
- grd_dd.fixedcellcheckbox(0, 1) = true;
- fSetInit();
- var toDay = getCurrentDate();
- var toDays = toDay.substr(0,6)
- ipt_worktodd.attribute("format") = "yyyy-mm";
- ipt_workfromdd.attribute("format") = "yyyy-mm";
- model.setValue("/root/hidden/stathopefromdd", toDays);
- model.setValue("/root/hidden/stathopetodd", toDays);
- caption9.visible = false;
- ipt_worktodd.visible = false;
- btn_ddstat.selected == true
- combo2.visible = false;
- cmb_rtnabnflag.visible = true;
- model.refresh();
- }
-
- function fMvisible() { //월별
-
- grd_mm.fixedcellcheckbox(0, 1) = true;
- fSetInit();
- var toDay = getCurrentDate();
- var toDays = toDay.substr(0,4)
- ipt_worktodd.attribute("format") = "yyyy";
- ipt_workfromdd.attribute("format") = "yyyy";
- model.setValue("/root/hidden/stathopefromdd", toDays);
- model.setValue("/root/hidden/stathopetodd", toDays);
- caption9.visible = false;
- ipt_worktodd.visible = false;
- combo2.visible = false;
- cmb_rtnabnflag.visible = true;
-
- model.refresh();
- }
-
- function fYvisible() { //년별
-
- grd_yy.fixedcellcheckbox(0, 1) = true;
- fSetInit();
- var toDay = getCurrentDate();
- var toDays = toDay.substr(0,4)
- ipt_worktodd.attribute("format") = "yyyy";
- ipt_workfromdd.attribute("format") = "yyyy";
- model.setValue("/root/hidden/stathopefromdd", toDays);
- model.setValue("/root/hidden/stathopetodd", toDays);
- caption9.visible = true;
- ipt_worktodd.visible = true;
- combo2.visible = false;
- cmb_rtnabnflag.visible = true;
-
- fHidden();
- model.refresh();
- }
-
- function fHidden(){ //그리드 숨기기
- grd_yy.colHidden(3) = true;
- grd_yy.colHidden(4) = true;
- grd_yy.colHidden(5) = true;
- grd_yy.colHidden(6) = true;
- grd_yy.colHidden(7) = true;
- grd_yy.colHidden(8) = true;
- grd_yy.colHidden(9) = true;
- grd_yy.colHidden(10) = true;
- grd_yy.colHidden(11) = true;
-
- grd_cy.colHidden(6) = true;
- grd_cy.colHidden(7) = true;
- grd_cy.colHidden(8) = true;
- grd_cy.colHidden(9) = true;
- grd_cy.colHidden(10) = true;
- grd_cy.colHidden(11) = true;
- grd_cy.colHidden(12) = true;
- grd_cy.colHidden(13) = true;
- grd_cy.colHidden(14) = true;
- grd_cy.colHidden(15) = true;
- grd_cy.colHidden(16) = true;
- grd_cy.colHidden(17) = true;
-
- }
-
- //사유월별
- function fCvisible() {
-
- grd_cm.fixedcellcheckbox(0, 1) = true;
- fSetInit();
- var toDay = getCurrentDate();
- var toDays = toDay.substr(0,4)
- ipt_worktodd.attribute("format") = "yyyy";
- ipt_workfromdd.attribute("format") = "yyyy";
- model.setValue("/root/hidden/stathopefromdd", toDays);
- model.setValue("/root/hidden/stathopetodd", toDays);
- caption9.visible = false;
- ipt_worktodd.visible = false;
- combo2.visible = true;
- cmb_rtnabnflag.visible = false;
-
- model.refresh();
- }
- //사유년별
- function fCyvisible() {
-
- grd_cy.fixedcellcheckbox(0, 1) = true;
- fSetInit();
- var toDay = getCurrentDate();
- var toDays = toDay.substr(0,4)
- ipt_worktodd.attribute("format") = "yyyy";
- ipt_workfromdd.attribute("format") = "yyyy";
- model.setValue("/root/hidden/stathopefromdd", toDays);
- model.setValue("/root/hidden/stathopetodd", toDays);
- caption9.visible = true;
- ipt_worktodd.visible = true;
- combo2.visible = true;
- cmb_rtnabnflag.visible = false;
-
- fHidden();
- model.refresh();
-
- }
-
- //초기화
- function fSetInit() {
-
- grd_dd.fixedcellcheckbox(0, 1) = true;
- var toDay = getCurrentDate();
- var toDays = toDay.substr(0,6)
- ipt_worktodd.attribute("format") = "yyyy-mm";
- ipt_workfromdd.attribute("format") = "yyyy-mm";
-
- model.setValue("/root/hidden/rtnabnflag", "1");
- model.setValue("/root/hidden/cls", "1");
- model.setValue("/root/hidden/stathopefromdd", toDays);
- model.setValue("/root/hidden/stathopetodd", toDays);
-
-
- model.removeNodeset("/root/main/ddstat");
- model.removeNodeset("/root/main/mmstat");
- model.removeNodeset("/root/main/yystat");
- model.removeNodeset("/root/main/ccstat");
- model.removeNodeset("/root/main/cystat");
-
-
- //body.removeChild("ivr_report");
-
-
- grd_dd.seqrowheader = 0;
- grd_dd.frozenRows = 1;
- grd_dd.frozenCols = 5;
- //body.removeChild("ivr_report");
- //makeReportPreview(0, 0, 1193, 645, "mm");
- //makeReportPreview(0, 0, 1193, 645, "yy");
- model.refresh();
- }
-
- //조회
- function fSetStat() {
-
- model.resetInstanceNode("/root/main/ddstat");
- var mons = (model.getValue("/root/hidden/stathopefromdd"));
- var mon = null;
-
- mon = mons.substr(4,2);
-
- model.setValue("/root/send/mon",mon)
- model.setValue("/root/send/rtnabnflag", model.getValue("/root/hidden/rtnabnflag"));
- model.setValue("/root/send/cls", model.getValue("/root/hidden/cls"));
- model.setValue("/root/send/stathopefromdd", model.getValue("/root/hidden/stathopefromdd"));
- model.setValue("/root/send/stathopetodd", model.getValue("/root/hidden/stathopetodd"));
- model.setValue("/root/send/code", model.getValue("/root/hidden/code"));
- model.setValue("/root/send/bloodnm", model.getValue("/root/hidden/bloodnm"));
- model.setValue("/root/send/perc", model.getValue("/root/hidden/perc"));
-
- if(btn_ddstat.selected == true) {
- model.setValue("/root/send/refflag", "1");
- submit("TRLBP00301");
- grd_dd.rowStyle(1,"all","background-color") = "#f7a08b"
- grd_dd.seqrowheader = 0;
- grd_dd.frozenRows = 1;
- grd_dd.frozenCols = 5;
- model.setValue("root/send/list", "");
- model.setValue("root/send/dept", "");
- model.refresh();
- } else if(btn_mmstat.selected == true) {
- fGetMMStat();
- } else if(btn_yystat.selected == true) {
- fGetYYStat();
- } else if(btn_ccstat.selected == true) {
- fGetCCStat();
- } else if(btn_cystat.selected == true) {
- fGetCYStat();
- }
- }
-
- //월별통계
- function fGetMMStat() {
-
- model.resetInstanceNode("/root/main/mmstat");
- model.setValue("/root/send/rtnabnflag", model.getValue("/root/hidden/rtnabnflag"));
- model.setValue("/root/send/refflag", "2");
- model.setValue("/root/send/cls", model.getValue("/root/hidden/cls"));
- model.setValue("/root/send/stathopefromdd", model.getValue("/root/hidden/stathopefromdd"));
- model.setValue("/root/send/stathopetodd", model.getValue("/root/hidden/stathopetodd"));
- model.setValue("/root/send/perc", model.getValue("/root/hidden/perc"));
-
- submit("TRLBP00302");
-
- grd_mm.rowStyle(2,"all","background-color") = "#f7a08b"
- grd_mm.seqrowheader = 0;
- grd_mm.frozenRows = 1;
- grd_mm.frozenCols = 2;
- model.setValue("root/send/list", "");
- model.setValue("root/send/dept", "");
- model.refresh();
-
- //exeReportPreview("RPLBP00200", "XMLFILE", "/root/send", "TRLBP00301", "", "", "", "", "", "", "", "mm");
- }
-
- //년별통계
- function fGetYYStat() {
- var fromyy = parseInt(model.getValue("/root/hidden/stathopefromdd").substr(0,4));
- var toyy = parseInt(model.getValue("/root/hidden/stathopetodd").substr(0,4));
- if(toyy - fromyy < 0){
- alert("종료일이 시작일보다 작습니다");
- return;
- }
- if(toyy - fromyy >= 3){
- alert("조회는 3년까지만 제공합니다");
- return;
- }
- fHidden();
-
- model.removeNodeset("/root/main/yystat");
-
- var newCap = "^구분";
- var newCap2 = "|^구분^총출고^건수^%^총출고^건수^%^총출고^건수^%^총출고^건수^%^총출고^건수^%^총출고^건수^%^총출고^건수^%^총출고^건수^%^총출고^건수^%";
- var cnt = "0";
- var yearval = 0;
-
- if((toyy-2) == fromyy ){
- grd_yy.colHidden(9) = false;
- grd_yy.colHidden(10) = false;
- grd_yy.colHidden(11) = false;
- }
-
- grd_yy.colHidden(3) = false;
- grd_yy.colHidden(4) = false;
- grd_yy.colHidden(5) = false;
-
- newCap += "^ " + fromyy + "년^ " + fromyy + "년^ " + fromyy + "년";
-
-
- for(i=1; i<11; i++){
- yearval = fromyy + i;
- if(yearval <= toyy){
- newCap += "^ " + yearval + "년" + "^ " + yearval + "년" + "^ " + yearval + "년";
-
- grd_yy.colHidden(6) = false;
- grd_yy.colHidden(7) = false;
- grd_yy.colHidden(8) = false;
-
- }
- }
- grd_yy.caption = newCap + newCap2;
- model.refresh();
-
- model.setValue("/root/send/rtnabnflag", model.getValue("/root/hidden/rtnabnflag"));
- model.setValue("/root/send/refflag", "3");
- model.setValue("/root/send/cls", model.getValue("/root/hidden/cls"));
- model.setValue("/root/send/stathopefromdd", model.getValue("/root/hidden/stathopefromdd"));
- model.setValue("/root/send/stathopetodd", model.getValue("/root/hidden/stathopetodd"));
- model.setValue("/root/send/perc", model.getValue("/root/hidden/perc"));
- model.setValue("/root/send/perc", model.getValue("/root/hidden/perc"));
-
- submit("TRLBP00301");
-
- grd_yy.rowStyle(2,"all","background-color") = "#f7a08b"
- grd_yy.seqrowheader = 0;
- grd_yy.frozenRows = 1;
- grd_yy.frozenCols = 2;
- model.setValue("root/send/list", "");
- model.setValue("root/send/dept", "");
- model.refresh();
- //exeReportPreview("RPLBP00100", "XMLFILE", "/root/send", "TRLBP00301", "", "", "", "", "", "", "", "yy");
- }
-
- //유형(월별)
- function fGetCCStat() {
-
- grd_cm.rebuildStyle();
- model.resetInstanceNode("/root/main/ccstat");
- model.setValue("/root/send/rtnabnflag", model.getValue("/root/hidden/rtnabnflag"));
- model.setValue("/root/send/refflag", "4");
- model.setValue("/root/send/cls", model.getValue("/root/hidden/cls"));
- model.setValue("/root/send/stathopefromdd", model.getValue("/root/hidden/stathopefromdd"));
- model.setValue("/root/send/mon", model.getValue("/root/hidden/stathopefromdd"));
- model.setValue("/root/send/perc", model.getValue("/root/hidden/perc"));
-
- submit("TRLBP00303");
-
- grd_cm.rowStyle(1,"all","background-color") = "#f7a08b"
-
- for (i = 1; i < grd_cm.rows; i++){
- if(model.getValue("/root/main/ccstat[" + i + "]/resndesc" )== "[소계]"){
- grd_cm.rowStyle(i,"all","background-color") = "#C0C0C0 "
- }
- }
-
- grd_cm.seqrowheader = 0;
- grd_cm.frozenRows = 1;
-
- model.setValue("root/send/list", "");
- model.setValue("root/send/dept", "");
- model.setValue("root/send/res", "");
- model.refresh();
- }
-
- //유형별(년별)
- function fGetCYStat() {
- var fromyy = parseInt(model.getValue("/root/hidden/stathopefromdd").substr(0,4));
- var toyy = parseInt(model.getValue("/root/hidden/stathopetodd").substr(0,4));
-
- if(toyy - fromyy < 0){
- alert("종료일이 시작일보다 작습니다");
- return;
- }
- if(toyy - fromyy >= 3){
- alert("조회는 3년까지만 제공합니다");
- return;
- }
-
- fHidden();
- grd_cy.rebuildStyle();
- grd_yy.refresh();
- model.removeNodeset("/root/main/yystat");
- grd_yy.gridToInstance();
- var newCap = "^구분^사유^총건수^%";
-
- var cnt = "0";
- var yearval = 0;
-
- if((toyy-2) == fromyy ){
- grd_cy.colHidden(6) = false;
- grd_cy.colHidden(7) = false;
- grd_cy.colHidden(8) = false;
-
- }
-
- grd_cy.colHidden(6) = false;
-
- newCap += "^ " + fromyy + "년 ";
-
-
- for(i=1; i<11; i++){
- yearval = fromyy + i;
- if(yearval <= toyy){
- newCap += "^ " + yearval + "년";
-
- grd_cy.colHidden(7) = false;
-
- }
- }
- grd_cy.caption = newCap
- model.refresh();
-
- model.setValue("/root/send/rtnabnflag", model.getValue("/root/hidden/rtnabnflag"));
- model.setValue("/root/send/refflag", "5");
- model.setValue("/root/send/cls", model.getValue("/root/hidden/cls"));
- model.setValue("/root/send/stathopefromdd", model.getValue("/root/hidden/stathopefromdd"));
- model.setValue("/root/send/stathopetodd", model.getValue("/root/hidden/stathopetodd"));
- model.setValue("/root/send/perc", model.getValue("/root/hidden/perc"));
-
- submit("TRLBP00304");
-
- grd_cy.rowStyle(1,"all","background-color") = "#f7a08b"
-
- for (i = 1; i < grd_cy.rows; i++){
- if(model.getValue("/root/main/cystat[" + i + "]/resndesc" )== "[소계]"){
- grd_cy.rowStyle(i,"all","background-color") = "#C0C0C0"
- }
- }
- grd_cy.seqrowheader = 0;
- grd_cy.frozenRows = 1;
- grd_cy.frozenCols = 2;
- model.setValue("root/send/list", "");
- model.setValue("root/send/dept", "");
- model.refresh();
- //exeReportPreview("RPLBP00100", "XMLFILE", "/root/send", "TRLBP00301", "", "", "", "", "", "", "", "yy");
- }
-
- //정리
- function fList() { //일별
- if (btn_ddstat.selected == true){
- if(model.getValue("/root/send/cls") == 2) {
- var list = "";
- var dept = "";
- for (i = 1; i < grd_dd.rows; i++){
- if(model.getValue("/root/main/ddstat[" + i + "]/chk" )== "1"){
- list = list + "," + model.getValue("/root/main/ddstat[" + i + "]/blodtest");
- }
- }
- model.setValue("/root/send/list" , list);
- fSetStat()
- }else if (btn_ddstat.selected == true){
- if(model.getValue("/root/send/cls") == 1) {
- var dept = "";
- for (i = 1; i < grd_dd.rows; i++){
- if(model.getValue("/root/main/ddstat[" + i + "]/chk" )== "1"){
- dept = dept + "," + model.getValue("/root/main/ddstat[" + i + "]/blodtest");
- }
- }
- model.setValue("/root/send/dept" , dept);
- fSetStat()
- }
- }
- }
-
-
- if (btn_mmstat.selected == true){ //월별
- if(model.getValue("/root/send/cls") == 2) {
- var list = "";
- for (i = 1; i < grd_mm.rows; i++){
- if(model.getValue("/root/main/mmstat[" + i + "]/chk" )== "1"){
- list = list + "," + model.getValue("/root/main/mmstat[" + i + "]/blodtest");
- }
- }
- model.setValue("/root/send/list" , list);
- fGetMMStat()
- }else if (btn_mmstat.selected == true){
- if(model.getValue("/root/send/cls") == 1) {
- var dept = "";
- for (i = 1; i < grd_mm.rows; i++){
- if(model.getValue("/root/main/mmstat[" + i + "]/chk" )== "1"){
- dept = dept + "," + model.getValue("/root/main/mmstat[" + i + "]/blodtest");
- }
- }
- model.setValue("/root/send/dept" , dept);
- fGetMMStat()
- }
- }
- }
-
- if (btn_yystat.selected == true){ //연별
- if(model.getValue("/root/send/cls") == 2) {
- var list = "";
- for (i = 1; i < grd_yy.rows; i++){
- if(model.getValue("/root/main/yystat[" + i + "]/chk" )== "1"){
- list = list + "," + model.getValue("/root/main/yystat[" + i + "]/blodtest");
- }
- }
- model.setValue("/root/send/list" , list);
- fGetYYStat()
- }else if (btn_yystat.selected == true){
- if(model.getValue("/root/send/cls") == 1) {
- var dept = "";
- for (i = 1; i < grd_yy.rows; i++){
- if(model.getValue("/root/main/yystat[" + i + "]/chk" )== "1"){
- dept = dept + "," + model.getValue("/root/main/yystat[" + i + "]/blodtest");
- }
- }
- model.setValue("/root/send/dept" , dept);
- fGetYYStat()
- }
- }
- }
-
- if (btn_ccstat.selected == true){ //유형월별
- if(model.getValue("/root/send/cls") == 2) {
- var list = "";
- var res = "";
- for (i = 1; i < grd_cm.rows; i++){
- if(model.getValue("/root/main/ccstat[" + i + "]/chk" )== "1"){
-
- list = list + "," + model.getValue("/root/main/ccstat[" + i + "]/blod" ) + model.getValue("/root/main/ccstat[" + i + "]/resndesc");
-
- }
- }
-
- model.setValue("/root/send/list" , list);
-
- fGetCCStat()
- }else if (btn_ccstat.selected == true){
- if(model.getValue("/root/send/cls") == 1) {
- var dept = "";
- for (i = 1; i < grd_cm.rows; i++){
- if(model.getValue("/root/main/ccstat[" + i + "]/chk" )== "1"){
-
- dept = dept + "," + model.getValue("/root/main/ccstat[" + i + "]/blod") + model.getValue("/root/main/ccstat[" + i + "]/resndesc");
-
- }
- }
-
- model.setValue("/root/send/dept" , dept);
-
- fGetCCStat()
- }
- }
- }
-
- if (btn_cystat.selected == true){ //유형연별
- if(model.getValue("/root/send/cls") == 2) {
- var list = "";
- var res = "";
- for (i = 1; i < grd_cy.rows; i++){
- if(model.getValue("/root/main/cystat[" + i + "]/chk" )== "1"){
-
- list = list + "," + model.getValue("/root/main/cystat[" + i + "]/blod" ) + model.getValue("/root/main/cystat[" + i + "]/resndesc");
-
- }
- }
-
- model.setValue("/root/send/list" , list);
-
- fGetCYStat()
- }else if (btn_cystat.selected == true){
- if(model.getValue("/root/send/cls") == 1) {
- var dept = "";
- for (i = 1; i < grd_cy.rows; i++){
- if(model.getValue("/root/main/cystat[" + i + "]/chk" )== "1"){
-
- dept = dept + "," + model.getValue("/root/main/cystat[" + i + "]/blod") + model.getValue("/root/main/cystat[" + i + "]/resndesc");
-
- }
- }
-
- model.setValue("/root/send/dept" , dept);
-
- fGetCYStat()
- }
- }
- }
-
- }
- //엑셀저장
- function fSaveExcel() {
- var filename = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls");
-
- if(filename != "") {
- if(btn_ddstat.selected == true) {
- grd_dd.saveExcel(filename);
- }else if(btn_mmstat.selected == true) {
- grd_mm.saveExcel(filename);
- }else if(btn_yystat.selected == true) {
- grd_yy.saveExcel(filename);
- }else if(btn_ccstat.selected == true) {
- grd_cm.saveExcel(filename);
- }else if(btn_cystat.selected == true) {
- grd_cy.saveExcel(filename);
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,769;" 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[
- fSetStat();
- ]]>
- </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:386px; top:9px; width:112px; height:17px; ">반환폐기구분 :</caption>
- <caption id="caption2" class="search_name" style="left:615px; top:9px; width:64px; height:17px; ">분류 :</caption>
- <select id="chx_perc" ref="/root/hidden/perc" overflow="visible" appearance="full" checkvalue="1,0" type="checkbox" style="left:873px; top:10px; width:35px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>1</value>
- </item>
- </choices>
- </select>
- <caption id="caption1" class="search_name" style="left:792px; top:9px; width:74px; height:17px; ">마취과 :</caption>
- <input id="ipt_workfromdd" ref="/root/hidden/stathopefromdd" class="input_search" inputtype="date" style="left:189px; top:8px; width:80px; height:19px; "/>
- <input id="ipt_worktodd" ref="/root/hidden/stathopetodd" class="input_search" visibility="hidden" inputtype="date" style="left:298px; top:8px; width:80px; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:10px; top:9px; width:110px; height:17px; ">통계 희망일 :</caption>
- <caption id="caption9" class="search_no_b" visibility="hidden" style="left:277px; top:10px; width:13px; height:17px; ">~</caption>
- <select1 id="cmb_rtnabnflag" ref="/root/hidden/rtnabnflag" appearance="minimal" style="left:503px; top:8px; width:102px; height:19px; ">
- <choices>
- <item>
- <label>반환</label>
- <value>1</value>
- </item>
- <item>
- <label>폐기</label>
- <value>2</value>
- </item>
- <item>
- <label>잔여혈액폐기</label>
- <value>3</value>
- </item>
- <item>
- <label>취소</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_cls" ref="/root/hidden/cls" appearance="minimal" style="left:682px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>진료과별</label>
- <value>1</value>
- </item>
- <item>
- <label>혈액종류별</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="input1" ref="/root/hidden/bloodnm" style="left:1000px; top:8px; width:100px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:923px; top:9px; width:73px; height:17px; ">혈액명 :</caption>
- <select1 id="combo2" ref="/root/hidden/rtnabnflag" visibility="hidden" appearance="minimal" style="left:503px; top:8px; width:102px; height:19px; ">
- <choices>
- <item>
- <label>반환</label>
- <value>1</value>
- </item>
- <item>
- <label>폐기</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- </group>
- <switch id="swt_statflag" class="sw_box" style="left:0px; top:75px; width:1195px; height:663px; ">
- <case id="dd" selected="true">
- <datagrid id="grd_dd" nodeset="/root/main/ddstat" caption="^구분^총출고^건수^%^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="25, 120, 50, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" style="left:5px; top:37px; width:1180px; height:616px; text-align:center; ">
- <col checkvalue="1,0" ref="chk" type="checkbox"/>
- <col ref="blodtest" style="text-align:left; "/>
- <col ref="delive"/>
- <col ref="rtn"/>
- <col ref="perc"/>
- <col ref="d01"/>
- <col ref="d02"/>
- <col ref="d03"/>
- <col ref="d04"/>
- <col ref="d05"/>
- <col ref="d06"/>
- <col ref="d07"/>
- <col ref="d08"/>
- <col ref="d09"/>
- <col ref="d10"/>
- <col ref="d11"/>
- <col ref="d12"/>
- <col ref="d13"/>
- <col ref="d14"/>
- <col ref="d15"/>
- <col ref="d16"/>
- <col ref="d17"/>
- <col ref="d18"/>
- <col ref="d19"/>
- <col ref="d20"/>
- <col ref="d21"/>
- <col ref="d22"/>
- <col ref="d23"/>
- <col ref="d24"/>
- <col ref="d25"/>
- <col ref="d26"/>
- <col ref="d27"/>
- <col ref="d28"/>
- <col ref="d29"/>
- <col ref="d30"/>
- <col ref="d31"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_dd.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:5px; y1:31px; x2:1184px; y2:31px; "/>
- <caption id="caption7" class="tit_2" style="left:5px; top:15px; width:131px; height:13px; ">일별 통계</caption>
- </case>
- <case id="mm">
- <datagrid id="grd_mm" nodeset="/root/main/mmstat" caption="^구분^1월^1월^1월^2월^2월^2월^3월^3월^3월^4월^4월^4월^5월^5월^5월^6월^6월^6월^7월^7월^7월^8월^8월^8월^9월^9월^9월^10월^10월^10월^11월^11월^11월^12월^12월^12월^12|^구분^총출고^건수^%^총출고^건수^%^총출고^건수^%^총출고^건수^%^총출고^건수^%^총출고^건수^%^총출고^건수^%^총출고^건수^%^총출고^건수^%^총출고^건수^%^총출고^건수^%^총출고^건수^백분률^백분률" colsep="^" colwidth="25, 120, 50, 40, 35, 50, 40, 35, 50, 40, 35, 50, 40, 35, 50, 40, 35, 50, 45, 35, 50, 40, 35, 50, 40, 35, 50, 40, 35, 50, 40, 35, 50, 40, 35, 50, 40, 50" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" style="left:5px; top:37px; width:1180px; height:616px; ">
- <col checkvalue="1,0" ref="chk" type="checkbox"/>
- <col ref="blodtest"/>
- <col ref="t1"/>
- <col ref="m1"/>
- <col ref="p1"/>
- <col ref="t2"/>
- <col ref="m2"/>
- <col ref="p2"/>
- <col ref="t3"/>
- <col ref="m3"/>
- <col ref="p3"/>
- <col ref="t4"/>
- <col ref="m4"/>
- <col ref="p4"/>
- <col ref="t5"/>
- <col ref="m5"/>
- <col ref="p5"/>
- <col ref="t6"/>
- <col ref="m6"/>
- <col ref="p6"/>
- <col ref="t7"/>
- <col ref="m7"/>
- <col ref="p7"/>
- <col ref="t8"/>
- <col ref="m8"/>
- <col ref="p8"/>
- <col ref="t9"/>
- <col ref="m9"/>
- <col ref="p9"/>
- <col ref="t10"/>
- <col ref="m10"/>
- <col ref="p10"/>
- <col ref="t11"/>
- <col ref="m11"/>
- <col ref="p11"/>
- <col ref="t12"/>
- <col ref="m12"/>
- <col ref="p12"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_mm.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line4" class="line_1" style="x1:5px; y1:31px; x2:1184px; y2:31px; "/>
- <caption id="caption8" class="tit_2" style="left:5px; top:15px; width:131px; height:14px; ">월별통계</caption>
- </case>
- <case id="yy">
- <datagrid id="grd_yy" nodeset="/root/main/yystat" caption="^구분^d1^d2^d3^d4^d5^d6^d7^d8^d9" colsep="^" colwidth="25, 120, 80, 80, 80, 80, 80, 80, 80, 80, 80" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" style="left:5px; top:37px; width:1180px; height:616px; ">
- <col checkvalue="1,0" ref="chk" type="checkbox"/>
- <col ref="blodtest"/>
- <col ref="d1"/>
- <col ref="d2"/>
- <col ref="d3"/>
- <col ref="d4"/>
- <col ref="d5"/>
- <col ref="d6"/>
- <col ref="d7"/>
- <col ref="d8"/>
- <col ref="d9"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_yy.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption10" class="tit_2" style="left:5px; top:15px; width:131px; height:14px; ">년별 통계</caption>
- <line id="line5" class="line_1" style="x1:5px; y1:31px; x2:1184px; y2:31px; "/>
- </case>
- <case id="cc">
- <line id="line6" class="line_1" style="x1:5px; y1:31px; x2:1184px; y2:31px; "/>
- <caption id="caption11" class="tit_2" style="left:5px; top:15px; width:131px; height:14px; ">사유별 통계(월별)</caption>
- <datagrid id="grd_cm" nodeset="/root/main/ccstat" caption="^구분^사유^총건수^%^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월" colsep="^" colwidth="25, 120, 160, 60, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" style="left:5px; top:37px; width:1180px; height:616px; text-align:center; ">
- <col checkvalue="1,0" ref="chk" type="checkbox"/>
- <col ref="blod" style="text-align:left; "/>
- <col ref="resndesc"/>
- <col ref="hap"/>
- <col ref="pa"/>
- <col ref="m1"/>
- <col ref="m2"/>
- <col ref="m3"/>
- <col ref="m4"/>
- <col ref="m5"/>
- <col ref="m6"/>
- <col ref="m7"/>
- <col ref="m8"/>
- <col ref="m9"/>
- <col ref="m10"/>
- <col ref="m11"/>
- <col ref="m12"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_cm.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="cy">
- <line id="line2" class="line_1" style="x1:5px; y1:31px; x2:1184px; y2:31px; "/>
- <caption id="caption6" class="tit_2" style="left:5px; top:15px; width:136px; height:14px; ">사유별 통계(연별)</caption>
- <datagrid id="grd_cy" nodeset="/root/main/cystat" caption="^구분^사유^총건수^%^d1^d2^d3" colsep="^" colwidth="25, 120, 100, 80, 80, 80, 80, 80" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" style="left:5px; top:36px; width:1180px; height:616px; ">
- <col checkvalue="1,0" ref="chk" type="checkbox"/>
- <col ref="blod"/>
- <col ref="resndesc"/>
- <col ref="hap"/>
- <col ref="pa"/>
- <col ref="d1"/>
- <col ref="d2"/>
- <col ref="d3"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_cy.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <button id="btn_mmstat" class="btn_sw" group="tab" style="left:74px; top:55px; width:75px; height:22px; ">
- <caption>월별 통계</caption>
- <toggle case="mm" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fMvisible();
- ]]>
- </script>
- </button>
- <button id="btn_yystat" class="btn_sw" group="tab" style="left:148px; top:55px; width:75px; height:22px; ">
- <caption>연별 통계</caption>
- <toggle case="yy" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fYvisible();
- ]]>
- </script>
- </button>
- <button id="btn_ccstat" class="btn_sw" group="tab" style="left:222px; top:55px; width:75px; height:22px; ">
- <caption>유형(월별)</caption>
- <toggle case="cc" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCvisible();
- ]]>
- </script>
- </button>
- <button id="btn_cystat" class="btn_sw" group="tab" style="left:296px; top:55px; width:75px; height:22px; ">
- <caption>유형(연별)</caption>
- <toggle case="cy" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCyvisible();
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn2_letter2" style="left:1153px; top:54px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveExcel();
- ]]>
- </script>
- </button>
- <button id="btn_ddstat" class="btn_sw" group="tab" style="left:0px; top:55px; width:75px; height:22px; ">
- <caption>일별 통계</caption>
- <toggle case="dd" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDvisible();
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/hidden/code" appearance="minimal" style="left:120px; top:18px; width:65px; height:19px; ">
- <choices>
- <item>
- <label>불출일</label>
- <value>2</value>
- </item>
- <item>
- <label>준비일</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- </group>
- <caption id="caption12" 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; ">
- <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[
- window.reload();
- ]]>
- </script>
- </button>
- <line id="line7" 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="onclick">
- <![CDATA[
- fList();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|