123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.4">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMR03500" position="absolute 0 0 400 220" titletext="APACHE II - 측정시간 설정" oninit="SPMMR03500_oninit" onload="SPMMR03500_onload">
- <Layouts>
- <Layout>
- <Div position="absolute -193 47 192 82" id="grp_btn" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Static text="* 최근 Setting 일자 :" position="absolute 19 6 139 26" id="caption1" anchor="default"/>
- <Static position="absolute 135 5 235 25" id="cpt_setting" mask="yyyy-mm-dd" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="div" taborder="1" position="absolute 0 0 400 220" class="div_Layer">
- <Layouts>
- <Layout>
- <Div id="grp_btn" taborder="0" position="absolute 5 171 390 206" anchor="default">
- <Layouts>
- <Layout>
- <Static id="caption1" text="* 최근 Setting 일자 :" position="absolute 19 6 139 26" anchor="default"/>
- <Button id="btn_setting" taborder="1" text="설정" class="btn4" position="absolute 260 5 316 27" anchor="default" onclick="div_grp_btn_btn_setting_onclick"/>
- <Button id="btn_close" taborder="2" text="닫기" class="btn4" position="absolute 320 5 376 27" anchor="default" onclick="div_grp_btn_btn_close_onclick"/>
- <Static id="cpt_setting" position="absolute 135 5 235 25" mask="yyyy-mm-dd" anchor="default" expr="expr:this.text.substr(0,4)+"-"+this.text.substr(4,2)+"-"+this.text.substr(6,2)"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption2" text="APACHE II - Setting" class="tit_3" position="absolute 5 10 194 26" anchor="default"/>
- <MaskEdit id="ipt_insptm" taborder="1" mask="##:##" class="input_default" position="absolute 215 70 320 89" anchor="default" style="align:center middle;" type="string" displaynulltext=" "/>
- <Static id="lbl_insptm" text="APACHE II 측정시간" class="cell_1" position="absolute 70 70 210 90" anchor="default"/>
- <Button id="button1" taborder="2" class="icon_clock" position="absolute 303 72 319 88" anchor="default" onclick="div_button1_onclick"/>
- <Static id="caption3" text="< APACHE Ⅱ 는 측정시간 기준으로 과거 24시간 내 검사 결과치를 참고합니다. >" position="absolute 70 110 335 140" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_apchdt" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="insptm" type="STRING" size="256"/>
- <Column id="lastupdtdt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="lastupdtdt"></Col>
- <Col id="insptm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="div.grp_btn.cpt_setting" propid="text" datasetid="ds_main_apchdt" columnid="lastupdtdt"/>
- <BindItem id="item1" compid="div.ipt_insptm" propid="value" datasetid="ds_main_apchdt" columnid="insptm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-10-22
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-10-22 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : 01.sKey : 코드아이디
- * : 02.sValue : 코드명
- * Description : 공통코드를 가져온다.
- ****************************************************************************************/
- //=======================================================================================
- // Transaction Callback
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : 01.sSvcId : 서비스 ID
- * : 02.nErrorCode : 에러코드
- * : 03.sErrorMsg : 에러메시지
- * Description : tr_getCodeList의 콜백함수
- ****************************************************************************************/
- function cf_TRMMR03500(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- arErrorCode.push(sSvcId, nErrorCode);
- sysf_trace("***** cf_TRMMR03500 *****");
- }
- function cf_TXMMR03500(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- arErrorCode.push(sSvcId, nErrorCode);
- sysf_trace("***** cf_TXMMR03500 *****");
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : button5
- * Event : onlbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SPMMR03500_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPMMR03500_onload(obj:Form, e:LoadEventInfo)
- {
- var oParam = {};
- oParam.id = "TRMMR03500";
- oParam.service = "anstrecapp.ApacheRec";
- oParam.method = "reqGetApchLastDT";
- oParam.inds = "reqdata=ds_reqdata";
- oParam.outds = "ds_main_apchdt=apchdt";
- oParam.async = false;
- oParam.callback = "cf_TRMMR03500";
- tranf_submit(oParam);
- }
- function div_grp_btn_btn_setting_onclick(obj:Button, e:ClickEventInfo)
- {
- var apchsetdd = utlf_getCurrentDate();
- var apchsethh = ds_main_apchdt.getColumn(0, "insptm").substr(0,2);
- var apchsetnn = ds_main_apchdt.getColumn(0, "insptm").substr(2,2);
- apchsetdd = apchsetdd.substr(4, 2) + "/" + apchsetdd.substr(6, 2);
- if (sysf_messageBox("익일(" + apchsetdd + ")부터 APACHE II 측정시간이 " + apchsethh + "시" + apchsetnn + "분으로 적용됩니다.", "Q004") == 6) {
-
- var oParam = {};
- oParam.id = "TXMMR03500";
- oParam.service = "anstrecapp.ApacheRec";
- oParam.method = "reqExeSaveApchSetItem";
- oParam.inds = "apchdt=ds_main_apchdt";
- oParam.outds = "ds_main_apchdt=apchdt";
- oParam.async = false;
- oParam.callback = "cf_TXMMR03500";
- tranf_submit(oParam);
-
- var oParam = {};
- oParam.id = "TRMMR03500";
- oParam.service = "anstrecapp.ApacheRec";
- oParam.method = "reqGetApchLastDT";
- oParam.inds = "reqdata=ds_reqdata";
- oParam.outds = "ds_main_apchdt=apchdt";
- oParam.async = false;
- oParam.callback = "cf_TRMMR03500";
- tranf_submit(oParam);
-
- } else {
- return;
- }
- }
- function div_grp_btn_btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function div_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- // 현재시각 입력
- ds_main_apchdt.setColumn(0, "insptm", utlf_getCurrentTime().substr(0,4));
- }
- ]]></Script>
- </Form>
- </FDL>
|