123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMSDT03000" position="absolute 0 0 1200 799" titletext="사회사업 협의진료실적" oninit="SMSDT03000_oninit" onload="SMSDT03000_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 81 195 103"/>
- <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 95 1195 106" 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 11 101 28"/>
- <Shape id="line2" linetype="vertical" position="absolute 1110 9 1116 31" anchor="top right"/>
- <Static id="cap1" text="~" position="absolute 439 11 448 31"/>
- <Calendar id="ipt_fromdd" taborder="5" class="input_search" position="absolute 335 11 435 30" mask="yyyy-mm" autoselect="true" dateformat="yyyy-MM" editformat="yyyy-MM" autoskip="true" onchanged="group4_ipt_fromdd_onchanged"/>
- <Calendar id="ipt_todd" taborder="6" class="input_search" position="absolute 457 11 557 30" mask="yyyy-mm" autoselect="true" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" onchanged="group4_ipt_todd_onchanged"/>
- <Static id="caption1" text="조회기간 :" class="search_name" position="absolute 249 13 333 30"/>
- <Combo id="cmb_sumflag" taborder="7" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 110 11 220 30" onitemchanged="group4_cmb_sumflag_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">월별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">업무분야별</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_excel" taborder="3" text="엑셀저장" class="btn7" position="absolute 1115 78 1195 97" 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 102 1195 766" autoenter="select" cellsizingtype="col" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="160"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="95"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="89"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="90"/>
- </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" rowspan="3" text="사회사업 협진의뢰 건수" taborder="undefined"/>
- <Cell col="2" rowspan="3" text="사회사업 협진회신 건수" taborder="undefined"/>
- <Cell col="3" rowspan="3" text="사회사업 협진회신율" taborder="undefined"/>
- <Cell col="4" rowspan="3" text="사회사업 협진평균 회신일" taborder="undefined"/>
- <Cell col="5" colspan="4" text="전월실적" taborder="undefined"/>
- <Cell col="9" colspan="4" 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="협진평균회신일" wordwrap="word" 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="협진평균회신일" wordwrap="word" taborder="undefined"/>
- </Band>
- <Band id="body">
- <Cell text="bind:cdnm" maskchar=" " calendardisplaynulltype="nulltext"/>
- <Cell col="1" text="bind:reqcnt"/>
- <Cell col="2" text="bind:replcnt"/>
- <Cell col="3" text="bind:avgrate" wordwrap="word"/>
- <Cell col="4" text="bind:avgdayno" wordwrap="word"/>
- <Cell col="5" text="bind:bfreqcnt"/>
- <Cell col="6" text="bind:bfreplcnt"/>
- <Cell col="7" text="bind:bfavgrate"/>
- <Cell col="8" text="bind:bfavgdayno"/>
- <Cell col="9" text="bind:comparereqcnt"/>
- <Cell col="10" text="bind:comparereplcnt"/>
- <Cell col="11" text="bind:comparereplper"/>
- <Cell col="12" text="bind:comparerepldayno"/>
- </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_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="flag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="flag">2</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="cdnm" type="STRING" size="256" sumtext="구분"/>
- <Column id="reqcnt" type="STRING" size="256" sumtext="사회사업협진의뢰건수"/>
- <Column id="replcnt" type="STRING" size="256" sumtext="사회사업협진회신건수"/>
- <Column id="avgrate" type="STRING" size="256" sumtext="사회사업협진회신율"/>
- <Column id="avgdayno" type="STRING" size="256" sumtext="사회사업협진평균회신일"/>
- <Column id="bfreqcnt" type="STRING" size="256" sumtext="전월실적-협진의뢰건수"/>
- <Column id="bfreplcnt" type="STRING" size="256" sumtext="전월실적-협진회신건수"/>
- <Column id="bfavgrate" type="STRING" size="256" sumtext="전월실적-협진회신율"/>
- <Column id="bfavgdayno" type="STRING" size="256" sumtext="전월실적-협진평균회신일"/>
- <Column id="comparereqcnt" type="STRING" size="256" sumtext="전월대비-협진의뢰건수"/>
- <Column id="comparereplcnt" type="STRING" size="256" sumtext="전월대비-협진회신건수"/>
- <Column id="comparereplper" type="STRING" size="256" sumtext="전월대비-협진회신율"/>
- <Column id="comparerepldayno" type="STRING" size="256" sumtext="전월대비-협진의뢰평균회신일"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group4.cmb_sumflag" propid="value" datasetid="ds_main_cond" columnid="flag"/>
- <BindItem id="item1" compid="group4.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
- <BindItem id="item2" compid="group4.ipt_todd" propid="value" datasetid="ds_main_cond" 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 SMSDT03000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMSDT03000_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_cnst);
- fInit();
- }
- function fInit()
- {
- ds_main_cnstinfo_cnstlist.clearData();
- group4.cmb_sumflag.index = 0;
-
- var currentDate = utlf_getCurrentDate();
- var LastDate = currentDate.toDate().getAddDate(-1,"M").getDateFormat();
- var LastDateYM = String(LastDate).substr(0,6);
- ds_main_cond.setColumn(0, "fromdd",LastDateYM);
- ds_main_cond.setColumn(0, "todd",LastDateYM);
- }
- function group4_cmb_sumflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fGetSoclConfCnstInfo();
- }
- function fGetSoclConfCnstInfo()
- {
- var fromdd = ds_main_cond.getColumn(0, "fromdd") +"01";
- var todd = ds_main_cond.getColumn(0, "todd")+ "01";
- var dateintval = utlf_getDateInterval(fromdd,todd);
- var fdate = ds_main_cond.getColumn(0, "fromdd");
- var todate = ds_main_cond.getColumn(0, "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>=365)
- {
- sysf_messageBox("조회기간은 최대1년까지 할 수 있습니다.","I");
- group4.ipt_todd.setFocus();
- return;
- }
-
- if(group4.cmb_sumflag.value == '1')
- {
- grd_cnst.setFormatColProperty(5, "size", 0);
- grd_cnst.setFormatColProperty(6, "size", 0);
- grd_cnst.setFormatColProperty(7, "size", 0);
- grd_cnst.setFormatColProperty(8, "size", 0);
- grd_cnst.setFormatColProperty(9, "size", 0);
- grd_cnst.setFormatColProperty(10, "size", 0);
- grd_cnst.setFormatColProperty(11, "size", 0);
- grd_cnst.setFormatColProperty(12, "size", 0);
- grd_cnst.setFormatColProperty(13, "size", 0);
-
- var oParam = {};
- oParam.id = "TRSDT03001";
- oParam.service = "stscmcnwapp.SoclEndStats";
- oParam.method = "reqGetSoclConfCnstInfo";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_main_cnstinfo_cnstlist=cnstlist";
- oParam.async = false;
- //oParam.callback = "cf_TRSDT03001";
- tranf_submit(oParam);
- }
- else if(group4.cmb_sumflag.value == '2')
- {
- grd_cnst.setFormatColProperty(5, "size", 80);
- grd_cnst.setFormatColProperty(6, "size", 80);
- grd_cnst.setFormatColProperty(7, "size", 80);
- grd_cnst.setFormatColProperty(8, "size", 80);
- grd_cnst.setFormatColProperty(9, "size", 80);
- grd_cnst.setFormatColProperty(10, "size", 80);
- grd_cnst.setFormatColProperty(11, "size", 80);
- grd_cnst.setFormatColProperty(12, "size", 80);
- grd_cnst.setFormatColProperty(13, "size", 80);
-
- var oParam = {};
- oParam.id = "TRSDT03001";
- oParam.service = "stscmcnwapp.SoclEndStats";
- oParam.method = "reqGetSoclConfCnstInfo";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_main_cnstinfo_cnstlist=cnstlist";
- oParam.async = false;
- //oParam.callback = "cf_TRSDT03001";
- tranf_submit(oParam);
- fStat();
- }
- }
- function fStat()
- {
- if(ds_main_cnstinfo_cnstlist.rowcount > 1)
- {
- var val = ds_main_cnstinfo_cnstlist.getColumn(0, "cdnm");
- if(utlf_isNull(val)) return;
-
- if(ds_main_cnstinfo_cnstlist.rowcount > 0)
- {
- var sStat = 0;
- var insRow = ds_main_cnstinfo_cnstlist.addRow();
- ds_main_cnstinfo_cnstlist.setColumn(insRow, "cdnm", "전기간대비실적비교");
-
- for(var i = 1; i < 5; 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));
- }
- }
- }
- else
- {
- ds_main_cnstinfo_cnstlist.clearData();
- }
- }
- function group4_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- ds_main_cond.setColumn(0, "fromdd", String(obj.value).substr(0,6));
- }
- function group4_ipt_todd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- ds_main_cond.setColumn(0, "todd", String(obj.value).substr(0,6));
- }
- function group4_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetSoclConfCnstInfo()
- }
- 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();
- }
- ]]></Script>
- </Form>
- </FDL>
|