12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLBP00310" position="absolute 0 0 1199 784" titletext="혈액반납폐기율" oninit="SMLBP00310_oninit" onload="SMLBP00310_onload">
- <Layouts>
- <Layout>
- <Static text="혈액반환폐기율" position="absolute 0 0 120 25" id="caption12" class="tit_1" onclick="caption12_onclick" anchor="left top"/>
- <Button id="btn_reset" taborder="1" text="초기화" class="btn4" position="absolute 1127 2 1195 24" onclick="btn_reset_onclick" anchor="top right"/>
- <Button id="btn_print" taborder="2" text="정리" class="btn4" position="absolute 1068 2 1124 24" onclick="btn_print_onclick" anchor="top right"/>
- <Div id="group1" taborder="3" position="absolute 0 25 1195 60" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Button id="btn_ref" taborder="1" text="조회" class="btn1" position="absolute 1123 7 1179 29" anchor="top right" onclick="group1_btn_ref_onclick"/>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1105 6 1111 28" anchor="top right"/>
- <Static id="caption5" text="반환폐기구분 :" class="search_name" position="absolute 391 9 495 26" anchor="left top"/>
- <Static id="caption2" text="분류 :" class="search_name" position="absolute 615 9 679 26" anchor="left top"/>
- <CheckBox id="chx_perc" taborder="2" position="absolute 857 7 876 28" anchor="top right"/>
- <Static id="caption1" text="마취과 :" class="search_name" position="absolute 792 9 866 26" anchor="top right"/>
- <Calendar id="ipt_workfromdd" taborder="3" class="input_search" position="absolute 189 8 269 27" anchor="left top" onkeyup="group1_ipt_workfromdd_onkeyup" dateformat="yyyy-MM" value="null" editformat="yyyy-MM"/>
- <Calendar id="ipt_worktodd" taborder="4" class="input_search" visible="true" position="absolute 292 8 372 27" anchor="left top" dateformat="yyyy-MM" value="null" editformat="yyyy-MM"/>
- <Static id="caption4" text="통계 희망일 :" class="search_name" position="absolute 10 9 104 26" anchor="left top"/>
- <Static id="caption9" text="~" class="search_no_b" visible="true" position="absolute 277 10 290 27" anchor="left top"/>
- <Combo id="cmb_cls" taborder="6" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 667 8 775 27" anchor="left top">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </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 1000 8 1100 27" anchor="top right"/>
- <Static id="caption3" text="혈액명 :" class="search_name" position="absolute 923 9 996 26" anchor="top right"/>
- <Combo id="combo2" taborder="8" codecolumn="codecolumn" datacolumn="datacolumn" visible="true" position="absolute 503 8 605 27" anchor="default" index="-1">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </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="cmb_rtnabnflag" taborder="5" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 503 8 605 27" anchor="left top">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </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>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">취소</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Combo id="combo1" taborder="9" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 112 7 177 26" anchor="left top">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">불출일</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">준비일</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- </Layout>
- </Layouts>
- </Div>
- <Tab id="swt_statflag" taborder="4" tabindex="0" class="sw_box" position="absolute 0 79 1195 742" onchanged="swt_statflag_onchanged" anchor="all">
- <Tabpages>
- <Tabpage id="dd" text="일별 통계">
- <Layouts>
- <Layout>
- <Grid id="grd_dd" taborder="1" binddataset="ds_grd_dd" useinputpanel="false" position="absolute 1 22 1195 619" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="25"/>
- <Column size="120"/>
- <Column size="50"/>
- <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"/>
- <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" 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" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" expr="expr:currow"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:chk"/>
- <Cell col="2" style="align:left middle;background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:blodcomcd"/>
- <Cell col="3" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:delive"/>
- <Cell col="4" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:rtn"/>
- <Cell col="5" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:perc"/>
- <Cell col="6" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d01"/>
- <Cell col="7" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d02"/>
- <Cell col="8" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d03"/>
- <Cell col="9" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d04"/>
- <Cell col="10" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d05"/>
- <Cell col="11" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d06"/>
- <Cell col="12" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d07"/>
- <Cell col="13" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d08"/>
- <Cell col="14" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d09"/>
- <Cell col="15" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d10"/>
- <Cell col="16" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d11"/>
- <Cell col="17" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d12"/>
- <Cell col="18" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d13"/>
- <Cell col="19" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d14"/>
- <Cell col="20" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d15"/>
- <Cell col="21" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d16"/>
- <Cell col="22" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d17"/>
- <Cell col="23" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d18"/>
- <Cell col="24" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d19"/>
- <Cell col="25" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d20"/>
- <Cell col="26" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d21"/>
- <Cell col="27" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d22"/>
- <Cell col="28" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d23"/>
- <Cell col="29" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d24"/>
- <Cell col="30" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d25"/>
- <Cell col="31" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d26"/>
- <Cell col="32" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d27"/>
- <Cell col="33" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d28"/>
- <Cell col="34" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d29"/>
- <Cell col="35" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d30"/>
- <Cell col="36" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d31"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption7" text="일별 통계" class="tit_2" position="absolute 1 2 83 18"/>
- <Shape id="line12" class="line_1" position="absolute 1 18 1195 24" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="mm" text="월별 통계">
- <Layouts>
- <Layout>
- <Grid id="grd_mm" taborder="1" binddataset="ds_grd_mm" useinputpanel="false" position="absolute 1 22 1195 618" anchor="left top right">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="22"/>
- <Column size="25"/>
- <Column size="120"/>
- <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="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" displaytype="checkbox" edittype="checkbox" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="구분" taborder="undefined"/>
- <Cell col="3" colspan="3" text="1월" taborder="undefined"/>
- <Cell col="6" colspan="3" text="2월" taborder="undefined"/>
- <Cell col="9" colspan="3" text="3월" taborder="undefined"/>
- <Cell col="12" colspan="3" text="4월" taborder="undefined"/>
- <Cell col="15" colspan="3" text="5월" taborder="undefined"/>
- <Cell col="18" colspan="3" text="6월" taborder="undefined"/>
- <Cell col="21" colspan="3" text="7월" taborder="undefined"/>
- <Cell col="24" colspan="3" text="8월" taborder="undefined"/>
- <Cell col="27" colspan="3" text="9월" taborder="undefined"/>
- <Cell col="30" colspan="3" text="10월" taborder="undefined"/>
- <Cell col="33" colspan="3" text="11월" taborder="undefined"/>
- <Cell col="36" colspan="3" text="12월" taborder="undefined"/>
- <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" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" expr="expr:currow"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:chk"/>
- <Cell col="2" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:blodcomcd"/>
- <Cell col="3" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:t1"/>
- <Cell col="4" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m1"/>
- <Cell col="5" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:p1"/>
- <Cell col="6" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:t2"/>
- <Cell col="7" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m2"/>
- <Cell col="8" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:p2"/>
- <Cell col="9" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:t3"/>
- <Cell col="10" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m3"/>
- <Cell col="11" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:p3"/>
- <Cell col="12" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:t4"/>
- <Cell col="13" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m4"/>
- <Cell col="14" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:p4"/>
- <Cell col="15" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:t5"/>
- <Cell col="16" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m5"/>
- <Cell col="17" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:p5"/>
- <Cell col="18" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:t6"/>
- <Cell col="19" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m6"/>
- <Cell col="20" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:p6"/>
- <Cell col="21" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:t7"/>
- <Cell col="22" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m7"/>
- <Cell col="23" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:p7"/>
- <Cell col="24" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:t8"/>
- <Cell col="25" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m8"/>
- <Cell col="26" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:p8"/>
- <Cell col="27" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:t9"/>
- <Cell col="28" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m9"/>
- <Cell col="29" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:p9"/>
- <Cell col="30" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:t10"/>
- <Cell col="31" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m10"/>
- <Cell col="32" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:p10"/>
- <Cell col="33" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:t11"/>
- <Cell col="34" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m11"/>
- <Cell col="35" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:p11"/>
- <Cell col="36" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:t12"/>
- <Cell col="37" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m12"/>
- <Cell col="38" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:p12"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption8" text="월별통계" class="tit_2" position="absolute 1 2 75 18"/>
- <Shape id="line12" class="line_1" position="absolute 1 18 1195 24" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="yy" text="연별 통계">
- <Layouts>
- <Layout>
- <Grid id="grd_yy" taborder="1" binddataset="ds_grd_yy" useinputpanel="false" position="absolute 1 22 1195 619" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="25"/>
- <Column size="120"/>
- <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="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" displaytype="checkbox" edittype="checkbox" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="구분" taborder="undefined"/>
- <Cell col="3" taborder="undefined"/>
- <Cell col="4" taborder="undefined"/>
- <Cell col="5" taborder="undefined"/>
- <Cell col="6" taborder="undefined"/>
- <Cell col="7" taborder="undefined"/>
- <Cell col="8" taborder="undefined"/>
- <Cell col="9" taborder="undefined"/>
- <Cell col="10" taborder="undefined"/>
- <Cell col="11" taborder="undefined"/>
- <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" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" expr="expr:currow"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:chk"/>
- <Cell col="2" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:blodtest"/>
- <Cell col="3" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d1"/>
- <Cell col="4" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d2"/>
- <Cell col="5" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d3"/>
- <Cell col="6" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d4"/>
- <Cell col="7" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d5"/>
- <Cell col="8" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d6"/>
- <Cell col="9" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d7"/>
- <Cell col="10" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d8"/>
- <Cell col="11" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d9"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption10" text="년별 통계" class="tit_2" position="absolute 1 2 83 20"/>
- <Shape id="line12" class="line_1" position="absolute 0 18 1194 24" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="cc" text="유형(월별)">
- <Layouts>
- <Layout>
- <Static id="caption11" text="사유별 통계(월별)" class="tit_2" position="absolute 1 2 132 19"/>
- <Grid id="grd_cm" taborder="1" binddataset="ds_grd_cm" useinputpanel="false" position="absolute 1 22 1195 620" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23"/>
- <Column size="25"/>
- <Column size="120"/>
- <Column size="160"/>
- <Column size="60"/>
- <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"/>
- <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" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" expr="expr:currow"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:chk"/>
- <Cell col="2" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:blod"/>
- <Cell col="3" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:resndesc"/>
- <Cell col="4" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:hap"/>
- <Cell col="5" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:pa"/>
- <Cell col="6" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m1"/>
- <Cell col="7" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m2"/>
- <Cell col="8" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m3"/>
- <Cell col="9" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m4"/>
- <Cell col="10" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m5"/>
- <Cell col="11" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m6"/>
- <Cell col="12" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m7"/>
- <Cell col="13" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m8"/>
- <Cell col="14" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m9"/>
- <Cell col="15" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m10"/>
- <Cell col="16" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m11"/>
- <Cell col="17" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:m12"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line12" class="line_1" position="absolute 1 18 1194 24" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="cy" text="유형(연별)">
- <Layouts>
- <Layout>
- <Static id="caption6" text="사유별 통계(연별)" class="tit_2" position="absolute 1 2 137 18"/>
- <Grid id="grd_cy" taborder="1" binddataset="ds_grd_cy" useinputpanel="false" position="absolute 1 22 1194 619" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="21"/>
- <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" text="d1"/>
- <Cell col="7" text="d2"/>
- <Cell col="8" text="d3"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" expr="expr:currow"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:chk"/>
- <Cell col="2" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:blod"/>
- <Cell col="3" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:resndesc"/>
- <Cell col="4" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:hap"/>
- <Cell col="5" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:pa"/>
- <Cell col="6" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d1"/>
- <Cell col="7" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d2"/>
- <Cell col="8" style="background:EXPR(currow == 0 ? "#f7a08b" : "");" text="bind:d3"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line12" class="line_1" position="absolute 1 18 1194 24" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Button id="btn_excel" taborder="5" text="엑셀" class="btn7" position="absolute 1139 62 1190 82" onclick="btn_excel_onclick" anchor="top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_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="STRING"/>
- <Column id="rtn" type="STRING"/>
- <Column id="perc" type="STRING"/>
- <Column id="d01" type="STRING"/>
- <Column id="d02" type="STRING"/>
- <Column id="d03" type="STRING"/>
- <Column id="d04" type="STRING"/>
- <Column id="d05" type="STRING"/>
- <Column id="d06" type="STRING"/>
- <Column id="d07" type="STRING"/>
- <Column id="d08" type="STRING"/>
- <Column id="d09" type="STRING"/>
- <Column id="d10" type="STRING"/>
- <Column id="d11" type="STRING"/>
- <Column id="d12" type="STRING"/>
- <Column id="d13" type="STRING"/>
- <Column id="d14" type="STRING"/>
- <Column id="d15" type="STRING"/>
- <Column id="d16" type="STRING"/>
- <Column id="d17" type="STRING"/>
- <Column id="d18" type="STRING"/>
- <Column id="d19" type="STRING"/>
- <Column id="d20" type="STRING"/>
- <Column id="d21" type="STRING"/>
- <Column id="d22" type="STRING"/>
- <Column id="d23" type="STRING"/>
- <Column id="d24" type="STRING"/>
- <Column id="d25" type="STRING"/>
- <Column id="d26" type="STRING"/>
- <Column id="d27" type="STRING"/>
- <Column id="d28" type="STRING"/>
- <Column id="d29" type="STRING"/>
- <Column id="d30" type="STRING"/>
- <Column id="d31" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_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="STRING"/>
- <Column id="m1" type="STRING"/>
- <Column id="p1" type="STRING"/>
- <Column id="t2" type="STRING"/>
- <Column id="m2" type="STRING"/>
- <Column id="p2" type="STRING"/>
- <Column id="t3" type="STRING"/>
- <Column id="m3" type="STRING"/>
- <Column id="p3" type="STRING"/>
- <Column id="t4" type="STRING"/>
- <Column id="m4" type="STRING"/>
- <Column id="p4" type="STRING"/>
- <Column id="t5" type="STRING"/>
- <Column id="m5" type="STRING"/>
- <Column id="p5" type="STRING"/>
- <Column id="t6" type="STRING"/>
- <Column id="m6" type="STRING"/>
- <Column id="p6" type="STRING"/>
- <Column id="t7" type="STRING"/>
- <Column id="m7" type="STRING"/>
- <Column id="p7" type="STRING"/>
- <Column id="t8" type="STRING"/>
- <Column id="m8" type="STRING"/>
- <Column id="p8" type="STRING"/>
- <Column id="t9" type="STRING"/>
- <Column id="m9" type="STRING"/>
- <Column id="p9" type="STRING"/>
- <Column id="t10" type="STRING"/>
- <Column id="m10" type="STRING"/>
- <Column id="p10" type="STRING"/>
- <Column id="t11" type="STRING"/>
- <Column id="m11" type="STRING"/>
- <Column id="p11" type="STRING"/>
- <Column id="t12" type="STRING"/>
- <Column id="m12" type="STRING"/>
- <Column id="p12" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_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="STRING"/>
- <Column id="d2" type="STRING"/>
- <Column id="d3" type="STRING"/>
- <Column id="d4" type="STRING"/>
- <Column id="d5" type="STRING"/>
- <Column id="d6" type="STRING"/>
- <Column id="d7" type="STRING"/>
- <Column id="d8" type="STRING"/>
- <Column id="d9" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_cm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <ConstColumn id="ConstColumn0" type="STRING" size="30" value=""/>
- <Column id="chk" type="STRING"/>
- <Column id="blod" type="STRING"/>
- <Column id="resndesc" type="STRING"/>
- <Column id="hap" type="STRING"/>
- <Column id="pa" type="STRING"/>
- <Column id="m1" type="STRING"/>
- <Column id="m2" type="STRING"/>
- <Column id="m3" type="STRING"/>
- <Column id="m4" type="STRING"/>
- <Column id="m5" type="STRING"/>
- <Column id="m6" type="STRING"/>
- <Column id="m7" type="STRING"/>
- <Column id="m8" type="STRING"/>
- <Column id="m9" type="STRING"/>
- <Column id="m10" type="STRING"/>
- <Column id="m11" type="STRING"/>
- <Column id="m12" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_cy" 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="STRING"/>
- <Column id="pa" type="STRING"/>
- <Column id="d1" type="STRING"/>
- <Column id="d2" type="STRING"/>
- <Column id="d3" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden" 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="perc" type="STRING" size="256"/>
- <Column id="code" type="STRING" size="256"/>
- <Column id="bloodnm" type="STRING" size="256"/>
- <Column id="list" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="rtnabnflag">1</Col>
- <Col id="code">2</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" 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="refflag" 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="perc" 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="list" type="STRING" size="256"/>
- <Column id="dept" type="STRING" size="256"/>
- <Column id="res" type="STRING" size="256"/>
- <Column id="chk" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group1.ipt_workfromdd" propid="value" datasetid="ds_hidden" columnid="stathopefromdd"/>
- <BindItem id="item1" compid="group1.ipt_worktodd" propid="value" datasetid="ds_hidden" columnid="stathopetodd"/>
- </Bind>
- <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 "ast_examcurexp::AEZ0001.xjs";
- include "ast_examcurexp::combolist.xjs";
- include "emr_prcpmngtxp::MMOCommon.xjs" // lf_mmbfGetDeptCodeComboList include
- include "lis_commonxp::LPZ001.xjs";
- include "lis_commonxp::LZZ002.xjs";
- include "lis_commonxp::LZZ001.xjs";
- include "lis_commonxp::LLZ001.xjs";
- include "com_basiccodexp::ZBC001.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- function SMLBP00310_oninit(obj:Form, e:InitEventInfo)
- {
- //폼 초기화 함수
- frmf_initForm(obj);
- }
- function SMLBP00310_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(swt_statflag.cc.grd_cm);
- grdf_initGrid(swt_statflag.cy.grd_cy);
- grdf_initGrid(swt_statflag.dd.grd_dd);
- grdf_initGrid(swt_statflag.mm.grd_mm);
- grdf_initGrid(swt_statflag.yy.grd_yy);
- swt_statflag.tabindex = 0;
- fMvisible();
- }
- //초기화
- function fSetInit()
- {
- group1.combo1.value = 2;
- group1.cmb_rtnabnflag.value = 1;
- group1.combo2.value = 1;
- group1.cmb_cls.value = 1;
- group1.ipt_workfromdd.value = utlf_getCurrentDate();
- group1.ipt_worktodd.value = utlf_getCurrentDate();
- group1.ipt_workfromdd.dateformat = "yyyy-MM";
- group1.ipt_workfromdd.editformat = "yyyy-MM";
- }
- function fSetStat()
- {
- ds_grd_dd.clearData();
- var mons = group1.ipt_workfromdd.value;
- var mon = null;
- mon = String(mons).substr(4, 2);
-
- ds_send.setColumn(0, "chk", ds_grd_dd.getColumn(0, "chk"));
- ds_send.setColumn(0, "mon", mon);
- ds_send.setColumn(0, "rtnabnflag", group1.cmb_rtnabnflag.value);
- ds_send.setColumn(0, "cls", group1.cmb_cls.value);
- ds_send.setColumn(0, "stathopefromdd", String(group1.ipt_workfromdd.value).substr(0, 6));
- ds_send.setColumn(0, "stathopetodd", group1.ipt_worktodd.value);
- ds_send.setColumn(0, "code", group1.combo1.value);
- if(group1.chx_perc.value == false)
- {
- ds_send.setColumn(0, "perc", "");
- }
- else
- {
- ds_send.setColumn(0, "perc", 1);
- }
-
- if(swt_statflag.tabindex == 0)
- {
- ds_send.setColumn(0, "refflag", 1);
- var oParam = {};
- oParam.id = "TRLBP00401";
- oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
- oParam.method = "reqGetRtnAbnList_dept";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_grd_dd=getDDStatList ds_grd_yy=getYYStatList";
- oParam.async = false;
- //oParam.callback = "cf_TRLBP00401";
- tranf_submit(oParam);
-
- ds_send.setColumn(0, "list", "");
- ds_send.setColumn(0, "dept", "");
- }
- else if(swt_statflag.tabindex == 1)
- {
- fGetMMStat();// 월별통계
- }
- else if(swt_statflag.tabindex == 2)
- {
- fGetYYStat();// 연별통계
- }
- else if(swt_statflag.tabindex == 3)
- {
- fGetCCStat();// 유형(월별)
- }
- else if(swt_statflag.tabindex == 4)
- {
- fGetCYStat();//유형(연별)
- }
- }
- //월별통계
- function fGetMMStat()
- {
- ds_grd_mm.clearData();
- ds_send.setColumn(0, "chk", ds_grd_dd.getColumn(0, "blodcomcd"));
- ds_send.setColumn(0, "rtnabnflag", group1.cmb_rtnabnflag.value);
- ds_send.setColumn(0, "refflag", 2);
- ds_send.setColumn(0, "cls", group1.cmb_cls.value);
- ds_send.setColumn(0, "stathopefromdd", String(group1.ipt_workfromdd.value).substr(0, 4));
- ds_send.setColumn(0, "stathopetodd", group1.ipt_worktodd.value);
-
- if(group1.chx_perc.value == false)
- {
- ds_send.setColumn(0, "perc", "");
- }
- else
- {
- ds_send.setColumn(0, "perc", 1);
- }
-
- var oParam = {};
- oParam.id = "TRLBP00402";
- oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
- oParam.method = "reqGetRtnAbnList_dept";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_grd_mm=getMMStatList";
- oParam.async = false;
- //oParam.callback = "cf_TRLBP00402";
- tranf_submit(oParam);
- ds_send.setColumn(0, "list", "");
- ds_send.setColumn(0, "dept", "");
- }
- //년별통계
- function fGetYYStat()
- {
- var fromyys = group1.ipt_workfromdd.value;
- var fromyy = null
- fromyy = String(fromyys).substr(0, 4);
-
- var toyys = group1.ipt_worktodd.value;
- var toyy = null
- toyy = String(toyys).substr(0, 4);
-
- if(toyy - fromyy < 0)
- {
- alert("종료일이 시작일보다 작습니다");
- return;
- }
- if(toyy - fromyy >= 3)
- {
- alert("조회는 3년까지만 제공합니다");
- return;
- }
-
- fHidden("year");// 그리드 숨기기
- //return;
- ds_send.setColumn(0, "chk", ds_grd_yy.getColumn(0, "chk"));
- ds_send.setColumn(0, "rtnabnflag", group1.cmb_rtnabnflag.value);
- ds_send.setColumn(0, "refflag", 3);
- ds_send.setColumn(0, "cls", group1.cmb_cls.value);
- ds_send.setColumn(0, "stathopefromdd", String(group1.ipt_workfromdd.value).substr(0, 4));
- ds_send.setColumn(0, "stathopetodd", String(group1.ipt_worktodd.value).substr(0, 4));
-
- if(group1.chx_perc.value == false)
- {
- ds_send.setColumn(0, "perc", "");
- }
- else
- {
- ds_send.setColumn(0, "perc", 1);
- }
-
- //submit("TRLBP00401");
- var oParam = {};
- oParam.id = "TRLBP00401";
- oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
- oParam.method = "reqGetRtnAbnList_dept";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_grd_dd=getDDStatList ds_grd_yy=getYYStatList";
- oParam.async = false;
- //oParam.callback = "cf_TRLBP00401";
- tranf_submit(oParam);
-
- ds_send.setColumn(0, "list", "");
- ds_send.setColumn(0, "dept", "");
- }
- //유형(월별)
- function fGetCCStat()
- {
- ds_send.setColumn(0, "chk", ds_grd_cm.getColumn(0, "chk"));
- ds_send.setColumn(0, "rtnabnflag", group1.cmb_rtnabnflag.value);
- ds_send.setColumn(0, "refflag", 4);
- ds_send.setColumn(0, "cls", group1.cmb_cls.value);
- ds_send.setColumn(0, "stathopefromdd", String(group1.ipt_workfromdd.value).substr(0, 4));
- ds_send.setColumn(0, "mon", String(group1.ipt_workfromdd.value).substr(0, 4));
-
- if(group1.chx_perc.value == false)
- {
- ds_send.setColumn(0, "perc", "");
- }
- else
- {
- ds_send.setColumn(0, "perc", 1);
- }
-
- //submit("TRLBP00403");
- var oParam = {};
- oParam.id = "TRLBP00403";
- oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
- oParam.method = "reqGetRtnAbnList_dept";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_grd_cm=getCCStatList";
- oParam.async = false;
- //oParam.callback = "cf_TRLBP00403";
- tranf_submit(oParam);
-
- ds_send.setColumn(0, "list", "");
- ds_send.setColumn(0, "dept", "");
- ds_send.setColumn(0, "res", "");
- }
- //유형(연별)
- function fGetCYStat()
- {
- ds_grd_cy.clearData();
- var fromyys = group1.ipt_workfromdd.value;
- var fromyy = null
- fromyy = String(fromyys).substr(0, 4);
-
- var toyys = group1.ipt_worktodd.value;
- var toyy = null
- toyy = String(toyys).substr(0, 4);
-
- if(toyy - fromyy < 0)
- {
- alert("종료일이 시작일보다 작습니다");
- return;
- }
- if(toyy - fromyy >= 3)
- {
- alert("조회는 3년까지만 제공합니다");
- return;
- }
- var dtYear = toyy - fromyy;
- var frommYear = ds_hidden.getColumn(0, "stathopefromdd");
- var toYear = ds_hidden.getColumn(0, "stathopetodd");
-
- var fYear = frommYear.toDate().getDateFormat("YYYY");
- var tYear = toYear.toDate().getDateFormat("YYYY");
- var cnt = tYear - fYear;
-
- var colNum = 6;
- var colIdx = 6;
- var jj = 0;
- var stYear = frommYear.toDate().getDateFormat("YYYYMM");
- var year = frommYear.toDate().getDateFormat("YYYY");
-
- for(var i = 0; i < 3; i++)
- {
- swt_statflag.cy.grd_cy.setCellProperty("Head", colIdx, "text", year + "년");
- colIdx = colIdx + 1;
- jj = jj + 1;
-
- year = frommYear.toDate().getAddDate(jj,"Y").getDateFormat("YYYY");
-
- if((cnt+1) <= i)
- {
- if(colNum <= 9)
- {
- swt_statflag.cy.grd_cy.setFormatColProperty(colNum, "size", 0);
- }
- }
- else
- {
- swt_statflag.cy.grd_cy.setFormatColProperty(colNum, "size", 80);
- }
-
- colNum = colNum + 1;
- }
- ds_send.setColumn(0, "chk", ds_grd_cy.getColumn(0, "chk"));
- ds_send.setColumn(0, "rtnabnflag", group1.cmb_rtnabnflag.value);
- ds_send.setColumn(0, "refflag", 5);
- ds_send.setColumn(0, "cls", group1.cmb_cls.value);
- ds_send.setColumn(0, "stathopefromdd", String(group1.ipt_workfromdd.value).substr(0, 4));
- ds_send.setColumn(0, "stathopetodd", String(group1.ipt_worktodd.value).substr(0, 4));
-
- if(group1.chx_perc.value == false)
- {
- ds_send.setColumn(0, "perc", "");
- }
- else
- {
- ds_send.setColumn(0, "perc", 1);
- }
-
- //submit("TRLBP00404");
- var oParam = {};
- oParam.id = "TRLBP00404";
- oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
- oParam.method = "reqGetRtnAbnList_dept";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_grd_cy=getCYStatList";
- oParam.async = false;
- //oParam.callback = "cf_TRLBP00404";
- tranf_submit(oParam);
-
- ds_send.setColumn(0, "list", "");
- ds_send.setColumn(0, "dept", "");
- }
- function fMvisible()
- {
- if(swt_statflag.tabindex == 0)
- {
- fSetInit();
- group1.caption9.visible = false;
- group1.ipt_worktodd.visible = false;
- group1.combo2.visible = false;
- group1.cmb_rtnabnflag.visible = true;
- ds_grd_dd.clearData();
- }
- if(swt_statflag.tabindex == 1)
- {
- fSetInit();
- group1.combo2.visible = false;
- group1.cmb_rtnabnflag.visible = true;
- group1.ipt_workfromdd.dateformat = "yyyy";
- group1.ipt_workfromdd.editformat = "yyyy";
- group1.caption9.visible = false;
- group1.ipt_worktodd.visible = false;
- ds_grd_mm.clearData();
- }
- if(swt_statflag.tabindex == 2)
- {
- fSetInit();
- group1.combo2.visible = false;
- group1.cmb_rtnabnflag.visible = true;
- group1.caption9.visible = true;
- group1.ipt_worktodd.visible = true;
- group1.ipt_workfromdd.dateformat = "yyyy";
- group1.ipt_workfromdd.editformat = "yyyy";
- group1.ipt_worktodd.dateformat = "yyyy";
- group1.ipt_worktodd.editformat = "yyyy";
- ds_grd_yy.clearData();
- }
- if(swt_statflag.tabindex ==3)
- {
- fSetInit();
- group1.combo2.visible = true;
- group1.cmb_rtnabnflag.visible = false;
- group1.caption9.visible = false;
- group1.ipt_worktodd.visible = false;
- group1.ipt_workfromdd.dateformat = "yyyy";
- group1.ipt_workfromdd.editformat = "yyyy";
- ds_grd_cm.clearData();
- }
- if(swt_statflag.tabindex == 4)
- {
- fSetInit();
- group1.combo2.visible = true;
- group1.cmb_rtnabnflag.visible = false;
- group1.caption9.visible = true;
- group1.ipt_worktodd.visible = true;
- group1.ipt_workfromdd.dateformat = "yyyy";
- group1.ipt_workfromdd.editformat = "yyyy";
- group1.ipt_worktodd.dateformat = "yyyy";
- group1.ipt_worktodd.editformat = "yyyy";
- ds_grd_cy.clearData();
- }
- }
- function fHidden(gubun)// 그리드 숨기기
- {
- //그리드초기화
- var mergeCol = swt_statflag.yy.grd_yy.getCellCount("Head");
- if( mergeCol != 21 )
- {
- mergeCol = 22 - mergeCol;
- swt_statflag.yy.grd_yy.splitContentsCell("Head", 0, 3, 0, mergeCol + 2, true);
-
- for( var mCol = mergeCol; mCol <= 11; mCol++ )
- {
- swt_statflag.yy.grd_yy.setFormatColProperty(mCol, "size", 80);
- }
- }
-
- var frommYear = ds_hidden.getColumn(0, "stathopefromdd");
- var toYear = ds_hidden.getColumn(0, "stathopetodd");
-
- var fYear = frommYear.toDate().getDateFormat("YYYY");
- var tYear = toYear.toDate().getDateFormat("YYYY");
- var cnt = tYear - fYear;
-
- var colNum = 3;
- var colIdx = 3;
- var jj = 0;
-
- if( utlf_isNull(gubun))
- {
- for( var i = 3; i < 9; i++)
- {
- swt_statflag.yy.grd_yy.setFormatColProperty(i, "size", 0);
- }
- }
- else if( gubun == "year")
- {
- var stYear = frommYear.toDate().getDateFormat("YYYYMM");
- var year = frommYear.toDate().getDateFormat("YYYY");
-
- for( var i = 0; i < 9; i++ )
- {
- swt_statflag.yy.grd_yy.setCellProperty("Head", colIdx, "text", year + "년");
- colIdx = colIdx + 1;
-
- if ((i+1)%3==0)
- {
- jj = jj + 1;
- year = frommYear.toDate().getAddDate(jj,"Y").getDateFormat("YYYY");
- }
- if (3*(cnt+1) <= i)
- {
- if( colNum < 12 )
- {
- swt_statflag.yy.grd_yy.setFormatColProperty(colNum, "size", 0);
- }
- }
- colNum = colNum + 1;
- }
- var stColNo = 0;
- var dtColNo = 0;
- if( cnt == 0 )
- {
- swt_statflag.yy.grd_yy.mergeContentsCell("Head" , 0, 3, 0, 5, 3, false);
- }
- else if( cnt == 1 )
- {
- stColNo = (cnt+1) * 3;
- swt_statflag.yy.grd_yy.mergeContentsCell("Head" , 0, stColNo, 0, stColNo+2, stColNo, false);
- stColNo = stColNo -3;
- swt_statflag.yy.grd_yy.mergeContentsCell("Head" , 0, stColNo, 0, stColNo+2, stColNo, false);
- }
- else
- {
- stColNo = (cnt+1) * 3;
- swt_statflag.yy.grd_yy.mergeContentsCell("Head" , 0, stColNo, 0, stColNo+2, stColNo, false);
- stColNo = stColNo -3;
- swt_statflag.yy.grd_yy.mergeContentsCell("Head" , 0, stColNo, 0, stColNo+2, stColNo, false);
- stColNo = stColNo -3;
- swt_statflag.yy.grd_yy.mergeContentsCell("Head" , 0, stColNo, 0, stColNo+2, stColNo, false);
- }
- }
- }
-
- //정리
- function fList()
- {
- if (swt_statflag.tabindex == 0)
- {
- if(ds_send.getColumn(0, "cls") == 2)
- {
- var list = "";
- var dept = "";
- for(i = 0; i < ds_grd_dd.rowposition; i++)
- {
- if(ds_grd_dd.getColumn(i, "chk") == 1)
- {
- list = list + "," + ds_grd_dd.getColumn(i, "blodcomcd");
- }
- }
- ds_send.setColumn(0, "list", list);
- fSetStat();
- }
-
- else if (swt_statflag.tabindex == 0)
- {
- if(ds_send.getColumn(0, "cls") == 1)
- {
- var dept = "";
- for(i = 0; i <= ds_grd_dd.rowposition; i++)
- {
- if(ds_grd_dd.getColumn(i, "chk") == 1)
- {
- dept = dept + "," + ds_grd_dd.getColumn(i, "blodcomcd");
- }
- }
- ds_send.setColumn(0, "dept", dept);
-
- fSetStat();
- }
- }
- }
- if(swt_statflag.tabindex == 1)
- {
- if(ds_send.getColumn(0, "cls") == 2)
- {
- var list = "";
-
- for(i = 0; i <= ds_grd_mm.rowposition; i++)
- {
- if(ds_grd_mm.getColumn(i, "chk") == 1)
- {
- list = list + "," + ds_grd_mm.getColumn(i, "blodcomcd");
- }
- }
- ds_send.setColumn(0, "list", list);
- fGetMMStat();
- }
- else if(swt_statflag.tabindex == 1)
- {
- if(ds_send.getColumn(0, "cls") == 1)
- {
- var dept = "";
- for(i = 0; i <= ds_grd_mm.rowposition; i++)
- {
- if(ds_grd_mm.getColumn(i , "chk") == 1)
- {
- dept = dept + "," + ds_grd_mm.getColumn(i, "blodcomcd");
- }
- }
- ds_send.setColumn(0, "dept", dept);
- fGetMMStat();
- }
- }
- }
-
- if(swt_statflag.tabindex == 2)
- { //연별
- if(ds_send.getColumn(0, "cls") == 2)
- {
- var list = "";
- for(i = 0; i <= ds_grd_yy.rowposition; i++)
- {
- if(ds_grd_yy.getColumn(i , "chk") == 1)
- {
- list = list + "," + ds_grd_yy.getColumn(i, "blodtest");
- }
- }
- ds_send.setColumn(0, "list", list);
- fGetYYStat();
- }
- else if(swt_statflag.tabindex == 2)
- {
- if(ds_send.getColumn(0, "cls") == 1)
- {
- var dept = "";
- for(i = 0; i <= ds_grd_yy.rowposition; i++)
- {
- if(ds_grd_yy.getColumn(i, "chk") == 1)
- {
- dept = dept + "," + ds_grd_yy.getColumn(i, "blodtest");
- }
- }
- ds_send.setColumn(0, "dept", dept);
- fGetYYStat();
- }
- }
- }
-
- if(swt_statflag.tabindex == 3) //유형월별
- {
- if(ds_send.getColumn(0, "cls") == 2)
- {
- var list = "";
- var res = "";
- for(i = 0; i <= ds_grd_cm.rowposition; i++)
- {
- if(ds_grd_cm.getColumn(i , "chk") == 1)
- {
- list = list + "," + ds_grd_cm.getColumn(i, "blod");
- }
- }
- ds_send.setColumn(0, "list", list);
-
- fGetCCStat();
- }
- else if (swt_statflag.tabindex == 3)
- {
- if(ds_send.getColumn(0, "cls") == 1)
- {
- var dept = "";
- for (i = 0; i <= ds_grd_cm.rowposition; i++)
- {
- if(ds_grd_cm.getColumn(i , "chk") == 1)
- {
- dept = dept + "," + ds_grd_cm.getColumn(i, "blod") + ds_grd_cm.getColumn(i, "resndesc"); }
- }
- ds_send.setColumn(0, "dept", dept);
- fGetCCStat();
- }
- }
- }
-
- if(swt_statflag.tabindex == 4) //유형연별
- {
- if(ds_send.getColumn(0, "cls") == 2)
- {
- var list = "";
- var res = "";
-
- for(i = 0; i < ds_grd_cy.rowposition; i++)
- {
- if(ds_grd_cy.getColumn(i , "chk") == 1)
- {
- list = list + "," + ds_grd_cy.getColumn(i, "blod");
- }
- }
- ds_send.setColumn(0, "list", list);
- fGetCYStat();
- }
- else if(swt_statflag.tabindex == 4)
- {
- if(ds_send.getColumn(0, "cls") == 1)
- {
- var dept = "";
- for(i = 0; i <= ds_grd_cy.rowposition; i++)
- {
- if(ds_grd_cy.getColumn(i , "chk") == 1)
- {
- dept = dept + "," + ds_grd_cy.getColumn(i, "blod") + ds_grd_cy.getColumn(i, "resndesc");
- }
- }
- ds_send.setColumn(0, "dept", dept);
- fGetCYStat();
- }
- }
- }
- }
- //조회
- function group1_btn_ref_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetStat();
- }
- function group1_ipt_workfromdd_onkeyup(obj:Calendar, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- fSetStat();
- }
- }
- function swt_statflag_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
- {
- fMvisible();
- }
- function btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- fList();
- }
- function btn_reset_onclick(obj:Button, e:ClickEventInfo)
- {
- SMLBP00310_onload();
- }
- //엑셀
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- if (swt_statflag.tabindex == 0)
- {
- if(ds_grd_dd.rowcount == 0)
- {
- sysf_messageBox("엑셀 저장할 자료가 없습니다.","E000","");
- return;
- }
- grdf_exportExcel(swt_statflag.dd.grd_dd, lf_lisGetTitle(this) + "_" + "이상결과리스트", "sheet1", false);
- }
- else if(swt_statflag.tabindex == 1)
- {
- if(ds_grd_mm.rowcount == 0)
- {
- sysf_messageBox("엑셀 저장할 자료가 없습니다.","E000","");
- return;
- }
- grdf_exportExcel(swt_statflag.mm.grd_mm, lf_lisGetTitle(this) + "_" + "이상결과리스트", "sheet1", false);
- }
- else if(swt_statflag.tabindex == 2)
- {
- if(ds_grd_yy.rowcount == 0)
- {
- sysf_messageBox("엑셀 저장할 자료가 없습니다.","E000","");
- return;
- }
- grdf_exportExcel(swt_statflag.yy.grd_yy, lf_lisGetTitle(this) + "_" + "이상결과리스트", "sheet1", false);
- }
- else if(swt_statflag.tabindex == 3)
- {
- if(ds_grd_cm.rowcount == 0)
- {
- sysf_messageBox("엑셀 저장할 자료가 없습니다.","E000","");
- return;
- }
- grdf_exportExcel(swt_statflag.cm.grd_cm, lf_lisGetTitle(this) + "_" + "이상결과리스트", "sheet1", false);
- }
- else if(swt_statflag.tabindex == 4)
- {
- if(ds_grd_cy.rowcount == 0)
- {
- sysf_messageBox("엑셀 저장할 자료가 없습니다.","E000","");
- return;
- }
- grdf_exportExcel(swt_statflag.cy.grd_cy, lf_lisGetTitle(this) + "_" + "이상결과리스트", "sheet1", false);
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|