123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMSDT07300" position="absolute 0 0 1202 805" titletext="사회사업연구및교육실적" oninit="SMSDT07300_oninit" onload="SMSDT07300_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="사회사업 연구및교육실적" class="tit_1" position="absolute 0 0 230 25"/>
- <Static id="caption21" text="사회사업 연구및교육실적" class="tit_2" position="absolute 0 82 232 104"/>
- <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 99 1195 104" anchor="left top right"/>
- <Div id="group4" anchor="left top right" taborder="2" class="div_SA" position="absolute 0 25 1195 65">
- <Layouts>
- <Layout>
- <Button id="button2" taborder="4" text="조회" class="btn1" position="absolute 1123 9 1179 31" anchor="top right" onclick="group4_button2_onclick"/>
- <Static id="caption23" text="조회구분 :" class="search_name" position="absolute 15 12 101 29"/>
- <Shape id="line2" linetype="vertical" position="absolute 1110 9 1116 31" anchor="top right"/>
- <Static id="cap1" text="~" position="absolute 413 11 430 31"/>
- <Calendar id="ipt_fromdd" taborder="5" class="input_search" position="absolute 326 11 399 30" mask="yyyy-mm" autoselect="true" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" autoskip="true" onchanged="group4_ipt_fromdd_onchanged"/>
- <Calendar id="ipt_todd" taborder="6" class="input_search" position="absolute 439 11 512 30" mask="yyyy-mm" autoselect="true" dateformat="yyyy-MM" editformat="yyyy-MM" onchanged="group4_ipt_todd_onchanged"/>
- <Static id="caption1" text="조회기간 :" class="search_name" position="absolute 240 13 324 30"/>
- <Combo id="cmb_reqflag" taborder="7" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 110 10 195 29" onitemchanged="group4_cmb_reqflag_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>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_excel" taborder="3" text="엑셀저장" class="btn7" position="absolute 1115 79 1195 98" anchor="top right" onclick="btn_excel_onclick"/>
- <Grid id="grd_brgstincmexpsprescond" class="datagrid2" taborder="4" binddataset="ds_main_brgstincmexpspres_brgstincmexpsprescond" useinputpanel="false" position="absolute 0 103 1195 767" autoenter="select" autofittype="col" cellsizingtype="col" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="132"/>
- <Column size="58"/>
- <Column size="58"/>
- <Column size="63"/>
- <Column size="63"/>
- <Column size="52"/>
- <Column size="53"/>
- <Column size="52"/>
- <Column size="52"/>
- <Column size="52"/>
- <Column size="52"/>
- <Column size="52"/>
- <Column size="52"/>
- <Column size="52"/>
- <Column size="52"/>
- <Column size="46"/>
- <Column size="46"/>
- <Column size="47"/>
- <Column size="47"/>
- <Column size="53"/>
- <Column size="53"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" 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 col="13" colspan="2" text="사회사업원외교육" taborder="undefined"/>
- <Cell col="15" colspan="2" text="연구및교육합계" taborder="undefined"/>
- <Cell col="17" colspan="2" text="전월실적" taborder="undefined"/>
- <Cell col="19" colspan="2" 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="인원"/>
- <Cell row="1" col="11" text="횟수"/>
- <Cell row="1" col="12" text="인원"/>
- <Cell row="1" col="13" text="횟수"/>
- <Cell row="1" col="14" text="인원"/>
- <Cell row="1" col="15" text="횟수"/>
- <Cell row="1" col="16" text="인원"/>
- <Cell row="1" col="17" text="횟수"/>
- <Cell row="1" col="18" text="인원"/>
- <Cell row="1" col="19" text="횟수"/>
- <Cell row="1" col="20" text="인원"/>
- </Band>
- <Band id="body">
- <Cell text="bind:cond"/>
- <Cell col="1" text="bind:b02cnt"/>
- <Cell col="2" text="bind:b02"/>
- <Cell col="3" text="bind:b06cnt"/>
- <Cell col="4" text="bind:b06"/>
- <Cell col="5" text="bind:a05cnt"/>
- <Cell col="6" text="bind:a05"/>
- <Cell col="7" text="bind:a06cnt"/>
- <Cell col="8" text="bind:a06"/>
- <Cell col="9" text="bind:a04cnt"/>
- <Cell col="10" text="bind:a04"/>
- <Cell col="11" text="bind:a02cnt"/>
- <Cell col="12" text="bind:a02"/>
- <Cell col="13" text="bind:a03cnt"/>
- <Cell col="14" text="bind:a03"/>
- <Cell col="15" text="bind:cnttotal"/>
- <Cell col="16" text="bind:amttotal"/>
- <Cell col="17" text="bind:lstachivcnt"/>
- <Cell col="18" text="bind:lstachivamt"/>
- <Cell col="19" text="bind:lstachivcntcomp" expr="expr:parseInt(cnttotal)-parseInt(lstachivcnt)"/>
- <Cell col="20" text="bind:lstachivamtcomp" expr="expr:parseInt(amttotal)-parseInt(lstachivamt)"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line37" class="line_6" position="absolute 0 766 1195 772" anchor="left right bottom"/>
- <Button id="btn_search0" taborder="5" text="초기화" class="btn4" position="absolute 1127 771 1195 793" anchor="right bottom" onclick="btn_search0_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="reqflag" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="reqflag">1</Col>
- <Col id="fromdd"/>
- <Col id="todd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_brgstincmexpspres_brgstincmexpsprescond" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cond" type="STRING" size="256" sumtext="구분"/>
- <Column id="b02cnt" type="STRING" size="256" sumtext="사회사업사례집담회횟수"/>
- <Column id="b02" type="STRING" size="256" sumtext="사회사업사례집담회인원"/>
- <Column id="b06cnt" type="STRING" size="256" sumtext="사회사업연구조사활동인원"/>
- <Column id="b06" type="STRING" size="256" sumtext="사회사업연구조사활동횟수"/>
- <Column id="a05cnt" type="STRING" size="256" sumtext="사회사업실습교육인원"/>
- <Column id="a05" type="STRING" size="256" sumtext="사회사업실습교육횟수"/>
- <Column id="a06cnt" type="STRING" size="256" sumtext="사회사업수련교육인원"/>
- <Column id="a06" type="STRING" size="256" sumtext="사회사업수련교육횟수"/>
- <Column id="a04cnt" type="STRING" size="256" sumtext="사회사업자체교육인원"/>
- <Column id="a04" type="STRING" size="256" sumtext="사회사업자체교육횟수"/>
- <Column id="a02cnt" type="STRING" size="256" sumtext="사회사업원내교육인원"/>
- <Column id="a02" type="STRING" size="256" sumtext="사회사업원내교육횟수"/>
- <Column id="a03cnt" type="STRING" size="256" sumtext="사회사업원외교육인원"/>
- <Column id="a03" type="STRING" size="256" sumtext="사회사업원외교육횟수"/>
- <Column id="cnttotal" type="STRING" size="256" sumtext="연구및교육합계횟수"/>
- <Column id="amttotal" type="STRING" size="256" sumtext="연구및교육합계인원"/>
- <Column id="lstachivcnt" type="STRING" size="256" sumtext="전월실적횟수"/>
- <Column id="lstachivamt" type="STRING" size="256" sumtext="전월실적인원"/>
- <Column id="lstachivcntcomp" type="STRING" size="256" sumtext="전월실적횟수비교"/>
- <Column id="lstachivamtcomp" type="STRING" size="256" sumtext="전월실적인원비교"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group4.cmb_reqflag" propid="value" datasetid="ds_main_search" columnid="reqflag"/>
- <BindItem id="item1" compid="group4.ipt_fromdd" propid="value" datasetid="ds_main_search" columnid="fromdd"/>
- <BindItem id="item2" compid="group4.ipt_todd" propid="value" datasetid="ds_main_search" columnid="todd"/>
- </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 SMSDT07300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMSDT07300_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_brgstincmexpsprescond);
-
- fInit();
- }
- function fInit()
- {
- group4.caption1.visible = true;
- ds_main_brgstincmexpspres_brgstincmexpsprescond.clearData();
-
- var CurrentDate = utlf_getCurrentDate();
- var CurrentDateYM = String(CurrentDate).substr(0,6);
- var LastDate = CurrentDate.toDate().getAddDate(-1,"M").getDateFormat();
- var LastDateYM = LastDate.substr(0,6);
-
- dsf_makeValue(ds_main_search, "fromdd", "string",LastDateYM);
- dsf_makeValue(ds_main_search, "todd", "string",LastDateYM);
-
- grd_brgstincmexpsprescond.setFormatColProperty(17, "size", 0);
- grd_brgstincmexpsprescond.setFormatColProperty(18, "size", 0);
- grd_brgstincmexpsprescond.setFormatColProperty(19, "size", 0);
- grd_brgstincmexpsprescond.setFormatColProperty(20, "size", 0);
- }
-
- function group4_cmb_reqflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- if(obj.value == "1")
- {
- grd_brgstincmexpsprescond.setFormatColProperty(17, "size", 0);
- grd_brgstincmexpsprescond.setFormatColProperty(18, "size", 0);
- grd_brgstincmexpsprescond.setFormatColProperty(19, "size", 0);
- grd_brgstincmexpsprescond.setFormatColProperty(20, "size", 0);
- }
- else
- {
- grd_brgstincmexpsprescond.setFormatColProperty(17, "size", 47);
- grd_brgstincmexpsprescond.setFormatColProperty(18, "size", 47);
- grd_brgstincmexpsprescond.setFormatColProperty(19, "size", 53);
- grd_brgstincmexpsprescond.setFormatColProperty(20, "size", 53);
- }
-
- fReqBrgstIncmExpsCond();
- }
- function fReqBrgstIncmExpsCond()
- {
- ds_send_reqdata.clearData();
-
- var fromdd = ds_main_search.getColumn(0, "fromdd");
- var todd = ds_main_search.getColumn(0, "todd");
- var reqflag = ds_main_search.getColumn(0, "reqflag");
-
- dsf_makeValue(ds_send_reqdata, "fromdd", "string",fromdd);
- dsf_makeValue(ds_send_reqdata, "todd", "string",todd);
- dsf_makeValue(ds_send_reqdata, "reqflag", "string",reqflag);
-
- if(utlf_isNull(fromdd))
- {
- sysf_messageBox("조회시작일자는","I003");
- group4.ipt_fromdd.setFocus();
- return;
- }
- if(utlf_isNull(todd))
- {
- sysf_messageBox("조회종료일자는","I003");
- group4.ipt_todd.setFocus();
- return;
- }
- var dateintval = utlf_getDateInterval(fromdd+"01",todd+"31");
-
- if(fromdd > todd)
- {
- sysf_messageBox("조회시작일보다 큰 조회종료일을 입력하십시요.","I");
- group4.ipt_todd.setFocus();
- return;
- }
-
- if(dateintval > "370")
- {
- sysf_messageBox("조회기간은 최대 1년까지 할 수 있습니다","I");
- group4.ipt_fromdd.setFocus();
- return;
- }
-
- var oParam = {};
- oParam.id = "TRSDT07301";
- oParam.service = "stscmcnwapp.SoclEndStats";
- oParam.method = "reqGetStdyEducAchiv";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_brgstincmexpspres_brgstincmexpsprescond=brgstincmexpsprescond";
- oParam.async = false;
- //oParam.callback = "cf_TRSDT07301";
- tranf_submit(oParam);
-
- var idxRow = ds_main_brgstincmexpspres_brgstincmexpsprescond.rowcount;
- var reqflag = ds_main_search.getColumn(0, "reqflag");
-
- for(var i = 0; i < idxRow; i++)
- {
- var cond = ds_main_brgstincmexpspres_brgstincmexpsprescond.getColumn(i, "cond");
-
- if(cond == "전기간실적" && i == 0)
- {
- ds_main_brgstincmexpspres_brgstincmexpsprescond.clearData();
- }
- else
- {
- if(reqflag == "2")
- {
- fGetBfResult();
- return;
- }
- }
- }
- }
- function fGetBfResult()
- {
- if(ds_main_brgstincmexpspres_brgstincmexpsprescond.rowcount > 0)
- {
- var sStat = 0;
- var insRow = ds_main_brgstincmexpspres_brgstincmexpsprescond.addRow();
- ds_main_brgstincmexpspres_brgstincmexpsprescond.setColumn(insRow, "cond", "전기간대비실적비교");
-
- for(var i = 1; i < 17; i++)
- {
- var bfResult = eval(ds_main_brgstincmexpspres_brgstincmexpsprescond.getColumn(insRow-1 , i));
- var sSum = eval(ds_main_brgstincmexpspres_brgstincmexpsprescond.getColumn(insRow-2, i));
- sStat = eval(sSum)- eval(bfResult);
- ds_main_brgstincmexpspres_brgstincmexpsprescond.setColumn(insRow, i, eval(sStat));
- }
-
- ds_main_brgstincmexpspres_brgstincmexpsprescond.setColumn(insRow-1, "lstachivcnt", "");
- ds_main_brgstincmexpspres_brgstincmexpsprescond.setColumn(insRow-1, "lstachivcntcomp", "");
- ds_main_brgstincmexpspres_brgstincmexpsprescond.setColumn(insRow, "lstachivcntcomp", "");
-
- ds_main_brgstincmexpspres_brgstincmexpsprescond.setColumn(insRow-1, "lstachivamt", "");
- ds_main_brgstincmexpspres_brgstincmexpsprescond.setColumn(insRow-1, "lstachivamtcomp", "");
- ds_main_brgstincmexpspres_brgstincmexpsprescond.setColumn(insRow, "lstachivamtcomp", "");
- }
- else
- {
- ds_main_brgstincmexpspres_brgstincmexpsprescond.clearData();
- }
- }
-
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- fExcel();
- }
- function fExcel()
- {
- if (ds_main_brgstincmexpspres_brgstincmexpsprescond.rowcount == 0)
- {
- sysf_messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
- return;
- }
-
- grdf_exportExcel(grd_brgstincmexpsprescond, "사회사업연구및교육실적", "SheetName", "true", "", "");
- }
- function group4_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fReqBrgstIncmExpsCond();
- }
- function group4_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- ds_main_search.setColumn(0, "fromdd", String(obj.value).substr(0,6));
- }
- function group4_ipt_todd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- ds_main_search.setColumn(0, "todd", String(obj.value).substr(0,6));
- }
- function btn_search0_onclick(obj:Button, e:ClickEventInfo)
- {
- fResetBrgstIncmExps();
- }
- function fResetBrgstIncmExps()
- {
- ds_main_brgstincmexpspres_brgstincmexpsprescond.clearData();
- }]]></Script>
- </Form>
- </FDL>
|