123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLLS00100" position="absolute 0 0 1256 805" titletext="채혈 통계" oninit="SMLLS00100_oninit" onload="SMLLS00100_onload">
- <Layouts>
- <Layout>
- <Static id="caption10" class="tit_1" position="absolute 0 0 116 25" anchor="default" positiontype="position" text="채혈 통계"/>
- <Button id="btn_print" class="btn6" visible="false" position="absolute 1200 0 1256 20" anchor="default" positiontype="position" text="출력" onlbuttonup="btn_print_onlbuttonup" onclick="btn_print_onclick"/>
- <Button id="btn_excel" class="btn7" position="absolute 1154 0 1256 20" anchor="top right" positiontype="position" text="EXCEL저장" onclick="btn_excel_onclick" style="align:left middle;"/>
- <Div id="Div00" taborder="47" style="background:white;" text="00" position="absolute 0 52 1256 805" anchor="all">
- <Layouts>
- <Layout>
- <Static id="caption7" text="외래채혈 환자수 달력편" class="tit_2" position="absolute 0 0 184 20" anchor="default"/>
- <Button id="button131" taborder="61" onclick="button131_onclick" onlbuttonup="button131_onlbuttonup" class="icon_pre_year" position="absolute 480 23 496 43" anchor="default"/>
- <Button id="btn_premonth" taborder="62" onclick="btn_premonth_onclick" onlbuttonup="btn_premonth_onlbuttonup" class="icon_pre_month" position="absolute 499 23 515 43" anchor="default"/>
- <Edit id="opt_year" taborder="63" readonly="true" class="calendar_output" position="absolute 532 20 582 40" anchor="default"/>
- <Static id="caption101" text="년" class="calendar_output" position="absolute 582 20 602 40" anchor="default"/>
- <Edit id="opt_month" taborder="64" readonly="true" class="calendar_output" position="absolute 607 20 647 40" anchor="default"/>
- <Static id="caption102" text="월" class="calendar_output" position="absolute 647 20 667 40" anchor="default"/>
- <Button id="button134" taborder="65" onclick="button134_onclick" onlbuttonup="button134_onlbuttonup" class="icon_next_month" position="absolute 676 23 692 43" anchor="default"/>
- <Button id="button132" taborder="66" onclick="button132_onclick" onlbuttonup="button132_onlbuttonup" class="icon_next_year" position="absolute 695 23 711 43" anchor="default"/>
- <Button id="btn_cal" taborder="67" text="조회" onclick="btn_cal_onclick" onlbuttonup="btn_cal_onlbuttonup" class="btn1" visible="false" position="absolute 1200 0 1256 20" anchor="top right"/>
- <Grid id="grd_calendar" class="gridcalendar2" taborder="68" binddataset="ds_grid_grd_calendar" useinputpanel="false" autofittype="col" position="absolute 0 43 1256 746" anchor="all" onclick="grd_calendar_onclick" selecttype="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="170"/>
- <Column size="170"/>
- <Column size="170"/>
- <Column size="170"/>
- <Column size="170"/>
- <Column size="170"/>
- <Column size="170"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="일"/>
- <Cell col="1" text="월"/>
- <Cell col="2" text="화"/>
- <Cell col="3" text="수"/>
- <Cell col="4" text="목"/>
- <Cell col="5" text="금"/>
- <Cell col="6" text="토"/>
- </Band>
- <Band id="body">
- <Cell rowspan="2" taborder="undefined">
- <Cell style="color:red;color2:red;font:arial,9,bold;" class="color_sun" text="bind:sun"/>
- <Cell row="1" text="bind:sun_cnt"/>
- </Cell>
- <Cell col="1" rowspan="2" taborder="undefined">
- <Cell style="font:arial,9,bold;" text="bind:mon"/>
- <Cell row="1" text="bind:mon_cnt"/>
- </Cell>
- <Cell col="2" rowspan="2" taborder="undefined">
- <Cell style="font:arial,9,bold;" text="bind:tue"/>
- <Cell row="1" text="bind:tue_cnt"/>
- </Cell>
- <Cell col="3" rowspan="2" taborder="undefined">
- <Cell style="font:arial,9,bold;" text="bind:wed"/>
- <Cell row="1" text="bind:wed_cnt"/>
- </Cell>
- <Cell col="4" rowspan="2" taborder="undefined">
- <Cell style="font:arial,9,bold;" text="bind:thu"/>
- <Cell row="1" text="bind:thu_cnt"/>
- </Cell>
- <Cell col="5" rowspan="2" taborder="undefined">
- <Cell style="font:arial,9,bold;" text="bind:fri"/>
- <Cell row="1" text="bind:fri_cnt"/>
- </Cell>
- <Cell col="6" rowspan="2" taborder="undefined">
- <Cell style="color:blue;color2:blue;font:arial,9,bold;" class="color_sat" text="bind:sat"/>
- <Cell row="1" text="bind:sat_cnt"/>
- </Cell>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button111" taborder="69" text="01" class="icon_month" position="absolute 1 725 28 752" style="align:center middle;" anchor="left bottom" onlbuttondown="Div00_button111_onlbuttondown"/>
- <Button id="button112" taborder="70" text="02" class="icon_month" position="absolute 31 725 58 752" anchor="left bottom" onlbuttonup="Div00_button112_onlbuttonup"/>
- <Button id="button113" taborder="71" text="03" class="icon_month" position="absolute 61 725 88 752" anchor="left bottom" onlbuttonup="Div00_button113_onlbuttonup"/>
- <Button id="button114" taborder="72" text="04" class="icon_month" position="absolute 91 725 118 752" anchor="left bottom" onlbuttonup="Div00_button114_onlbuttonup"/>
- <Button id="button115" taborder="73" text="05" class="icon_month" position="absolute 121 725 148 752" anchor="left bottom" onlbuttonup="Div00_button115_onlbuttonup"/>
- <Button id="button116" taborder="74" text="06" class="icon_month" position="absolute 151 725 178 752" anchor="left bottom" onlbuttonup="Div00_button116_onlbuttonup"/>
- <Button id="button117" taborder="75" text="07" class="icon_month" position="absolute 181 725 208 752" anchor="left bottom" onlbuttonup="Div00_button117_onlbuttonup"/>
- <Button id="button118" taborder="76" text="08" class="icon_month" position="absolute 211 725 238 752" anchor="left bottom" onlbuttonup="Div00_button118_onlbuttonup"/>
- <Button id="button119" taborder="77" text="09" class="icon_month" position="absolute 241 725 268 752" anchor="left bottom" onlbuttonup="Div00_button119_onlbuttonup"/>
- <Button id="button110" taborder="78" text="10" class="icon_month" position="absolute 271 725 298 752" anchor="left bottom"/>
- <Button id="button121" taborder="79" text="11" class="icon_month" position="absolute 301 725 328 752" anchor="left bottom" onlbuttonup="Div00_button121_onlbuttonup"/>
- <Button id="button122" taborder="80" text="12" onclick="switch1_case2_group4_button122_onclick" class="icon_month" position="absolute 331 725 358 752" anchor="left bottom" onlbuttonup="Div00_button122_onlbuttonup"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="통계 리스트" class="tit_2" position="absolute 1 128 94 145" visible="true"/>
- <Grid id="grd_stsList_yy" taborder="49" binddataset="ds_main_stsList" useinputpanel="false" position="absolute 0 149 1256 805" anchor="all" style="align:center middle;">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="110"/>
- <Column size="100"/>
- <Column size="60"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="No."/>
- <Cell col="1" text="부서명"/>
- <Cell col="2" text="구분"/>
- <Cell col="3" text="Total"/>
- <Cell col="4" text="expr:lf_column()"/>
- <Cell col="5" text="expr:lf_column()+1"/>
- <Cell col="6" text="expr:lf_column()+2"/>
- <Cell col="7" text="expr:lf_column(3)"/>
- <Cell col="8" text="expr:lf_column(4)"/>
- <Cell col="9" text="expr:lf_column(5)"/>
- <Cell col="10" text="expr:lf_column(6)"/>
- <Cell col="11" text="expr:lf_column(7)"/>
- <Cell col="12" text="expr:lf_column(8)"/>
- <Cell col="13" text="expr:lf_column(9)"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow+1"/>
- <Cell col="1" style="align:left middle;" text="bind:stsnm2"/>
- <Cell col="2" style="align:left middle;" text="bind:stsnm"/>
- <Cell col="3" style="align:right middle;" text="bind:total"/>
- <Cell col="4" style="align:right middle;" text="bind:d01"/>
- <Cell col="5" style="align:right middle;" text="bind:d02"/>
- <Cell col="6" style="align:right middle;" text="bind:d03"/>
- <Cell col="7" style="align:right middle;" text="bind:d04"/>
- <Cell col="8" style="align:right middle;" text="bind:d05"/>
- <Cell col="9" style="align:right middle;" text="bind:d06"/>
- <Cell col="10" style="align:right middle;" text="bind:d07"/>
- <Cell col="11" style="align:right middle;" text="bind:d08"/>
- <Cell col="12" style="align:right middle;" text="bind:d09"/>
- <Cell col="13" style="align:right middle;" text="bind:d10"/>
- <Cell col="14"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_stsList_mm" taborder="50" binddataset="ds_main_stsList" useinputpanel="false" autofittype="col" position="absolute 0 149 1256 805" anchor="all" style="align:center middle;">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="110"/>
- <Column size="100"/>
- <Column size="60"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="75"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="No."/>
- <Cell col="1" text="부서명"/>
- <Cell col="2" text="구분"/>
- <Cell col="3" text="Total"/>
- <Cell col="4" text="1"/>
- <Cell col="5" text="2"/>
- <Cell col="6" text="3"/>
- <Cell col="7" text="4"/>
- <Cell col="8" text="5"/>
- <Cell col="9" text="6"/>
- <Cell col="10" text="7"/>
- <Cell col="11" text="8"/>
- <Cell col="12" text="9"/>
- <Cell col="13" text="10"/>
- <Cell col="14" text="11"/>
- <Cell col="15" text="12"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow+1"/>
- <Cell col="1" style="align:left middle;" text="bind:stsnm2"/>
- <Cell col="2" style="align:left middle;" text="bind:stsnm"/>
- <Cell col="3" style="align:right middle;" text="bind:total"/>
- <Cell col="4" style="align:right middle;" text="bind:d01"/>
- <Cell col="5" style="align:right middle;" text="bind:d02"/>
- <Cell col="6" style="align:right middle;" text="bind:d03"/>
- <Cell col="7" style="align:right middle;" text="bind:d04"/>
- <Cell col="8" style="align:right middle;" text="bind:d05"/>
- <Cell col="9" style="align:right middle;" text="bind:d06"/>
- <Cell col="10" style="align:right middle;" text="bind:d07"/>
- <Cell col="11" style="align:right middle;" text="bind:d08"/>
- <Cell col="12" style="align:right middle;" text="bind:d09"/>
- <Cell col="13" style="align:right middle;" text="bind:d10"/>
- <Cell col="14" style="align:right middle;" text="bind:d11"/>
- <Cell col="15" style="align:right middle;" text="bind:d12"/>
- <Cell col="16"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_stsList_dd" taborder="51" binddataset="ds_main_stsList" useinputpanel="false" position="absolute 0 149 1256 805" anchor="all" style="align:center middle;" visible="true" cellsizingtype="both">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="110"/>
- <Column size="100"/>
- <Column size="60"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="부서명"/>
- <Cell col="2" text="구분"/>
- <Cell col="3" text="Total"/>
- <Cell col="4" text="1"/>
- <Cell col="5" text="2"/>
- <Cell col="6" text="3"/>
- <Cell col="7" text="4"/>
- <Cell col="8" text="5"/>
- <Cell col="9" text="6"/>
- <Cell col="10" text="7"/>
- <Cell col="11" text="8"/>
- <Cell col="12" text="9"/>
- <Cell col="13" text="10"/>
- <Cell col="14" text="11"/>
- <Cell col="15" text="12"/>
- <Cell col="16" text="13"/>
- <Cell col="17" text="14"/>
- <Cell col="18" text="15"/>
- <Cell col="19" text="16"/>
- <Cell col="20" text="17"/>
- <Cell col="21" text="18"/>
- <Cell col="22" text="19"/>
- <Cell col="23" text="20"/>
- <Cell col="24" text="21"/>
- <Cell col="25" text="22"/>
- <Cell col="26" text="23"/>
- <Cell col="27" text="24"/>
- <Cell col="28" text="25"/>
- <Cell col="29" text="26"/>
- <Cell col="30" text="27"/>
- <Cell col="31" text="28"/>
- <Cell col="32" text="29"/>
- <Cell col="33" text="30"/>
- <Cell col="34" text="31"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow+1"/>
- <Cell col="1" style="align:left middle;" text="bind:stsnm2"/>
- <Cell col="2" style="align:left middle;" text="bind:stsnm"/>
- <Cell col="3" style="align:right middle;" text="bind:total"/>
- <Cell col="4" style="align:right middle;" text="bind:d01"/>
- <Cell col="5" style="align:right middle;" text="bind:d02"/>
- <Cell col="6" style="align:right middle;" text="bind:d03"/>
- <Cell col="7" style="align:right middle;" text="bind:d04"/>
- <Cell col="8" style="align:right middle;" text="bind:d05"/>
- <Cell col="9" style="align:right middle;" text="bind:d06"/>
- <Cell col="10" style="align:right middle;" text="bind:d07"/>
- <Cell col="11" style="align:right middle;" text="bind:d08"/>
- <Cell col="12" style="align:right middle;" text="bind:d09"/>
- <Cell col="13" style="align:right middle;" text="bind:d10"/>
- <Cell col="14" style="align:right middle;" text="bind:d11"/>
- <Cell col="15" style="align:right middle;" text="bind:d12"/>
- <Cell col="16" style="align:right middle;" text="bind:d13"/>
- <Cell col="17" style="align:right middle;" text="bind:d14"/>
- <Cell col="18" style="align:right middle;" text="bind:d15"/>
- <Cell col="19" style="align:right middle;" text="bind:d16"/>
- <Cell col="20" style="align:right middle;" text="bind:d17"/>
- <Cell col="21" style="align:right middle;" text="bind:d18"/>
- <Cell col="22" style="align:right middle;" text="bind:d19"/>
- <Cell col="23" style="align:right middle;" text="bind:d20"/>
- <Cell col="24" style="align:right middle;" text="bind:d21"/>
- <Cell col="25" style="align:right middle;" text="bind:d22"/>
- <Cell col="26" style="align:right middle;" text="bind:d23"/>
- <Cell col="27" style="align:right middle;" text="bind:d24"/>
- <Cell col="28" style="align:right middle;" text="bind:d25"/>
- <Cell col="29" style="align:right middle;" text="bind:d26"/>
- <Cell col="30" style="align:right middle;" text="bind:d27"/>
- <Cell col="31" style="align:right middle;" text="bind:d28"/>
- <Cell col="32" style="align:right middle;" text="bind:d29"/>
- <Cell col="33" style="align:right middle;" text="bind:d30"/>
- <Cell col="34" style="align:right middle;" text="bind:d31"/>
- <Cell col="35"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Tab id="switch1" taborder="52" onchanged="switch1_onchanged" tabindex="0" position="absolute 0 28 1256 56" visible="true" anchor="left top right">
- <Tabpages>
- <Tabpage id="case1" text="채혈">
- <Layouts>
- <Layout/>
- </Layouts>
- </Tabpage>
- <Tabpage id="case2" text="외래채혈">
- <Layouts>
- <Layout>
- <Div id="group4" taborder="7" onclick="group4_onclick" position="absolute 952 1024 1312 1059"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="tabpage3" text="병동채혈"/>
- <Tabpage id="tabpage4" text="아침채혈">
- <Layouts>
- <Layout/>
- </Layouts>
- </Tabpage>
- <Tabpage id="tabpage5" text="달력편"/>
- </Tabpages>
- </Tab>
- <Div id="grp_sea" anchor="left top right" taborder="53" style="align:center top;" class="div_SA2" position="absolute 0 52 1256 120">
- <Layouts>
- <Layout>
- <Combo id="cbo_2" taborder="61" value="1" text="시행부서별" codecolumn="codecolumn" datacolumn="datacolumn" index="0" position="absolute 82 35 204 55" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">시행부서별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">진료과별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">진료의사별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">채혈자별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">5</Col>
- <Col id="datacolumn">시간대별</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="caption1" text="조회구분" class="search_name" position="absolute 8 10 74 30" anchor="default"/>
- <Static id="caption3" text="통계구분" class="search_name" position="absolute 8 35 70 55" anchor="default"/>
- <Combo id="cbo_3" taborder="52" value="1" text="병동별" codecolumn="codecolumn" datacolumn="datacolumn" index="0" position="absolute 82 35 204 55" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">병동별</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="caption2" text="통계구분2" class="search_name" position="absolute 286 35 357 55" anchor="default"/>
- <Static id="caption4" text="조회기간" class="search_name" position="absolute 286 10 361 30" anchor="default"/>
- <Static id="caption9" text="~" class="search_no_b" visible="false" position="absolute 463 10 479 30" style="align:center middle;" anchor="default"/>
- <Calendar id="ipt_stsfromdd" taborder="53" dateformat="yyyy-MM" editformat="yyyy-MM" onchanged="grp_sea_ipt_stsfromdd_onchanged" class="input_search" position="absolute 368 10 463 30" mask="yyyy-mm" anchor="default"/>
- <Calendar id="ipt_ststodd" taborder="54" dateformat="yyyy-MM" editformat="yyyy-MM" onchanged="grp_sea_ipt_ststodd_onchanged" class="input_search" visible="false" position="absolute 479 10 574 30" mask="yyyy" anchor="default"/>
- <Radio id="radio2" taborder="55" columncount="3" rowcount="0" index="0" codecolumn="codecolumn" datacolumn="datacolumn" value="1" position="absolute 368 35 570 55" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">바코드</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">환자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">처방건수</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Combo id="cbo_io" taborder="56" codecolumn="codecolumn" datacolumn="datacolumn" index="-1" position="absolute 677 35 787 55" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">- 전 체 -</Col>
- </Row>
- <Row>
- <Col id="codecolumn">I</Col>
- <Col id="datacolumn">입 원</Col>
- </Row>
- <Row>
- <Col id="codecolumn">O</Col>
- <Col id="datacolumn">외 래</Col>
- </Row>
- <Row>
- <Col id="codecolumn">E</Col>
- <Col id="datacolumn">응 급</Col>
- </Row>
- <Row>
- <Col id="codecolumn">S</Col>
- <Col id="datacolumn">건 진</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="caption5" text="입원/외래" class="search_name" position="absolute 598 35 671 55" anchor="default"/>
- <Button id="btn_ref" taborder="57" text="조회" onclick="grp_sea_btn_ref_onclick" class="btn1" position="absolute 1189 10 1245 30" anchor="top right"/>
- <Radio id="radio1" taborder="58" columncount="3" rowcount="0" index="-1" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="grp_sea_radio1_onitemchanged" position="absolute 82 10 274 30" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">일별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">월별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">연별</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Combo id="cbo_bt" taborder="59" codecolumn="codecolumn" datacolumn="datacolumn" index="-1" visible="false" position="absolute 677 10 788 30" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">-</Col>
- <Col id="datacolumn">- 전 체 -</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">Bleeding Time</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">Tuberculin Test</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="caption16" text="채혈 구분" class="search_name" visible="false" position="absolute 598 10 667 30" anchor="default"/>
- <Combo id="cbo_1" taborder="60" value="1" text="시행부서별" codecolumn="codecolumn" datacolumn="datacolumn" index="0" position="absolute 82 35 204 55" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">시행부서별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">진료과별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">진료의사별</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_stsList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="stsnm2" type="STRING"/>
- <Column id="stsnm" type="STRING"/>
- <Column id="total" 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_grid_grd_calendar" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sun" type="STRING"/>
- <Column id="mon" type="STRING"/>
- <Column id="tue" type="STRING"/>
- <Column id="wed" type="STRING"/>
- <Column id="thu" type="STRING"/>
- <Column id="fri" type="STRING"/>
- <Column id="sat" type="STRING"/>
- <Column id="sun_cnt" type="STRING"/>
- <Column id="mon_cnt" type="STRING"/>
- <Column id="tue_cnt" type="STRING"/>
- <Column id="wed_cnt" type="STRING"/>
- <Column id="thu_cnt" type="STRING"/>
- <Column id="fri_cnt" type="STRING"/>
- <Column id="sat_cnt" 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="stsflag" type="STRING" size="256"/>
- <Column id="stsfromdd" type="STRING" size="256"/>
- <Column id="ststodd" type="STRING" size="256"/>
- <Column id="stskind" type="STRING" size="256"/>
- <Column id="stskind2" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="bcollflag" type="STRING" size="256"/>
- <Column id="btbcollflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="stsflag">1</Col>
- <Col id="stskind">1</Col>
- <Col id="stskind2">1</Col>
- <Col id="ioflag">0</Col>
- <Col id="bcollflag">0</Col>
- <Col id="btbcollflag">-</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.radio1" propid="value" datasetid="ds_hidden" columnid="stsflag"/>
- <BindItem id="item1" compid="grp_sea.ipt_stsfromdd" propid="value" datasetid="ds_hidden" columnid="stsfromdd"/>
- <BindItem id="item2" compid="grp_sea.ipt_ststodd" propid="value" datasetid="ds_hidden" columnid="ststodd"/>
- <BindItem id="item3" compid="grp_sea.cbo_bt" propid="value" datasetid="ds_hidden" columnid="btbcollflag"/>
- <BindItem id="item4" compid="grp_sea.cbo_io" propid="value" datasetid="ds_hidden" columnid="ioflag"/>
- <BindItem id="item5" compid="grp_sea.radio2" propid="value" datasetid="ds_hidden" columnid="stskind2"/>
- <BindItem id="item6" compid="grp_sea.cbo_1" propid="value" datasetid="ds_hidden" columnid="stskind"/>
- <BindItem id="item7" compid="grp_sea.cbo_2" propid="value" datasetid="ds_hidden" columnid="stskind"/>
- <BindItem id="item8" compid="grp_sea.cbo_3" propid="value" datasetid="ds_hidden" columnid="stskind"/>
- </Bind>
- <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";
- function SMLLS00100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 화면공통
- }
- function SMLLS00100_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_stsList_dd);
- grdf_initGrid(grd_stsList_mm);
- grdf_initGrid(grd_stsList_yy);
- grdf_initGrid(Div00.grd_calendar);
- fSetInit(); //초기화 함수 호출
- }
- //화면 open시 초기화
- function fSetInit()
- {
- Div00.visible = false;
- var toDay = utlf_getCurrentDate();
-
- //grp_sea.ipt_stsfromdd.value = toDay;
- //grp_sea.ipt_ststodd.value = toDay;
- ds_hidden.setColumn(0, "stsfromdd", toDay);
- ds_hidden.setColumn(0, "ststodd", toDay);
-
- grp_sea.cbo_3.visible = false; //통계구분
- grp_sea.cbo_1.visible = true;
-
- //해당일에 대한 마지막 일자 가져와서 그리드 컬럼 숨기기
- var lastDay = utlf_lastDateNum(toDay) + 4;
-
- for(var i = lastDay; i > ds_main_stsList.colcount-1; i--)
- {
- grd_stsList_dd.setFormatColProperty(i, "size", 0);
- }
-
- grd_stsList_dd.setFormatColProperty("1", "size", 0);
-
- grd_stsList_dd.visible = true;
- grd_stsList_mm.visible = false;
- grd_stsList_yy.visible = false;
- }
-
-
- //조회구분 선택시 통계희망월 포멧 지정
- function fShowHopeddnGridSet()
- {
- ds_main_stsList.clearData();
- ds_hidden.setColumn(0, "stskind2", 1);
- var toDay = utlf_getCurrentDate();
-
- //연별
- if(ds_hidden.getColumn(0, "stsflag") == "3") //if(grp_sea.radio1.value == "3")
- {
- grp_sea.caption9.visible = true;
- grp_sea.ipt_ststodd.visible = true;
- grp_sea.ipt_stsfromdd.dateformat = "yyyy";
- grp_sea.ipt_stsfromdd.editformat = "yyyy";
- grp_sea.ipt_ststodd.dateformat = "yyyy";
- grp_sea.ipt_ststodd.editformat = "yyyy";
-
- ds_hidden.setColumn(0, "stsfromdd", toDay.substring(0, 4));
- ds_hidden.setColumn(0, "ststodd", toDay.substring(0, 4));
- }
- if(ds_hidden.getColumn(0, "stsflag") == "1" || ds_hidden.getColumn(0, "stsflag") == "2")
- {
- // 일별, 월별
- grp_sea.caption9.visible = false; // todd 숨김
- grp_sea.ipt_ststodd.visible = false;
-
- // 일별 그리드
- if(ds_hidden.getColumn(0, "stsflag") == "1")
- {
- toDay = utlf_getCurrentDate();
- grp_sea.ipt_stsfromdd.dateformat = "yyyy-MM";
- grp_sea.ipt_stsfromdd.editformat = "yyyy-MM";
- grp_sea.ipt_ststodd.dateformat = "yyyy-MM";
- grp_sea.ipt_ststodd.editformat = "yyyy-MM";
-
- ds_hidden.setColumn(0, "stsfromdd", toDay.substring(0, 6));
- ds_hidden.setColumn(0, "ststodd", toDay.substring(0, 6));
- }
- else if(ds_hidden.getColumn(0, "stsflag") == "2")
- {
- grp_sea.ipt_stsfromdd.dateformat = "yyyy";
- grp_sea.ipt_stsfromdd.editformat = "yyyy";
- grp_sea.ipt_ststodd.dateformat = "yyyy";
- grp_sea.ipt_ststodd.editformat = "yyyy";
-
- ds_hidden.setColumn(0, "stsfromdd", toDay.substring(0, 4));
- ds_hidden.setColumn(0, "ststodd", toDay.substring(0, 4));
- }
- }
- fshowGridSet(); // 그리드 컬럼 정하기
- }
-
- function fshowGridSet()
- {
- var flag = switch1.tabindex;
- var day = ds_hidden.getColumn(0, "stsfromdd");
- var i = 0;
- if(flag == "0" || flag == "1" || flag == "2" || flag == "3") //채혈, 외래채혈,병동채혈
- {
- if(grp_sea.radio1.value == "1")
- {
- //일별
- grd_stsList_dd.visible = true;
- grd_stsList_mm.visible = false;
- grd_stsList_yy.visible = false;
-
- var lastDay = utlf_lastDateNum(day); // 마지막 날짜
- i = 4;
-
- for(var j = 0; j < lastDay; j++) // 5번째컬럼부터 조회되는 년도 컬럼 size 80
- {
- grd_stsList_dd.setFormatColProperty(i, "size", 40);
- i++;
- }
- for (var k = lastDay ; k<31; k++) // 조회되지 않는 컬럼 size 0
- {
- grd_stsList_dd.setFormatColProperty(i,"size",0);
- i++;
- }
-
- }else if(grp_sea.radio1.value == "2"){ //월별
- grd_stsList_dd.visible = false;
- grd_stsList_mm.visible = true;
- grd_stsList_yy.visible = false;
-
- }else if(grp_sea.radio1.value == "3"){ // 연별
- grd_stsList_dd.visible = false;
- grd_stsList_mm.visible = false;
- grd_stsList_yy.visible = true;
-
- var sFromdd = new String(grp_sea.ipt_stsfromdd.value);
- var sTodd = new String(grp_sea.ipt_ststodd.value);
- var fromdd = sFromdd.substring(0,4);
- var todd = sTodd.substring(0,4);
- var i = 4;
- for (var j=0 ; j<todd-fromdd+1; j++){ // 5번째컬럼부터 조회되는 년도 컬럼 size 80
- grd_stsList_yy.setFormatColProperty(i,"size",80);
- i++;
- }
-
- for (var k = todd-fromdd ; k<9; k++){ // 조회되지 않는 컬럼 size 0
- grd_stsList_yy.setFormatColProperty(i,"size",0);
- i++;
- }
- }
-
- grd_stsList_dd.setFormatColProperty("1","size",0); //채혈, 외래채혈,병동채혈 선택 시 부서명 컬럼 size 0
- grd_stsList_mm.setFormatColProperty("1","size",0);
- grd_stsList_yy.setFormatColProperty("1","size",0);
- }else if(flag == "4"){ // 달력편
- grd_stsList_dd.visible = false;
- grd_stsList_mm.visible = false;
- grd_stsList_yy.visible = false;
- caption6.visible = false;
- }
- }
- //탭 선택에 따라 검색조건 변경 flag 1: 채혈, 2: 외래채혈, 3:병동채혈, 4:아침채혈
- function ftabSwitch()
- {
- ds_main_stsList.clearData();
-
- var flag = switch1.tabindex;
- btn_excel.visible = true;
- Div00.visible = false;
-
- trace("tabindex == " + flag);
-
- //채혈,외래채혈
- if(flag == "0")
- {
- grp_sea.visible = true;
- grp_sea.cbo_1.visible = true; //통계구분
- grp_sea.cbo_2.visible = false;
- grp_sea.cbo_3.visible = false;
- grp_sea.caption16.visible = false; // 채혈구분
- grp_sea.cbo_bt.visible = false;
- grp_sea.caption5.visible = true; // 입원/외래
- grp_sea.cbo_io.visible= true;
- ds_hidden.setColumn(0, "bcollflag", "0");
- }
- else if(flag == "1")
- {
- grp_sea.cbo_1.visible = false;
- grp_sea.cbo_2.visible = true;
- grp_sea.cbo_3.visible = false;
- grp_sea.cbo_io.visible = true;
- grp_sea.caption5.visible = true;
- grp_sea.caption16.visible = false;
- grp_sea.cbo_bt.visible = false;
- grp_sea.cbo_io.value = "0";
- ds_hidden.setColumn(0, "bcollflag", "1");
- }
- else if(flag == "2" || flag == "3" )
- {
- grp_sea.visible = true;
- grp_sea.cbo_1.visible = false;
- grp_sea.cbo_2.visible = false;
- grp_sea.cbo_3.visible = true; //통계구분
-
- grp_sea.caption5.visible = false; // 입원/외래
- grp_sea.cbo_io.visible= false;
-
- // 병동채혈
- if(flag == "2")
- {
- grp_sea.caption16.visible = false; // 채혈구분
- grp_sea.cbo_bt.visible = false;
- ds_hidden.setColumn(0, "bcollflag", "2");
-
- }
- else if(flag == "3") // 아침채혈
- {
- grp_sea.caption16.visible = true; // 채혈구분
- grp_sea.cbo_bt.visible = true;
- ds_hidden.setColumn(0, "bcollflag", "3");
- }
- }
- else if(flag = "4")
- {
- grp_sea.visible = false;
- Div00.visible = true;
- btn_excel.visible = false;
- lf_initCalendar();
- }
-
- fshowGridSet();
- }
- // 조회조건
- function fcheckSaerch()
- {
- var sFromdd = ds_hidden.getColumn(0, "stsfromdd");
- var sTodd = ds_hidden.getColumn(0, "ststodd");
-
- var fromdd = sFromdd.substring(0,4);
- var todd = sTodd.substring(0,4);
- //연별 조회시 10년 이내로 조회
- if(ds_hidden.getColumn(0, "stsflag") == "3")
- {
- if(todd - fromdd > 9)
- {
- sysf_messageBox("10년 이내로 조회 가능합니다\n조회기간을 다시 선택하세요", "I");
- return;
- }
- }
- if(sFromdd > sTodd)
- {
- sysf_messageBox("통계 희망일 시작시간이 종료시간보다 작아야 합니다. ", "I");
- return;
- }
-
- fGetStats();
- }
-
-
- //조회
- function fGetStats()
- {
- var flag = switch1.tabindex;
- var fromdd = ds_hidden.getColumn(0, "stsfromdd");
- var sFromdd = parseInt(fromdd.substring(0,6));
- trace("sFromdd = " + sFromdd);
- var stskind;
-
- trace("flag = " + flag);
- if(flag== "0" || flag=="1")
- {
- stskind = grp_sea.cbo_1.value;
- }
- else if(flag== "2" || flag=="3")
- {
- stskind = "1";
- }
- var lastday = utlf_lastDateNum(fromdd);
- trace("lastDAY = " + lastday);
- var sInDsName = dsf_createDsRow("ds_temp_search", [{col: "stsflag", val : ds_hidden.getColumn(0, "stsflag")} //조회구분 1:일별, 2:월별, 3: 연별
- ,{col: "stsfromdd", val : sFromdd} //조회시작
- ,{col: "ststodd", val : ds_hidden.getColumn(0, "ststodd")} //조회끝
- ,{col: "stskind", val : ds_hidden.getColumn(0, "stskind")} //통계구분 1: 시행부서, 2: 진료과, 3: 진료의, 4: 채혈자, 5: 시간대별 (단, 병동 및 아침채혈의 경우 1: 병동별)
- ,{col: "stskind2", val : ds_hidden.getColumn(0, "stskind2")} //통계구분2 1:바코드, 2: 환자, 3: 처방건수
- ,{col: "bcollflag", val : ds_hidden.getColumn(0, "bcollflag")} //채혈구분 0: 채혈, 1: 외래채혈, 2: 병동채혈, 3: 아침채혈
- ,{col: "btbcollflag", val : ds_hidden.getColumn(0, "btbcollflag")} //아침채혈구분 -: 전체, 1: BT, 2: TT(아침채혈만 사용)
- ,{col: "ioflag", val : ds_hidden.getColumn(0, "ioflag")} //입원/외래 구분
- ,{col: "lastday", val : lastday} //마지막일자
- ,{col: "year", val : sFromdd}]); //연별조회시사용
-
- var oParam = {};
- oParam.id = "TRLLS00101";
- oParam.service = "statsmngtapp.GeneralTestStatsRefMngt";
- oParam.method = "reqGetOutBcollSts";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_main_stsList=stslist";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_main_stsList.rowposition = -1;
- fchangeColor();
- }
- function fchangeColor()
- {
- // 합계 행 색변경
- ds_main_stsList.addColumn("checkcolor", "String");
- var sExpr = "EXPR(checkcolor)";
- //Row색깔 투입
- for(j = 0; j < ds_main_stsList.rowcount; j++)
- {
- if(ds_main_stsList.getColumn(j, "stsnm") == "합계")
- {
- ds_main_stsList.setColumn(j, "checkcolor", "#7BE6B7");
- }
- else
- {
- ds_main_stsList.setColumn(j, "checkcolor", "default");
- }
- ds_main_stsList.setRowType(j,"1");
- }
- //if(grp_sea.radio1.value == "1")
- if(ds_hidden.getColumn(0, "stsflag") == "1")
- {
- //색깔변경
- for(i = 0; i < grd_stsList_dd.getCellCount('Head'); i++)
- {
- grd_stsList_dd.setCellProperty("Body", i, "background", sExpr);
- grd_stsList_dd.setCellProperty("Body", i, "background2", sExpr);
- }
- grd_stsList_dd.setCellProperty("Body", 3, "background", "#ffe79d");
- grd_stsList_dd.setCellProperty("Body", 3, "background2", "#ffe79d");
- }
- else if(ds_hidden.getColumn(0, "stsflag") == "2") //else if(grp_sea.radio1.value == "2")
- {
- //색깔변경
- for(i = 0; i < grd_stsList_mm.getCellCount('Head'); i++)
- {
- grd_stsList_mm.setCellProperty("Body", i, "background", sExpr);
- grd_stsList_mm.setCellProperty("Body", i, "background2", sExpr);
- }
- grd_stsList_mm.setCellProperty("Body", 3, "background", "#ffe79d");
- grd_stsList_mm.setCellProperty("Body", 3, "background2", "#ffe79d");
- }
- else if(ds_hidden.getColumn(0, "stsflag") == "3") //else if(grp_sea.radio1.value == "3")
- {
- //색깔변경
- for(i =0; i < grd_stsList_yy.getCellCount('Head'); i++ )
- {
- grd_stsList_yy.setCellProperty("Body", i, "background", sExpr);
- grd_stsList_yy.setCellProperty("Body", i, "background2", sExpr);
- }
- grd_stsList_yy.setCellProperty("Body", 3, "background", "#ffe79d");
- grd_stsList_yy.setCellProperty("Body", 3, "background2", "#ffe79d");
- }
- }
- // 연별 통계 조회시 그리드 컬럼명 변경
- function lf_column()
- {
- var sFrom = new String(grp_sea.ipt_stsfromdd.value);
- var fromdd = parseInt(sFrom.substring(0,4));
- return fromdd;
- }
- // 엑셀저장
- function fexeSaveToExcel()
- {
- var flagnm;
- if(switch1.tabindex== "0")
- {
- flagnm = "채혈";
- }
- else if(switch1.tabindex == "1")
- {
- flagnm = "외래채혈통계_";
- }
- else if(switch1.tabindex == "2")
- {
- flagnm = "병동채혈통계_";
- }
-
- if(ds_hidden.getColumn(0, "stsflag") == "1")//if(grp_sea.radio1.value == "1")
- {
- grdf_exportExcel(grd_stsList_dd, flagnm, lf_lisGetTitle(this) + "_" + "sheet1", false);
- }
- else if(ds_hidden.getColumn(0, "stsflag") == "2")//else if(grp_sea.radio1.value == "2")
- {
- grdf_exportExcel(grd_stsList_mm, flagnm, lf_lisGetTitle(this) + "_" + "sheet1", false);
- }
- else if(ds_hidden.getColumn(0, "stsflag") == "3")//else if(grp_sea.radio1.value == "3")
- {
- grdf_exportExcel(grd_stsList_yy, flagnm, lf_lisGetTitle(this) + "_" + "sheet1", false);
- }
- }
- // 조회구분 일별,월별,연별
- function grp_sea_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- fShowHopeddnGridSet(); // 데이트 포멧 변경 -> 그리드 변경lf_showGridSet();
- }
- //탭 클릭시
- function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
- {
- ftabSwitch();
- }
- // 조회기간 변경시 fromdd
- function grp_sea_ipt_stsfromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- fshowGridSet(); // 그리드변경
- }
- // 조회기간 변경시 todd
- function grp_sea_ipt_ststodd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- fshowGridSet(); // 그리드변경
- }
- // 조회버튼
- function grp_sea_btn_ref_onclick(obj:Button, e:ClickEventInfo)
- {
- fcheckSaerch();
- }
- //엑셀저장버튼
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- fexeSaveToExcel();
- }
- function lf_initCalendar()
- {
- var curDate = utlf_getCurrentDate().toDate();
-
- Div00.opt_year.value = curDate.getDateFormat('YYYY');
- Div00.opt_month.value = curDate.getDateFormat('MM');
-
- //setCalendar(curDate);
- lf_GetCalendar();// 통계조회
- }
- function setCalendar(dateObj)
- {
- // 그리드 초기화
- //model.removeNodeset("/root/main/weeklist/list");
- grd_calendar.rebuild();
-
- dateObj.setDate(1);
- var startDay = dateObj.getDay();
- var days = dateObj.getMonthDay();
-
- var rows = Math.ceil( ( startDay + days ) / 7 );
- for( var i = 0; i < rows; i++ )
- grd_calendar.addRow(false);
-
- grd_calendar.rebuild();
-
- var rowIndex = grd_calendar.fixedRows;
- var colIndex = startDay;
- for( var i = 1; i <= days; i++ ) {
- grd_calendar.valueMatrix(rowIndex, colIndex) = i;
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
- }
- }
- lf_GetCalendar();// 통계조회
- }
- function lf_GetCalendar(){
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "yyyy", val: Div00.opt_year.value}
- , {col: "mm", val:Div00.opt_month.value}]);
-
- var oParam = {};
- oParam.id = "TRLLS00102";
- oParam.service = "statsmngtapp.GeneralTestStatsRefMngt";
- oParam.method = "reqGetOutBcollCalSts";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_calendar=list";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function btn_premonth_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- var isMonth = Div00.opt_month.value;
- var isYear = Div00.opt_year.value;
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
- Div00.opt_year.value = isDate.getDateFormat('YYYY');
- Div00.opt_month.value = isDate.getDateFormat('MM');
- lf_GetCalendar();// 통계조회
- }
- function button131_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- var isMonth = Div00.opt_month.value;
- var isYear = Div00.opt_year.value;
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
- Div00.opt_year.value = isDate.getDateFormat('YYYY');
- Div00.opt_month.value = isDate.getDateFormat('MM');
- lf_GetCalendar();// 통계조회
- }
- function lf_setMonth(month) {
- Div00.opt_month.value = month;
- lf_GetCalendar();// 통계조회
- }
-
- function Div00_button111_onlbuttondown(obj:Button, e:MouseEventInfo)
- {
- lf_setMonth(obj.text);
- }
- function Div00_button112_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_setMonth(obj.text);
- }
- function Div00_button113_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_setMonth(obj.text);
- }
- function Div00_button114_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_setMonth(obj.text);
- }
- function Div00_button115_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_setMonth(obj.text);
- }
- function Div00_button116_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_setMonth(obj.text);
- }
- function Div00_button117_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_setMonth(obj.text);
- }
- function Div00_button118_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_setMonth(obj.text);
- }
- function Div00_button119_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_setMonth(obj.text);
- }
- function Div00_button121_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_setMonth(obj.text);
- }
- function Div00_button122_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_setMonth(obj.text);
- }
- function button134_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- var isMonth = Div00.opt_month.value;
- var isYear = Div00.opt_year.value;
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
- Div00.opt_year.value = isDate.getDateFormat('YYYY');
- Div00.opt_month.value = isDate.getDateFormat('MM');
- lf_GetCalendar();// 통계조회
- }
- function button132_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- var isMonth = Div00.opt_month.value;
- var isYear = Div00.opt_year.value;
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
- Div00.opt_year.value = isDate.getDateFormat('YYYY');
- Div00.opt_month.value = isDate.getDateFormat('MM');
- lf_GetCalendar();// 통계조회
- }
- ]]></Script>
- </Form>
- </FDL>
|