123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAES01100" position="absolute 0 0 1196 760" titletext="재활의학팀치료건수" onload="SMAES01100_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 15 1195 759" id="grp_biz" anchor="all">
- <Layouts>
- <Layout>
- <Button position="absolute 1130 45 1194 64" id="btn_excsave" class="btn2" visible="false" text="엑셀저장" anchor="default"/>
- <Div position="absolute 0 10 1195 70" align="align:center top;" id="grp_sea" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Static text="조회기간 :" position="absolute 15 11 101 28" id="caption2" class="search_name" anchor="default"/>
- <Shape position="absolute 1115 8 1121 53" linetype="vertical" id="line13" class="line_4" anchor="top right"/>
- <Button position="absolute 1128 20 1184 42" id="btn_sea" class="btn1" taborder="4" text="조회" anchor="top right" onclick="grp_biz_grp_sea_btn_sea_onclick"/>
- <Calendar position="absolute 227 9 327 28" align="align:center middle;" id="ipt_todd" class="input_default" taborder="2" anchor="default" dateformat="yyyy-MM-dd" onchanged="grp_biz_grp_sea_ipt_todd_onchanged"/>
- <Static text="~" position="absolute 212 10 224 27" id="caption5" class="search_no_b" anchor="default"/>
- <Calendar position="absolute 109 9 209 28" align="align:center middle;" id="ipt_fromdd" class="input_default" taborder="1" anchor="default" dateformat="yyyy-MM-dd" value="null" onchanged="grp_biz_grp_sea_ipt_fromdd_onchanged"/>
- <Static text="비교기간 :" position="absolute 15 35 101 52" id="caption3" class="search_name" anchor="default"/>
- <Calendar position="absolute 227 33 327 52" align="align:center middle;" id="input1" class="input_default" taborder="2" anchor="default" dateformat="yyyy-MM-dd" onchanged="grp_biz_grp_sea_input1_onchanged"/>
- <Static text="~" position="absolute 212 33 224 50" id="caption4" class="search_no_b" anchor="default"/>
- <Calendar position="absolute 109 33 209 52" align="align:center middle;" id="input2" class="input_default" taborder="1" anchor="default" dateformat="yyyy-MM-dd" onchanged="grp_biz_grp_sea_input2_onchanged"/>
- <Static text="처방과 :" position="absolute 340 11 426 28" id="caption7" class="search_name" anchor="default"/>
- <Static text="치료실 :" position="absolute 550 11 636 28" id="caption8" class="search_name" anchor="default"/>
- <Static text="치료사 :" position="absolute 340 35 426 52" id="caption9" class="search_name" anchor="default"/>
- <Static text="처방코드 :" position="absolute 550 35 636 52" id="caption10" class="search_name" anchor="default"/>
- <Combo position="absolute 420 9 535 28" id="cmb_orddept" innerdataset="@ds_inti_orddeptcd" datacolumn="nm" codecolumn="cd" anchor="default"/>
- <Combo position="absolute 420 33 535 52" id="cmb_execdrid" innerdataset="@ds_inti_execdrid" datacolumn="nm" codecolumn="cd" anchor="default"/>
- <Combo position="absolute 639 9 754 28" id="cmb_curerm" innerdataset="@ds_inti_curerm" datacolumn="nm" codecolumn="cd" anchor="default" onitemchanged="grp_biz_grp_sea_cmb_curerm_onitemchanged"/>
- <Combo position="absolute 639 33 869 52" id="cmb_prcpcd" innerdataset="@ds_inti_prcpcd" datacolumn="nm" codecolumn="cd" anchor="default"/>
- <Static text="구분 :" position="absolute 885 11 971 28" id="caption11" class="search_name" anchor="default"/>
- <Radio position="absolute 950 9 1090 29" id="radio1" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">
- </Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">F</Col>
- <Col id="datacolumn">초환</Col>
- </Row>
- <Row>
- <Col id="codecolumn">R</Col>
- <Col id="datacolumn">재환</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Radio position="absolute 950 35 1070 55" id="radio2" visible="false" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">T</Col>
- <Col id="datacolumn">검사수</Col>
- </Row>
- <Row>
- <Col id="codecolumn">P</Col>
- <Col id="datacolumn">환자수</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static text="구분 :" position="absolute 885 36 945 53" id="caption12" class="search_name" visible="false" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Tab position="absolute 0 76 1195 744" id="switch1" anchor="all">
- <Tabpages>
- <Tabpage text="치료실" id="case1">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 1195 640" id="datagrid1" binddataset="ds_main_list_item" anchor="all" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="166"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="0"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="84"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- <Row size="24" band="summ"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" text="치료실" taborder="undefined"/>
- <Cell col="1" colspan="3" text="치료건수" taborder="undefined"/>
- <Cell col="4" colspan="3" text="비교기간건수" taborder="undefined"/>
- <Cell col="7" colspan="3" text="증감" taborder="undefined"/>
- <Cell col="10" text="caption1"/>
- <Cell col="11" colspan="3" text="증감율" taborder="undefined"/>
- <Cell row="1" col="1" text="입원"/>
- <Cell row="1" col="2" text="외래"/>
- <Cell row="1" col="3" text="합계"/>
- <Cell row="1" col="4" text="입원"/>
- <Cell row="1" col="5" text="외래"/>
- <Cell row="1" col="6" text="합계"/>
- <Cell row="1" col="7" text="입원"/>
- <Cell row="1" col="8" text="외래"/>
- <Cell row="1" col="9" text="합계"/>
- <Cell row="1" col="10" text="caption1"/>
- <Cell row="1" col="11" text="입원"/>
- <Cell row="1" col="12" text="외래"/>
- <Cell row="1" col="13" text="합계"/>
- </Band>
- <Band id="body">
- <Cell displaytype="text" text="bind:curerm"/>
- <Cell col="1" displaytype="number" text="bind:intestexeccnt"/>
- <Cell col="2" displaytype="number" text="bind:outtestexeccnt"/>
- <Cell col="3" displaytype="number" text="bind:sumcnt"/>
- <Cell col="4" displaytype="number" text="bind:intotexeccnt"/>
- <Cell col="5" displaytype="number" text="bind:outtotexeccnt"/>
- <Cell col="6" displaytype="number" text="bind:totexeccnt"/>
- <Cell col="7" displaytype="number" text="bind:intotrsrvcnt"/>
- <Cell col="8" displaytype="number" text="bind:outtotrsrvcnt"/>
- <Cell col="9" displaytype="number" text="bind:totrsrvcnt"/>
- <Cell col="10" displaytype="number" text="bind:sumtest"/>
- <Cell col="11" displaytype="number" text="bind:incomparerate" mask="##0%"/>
- <Cell col="12" displaytype="number" text="bind:outcomparerate" mask="##0%"/>
- <Cell col="13" displaytype="number" text="bind:comparerate" mask="##0%"/>
- </Band>
- <Band id="summary">
- <Cell text="합계"/>
- <Cell col="1" displaytype="number" text="expr:lf_setSum('intestexeccnt')"/>
- <Cell col="2" displaytype="number" text="expr:lf_setSum('outtestexeccnt')"/>
- <Cell col="3" displaytype="number" text="expr:lf_setSum('sumcnt')"/>
- <Cell col="4" displaytype="number" text="expr:lf_setSum('intotexeccnt')"/>
- <Cell col="5" displaytype="number" text="expr:lf_setSum('outtotexeccnt')"/>
- <Cell col="6" displaytype="number" text="expr:lf_setSum('totexeccnt')"/>
- <Cell col="7" displaytype="number" text="expr:lf_setSum('intotrsrvcnt')"/>
- <Cell col="8" displaytype="number" text="expr:lf_setSum('outtotrsrvcnt')"/>
- <Cell col="9" displaytype="number" text="expr:lf_setSum('totrsrvcnt')"/>
- <Cell col="10" displaytype="number" text="expr:lf_setSum('sumtest')"/>
- <Cell col="11" displaytype="number" style="align:right middle;" text="expr:lf_setSum('incomparerate')" mask="##0%"/>
- <Cell col="12" displaytype="number" style="align:right middle;" text="expr:lf_setSum('outcomparerate')" mask="##0%"/>
- <Cell col="13" displaytype="number" style="align:right middle;" text="expr:lf_setSum('comparerate')" mask="##0%"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="처방코드" id="case2">
- <Layouts>
- <Layout>
- <Grid id="datagrid2" taborder="0" binddataset="ds_main_list1_item" useinputpanel="false" position="absolute 0 0 1195 640" selecttype="multirow" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="166"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="0"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="84"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- <Row size="24" band="summ"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" text="치료실" taborder="undefined"/>
- <Cell col="1" colspan="3" text="치료건수" taborder="undefined"/>
- <Cell col="4" colspan="3" text="비교기간건수" taborder="undefined"/>
- <Cell col="7" colspan="3" text="증감" taborder="undefined"/>
- <Cell col="10" text="caption1"/>
- <Cell col="11" colspan="3" text="증감율" taborder="undefined"/>
- <Cell row="1" col="1" text="입원"/>
- <Cell row="1" col="2" text="외래"/>
- <Cell row="1" col="3" text="합계"/>
- <Cell row="1" col="4" text="입원"/>
- <Cell row="1" col="5" text="외래"/>
- <Cell row="1" col="6" text="합계"/>
- <Cell row="1" col="7" text="입원"/>
- <Cell row="1" col="8" text="외래"/>
- <Cell row="1" col="9" text="합계"/>
- <Cell row="1" col="10" text="caption1"/>
- <Cell row="1" col="11" text="입원"/>
- <Cell row="1" col="12" text="외래"/>
- <Cell row="1" col="13" text="합계"/>
- </Band>
- <Band id="body">
- <Cell displaytype="text" text="bind:curerm"/>
- <Cell col="1" displaytype="number" text="bind:intestexeccnt"/>
- <Cell col="2" displaytype="number" text="bind:outtestexeccnt"/>
- <Cell col="3" displaytype="number" text="bind:sumcnt"/>
- <Cell col="4" displaytype="number" text="bind:intotexeccnt"/>
- <Cell col="5" displaytype="number" text="bind:outtotexeccnt"/>
- <Cell col="6" displaytype="number" text="bind:totexeccnt"/>
- <Cell col="7" displaytype="number" text="bind:intotrsrvcnt"/>
- <Cell col="8" displaytype="number" text="bind:outtotrsrvcnt"/>
- <Cell col="9" displaytype="number" text="bind:totrsrvcnt"/>
- <Cell col="10" displaytype="number" text="bind:sumtest"/>
- <Cell col="11" displaytype="number" text="bind:incomparerate" mask="##0%"/>
- <Cell col="12" displaytype="number" text="bind:outcomparerate" mask="##0%"/>
- <Cell col="13" displaytype="number" text="bind:comparerate" mask="##0%"/>
- </Band>
- <Band id="summary">
- <Cell text="합계"/>
- <Cell col="1" displaytype="number" text="expr:lf_setSum('intestexeccnt')"/>
- <Cell col="2" displaytype="number" text="expr:lf_setSum('outtestexeccnt')"/>
- <Cell col="3" displaytype="number" text="expr:lf_setSum('sumcnt')"/>
- <Cell col="4" displaytype="number" text="expr:lf_setSum('intotexeccnt')"/>
- <Cell col="5" displaytype="number" text="expr:lf_setSum('outtotexeccnt')"/>
- <Cell col="6" displaytype="number" text="expr:lf_setSum('totexeccnt')"/>
- <Cell col="7" displaytype="number" text="expr:lf_setSum('intotrsrvcnt')"/>
- <Cell col="8" displaytype="number" text="expr:lf_setSum('outtotrsrvcnt')"/>
- <Cell col="9" displaytype="number" text="expr:lf_setSum('totrsrvcnt')"/>
- <Cell col="10" displaytype="number" text="expr:lf_setSum('sumtest')"/>
- <Cell col="11" displaytype="number" style="align:right middle;" text="expr:lf_setSum('incomparerate')" mask="##0%"/>
- <Cell col="12" displaytype="number" style="align:right middle;" text="expr:lf_setSum('outcomparerate')" mask="##0%"/>
- <Cell col="13" displaytype="number" style="align:right middle;" text="expr:lf_setSum('comparerate')" mask="##0%"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Static text="재활의학팀치료건수" position="absolute 130 80 330 101" id="caption1" class="tit_2" anchor="default"/>
- <Button position="absolute 1115 76 1195 98" id="button1" class="btn7" text="엑셀저장" anchor="top right" onclick="grp_biz_button1_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="재활의학팀치료건수" class="tit_1" position="absolute 0 0 160 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_list_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="curerm" type="STRING" size="256"/>
- <Column id="intestexeccnt" type="STRING" size="256"/>
- <Column id="outtestexeccnt" type="STRING" size="256"/>
- <Column id="sumcnt" type="STRING" size="256"/>
- <Column id="totexeccnt" type="STRING" size="256"/>
- <Column id="totrsrvcnt" type="STRING" size="256"/>
- <Column id="comparerate" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="curerm"/>
- <Col id="intestexeccnt"/>
- <Col id="outtestexeccnt"/>
- <Col id="sumcnt"/>
- <Col id="totexeccnt"/>
- <Col id="totrsrvcnt"/>
- <Col id="comparerate"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list1_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="curerm" type="STRING" size="256"/>
- <Column id="intestexeccnt" type="STRING" size="256"/>
- <Column id="outtestexeccnt" type="STRING" size="256"/>
- <Column id="sumcnt" type="STRING" size="256"/>
- <Column id="totexeccnt" type="STRING" size="256"/>
- <Column id="totrsrvcnt" type="STRING" size="256"/>
- <Column id="comparerate" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="curerm"/>
- <Col id="intestexeccnt"/>
- <Col id="outtestexeccnt"/>
- <Col id="sumcnt"/>
- <Col id="totexeccnt"/>
- <Col id="totrsrvcnt"/>
- <Col id="comparerate"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchdate" type="STRING" size="256"/>
- <Column id="suppdeptcd" type="STRING" size="256"/>
- <Column id="execfromdd" type="STRING" size="256"/>
- <Column id="exectodd" type="STRING" size="256"/>
- <Column id="comparefromdd" type="STRING" size="256"/>
- <Column id="comparetodd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="fstpatyn" type="STRING" size="256"/>
- <Column id="curerm" type="STRING" size="256"/>
- <Column id="curedr" type="STRING" size="256"/>
- <Column id="prcpcd" type="STRING" size="256"/>
- <Column id="execdrid" type="STRING" size="256"/>
- <Column id="srchflag" type="STRING" size="256"/>
- <Column id="srchtab" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchdate"/>
- <Col id="suppdeptcd"/>
- <Col id="execfromdd"/>
- <Col id="exectodd"/>
- <Col id="comparefromdd"/>
- <Col id="comparetodd"/>
- <Col id="orddeptcd"/>
- <Col id="fstpatyn"/>
- <Col id="curerm"/>
- <Col id="curedr"/>
- <Col id="prcpcd"/>
- <Col id="execdrid"/>
- <Col id="srchflag">T</Col>
- <Col id="srchtab"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_inti_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_inti_execdrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_inti_curerm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_inti_prcpcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.grp_sea.ipt_todd" propid="value" datasetid="ds_send" columnid="exectodd"/>
- <BindItem id="item1" compid="grp_biz.grp_sea.ipt_fromdd" propid="value" datasetid="ds_send" columnid="execfromdd"/>
- <BindItem id="item2" compid="grp_biz.grp_sea.input1" propid="value" datasetid="ds_send" columnid="comparetodd"/>
- <BindItem id="item3" compid="grp_biz.grp_sea.input2" propid="value" datasetid="ds_send" columnid="comparefromdd"/>
- <BindItem id="item4" compid="grp_biz.grp_sea.cmb_orddept" propid="value" datasetid="ds_send" columnid="orddeptcd"/>
- <BindItem id="item5" compid="grp_biz.grp_sea.cmb_execdrid" propid="value" datasetid="ds_send" columnid="execdrid"/>
- <BindItem id="item6" compid="grp_biz.grp_sea.cmb_curerm" propid="value" datasetid="ds_send" columnid="curerm"/>
- <BindItem id="item7" compid="grp_biz.grp_sea.cmb_prcpcd" propid="value" datasetid="ds_send" columnid="prcpcd"/>
- <BindItem id="item8" compid="grp_biz.grp_sea.radio1" propid="value" datasetid="ds_send" columnid="fstpatyn"/>
- <BindItem id="item9" compid="grp_biz.grp_sea.radio2" propid="value" datasetid="ds_send" columnid="srchflag"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-09-30
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-09-30 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- var gSuppdeptcd = "";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : colNm - 대상컬럼
- * Description : expr사용 합계 함수
- ****************************************************************************************/
- function lf_setSum(colNm){
- var totsum = 0 ;
- if(colNm == "incomparerate") {
- var intestexeccnt = ds_main_list_item.getSum("intestexeccnt");
- var intotexeccnt = ds_main_list_item.getSum("intotexeccnt");
- totsum = ((intestexeccnt - intotexeccnt) / intotexeccnt * 100);
- totsum = totsum.toString().getRound(-1,"HALF_UP");
- } else if(colNm == "outcomparerate") {
- var outtestexeccnt = ds_main_list_item.getSum("outtestexeccnt");
- var outtotexeccnt = ds_main_list_item.getSum("outtotexeccnt");
- totsum = ((outtestexeccnt - outtotexeccnt) / outtotexeccnt * 100);
- totsum = totsum.toString().getRound(-1,"HALF_UP");
- } else if(colNm == "comparerate") {
- var sumprcp = ds_main_list_item.getSum("sumcnt");
- var totexeccnt = ds_main_list_item.getSum("totexeccnt");
- totsum = ((sumprcp - totexeccnt) / totexeccnt * 100);
- totsum = totsum.toString().getRound(-1,"HALF_UP");
- } else {
- totsum = ds_main_list_item.getSum(colNm);
- }
-
- return totsum;
- }
- /****************************************************************************************
- * Argument : colNm - 대상컬럼
- * Description : expr사용 합계 함수
- ****************************************************************************************/
- function lf_setSum1(colNm){
- var totsum = 0 ;
- if(colNm == "incomparerate") {
- var intestexeccnt = ds_main_list1_item.getSum("intestexeccnt");
- var intotexeccnt = ds_main_list1_item.getSum("intotexeccnt");
- totsum = ((intestexeccnt - intotexeccnt) / intotexeccnt * 100);
- totsum = totsum.toString().getRound(-1,"HALF_UP");
- } else if(colNm == "outcomparerate") {
- var outtestexeccnt = ds_main_list1_item.getSum("outtestexeccnt");
- var outtotexeccnt = ds_main_list1_item.getSum("outtotexeccnt");
- totsum = ((outtestexeccnt - outtotexeccnt) / outtotexeccnt * 100);
- totsum = totsum.toString().getRound(-1,"HALF_UP");
- } else if(colNm == "comparerate") {
- var sumprcp = ds_main_list1_item.getSum("sumcnt");
- var totexeccnt = ds_main_list1_item.getSum("totexeccnt");
- totsum = ((sumprcp - totexeccnt) / totexeccnt * 100);
- totsum = totsum.toString().getRound(-1,"HALF_UP");
- } else {
- totsum = ds_main_list1_item.getSum(colNm);
- }
-
- return totsum;
- }
-
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMAES01100_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
- gSuppdeptcd = frmf_getParameter("AST_DEPTCD");
-
- dsf_createDsRow("ds_req", [
- {col:"suppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
- , {col:"rbasecdflag", type:"STRING", size:256, val:"0"}
- ]);
- var oParam = {};
- oParam.id = "TRAES09000";
- oParam.service = "examcurestatsapp.RehbMediSc";
- oParam.method = "reqGetCode";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_inti_execdrid=execdrid ds_inti_curerm=curerm ds_inti_prcpcd=prcpcd ds_inti_orddeptcd=orddeptcd";
- oParam.async = false;
- oParam.callback = "cf_TRAES09000";
- tranf_submit(oParam);
-
- ds_send.setColumn( 0, "suppdeptcd", gSuppdeptcd);
- var fromdd = utlf_getCurrentDate().substr(0,4) + "0101"
- var todd = utlf_getLastDate(utlf_getCurrentDate());
- var comparefromdd = utlf_getCurrentDate().substr(0,6).toDate().getAddDate(0,"Y").getDateFormat("YYYY") + "0101";
- var comparetodd = comparefromdd.substr(0,4) + todd.substr(4,4);
- frmf_addComboItem("grp_biz.grp_sea.cmb_orddept","--전체--","","above");
- frmf_addComboItem("grp_biz.grp_sea.cmb_curerm","--전체--","","above");
- frmf_addComboItem("grp_biz.grp_sea.cmb_execdrid","--전체--","","above");
- frmf_addComboItem("grp_biz.grp_sea.cmb_prcpcd","--전체--","","above");
-
- grp_biz.grp_sea.cmb_curerm.index = 0;
- grp_biz.grp_sea.cmb_execdrid.index = 0;
- grp_biz.grp_sea.cmb_orddept.index = 0;
- grp_biz.grp_sea.cmb_prcpcd.index = 0;
-
- ds_main_list_item.clearData();
- ds_main_list1_item.clearData();
- ds_send.setColumn( 0, "fstpatyn","");
- ds_send.setColumn( 0, "execfromdd", fromdd);
- ds_send.setColumn( 0, "exectodd", todd);
- ds_send.setColumn( 0, "comparefromdd",comparefromdd);
- ds_send.setColumn( 0, "comparetodd",comparetodd);
- }
- function cf_TRAES09000(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- ds_inti_execdrid.updateColID("basecd","cd");
- ds_inti_execdrid.updateColID("basecdflagdesc","nm");
- ds_inti_curerm.updateColID("basecd","cd");
- ds_inti_curerm.updateColID("basecdflagdesc","nm");
- ds_inti_prcpcd.updateColID("basecd","cd");
- ds_inti_prcpcd.updateColID("basecdflagdesc","nm");
- }
- function grp_biz_grp_sea_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- var execfromdd = ds_send.getColumn(0, "execfromdd");
- var exectodd = ds_send.getColumn(0, "exectodd");
- if (execfromdd > exectodd) {
- sysf_messageBox("조회기간 시작일자가 조회기간 종료일자 이후 일자입니다.", "I");
- ds_send.setColumn( 0, "execfromdd",exectodd);
- // execfromdd = exectodd;
- }
- }
- function grp_biz_grp_sea_ipt_todd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- var exectodd = ds_send.getColumn(0, "exectodd");
- var execfromdd = ds_send.getColumn(0, "execfromdd");
- if (execfromdd > exectodd) {
- sysf_messageBox("조회기간 종료일자가 조회기간 시작일자 이전 일자입니다.", "I");
- ds_send.setColumn( 0, "exectodd",execfromdd);
- // exectodd = execfromdd;
- }
- }
- function grp_biz_grp_sea_input2_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- var comparefromdd = ds_send.getColumn(0, "comparefromdd");
- var comparetodd = ds_send.getColumn(0, "comparetodd");
- if (comparefromdd > comparetodd) {
- sysf_messageBox("비교조회기간 시작일자가 비교조회기간 종료일자 이후 일자입니다.", "I");
- ds_send.setColumn( 0, "comparefromdd",comparetodd);
- // comparefromdd = comparetodd;
- }
- }
- function grp_biz_grp_sea_input1_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- var comparefromdd = ds_send.getColumn(0, "comparefromdd");
- var comparetodd = ds_send.getColumn(0, "comparetodd");
- if (comparefromdd > comparetodd) {
- sysf_messageBox("비교조회기간 종료일자가 비교조회기간 시작일자 이전 일자입니다.", "I");
- ds_send.setColumn( 0, "comparetodd",comparefromdd);
- // comparetodd = comparefromdd;
- }
- }
- function grp_biz_grp_sea_cmb_curerm_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- ds_inti_prcpcd.clearData();
- dsf_createDsRow("ds_req", [
- {col:"suppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
- , {col:"rbasecdflag", type:"STRING", size:256, val:"0"}
- , {col:"curerm", type:"STRING", size:256, val:e.postvalue}
- ]);
- var oParam = {};
- oParam.id = "TRAES09002";
- oParam.service = "examcurestatsapp.RehbMediSc";
- oParam.method = "reqGetCode";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_inti_prcpcd=prcpcd";
- oParam.async = false;
- oParam.callback = "cf_TRAES09002";
- tranf_submit(oParam);
- frmf_addComboItem("grp_biz.grp_sea.cmb_prcpcd","--전체--","","above");
- grp_biz.grp_sea.cmb_prcpcd.index = 0;
- }
- function cf_TRAES09002(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- ds_inti_prcpcd.updateColID("basecd","cd");
- ds_inti_prcpcd.updateColID("basecdflagdesc","nm");
- }
- function grp_biz_grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_list_item.clearData();
- //R:치료실,C:치료코드,D:처방과,E:치료사
- dsf_createDs("ds_req1")
- ds_req1.copyData(ds_send);
- ds_req1.setColumn( 0, "srchtab","R");
- dsf_setFixVal(ds_req1, "systflag:C");
- var oParam = {};
- oParam.id = "TRAES01101";
- oParam.service = "examcurestatsapp.RehbMediSc";
- oParam.method = "reqGetRehbCureCnt";
- oParam.inds = "req=ds_req1";
- oParam.outds = "ds_main_list_item=item";
- oParam.async = true;
- //oParam.callback = "cf_TRAES01101";
- tranf_submit(oParam);
- ds_main_list1_item.clearData();
- dsf_createDs("ds_req2")
- ds_req2.copyData(ds_send);
- ds_req2.setColumn( 0, "srchtab","C");
- dsf_setFixVal(ds_req2, "systflag:C");
- var oParam = {};
- oParam.id = "TRAES01102";
- oParam.service = "examcurestatsapp.RehbMediSc";
- oParam.method = "reqGetRehbCureCnt";
- oParam.inds = "req=ds_req2";
- oParam.outds = "ds_main_list1_item=item";
- oParam.async = true;
- //oParam.callback = "cf_TRAES01102";
- tranf_submit(oParam);
- }
- function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- if(grp_biz.switch1.tabindex == 0) {
- if( ds_main_list_item.rowcount > 0 ){
- grdf_exportExcel(grp_biz.switch1.case1.datagrid1, "SheetName", "SheetName", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- } else {
- if( ds_main_list1_item.rowcount > 0 ){
- grdf_exportExcel(grp_biz.switch1.case2.datagrid2, "SheetName", "SheetName", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|