123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMR06001" position="absolute 0 0 394 261" titletext="통계집계" onload="SPMMR06001_onload">
- <Layouts>
- <Layout>
- <Shape id="roundrect3" anchor="default" type="roundrectangle" position="absolute 0 31 350 216" style=""/>
- <Static id="caption2" class="search_name" position="absolute 30 78 115 95" text="수술일"/>
- <Button id="btn_execute" class="btn4_letter2" position="absolute 266 137 322 159" text="실행" onclick="btn_execute_onclick"/>
- <Div id="grp_tle" position="absolute 0 1 1146 30" style="">
- <Layouts>
- <Layout>
- <Static id="caption6" class="tit_1" position="absolute 0 -3 163 20" text="마취료 통계집계" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption3" position="absolute 212 80 227 100" style="" text="~"/>
- <Calendar id="ipt_fromdd" class="input_search" taborder="1" mask="yyyy-mm-dd" position="absolute 106 78 209 97" style="align:center ;" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
- <Calendar id="ipt_todd" class="input_search" taborder="1" mask="yyyy-mm-dd" position="absolute 227 78 321 97" style="align:center ;" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"/>
- <Col id="todd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hide" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hide" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hide"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="main" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="main"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="init" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
- <BindItem id="item1" compid="ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-01
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-01 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "com_basiccodexp::ZBC001.xjs";
- //스크립트 시작 ***
- //전체에서 event와 src를 제외한 script 를 모두포함.
- //스크립트 끝
- function SPMMR06001_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
-
- ipt_fromdd.value = ((utlf_getCurrentDate().toDate()).getAddDate(-1,"D")).getDateFormat();
- ipt_todd.value = ((utlf_getCurrentDate().toDate()).getAddDate(-1,"D")).getDateFormat();
- }
- function btn_execute_onclick(obj:Button, e:ClickEventInfo) {
- var fromdd = ds_send.getColumn(0, "fromdd");
- var todd = ds_send.getColumn(0, "todd");
- if(fromdd>todd){
- alert("기간이 잘못되었습니다!");
- todd.setFocus();
- return;
- }
- if( utlf_getDateInterval(fromdd, todd) > 10 ){
- sysf_messageBox("배치 최대 기간은 10일입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
- return ;
- }
- if ( !utlf_isNull(fromdd) && !utlf_isNull(todd)) {
- trace('111');
- var oParam = {};
- oParam.id = "TXMMR04213";
- oParam.service = "anstrecapp.ApacheRec";
- oParam.method = "reqExeOPRSBatch";
- oParam.inds = "req=ds_send";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXMMR04213";
- tranf_submit(oParam);
-
- } else {
- sysf_messageBox("집계일자를 입력하세요");
- todd.setFocus();
- return;
- }
- }
- function cf_TXMMR04213(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) {
- sysf_messageBox("비정상적으로 배치를 수행 했습니다.");
- return;
- }else{
- sysf_messageBox("정상적으로 배치를 수행 했습니다.");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|