123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMSDT06100" position="absolute 0 0 1199 771" titletext="사회사업마감이력" oninit="SMSDT06100_oninit" onload="SMSDT06100_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="사회사업마감이력" class="tit_1" position="absolute 0 0 225 25"/>
- <Static id="caption21" text="마감작업 LIST" class="tit_2" position="absolute 0 84 209 105"/>
- <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 98 1195 109" anchor="left top right"/>
- <Grid id="grd_fthendlist" taborder="0" binddataset="ds_main_fthendlist_fthendlistinfo" useinputpanel="false" position="absolute 0 105 1195 745" autoenter="select" cellsizingtype="col" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="31"/>
- <Column size="111"/>
- <Column size="115"/>
- <Column size="100"/>
- <Column size="140"/>
- <Column size="117"/>
- <Column size="311"/>
- </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="상태"/>
- <Cell col="4" text="마감일시"/>
- <Cell col="5" text="마감자"/>
- <Cell col="6" text="비고"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="date" text="bind:endym" mask="yyyy-MM" calendardisplaynulltype="nulltext"/>
- <Cell col="2" text="bind:enddg"/>
- <Cell col="3" text="bind:workstat"/>
- <Cell col="4" displaytype="date" style="align:center middle;" text="bind:enddt" mask="yyyy-MM-dd HH:mm:ss" calendardisplaynulltype="nulltext"/>
- <Cell col="5" text="bind:endpsn"/>
- <Cell col="6" style="align:left middle;padding:0 0 0 3;" text="bind:endrem"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="group4" anchor="left top right" taborder="1" class="div_SA" position="absolute 0 25 1195 65">
- <Layouts>
- <Layout>
- <Static id="caption26" text="작업월 :" class="search_name" position="absolute 10 12 95 29"/>
- <Edit id="ipt_medicntrtrsmpsn" taborder="2" enable="false" position="absolute 303 11 403 30"/>
- <Static id="caption1" text="마감자 :" class="search_name" position="absolute 225 12 310 29"/>
- <Calendar id="ipt_endyy" taborder="4" class="input_search" visible="false" position="absolute 405 11 460 30" mask="yyyy" dateformat="yyyy" value="null" editformat="yyyy" autoselect="true"/>
- <Calendar id="ipt_endmm" taborder="5" class="input_search" visible="false" position="absolute 460 11 510 30" mask="mm" dateformat="MM" value="null" editformat="MM" autoselect="true"/>
- <cp_monthCal id="ipt_endym" titletext="monthCalendar" taborder="6" text="cp_monthCal00" scrollbars="none" position="absolute 80 10 177 31"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="button3" taborder="2" text="조회" class="btn5" position="absolute 1153 81 1195 100" anchor="top right" onclick="button3_onclick"/>
- <Static id="caption2" text="~" class="search_no_b" position="absolute 1035 82 1047 99" anchor="top right"/>
- <Static id="caption29" text="마감월" class="cell_1" position="absolute 849 79 928 100" anchor="top right" style="padding:0 0 0 0;align:center middle;"/>
- <Button id="btn_end" taborder="5" text="마감" class="btn4" position="absolute 1115 34 1171 56" anchor="top right" onclick="btn_end_onclick"/>
- <Button id="button1" taborder="6" text="마감로그조회" class="btn3" position="absolute 1091 746 1195 768" anchor="right bottom" onclick="button1_onclick"/>
- <cp_monthCal id="ipt_fromdd" titletext="monthCalendar" taborder="7" text="cp_monthCal00" scrollbars="none" position="absolute 931 80 1032 100" anchor="top right" style="align:center middle;"/>
- <cp_monthCal id="input1" titletext="monthCalendar" taborder="8" text="cp_monthCal00" scrollbars="none" position="absolute 1050 80 1150 100" anchor="top right" style="align:center middle;"/>
- </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="endym" type="STRING" size="256"/>
- <Column id="medicntrtrsmpsn" type="STRING" size="256"/>
- <Column id="from" type="STRING" size="256"/>
- <Column id="to" type="STRING" size="256"/>
- <Column id="endyy" type="STRING" size="256"/>
- <Column id="endmm" type="STRING" size="256"/>
- <Column id="entryy" type="STRING" size="256"/>
- <Column id="qurtyy" type="STRING" size="256"/>
- <Column id="enddd" type="STRING" size="256"/>
- <Column id="enddg" type="STRING" size="256"/>
- <Column id="btnflag" type="STRING" size="256"/>
- <Column id="batchflag" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="bizflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="endym"/>
- <Col id="medicntrtrsmpsn"/>
- <Col id="from"/>
- <Col id="to"/>
- <Col id="endyy"/>
- <Col id="endmm"/>
- <Col id="entryy"/>
- <Col id="qurtyy"/>
- <Col id="enddd"/>
- <Col id="enddg"/>
- <Col id="btnflag"/>
- <Col id="batchflag"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="bizflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_fthendlist_fthendlistinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="endyy" type="STRING" size="256" sumtext="마감년도"/>
- <Column id="endmm" type="STRING" size="256" sumtext="마감월"/>
- <Column id="endym" type="STRING" size="256" sumtext="마감"/>
- <Column id="workstat" type="STRING" size="256" sumtext="상태"/>
- <Column id="enddg" type="STRING" size="256" sumtext="마감차수"/>
- <Column id="enddt" type="STRING" size="256" sumtext="마감일시"/>
- <Column id="endpsn" type="STRING" size="256" sumtext="마감자"/>
- <Column id="medicntrtrsmdt" type="STRING" size="256" sumtext="송신일"/>
- <Column id="medicntrtrsmpsn" type="STRING" size="256" sumtext="송신자"/>
- <Column id="endrem" type="STRING" size="256" sumtext="비고"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_rtninfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rtnflag" type="STRING" size="256" sumtext="마감상태"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item1" compid="group4.ipt_medicntrtrsmpsn" propid="value" datasetid="ds_main_cond" columnid="medicntrtrsmpsn"/>
- <BindItem id="item2" compid="group4.ipt_endyy" propid="value" datasetid="ds_main_cond" columnid="endyy"/>
- <BindItem id="item3" compid="group4.ipt_endmm" propid="value" datasetid="ds_main_cond" columnid=""/>
- <BindItem id="item6" compid="group4.ipt_endym" propid="text" datasetid="ds_main_cond" columnid="endym"/>
- <BindItem id="item0" compid="ipt_fromdd" propid="text" datasetid="ds_main_cond" columnid="endym"/>
- <BindItem id="item7" compid="input1" propid="text" datasetid="ds_main_cond" columnid="endym"/>
- </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 SMSDT06100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMSDT06100_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_fthendlist);
- fInit();
- }
- function fInit()
- {
- group4.ipt_endym.setCallEvent("fn_Cal_endym");
- ipt_fromdd.setCallEvent("fn_Cal_fromdd");
- input1.setCallEvent("fn_Cal_todd");
-
- var menuparam = frmf_getMenuParam();
-
- if (menuparam == "03")
- {
- this.text = "의료협력마감이력";
- caption6.text = "의료협력마감이력";
- ds_main_cond.setColumn(0, "bizflag", menuparam);
- }
- else
- {
- this.title = "사회사업마감이력";
- caption6.text = "사회사업마감이력";
- ds_main_cond.setColumn(0, "bizflag", "02");
- }
-
- ds_main_fthendlist_fthendlistinfo.clearData();
-
- var usernm = sysf_getUserInfo("usernm");
- group4.ipt_medicntrtrsmpsn.value = usernm;
-
- var CurrentDate = utlf_getCurrentDate();
- var lstDate = CurrentDate.toDate().getAddDate(-1,"M").getDateFormat();
- var LastDate = String(lstDate).substr(0,6);
- group4.ipt_endym.setData(LastDate);
- ipt_fromdd.setData(LastDate);
- input1.setData(LastDate);
-
- ds_main_cond.setColumn(0, "endym", LastDate);
-
- ds_main_cond.setColumn(0, "from", LastDate );
- ds_main_cond.setColumn(0, "to", LastDate );
- }
- function fn_Cal_endym()
- {
- var endym = group4.ipt_endym.getData();
- ds_main_cond.setColumn(0, "endym", endym);
- }
- function fn_Cal_fromdd()
- {
- var fromdd = ipt_fromdd.getData();
- ds_main_cond.setColumn(0, "from", fromdd);
- }
- function fn_Cal_todd()
- {
- var to = input1.getData();
- ds_main_cond.setColumn(0, "to", to);
- }
- function btn_end_onclick(obj:Button, e:ClickEventInfo)
- {
- fEnd();
- }
- function fEnd()
- {
- var endym = ds_main_cond.getColumn(0, "endym");
- var endyy = ds_main_cond.getColumn(0, "endyy");
- var endmm = ds_main_cond.getColumn(0, "endmm");
-
- ds_main_cond.setColumn(0, "endym",String(endym).substr(0, 6) );
- ds_main_cond.setColumn(0, "endyy",String(endym).substr(0, 4) );
- ds_main_cond.setColumn(0, "endmm",String(endym).substr(4, 2) );
-
- var oParam = {};
- oParam.id = "TRSDT06103";
- oParam.service = "stscmcnwapp.SoclEndStats";
- oParam.method = "reqGetSoclWorkStat";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_temp_rtninfo=rtninfo";
- oParam.async = false;
- //oParam.callback = "cf_TRSDT06103";
- tranf_submit(oParam);
-
- rtnflag = ds_temp_rtninfo.getColumn(0, "rtnflag");
-
- if(rtnflag == "00")
- {
- sysf_messageBox("마감중입니다.","E");
- return;
- }
- else if(rtnflag =="01")
- {
- sysf_messageBox("마감에러 상태입니다.","E");
- return;
- }
- else if(rtnflag =="02")
- {
- var vbYes = sysf_messageBox("마감 완료된 상태입니다.마감을", "Q004");
-
- if(vbYes == 6)
- {
- }
- else
- {
- return;
- }
- }
- else if(rtnflag =="03")
- {
- var vbYes = sysf_messageBox("마감 완료된 상태입니다.마감을", "Q004");
- if(vbYes == 6)
- {
- }
- else
- {
- return;
- }
- }
- else if(rtnflag =="04")
- {
- var vbYes = sysf_messageBox("의료원송신 완료된 상태입니다.마감을", "Q004");
- if(vbYes == 6)
- {
- }
- else
- {
- return;
- }
- }
-
- var oParam = {};
- oParam.id = "TRSDT06101";
- oParam.service = "stscmcnwapp.SoclEndStats";
- oParam.method = "reqSetSoclEndStats";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_temp_rtninfo=rtninfo";
- oParam.async = false;
- oParam.callback = "cf_TRSDT06101";
- tranf_submit(oParam);
- }
- function cf_TRSDT06101(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else
- {
- rtnflag = ds_temp_rtninfo.getColumn(0, "rtnflag");
- if (rtnflag =="99")
- {
- sysf_messageBox("마감이 정상적으로 실행되었습니다.","I");
- }
- }
- }
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetFthEndYM();
- }
- function fGetFthEndYM()
- {
- var oParam = {};
- oParam.id = "TRSDT06102";
- oParam.service = "stscmcnwapp.SoclEndStats";
- oParam.method = "reqGetSoclEndStatsSeqInfo";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_main_fthendlist_fthendlistinfo=fthendlistinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRSDT06102";
- tranf_submit(oParam);
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMZSB00201", "SMZSB00201", "", "", "", "", "", "", "", "", "", "", "M");
- }
- ]]></Script>
- </Form>
- </FDL>
|