123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMR06002" position="absolute 0 0 350 210" titletext="통계집계" oninit="SPMMR06002_oninit" onload="SPMMR06002_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 24 350 210" id="roundrect3" class="div_SA"/>
- <Static text="수술일" position="absolute 30 79 115 96" id="caption2" class="search_name"/>
- <Button position="absolute 266 138 322 160" id="btn_execute" class="btn4" text="실행"/>
- <Static text="~" position="absolute 212 81 227 101" id="caption3"/>
- <Calendar position="absolute 115 79 209 98" align="align:center middle;" id="ipt_fromdd" class="input_search" taborder="1" mask="yyyy-mm-dd" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
- <Calendar position="absolute 227 79 321 98" align="align:center middle;" id="ipt_todd" class="input_search" taborder="1" mask="yyyy-mm-dd" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
- <Static text="외상수술대장배치" position="absolute 0 0 143 24" id="caption6" class="tit_1"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" 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"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"/>
- <Col id="todd"/>
- </Row>
- </Rows>
- </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-05
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-05 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //var arErrorCode = new HashArray();
-
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : N/A
- ****************************************************************************************/
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMMR06002
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 초기화
- ****************************************************************************************/
- function SPMMR06002_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMMR06002
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 초기화
- ****************************************************************************************/
- function SPMMR06002_onload(obj:Form, e:LoadEventInfo)
- {
- ipt_fromdd.value = ((utlf_getCurrentDate().toDate()).getAddDate(-1,"D")).getDateFormat();
- ipt_todd.value = ((utlf_getCurrentDate().toDate()).getAddDate(-1,"D")).getDateFormat();
-
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_execute
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 실행 버튼
- ****************************************************************************************/
- 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("기간이 잘못되었습니다!");
- ipt_todd.setFocus();
- return;
- }
-
- if ( !utlf_isNull(fromdd) && !utlf_isNull(todd)) {
-
- var oParam = {};
- oParam.id = "TXMMR04214";
- oParam.service = "anstrecapp.ApacheRec";
- oParam.method = "reqExeTROPBatch";
- oParam.inds = "req=ds_send";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXMMR04214";
- tranf_submit(oParam);
-
- } else {
- alert("집계일자를 입력하세요");
- ipt_todd.setFocus();
- return;
- }
- }
- function cf_TXMMR04214(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0){
- alert("비정상적으로 배치를 수행 했습니다.");
- return;
- }
-
- alert("정상적으로 배치를 수행 했습니다.");
- }
- ]]></Script>
- </Form>
- </FDL>
|