12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLBP00300" position="absolute 0 0 1256 805" titletext="혈액반납폐기율" onload="SMLBP00300_onload">
- <Layouts>
- <Layout>
- <Div id="group3" position="absolute 0 77 1256 782" anchor="all" positiontype="position" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Tab id="swt_statflag" class="sw_box" position="absolute 0 0 1256 705" anchor="all" positiontype="position" onchanged="group3_swt_statflag_onchanged">
- <Tabpages>
- <Tabpage id="dd" text="일별 통계">
- <Layouts>
- <Layout>
- <Grid id="grd_dd" position="absolute 0 20 1256 678" style="align:center middle;" anchor="all" positiontype="position" binddataset="ds_grid_grd_dd">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30" band="left"/>
- <Column size="25" band="left"/>
- <Column size="120" band="left"/>
- <Column size="50" band="left"/>
- <Column size="35" band="left"/>
- <Column size="35" band="left"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="2" text="구분"/>
- <Cell col="3" displaytype="number" style="align:middle;" text="총출고"/>
- <Cell col="4" text="건수"/>
- <Cell col="5" text="%"/>
- <Cell col="6" text="01"/>
- <Cell col="7" text="02"/>
- <Cell col="8" text="03"/>
- <Cell col="9" text="04"/>
- <Cell col="10" text="05"/>
- <Cell col="11" text="06"/>
- <Cell col="12" text="07"/>
- <Cell col="13" text="08"/>
- <Cell col="14" text="09"/>
- <Cell col="15" text="10"/>
- <Cell col="16" text="11"/>
- <Cell col="17" text="12"/>
- <Cell col="18" text="13"/>
- <Cell col="19" text="14"/>
- <Cell col="20" text="15"/>
- <Cell col="21" text="16"/>
- <Cell col="22" text="17"/>
- <Cell col="23" text="18"/>
- <Cell col="24" text="19"/>
- <Cell col="25" text="20"/>
- <Cell col="26" text="21"/>
- <Cell col="27" text="22"/>
- <Cell col="28" text="23"/>
- <Cell col="29" text="24"/>
- <Cell col="30" text="25"/>
- <Cell col="31" text="26"/>
- <Cell col="32" text="27"/>
- <Cell col="33" text="28"/>
- <Cell col="34" text="29"/>
- <Cell col="35" text="30"/>
- <Cell col="36" text="31"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="2" style="align:left middle;" text="bind:blodcomcd"/>
- <Cell col="3" displaytype="number" text="bind:delive"/>
- <Cell col="4" displaytype="number" text="bind:rtn"/>
- <Cell col="5" text="bind:perc"/>
- <Cell col="6" displaytype="number" text="bind:d01"/>
- <Cell col="7" displaytype="number" text="bind:d02"/>
- <Cell col="8" displaytype="number" text="bind:d03"/>
- <Cell col="9" displaytype="number" text="bind:d04"/>
- <Cell col="10" displaytype="number" text="bind:d05"/>
- <Cell col="11" displaytype="number" text="bind:d06"/>
- <Cell col="12" displaytype="number" text="bind:d07"/>
- <Cell col="13" displaytype="number" text="bind:d08"/>
- <Cell col="14" displaytype="number" text="bind:d09"/>
- <Cell col="15" displaytype="number" text="bind:d10"/>
- <Cell col="16" displaytype="number" text="bind:d11"/>
- <Cell col="17" displaytype="number" text="bind:d12"/>
- <Cell col="18" displaytype="number" text="bind:d13"/>
- <Cell col="19" displaytype="number" text="bind:d14"/>
- <Cell col="20" displaytype="number" text="bind:d15"/>
- <Cell col="21" displaytype="number" text="bind:d16"/>
- <Cell col="22" displaytype="number" text="bind:d17"/>
- <Cell col="23" displaytype="number" text="bind:d18"/>
- <Cell col="24" displaytype="number" text="bind:d19"/>
- <Cell col="25" displaytype="number" text="bind:d20"/>
- <Cell col="26" displaytype="number" text="bind:d21"/>
- <Cell col="27" displaytype="number" text="bind:d22"/>
- <Cell col="28" displaytype="number" text="bind:d23"/>
- <Cell col="29" displaytype="number" text="bind:d24"/>
- <Cell col="30" displaytype="number" text="bind:d25"/>
- <Cell col="31" displaytype="number" text="bind:d26"/>
- <Cell col="32" displaytype="number" text="bind:d27"/>
- <Cell col="33" displaytype="number" text="bind:d28"/>
- <Cell col="34" displaytype="number" text="bind:d29"/>
- <Cell col="35" displaytype="number" text="bind:d30"/>
- <Cell col="36" displaytype="number" text="bind:d31"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption7" class="tit_2" position="absolute 1 0 83 16" anchor="default" text="일별 통계" positiontype="position"/>
- <Shape id="line12" class="line_1" position="absolute 0 16 1256 22" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="mm" text="월별 통계">
- <Layouts>
- <Layout>
- <Grid id="grd_mm" position="absolute 0 20 1256 678" anchor="all" positiontype="position" autofittype="none" binddataset="ds_grid_grd_mm">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30" band="left"/>
- <Column size="25" band="left"/>
- <Column size="120" band="left"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="50"/>
- <Column size="45"/>
- <Column size="35"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="50"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="22" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2"/>
- <Cell col="1" rowspan="2" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="2" rowspan="2" text="구분"/>
- <Cell col="3" colspan="3" text="1월"/>
- <Cell col="6" colspan="3" text="2월"/>
- <Cell col="9" colspan="3" text="3월"/>
- <Cell col="12" colspan="3" text="4월"/>
- <Cell col="15" colspan="3" text="5월"/>
- <Cell col="18" colspan="3" text="6월"/>
- <Cell col="21" colspan="3" text="7월"/>
- <Cell col="24" colspan="3" text="8월"/>
- <Cell col="27" colspan="3" text="9월"/>
- <Cell col="30" colspan="3" text="10월"/>
- <Cell col="33" colspan="3" text="11월"/>
- <Cell col="36" colspan="3" text="12월"/>
- <Cell row="1" col="3" text="총출고"/>
- <Cell row="1" col="4" text="건수"/>
- <Cell row="1" col="5" text="%"/>
- <Cell row="1" col="6" text="총출고"/>
- <Cell row="1" col="7" text="건수"/>
- <Cell row="1" col="8" text="%"/>
- <Cell row="1" col="9" text="총출고"/>
- <Cell row="1" col="10" text="건수"/>
- <Cell row="1" col="11" text="%"/>
- <Cell row="1" col="12" text="총출고"/>
- <Cell row="1" col="13" text="건수"/>
- <Cell row="1" col="14" text="%"/>
- <Cell row="1" col="15" text="총출고"/>
- <Cell row="1" col="16" text="건수"/>
- <Cell row="1" col="17" text="%"/>
- <Cell row="1" col="18" text="총출고"/>
- <Cell row="1" col="19" text="건수"/>
- <Cell row="1" col="20" text="%"/>
- <Cell row="1" col="21" text="총출고"/>
- <Cell row="1" col="22" text="건수"/>
- <Cell row="1" col="23" text="%"/>
- <Cell row="1" col="24" text="총출고"/>
- <Cell row="1" col="25" text="건수"/>
- <Cell row="1" col="26" text="%"/>
- <Cell row="1" col="27" text="총출고"/>
- <Cell row="1" col="28" text="건수"/>
- <Cell row="1" col="29" text="%"/>
- <Cell row="1" col="30" text="총출고"/>
- <Cell row="1" col="31" text="건수"/>
- <Cell row="1" col="32" text="%"/>
- <Cell row="1" col="33" text="총출고"/>
- <Cell row="1" col="34" text="건수"/>
- <Cell row="1" col="35" text="%"/>
- <Cell row="1" col="36" text="총출고"/>
- <Cell row="1" col="37" text="건수"/>
- <Cell row="1" col="38" text="%"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="2" style="align:left middle;" text="bind:blodcomcd"/>
- <Cell col="3" displaytype="number" text="bind:t1"/>
- <Cell col="4" displaytype="number" text="bind:m1"/>
- <Cell col="5" text="bind:p1"/>
- <Cell col="6" displaytype="number" text="bind:t2"/>
- <Cell col="7" displaytype="number" text="bind:m2"/>
- <Cell col="8" text="bind:p2"/>
- <Cell col="9" displaytype="number" text="bind:t3"/>
- <Cell col="10" displaytype="number" text="bind:m3"/>
- <Cell col="11" text="bind:p3"/>
- <Cell col="12" displaytype="number" text="bind:t4"/>
- <Cell col="13" displaytype="number" text="bind:m4"/>
- <Cell col="14" text="bind:p4"/>
- <Cell col="15" displaytype="number" text="bind:t5"/>
- <Cell col="16" displaytype="number" text="bind:m5"/>
- <Cell col="17" text="bind:p5"/>
- <Cell col="18" displaytype="number" text="bind:t6"/>
- <Cell col="19" displaytype="number" text="bind:m6"/>
- <Cell col="20" text="bind:p6"/>
- <Cell col="21" displaytype="number" text="bind:t7"/>
- <Cell col="22" displaytype="number" text="bind:m7"/>
- <Cell col="23" text="bind:p7"/>
- <Cell col="24" displaytype="number" text="bind:t8"/>
- <Cell col="25" displaytype="number" text="bind:m8"/>
- <Cell col="26" text="bind:p8"/>
- <Cell col="27" displaytype="number" text="bind:t9"/>
- <Cell col="28" displaytype="number" text="bind:m9"/>
- <Cell col="29" text="bind:p9"/>
- <Cell col="30" displaytype="number" text="bind:t10"/>
- <Cell col="31" displaytype="number" text="bind:m10"/>
- <Cell col="32" text="bind:p10"/>
- <Cell col="33" displaytype="number" text="bind:t11"/>
- <Cell col="34" displaytype="number" text="bind:m11"/>
- <Cell col="35" text="bind:p11"/>
- <Cell col="36" displaytype="number" text="bind:t12"/>
- <Cell col="37" displaytype="number" text="bind:m12"/>
- <Cell col="38" text="bind:p12"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption8" class="tit_2" position="absolute 1 0 76 20" anchor="default" text="월별통계" positiontype="position"/>
- <Shape id="line12" class="line_1" position="absolute 0 16 1256 22" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="yy" text="연별 통계">
- <Layouts>
- <Layout>
- <Grid id="grd_yy" position="absolute 0 20 1256 678" anchor="all" positiontype="position" autofittype="none" binddataset="ds_grid_grd_yy">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30" band="left"/>
- <Column size="25" band="left"/>
- <Column size="120" band="left"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="22" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2"/>
- <Cell col="1" rowspan="2" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="2" rowspan="2" text="구분"/>
- <Cell col="3" colspan="3" expr="expr:lf_column()"/>
- <Cell col="6" colspan="3" expr="expr:lf_column()+1"/>
- <Cell col="9" colspan="3" expr="expr:lf_column()+2"/>
- <Cell row="1" col="3" text="총출고"/>
- <Cell row="1" col="4" text="건수"/>
- <Cell row="1" col="5" text="%"/>
- <Cell row="1" col="6" text="총출고"/>
- <Cell row="1" col="7" text="건수"/>
- <Cell row="1" col="8" text="%"/>
- <Cell row="1" col="9" text="총출고"/>
- <Cell row="1" col="10" text="건수"/>
- <Cell row="1" col="11" text="%"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="2" style="align:left middle;" text="bind:blodtest"/>
- <Cell col="3" displaytype="number" text="bind:d1"/>
- <Cell col="4" displaytype="number" text="bind:d2"/>
- <Cell col="5" displaytype="number" text="bind:d3"/>
- <Cell col="6" displaytype="number" text="bind:d4"/>
- <Cell col="7" displaytype="number" text="bind:d5"/>
- <Cell col="8" displaytype="number" text="bind:d6"/>
- <Cell col="9" displaytype="number" text="bind:d7"/>
- <Cell col="10" displaytype="number" text="bind:d8"/>
- <Cell col="11" displaytype="number" text="bind:d9"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption10" class="tit_2" position="absolute 1 0 83 16" anchor="default" text="년별 통계" positiontype="position" style="align:left top;"/>
- <Shape id="line12" class="line_1" position="absolute 0 16 1256 22" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="cc" text="유형(월별)">
- <Layouts>
- <Layout>
- <Static id="caption11" class="tit_2" position="absolute 1 0 132 20" anchor="default" text="사유별 통계(월별)" positiontype="position"/>
- <Grid id="grd_cm" position="absolute 0 20 1256 678" style="align:center middle;" anchor="all" positiontype="position" autofittype="col" binddataset="ds_grid_grd_cm">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30" band="left"/>
- <Column size="25" band="left"/>
- <Column size="120" band="left"/>
- <Column size="160" band="left"/>
- <Column size="60" band="left"/>
- <Column size="50" band="left"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="2" text="구분"/>
- <Cell col="3" text="사유"/>
- <Cell col="4" text="총건수"/>
- <Cell col="5" text="%"/>
- <Cell col="6" text="1월"/>
- <Cell col="7" text="2월"/>
- <Cell col="8" text="3월"/>
- <Cell col="9" text="4월"/>
- <Cell col="10" text="5월"/>
- <Cell col="11" text="6월"/>
- <Cell col="12" text="7월"/>
- <Cell col="13" text="8월"/>
- <Cell col="14" text="9월"/>
- <Cell col="15" text="10월"/>
- <Cell col="16" text="11월"/>
- <Cell col="17" text="12월"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="2" style="align:left middle;" text="bind:blod"/>
- <Cell col="3" text="bind:resndesc"/>
- <Cell col="4" displaytype="number" text="bind:hap"/>
- <Cell col="5" text="bind:pa"/>
- <Cell col="6" displaytype="number" text="bind:m1"/>
- <Cell col="7" displaytype="number" text="bind:m2"/>
- <Cell col="8" displaytype="number" text="bind:m3"/>
- <Cell col="9" displaytype="number" text="bind:m4"/>
- <Cell col="10" displaytype="number" text="bind:m5"/>
- <Cell col="11" displaytype="number" text="bind:m6"/>
- <Cell col="12" displaytype="number" text="bind:m7"/>
- <Cell col="13" displaytype="number" text="bind:m8"/>
- <Cell col="14" displaytype="number" text="bind:m9"/>
- <Cell col="15" displaytype="number" text="bind:m10"/>
- <Cell col="16" displaytype="number" text="bind:m11"/>
- <Cell col="17" displaytype="number" text="bind:m12"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line12" class="line_1" position="absolute 0 16 1256 22" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="cy" text="유형(연별)">
- <Layouts>
- <Layout>
- <Static id="caption6" class="tit_2" position="absolute 1 0 137 20" anchor="default" text="사유별 통계(연별)" positiontype="position"/>
- <Grid id="grd_cy" position="absolute 0 20 1256 678" anchor="all" positiontype="position" autofittype="none" binddataset="ds_grid_grd_cy">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="25"/>
- <Column size="120"/>
- <Column size="100"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="2" text="구분"/>
- <Cell col="3" text="사유"/>
- <Cell col="4" text="총건수"/>
- <Cell col="5" text="%"/>
- <Cell col="6" expr="expr:lf_column()"/>
- <Cell col="7" expr="expr:lf_column()+1"/>
- <Cell col="8" expr="expr:lf_column()+2"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="2" style="align:left middle;" text="bind:blod"/>
- <Cell col="3" text="bind:resndesc"/>
- <Cell col="4" displaytype="number" text="bind:hap"/>
- <Cell col="5" text="bind:pa"/>
- <Cell col="6" displaytype="number" text="bind:d1"/>
- <Cell col="7" displaytype="number" text="bind:d2"/>
- <Cell col="8" displaytype="number" text="bind:d3"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line12" class="line_1" position="absolute 0 16 1256 22" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Button id="btn_excel" class="btn7" position="absolute 1201 0 1254 20" anchor="top right" text="엑셀" positiontype="position" onclick="group3_btn_excel_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption12" class="tit_1" position="absolute 0 0 137 25" anchor="default" positiontype="position" text="혈액반납폐기율"/>
- <Button id="btn_reset" taborder="2" text="초기화" class="btn4" position="absolute 1188 785 1256 805" anchor="right bottom" positiontype="position" onclick="btn_reset_onclick"/>
- <Div id="group1" taborder="3" position="absolute 0 25 1256 67" anchor="left top right" positiontype="position" class="div_SA">
- <Layouts>
- <Layout>
- <Button id="btn_ref" taborder="1" text="조회" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" positiontype="position" onclick="group1_btn_ref_onclick"/>
- <Static id="caption5" text="반납폐기구분" class="search_name" position="absolute 403 10 503 30" anchor="default" positiontype="position"/>
- <Static id="caption2" text="분류" class="search_name" position="absolute 629 10 677 30" anchor="default" positiontype="position"/>
- <CheckBox id="chx_perc" taborder="2" truevalue="1" position="absolute 862 10 882 30" anchor="default" positiontype="position" falsevalue="null"/>
- <Static id="caption1" text="마취과" class="search_name" position="absolute 801 10 862 30" anchor="default" positiontype="position"/>
- <Static id="caption4" text="통계희망일" class="search_name" position="absolute 8 10 95 30" anchor="default" positiontype="position"/>
- <Combo id="cmb_rtnabnflag" taborder="5" position="absolute 504 10 606 30" anchor="default" positiontype="position" codecolumn="codecolumn" datacolumn="datacolumn" index="0" value="1" text="반납">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">반납</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">폐기</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">잔여혈액폐기</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Combo id="cmb_cls" taborder="6" position="absolute 677 10 777 30" anchor="default" positiontype="position" codecolumn="codecolumn" datacolumn="datacolumn" index="0" value="1" text="진료과별">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">진료과별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">혈액종류별</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Edit id="input1" taborder="7" position="absolute 961 10 1061 30" anchor="default" imemode="alpha" positiontype="position"/>
- <Static id="caption3" text="혈액명" class="search_name" position="absolute 900 10 961 30" anchor="default" positiontype="position"/>
- <Combo id="combo2" taborder="8" visible="true" position="absolute 503 10 605 30" anchor="default" positiontype="position" codecolumn="codecolumn" datacolumn="datacolumn" index="0" value="1" text="반납">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">반납</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">폐기</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Combo id="combo1" taborder="10" position="absolute 95 10 160 30" anchor="default" positiontype="position" codecolumn="codecolumn" datacolumn="datacolumn" index="1" value="2" text="불출일">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">준비일</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">불출일</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Calendar id="ipt_workfromdd" taborder="11" dateformat="yyyy-MM" editformat="yyyy-MM" class="input_search" position="absolute 163 10 263 30" mask="yyyy-mm" value="null"/>
- <Static id="caption9" text="~" class="search_no_b" visible="false" position="absolute 263 10 279 30" style="align:center;"/>
- <Calendar id="ipt_worktodd" taborder="12" dateformat="yyyy-MM" editformat="yyyy-MM" class="input_search" visible="false" position="absolute 279 10 379 30" mask="yyyy-mm" value="null"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_print" taborder="4" text="정리" onclick="btn_print_onclick" class="btn2" position="absolute 1149 77 1195 97" anchor="top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_dd" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING"/>
- <Column id="blodcomcd" type="STRING"/>
- <Column id="delive" type="INT"/>
- <Column id="rtn" type="INT"/>
- <Column id="perc" type="FLOAT"/>
- <Column id="d01" type="INT"/>
- <Column id="d02" type="INT"/>
- <Column id="d03" type="INT"/>
- <Column id="d04" type="INT"/>
- <Column id="d05" type="INT"/>
- <Column id="d06" type="INT"/>
- <Column id="d07" type="INT"/>
- <Column id="d08" type="INT"/>
- <Column id="d09" type="INT"/>
- <Column id="d10" type="INT"/>
- <Column id="d11" type="INT"/>
- <Column id="d12" type="INT"/>
- <Column id="d13" type="INT"/>
- <Column id="d14" type="INT"/>
- <Column id="d15" type="INT"/>
- <Column id="d16" type="INT"/>
- <Column id="d17" type="INT"/>
- <Column id="d18" type="INT"/>
- <Column id="d19" type="INT"/>
- <Column id="d20" type="INT"/>
- <Column id="d21" type="INT"/>
- <Column id="d22" type="INT"/>
- <Column id="d23" type="INT"/>
- <Column id="d24" type="INT"/>
- <Column id="d25" type="INT"/>
- <Column id="d26" type="INT"/>
- <Column id="d27" type="INT"/>
- <Column id="d28" type="INT"/>
- <Column id="d29" type="INT"/>
- <Column id="d30" type="INT"/>
- <Column id="d31" type="INT"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_mm" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING"/>
- <Column id="blodcomcd" type="STRING"/>
- <Column id="t1" type="INT"/>
- <Column id="m1" type="INT"/>
- <Column id="p1" type="FLOAT"/>
- <Column id="t2" type="INT"/>
- <Column id="m2" type="INT"/>
- <Column id="p2" type="FLOAT"/>
- <Column id="t3" type="INT"/>
- <Column id="m3" type="INT"/>
- <Column id="p3" type="FLOAT"/>
- <Column id="t4" type="INT"/>
- <Column id="m4" type="INT"/>
- <Column id="p4" type="FLOAT"/>
- <Column id="t5" type="INT"/>
- <Column id="m5" type="INT"/>
- <Column id="p5" type="FLOAT"/>
- <Column id="t6" type="INT"/>
- <Column id="m6" type="INT"/>
- <Column id="p6" type="FLOAT"/>
- <Column id="t7" type="INT"/>
- <Column id="m7" type="INT"/>
- <Column id="p7" type="FLOAT"/>
- <Column id="t8" type="INT"/>
- <Column id="m8" type="INT"/>
- <Column id="p8" type="FLOAT"/>
- <Column id="t9" type="INT"/>
- <Column id="m9" type="INT"/>
- <Column id="p9" type="FLOAT"/>
- <Column id="t10" type="INT"/>
- <Column id="m10" type="INT"/>
- <Column id="p10" type="FLOAT"/>
- <Column id="t11" type="INT"/>
- <Column id="m11" type="INT"/>
- <Column id="p11" type="FLOAT"/>
- <Column id="t12" type="INT"/>
- <Column id="m12" type="INT"/>
- <Column id="p12" type="FLOAT"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_yy" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING"/>
- <Column id="blodtest" type="STRING"/>
- <Column id="d1" type="INT"/>
- <Column id="d2" type="INT"/>
- <Column id="d3" type="FLOAT"/>
- <Column id="d4" type="INT"/>
- <Column id="d5" type="INT"/>
- <Column id="d6" type="FLOAT"/>
- <Column id="d7" type="INT"/>
- <Column id="d8" type="INT"/>
- <Column id="d9" type="FLOAT"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_cm" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING"/>
- <Column id="blod" type="STRING"/>
- <Column id="resndesc" type="STRING"/>
- <Column id="hap" type="INT"/>
- <Column id="pa" type="FLOAT"/>
- <Column id="m1" type="INT"/>
- <Column id="m2" type="INT"/>
- <Column id="m3" type="INT"/>
- <Column id="m4" type="INT"/>
- <Column id="m5" type="INT"/>
- <Column id="m6" type="INT"/>
- <Column id="m7" type="INT"/>
- <Column id="m8" type="INT"/>
- <Column id="m9" type="INT"/>
- <Column id="m10" type="INT"/>
- <Column id="m11" type="INT"/>
- <Column id="m12" type="INT"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_cy" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING"/>
- <Column id="blod" type="STRING"/>
- <Column id="resndesc" type="STRING"/>
- <Column id="hap" type="INT"/>
- <Column id="pa" type="FLOAT"/>
- <Column id="d1" type="STRING"/>
- <Column id="d2" type="STRING"/>
- <Column id="d3" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_data_dd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rtnabnflag" type="STRING" size="256"/>
- <Column id="cls" type="STRING" size="256"/>
- <Column id="stathopefromdd" type="STRING" size="256"/>
- <Column id="stathopetodd" type="STRING" size="256"/>
- <Column id="mon" type="STRING" size="256"/>
- <Column id="code" type="STRING" size="256"/>
- <Column id="bloodnm" type="STRING" size="256"/>
- <Column id="dept" type="STRING" size="256"/>
- <Column id="refflag" type="STRING" size="256"/>
- <Column id="list" type="STRING" size="256"/>
- <Column id="perc" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_data_mm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rtnabnflag" type="STRING" size="256"/>
- <Column id="cls" type="STRING" size="256"/>
- <Column id="stathopefromdd" type="STRING" size="256"/>
- <Column id="stathopetodd" type="STRING" size="256"/>
- <Column id="code" type="STRING" size="256"/>
- <Column id="perc" type="STRING" size="256"/>
- <Column id="dept" type="STRING" size="256"/>
- <Column id="refflag" type="STRING" size="256"/>
- <Column id="list" type="STRING" size="256"/>
- <Column id="bloodnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_data_yy" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rtnabnflag" type="STRING" size="256"/>
- <Column id="cls" type="STRING" size="256"/>
- <Column id="stathopefromdd" type="STRING" size="256"/>
- <Column id="stathopetodd" type="STRING" size="256"/>
- <Column id="code" type="STRING" size="256"/>
- <Column id="perc" type="STRING" size="256"/>
- <Column id="refflag" type="STRING" size="256"/>
- <Column id="dept" type="STRING" size="256"/>
- <Column id="list" type="STRING" size="256"/>
- <Column id="bloodnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_data_cm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rtnabnflag" type="STRING" size="256"/>
- <Column id="cls" type="STRING" size="256"/>
- <Column id="stathopefromdd" type="STRING" size="256"/>
- <Column id="stathopetodd" type="STRING" size="256"/>
- <Column id="mon" type="STRING" size="256"/>
- <Column id="code" type="STRING" size="256"/>
- <Column id="perc" type="STRING" size="256"/>
- <Column id="refflag" type="STRING" size="256"/>
- <Column id="dept" type="STRING" size="256"/>
- <Column id="list" type="STRING" size="256"/>
- <Column id="bloodnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_data_cy" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rtnabnflag" type="STRING" size="256"/>
- <Column id="cls" type="STRING" size="256"/>
- <Column id="stathopefromdd" type="STRING" size="256"/>
- <Column id="stathopetodd" type="STRING" size="256"/>
- <Column id="code" type="STRING" size="256"/>
- <Column id="perc" type="STRING" size="256"/>
- <Column id="dept" type="STRING" size="256"/>
- <Column id="refflag" type="STRING" size="256"/>
- <Column id="list" type="STRING" size="256"/>
- <Column id="bloodnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-01
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-01 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "lis_commonxp::LLZ001.xjs";
- function SMLBP00300_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
-
- lf_setInit();
- // 그리드정렬, 전체 체크박스
- grdf_initGrid(group3.swt_statflag.dd.grd_dd);
- grdf_initGrid(group3.swt_statflag.mm.grd_mm);
- grdf_initGrid(group3.swt_statflag.yy.grd_yy);
- grdf_initGrid(group3.swt_statflag.cc.grd_cm);
- grdf_initGrid(group3.swt_statflag.cy.grd_cy);
- }
- function lf_setInit() {
- group1.combo1.value="2";
- group1.ipt_workfromdd.value = utlf_getCurrentDate();
- group1.ipt_worktodd.value = utlf_getCurrentDate();
- group1.combo2.value="1";
- group1.cmb_rtnabnflag.value="1";
- group1.cmb_cls.value="1";
- group1.chx_perc.value="0";
- group1.input1.value="";
-
- group3.swt_statflag.tabindex = "0";
-
- group1.caption9.visible=false;
- group1.ipt_worktodd.visible =false;
-
- group1.combo2.visible=false;
- group1.cmb_rtnabnflag.visible=true;
- }
- function lf_set() {
- group1.combo1.value="2";
- group1.ipt_workfromdd.value = utlf_getCurrentDate();
- group1.ipt_worktodd.value = utlf_getCurrentDate();
- group1.combo2.value="1";
- group1.cmb_rtnabnflag.value="1";
- group1.cmb_cls.value="1";
- group1.chx_perc.value="0";
- group1.input1.value="";
-
- group1.caption9.visible=false;
- group1.ipt_worktodd.visible =false;
-
- group1.combo2.visible=false;
- group1.cmb_rtnabnflag.visible=true;
- }
- //조회
- function lf_setStat() {
- var mons = new String(group1.ipt_workfromdd.value);
- var mon = mons.substring(4,6);
-
- var stathopefromdd = new String(group1.ipt_workfromdd.value);
- stathopefromdd = stathopefromdd.substring(0,6);
-
- var stathopetodd = new String(group1.ipt_worktodd.value);
- stathopetodd = stathopetodd.substring(0,6);
-
- if(group3.swt_statflag.tabindex =="0"){ //일별
-
- var perc = "";
- if(group1.chx_perc.value != "1"){
- perc = "";
- }else{
- perc = "1";
- }
-
- ds_send_data_dd.setColumn(0,"rtnabnflag",group1.cmb_rtnabnflag.value);
- ds_send_data_dd.setColumn(0,"cls",group1.cmb_cls.value);
- ds_send_data_dd.setColumn(0,"stathopefromdd",stathopefromdd);
- ds_send_data_dd.setColumn(0,"stathopetodd",stathopetodd);
- ds_send_data_dd.setColumn(0,"mon", mon);
- ds_send_data_dd.setColumn(0,"code",group1.combo1.value);
- ds_send_data_dd.setColumn(0,"bloodnm",group1.input1.value);
- ds_send_data_dd.setColumn(0,"perc",perc);
- ds_send_data_dd.setColumn(0,"refflag","1");
-
- ds_grid_grd_dd.clearData();
-
- var oParam = {};
- oParam.id = "TRLBP00301";
- oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
- oParam.method = "reqGetRtnAbnList";
- oParam.inds = "cond=ds_send_data_dd";
- oParam.outds = "ds_grid_grd_dd=getDDStatList ds_grid_grd_yy=getYYStatList";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_grid_grd_dd.addColumn("checkcolor","String");
- ds_grid_grd_dd.setColumn(0,"checkcolor","#f7a08b");
- var sExpr = "EXPR(checkcolor)";
-
- for (i=1; i < group3.swt_statflag.dd.grd_dd.getCellCount('Head'); i++ ) {
- group3.swt_statflag.dd.grd_dd.setCellProperty("Body",i,"background", sExpr);
- group3.swt_statflag.dd.grd_dd.setCellProperty("Body",i,"background2", sExpr);
- }
-
- ds_grid_grd_dd.rowposition = -1;
- }else if(group3.swt_statflag.tabindex =="1"){ // 월별 통계
- lf_getMMStat();
- }else if(group3.swt_statflag.tabindex =="2"){ // 연별 통계
- lf_getYYStat();
- }else if(group3.swt_statflag.tabindex =="3"){ // 유형(월별) 통계
- lf_getCCStat();
- }else if(group3.swt_statflag.tabindex =="4"){ // 유형(연별) 통계
- lf_getCYStat();
- }
- }
- //월별통계
- function lf_getMMStat(){
- var stathopefromdd = new String(group1.ipt_workfromdd.value);
- stathopefromdd = stathopefromdd.substring(0,4);
-
- var stathopetodd = new String(group1.ipt_worktodd.value);
- stathopetodd = stathopetodd.substring(0,4);
-
- var perc = "";
- if(group1.chx_perc.value != "1"){
- perc = "";
- }else{
- perc = "1";
- }
-
- ds_send_data_mm.setColumn(0,"rtnabnflag",group1.cmb_rtnabnflag.value);
- ds_send_data_mm.setColumn(0,"cls",group1.cmb_cls.value);
- ds_send_data_mm.setColumn(0,"stathopefromdd",stathopefromdd);
- ds_send_data_mm.setColumn(0,"stathopetodd",stathopetodd);
- ds_send_data_mm.setColumn(0,"code",group1.combo1.value);
- ds_send_data_mm.setColumn(0,"perc",perc);
- ds_send_data_mm.setColumn(0,"bloodnm",group1.input1.value);
- ds_send_data_mm.setColumn(0,"refflag","2");
- ds_grid_grd_mm.clearData();
-
- var oParam = {};
- oParam.id = "TRLBP00302";
- oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
- oParam.method = "reqGetRtnAbnList";
- oParam.inds = "cond=ds_send_data_mm";
- oParam.outds = "ds_grid_grd_mm=getMMStatList";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_grid_grd_mm.addColumn("checkcolor","String");
- ds_grid_grd_mm.setColumn(0,"checkcolor","#f7a08b");
- var sExpr = "EXPR(checkcolor)";
-
- for (i=1; i < group3.swt_statflag.mm.grd_mm.getCellCount('body'); i++ ) {
- group3.swt_statflag.mm.grd_mm.setCellProperty("Body",i,"background", sExpr);
- group3.swt_statflag.mm.grd_mm.setCellProperty("Body",i,"background2", sExpr);
- }
- ds_grid_grd_mm.rowposition = -1;
- }
-
- //년별통계
- function lf_getYYStat(){
- var sFromdd = new String(group1.ipt_workfromdd.value);
- var sTodd = new String(group1.ipt_worktodd.value);
- var fromdd = sFromdd.substring(0,4);
- var todd = sTodd.substring(0,4);
-
- //연별 조회시 3년 이내로 조회
- if(todd - fromdd >= 3){
- sysf_messageBox("조회는 3년까지만 제공합니다.\n조회기간을 다시 선택하세요", "I");
- return;
- }
- if(sFromdd > sTodd){
- sysf_messageBox("종료일이 시작일보다 작습니다 ", "I");
- return;
- }
-
- lf_hidden();
-
- var j = 3;
- for(var i = 0; i <=todd - fromdd ; i++ ){
- group3.swt_statflag.yy.grd_yy.setFormatColProperty(j++,"size",80);
- group3.swt_statflag.yy.grd_yy.setFormatColProperty(j++,"size",80);
- group3.swt_statflag.yy.grd_yy.setFormatColProperty(j++,"size",80);
- }
- var perc = "";
- if(group1.chx_perc.value != "1"){
- perc = "";
- }else{
- perc = "1";
- }
- ds_send_data_yy.setColumn(0,"rtnabnflag",group1.cmb_rtnabnflag.value);
- ds_send_data_yy.setColumn(0,"cls",group1.cmb_cls.value);
- ds_send_data_yy.setColumn(0,"stathopefromdd",fromdd);
- ds_send_data_yy.setColumn(0,"stathopetodd",todd);
- ds_send_data_yy.setColumn(0,"code",group1.combo1.value);
- ds_send_data_yy.setColumn(0,"perc",perc);
- ds_send_data_yy.setColumn(0,"bloodnm",group1.input1.value);
- ds_send_data_yy.setColumn(0,"refflag","3");
-
- ds_grid_grd_yy.clearData();
-
- var oParam = {};
- oParam.id = "TRLBP00301";
- oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
- oParam.method = "reqGetRtnAbnList";
- oParam.inds = "cond=ds_send_data_yy";
- oParam.outds = "ds_grid_grd_dd=getDDStatList ds_grid_grd_yy=getYYStatList";
- oParam.async = false;
- tranf_submit(oParam);
- ds_grid_grd_yy.addColumn("checkcolor","String");
- ds_grid_grd_yy.setColumn(0,"checkcolor","#f7a08b");
- var sExpr = "EXPR(checkcolor)";
-
- for (i=1; i < group3.swt_statflag.yy.grd_yy.getCellCount('body'); i++ ) { //헤더
- group3.swt_statflag.yy.grd_yy.setCellProperty("Body",i,"background", sExpr);
- group3.swt_statflag.yy.grd_yy.setCellProperty("Body",i,"background2", sExpr);
- }
-
- ds_grid_grd_yy.rowposition = -1;
- }
-
- //유형(월별)
- function lf_getCCStat(dept) {
- var stathopefromdd = new String(group1.ipt_workfromdd.value);
- stathopefromdd = stathopefromdd.substring(0,4);
-
- var stathopetodd = new String(group1.ipt_worktodd.value);
- stathopetodd = stathopetodd.substring(0,4);
-
- var perc = "";
- if(group1.chx_perc.value != "1"){
- perc = "";
- }else{
- perc = "1";
- }
-
- ds_send_data_cm.setColumn(0,"rtnabnflag",group1.combo2.value);
- ds_send_data_cm.setColumn(0,"cls",group1.cmb_cls.value);
- ds_send_data_cm.setColumn(0,"stathopefromdd",stathopefromdd);
- ds_send_data_cm.setColumn(0,"stathopetodd",stathopetodd);
- ds_send_data_cm.setColumn(0,"mon",stathopefromdd);
- ds_send_data_cm.setColumn(0,"code",group1.combo1.value);
- ds_send_data_cm.setColumn(0,"perc",perc);
- ds_send_data_cm.setColumn(0,"bloodnm",group1.input1.value);
- ds_send_data_cm.setColumn(0,"refflag","4");
- ds_grid_grd_cm.clearData();
-
- var oParam = {};
- oParam.id = "TRLBP00303";
- oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
- oParam.method = "reqGetRtnAbnList";
- oParam.inds = "cond=ds_send_data_cm";
- oParam.outds = "ds_grid_grd_cm=getCCStatList";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_grid_grd_cm.addColumn("checkcolor","String");
- ds_grid_grd_cm.setColumn(0,"checkcolor","#f7a08b");
- var sExpr = "EXPR(checkcolor)";
- for(var j=0; j<ds_grid_grd_cm.rowcount; j++){
- if(ds_grid_grd_cm.getColumn(j,"resndesc")=="[소계]"){
- ds_grid_grd_cm.setColumn(j,"checkcolor","#C0C0C0");
- }
- }
-
- for (i=1; i < group3.swt_statflag.cc.grd_cm.getCellCount('Head'); i++ ) {
- group3.swt_statflag.cc.grd_cm.setCellProperty("Body",i,"background", sExpr);
- group3.swt_statflag.cc.grd_cm.setCellProperty("Body",i,"background2", sExpr);
- }
-
- ds_grid_grd_cm.rowposition = -1;
-
- }
-
- //유형별(년별)
- function lf_getCYStat(dept) {
- var sFromdd = new String(group1.ipt_workfromdd.value);
- var sTodd = new String(group1.ipt_worktodd.value);
- var fromdd = sFromdd.substring(0,4);
- var todd = sTodd.substring(0,4);
-
- //연별 조회시 3년 이내로 조회
- if(todd - fromdd >= 3){
- sysf_messageBox("조회는 3년까지만 제공합니다.\n조회기간을 다시 선택하세요", "I");
- return;
- }
- if(sFromdd > sTodd){
- sysf_messageBox("종료일이 시작일보다 작습니다 ", "I");
- return;
- }
-
- lf_hidden();
-
- var j = 6;
- for(var i = 0; i <=todd - fromdd ; i++ ){
- group3.swt_statflag.cy.grd_cy.setFormatColProperty(j++,"size",80);
- }
-
-
- var perc = "";
- if(group1.chx_perc.value != "1"){
- perc = "";
- }else{
- perc = "1";
- }
-
- ds_send_data_cy.setColumn(0,"rtnabnflag",group1.combo2.value);
- ds_send_data_cy.setColumn(0,"cls",group1.cmb_cls.value);
- ds_send_data_cy.setColumn(0,"stathopefromdd",fromdd);
- ds_send_data_cy.setColumn(0,"stathopetodd",todd);
- ds_send_data_cy.setColumn(0,"code",group1.combo1.value);
- ds_send_data_cy.setColumn(0,"perc",perc);
- ds_send_data_cy.setColumn(0,"bloodnm",group1.input1.value);
- ds_send_data_cy.setColumn(0,"refflag","5");
- ds_grid_grd_cy.clearData();
-
- var oParam = {};
- oParam.id = "TRLBP00304";
- oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
- oParam.method = "reqGetRtnAbnList";
- oParam.inds = "cond=ds_send_data_cy";
- oParam.outds = "ds_grid_grd_cy=getCYStatList";
- oParam.async = false;
- tranf_submit(oParam);
- ds_grid_grd_cy.addColumn("checkcolor","String");
- ds_grid_grd_cy.setColumn(0,"checkcolor","#f7a08b");
- var sExpr = "EXPR(checkcolor)";
- for(var j=0; j<ds_grid_grd_cy.rowcount; j++){
- if(ds_grid_grd_cy.getColumn(j,"resndesc")=="[소계]"){
- ds_grid_grd_cy.setColumn(j,"checkcolor","#C0C0C0");
- }
- }
-
- for (i=1; i < group3.swt_statflag.cy.grd_cy.getCellCount('Head'); i++ ) {
- group3.swt_statflag.cy.grd_cy.setCellProperty("Body",i,"background", sExpr);
- group3.swt_statflag.cy.grd_cy.setCellProperty("Body",i,"background2", sExpr);
- }
-
- ds_grid_grd_cy.rowposition = -1;
- }
- //일별
- function lf_dvisible() {
- lf_set();
- group3.swt_statflag.tabindex = "0";
- var toDay = new String(utlf_getCurrentDate());
- var toDays = toDay.substring(0,6)
- group1.ipt_workfromdd.dateformat= "yyyy-MM";
- group1.ipt_workfromdd.editformat= "yyyy-MM";
- group1.ipt_worktodd.dateformat= "yyyy-MM";
- group1.ipt_worktodd.editformat= "yyyy-MM";
- group1.ipt_workfromdd.value= toDays;
- group1.ipt_worktodd.value= toDays;
-
- group1.caption9.visible = false;
- group1.ipt_worktodd.visible =false;
-
- group1.combo2.visible = false;
- group1.cmb_rtnabnflag.visible = true;
- }
- //월별
- function lf_mvisible() {
- lf_set();
- group3.swt_statflag.tabindex = "1";
- var toDay = new String(utlf_getCurrentDate());
- var toDays = toDay.substring(0,4)
-
- group1.ipt_workfromdd.dateformat= "yyyy";
- group1.ipt_workfromdd.editformat= "yyyy";
- group1.ipt_worktodd.dateformat= "yyyy";
- group1.ipt_worktodd.editformat= "yyyy";
- group1.ipt_workfromdd.value= toDays;
- group1.ipt_worktodd.value= toDays;
-
- group1.caption9.visible = false;
- group1.ipt_worktodd.visible =false;
-
- group1.combo2.visible = false;
- group1.cmb_rtnabnflag.visible = true;
- }
- //년별
- function lf_yvisible() {
- lf_set();
- group3.swt_statflag.tabindex = "2";
- var toDay = new String(utlf_getCurrentDate());
- var toDays = toDay.substring(0,4)
-
- group1.ipt_workfromdd.dateformat= "yyyy";
- group1.ipt_workfromdd.editformat= "yyyy";
- group1.ipt_worktodd.dateformat= "yyyy";
- group1.ipt_worktodd.editformat= "yyyy";
- group1.ipt_workfromdd.value= toDays;
- group1.ipt_worktodd.value= toDays;
-
- group1.caption9.visible = true;
- group1.ipt_worktodd.visible =true;
-
- group1.combo2.visible = false;
- group1.cmb_rtnabnflag.visible = true;
-
- lf_hidden();
- }
- //사유월별
- function lf_cvisible() {
- lf_set();
- group3.swt_statflag.tabindex = "3";
- var toDay = new String(utlf_getCurrentDate());
- var toDays = toDay.substring(0,4)
-
- group1.ipt_workfromdd.dateformat= "yyyy";
- group1.ipt_workfromdd.editformat= "yyyy";
- group1.ipt_worktodd.dateformat= "yyyy";
- group1.ipt_worktodd.editformat= "yyyy";
- group1.ipt_workfromdd.value= toDays;
- group1.ipt_worktodd.value= toDays;
-
- group1.caption9.visible = false;
- group1.ipt_worktodd.visible =false;
-
- group1.combo2.visible = true;
- group1.cmb_rtnabnflag.visible = false;
- }
- //사유년별
- function lf_cyvisible() {
- lf_set();
- group3.swt_statflag.tabindex = "4";
- var toDay = new String(utlf_getCurrentDate());
- var toDays = toDay.substring(0,4)
-
- group1.ipt_workfromdd.dateformat= "yyyy";
- group1.ipt_workfromdd.editformat= "yyyy";
- group1.ipt_worktodd.dateformat= "yyyy";
- group1.ipt_worktodd.editformat= "yyyy";
- group1.ipt_workfromdd.value= toDays;
- group1.ipt_worktodd.value= toDays;
-
- group1.caption9.visible = true;
- group1.ipt_worktodd.visible =true;
-
- group1.combo2.visible = true;
- group1.cmb_rtnabnflag.visible = false;
-
- lf_hidden();
- }
- // 연별통계, 유형(연별)조회시 그리드 숨기기
- function lf_hidden(){
- if(group3.swt_statflag.tabindex =="2"){ //연별 통계
- if(ds_grid_grd_yy.rowcount < 1){
- for(var i=11; i>2; i--){
- group3.swt_statflag.yy.grd_yy.setFormatColProperty(i,"size",0);
- }
- }
- }
-
- if(group3.swt_statflag.tabindex =="4"){ // 유형 연별
- if(ds_grid_grd_cy.rowcount < 1){
- for(var i=8; i>5; i--){
- group3.swt_statflag.cy.grd_cy.setFormatColProperty(i,"size",0);
- }
- }
- }
- }
-
- // 연별 통계 조회시 그리드 컬럼명 변경
- function lf_column(){
- var sFrom = new String(group1.ipt_workfromdd.value);
- var fromdd = parseInt(sFrom.substring(0,4));
- return fromdd;
- }
-
- //엑셀저장
- function lf_saveExcel() {
- if(group3.swt_statflag.tabindex == "0"){
- grdf_exportExcel(group3.swt_statflag.dd.grd_dd, lf_lisGetTitle(this) + "_" + "일별통계", "sheet1", false);
- }else if(group3.swt_statflag.tabindex == "1"){
- grdf_exportExcel(group3.swt_statflag.mm.grd_mm, lf_lisGetTitle(this) + "_" + "월별통계", "sheet1", false);
- }else if(group3.swt_statflag.tabindex == "2"){
- grdf_exportExcel(group3.swt_statflag.yy.grd_yy, lf_lisGetTitle(this) + "_" + "연별통계", "sheet1", false);
- }else if(group3.swt_statflag.tabindex == "3"){
- grdf_exportExcel(group3.swt_statflag.cc.grd_cm, lf_lisGetTitle(this) + "_" + "유형(월별)", "sheet1", false);
- }else if(group3.swt_statflag.tabindex == "4"){
- grdf_exportExcel(group3.swt_statflag.cy.grd_cy, lf_lisGetTitle(this) + "_" + "유형(연별)", "sheet1", false);
- }
- }
-
- //정리
- function lf_list(){
- // 일별 통계
- if(group3.swt_statflag.tabindex == "0"){
- if(group1.cmb_cls.value == "1"){ // 진료과별
- var dept = "";
- for(var i=1; i<ds_grid_grd_dd.rowcount; i++){
- if(ds_grid_grd_dd.getColumn(i,"chk")=="1"){
- dept = dept + ","+ds_grid_grd_dd.getColumn(i,"blodcomcd");
- }
- }
- ds_send_data_dd.setColumn(0,"dept",dept);
-
- }else if(group1.cmb_cls.value == "2"){ // 혈액종류별
- var list = "";
- for(var i=1; i<ds_grid_grd_dd.rowcount; i++){
- if(ds_grid_grd_dd.getColumn(i,"chk")=="1"){
- list = list + ","+ds_grid_grd_dd.getColumn(i,"blodcomcd");
- }
- }
- ds_send_data_dd.setColumn(0,"list",list);
- }
-
- lf_setStat();
-
- // 월별 통계
- }else if(group3.swt_statflag.tabindex == "1"){
- if(group1.cmb_cls.value == "1"){ // 진료과별
- var dept = "";
- for(var i=1; i<ds_grid_grd_mm.rowcount; i++){
- if(ds_grid_grd_mm.getColumn(i,"chk")=="1"){
- dept = dept + ","+ds_grid_grd_mm.getColumn(i,"blodcomcd");
- }
- }
- ds_send_data_mm.setColumn(0,"dept",dept);
-
- }else if(group1.cmb_cls.value == "2"){ // 혈액종류별
- var list = "";
- for(var i=1; i<ds_grid_grd_mm.rowcount; i++){
- if(ds_grid_grd_mm.getColumn(i,"chk")=="1"){
- list = list + ","+ds_grid_grd_mm.getColumn(i,"blodcomcd");
- }
- }
- ds_send_data_mm.setColumn(0,"list",list);
- }
-
- lf_getMMStat();
-
- // 연별 통계
- }else if(group3.swt_statflag.tabindex == "2"){
- if(group1.cmb_cls.value == "1"){ // 진료과별
- var dept = "";
- for(var i=1; i<ds_grid_grd_yy.rowcount; i++){
- if(ds_grid_grd_yy.getColumn(i,"chk")=="1"){
- dept = dept + ","+ds_grid_grd_yy.getColumn(i,"blodtest");
- }
- }
- ds_send_data_yy.setColumn(0,"dept",dept);
-
- }else if(group1.cmb_cls.value == "2"){ // 혈액종류별
- var list = "";
- for(var i=1; i<ds_grid_grd_yy.rowcount; i++){
- if(ds_grid_grd_yy.getColumn(i,"chk")=="1"){
- list = list + ","+ds_grid_grd_yy.getColumn(i,"blodtest");
- }
- }
- ds_send_data_yy.setColumn(0,"list",list);
- }
-
- lf_getYYStat();
-
- // 유형(월별)
- }else if(group3.swt_statflag.tabindex == "3"){
- if(group1.cmb_cls.value == "1"){ // 진료과별
- var dept = "";
- for(var i=1; i<ds_grid_grd_cm.rowcount; i++){
- if(ds_grid_grd_cm.getColumn(i,"chk")=="1"){
- dept = dept + ","+ds_grid_grd_cm.getColumn(i,"blod")+ds_grid_grd_cm.getColumn(i,"resndesc");
- }
- }
- ds_send_data_cm.setColumn(0,"dept",dept);
-
- }else if(group1.cmb_cls.value == "2"){ // 혈액종류별
- var list = "";
- for(var i=1; i<ds_grid_grd_cm.rowcount; i++){
- if(ds_grid_grd_cm.getColumn(i,"chk")=="1"){
- list = list + ","+ds_grid_grd_cm.getColumn(i,"blod")+ds_grid_grd_cm.getColumn(i,"resndesc");
- }
- }
- ds_send_data_cm.setColumn(0,"list",list);
- }
-
- lf_getCCStat();
-
- // 유형(연별)
- }else if(group3.swt_statflag.tabindex == "4"){
- if(group1.cmb_cls.value == "1"){ // 진료과별
- var dept = "";
- for(var i=1; i<ds_grid_grd_cy.rowcount; i++){
- if(ds_grid_grd_cy.getColumn(i,"chk")=="1"){
- dept = dept + ","+ds_grid_grd_cy.getColumn(i,"blod")+ds_grid_grd_cy.getColumn(i,"resndesc");
- }
- }
- ds_send_data_cy.setColumn(0,"dept",dept);
-
- }else if(group1.cmb_cls.value == "2"){ // 혈액종류별
- var list = "";
- for(var i=1; i<ds_grid_grd_cy.rowcount; i++){
- if(ds_grid_grd_cy.getColumn(i,"chk")=="1"){
- list = list + ","+ds_grid_grd_cy.getColumn(i,"blod")+ds_grid_grd_cy.getColumn(i,"resndesc");
- }
- }
- ds_send_data_cy.setColumn(0,"list",list);
- }
-
- lf_getCYStat();
- }
- }
- //조회
- function group1_btn_ref_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send_data_dd.clearData();
- ds_send_data_dd.addRow();
- ds_send_data_mm.clearData();
- ds_send_data_mm.addRow();
- ds_send_data_yy.clearData();
- ds_send_data_yy.addRow();
- ds_send_data_cm.clearData();
- ds_send_data_cm.addRow();
- ds_send_data_cy.clearData();
- ds_send_data_cy.addRow();
- lf_setStat();
- }
- // 탭 선택시 조회구분 visible
- function group3_swt_statflag_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
- {
- if(obj.tabindex =="0"){ // 일별
- lf_dvisible();
- }else if(obj.tabindex =="1"){ // 월별
- lf_mvisible();
- }else if(obj.tabindex =="2"){ // 연별
- lf_yvisible();
- }else if(obj.tabindex =="3"){ // 유형 월별
- lf_cvisible();
- }else if(obj.tabindex =="4"){ // 유형 연별
- lf_cyvisible();
- }
- }
- // 엑셀
- function group3_btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_saveExcel();
- }
- // 정리
- function btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_list();
- }
-
- // 초기화
- function btn_reset_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_setInit();
- }
- ]]></Script>
- </Form>
- </FDL>
|