123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMSDT05000" position="absolute 0 0 1198 792" titletext="집단의료사회사업실천활동실적" oninit="SMSDT05000_oninit" onload="SMSDT05000_onload">
- <Layouts>
- <Layout>
- <Tab id="swt_groupmediinfo" taborder="2" tabindex="0" class="tab_Normal" position="absolute 0 99 1195 759" anchor="all">
- <Tabpages>
- <Tabpage id="case_month">
- <Layouts>
- <Layout>
- <Grid id="grd_groupmedilist" class="datagrid2" taborder="0" binddataset="ds_main_groupmediinfo_groupmedilist" useinputpanel="false" position="absolute 0 0 1195 626" autoenter="select" cellsizingtype="col" anchor="all" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="147"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="50"/>
- <Column size="49"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="60"/>
- <Column size="60"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="3" text="구분" taborder="undefined"/>
- <Cell col="1" colspan="2" text="1월" taborder="undefined"/>
- <Cell col="3" colspan="2" text="2월" taborder="undefined"/>
- <Cell col="5" colspan="2" text="3월" taborder="undefined"/>
- <Cell col="7" colspan="2" text="4월" taborder="undefined"/>
- <Cell col="9" colspan="2" text="5월" taborder="undefined"/>
- <Cell col="11" colspan="2" text="6월" taborder="undefined"/>
- <Cell col="13" colspan="2" text="7월" taborder="undefined"/>
- <Cell col="15" colspan="2" text="8월" taborder="undefined"/>
- <Cell col="17" colspan="2" text="9월" taborder="undefined"/>
- <Cell col="19" colspan="2" text="10월" taborder="undefined"/>
- <Cell col="21" colspan="2" text="11월" taborder="undefined"/>
- <Cell col="23" colspan="2" text="12월" taborder="undefined"/>
- <Cell col="25" colspan="2" text="합계" taborder="undefined"/>
- <Cell col="27" colspan="2" text=" 전기간실적" taborder="undefined"/>
- <Cell col="29" colspan="2" text="전기간대비실적비교" taborder="undefined"/>
- <Cell row="1" col="1" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="2" rowspan="2" text="인원" taborder="undefined"/>
- <Cell row="1" col="3" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="4" rowspan="2" text="인원" taborder="undefined"/>
- <Cell row="1" col="5" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="6" rowspan="2" text="인원" taborder="undefined"/>
- <Cell row="1" col="7" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="8" rowspan="2" text="인원" taborder="undefined"/>
- <Cell row="1" col="9" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="10" rowspan="2" text="인원" taborder="undefined"/>
- <Cell row="1" col="11" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="12" rowspan="2" text="인원" taborder="undefined"/>
- <Cell row="1" col="13" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="14" rowspan="2" text="인원" taborder="undefined"/>
- <Cell row="1" col="15" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="16" rowspan="2" text="인원" taborder="undefined"/>
- <Cell row="1" col="17" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="18" rowspan="2" text="인원" taborder="undefined"/>
- <Cell row="1" col="19" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="20" rowspan="2" text="인원" taborder="undefined"/>
- <Cell row="1" col="21" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="22" rowspan="2" text="인원" taborder="undefined"/>
- <Cell row="1" col="23" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="24" rowspan="2" text="인원" taborder="undefined"/>
- <Cell row="1" col="25" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="26" rowspan="2" text="인원" taborder="undefined"/>
- <Cell row="1" col="27" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="28" rowspan="2" text="인원" taborder="undefined"/>
- <Cell row="1" col="29" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="30" rowspan="2" text="인원" taborder="undefined"/>
- </Band>
- <Band id="body">
- <Cell text="bind:cdnm"/>
- <Cell col="1" text="bind:cnt1"/>
- <Cell col="2" text="bind:psnno1"/>
- <Cell col="3" text="bind:cnt2"/>
- <Cell col="4" text="bind:psnno2"/>
- <Cell col="5" text="bind:cnt3"/>
- <Cell col="6" text="bind:psnno3"/>
- <Cell col="7" text="bind:cnt4"/>
- <Cell col="8" text="bind:psnno4"/>
- <Cell col="9" text="bind:cnt5"/>
- <Cell col="10" text="bind:psnno5"/>
- <Cell col="11" text="bind:cnt6"/>
- <Cell col="12" text="bind:psnno6"/>
- <Cell col="13" text="bind:cnt7"/>
- <Cell col="14" text="bind:psnno7"/>
- <Cell col="15" text="bind:cnt8"/>
- <Cell col="16" text="bind:psnno8"/>
- <Cell col="17" text="bind:cnt9"/>
- <Cell col="18" text="bind:psnno9"/>
- <Cell col="19" text="bind:cnt10"/>
- <Cell col="20" text="bind:psnno10"/>
- <Cell col="21" text="bind:cnt11"/>
- <Cell col="22" text="bind:psnno11"/>
- <Cell col="23" text="bind:cnt12"/>
- <Cell col="24" text="bind:psnno12"/>
- <Cell col="25" text="bind:totcnt"/>
- <Cell col="26" text="bind:totpsnno"/>
- <Cell col="27" text="bind:bfcnt"/>
- <Cell col="28" text="bind:bfpsnno"/>
- <Cell col="29" text="bind:cntrate" expr="expr:parseInt(totcnt)-parseInt(bfcnt)"/>
- <Cell col="30" text="bind:psnnorate" expr="expr:parseInt(totpsnno)-parseInt(bfpsnno)"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case_work">
- <Layouts>
- <Layout>
- <Grid id="datagrid1" class="datagrid2" taborder="0" binddataset="ds_main_groupmediworkinfo_groupmediworklist" useinputpanel="false" position="absolute 0 0 1195 642" autoenter="select" cellsizingtype="col" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="188"/>
- <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="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="3" text="구분" taborder="undefined"/>
- <Cell col="1" colspan="2" text="일반의료" taborder="undefined"/>
- <Cell col="3" colspan="2" text="재활의료" taborder="undefined"/>
- <Cell col="5" colspan="2" text="정신의료" taborder="undefined"/>
- <Cell col="7" colspan="2" text="장기이식" taborder="undefined"/>
- <Cell col="9" colspan="2" text="호스피스" taborder="undefined"/>
- <Cell col="11" colspan="2" text="합계" taborder="undefined"/>
- <Cell row="1" col="1" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="2" rowspan="2" text="인원" taborder="undefined"/>
- <Cell row="1" col="3" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="4" rowspan="2" text="인원" taborder="undefined"/>
- <Cell row="1" col="5" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="6" rowspan="2" text="인원" taborder="undefined"/>
- <Cell row="1" col="7" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="8" rowspan="2" text="인원" taborder="undefined"/>
- <Cell row="1" col="9" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="10" rowspan="2" text="인원" taborder="undefined"/>
- <Cell row="1" col="11" rowspan="2" text="건수" taborder="undefined"/>
- <Cell row="1" col="12" rowspan="2" text="인원" taborder="undefined"/>
- </Band>
- <Band id="body">
- <Cell text="bind:cdnm"/>
- <Cell col="1" text="bind:cnt1"/>
- <Cell col="2" text="bind:psnno1"/>
- <Cell col="3" text="bind:cnt2"/>
- <Cell col="4" text="bind:psnno2"/>
- <Cell col="5" text="bind:cnt3"/>
- <Cell col="6" text="bind:psnno3"/>
- <Cell col="7" text="bind:cnt4"/>
- <Cell col="8" text="bind:psnno4"/>
- <Cell col="9" text="bind:cnt5"/>
- <Cell col="10" text="bind:psnno5"/>
- <Cell col="11" text="bind:totcnt"/>
- <Cell col="12" text="bind:totpsnno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Static id="caption6" text="사회사업 집단의료사회사업 실천활동 실적" class="tit_1" position="absolute 0 0 321 25"/>
- <Div id="group4" anchor="left top right" taborder="1" class="div_SA" position="absolute 0 25 1195 65">
- <Layouts>
- <Layout>
- <Calendar id="ipt_fromdd" taborder="8" autoselect="true" autoskip="true" class="input_search" position="absolute 328 11 402 30" mask="yyyy-mm" anchor="default" dateformat="yyyy-MM" editformat="yyyy-MM"/>
- <Button id="button2" taborder="4" text="조회" class="btn1" position="absolute 1123 10 1179 32" anchor="top right" onclick="group4_button2_onclick"/>
- <Static id="caption23" text="조회구분 :" class="search_name" position="absolute 15 11 101 28" anchor="default"/>
- <Shape id="line2" linetype="vertical" position="absolute 1110 10 1116 32" anchor="top right"/>
- <Static id="caption1" text="조회기간 :" class="search_name" position="absolute 244 12 328 29" anchor="default"/>
- <Combo id="cmb_sumflag" taborder="5" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 110 11 220 30" anchor="default" onitemchanged="group4_cmb_sumflag_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </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>
- <Edit id="ipt_entryy" taborder="6" position="absolute 328 11 383 30" anchor="default" autoskip="true" autoselect="true"/>
- <Static id="cap1" text="~" position="absolute 409 10 434 30" anchor="default"/>
- <Calendar id="ipt_todd" taborder="7" class="input_search" position="absolute 430 11 501 30" mask="yyyy-mm" anchor="default" autoselect="true" dateformat="yyyy-MM" value="null" editformat="yyyy-MM"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line1" class="line_10" position="absolute 0 105 1195 116" anchor="left top right"/>
- <Static id="caption21" text="사회사업 집단의료사회사업 실천활동 실적" class="tit_2" position="absolute 0 91 274 113"/>
- <Button id="btn_excel" taborder="3" text="엑셀저장" class="btn7" position="absolute 1115 88 1195 107" anchor="top right" onclick="btn_excel_onclick"/>
- <Shape id="line37" class="line_6" position="absolute 0 754 1195 760" anchor="left right bottom"/>
- <Button id="btn_search0" taborder="4" text="초기화" class="btn4" position="absolute 1127 759 1195 781" anchor="right bottom" onclick="btn_search0_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="sumflag" type="STRING" size="256"/>
- <Column id="entryy" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="sumflag">1</Col>
- <Col id="entryy"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_groupmediinfo_groupmedilist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="dispseq" type="STRING" size="256" sumtext="dispseq"/>
- <Column id="cdnm" type="STRING" size="256" sumtext="cdnm"/>
- <Column id="usernm" type="STRING" size="256" sumtext="usernm"/>
- <Column id="userdispseq" type="STRING" size="256" sumtext="userdispseq"/>
- <Column id="cnt1" type="STRING" size="256" sumtext="1월건수"/>
- <Column id="psnno1" type="STRING" size="256" sumtext="1월인원수"/>
- <Column id="cnt2" type="STRING" size="256" sumtext="2월건수"/>
- <Column id="psnno2" type="STRING" size="256" sumtext="2월인원수"/>
- <Column id="cnt3" type="STRING" size="256" sumtext="3월건수"/>
- <Column id="psnno3" type="STRING" size="256" sumtext="3월인원수"/>
- <Column id="cnt4" type="STRING" size="256" sumtext="4월건수"/>
- <Column id="psnno4" type="STRING" size="256" sumtext="4월인원수"/>
- <Column id="cnt5" type="STRING" size="256" sumtext="5월건수"/>
- <Column id="psnno5" type="STRING" size="256" sumtext="5월인원수"/>
- <Column id="cnt6" type="STRING" size="256" sumtext="6월건수"/>
- <Column id="psnno6" type="STRING" size="256" sumtext="6월인원수"/>
- <Column id="cnt7" type="STRING" size="256" sumtext="7월건수"/>
- <Column id="psnno7" type="STRING" size="256" sumtext="7월인원수"/>
- <Column id="cnt8" type="STRING" size="256" sumtext="8월건수"/>
- <Column id="psnno8" type="STRING" size="256" sumtext="8월인원수"/>
- <Column id="cnt9" type="STRING" size="256" sumtext="9월건수"/>
- <Column id="psnno9" type="STRING" size="256" sumtext="9월인원수"/>
- <Column id="cnt10" type="STRING" size="256" sumtext="10월건수"/>
- <Column id="psnno10" type="STRING" size="256" sumtext="10월인원수"/>
- <Column id="cnt11" type="STRING" size="256" sumtext="11월건수"/>
- <Column id="psnno11" type="STRING" size="256" sumtext="11월인원수"/>
- <Column id="cnt12" type="STRING" size="256" sumtext="12월건수"/>
- <Column id="psnno12" type="STRING" size="256" sumtext="12월인원수"/>
- <Column id="totcnt" type="STRING" size="256" sumtext="합계건수"/>
- <Column id="totpsnno" type="STRING" size="256" sumtext="합계인원수"/>
- <Column id="bfcnt" type="STRING" size="256" sumtext="전월실적건수"/>
- <Column id="bfpsnno" type="STRING" size="256" sumtext="전월실적인원수"/>
- <Column id="cntrate" type="STRING" size="256" sumtext="전월대비실적비교건수"/>
- <Column id="psnnorate" type="STRING" size="256" sumtext="전월대비실적비교인원수"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_groupmediworkinfo_groupmediworklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="dispseq" type="STRING" size="256" sumtext="dispseq"/>
- <Column id="cdnm" type="STRING" size="256" sumtext="cdnm"/>
- <Column id="usernm" type="STRING" size="256" sumtext="usernm"/>
- <Column id="userdispseq" type="STRING" size="256" sumtext="userdispseq"/>
- <Column id="cnt1" type="STRING" size="256" sumtext="일반의료건수"/>
- <Column id="psnno1" type="STRING" size="256" sumtext="일반의료인원수"/>
- <Column id="cnt2" type="STRING" size="256" sumtext="재활의료건수"/>
- <Column id="psnno2" type="STRING" size="256" sumtext="재활의료인원수"/>
- <Column id="cnt3" type="STRING" size="256" sumtext="정신의료건수"/>
- <Column id="psnno3" type="STRING" size="256" sumtext="정신의료인원수"/>
- <Column id="cnt4" type="STRING" size="256" sumtext="장기이식건수"/>
- <Column id="psnno4" type="STRING" size="256" sumtext="장기이식인원수"/>
- <Column id="cnt5" type="STRING" size="256" sumtext="호스피스건수"/>
- <Column id="psnno5" type="STRING" size="256" sumtext="호스피스인원수"/>
- <Column id="totcnt" type="STRING" size="256" sumtext="합계건수"/>
- <Column id="totpsnno" type="STRING" size="256" sumtext="합계인원수"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group4.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
- <BindItem id="item1" compid="group4.ipt_entryy" propid="value" datasetid="ds_main_cond" columnid="entryy"/>
- <BindItem id="item2" compid="group4.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-05-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-24 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SMSDT05000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMSDT05000_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(swt_groupmediinfo.case_month.grd_groupmedilist);
- grdf_initGrid(swt_groupmediinfo.case_work.datagrid1);
-
- fInit();
- swt_groupmediinfo.tabindex = 0;
- }
- function fInit()
- {
- ds_main_groupmediinfo_groupmedilist.clearData();
- group4.cmb_sumflag.index = 0;
- var currentDate = utlf_getCurrentDate();
- var currentYear = String(currentDate).substring(0, 4);
- var LastDate = currentDate.toDate().getAddDate(-1,"M").getDateFormat();
- var LastDateYM = String(LastDate).substr(0,6);
-
- ds_main_cond.setColumn(0, "entryy" ,currentYear);
- ds_main_cond.setColumn(0, "fromdd" ,LastDateYM);
- ds_main_cond.setColumn(0, "todd" ,LastDateYM);
-
- group4.ipt_fromdd.visible = false;
- group4.ipt_todd.visible = false;
- group4.ipt_entryy.visible = true;
- group4.cap1.visible = false;
- }
- function group4_cmb_sumflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fGetGroupMediInfo();
- }
- function fGetGroupMediInfo()
- {
- if(group4.cmb_sumflag.value == '1')
- {
- swt_groupmediinfo.tabindex = 0;
-
- group4.ipt_entryy.visible = true;
- group4.ipt_fromdd.visible = false;
- group4.ipt_todd.visible = false;
- group4.cap1.visible = false;
-
- var entryy = ds_main_cond.getColumn(0, "entryy");
-
- if(utlf_isNull(entryy))
- {
- sysf_messageBox("조회년도를","C001" );
- group4.ipt_entryy.setFocus();
- ds_main_groupmediinfo_groupmedilist.clearData();
- return;
- }
-
- var oParam = {};
- oParam.id = "TRSDT05001";
- oParam.service = "stscmcnwapp.SoclEndStats";
- oParam.method = "reqGetGroupMediInfo";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_main_groupmediinfo_groupmedilist=groupmedilist";
- oParam.async = false;
- //oParam.callback = "cf_TRSDT05001";
- tranf_submit(oParam);
- fStat();
- }
- else if(group4.cmb_sumflag.value == '2')
- {
- swt_groupmediinfo.tabindex = 1;
-
- group4.ipt_entryy.visible = false;
- group4.ipt_fromdd.visible = true;
- group4.ipt_todd.visible = true;
- group4.cap1.visible = true;
-
- var fromdd = ds_main_cond.getColumn(0, "fromdd") +"01";
- var todd = ds_main_cond.getColumn(0, "todd")+ "31";
-
- var fdate = ds_main_cond.getColumn(0, "fromdd");
- var todate = ds_main_cond.getColumn(0, "todd");
- var dateintval = utlf_getDateInterval(fromdd,todd);
-
- if(utlf_isNull(fdate))
- {
- sysf_messageBox("조회시작일자는","I003");
- group4.ipt_fromdd.setFocus();
- return;
- }
- if(utlf_isNull(todate))
- {
- sysf_messageBox("조회종료일자는","I003");
- group4.ipt_todd.setFocus();
- return;
- }
- if(fdate>todate)
- {
- sysf_messageBox("조회시작일보다 큰 조회종료일을 입력하십시요.","I");
- group4.ipt_todd.setFocus();
- return;
- }
- if(dateintval>370)
- {
- sysf_messageBox("조회기간은 최대1년까지 할 수 있습니다.","I");
- group4.ipt_todd.setFocus();
- return;
- }
- var oParam = {};
- oParam.id = "TRSDT05001";
- oParam.service = "stscmcnwapp.SoclEndStats";
- oParam.method = "reqGetGroupMediWorkInfo";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_main_groupmediworkinfo_groupmediworklist=groupmediworklist";
- oParam.async = false;
- //oParam.callback = "cf_TRSDT05001";
- tranf_submit(oParam);
- }
- }
- function fStat()
- {
- if(ds_main_groupmediinfo_groupmedilist.rowcount == 0)
- {
- return;
- }
-
- if(ds_main_groupmediinfo_groupmedilist.rowcount > 1)
- {
- var sStat = 0;
- var insRow = ds_main_groupmediinfo_groupmedilist.addRow();
- ds_main_groupmediinfo_groupmedilist.setColumn(insRow, "cdnm", "전월대비실적비교");
-
- for(var i = 4; i < 30; i++)
- {
- var bfResult = eval(ds_main_groupmediinfo_groupmedilist.getColumn(insRow-1 , i));
- var sSum = eval(ds_main_groupmediinfo_groupmedilist.getColumn(insRow-2, i));
-
- sStat = eval(sSum)- eval(bfResult);
- ds_main_groupmediinfo_groupmedilist.setColumn(insRow, i, eval(sStat));
- }
-
- ds_main_groupmediinfo_groupmedilist.setColumn(insRow-1, "cntrate", "");
- ds_main_groupmediinfo_groupmedilist.setColumn(insRow, "cntrate", "");
- ds_main_groupmediinfo_groupmedilist.setColumn(insRow-1, "psnnorate", "");
- ds_main_groupmediinfo_groupmedilist.setColumn(insRow, "psnnorate", "");
- }
- }
- function group4_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetGroupMediInfo();
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- fExcel();
- }
- function fExcel()
- {
- if(ds_main_groupmediinfo_groupmedilist.rowcount == 0)
- {
- sysf_messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
- return;
- }
-
- grdf_exportExcel(swt_groupmediinfo.case_month.grd_groupmedilist, "사회사업 집단의료사회사업실천활동실적", "SheetName", "true", "", "");
- }
- function btn_search0_onclick(obj:Button, e:ClickEventInfo)
- {
- fInit();
- }
- ]]></Script>
- </Form>
- </FDL>
|