123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLBP00320" position="absolute 0 0 1198 769" titletext="혈액반납폐기율" oninit="SMLBP00320_oninit" onload="SMLBP00320_onload">
- <Layouts>
- <Layout>
- <Static text="혈액 T/CM 율" position="absolute 0 0 127 25" id="caption12" class="tit_1" anchor="left top"/>
- <Button id="btn_reset" taborder="1" text="초기화" class="btn4" position="absolute 1125 80 1193 102" onclick="btn_reset_onclick" anchor="top right"/>
- <Shape id="line7" linetype="vertical" class="line_2" position="absolute 0 37 1195 43"/>
- <Button id="btn_print" taborder="2" text="정리" class="btn6" position="absolute 1139 1 1195 23" onclick="btn_print_onclick" anchor="top right"/>
- <Tab id="swt_statflag" taborder="4" tabindex="0" class="sw_box" position="absolute 0 90 1185 765" 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 32 1181 648" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="22"/>
- <Column size="25"/>
- <Column size="147"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="0"/>
- <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"/>
- <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"/>
- <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"/>
- <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 expr="expr:currow"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="2" style="align:left middle;" text="bind:blodcomcd"/>
- <Cell col="3" text="bind:delive"/>
- <Cell col="4" text="bind:rtn"/>
- <Cell col="5" text="bind:perc"/>
- <Cell col="6" text="bind:d01"/>
- <Cell col="7" text="bind:d02"/>
- <Cell col="8" text="bind:d03"/>
- <Cell col="9" text="bind:d04"/>
- <Cell col="10" text="bind:d05"/>
- <Cell col="11" text="bind:d06"/>
- <Cell col="12" text="bind:d07"/>
- <Cell col="13" text="bind:d08"/>
- <Cell col="14" text="bind:d09"/>
- <Cell col="15" text="bind:d10"/>
- <Cell col="16" text="bind:d11"/>
- <Cell col="17" text="bind:d12"/>
- <Cell col="18" text="bind:d13"/>
- <Cell col="19" text="bind:d14"/>
- <Cell col="20" text="bind:d15"/>
- <Cell col="21" text="bind:d16"/>
- <Cell col="22" text="bind:d17"/>
- <Cell col="23" text="bind:d18"/>
- <Cell col="24" text="bind:d19"/>
- <Cell col="25" text="bind:d20"/>
- <Cell col="26" text="bind:d21"/>
- <Cell col="27" text="bind:d22"/>
- <Cell col="28" text="bind:d23"/>
- <Cell col="29" text="bind:d24"/>
- <Cell col="30" text="bind:d25"/>
- <Cell col="31" text="bind:d26"/>
- <Cell col="32" text="bind:d27"/>
- <Cell col="33" text="bind:d28"/>
- <Cell col="34" text="bind:d29"/>
- <Cell col="35" text="bind:d30"/>
- <Cell col="36" text="bind:d31"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 1 28 1180 34" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Static id="caption7" text="일별 통계" class="tit_2" position="absolute 1 11 84 28"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="mm" text="월별 통계">
- <Layouts>
- <Layout>
- <Grid id="grd_mm" taborder="1" binddataset="ds_grd_mm" useinputpanel="false" position="absolute 1 32 1181 648" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="135"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="45"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="50"/>
- <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" text="구분" taborder="undefined"/>
- <Cell col="2" colspan="3" text="1월" taborder="undefined"/>
- <Cell col="5" colspan="3" text="2월" taborder="undefined"/>
- <Cell col="8" colspan="3" text="3월" taborder="undefined"/>
- <Cell col="11" colspan="3" text="4월" taborder="undefined"/>
- <Cell col="14" colspan="3" text="5월" taborder="undefined"/>
- <Cell col="17" colspan="3" text="6월" taborder="undefined"/>
- <Cell col="20" colspan="3" text="7월" taborder="undefined"/>
- <Cell col="23" colspan="3" text="8월" taborder="undefined"/>
- <Cell col="26" colspan="3" text="9월" taborder="undefined"/>
- <Cell col="29" colspan="3" text="10월" taborder="undefined"/>
- <Cell col="32" colspan="3" text="11월" taborder="undefined"/>
- <Cell col="35" colspan="3" text="12월" taborder="undefined"/>
- <Cell row="1" col="2" text="CM"/>
- <Cell row="1" col="3" text="불출"/>
- <Cell row="1" col="4" text="%"/>
- <Cell row="1" col="5" text="CM"/>
- <Cell row="1" col="6" text="불출"/>
- <Cell row="1" col="7" text="%"/>
- <Cell row="1" col="8" text="CM"/>
- <Cell row="1" col="9" text="불출"/>
- <Cell row="1" col="10" text="%"/>
- <Cell row="1" col="11" text="CM"/>
- <Cell row="1" col="12" text="불출"/>
- <Cell row="1" col="13" text="%"/>
- <Cell row="1" col="14" text="CM"/>
- <Cell row="1" col="15" text="불출"/>
- <Cell row="1" col="16" text="%"/>
- <Cell row="1" col="17" text="CM"/>
- <Cell row="1" col="18" text="불출"/>
- <Cell row="1" col="19" text="%"/>
- <Cell row="1" col="20" text="CM"/>
- <Cell row="1" col="21" text="불출"/>
- <Cell row="1" col="22" text="%"/>
- <Cell row="1" col="23" text="CM"/>
- <Cell row="1" col="24" text="불출"/>
- <Cell row="1" col="25" text="%"/>
- <Cell row="1" col="26" text="CM"/>
- <Cell row="1" col="27" text="불출"/>
- <Cell row="1" col="28" text="%"/>
- <Cell row="1" col="29" text="CM"/>
- <Cell row="1" col="30" text="불출"/>
- <Cell row="1" col="31" text="%"/>
- <Cell row="1" col="32" text="CM"/>
- <Cell row="1" col="33" text="불출"/>
- <Cell row="1" col="34" text="%"/>
- <Cell row="1" col="35" text="CM"/>
- <Cell row="1" col="36" text="불출"/>
- <Cell row="1" col="37" text="백분률"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="1" style="align:left middle;" text="bind:blodcomcd"/>
- <Cell col="2" text="bind:t1"/>
- <Cell col="3" text="bind:m1"/>
- <Cell col="4" text="bind:p1"/>
- <Cell col="5" text="bind:t2"/>
- <Cell col="6" text="bind:m2"/>
- <Cell col="7" text="bind:p2"/>
- <Cell col="8" text="bind:t3"/>
- <Cell col="9" text="bind:m3"/>
- <Cell col="10" text="bind:p3"/>
- <Cell col="11" text="bind:t4"/>
- <Cell col="12" text="bind:m4"/>
- <Cell col="13" text="bind:p4"/>
- <Cell col="14" text="bind:t5"/>
- <Cell col="15" text="bind:m5"/>
- <Cell col="16" text="bind:p5"/>
- <Cell col="17" text="bind:t6"/>
- <Cell col="18" text="bind:m6"/>
- <Cell col="19" text="bind:p6"/>
- <Cell col="20" text="bind:t7"/>
- <Cell col="21" text="bind:m7"/>
- <Cell col="22" text="bind:p7"/>
- <Cell col="23" text="bind:t8"/>
- <Cell col="24" text="bind:m8"/>
- <Cell col="25" text="bind:p8"/>
- <Cell col="26" text="bind:t9"/>
- <Cell col="27" text="bind:m9"/>
- <Cell col="28" text="bind:p9"/>
- <Cell col="29" text="bind:t10"/>
- <Cell col="30" text="bind:m10"/>
- <Cell col="31" text="bind:p10"/>
- <Cell col="32" text="bind:t11"/>
- <Cell col="33" text="bind:m11"/>
- <Cell col="34" text="bind:p11"/>
- <Cell col="35" text="bind:t12"/>
- <Cell col="36" text="bind:m12"/>
- <Cell col="37" text="bind:p12"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line4" linetype="horizontal" class="line_1" position="absolute 1 28 1180 34" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Static id="caption8" text="월별통계" class="tit_2" position="absolute 1 11 76 28"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="yy" text="연별 통계">
- <Layouts>
- <Layout>
- <Grid id="grd_yy" taborder="1" binddataset="ds_grd_yy" useinputpanel="false" position="absolute 1 32 1181 648" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <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"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="구분"/>
- <Cell col="2" text="d1"/>
- <Cell col="3" text="d2"/>
- <Cell col="4" text="d3"/>
- <Cell col="5" text="d4"/>
- <Cell col="6" text="d5"/>
- <Cell col="7" text="d6"/>
- <Cell col="8" text="d7"/>
- <Cell col="9" text="d8"/>
- <Cell col="10" text="d9"/>
- </Band>
- <Band id="body">
- <Cell text="bind:chk" edittype="checkbox" displaytype="checkbox"/>
- <Cell col="1" text="bind:blodtest"/>
- <Cell col="2" text="bind:d1"/>
- <Cell col="3" text="bind:d2"/>
- <Cell col="4" text="bind:d3"/>
- <Cell col="5" text="bind:d4"/>
- <Cell col="6" text="bind:d5"/>
- <Cell col="7" text="bind:d6"/>
- <Cell col="8" text="bind:d7"/>
- <Cell col="9" text="bind:d8"/>
- <Cell col="10" text="bind:d9"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption10" text="년별 통계" class="tit_2" position="absolute 1 11 84 28"/>
- <Shape id="line5" linetype="horizontal" class="line_1" position="absolute 1 28 1180 34" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Button id="btn_excel" taborder="5" text="엑셀" class="btn7" position="absolute 1081 1 1133 24" onclick="btn_excel_onclick" anchor="top right"/>
- <Div id="group1" taborder="7" position="absolute 0 25 1195 75" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Button id="btn_ref" taborder="4" text="조회" class="btn1" position="absolute 1123 15 1179 37" anchor="top right" onclick="group1_btn_ref_onclick"/>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1105 14 1111 36" anchor="top right"/>
- <Calendar id="ipt_workfromdd" taborder="5" class="input_search" position="absolute 195 13 275 32" anchor="left top" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" onkeyup="group1_ipt_workfromdd_onkeyup"/>
- <Calendar id="ipt_worktodd" taborder="6" class="input_search" visible="false" position="absolute 299 13 379 32" anchor="left top" dateformat="yyyy-MM" value="null" editformat="yyyy-MM"/>
- <Static id="caption4" text="통계 희망일 :" class="search_name" position="absolute 10 17 104 34" anchor="left top"/>
- <Static id="caption9" text="~" class="search_no_b" visible="false" position="absolute 283 15 296 32" anchor="left top"/>
- <Combo id="combo1" taborder="7" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 108 14 181 33" 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>
- </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="false" 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="false" 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_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"/>
- <BindItem id="item2" compid="group1.combo1" propid="value" datasetid="ds_hidden" columnid="code"/>
- </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";
- function SMLBP00320_oninit(obj:Form, e:InitEventInfo)
- {
- //폼 초기화 함수
- frmf_initForm(obj);
- }
- function SMLBP00320_onload(obj:Form, e:LoadEventInfo)
- {
- 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 fMvisible()
- {
- if(swt_statflag.tabindex == 0)
- {
- fSetInit();
- group1.ipt_worktodd.visible = false;
- group1.caption9.visible = false;
- //ds_grd_dd.clearData();
- }
- if(swt_statflag.tabindex == 1)
- {
- fSetInit();
- group1.ipt_worktodd.visible = false;
- group1.caption9.visible = false;
- group1.ipt_workfromdd.dateformat = "yyyy";
- group1.ipt_workfromdd.editformat = "yyyy";
-
- ds_grd_mm.clearData();
- }
- if(swt_statflag.tabindex == 2)
- {
- fSetInit();
- group1.ipt_worktodd.visible = true;
- group1.caption9.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();
- }
- }
- //초기화
- function fSetInit()
- {
- group1.combo1.value = 2;
- 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", ds_hidden.getColumn(0, "rtnabnflag"));
- ds_send.setColumn(0, "cls", ds_hidden.getColumn(0, "cls"));
- 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", ds_hidden.getColumn(0, "code"));
- ds_send.setColumn(0, "bloodnm", ds_hidden.getColumn(0, "bloodnm"));
- ds_send.setColumn(0, "perc", ds_hidden.getColumn(0, "perc"));
-
- //if(btn_ddstat.selected == true)
- if(swt_statflag.tabindex == 0)
- {
- ds_send.setColumn(0, "refflag", 1);
- var oParam = {};
- oParam.id = "TRLBP00802";
- oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
- oParam.method = "reqGetRtnbloodList";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_grd_dd=getDDStatList ds_grd_yy=getYYStatList";
- oParam.async = false;
- //oParam.callback = "cf_TRLBP00802";
- tranf_submit(oParam);
-
- // submit("TRLBP00802");
- // grd_dd.rowStyle(1,"all","background-color") = "#f7a08b"
- // grd_dd.seqrowheader = 0;
- // grd_dd.frozenRows = 1;
- // grd_dd.frozenCols = 5;
- // model.setValue("root/send/list", "");
- // model.setValue("root/send/dept", "");
- // model.refresh();
- ds_send.setColumn(0, "list", "");
- ds_send.setColumn(0, "dept", "");
- }
- else if(swt_statflag.tabindex == 1)
- {
- fGetMMStat();// 월별통계
- }
- else if(swt_statflag.tabindex == 2)
- {
- // fGetYYStat();// 연별통계
- }
- }
- //월별통계
- function fGetMMStat()
- {
- ds_grd_mm.clearData();
- ds_send.setColumn(0, "chk", ds_grd_mm.getColumn(0, "chk"));
- ds_send.setColumn(0, "rtnabnflag", ds_hidden.getColumn(0, "rtnabnflag"));
- ds_send.setColumn(0, "refflag", 2);
- ds_send.setColumn(0, "cls", ds_hidden.getColumn(0, "cls"));
- // model.setValue("/root/send/stathopefromdd", model.getValue("/root/hidden/stathopefromdd"));
- ds_send.setColumn(0, "stathopefromdd", String(group1.ipt_workfromdd.value).substr(0, 4));
- // model.setValue("/root/send/stathopetodd", model.getValue("/root/hidden/stathopetodd"));
- ds_send.setColumn(0, "stathopetodd", group1.ipt_worktodd.value);
- // model.setValue("/root/send/perc", model.getValue("/root/hidden/perc"));
- ds_send.setColumn(0, "perc", ds_hidden.getColumn(0, "perc"));
-
- //submit("TRLBP00801");
- var oParam = {};
- oParam.id = "TRLBP00801";
- oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
- oParam.method = "reqGetRtnbloodList";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_grd_mm=getMMStatList";
- oParam.async = false;
- //oParam.callback = "cf_TRLBP00801";
- tranf_submit(oParam);
-
- // grd_mm.rowStyle(2,"all","background-color") = "#f7a08b"
- // grd_mm.seqrowheader = 0;
- // grd_mm.frozenRows = 1;
- // grd_mm.frozenCols = 2;
- // model.setValue("root/send/list", "");
- // model.setValue("root/send/dept", "");
- // model.refresh();
- //
- //exeReportPreview("RPLBP00200", "XMLFILE", "/root/send", "TRLBP00301", "", "", "", "", "", "", "", "mm");
- }
- function fList()
- { //일별
- //if (btn_ddstat.selected == true)
- alert(swt_statflag.tabindex);
- if (swt_statflag.tabindex == 0)
- {
- if(ds_send.getColumn(0, "cls") == 2)
- {
- alert("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)
- {
- alert("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);
- alert("조회");
- 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();
- }
- }
- }
- }
- function swt_statflag_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
- {
- fMvisible();
- }
- //조회
- 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 btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- alert("정리");
- fList();
- }
- //엑셀저장
- 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, "excel", "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, "excel", "sheet1", false);
- }
- }
- //초기화
- function btn_reset_onclick(obj:Button, e:ClickEventInfo)
- {
- SMLBP00320_onload();
- }
- ]]></Script>
- </Form>
- </FDL>
|