123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMABS11000" position="absolute 0 0 1280 737" titletext="처방별 조혈모세포처리 현황" onload="SMABS11000_onload">
- <Layouts>
- <Layout>
- <Div id="grp_biz" scrollbars="autoboth" position="absolute 0 47 1195 791" style="">
- <Layouts>
- <Layout>
- <Grid id="grd_daycelltret" binddataset="ds_main_celltret_daycelltretlist" position="absolute 0 81 1194 681" style="align:center ;">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="70"/>
- <Column size="250"/>
- <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"/>
- <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"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="63"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="23" band="head"/>
- <Row size="23"/>
- </Rows>
- <Band id="head">
- <Cell text="처방코드"/>
- <Cell col="1" text="처방내용"/>
- <Cell col="2" text="1일"/>
- <Cell col="3" text="2일"/>
- <Cell col="4" text="3일"/>
- <Cell col="5" text="4일"/>
- <Cell col="6" text="5일"/>
- <Cell col="7" text="6일"/>
- <Cell col="8" text="7일"/>
- <Cell col="9" text="8일"/>
- <Cell col="10" text="9일"/>
- <Cell col="11" text="10일"/>
- <Cell col="12" text="11일"/>
- <Cell col="13" text="12일"/>
- <Cell col="14" text="13일"/>
- <Cell col="15" text="14일"/>
- <Cell col="16" text="15일"/>
- <Cell col="17" text="16일"/>
- <Cell col="18" text="17일"/>
- <Cell col="19" text="18일"/>
- <Cell col="20" text="19일"/>
- <Cell col="21" text="20일"/>
- <Cell col="22" text="21일"/>
- <Cell col="23" text="22일"/>
- <Cell col="24" text="23일"/>
- <Cell col="25" text="24일"/>
- <Cell col="26" text="25일"/>
- <Cell col="27" text="26일"/>
- <Cell col="28" text="27일"/>
- <Cell col="29" text="28일"/>
- <Cell col="30" text="29일"/>
- <Cell col="31" text="30일"/>
- <Cell col="32" text="31일"/>
- <Cell col="33" text="Total"/>
- <Cell col="34" text="전월도"/>
- <Cell col="35" text="증감율"/>
- <Cell col="36" text=""/>
- <Cell col="37" text="7)"/>
- <Cell col="38" text="8)"/>
- </Band>
- <Band id="body">
- <Cell text="bind:codenm"/>
- <Cell col="1" text="bind:codenm2"/>
- <Cell col="2" text="bind:daycnt01"/>
- <Cell col="3" text="bind:daycnt02"/>
- <Cell col="4" text="bind:daycnt03"/>
- <Cell col="5" text="bind:daycnt04"/>
- <Cell col="6" text="bind:daycnt05"/>
- <Cell col="7" text="bind:daycnt06"/>
- <Cell col="8" text="bind:daycnt07"/>
- <Cell col="9" text="bind:daycnt08"/>
- <Cell col="10" text="bind:daycnt09"/>
- <Cell col="11" text="bind:daycnt10"/>
- <Cell col="12" text="bind:daycnt11"/>
- <Cell col="13" text="bind:daycnt12"/>
- <Cell col="14" text="bind:daycnt13"/>
- <Cell col="15" text="bind:daycnt14"/>
- <Cell col="16" text="bind:daycnt15"/>
- <Cell col="17" text="bind:daycnt16"/>
- <Cell col="18" text="bind:daycnt17"/>
- <Cell col="19" text="bind:daycnt18"/>
- <Cell col="20" text="bind:daycnt19"/>
- <Cell col="21" text="bind:daycnt20"/>
- <Cell col="22" text="bind:daycnt21"/>
- <Cell col="23" text="bind:daycnt22"/>
- <Cell col="24" text="bind:daycnt23"/>
- <Cell col="25" text="bind:daycnt24"/>
- <Cell col="26" text="bind:daycnt25"/>
- <Cell col="27" text="bind:daycnt26"/>
- <Cell col="28" text="bind:daycnt27"/>
- <Cell col="29" text="bind:daycnt28"/>
- <Cell col="30" text="bind:daycnt29"/>
- <Cell col="31" text="bind:daycnt30"/>
- <Cell col="32" text="bind:daycnt31"/>
- <Cell col="33" text="bind:daycnttotal"/>
- <Cell col="34" text="bind:beforeyearcnt"/>
- <Cell col="35" text="bind:cntaddper"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_monthcelltret" binddataset="ds_main_celltret_celltretlist" position="absolute 0 81 1194 681" style="align:center ;" dragscrolltype="none" visible="false">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="70"/>
- <Column size="250"/>
- <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"/>
- <Column size="63"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="23" band="head"/>
- <Row size="23"/>
- </Rows>
- <Band id="head">
- <Cell text="처방코드"/>
- <Cell col="1" text="처방내용"/>
- <Cell col="2" text="1월"/>
- <Cell col="3" text="2월"/>
- <Cell col="4" text="3월"/>
- <Cell col="5" text="4월"/>
- <Cell col="6" text="5월"/>
- <Cell col="7" text="6월"/>
- <Cell col="8" text="7월"/>
- <Cell col="9" text="8월"/>
- <Cell col="10" text="9월"/>
- <Cell col="11" text="10월"/>
- <Cell col="12" text="11월"/>
- <Cell col="13" text="12월"/>
- <Cell col="14" text="Total"/>
- <Cell col="15" text="전년도"/>
- <Cell col="16" text="증감율"/>
- <Cell col="17" text=""/>
- <Cell col="18" text="7)"/>
- <Cell col="19" text="8)"/>
- </Band>
- <Band id="body">
- <Cell text="bind:codenm"/>
- <Cell col="1" text="bind:codenm2"/>
- <Cell col="2" text="bind:monthcnt01"/>
- <Cell col="3" text="bind:monthcnt02"/>
- <Cell col="4" text="bind:monthcnt03"/>
- <Cell col="5" text="bind:monthcnt04"/>
- <Cell col="6" text="bind:monthcnt05"/>
- <Cell col="7" text="bind:monthcnt06"/>
- <Cell col="8" text="bind:monthcnt07"/>
- <Cell col="9" text="bind:monthcnt08"/>
- <Cell col="10" text="bind:monthcnt09"/>
- <Cell col="11" text="bind:monthcnt10"/>
- <Cell col="12" text="bind:monthcnt11"/>
- <Cell col="13" text="bind:monthcnt12"/>
- <Cell col="14" text="bind:monthcnttotal"/>
- <Cell col="15" text="bind:beforeyearcnt"/>
- <Cell col="16" text="bind:cntaddper"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption1" class="tit_2" position="absolute 5 59 215 80" style="" text="처방별 조혈모세포처리 현황"/>
- <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 76 1194 79" style="strokepen:4 solid #33bbbbff;" anchor="default"/>
- <Button id="button2" class="btn2" position="absolute 1129 56 1193 75" style="" text="엑셀저장" onclick="grp_biz_button2_onclick"/>
- <Div id="grp_sea" position="absolute 0 10 1194 45" style="align: top;">
- <Layouts>
- <Layout>
- <Shape id="roundrect2" anchor="default" type="roundrectangle" position="absolute 0 0 1194 35" style="border:1 solid #ffd799 #ffd799;background:#fffbf2 ;"/>
- <Static id="caption4" class="search_name" position="absolute 15 9 127 26" style="" text="기간(적용일) :"/>
- <Static id="caption7" class="search_no_b" position="absolute 233 10 245 27" style="" text="~"/>
- <Button id="button3" class="btn1" position="absolute 1123 9 1179 31" style="" text="조회" onclick="grp_biz_grp_sea_button3_onclick"/>
- <Shape id="line2" class="line_4" linetype="vertical" position="absolute 1107 9 1110 31" style="" anchor="default"/>
- <Calendar id="ipt_execfromdd" class="input_s_essential" position="absolute 130 8 230 27" style="" anchor="default" onkillfocus="grp_biz_grp_sea_ipt_execfromdd_onkillfocus"/>
- <Calendar id="ipt_exectodd" class="input_s_essential" position="absolute 248 8 348 27" style="" anchor="default" onkillfocus="grp_biz_grp_sea_ipt_exectodd_onkillfocus"/>
- <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="rdo_monthday" class="radio_search" position="absolute 358 7 448 27" style="" onitemchanged="grp_biz_grp_sea_rdo_monthday_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">M</Col>
- <Col id="datacolumn">월별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">D</Col>
- <Col id="datacolumn">일별</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption9" class="search_name" position="absolute 492 10 604 27" style="" text="비교(적용일) :" visible="false"/>
- <Calendar id="ipt_execfromdd2" class="input_s_essential" visible="false" position="absolute 607 5 707 24" style="" anchor="default"/>
- <Static id="caption2" class="search_no_b" position="absolute 710 7 722 24" style="" text="~" visible="false"/>
- <Calendar id="ipt_exectodd2" class="input_s_essential" visible="false" position="absolute 725 5 825 24" style="" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_tle" position="absolute 0 1 1195 30" style="">
- <Layouts>
- <Layout>
- <Static id="caption6" class="tit_1" position="absolute 0 0 210 22" style="" text="처방별 조혈모세포처리 현황" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_btn" position="absolute 0 20 1195 47" style="">
- <Layouts>
- <Layout>
- <Button id="btn_prt" class="btn6" visible="false" position="absolute 0 5 56 27" style="" text="출력"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_celltret_daycelltretlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="codenm" type="STRING" size="256"/>
- <Column id="codenm2" type="STRING" size="256"/>
- <Column id="daycnt01" type="STRING" size="256"/>
- <Column id="daycnt02" type="STRING" size="256"/>
- <Column id="daycnt03" type="STRING" size="256"/>
- <Column id="daycnt04" type="STRING" size="256"/>
- <Column id="daycnt05" type="STRING" size="256"/>
- <Column id="daycnt06" type="STRING" size="256"/>
- <Column id="daycnt07" type="STRING" size="256"/>
- <Column id="daycnt08" type="STRING" size="256"/>
- <Column id="daycnt09" type="STRING" size="256"/>
- <Column id="daycnt10" type="STRING" size="256"/>
- <Column id="daycnt11" type="STRING" size="256"/>
- <Column id="daycnt12" type="STRING" size="256"/>
- <Column id="daycnt13" type="STRING" size="256"/>
- <Column id="daycnt14" type="STRING" size="256"/>
- <Column id="daycnt15" type="STRING" size="256"/>
- <Column id="daycnt16" type="STRING" size="256"/>
- <Column id="daycnt17" type="STRING" size="256"/>
- <Column id="daycnt18" type="STRING" size="256"/>
- <Column id="daycnt19" type="STRING" size="256"/>
- <Column id="daycnt20" type="STRING" size="256"/>
- <Column id="daycnt21" type="STRING" size="256"/>
- <Column id="daycnt22" type="STRING" size="256"/>
- <Column id="daycnt23" type="STRING" size="256"/>
- <Column id="daycnt24" type="STRING" size="256"/>
- <Column id="daycnt25" type="STRING" size="256"/>
- <Column id="daycnt26" type="STRING" size="256"/>
- <Column id="daycnt27" type="STRING" size="256"/>
- <Column id="daycnt28" type="STRING" size="256"/>
- <Column id="daycnt29" type="STRING" size="256"/>
- <Column id="daycnt30" type="STRING" size="256"/>
- <Column id="daycnt31" type="STRING" size="256"/>
- <Column id="daycnttotal" type="STRING" size="256"/>
- <Column id="beforeyearcnt" type="STRING" size="256"/>
- <Column id="cntaddper" type="STRING" size="256"/>
- <Column id="prcpcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codenm"/>
- <Col id="codenm2"/>
- <Col id="daycnt01"/>
- <Col id="daycnt02"/>
- <Col id="daycnt03"/>
- <Col id="daycnt04"/>
- <Col id="daycnt05"/>
- <Col id="daycnt06"/>
- <Col id="daycnt07"/>
- <Col id="daycnt08"/>
- <Col id="daycnt09"/>
- <Col id="daycnt10"/>
- <Col id="daycnt11"/>
- <Col id="daycnt12"/>
- <Col id="daycnt13"/>
- <Col id="daycnt14"/>
- <Col id="daycnt15"/>
- <Col id="daycnt16"/>
- <Col id="daycnt17"/>
- <Col id="daycnt18"/>
- <Col id="daycnt19"/>
- <Col id="daycnt20"/>
- <Col id="daycnt21"/>
- <Col id="daycnt22"/>
- <Col id="daycnt23"/>
- <Col id="daycnt24"/>
- <Col id="daycnt25"/>
- <Col id="daycnt26"/>
- <Col id="daycnt27"/>
- <Col id="daycnt28"/>
- <Col id="daycnt29"/>
- <Col id="daycnt30"/>
- <Col id="daycnt31"/>
- <Col id="daycnttotal"/>
- <Col id="beforeyearcnt"/>
- <Col id="cntaddper"/>
- <Col id="prcpcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hidden" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_celltret_celltretlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="codenm" type="STRING" size="256"/>
- <Column id="codenm2" type="STRING" size="256"/>
- <Column id="monthcnt01" type="STRING" size="256"/>
- <Column id="monthcnt02" type="STRING" size="256"/>
- <Column id="monthcnt03" type="STRING" size="256"/>
- <Column id="monthcnt04" type="STRING" size="256"/>
- <Column id="monthcnt05" type="STRING" size="256"/>
- <Column id="monthcnt06" type="STRING" size="256"/>
- <Column id="monthcnt07" type="STRING" size="256"/>
- <Column id="monthcnt08" type="STRING" size="256"/>
- <Column id="monthcnt09" type="STRING" size="256"/>
- <Column id="monthcnt10" type="STRING" size="256"/>
- <Column id="monthcnt11" type="STRING" size="256"/>
- <Column id="monthcnt12" type="STRING" size="256"/>
- <Column id="monthcnttotal" type="STRING" size="256"/>
- <Column id="beforeyearcnt" type="STRING" size="256"/>
- <Column id="cntaddper" type="STRING" size="256"/>
- <Column id="prcpcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codenm"/>
- <Col id="codenm2"/>
- <Col id="monthcnt01"/>
- <Col id="monthcnt02"/>
- <Col id="monthcnt03"/>
- <Col id="monthcnt04"/>
- <Col id="monthcnt05"/>
- <Col id="monthcnt06"/>
- <Col id="monthcnt07"/>
- <Col id="monthcnt08"/>
- <Col id="monthcnt09"/>
- <Col id="monthcnt10"/>
- <Col id="monthcnt11"/>
- <Col id="monthcnt12"/>
- <Col id="monthcnttotal"/>
- <Col id="beforeyearcnt"/>
- <Col id="cntaddper"/>
- <Col id="prcpcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="execfromdd" type="STRING" size="256"/>
- <Column id="exectodd" type="STRING" size="256"/>
- <Column id="execfromdd2" type="STRING" size="256"/>
- <Column id="exectodd2" type="STRING" size="256"/>
- <Column id="prcpexecdeptcd" type="STRING" size="256"/>
- <Column id="searchflag" type="STRING" size="256"/>
- <Column id="monthdayflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="execfromdd"/>
- <Col id="exectodd"/>
- <Col id="execfromdd2"/>
- <Col id="exectodd2"/>
- <Col id="prcpexecdeptcd"/>
- <Col id="searchflag">D</Col>
- <Col id="monthdayflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_celltret" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cntaddper" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="init" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="init"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_message" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.grp_sea.ipt_execfromdd" propid="value" datasetid="ds_send_req" columnid="execfromdd"/>
- <BindItem id="item1" compid="grp_biz.grp_sea.ipt_exectodd" propid="value" datasetid="ds_send_req" columnid="exectodd"/>
- <BindItem id="item2" compid="grp_biz.grp_sea.rdo_monthday" propid="value" datasetid="ds_send_req" columnid="monthdayflag"/>
- <BindItem id="item3" compid="grp_biz.grp_sea.ipt_execfromdd2" propid="value" datasetid="ds_send_req" columnid="execfromdd2"/>
- <BindItem id="item4" compid="grp_biz.grp_sea.ipt_exectodd2" propid="value" datasetid="ds_send_req" columnid="exectodd2"/>
- </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 "com_basiccodexp::ZBC001.xjs";
- function SMABS11000_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- // 시행부서처방도 가져오기 위해서 현재 로그인 한 사람의 실제 근무지를 가져온다.
- ds_send_req.setColumn( 0, "prcpexecdeptcd", sysf_getUserInfo("dutplcecd"));
-
- //model.refresh();
- // grp_biz.grp_sea.rdo_monthday.select(1);
- ds_send_req.setColumn( 0, "monthdayflag", "D");
-
- fSetDefaultDD();
- }
- //스크립트 시작 ***
- //전체에서 event와 src를 제외한 script 를 모두포함.
- /* _group : 처방별 조혈모세포처리건수
- * _ver : 2008.08.29
- * _by : 김은지
- * _type : function
- * _access : public
- * _desc : 월별_일별 디폴트 날짜 지정
- * _param :
- */
- function fSetDefaultDD(){
- var scurrentdd = utlf_getCurrentDate();
- if(ds_send_req.getColumn(0, "monthdayflag") == "D"){
- ds_send_req.setColumn( 0, "execfromdd", scurrentdd);
- ds_send_req.setColumn( 0, "exectodd", scurrentdd);
- ds_send_req.setColumn( 0, "execfromdd2", scurrentdd.toDate().getAddDate(-1, "M").getDateFormat("YYYYMMDD"));
- ds_send_req.setColumn( 0, "exectodd2", scurrentdd.toDate().getAddDate(-1, "M").getDateFormat("YYYYMMDD"));
- }
- else{
- var scurrentdd2 = scurrentdd.toDate().getAddDate(-30).getDateFormat("YYYYMMDD");
- ds_send_req.setColumn( 0, "execfromdd", scurrentdd.toDate().getAddDate(-30,"D").getDateFormat("YYYYMMDD"));
- ds_send_req.setColumn( 0, "exectodd", scurrentdd.toDate().getAddDate(30,"D").getDateFormat("YYYYMMDD"));
- ds_send_req.setColumn( 0, "execfromdd2", scurrentdd.toDate().getAddDate(-30,"D").getDateFormat("YYYYMMDD"));
- ds_send_req.setColumn( 0, "exectodd2", scurrentdd.toDate().getAddDate(30,"D").getDateFormat("YYYYMMDD"));
- }
- //model.refresh();
- }
- /* _group : 처방별 조혈모세포처리건수
- * _ver : 2008.07.16
- * _by : 박중규
- * _type : function
- * _access : public
- * _desc : 이식처리건수
- * _param :
- */
- function fGetCellTrpeInfo(){
- if(ds_send_req.getColumn(0, "monthdayflag") == "D"){
- // submit("TRABS10202");
- var oParam = {};
- oParam.id = "TRABS10202";
- oParam.service = "hsctstemcellapp.StemCellTreat";
- oParam.method = "reqGetCellTretStats";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_main_celltret_daycelltretlist=celltretlist ds_main_message=message";
- oParam.async = false;
- //oParam.callback = "cf_TRABS10202";
- tranf_submit(oParam);
- }
- else{
- // submit("TRABS10201");
- var oParam = {};
- oParam.id = "TRABS10201";
- oParam.service = "hsctstemcellapp.StemCellTreat";
- oParam.method = "reqGetCellTretStats";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_main_celltret_celltretlist=celltretlist ds_main_message=message";
- oParam.async = false;
- //oParam.callback = "cf_TRABS10201";
- tranf_submit(oParam);
- }
- if(ds_send_req.getColumn(0, "monthdayflag") == "M"){
- // 전년 대비 증감율을 구한다.
- var nodelist = ds_main_celltret_celltretlist.rowcount;
- for (var i = 0; i < nodelist ; i ++) {
- var iMonthCntTotal = ds_main_celltret_celltretlist.getColumn(i, "monthcnttotal");
- var iBeforeYearCnt = ds_main_celltret_celltretlist.getColumn(i, "beforeyearcnt");
- if ( utlf_isNull(iMonthCntTotal) || utlf_isNull(iBeforeYearCnt) || iBeforeYearCnt == 0 ) {
- ds_main_celltret.setColumn( i , "cntaddper", "");
- } else {
- var dCntAddPer = ((parseFloat(iMonthCntTotal) - parseFloat(iBeforeYearCnt)) / parseFloat(iBeforeYearCnt)) * 100;
- ds_main_celltret.setColumn( i , "cntaddper", (Math.round(dCntAddPer * 100) / 100));
- }
- }
- }
- else{
- // 전월도 대비 증감율을 구한다.
- var nodelist2 = ds_main_celltret_daycelltretlist.rowcount;
- for (var i = 0; i < nodelist2.length ; i ++) {
- var iDayCntTotal = ds_main_celltret_daycelltretlist.getColumn(i, "daycnttotal");
- var iBeforeYearCnt = ds_main_celltret_daycelltretlist.getColumn(i, "beforeyearcnt");
- if ( utlf_isNull(iDayCntTotal) || utlf_isNull(iBeforeYearCnt) || iBeforeYearCnt == 0 ) {
- ds_main_celltret.setColumn( i , "cntaddper", "");
- } else {
- var dCntAddPer = ((parseFloat(iDayCntTotal) - parseFloat(iBeforeYearCnt)) / parseFloat(iBeforeYearCnt)) * 100;
- ds_main_celltret.setColumn( i , "cntaddper", (Math.round(dCntAddPer * 100) / 100));
- }
- }
- }
- //model.refresh();
- }
- function grp_biz_button2_onclick(obj:Button, e:ClickEventInfo) {
- if(ds_send_req.getColumn(0, "monthdayflag") == "M") {
- // var fileName = window.fileDialog("save", ",", false, "처방별조혈모세포처리현황(월별)", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- //
- // if (fileName != "")
- // {
- // grp_biz.grd_monthcelltret.saveExcel(fileName);
- // }
-
- grdf_exportExcel(grp_biz.grd_monthcelltret, "처방별조혈모세포처리현황(월별)", "처방별조혈모세포처리현황(월별)", false, "", "", false);
- }
- else{
- // var fileName = window.fileDialog("save", ",", false, "처방별조혈모세포처리현황(일별)", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- //
- // if (fileName != "")
- // {
- // grp_biz.grd_daycelltret.saveExcel(fileName);
- // }
- grdf_exportExcel(grp_biz.grd_daycelltret, "처방별조혈모세포처리현황(일별)", "처방별조혈모세포처리현황(일별)", false, "", "", false);
- }
- }
- function grp_biz_grp_sea_button3_onclick(obj:Button, e:ClickEventInfo) {
- fGetCellTrpeInfo();
- }
- function grp_biz_grp_sea_ipt_execfromdd_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
- var fromdd = ds_send_req.getColumn(0, "execfromdd");
- var oCurYear = fromdd.toDate().getDateFormat("YYYY");
- var oCurMonth = fromdd.toDate().getDateFormat("MM");
- var flag = "";
- var oMaxDay = new Date(new Date(oCurYear, oCurMonth, 1)-86400000).getDate();
- var oMaxDay2 = new Date(new Date(oCurYear, oCurMonth -1, 1)-86400000).getDate();
- if(grp_biz.grp_sea.rdo_monthday.value == "D"){
- flag = "M";
- }else {
- flag = "Y";
- }
- if(flag == "M" && oMaxDay == fromdd.toDate().getDateFormat("DD")){
- ds_send_req.setColumn( 0, "execfromdd2", (oCurYear + oCurMonth + "01").toDate().getAddDate(-1, flag).getDateFormat("YYYYMM") + oMaxDay2);
- }else{
- ds_send_req.setColumn( 0, "execfromdd2", (fromdd ).toDate().getAddDate(-1, flag).getDateFormat("YYYYMMDD"));
- }
- //model.refresh();
- }
- function grp_biz_grp_sea_ipt_exectodd_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
- var todd = ds_send_req.getColumn(0, "exectodd");
- var oCurYear = todd.toDate().getDateFormat("YYYY");
- var oCurMonth = todd.toDate().getDateFormat("MM");
- var flag = "";
- var oMaxDay = new Date(new Date(oCurYear, oCurMonth, 1)-86400000).getDate();
- var oMaxDay2 = new Date(new Date(oCurYear, oCurMonth -1, 1)-86400000).getDate();
- if(grp_biz.grp_sea.rdo_monthday.value == "D"){
- flag = "M";
- }else {
- flag = "Y";
- }
- if(flag == "M" && oMaxDay == todd.toDate().getDateFormat("DD")){
- ds_send_req.setColumn( 0, "exectodd2", (oCurYear + oCurMonth + "01").toDate().getAddDate(-1, flag).getDateFormat("YYYYMM") + oMaxDay2);
- }else{
- ds_send_req.setColumn( 0, "exectodd2", (todd ).toDate().getAddDate(-1, flag).getDateFormat("YYYYMMDD"));
- }
- //model.refresh();
- }
- function grp_biz_grp_sea_rdo_monthday_onitemchanged(obj:Radio, e:ItemChangeEventInfo) {
- fSetDefaultDD();
- var fromdd = ds_send_req.getColumn(0, "execfromdd");
- var todd = ds_send_req.getColumn(0, "exectodd");
-
- if(grp_biz.grp_sea.rdo_monthday.value == "D"){
- grp_biz.grd_monthcelltret.visible = false;
- grp_biz.grd_daycelltret.visible = true;
- // grp_biz.grp_sea.ipt_execfromdd.attribute("maxlength") = "8";
- // grp_biz.grp_sea.ipt_exectodd.attribute("maxlength") = "8";
- // grp_biz.grp_sea.ipt_execfromdd2.attribute("maxlength") = "8";
- // grp_biz.grp_sea.ipt_exectodd2.attribute("maxlength") = "8";
- grp_biz.grp_sea.ipt_execfromdd.dateformat = "yyyy-MM-dd";
- grp_biz.grp_sea.ipt_exectodd.dateformat = "yyyy-MM-dd";
- grp_biz.grp_sea.ipt_execfromdd2.dateformat = "yyyy-MM-dd";
- grp_biz.grp_sea.ipt_exectodd2.dateformat = "yyyy-MM-dd";
- }
- else{
- grp_biz.grd_monthcelltret.visible = true;
- grp_biz.grd_daycelltret.visible = false;
- grp_biz.grp_sea.ipt_execfromdd.dateformat = "yyyy-MM";
- grp_biz.grp_sea.ipt_exectodd.dateformat = "yyyy-MM";
- grp_biz.grp_sea.ipt_execfromdd2.dateformat = "yyyy-MM";
- grp_biz.grp_sea.ipt_exectodd2.dateformat = "yyyy-MM";
-
- //grp_biz.grp_sea.ipt_execfromdd.mask = "####-##";
- // grp_biz.grp_sea.ipt_exectodd.mask = "####-##";
- // grp_biz.grp_sea.ipt_execfromdd2.mask = "####-##";
- // grp_biz.grp_sea.ipt_exectodd2.mask = "####-##";
- ds_send_req.setColumn( 0, "execfromdd2", (fromdd + 1).toDate().getAddDate(-1, "Y").getDateFormat("YYYYMMDD"));
- ds_send_req.setColumn( 0, "exectodd2", (todd + 1).toDate().getAddDate(-1, "Y").getDateFormat("YYYYMMDD"));
- }
- //model.refresh();
- }
- ]]></Script>
- </Form>
- </FDL>
|