123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMSDT02000" position="absolute 0 0 1201 798" titletext="사회사업상담관리실적" oninit="SMSDT02000_oninit" onload="SMSDT02000_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="사회사업상담관리실적" class="tit_1" position="absolute 0 0 224 25"/>
- <Static id="caption21" text="사회사업상담관리실적" class="tit_2" position="absolute 0 78 195 99"/>
- <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 93 1195 102" 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="1" 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 25 12 111 29"/>
- <Shape id="line2" linetype="vertical" position="absolute 1110 9 1116 31" anchor="top right"/>
- <Combo id="cmb_sumflaga2" taborder="2" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 125 11 225 30" onitemchanged="group4_cmb_sumflaga2_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">3</Col>
- <Col id="datacolumn">임상과별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">업무분야별</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="cap1" text="~" position="absolute 459 12 476 32"/>
- <Calendar id="ipt_fromdd" taborder="3" autoselect="true" autoskip="true" class="input_search" position="absolute 352 11 452 30" mask="yyyy-mm" dateformat="yyyy-MM" editformat="yyyy-MM" onchanged="group4_ipt_fromdd_onchanged"/>
- <Calendar id="ipt_todd" taborder="4" autoselect="true" class="input_search" position="absolute 475 11 575 30" mask="yyyy-mm" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" onchanged="group4_ipt_todd_onchanged"/>
- <Static id="caption1" text="조회기간 :" class="search_name" position="absolute 260 13 360 30"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_excel" taborder="3" text="엑셀저장" class="btn7" position="absolute 1115 75 1195 94" anchor="top right" onclick="btn_excel_onclick"/>
- <Grid id="grd_cnst" class="datagrid2" taborder="4" binddataset="ds_main_cnstinfo_cnstlist" useinputpanel="false" position="absolute 0 99 1195 763" autoenter="select" cellsizingtype="col" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="120"/>
- <Column size="68"/>
- <Column size="58"/>
- <Column size="69"/>
- <Column size="80"/>
- <Column size="69"/>
- <Column size="58"/>
- <Column size="52"/>
- <Column size="56"/>
- <Column size="55"/>
- <Column size="57"/>
- <Column size="55"/>
- <Column size="45"/>
- <Column size="55"/>
- <Column size="54"/>
- <Column size="41"/>
- <Column size="56"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="55"/>
- <Column size="55"/>
- </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" rowspan="2" text="사회사업 심리사회적 문제" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="사회사업 경제적 문제" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="사회사업 입퇴원계획 문제" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="사회사업 지역사회자원 연결문제" taborder="undefined"/>
- <Cell col="5" rowspan="2" text="사회사업 사회복귀및 재활문제" taborder="undefined"/>
- <Cell col="6" rowspan="2" text="사회사업 기타문제" taborder="undefined"/>
- <Cell col="7" rowspan="2" text="소계" taborder="undefined"/>
- <Cell col="8" rowspan="2" text="사회사업 개별상담" taborder="undefined"/>
- <Cell col="9" rowspan="2" text="사회사업 가족상담" taborder="undefined"/>
- <Cell col="10" rowspan="2" text="사회사업 집단상담" taborder="undefined"/>
- <Cell col="11" rowspan="2" text="사회사업 집단교육" taborder="undefined"/>
- <Cell col="12" rowspan="2" text="전화 상담" taborder="undefined"/>
- <Cell col="13" rowspan="2" text="사회사업 병실방문" taborder="undefined"/>
- <Cell col="14" rowspan="2" text="사회사업 치료적 협의" taborder="undefined"/>
- <Cell col="15" rowspan="2" text="가정 방문" taborder="undefined"/>
- <Cell col="16" rowspan="2" text="사회사업 임상기록" taborder="undefined"/>
- <Cell col="17" rowspan="2" text="소계" taborder="undefined"/>
- <Cell col="18" rowspan="2" text="합계" taborder="undefined"/>
- <Cell col="19" rowspan="2" text="전월실적" taborder="undefined"/>
- <Cell col="20" rowspan="2" text="전월대비 실적비교" taborder="undefined"/>
- </Band>
- <Band id="body">
- <Cell text="bind:cond" calendardisplaynulltype="nulltext"/>
- <Cell col="1" text="bind:soclpsy"/>
- <Cell col="2" text="bind:socleco"/>
- <Cell col="3" text="bind:soclio" calendardisplaynulltype="nulltext"/>
- <Cell col="4" text="bind:soclloc"/>
- <Cell col="5" text="bind:soclret" calendardisplaynulltype="nulltext"/>
- <Cell col="6" text="bind:socletc"/>
- <Cell col="7" text="bind:soclssum"/>
- <Cell col="8" text="bind:soclper"/>
- <Cell col="9" text="bind:soclfam"/>
- <Cell col="10" text="bind:soclgcon"/>
- <Cell col="11" text="bind:soclgedu"/>
- <Cell col="12" text="bind:socltel"/>
- <Cell col="13" text="bind:soclvst"/>
- <Cell col="14" text="bind:soclcur"/>
- <Cell col="15" text="bind:soclhom"/>
- <Cell col="16" text="bind:soclclin"/>
- <Cell col="17" text="bind:soclesum"/>
- <Cell col="18" text="bind:soclsum"/>
- <Cell col="19" text="bind:bfcnt"/>
- <Cell col="20" text="bind:bfcompare" expr="expr:parseInt(soclsum)-parseInt(bfcnt)"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_search0" taborder="5" text="초기화" class="btn4" position="absolute 1127 769 1195 791" anchor="right bottom" onclick="btn_search0_onclick"/>
- <Shape id="line37" class="line_6" position="absolute 0 764 1195 770" anchor="left right bottom"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_reqdata" 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"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="sumflag">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cnstinfo_cnstlist" 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="soclpsy" type="STRING" size="256" sumtext="사회사업심리사회적문제"/>
- <Column id="socleco" type="STRING" size="256" sumtext="사회사업경제적문제"/>
- <Column id="soclio" type="STRING" size="256" sumtext="사회사업입퇴원계획문제"/>
- <Column id="soclloc" type="STRING" size="256" sumtext="사회사업지역사회자원연결문제"/>
- <Column id="soclret" type="STRING" size="256" sumtext="사회사업사회복귀 및 재활문제"/>
- <Column id="socletc" type="STRING" size="256" sumtext="사회사업기타문제"/>
- <Column id="soclssum" type="STRING" size="256" sumtext="소계"/>
- <Column id="soclper" type="STRING" size="256" sumtext="사회사업개별상담"/>
- <Column id="soclfam" type="STRING" size="256" sumtext="사회사업가족상담"/>
- <Column id="soclgcon" type="STRING" size="256" sumtext="사회사업집단상담"/>
- <Column id="soclgedu" type="STRING" size="256" sumtext="사회사업집단교육"/>
- <Column id="socltel" type="STRING" size="256" sumtext="전화상담"/>
- <Column id="soclvst" type="STRING" size="256" sumtext="사회사업병실방문"/>
- <Column id="soclcur" type="STRING" size="256" sumtext="사회사업치료적협의"/>
- <Column id="soclhom" type="STRING" size="256" sumtext="가정방문"/>
- <Column id="soclclin" type="STRING" size="256" sumtext="사회사업임상기록"/>
- <Column id="soclesum" type="STRING" size="256" sumtext="소계"/>
- <Column id="soclsum" type="STRING" size="256" sumtext="합계"/>
- <Column id="bfcnt" type="STRING" size="256" sumtext="전월실적"/>
- <Column id="bfcompare" type="STRING" size="256" sumtext="전월실적비교"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group4.cmb_sumflaga2" propid="value" datasetid="ds_send_reqdata" columnid="sumflag"/>
- <BindItem id="item1" compid="group4.ipt_fromdd" propid="value" datasetid="ds_send_reqdata" columnid="fromdd"/>
- <BindItem id="item2" compid="group4.ipt_todd" propid="value" datasetid="ds_send_reqdata" 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 SMSDT02000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMSDT02000_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_cnst);
-
- fInit();
- }
- function fInit()
- {
- var currentDate = utlf_getCurrentDate();
- var LastDate = currentDate.toDate().getAddDate(-1,"M").getDateFormat();
- var LastDateYM = String(LastDate).substr(0,6);
-
- ds_send_reqdata.setColumn(0, "fromdd", LastDateYM );
- ds_send_reqdata.setColumn(0, "todd", LastDateYM );
-
- ds_main_cnstinfo_cnstlist.clearData();
- }
- function group4_cmb_sumflaga2_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fAllSearch();
- }
- function fAllSearch()
- {
- ds_main_cnstinfo_cnstlist.clearData();
-
- var val = ds_send_reqdata.getColumn(0, "sumflag");
-
- switch(val)
- {
- case("1"):
- fDisableGrd(false);
- fSearch();
- break;
- case("3"):
- fDisableGrd(true);
- fSearch();
- break;
- case("2"):
- fDisableGrd(true);
- fSearch();
- break;
- }
- }
- function fDisableGrd(flag)
- {
- if(flag == true)
- {
- grd_cnst.setFormatColProperty(19, "size", 0);
- grd_cnst.setFormatColProperty(20, "size", 0);
- }
- else
- {
- grd_cnst.setFormatColProperty(19, "size", 55);
- grd_cnst.setFormatColProperty(20, "size", 55);
- }
- }
- function fSearch()
- {
- if(!fDefaultCheck()) return;
-
- var oParam = {};
- oParam.id = "TRSDT01001";
- oParam.service = "stscmcnwapp.SoclEndStats";
- oParam.method = "reqGetCnstMng";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_cnstinfo_cnstlist=cnstlist";
- oParam.async = false;
- oParam.callback = "cf_TRSDT01001";
- tranf_submit(oParam);
-
- var val = ds_send_reqdata.getColumn(0, "sumflag");
-
- if(val=='1')
- {
- fGetBfResult();
- }
- }
- function cf_TRSDT01001(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- sysf_messageBox("조회를", "E009");
- return;
- }
- }
- function fGetBfResult()
- {
- if(ds_main_cnstinfo_cnstlist.rowcount > 0)
- {
- var sStat = 0;
- var insRow = ds_main_cnstinfo_cnstlist.addRow();
- ds_main_cnstinfo_cnstlist.setColumn(insRow, "cond", "전기간대비실적비교");
-
- for(var i = 1; i < 19; i++)
- {
- var bfResult = eval(ds_main_cnstinfo_cnstlist.getColumn(insRow-1 , i));
- var sSum = eval(ds_main_cnstinfo_cnstlist.getColumn(insRow-2, i));
-
- sStat = eval(sSum)- eval(bfResult);
- ds_main_cnstinfo_cnstlist.setColumn(insRow, i, eval(sStat));
- }
- ds_main_cnstinfo_cnstlist.setColumn(insRow-1, "bfcnt", "");
- ds_main_cnstinfo_cnstlist.setColumn(insRow-1, "bfcompare", "");
- ds_main_cnstinfo_cnstlist.setColumn(insRow, "bfcompare", "");
- }
- else
- {
- ds_main_cnstinfo_cnstlist.clearData();
- }
- }
- function fDefaultCheck()
- {
- var fromdd = ds_send_reqdata.getColumn(0, "fromdd") +"01";
- var todd = ds_send_reqdata.getColumn(0, "todd")+ "01";
-
- if(utlf_isNull(fromdd) == true || utlf_isNull(todd) == true)
- {
- ds_main_cnstinfo_cnstlist.clearData();
- sysf_messageBox("조회기간을", "C001");
- group4.ipt_fromdd.setFocus();
- return false;
- }
- if( !utlf_isValidDateTime(fromdd, 'YYYYMMDD') || !utlf_isValidDateTime(todd, 'YYYYMMDD'))
- {
- ds_main_cnstinfo_cnstlist.clearData();
- sysf_messageBox("입력하신 일이 정확한 날짜타입이 아닙니다.", "E999", "");
- group4.ipt_fromdd.setFocus();
- return false;
- }
- if(fromdd > todd)
- {
- ds_main_cnstinfo_cnstlist.clearData();
- sysf_messageBox("조회시작일보다 큰 조회종료일을 입력하십시요.","I");
- group4.ipt_todd.setFocus();
- return;
- }
-
- var dateintval = utlf_getDateInterval(fromdd,todd);
-
- if(dateintval >= 365)
- {
- ds_main_cnstinfo_cnstlist.clearData();
- sysf_messageBox("조회기간은 최대1년까지 할 수 있습니다.","I");
- group4.ipt_fromdd.setFocus();
- return false;
- }
- else
- {
- return true;
- }
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- fExcel();
- }
- function fExcel()
- {
- if (ds_main_cnstinfo_cnstlist.rowcount == 0)
- {
- sysf_messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
- return;
- }
-
- grdf_exportExcel(grd_cnst, "사회사업상담관리실적", "SheetName", "true", "", "");
- }
- function btn_search0_onclick(obj:Button, e:ClickEventInfo)
- {
- fInit();
- }
- function group4_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- ds_send_reqdata.setColumn(0, "fromdd", String(obj.value).substr(0,6));
- }
- function group4_ipt_todd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- ds_send_reqdata.setColumn(0, "todd", String(obj.value).substr(0,6));
- }
- function group4_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fAllSearch();
- }
- ]]></Script>
- </Form>
- </FDL>
|