123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMABS10200" position="absolute 0 0 1199 728" titletext="처방별 조혈모세포처리 현황" oninit="SMABS10200_oninit" onload="SMABS10200_onload">
- <Layouts>
- <Layout>
- <Grid id="grd_monthcelltret" taborder="3" binddataset="ds_main_celltret_celltretlist" useinputpanel="false" position="absolute 0 121 1194 721" autoenter="select" cellsizingtype="col" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <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="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="처방코드"/>
- <Cell col="2" text="처방내용"/>
- <Cell col="3" text="1월"/>
- <Cell col="4" text="2월"/>
- <Cell col="5" text="3월"/>
- <Cell col="6" text="4월"/>
- <Cell col="7" text="5월"/>
- <Cell col="8" text="6월"/>
- <Cell col="9" text="7월"/>
- <Cell col="10" text="8월"/>
- <Cell col="11" text="9월"/>
- <Cell col="12" text="10월"/>
- <Cell col="13" text="11월"/>
- <Cell col="14" text="12월"/>
- <Cell col="15" text="Total"/>
- <Cell col="16" text="전년도"/>
- <Cell col="17" text="증감율"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" celltype="head" edittype="none" text="bind:codenm"/>
- <Cell col="2" celltype="head" edittype="none" text="bind:codenm2"/>
- <Cell col="3" displaytype="none" edittype="none" text="bind:monthcnt01"/>
- <Cell col="4" text="bind:monthcnt02"/>
- <Cell col="5" text="bind:monthcnt03"/>
- <Cell col="6" text="bind:monthcnt04"/>
- <Cell col="7" text="bind:monthcnt05"/>
- <Cell col="8" text="bind:monthcnt06"/>
- <Cell col="9" text="bind:monthcnt07"/>
- <Cell col="10" text="bind:monthcnt08"/>
- <Cell col="11" text="bind:monthcnt09"/>
- <Cell col="12" text="bind:monthcnt10"/>
- <Cell col="13" text="bind:monthcnt11"/>
- <Cell col="14" text="bind:monthcnt12"/>
- <Cell col="15" text="bind:monthcnttotal"/>
- <Cell col="16" text="bind:beforeyearcnt"/>
- <Cell col="17" text="bind:cntaddper"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_daycelltret" taborder="2" binddataset="ds_main_celltret_daycelltretlist" useinputpanel="false" position="absolute 0 121 1194 721" autoenter="select" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <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="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="처방코드"/>
- <Cell col="2" text="처방내용"/>
- <Cell col="3" text="1일"/>
- <Cell col="4" text="2일"/>
- <Cell col="5" text="3일"/>
- <Cell col="6" text="4일"/>
- <Cell col="7" text="5일"/>
- <Cell col="8" text="6일"/>
- <Cell col="9" text="7일"/>
- <Cell col="10" text="8일"/>
- <Cell col="11" text="9일"/>
- <Cell col="12" text="10일"/>
- <Cell col="13" text="11일"/>
- <Cell col="14" text="12일"/>
- <Cell col="15" text="13일"/>
- <Cell col="16" text="14일"/>
- <Cell col="17" text="15일"/>
- <Cell col="18" text="16일"/>
- <Cell col="19" text="17일"/>
- <Cell col="20" text="18일"/>
- <Cell col="21" text="19일"/>
- <Cell col="22" text="20일"/>
- <Cell col="23" text="21일"/>
- <Cell col="24" text="22일"/>
- <Cell col="25" text="23일"/>
- <Cell col="26" text="24일"/>
- <Cell col="27" text="25일"/>
- <Cell col="28" text="26일"/>
- <Cell col="29" text="27일"/>
- <Cell col="30" text="28일"/>
- <Cell col="31" text="29일"/>
- <Cell col="32" text="30일"/>
- <Cell col="33" text="31일"/>
- <Cell col="34" text="Total"/>
- <Cell col="35" text="전월도"/>
- <Cell col="36" text="증감율"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" celltype="head" edittype="none" text="bind:codenm"/>
- <Cell col="2" celltype="head" edittype="none" text="bind:codenm2"/>
- <Cell col="3" displaytype="none" edittype="none" text="bind:daycnt01"/>
- <Cell col="4" text="bind:daycnt02"/>
- <Cell col="5" text="bind:daycnt03"/>
- <Cell col="6" text="bind:daycnt04"/>
- <Cell col="7" text="bind:daycnt05"/>
- <Cell col="8" text="bind:daycnt06"/>
- <Cell col="9" text="bind:daycnt07"/>
- <Cell col="10" text="bind:daycnt08"/>
- <Cell col="11" text="bind:daycnt09"/>
- <Cell col="12" text="bind:daycnt10"/>
- <Cell col="13" text="bind:daycnt11"/>
- <Cell col="14" text="bind:daycnt12"/>
- <Cell col="15" text="bind:daycnt13"/>
- <Cell col="16" text="bind:daycnt14"/>
- <Cell col="17" text="bind:daycnt15"/>
- <Cell col="18" text="bind:daycnt16"/>
- <Cell col="19" text="bind:daycnt17"/>
- <Cell col="20" text="bind:daycnt18"/>
- <Cell col="21" text="bind:daycnt19"/>
- <Cell col="22" text="bind:daycnt20"/>
- <Cell col="23" text="bind:daycnt21"/>
- <Cell col="24" text="bind:daycnt22"/>
- <Cell col="25" text="bind:daycnt23"/>
- <Cell col="26" text="bind:daycnt24"/>
- <Cell col="27" text="bind:daycnt25"/>
- <Cell col="28" text="bind:daycnt26"/>
- <Cell col="29" text="bind:daycnt27"/>
- <Cell col="30" text="bind:daycnt28"/>
- <Cell col="31" text="bind:daycnt29"/>
- <Cell col="32" text="bind:daycnt30"/>
- <Cell col="33" text="bind:daycnt31"/>
- <Cell col="34" text="bind:daycnttotal"/>
- <Cell col="35" text="bind:beforeyearcnt"/>
- <Cell col="36" text="bind:cntaddper"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption6" text="처방별 조혈모세포처리 현황" class="tit_1" position="absolute 0 0 258 25"/>
- <Button id="btn_prt" taborder="1" text="출력" class="btn6" visible="false" position="absolute 0 26 56 48"/>
- <Shape id="line1" class="line_10" position="absolute 0 116 1194 122" anchor="left top right"/>
- <Button id="button2" taborder="4" text="엑셀저장" class="btn7" position="absolute 1114 97 1194 116" anchor="top right" onclick="button2_onclick"/>
- <Div id="grp_sea" anchor="left top right" taborder="5" class="div_SA2" position="absolute 0 50 1194 90">
- <Layouts>
- <Layout width="1194" height="40">
- <Static id="caption4" text="기간(적용일) :" class="search_name" position="absolute 15 12 127 29"/>
- <Static id="caption7" text="~" class="search_no_b" position="absolute 233 12 245 29"/>
- <Button id="button3" taborder="7" text="조회" class="btn1" position="absolute 1123 9 1179 31" anchor="top right" onclick="grp_sea_button3_onclick"/>
- <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1104 9 1110 31" anchor="top right"/>
- <Calendar id="ipt_execfromdd" taborder="8" class="input_s_essential" position="absolute 130 10 230 29" autoselect="true" autoskip="true" onchanged="grp_sea_ipt_execfromdd_onchanged"/>
- <Calendar id="ipt_exectodd" taborder="9" class="input_s_essential" position="absolute 248 10 348 29" onchanged="grp_sea_ipt_exectodd_onchanged"/>
- <Radio id="rdo_monthday" taborder="10" columncount="2" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 358 10 448 30" onitemchanged="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" text="비교(적용일) :" class="search_name" visible="false" position="absolute 493 12 605 29"/>
- <Calendar id="ipt_execfromdd2" taborder="11" class="input_s_essential" visible="false" position="absolute 608 11 708 30" onchanged="grp_sea_ipt_execfromdd2_onchanged"/>
- <Static id="caption2" text="~" class="search_no_b" visible="false" position="absolute 711 13 723 30"/>
- <Calendar id="ipt_exectodd2" taborder="12" class="input_s_essential" visible="false" position="absolute 726 11 826 30" onchanged="grp_sea_ipt_exectodd2_onchanged"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption1" text="처방별 조혈모세포처리 현황" class="tit_2" position="absolute 0 100 202 121"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <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">P</Col>
- <Col id="monthdayflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_celltret_celltretlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="codenm" type="STRING" size="256" sumtext="처방코드"/>
- <Column id="codenm2" type="STRING" size="256" sumtext="처방내용"/>
- <Column id="monthcnt01" type="INT" size="256" sumtext="1월건수"/>
- <Column id="monthcnt02" type="INT" size="256" sumtext="2월건수"/>
- <Column id="monthcnt03" type="INT" size="256" sumtext="3월건수"/>
- <Column id="monthcnt04" type="INT" size="256" sumtext="4월건수"/>
- <Column id="monthcnt05" type="INT" size="256" sumtext="5월건수"/>
- <Column id="monthcnt06" type="INT" size="256" sumtext="6월건수"/>
- <Column id="monthcnt07" type="INT" size="256" sumtext="7월건수"/>
- <Column id="monthcnt08" type="INT" size="256" sumtext="8월건수"/>
- <Column id="monthcnt09" type="INT" size="256" sumtext="9월건수"/>
- <Column id="monthcnt10" type="INT" size="256" sumtext="10월건수"/>
- <Column id="monthcnt11" type="INT" size="256" sumtext="11월건수"/>
- <Column id="monthcnt12" type="INT" size="256" sumtext="12월건수"/>
- <Column id="monthcnttotal" type="INT" size="256" sumtext="전체건수"/>
- <Column id="beforeyearcnt" type="INT" size="256" sumtext="전년도건수"/>
- <Column id="cntaddper" type="BIGDECIMAL" size="256" sumtext="증감율"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_celltret_daycelltretlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="codenm" type="STRING" size="256" sumtext="처방코드"/>
- <Column id="codenm2" type="STRING" size="256" sumtext="처방내용"/>
- <Column id="daycnt01" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt02" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt03" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt04" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt05" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt06" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt07" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt08" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt09" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt10" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt11" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt12" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt13" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt14" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt15" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt16" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt17" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt18" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt19" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt20" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt21" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt22" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt23" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt24" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt25" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt26" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt27" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt28" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt29" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt30" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnt31" type="INT" size="256" sumtext="일건수"/>
- <Column id="daycnttotal" type="INT" size="256" sumtext="전체건수"/>
- <Column id="beforeyearcnt" type="INT" size="256" sumtext="전년도건수"/>
- <Column id="cntaddper" type="BIGDECIMAL" size="256" sumtext="증감율"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.ipt_execfromdd" propid="value" datasetid="ds_send_req" columnid="execfromdd"/>
- <BindItem id="item1" compid="grp_sea.ipt_exectodd" propid="value" datasetid="ds_send_req" columnid="exectodd"/>
- <BindItem id="item2" compid="grp_sea.rdo_monthday" propid="value" datasetid="ds_send_req" columnid="monthdayflag"/>
- <BindItem id="item3" compid="grp_sea.ipt_execfromdd2" propid="value" datasetid="ds_send_req" columnid="execfromdd2"/>
- <BindItem id="item4" compid="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 "ast_examcurexp::AEZ0001.xjs";
- include "ast_hsctxp::bmtcommon.xjs";
- function SMABS10200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMABS10200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_daycelltret);
- grdf_initGrid(grd_monthcelltret);
-
- ds_send_req.setColumn(0, "prcpexecdeptcd", sysf_getUserInfo("dutplcecd"));
-
- grp_sea.rdo_monthday.index = 0;
-
- ds_send_req.setColumn(0, "monthdayflag", "D");
-
- fSetDefaultDD();
- }
- 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
- {
- 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"));
- }
- }
- function grp_sea_ipt_execfromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- var fromdd = String(obj.value);
- 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_sea.rdo_monthday.value == "D")
- {
- flag = "M";
- }
- else
- {
- flag = "Y";
- ds_send_req.setColumn(0, "execfromdd", String(fromdd).substr(0,6));
- }
- 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", (String(fromdd).substr(0,6)).toDate().getAddDate(-1, flag).getDateFormat("YYYYMMDD"));
- }
- }
- function grp_sea_ipt_exectodd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- var todd = String(obj.value);
- 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_sea.rdo_monthday.value == "D")
- {
- flag = "M";
- }
- else
- {
- flag = "Y";
- ds_send_req.setColumn(0, "exectodd", String(todd).substr(0,6));
- }
-
- 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", (String(todd).substr(0,6)).toDate().getAddDate(-1, flag).getDateFormat("YYYYMMDD"));
- }
- }
- function 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(obj.value == "D")
- {
- grd_monthcelltret.visible = false;
- grd_daycelltret.visible = true;
-
- grp_sea.ipt_execfromdd.dateformat = "yyyy-MM-dd";
- grp_sea.ipt_execfromdd.editformat = "yyyy-MM-dd";
- grp_sea.ipt_exectodd.dateformat = "yyyy-MM-dd";
- grp_sea.ipt_exectodd.editformat = "yyyy-MM-dd";
- grp_sea.ipt_execfromdd2.dateformat = "yyyy-MM-dd";
- grp_sea.ipt_execfromdd2.editformat = "yyyy-MM-dd";
- grp_sea.ipt_exectodd2.dateformat = "yyyy-MM-dd";
- grp_sea.ipt_exectodd2.editformat = "yyyy-MM-dd";
- }
- else
- {
- grd_monthcelltret.visible = true;
- grd_daycelltret.visible = false;
-
- grp_sea.ipt_execfromdd.dateformat = "yyyy-MM";
- grp_sea.ipt_execfromdd.editformat = "yyyy-MM";
- grp_sea.ipt_exectodd.dateformat = "yyyy-MM";
- grp_sea.ipt_exectodd.editformat = "yyyy-MM";
- grp_sea.ipt_execfromdd2.dateformat = "yyyy-MM";
- grp_sea.ipt_execfromdd2.editformat = "yyyy-MM";
- grp_sea.ipt_exectodd2.dateformat = "yyyy-MM";
- grp_sea.ipt_exectodd2.editformat = "yyyy-MM";
-
- 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"));
- }
- }
- function grp_sea_ipt_execfromdd2_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- if(grp_sea.rdo_monthday.value == "D")
- {
- }
- else
- {
- ds_send_req.setColumn(0, "execfromdd2", String(obj.value).substr(0,6));
- }
- }
- function grp_sea_ipt_exectodd2_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- if(grp_sea.rdo_monthday.value == "D")
- {
- }
- else
- {
- ds_send_req.setColumn(0, "exectodd2", String(obj.value).substr(0,6));
- }
- }
- function grp_sea_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetCellTrpeInfo();
- }
- function fGetCellTrpeInfo()
- {
- if(ds_send_req.getColumn(0, "monthdayflag") == "D")
- {
- 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_=message";
- oParam.async = false;
- //oParam.callback = "cf_TRABS10202";
- tranf_submit(oParam);
- }
- else
- {
- 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_=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
-
- for (var i = 0; i < nodelist.rowcount; 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_celltretlist.setColumn(i, "cntaddper", "");
- }
- else
- {
- var dCntAddPer = ((parseFloat(iMonthCntTotal) - parseFloat(iBeforeYearCnt)) / parseFloat(iBeforeYearCnt)) * 100;
- ds_main_celltret_celltretlist.setColumn(i, "cntaddper", (Math.round(dCntAddPer * 100) / 100));
- }
- }
- }
- else
- {
- var nodelist2 = ds_main_celltret_daycelltretlist;
-
- for (var i = 0; i < nodelist2.rowcount; 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_daycelltretlist.setColumn(i, "cntaddper", "");
- }
- else
- {
- var dCntAddPer = ((parseFloat(iDayCntTotal) - parseFloat(iBeforeYearCnt)) / parseFloat(iBeforeYearCnt)) * 100;
- ds_main_celltret_daycelltretlist.setColumn(i, "cntaddper", (Math.round(dCntAddPer * 100) / 100));
- }
- }
- }
- }
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_send_req.getColumn(0, "monthdayflag") == "M")
- {
- grdf_exportExcel(grd_monthcelltret, "처방별조혈모세포처리현황(월별)", "Sheet1", "true", "", "");
- }
- else
- {
- grdf_exportExcel(grd_daycelltret, "처방별조혈모세포처리현황(일별)", "Sheet1", "true", "", "");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|