123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLMS00200" position="absolute 0 0 1256 805" titletext="부서별 통계" onload="SMLMS00200_onload" oninit="SMLMS00200_oninit">
- <Layouts>
- <Layout>
- <Tab id="tab_statflag" class="sw_box" position="absolute 0 102 1256 805" anchor="all" positiontype="position" onchanged="tab_statflag_onchanged" visible="true">
- <Tabpages>
- <Tabpage id="page_dd" text="일별 통계">
- <Layouts>
- <Layout>
- <Grid id="grd_dd" position="absolute 0 0 1256 676" style="align:center middle;" anchor="all" positiontype="position" cellsizingtype="col" binddataset="ds_grid_grd_ddstats">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="30"/>
- <Column size="60"/>
- <Column size="300"/>
- <Column size="80"/>
- <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"/>
- <Column size="40"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="부서"/>
- <Cell col="1" text="No"/>
- <Cell col="2" text="코드"/>
- <Cell col="3" text="검사항목"/>
- <Cell col="4" text="Total"/>
- <Cell col="5" text="01"/>
- <Cell col="6" text="02"/>
- <Cell col="7" text="03"/>
- <Cell col="8" text="04"/>
- <Cell col="9" text="05"/>
- <Cell col="10" text="06"/>
- <Cell col="11" text="07"/>
- <Cell col="12" text="08"/>
- <Cell col="13" text="09"/>
- <Cell col="14" text="10"/>
- <Cell col="15" text="11"/>
- <Cell col="16" text="12"/>
- <Cell col="17" text="13"/>
- <Cell col="18" text="14"/>
- <Cell col="19" text="15"/>
- <Cell col="20" text="16"/>
- <Cell col="21" text="17"/>
- <Cell col="22" text="18"/>
- <Cell col="23" text="19"/>
- <Cell col="24" text="20"/>
- <Cell col="25" text="21"/>
- <Cell col="26" text="22"/>
- <Cell col="27" text="23"/>
- <Cell col="28" text="24"/>
- <Cell col="29" text="25"/>
- <Cell col="30" text="26"/>
- <Cell col="31" text="27"/>
- <Cell col="32" text="28"/>
- <Cell col="33" text="29"/>
- <Cell col="34" text="30"/>
- <Cell col="35" text="31"/>
- <Cell col="36"/>
- </Band>
- <Band id="body">
- <Cell/>
- <Cell col="1" celltype="head" expr="currow+1"/>
- <Cell col="2" style="align:left middle;" text="bind:tclscd"/>
- <Cell col="3" style="align:left middle;" text="bind:tclsscrnnm"/>
- <Cell col="4" style="align:right middle;background:EXPR(tclsscrnnm == '소계' ? '#f3e1bf' : (tclsscrnnm == '부서계' || tclsscrnnm == '부서합계' ? '#3399ff' : (tclsscrnnm == '합계' ? '#7BE6B7' : '#ffe79d')));background2:EXPR(tclsscrnnm == '소계' ? '#f3e1bf' : (tclsscrnnm == '부서계' || tclsscrnnm == '부서합계' ? '#3399ff' : (tclsscrnnm == '합계' ? '#7BE6B7' : '#ffe79d')));" text="bind:total" mask="#,###"/>
- <Cell col="5" style="align:right middle;" text="bind:d01" mask="#,###"/>
- <Cell col="6" style="align:right middle;" text="bind:d02" mask="#,###"/>
- <Cell col="7" style="align:right middle;" text="bind:d03" mask="#,###"/>
- <Cell col="8" style="align:right middle;" text="bind:d04" mask="#,###"/>
- <Cell col="9" style="align:right middle;" text="bind:d05" mask="#,###"/>
- <Cell col="10" style="align:right middle;" text="bind:d06" mask="#,###"/>
- <Cell col="11" style="align:right middle;" text="bind:d07" mask="#,###"/>
- <Cell col="12" style="align:right middle;" text="bind:d08" mask="#,###"/>
- <Cell col="13" style="align:right middle;" text="bind:d09" mask="#,###"/>
- <Cell col="14" style="align:right middle;" text="bind:d10" mask="#,###"/>
- <Cell col="15" style="align:right middle;" text="bind:d11" mask="#,###"/>
- <Cell col="16" style="align:right middle;" text="bind:d12" mask="#,###"/>
- <Cell col="17" style="align:right middle;" text="bind:d13" mask="#,###"/>
- <Cell col="18" style="align:right middle;" text="bind:d14" mask="#,###"/>
- <Cell col="19" style="align:right middle;" text="bind:d15" mask="#,###"/>
- <Cell col="20" style="align:right middle;" text="bind:d16" mask="#,###"/>
- <Cell col="21" style="align:right middle;" text="bind:d17" mask="#,###"/>
- <Cell col="22" style="align:right middle;" text="bind:d18" mask="#,###"/>
- <Cell col="23" style="align:right middle;" text="bind:d19" mask="#,###"/>
- <Cell col="24" style="align:right middle;" text="bind:d20" mask="#,###"/>
- <Cell col="25" style="align:right middle;" text="bind:d21" mask="#,###"/>
- <Cell col="26" style="align:right middle;" text="bind:d22" mask="#,###"/>
- <Cell col="27" style="align:right middle;" text="bind:d23" mask="#,###"/>
- <Cell col="28" style="align:right middle;" text="bind:d24" mask="#,###"/>
- <Cell col="29" style="align:right middle;" text="bind:d25" mask="#,###"/>
- <Cell col="30" style="align:right middle;" text="bind:d26" mask="#,###"/>
- <Cell col="31" style="align:right middle;" text="bind:d27" mask="#,###"/>
- <Cell col="32" style="align:right middle;" text="bind:d28" mask="#,###"/>
- <Cell col="33" style="align:right middle;" text="bind:d29" mask="#,###"/>
- <Cell col="34" style="align:right middle;" text="bind:d30" mask="#,###"/>
- <Cell col="35" style="align:right middle;" text="bind:d31" mask="#,###"/>
- <Cell col="36" text="bind:btotal"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="page_mm" text="월별 통계">
- <Layouts>
- <Layout>
- <Grid id="grd_mm" position="absolute 0 0 1256 676" style="align:center middle;" anchor="all" positiontype="position" autofittype="col" binddataset="ds_grid_grd_mmstats">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="30"/>
- <Column size="60"/>
- <Column size="300"/>
- <Column size="80"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="부서"/>
- <Cell col="1" text="No"/>
- <Cell col="2" text="코드"/>
- <Cell col="3" text="검사항목"/>
- <Cell col="4" text="Total"/>
- <Cell col="5" text="01"/>
- <Cell col="6" text="02"/>
- <Cell col="7" text="03"/>
- <Cell col="8" text="04"/>
- <Cell col="9" text="05"/>
- <Cell col="10" text="06"/>
- <Cell col="11" text="07"/>
- <Cell col="12" text="08"/>
- <Cell col="13" text="09"/>
- <Cell col="14" text="10"/>
- <Cell col="15" text="11"/>
- <Cell col="16" text="12"/>
- </Band>
- <Band id="body">
- <Cell/>
- <Cell col="1" celltype="head" expr="currow+1"/>
- <Cell col="2" style="align:left middle;" text="bind:tclscd"/>
- <Cell col="3" style="align:left middle;" text="bind:tclsscrnnm"/>
- <Cell col="4" style="align:right middle;background:EXPR(tclsscrnnm == '소계' ? '#f3e1bf' : (tclsscrnnm == '부서계' || tclsscrnnm == '부서합계' ? '#3399ff' : (tclsscrnnm == '합계' ? '#7BE6B7' : '#ffe79d')));background2:EXPR(tclsscrnnm == '소계' ? '#f3e1bf' : (tclsscrnnm == '부서계' || tclsscrnnm == '부서합계' ? '#3399ff' : (tclsscrnnm == '합계' ? '#7BE6B7' : '#ffe79d')));" text="bind:total" mask="#,###"/>
- <Cell col="5" style="align:right middle;" text="bind:d01" mask="#,###"/>
- <Cell col="6" style="align:right middle;" text="bind:d02" mask="#,###"/>
- <Cell col="7" style="align:right middle;" text="bind:d03" mask="#,###"/>
- <Cell col="8" style="align:right middle;" text="bind:d04" mask="#,###"/>
- <Cell col="9" style="align:right middle;" text="bind:d05" mask="#,###"/>
- <Cell col="10" style="align:right middle;" text="bind:d06" mask="#,###"/>
- <Cell col="11" style="align:right middle;" text="bind:d07" mask="#,###"/>
- <Cell col="12" style="align:right middle;" text="bind:d08" mask="#,###"/>
- <Cell col="13" style="align:right middle;" text="bind:d09" mask="#,###"/>
- <Cell col="14" style="align:right middle;" text="bind:d10" mask="#,###"/>
- <Cell col="15" style="align:right middle;" text="bind:d11" mask="#,###"/>
- <Cell col="16" style="align:right middle;" text="bind:d12" mask="#,###"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="page_yy" text="연별 통계">
- <Layouts>
- <Layout>
- <Grid id="grd_yy" position="absolute 0 0 1256 676" anchor="all" positiontype="position" autofittype="none" binddataset="ds_grid_grd_yystats" cellsizingtype="col" selecttype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="26"/>
- <Column size="60"/>
- <Column size="300"/>
- <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/>
- <Cell col="1" text="No"/>
- <Cell col="2" text="코드"/>
- <Cell col="3" text="검사항목"/>
- <Cell col="4" text="Total"/>
- <Cell col="5"/>
- <Cell col="6"/>
- <Cell col="7"/>
- <Cell col="8"/>
- <Cell col="9"/>
- <Cell col="10"/>
- <Cell col="11"/>
- <Cell col="12"/>
- <Cell col="13"/>
- <Cell col="14"/>
- <Cell col="15"/>
- </Band>
- <Band id="body">
- <Cell/>
- <Cell col="1" celltype="head" expr="currow+1"/>
- <Cell col="2" style="align:left middle;" text="bind:tclscd"/>
- <Cell col="3" text="bind:tclsscrnnm"/>
- <Cell col="4" style="align:right middle;background:EXPR(tclsscrnnm == '소계' ? '#f3e1bf' : (tclsscrnnm == '부서계' || tclsscrnnm == '부서합계' ? '#3399ff' : (tclsscrnnm == '합계' ? '#7BE6B7' : '#ffe79d')));background2:EXPR(tclsscrnnm == '소계' ? '#f3e1bf' : (tclsscrnnm == '부서계' || tclsscrnnm == '부서합계' ? '#3399ff' : (tclsscrnnm == '합계' ? '#7BE6B7' : '#ffe79d')));" text="bind:total"/>
- <Cell col="5" style="align:right middle;" text="bind:d01" mask="#,###"/>
- <Cell col="6" style="align:right middle;" text="bind:d02" mask="#,###"/>
- <Cell col="7" style="align:right middle;" text="bind:d03" mask="#,###"/>
- <Cell col="8" style="align:right middle;" text="bind:d04" mask="#,###"/>
- <Cell col="9" style="align:right middle;" text="bind:d05" mask="#,###"/>
- <Cell col="10" style="align:right middle;" text="bind:d06" mask="#,###"/>
- <Cell col="11" style="align:right middle;" text="bind:d07" mask="#,###"/>
- <Cell col="12" style="align:right middle;" text="bind:d08" mask="#,###"/>
- <Cell col="13" style="align:right middle;" text="bind:d09" mask="#,###"/>
- <Cell col="14" style="align:right middle;" text="bind:d10" mask="#,###"/>
- <Cell col="15" style="align:right middle;" mask="#,###"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Static id="caption6" class="tit_1" position="absolute 0 0 109 25" anchor="default" positiontype="position" text="미생물통계"/>
- <Button id="btn_print" class="btn6" visible="false" position="absolute 1200 0 1256 20" anchor="top right" positiontype="position" text="출력" onlbuttonup="btn_print_onlbuttonup"/>
- <Button id="btn_excel" class="btn7" position="absolute 1152 3 1254 23" anchor="top right" positiontype="position" text="EXCEL저장" onclick="btn_excel_onclick"/>
- <Div id="div_search" anchor="left top right" taborder="12" style="align:center top;" class="div_SA" position="absolute 0 25 1256 92">
- <Layouts>
- <Layout width="1256" height="42">
- <Static id="caption4" text="통계 희망일" class="search_name" position="absolute 8 10 118 30" anchor="default"/>
- <Static id="caption5" text="입원/외래" class="search_name" visible="false" position="absolute 8 35 102 55" anchor="default"/>
- <Static id="stt_swung" text="~" visible="false" position="absolute 179 10 195 30" anchor="default"/>
- <Calendar id="ipt_workfromdd_bk" taborder="1" class="input_search" position="absolute 99 10 169 30" anchor="default" dateformat="yyyy-MM-dd" value="null" visible="false"/>
- <Combo id="cmb_ioflag" taborder="2" visible="false" position="absolute 88 35 181 55" anchor="default" codecolumn="codecolumn" datacolumn="datacolumn">
- <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>
- <CheckBox id="chk_itemgbn" taborder="3" text="검사항목 제외" truevalue="Y" visible="false" position="absolute 193 35 299 55" anchor="default"/>
- <Calendar id="ipt_worktodd_bk" taborder="4" class="input_search" visible="false" position="absolute 185 10 255 30" anchor="default"/>
- <Static id="caption12" text="조회구분" class="search_name" position="absolute 279 10 365 30" anchor="default"/>
- <Combo id="cmb_searchgbn" taborder="5" position="absolute 353 10 445 30" anchor="default" codecolumn="codecolumn" datacolumn="datacolumn" index="0" value="1" text="검사코드">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">검사코드</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">검사명</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="caption2" text="구분" class="search_name" position="absolute 562 10 625 30" anchor="default"/>
- <Radio id="rdo_cntgbn" taborder="7" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 615 10 785 30" anchor="default" index="0" value="T">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">T</Col>
- <Col id="datacolumn">검사</Col>
- </Row>
- <Row>
- <Col id="codecolumn">P</Col>
- <Col id="datacolumn">환자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">B</Col>
- <Col id="datacolumn">검체</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption13" text="통계기준일" class="search_name" visible="false" position="absolute 562 35 661 55" anchor="default"/>
- <Combo id="cmb_ddstandard" taborder="8" visible="false" position="absolute 653 35 745 55" anchor="default" codecolumn="codecolumn" datacolumn="datacolumn" index="0" value="1" text="보고일">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">보고일</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">접수일</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="caption1" text="부서" class="search_name" visible="false" position="absolute 769 35 831 55" anchor="default"/>
- <Combo id="cmb_sectcd" taborder="9" visible="false" position="absolute 816 35 938 55" anchor="default" innerdataset="@ds_init_lb0111" codecolumn="cd" datacolumn="nm"/>
- <Static id="caption3" text="|" visible="false" position="absolute 925 10 940 30" anchor="default"/>
- <Radio id="rdo_workgbn" taborder="10" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" visible="false" position="absolute 945 10 1115 30" anchor="default" index="2" value="A">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">D</Col>
- <Col id="datacolumn">주간</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">야간</Col>
- </Row>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">All</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Button id="btn_search" taborder="11" text="조회" class="btn1" position="absolute 1189 10 1245 30" anchor="top right" onclick="div_search_btn_search_onclick"/>
- <Edit id="ipt_search" taborder="12" position="absolute 448 10 538 30" anchor="default" inputmode="upper" onkeydown="div_search_ipt_search_onkeydown"/>
- <cp_monthCal id="ipt_workfromdd" titletext="monthCalendar" taborder="13" scrollbars="none" position="absolute 98 10 173 29" onclick="div_search_cp_monthCal00_onclick"/>
- <cp_monthCal id="ipt_worktodd" titletext="monthCalendar" taborder="14" onclick="div_search_cp_monthCal00_onclick" scrollbars="none" position="absolute 192 10 267 29" visible="false"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_totalstats2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false"/>
- <Dataset id="ds_totalstats3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false"/>
- <Dataset id="ds_grid_grd_ddstats" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false"/>
- <Dataset id="ds_grid_grd_mmstats" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false"/>
- <Dataset id="ds_grid_grd_yystats" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_lb0111" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING"/>
- <Column id="nm" 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="statshopefromdd" type="STRING" size="256"/>
- <Column id="statshopetodd" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="sectcd" type="STRING" size="256"/>
- <Column id="workgbn" type="STRING" size="256"/>
- <Column id="cntgbn" type="STRING" size="256"/>
- <Column id="itemgbn" type="STRING" size="256"/>
- <Column id="ddstandard" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="ioflag">0</Col>
- <Col id="workgbn">A</Col>
- <Col id="cntgbn">T</Col>
- <Col id="ddstandard">1</Col>
- </Row>
- </Rows>
- </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";
- function SMLMS00200_oninit(obj:Form, e:InitEventInfo)
- {
- //폼 초기화 함수
- frmf_initForm(obj);
- }
- function SMLMS00200_onload(obj:Form, e:LoadEventInfo)
- {
- fSetInit(); //초기화 함수 호출
- // //초기정보 조회
- // lf_setInit_search();
- //
- // //그리드 초기 셋팅
- // lf_setGrid();
- //
- // lf_setInit();
- }
- function cbf_SMLMS00200(strSvcID, nErrorCode, strErrorMag){
- if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
- }
- function lf_setInit_search(){
- lf_getDbDeptcd("0000|0011|0111|");
- }
- function fSetInit()
- {
- lf_getDbDeptcd("0111|"); //0111 : 계코드
- var toDay = utlf_getCurrentDate();
- div_search.cmb_sectcd.value = "00";//부서 전체
- div_search.cmb_ioflag.value = "0";///입원/외래구분을 전체
- div_search.ipt_workfromdd.value = toDay;//통계희망시작일 = 현재일자
- div_search.ipt_worktodd.value = toDay;//통계희망종료일 = 현재일자
- // ds_hidden.setColumn(0, "sectcd", "00"); //부서 전체
- // ds_hidden.setColumn(0, "ioflag", "00"); //입원/외래구분을 전체
- // ds_hidden.setColumn(0, "statshopefromdd", toDay); //통계희망시작일 = 현재일자
- // ds_hidden.setColumn(0, "statshopetodd", toDay); //통계희망종료일 = 현재일자
-
- div_search.stt_swung.visible = false;
- div_search.ipt_workfromdd.cal_Month.dateformat = "yyyy-MM";
- div_search.ipt_workfromdd.cal_Month.editformat = "yyyy-MM";
- div_search.ipt_worktodd.visible = false;
-
- //그리드 초기화
- ds_grid_grd_ddstats.clearData();
- ds_grid_grd_mmstats.clearData();
- ds_grid_grd_yystats.clearData();
-
- tab_statflag.tabindex = 0;
-
- }
- function lf_gridInit(){
- switch (tab_statflag.tabindex){
- case 0 :{
- div_search.stt_swung.visible = false;
- //div_search.ipt_workfromdd.value = utlf_getCurrentDate(); //20141229 주석처리
- div_search.ipt_workfromdd.cal_Month.dateformat = "yyyy-MM";
- div_search.ipt_workfromdd.cal_Month.editformat = "yyyy-MM";
- div_search.ipt_worktodd.visible = false;
- break;
- }case 1 :{
- div_search.stt_swung.visible = false;
- //div_search.ipt_workfromdd.value = utlf_getCurrentDate(); //20141229 주석처리
- div_search.ipt_workfromdd.cal_Month.dateformat = "yyyy";
- div_search.ipt_workfromdd.cal_Month.editformat = "yyyy";
- div_search.ipt_worktodd.visible = false;
- break;
- }case 2 :{
- lf_setyytitle();
- break;
- }
- }
- }
- function lf_setyytitle(){
- //div_search.ipt_workfromdd.value = utlf_getCurrentDate().substr(0, 4);
- //div_search.ipt_worktodd.value = utlf_getCurrentDate().substr(0, 4); //20141229 주석처리
-
- div_search.stt_swung.visible = true;
- div_search.ipt_workfromdd.cal_Month.dateformat = "yyyy";
- div_search.ipt_workfromdd.cal_Month.editformat = "yyyy"; //20150105
- div_search.ipt_workfromdd.visible = true;
- div_search.ipt_worktodd.cal_Month.dateformat = "yyyy";
- div_search.ipt_worktodd.cal_Month.editformat = "yyyy"; //20150105
- div_search.ipt_worktodd.visible = true;
-
- for(i = 5; i < tab_statflag.page_yy.grd_yy.getCellCount("Body"); i++){
- if(i == 5) tab_statflag.page_yy.grd_yy.setCellProperty("head", i, "text", utlf_getCurrentDate().substr(0, 4));
- else tab_statflag.page_yy.grd_yy.setFormatColProperty(i, "size", 0);
- }
- }
- function lf_setGrid(){
-
- for(i = 0; i < 4; i++){
- //일별 통계
- tab_statflag.page_dd.grd_dd.setFormatColProperty(i, "band", "left");
- //월별통계
- tab_statflag.page_mm.grd_mm.setFormatColProperty(i, "band", "left");
- //년별통계
- tab_statflag.page_yy.grd_yy.setFormatColProperty(i, "band", "left");
- }
- }
- function lf_exeSaveToExcel(){
- switch (tab_statflag.tabindex){
- case 0 :{
- grdf_exportExcel(tab_statflag.page_dd.grd_dd, lf_lisGetTitle(this) + "_일별", "see");
- break;
- }case 1 :{
- grdf_exportExcel(tab_statflag.page_mm.grd_mm, lf_lisGetTitle(this) + "_월별", "see");
- break;
- }case 2 :{
- grdf_exportExcel(tab_statflag.page_yy.grd_yy, lf_lisGetTitle(this) + "_연별", "see");
- break;
- }
- }
- }
- function lf_getStats(){
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "sectcd", val: div_search.cmb_sectcd.value}
- , {col: "workgbn", val: div_search.rdo_workgbn.value}
- , {col: "cntgbn", val: div_search.rdo_cntgbn.value}
- , {col: "itemgbn", val: div_search.chk_itemgbn.value}
- , {col: "ioflag", val: div_search.cmb_ioflag.value}
- , {col: "statshopefromdd", val: div_search.ipt_workfromdd.cal_Month.text.replace("-","")} //20150105
- , {col: "statshopetodd", val: div_search.ipt_worktodd.cal_Month.text.replace("-","")} //20150105
- , {col: "refflag", val: ""}
- , {col: "ddstandard", val: div_search.cmb_ddstandard.value}
- , {col: "searchgbn", val: div_search.cmb_searchgbn.value}
- , {col: "searchname", val: div_search.ipt_search.value}]);
-
- switch (tab_statflag.tabindex){
- case 0 :{
- ds_temp_search.setColumn(0, "refflag", "dd");//일월연구분
-
- var oParam = {};
- oParam.id = "TRLLS01101";
- oParam.service = "statsmngtapp.MicroStatsRefMngt";
- oParam.method = "reqGetMSectTestStats";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_ddstats=getSectTestStats ds_totalstats2=getSectTestStatsTotal ds_totalstats3=getSectTestStatsTotalB";
- oParam.async = false;
- oParam.callback = "cbf_SMLMS00200";
- tranf_submit(oParam);
-
- if(div_search.chk_itemgbn.value != "Y"){
- lf_setRowStyle(tab_statflag.page_dd.grd_dd, "2", "소계", "tclsscrnnm", "equal"); //소계 색변경
- }
- lf_setRowStyle(tab_statflag.page_dd.grd_dd, "11", "부서계", "tclsscrnnm", "equal"); //부서별합계 색변경
- lf_setRowStyle(tab_statflag.page_dd.grd_dd, "11", "부서합계", "tclsscrnnm", "equal"); //부서별합계 색변경
- lf_setRowStyle(tab_statflag.page_dd.grd_dd, "3", "합계", "tclsscrnnm", "equal"); //총합계 색변경 에메랄드색
- break; //20141229 추가
- }
-
- case 1 :{
- ds_temp_search.setColumn(0, "refflag", "mm");//일월연구분
-
- var oParam = {};
- oParam.id = "TRLLS01103";
- oParam.service = "statsmngtapp.MicroStatsRefMngt";
- oParam.method = "reqGetMSectTestmmStats";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_mmstats=getSectTestmmStats ds_totalstats2=getSectTestStatsTotal ds_totalstats3=getSectTestStatsTotalB";
- oParam.async = false;
- oParam.callback = "cbf_SMLMS00200";
- tranf_submit(oParam);
-
- if(div_search.chk_itemgbn.value != "Y"){
- lf_setRowStyle(tab_statflag.page_mm.grd_mm, "2", "소계", "tclsscrnnm", "equal"); //소계 색변경
- }
- lf_setRowStyle(tab_statflag.page_mm.grd_mm, "11", "부서계", "tclsscrnnm", "equal"); //부서별합계 색변경
- lf_setRowStyle(tab_statflag.page_mm.grd_mm, "11", "부서합계", "tclsscrnnm", "equal"); //부서별합계 색변경
- lf_setRowStyle(tab_statflag.page_mm.grd_mm, "3", "합계", "tclsscrnnm", "equal"); //총합계 색변경 에메랄드색
- break; //20141229 추가
- }
-
- case 2 :{
- lf_setyygrid();
-
- ds_temp_search.setColumn(0, "refflag", "yy");//일월연구분
-
- var fromdd = div_search.ipt_workfromdd.getData().substring(0,4);
- var todd = div_search.ipt_worktodd.getData().substring(0,4);
- ds_temp_search.setColumn(0,"statshopefromdd",fromdd);
- ds_temp_search.setColumn(0,"statshopetodd",todd);
-
- var oParam = {};
- oParam.id = "TRLLS01104";
- oParam.service = "statsmngtapp.MicroStatsRefMngt";
- oParam.method = "reqGetMSectTestyy1Stats";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_yystats=getSectTestyyStats ds_totalstats2=getSectTestStatsTotal ds_totalstats3=getSectTestStatsTotalB";
- oParam.async = false;
- oParam.callback = "cbf_SMLMS00200";
- tranf_submit(oParam);
-
- if(div_search.chk_itemgbn.value != "Y"){
- lf_setRowStyle(tab_statflag.page_yy.grd_yy, "2", "소계", "tclsscrnnm", "equal"); //소계 색변경
- }
- lf_setRowStyle(tab_statflag.page_yy.grd_yy, "11", "부서계", "tclsscrnnm", "equal"); //부서별합계 색변경
- lf_setRowStyle(tab_statflag.page_yy.grd_yy, "11", "부서합계", "tclsscrnnm", "equal"); //부서별합계 색변경
- lf_setRowStyle(tab_statflag.page_yy.grd_yy, "3", "합계", "tclsscrnnm", "equal"); //총합계 색변경 에메랄드색
- break; //20141229 추가
- }
- }
-
-
- }
- function lf_setyygrid(){
- for(i = 6; i < tab_statflag.page_yy.grd_yy.getCellCount("Body"); i++){
- tab_statflag.page_yy.grd_yy.setFormatColProperty(i, "size", 0);
- }
-
- var sdd = div_search.ipt_workfromdd.cal_Month.text.substr(0, 4); //20150105
- var edd = div_search.ipt_worktodd.cal_Month.text.substr(0, 4); //20150105
- var ddcnt = parseInt(edd) - parseInt(sdd);
- var plusY = 0;
-
- for(i = 5; i < parseInt(ddcnt) + 6; i++){
- tab_statflag.page_yy.grd_yy.setFormatColProperty(i, "size", 80);
- tab_statflag.page_yy.grd_yy.setCellProperty("Head", i, "text", parseInt(sdd) + parseInt(plusY));
- plusY++;
- }
- }
- function lf_setRowStyle( gridID , styleFlag , data , colRef , control ) {
- var fillStyle = "";
- var style = new Array("#fcd2c1" , "#ffe79d" , "#f3e1bf" , "#7BE6B7" , "#b9e5fb" , "#f7a08b" , "#fec34d" , "#dec6a4" , "#c8e67b" ,
- "#43c8f5" , "#ff9933" , "#3399ff" , "#9999cc" , "#FFC8C8" , "#fab7bf" , "#ffff00" , "#ccffcc" , "#FF9A00", "#ff0000");
-
- var styleFlags = styleFlag.split("^");
- var datas = data.split("^");
-
- if( control == null || control == "" )
- control = "equal";
-
- var controls = control.split("^");
-
- var BackGroundFont = "";
- var end = "";
- for( var j = 0 ; j < datas.length ; j++ ) {
-
- var dataValue = datas[j];
- var styleValue = style[styleFlags[j]];
-
-
- if(controls[j] == null)
- controls[j] = "equal";
-
- var ctrl = "";
- switch( controls[j] ) {
- case "small":
- ctrl = "<";
- break;
- case "smallThen":
- ctrl = "<=";
- break;
- case "bigger":
- ctrl = ">";
- break;
- case "biggerThen":
- ctrl = ">=";
- break;
- case "equal":
- ctrl = "==";
- break;
- }
- if(j == datas.length-1){
- if(datas.length == 1){
- BackGroundFont = "expr:String(" + colRef +") "+ctrl+ " '" + dataValue +"' ? '"+styleValue+"' : ''";
- }else{
- BackGroundFont += "String(" + colRef+") "+ctrl+ " '" + dataValue +"' ? '"+styleValue+"' : ''";
- }
-
- }else if(j == 0){
- BackGroundFont += "expr:String(" + colRef+") "+ctrl+ " '" + dataValue +"' ? '"+styleValue+"' : (";
- }else{
- BackGroundFont += "String("+colRef+") "+ctrl+ " '" + dataValue +"' ? '"+styleValue+"' : (";
- }
-
- if( j<datas.length-1)
- end += ")";
- }
-
- BackGroundFont += end;
-
- for(var i=0; i<gridID.getCellCount("body");i++){
- if(i != 4){
- gridID.setCellProperty("body", i, "background" ,BackGroundFont);
- gridID.setCellProperty("body", i, "background2" ,BackGroundFont);
- }
- }
- }
- function tab_statflag_onchanged(obj:Tab, e:TabIndexChangeEventInfo){
- lf_gridInit();
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo){
- lf_exeSaveToExcel();
- }
- function div_search_btn_search_onclick(obj:Button, e:ClickEventInfo){
- if(tab_statflag.tabindex == 2){
- var fromdd = parseInt(div_search.ipt_workfromdd.cal_Month.text.substr(0, 4));
- var todd = parseInt(div_search.ipt_worktodd.cal_Month.text.substr(0, 4)); //20150105
-
- if(todd - fromdd >9 ){
- sysf_messageBox("10년 이내로 조회 가능합니다\n조회기간을 다시 ", "C002", "");
- return;
- }
- if(fromdd > todd){
- sysf_messageBox("통계 희망일 시작시간이 종료시간보다 작아야 합니다. 희망일을 ", "I007", "");
- return;
- }
- }
-
- lf_getStats();
- }
- function div_search_ipt_search_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- if(tab_statflag.tabindex == 2)
- {
- var fromdd = parseInt(div_search.ipt_workfromdd.cal_Month.text.substr(0, 4));
- var todd = parseInt(div_search.ipt_worktodd.cal_Month.text.substr(0, 4)); //20150105
-
- if(todd - fromdd >9 ){
- sysf_messageBox("10년 이내로 조회 가능합니다\n조회기간을 다시 ", "C002", "");
- return;
- }
- if(fromdd > todd){
- sysf_messageBox("통계 희망일 시작시간이 종료시간보다 작아야 합니다. 희망일을 ", "I007", "");
- return;
- }
- }
-
- lf_getStats();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|