123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLBS00300" position="absolute 0 0 1256 805" titletext="수혈환자수" oninit="model1_oninit">
- <Layouts>
- <Layout>
- <Div id="group3" position="absolute 0 25 1256 805" anchor="all" positiontype="position">
- <Layouts>
- <Layout>
- <Div id="group1" position="absolute 0 0 1256 42" anchor="left top right" positiontype="position" class="div_SA">
- <Layouts>
- <Layout>
- <Static id="caption5" class="search_name" position="absolute 339 10 387 30" anchor="default" text="구분" positiontype="position"/>
- <Static id="caption4" class="search_name" position="absolute 8 10 94 30" anchor="default" text="통계 희망일" positiontype="position"/>
- <Combo id="cmb_rtnabnflag" position="absolute 387 10 489 30" anchor="default" positiontype="position" innerdataset="@ds_cond_gbn" codecolumn="value" datacolumn="label" index="0" value="1" text="전체"/>
- <Button id="btn_ref" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" text="조회" onlbuttonup="btn_ref_onlbuttonup" positiontype="position"/>
- <cp_monthCal id="cp_workfromdd" titletext="monthCalendar" taborder="2" scrollbars="none" position="absolute 99 10 174 30" visible="true"/>
- <Static id="caption9" text="~" position="absolute 173 10 189 30" style="align:center middle;"/>
- <cp_monthCal id="cp_worktodd" titletext="monthCalendar" taborder="5" scrollbars="none" position="absolute 187 10 262 30"/>
- </Layout>
- </Layouts>
- </Div>
- <Tab id="switch1" position="absolute 0 52 1256 780" anchor="all" positiontype="position" onchanged="group3_switch1_onchanged">
- <Tabpages>
- <Tabpage id="case0" text="일별">
- <Layouts>
- <Layout>
- <Static id="caption32" class="tit_2" position="absolute 0 0 171 20" anchor="default" text="일별 수혈환자수" style="align:left top;" positiontype="position"/>
- <Grid id="grd_days" position="absolute 0 20 1256 701" anchor="all" positiontype="position" binddataset="ds_grid_grd_days">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="120"/>
- <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"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="진료과"/>
- <Cell col="1" text="1일"/>
- <Cell col="2" text="2일"/>
- <Cell col="3" text="3일"/>
- <Cell col="4" text="4일"/>
- <Cell col="5" text="5일"/>
- <Cell col="6" text="6일"/>
- <Cell col="7" text="7일"/>
- <Cell col="8" text="8일"/>
- <Cell col="9" text="9일"/>
- <Cell col="10" text="10일"/>
- <Cell col="11" text="11일"/>
- <Cell col="12" text="12일"/>
- <Cell col="13" text="13일"/>
- <Cell col="14" text="14일"/>
- <Cell col="15" text="15일"/>
- <Cell col="16" text="16일"/>
- <Cell col="17" text="17일"/>
- <Cell col="18" text="18일"/>
- <Cell col="19" text="19일"/>
- <Cell col="20" text="20일"/>
- <Cell col="21" text="21일"/>
- <Cell col="22" text="22일"/>
- <Cell col="23" text="23일"/>
- <Cell col="24" text="24일"/>
- <Cell col="25" text="25일"/>
- <Cell col="26" text="26일"/>
- <Cell col="27" text="27일"/>
- <Cell col="28" text="28일"/>
- <Cell col="29" text="29일"/>
- <Cell col="30" text="30일"/>
- <Cell col="31" text="31일"/>
- <Cell col="32" text="Total"/>
- </Band>
- <Band id="body">
- <Cell style="align:center middle;" text="bind:orddept"/>
- <Cell col="1" displaytype="number" style="align:right middle;" text="bind:a01"/>
- <Cell col="2" displaytype="number" style="align:right middle;" text="bind:a02"/>
- <Cell col="3" displaytype="number" style="align:right middle;" text="bind:a03"/>
- <Cell col="4" displaytype="number" style="align:right middle;" text="bind:a04"/>
- <Cell col="5" displaytype="number" style="align:right middle;" text="bind:a05"/>
- <Cell col="6" displaytype="number" style="align:right middle;" text="bind:a06"/>
- <Cell col="7" displaytype="number" style="align:right middle;" text="bind:a07"/>
- <Cell col="8" displaytype="number" style="align:right middle;" text="bind:a08"/>
- <Cell col="9" displaytype="number" style="align:right middle;" text="bind:a09"/>
- <Cell col="10" displaytype="number" style="align:right middle;" text="bind:a10"/>
- <Cell col="11" displaytype="number" style="align:right middle;" text="bind:a11"/>
- <Cell col="12" displaytype="number" style="align:right middle;" text="bind:a12"/>
- <Cell col="13" displaytype="number" style="align:right middle;" text="bind:a13"/>
- <Cell col="14" displaytype="number" style="align:right middle;" text="bind:a14"/>
- <Cell col="15" displaytype="number" style="align:right middle;" text="bind:a15"/>
- <Cell col="16" displaytype="number" style="align:right middle;" text="bind:a16"/>
- <Cell col="17" displaytype="number" style="align:right middle;" text="bind:a17"/>
- <Cell col="18" displaytype="number" style="align:right middle;" text="bind:a18"/>
- <Cell col="19" displaytype="number" style="align:right middle;" text="bind:a19"/>
- <Cell col="20" displaytype="number" style="align:right middle;" text="bind:a20"/>
- <Cell col="21" displaytype="number" style="align:right middle;" text="bind:a21"/>
- <Cell col="22" displaytype="number" style="align:right middle;" text="bind:a22"/>
- <Cell col="23" displaytype="number" style="align:right middle;" text="bind:a23"/>
- <Cell col="24" displaytype="number" style="align:right middle;" text="bind:a24"/>
- <Cell col="25" displaytype="number" style="align:right middle;" text="bind:a25"/>
- <Cell col="26" displaytype="number" style="align:right middle;" text="bind:a26"/>
- <Cell col="27" displaytype="number" style="align:right middle;" text="bind:a27"/>
- <Cell col="28" displaytype="number" style="align:right middle;" text="bind:a28"/>
- <Cell col="29" displaytype="number" style="align:right middle;" text="bind:a29"/>
- <Cell col="30" displaytype="number" style="align:right middle;" text="bind:a30"/>
- <Cell col="31" displaytype="number" style="align:right middle;" text="bind:a31"/>
- <Cell col="32" displaytype="number" style="align:right middle;" text="bind:ahap"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case1" text="월별">
- <Layouts>
- <Layout>
- <Static id="caption1" class="tit_2" position="absolute 0 0 123 20" anchor="default" text="월별 수혈환자수" style="align:left top;" positiontype="position"/>
- <Grid id="grd_month" position="absolute 0 20 1256 701" anchor="all" autofittype="col" positiontype="position" binddataset="ds_grid_grd_month">
- <Formats>
- <Format id="default">
- <Columns>
- <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"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="진료과"/>
- <Cell col="1" text="1월"/>
- <Cell col="2" text="2월"/>
- <Cell col="3" text="3월"/>
- <Cell col="4" text="4월"/>
- <Cell col="5" text="5월"/>
- <Cell col="6" text="6월"/>
- <Cell col="7" text="7월"/>
- <Cell col="8" text="8월"/>
- <Cell col="9" text="9월"/>
- <Cell col="10" text="10월"/>
- <Cell col="11" text="11월"/>
- <Cell col="12" text="12월"/>
- <Cell col="13" text="Total"/>
- </Band>
- <Band id="body">
- <Cell style="align:center middle;" text="bind:orddept"/>
- <Cell col="1" displaytype="number" style="align:right middle;" text="bind:a01"/>
- <Cell col="2" displaytype="number" style="align:right middle;" text="bind:a02"/>
- <Cell col="3" displaytype="number" style="align:right middle;" text="bind:a03"/>
- <Cell col="4" displaytype="number" style="align:right middle;" text="bind:a04"/>
- <Cell col="5" displaytype="number" style="align:right middle;" text="bind:a05"/>
- <Cell col="6" displaytype="number" style="align:right middle;" text="bind:a06"/>
- <Cell col="7" displaytype="number" style="align:right middle;" text="bind:a07"/>
- <Cell col="8" displaytype="number" style="align:right middle;" text="bind:a08"/>
- <Cell col="9" displaytype="number" style="align:right middle;" text="bind:a09"/>
- <Cell col="10" displaytype="number" style="align:right middle;" text="bind:a10"/>
- <Cell col="11" displaytype="number" style="align:right middle;" text="bind:a11"/>
- <Cell col="12" displaytype="number" style="align:right middle;" text="bind:a12"/>
- <Cell col="13" displaytype="number" style="align:right middle;" text="bind:ahap"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case2" text="분기별">
- <Layouts>
- <Layout>
- <Static id="caption2" class="tit_2" position="absolute 0 0 131 20" anchor="default" text="분기별 수혈환자수" style="align:left top;" positiontype="position"/>
- <Grid id="grd_quarter" position="absolute 0 20 1256 701" anchor="all" autofittype="col" positiontype="position" binddataset="ds_grid_grd_quarter">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="120"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="진료과"/>
- <Cell col="1" text="1분기"/>
- <Cell col="2" text="2분기"/>
- <Cell col="3" text="3분기"/>
- <Cell col="4" text="4분기"/>
- <Cell col="5" text="Total"/>
- </Band>
- <Band id="body">
- <Cell style="align:center middle;" text="bind:orddept"/>
- <Cell col="1" displaytype="number" style="align:right middle;" text="bind:a01"/>
- <Cell col="2" displaytype="number" style="align:right middle;" text="bind:a02"/>
- <Cell col="3" displaytype="number" style="align:right middle;" text="bind:a03"/>
- <Cell col="4" displaytype="number" style="align:right middle;" text="bind:a04"/>
- <Cell col="5" displaytype="number" style="align:right middle;" text="bind:ahap"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case3" text="연별">
- <Layouts>
- <Layout>
- <Static id="caption3" class="tit_2" position="absolute 0 0 131 20" anchor="default" text="연별 수혈환자수" style="align:left top;" positiontype="position"/>
- <Grid id="grd_year" position="absolute 0 20 1256 701" anchor="all" autofittype="none" positiontype="position" binddataset="ds_grid_grd_year">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="진료과"/>
- <Cell col="1"/>
- <Cell col="2"/>
- <Cell col="3"/>
- <Cell col="4"/>
- <Cell col="5"/>
- <Cell col="6"/>
- <Cell col="7"/>
- <Cell col="8"/>
- <Cell col="9"/>
- <Cell col="10"/>
- <Cell col="11" text="Total"/>
- </Band>
- <Band id="body">
- <Cell style="align:center middle;" text="bind:orddept"/>
- <Cell col="1" displaytype="number" style="align:right middle;" text="bind:a01"/>
- <Cell col="2" displaytype="number" style="align:right middle;" text="bind:a02"/>
- <Cell col="3" displaytype="number" style="align:right middle;" text="bind:a03"/>
- <Cell col="4" displaytype="number" style="align:right middle;" text="bind:a04"/>
- <Cell col="5" displaytype="number" style="align:right middle;" text="bind:a05"/>
- <Cell col="6" displaytype="number" style="align:right middle;" text="bind:a06"/>
- <Cell col="7" displaytype="number" style="align:right middle;" text="bind:a07"/>
- <Cell col="8" displaytype="number" style="align:right middle;" text="bind:a08"/>
- <Cell col="9" displaytype="number" style="align:right middle;" text="bind:a09"/>
- <Cell col="10" displaytype="number" style="align:right middle;" text="bind:a10"/>
- <Cell col="11" displaytype="number" style="align:right middle;" text="bind:ahap"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Button id="btn_excel" class="btn7" position="absolute 1203 49 1256 69" anchor="top right" text="엑셀" onlbuttonup="btn_excel_onlbuttonup" positiontype="position"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_print" taborder="1" text="출력" onlbuttonup="btn_print_onlbuttonup" class="btn6" position="absolute 1128 0 1184 20" anchor="top right"/>
- <Button id="btn_reset" taborder="2" text="초기화" onlbuttonup="btn_reset_onlbuttonup" class="btn4" position="absolute 1187 0 1256 20" anchor="top right"/>
- <Static id="caption6" text="수혈환자수" class="tit_1" position="absolute 0 0 150 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_days" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rsltregst_onrowposchanged">
- <ColumnInfo>
- <column id="orddept" type="STRING" size="256"/>
- <column id="a01" type="STRING" size="256"/>
- <column id="a02" type="STRING" size="256"/>
- <column id="a03" type="STRING" size="256"/>
- <column id="a04" type="STRING" size="256"/>
- <column id="a05" type="STRING" size="256"/>
- <column id="a06" type="STRING" size="256"/>
- <column id="a07" type="STRING" size="256"/>
- <column id="a08" type="STRING" size="256"/>
- <column id="a09" type="STRING" size="256"/>
- <column id="a10" type="STRING" size="256"/>
- <column id="a11" type="STRING" size="256"/>
- <column id="a12" type="STRING" size="256"/>
- <column id="a13" type="STRING" size="256"/>
- <column id="a14" type="STRING" size="256"/>
- <column id="a15" type="STRING" size="256"/>
- <column id="a16" type="STRING" size="256"/>
- <column id="a17" type="STRING" size="256"/>
- <column id="a18" type="STRING" size="256"/>
- <column id="a19" type="STRING" size="256"/>
- <column id="a20" type="STRING" size="256"/>
- <column id="a21" type="STRING" size="256"/>
- <column id="a22" type="STRING" size="256"/>
- <column id="a23" type="STRING" size="256"/>
- <column id="a24" type="STRING" size="256"/>
- <column id="a25" type="STRING" size="256"/>
- <column id="a26" type="STRING" size="256"/>
- <column id="a27" type="STRING" size="256"/>
- <column id="a28" type="STRING" size="256"/>
- <column id="a29" type="STRING" size="256"/>
- <column id="a30" type="STRING" size="256"/>
- <column id="a31" type="STRING" size="256"/>
- <column id="ahap" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_month" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rsltregst_onrowposchanged">
- <ColumnInfo>
- <column id="orddept" type="STRING" size="256"/>
- <column id="a01" type="STRING" size="256"/>
- <column id="a02" type="STRING" size="256"/>
- <column id="a03" type="STRING" size="256"/>
- <column id="a04" type="STRING" size="256"/>
- <column id="a05" type="STRING" size="256"/>
- <column id="a06" type="STRING" size="256"/>
- <column id="a07" type="STRING" size="256"/>
- <column id="a08" type="STRING" size="256"/>
- <column id="a09" type="STRING" size="256"/>
- <column id="a10" type="STRING" size="256"/>
- <column id="a11" type="STRING" size="256"/>
- <column id="a12" type="STRING" size="256"/>
- <column id="ahap" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_quarter" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rsltregst_onrowposchanged">
- <ColumnInfo>
- <column id="orddept" type="STRING" size="256"/>
- <column id="a01" type="STRING" size="256"/>
- <column id="a02" type="STRING" size="256"/>
- <column id="a03" type="STRING" size="256"/>
- <column id="a04" type="STRING" size="256"/>
- <column id="ahap" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_year" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rsltregst_onrowposchanged">
- <ColumnInfo>
- <column id="orddept" type="STRING" size="256"/>
- <column id="a01" type="STRING" size="256"/>
- <column id="a02" type="STRING" size="256"/>
- <column id="a03" type="STRING" size="256"/>
- <column id="a04" type="STRING" size="256"/>
- <column id="a05" type="STRING" size="256"/>
- <column id="a06" type="STRING" size="256"/>
- <column id="a07" type="STRING" size="256"/>
- <column id="a08" type="STRING" size="256"/>
- <column id="a09" type="STRING" size="256"/>
- <column id="a10" type="STRING" size="256"/>
- <column id="ahap" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cond_gbn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">전체</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">입원환자</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">외래환자</Col>
- <Col id="value">3</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_data_monthPrint" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rsltregst_onrowposchanged">
- <ColumnInfo>
- <column id="orddept" type="STRING" size="256"/>
- <column id="a01" type="STRING" size="256"/>
- <column id="a02" type="STRING" size="256"/>
- <column id="a03" type="STRING" size="256"/>
- <column id="a04" type="STRING" size="256"/>
- <column id="a05" type="STRING" size="256"/>
- <column id="a06" type="STRING" size="256"/>
- <column id="a07" type="STRING" size="256"/>
- <column id="a08" type="STRING" size="256"/>
- <column id="a09" type="STRING" size="256"/>
- <column id="a10" type="STRING" size="256"/>
- <column id="a11" type="STRING" size="256"/>
- <column id="a12" type="STRING" size="256"/>
- <column id="bhap" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_data_quarterPrint" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rsltregst_onrowposchanged">
- <ColumnInfo>
- <column id="orddept" type="STRING" size="256"/>
- <column id="b01" type="STRING" size="256"/>
- <column id="b02" type="STRING" size="256"/>
- <column id="b03" type="STRING" size="256"/>
- <column id="b04" type="STRING" size="256"/>
- <column id="bhap" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_data_yearPrint" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rsltregst_onrowposchanged">
- <ColumnInfo>
- <column id="orddept" type="STRING" size="256"/>
- <column id="c01" type="STRING" size="256"/>
- <column id="c02" type="STRING" size="256"/>
- <column id="c03" type="STRING" size="256"/>
- <column id="c04" type="STRING" size="256"/>
- <column id="c05" type="STRING" size="256"/>
- <column id="c06" type="STRING" size="256"/>
- <column id="c07" type="STRING" size="256"/>
- <column id="c08" type="STRING" size="256"/>
- <column id="c09" type="STRING" size="256"/>
- <column id="c10" type="STRING" size="256"/>
- <column id="bhap" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "lis_commonxp::LLZ001.xjs";
- include "lis_commonxp::LZZ001.xjs";
- function model1_oninit(obj:Form, e:InitEventInfo)
- {
- //폼 초기화 함수
- frmf_initForm(obj);
- lf_setInit();
- }
- function lf_setInit() {
-
- var curDate = utlf_getYear()+utlf_getMonth();
- group3.group1.cp_workfromdd.value = curDate;
- group3.group1.cp_worktodd.visible = curDate;
- group3.group1.cmb_rtnabnflag.value = "1"; // 1=전체, 2= 입원, 3=외래
- group3.switch1.tabindex = 1; // 0=일별 1=월별 2=분기별 3=연별
- group3.group1.caption9.visible = false;
- group3.group1.cp_worktodd.visible = false;
- ds_grid_grd_days.clearData();
- ds_grid_grd_month.clearData();
- ds_grid_grd_quarter.clearData();
- ds_grid_grd_year.clearData();
- }
- function lf_getTransPidCnt() {
- var fromdd = group3.group1.cp_workfromdd.getData();
- var todd = group3.group1.cp_worktodd.getData();
- var gbn = group3.group1.cmb_rtnabnflag.value; // 1=전체, 2= 입원, 3=외래
- var flag = group3.switch1.tabindex; // 0=일별, 1=월별, 2=분기별, 3=연별
-
- var fromYr = toNumber(fromdd.substr(0, 4));
- var toYr = toNumber(todd.substr(0, 4));
- var diffYr = 0; // 년수 차이
-
- // 일별
- if(group3.switch1.tabindex == 0) {
-
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "flag", val:flag }
- , {col: "fromdd", val:fromdd }
- , {col: "todd", val:todd }
- , {col: "gbn", val:gbn }
- ]);
- var oParam = {};
- oParam.id = "TRLBS00301";
- oParam.service = "statsmngtapp.BloodBankStatsRefMngt";
- oParam.method = "reqGetTransPidCnt1";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_days=getTransPidCnt1";
- oParam.async = false;
- oParam.callback = "cbf_SMLBS00300";
- tranf_submit(oParam);
-
- // 월별
- }else if(group3.switch1.tabindex == 1) {
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "flag", val:flag }
- , {col: "fromdd", val:fromdd }
- , {col: "todd", val:todd }
- , {col: "gbn", val:gbn }
- ]);
- var oParam = {};
- oParam.id = "TRLBS00301";
- oParam.service = "statsmngtapp.BloodBankStatsRefMngt";
- oParam.method = "reqGetTransPidCnt1";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_month=getTransPidCnt1";
- oParam.async = false;
- oParam.callback = "cbf_SMLBS00300";
- tranf_submit(oParam);
- // 분기별
- }else if(group3.switch1.tabindex == 2) {
-
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "flag", val:flag }
- , {col: "fromdd", val:fromdd }
- , {col: "todd", val:todd }
- , {col: "gbn", val:gbn }
- ]);
-
- var oParam = {};
- oParam.id = "TRLBS00302";
- oParam.service = "statsmngtapp.BloodBankStatsRefMngt";
- oParam.method = "reqGetTransPidCnt2";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_quarter=getTransPidCnt2";
- oParam.async = false;
- oParam.callback = "cbf_SMLBS00300";
- tranf_submit(oParam);
-
- // 연별
- }else if(group3.switch1.tabindex == 3) {
-
- group3.switch1.case3.grd_year.binddataset = "";
- lf_yearCaption();
-
- diffYr = toYr - fromYr;
- if(diffYr > 9){
- sysf_messageBox("10년이내로 조회하세요.","E");
- return;
- }
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "flag", val:flag }
- , {col: "fromdd", val:fromdd }
- , {col: "todd", val:todd }
- , {col: "gbn", val:gbn }
- ]);
- var oParam = {};
- oParam.id = "TRLBS00303";
- oParam.service = "statsmngtapp.BloodBankStatsRefMngt";
- oParam.method = "reqGetTransPidCnt3";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_year=getTransPidCnt3";
- oParam.async = false;
- oParam.callback = "cbf_SMLBS00300";
- tranf_submit(oParam);
- }
- }
- // 엑셀 저장
- function lf_saveExcel() {
-
- // 일별
- if(group3.switch1.tabindex == 0) {
- grdf_exportExcel(group3.switch1.case0.grd_days, lf_lisGetTitle(this), "sheet1", false);
- // 월별
- }else if(group3.switch1.tabindex == 1) {
- grdf_exportExcel(group3.switch1.case1.grd_month, lf_lisGetTitle(this), "sheet1", false);
- // 분기별
- }else if(group3.switch1.tabindex == 2) {
- grdf_exportExcel(group3.switch1.case2.grd_quarter, lf_lisGetTitle(this), "sheet1", false);
- // 연별
- }else if(group3.switch1.tabindex == 3) {
- grdf_exportExcel(group3.switch1.case3.grd_year, lf_lisGetTitle(this), "sheet1", false);
- }
- }
- // 출력
- function lf_exePrint(){
-
- // 월별
- if(group3.switch1.tabindex == 1) {
-
- ds_data_monthPrint.clearData();
- var addRw = 0;
- for(var i=0; i<ds_grid_grd_month.rowcount; i++){
- addRw = ds_data_monthPrint.addRow();
- ds_data_monthPrint.setColumn(addRw, "orddept", ds_grid_grd_month.getColumn(i, "orddept"));
- ds_data_monthPrint.setColumn(addRw, "a01", ds_grid_grd_month.getColumn(i, "a01"));
- ds_data_monthPrint.setColumn(addRw, "a02", ds_grid_grd_month.getColumn(i, "a02"));
- ds_data_monthPrint.setColumn(addRw, "a03", ds_grid_grd_month.getColumn(i, "a03"));
- ds_data_monthPrint.setColumn(addRw, "a04", ds_grid_grd_month.getColumn(i, "a04"));
- ds_data_monthPrint.setColumn(addRw, "a05", ds_grid_grd_month.getColumn(i, "a05"));
- ds_data_monthPrint.setColumn(addRw, "a06", ds_grid_grd_month.getColumn(i, "a06"));
- ds_data_monthPrint.setColumn(addRw, "a07", ds_grid_grd_month.getColumn(i, "a07"));
- ds_data_monthPrint.setColumn(addRw, "a08", ds_grid_grd_month.getColumn(i, "a08"));
- ds_data_monthPrint.setColumn(addRw, "a09", ds_grid_grd_month.getColumn(i, "a09"));
- ds_data_monthPrint.setColumn(addRw, "a10", ds_grid_grd_month.getColumn(i, "a10"));
- ds_data_monthPrint.setColumn(addRw, "a11", ds_grid_grd_month.getColumn(i, "a11"));
- ds_data_monthPrint.setColumn(addRw, "a12", ds_grid_grd_month.getColumn(i, "a12"));
- ds_data_monthPrint.setColumn(addRw, "bhap", ds_grid_grd_month.getColumn(i, "ahap"));
- }
-
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_makeNodeToDOM(objDOM, "/root/hidden/report");
- rptf_setValueToDOM(objDOM, "/root/hidden/report/fromdd", group3.group1.cp_workfromdd.getData());
- rptf_setValueToDOM(objDOM, "/root/hidden/report/todd", group3.group1.cp_worktodd.getData());
- rptf_setNodeListToDOM(objDOM, "/root/hidden/report/month", ds_data_monthPrint);
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0";
- rptf_exeReportPreview30(["RPLBS00300"],[objParam], option);
-
- // 분기별
- }else if(group3.switch1.tabindex == 2) {
-
- ds_data_quarterPrint.clearData();
- var addRw = 0;
- for(var i=0; i<ds_grid_grd_quarter.rowcount; i++){
- addRw = ds_data_quarterPrint.addRow();
- ds_data_quarterPrint.setColumn(addRw, "orddept", ds_grid_grd_quarter.getColumn(i, "orddept"));
- ds_data_quarterPrint.setColumn(addRw, "b01", ds_grid_grd_quarter.getColumn(i, "a01"));
- ds_data_quarterPrint.setColumn(addRw, "b02", ds_grid_grd_quarter.getColumn(i, "a02"));
- ds_data_quarterPrint.setColumn(addRw, "b03", ds_grid_grd_quarter.getColumn(i, "a03"));
- ds_data_quarterPrint.setColumn(addRw, "b04", ds_grid_grd_quarter.getColumn(i, "a04"));
- ds_data_quarterPrint.setColumn(addRw, "bhap", ds_grid_grd_quarter.getColumn(i, "ahap"));
- }
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_makeNodeToDOM(objDOM, "/root/hidden/report");
- rptf_setValueToDOM(objDOM, "/root/hidden/report/fromdd", group3.group1.cp_workfromdd.getData());
- rptf_setValueToDOM(objDOM, "/root/hidden/report/todd", group3.group1.cp_worktodd.getData());
- rptf_setNodeListToDOM(objDOM, "/root/hidden/report/quarter", ds_data_quarterPrint);
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0";
- rptf_exeReportPreview30(["RPLBS00400"],[objParam], option);
-
- // 연별
- }else if(group3.switch1.tabindex == 3) {
-
- ds_data_yearPrint.clearData();
- var addRw = 0;
- for(var i=0; i<ds_grid_grd_year.rowcount; i++){
- addRw = ds_data_yearPrint.addRow();
- ds_data_yearPrint.setColumn(addRw, "orddept", ds_grid_grd_year.getColumn(i, "orddept"));
- ds_data_yearPrint.setColumn(addRw, "c01", ds_grid_grd_year.getColumn(i, "a01"));
- ds_data_yearPrint.setColumn(addRw, "c02", ds_grid_grd_year.getColumn(i, "a02"));
- ds_data_yearPrint.setColumn(addRw, "c03", ds_grid_grd_year.getColumn(i, "a03"));
- ds_data_yearPrint.setColumn(addRw, "c04", ds_grid_grd_year.getColumn(i, "a04"));
- ds_data_yearPrint.setColumn(addRw, "c05", ds_grid_grd_year.getColumn(i, "a05"));
- ds_data_yearPrint.setColumn(addRw, "c06", ds_grid_grd_year.getColumn(i, "a06"));
- ds_data_yearPrint.setColumn(addRw, "c07", ds_grid_grd_year.getColumn(i, "a07"));
- ds_data_yearPrint.setColumn(addRw, "c08", ds_grid_grd_year.getColumn(i, "a08"));
- ds_data_yearPrint.setColumn(addRw, "c09", ds_grid_grd_year.getColumn(i, "a09"));
- ds_data_yearPrint.setColumn(addRw, "c10", ds_grid_grd_year.getColumn(i, "a10"));
- ds_data_yearPrint.setColumn(addRw, "bhap", ds_grid_grd_year.getColumn(i, "ahap"));
- }
-
- var sdd = group3.group1.cp_workfromdd.getData();
- var sdd = toNumber(sdd.substr(0, 4));
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_makeNodeToDOM(objDOM, "/root/hidden/report");
- rptf_setValueToDOM(objDOM, "/root/hidden/report/fromdd", group3.group1.cp_workfromdd.getData());
- rptf_setValueToDOM(objDOM, "/root/hidden/report/todd", group3.group1.cp_worktodd.getData());
- rptf_setValueToDOM(objDOM, "/root/hidden/report/title/title1", sdd);
- rptf_setValueToDOM(objDOM, "/root/hidden/report/title/title2", sdd+1);
- rptf_setValueToDOM(objDOM, "/root/hidden/report/title/title3", sdd+2);
- rptf_setValueToDOM(objDOM, "/root/hidden/report/title/title4", sdd+3);
- rptf_setValueToDOM(objDOM, "/root/hidden/report/title/title5", sdd+4);
- rptf_setValueToDOM(objDOM, "/root/hidden/report/title/title6", sdd+5);
- rptf_setValueToDOM(objDOM, "/root/hidden/report/title/title7", sdd+6);
- rptf_setValueToDOM(objDOM, "/root/hidden/report/title/title8", sdd+7);
- rptf_setValueToDOM(objDOM, "/root/hidden/report/title/title9", sdd+8);
- rptf_setValueToDOM(objDOM, "/root/hidden/report/title/title10", sdd+9);
- rptf_setNodeListToDOM(objDOM, "/root/hidden/report/year", ds_data_yearPrint);
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0";
- rptf_exeReportPreview30(["RPLBS00500"],[objParam], option);
- }
- }
- // 연별 캡션 변경
- function lf_yearCaption() {
- for(var i=1; i<group3.switch1.case3.grd_year.getFormatColCount(); i++){
- group3.switch1.case3.grd_year.setFormatColProperty(i, "size", 0);
- }
- var fromdd = group3.group1.cp_workfromdd.getData();
- var todd = group3.group1.cp_worktodd.getData();
- var fromyy = toNumber(fromdd.substr(0, 4));
- var toyy = toNumber(todd.substr(0, 4));
- var newCap = "진료과";
- var cnt = 0;
- for(i=fromyy; i<=toyy; i++){
- newCap += "^" + i;
- cnt ++;
- }
-
- var upHeadArr = newCap.split("^");
- var tempCnt = 1;
- for(var z=1; z<=cnt; z++) {
- group3.switch1.case3.grd_year.setFormatColProperty(z, "size", 100);
- if(!utlf_isNull(upHeadArr[tempCnt])) {
- group3.switch1.case3.grd_year.setCellProperty("Head", z, "text", ""+upHeadArr[tempCnt]);
- tempCnt = tempCnt + 1;
- }
- }
- }
- // callback 함수
- function cbf_SMLBS00300(strSvcID, nErrorCode, strErrorMag) {
-
- if(nErrorCode != 0) {
- sysf_messageBox("ID: "+ strSvcID + " Error: " + strErrorMag, "E009", "");
- }else{
- switch(strSvcID){
-
- case "TRLBS00301":
-
- break;
- case "TRLBS00302":
-
- break;
- case "TRLBS00303":
- group3.switch1.case3.grd_year.binddataset = "ds_grid_grd_year";
- break;
- case "TRLBS00304":
-
- break;
- default:
- break;
- }
- }
- }
- function btn_ref_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_getTransPidCnt();
- }
- function group3_switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
- {
- // 일별
- if(e.postindex == 0){
- group3.group1.caption9.visible = false;
- group3.group1.cp_worktodd.visible = false;
- // 월별
- }else if(e.postindex == 1){
- group3.group1.caption9.visible = false;
- group3.group1.cp_worktodd.visible = false;
-
- // 분기별
- }else if(e.postindex == 2){
- group3.group1.caption9.visible = false;
- group3.group1.cp_worktodd.visible = false;
-
- // 연별
- }else if(e.postindex == 3){
- group3.group1.caption9.visible = true;
- group3.group1.cp_worktodd.visible = true;
- lf_yearCaption(); // 연별캡션 변경
- }
- }
- function btn_excel_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_saveExcel();
- }
- function btn_reset_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_setInit();
- }
- function btn_print_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_exePrint();
- }
- ]]></Script>
- </Form>
- </FDL>
|