123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAEA02000" position="absolute 0 0 423 527" titletext="Alarm Notify" onload="SPAEA02000_onload" ontimer="SPAEA02000_ontimer">
- <Layouts>
- <Layout>
- <Static id="Static02" class="sta_DA_box" position="absolute 1 26 421 52"/>
- <Grid id="grd_tmplcodelist" position="absolute 1 82 421 497" anchor="default" positiontype="position" autofittype="col" binddataset="ds_grid_grd_tmplcodelist">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="91"/>
- <Column size="85"/>
- <Column size="39"/>
- <Column size="159"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="등록번호"/>
- <Cell col="1" text="이름"/>
- <Cell col="2" text="i/o"/>
- <Cell col="3" text="구분"/>
- </Band>
- <Band id="body">
- <Cell text="bind:pid"/>
- <Cell col="1" text="bind:hngnm" maxlength="12"/>
- <Cell col="2" text="bind:ioflag"/>
- <Cell col="3" text="bind:alarmflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption4" class="tit_2" position="absolute 1 62 101 82" anchor="default" positiontype="position" text="환자"/>
- <Static id="caption1" class="tit_2" position="absolute 1 6 103 26" anchor="default" positiontype="position" text="설정"/>
- <CheckBox id="checkbox1" visible="true" position="absolute 318 500 418 520" anchor="default" positiontype="position" text="최상위 윈도우" truevalue="Y" falsevalue="" onchanged="checkbox1_onchanged"/>
- <Button id="button1" class="btn4" position="absolute 302 29 358 49" anchor="default" positiontype="position" text="시작" onclick="button1_onclick"/>
- <Button id="button4" class="btn4" position="absolute 361 29 417 49" anchor="default" positiontype="position" text="종료" onclick="button4_onclick"/>
- <Static id="caption2" text="interval" class="cell_1" position="absolute 2 27 62 51" style="align:center middle;" positiontype="position"/>
- <Combo id="combo2" taborder="1" position="absolute 65 29 125 49" positiontype="position" innerdataset="@ds_interval" codecolumn="cdid" datacolumn="cdnm"/>
- <Static id="caption3" text="치료실" class="cell_1" position="absolute 128 27 188 51" style="align:center middle;" positiontype="position"/>
- <Combo id="cmb_excuroom" taborder="2" class="combo_default" position="absolute 191 29 298 49" positiontype="position" innerdataset="@ds_init_cmb_excuroom" codecolumn="basecd" datacolumn="basecdflagdesc" onitemchanged="cmb_excuroom_onitemchanged"/>
- <ActiveX id="object1" position="absolute 2 500 33 526" progid="{6bf52a52-394a-11d3-b153-00c04f79faa6}" useautobitmapcache="1" anchor="default" taborder="5" visible="false" URL="./IMAGES/Ringin.wav"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_tmplcodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="ioflag" type="STRING"/>
- <Column id="alarmflag" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_excuroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd" type="STRING" size="256"/>
- <Column id="basecdflagdesc" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="basecd"/>
- <Col id="basecdflagdesc"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cond_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_cmb_initexcuward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="execwardcdid" type="STRING" size="256"/>
- <Column id="execwardcdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_interval" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">60000</Col>
- <Col id="cdnm">1분</Col>
- </Row>
- <Row>
- <Col id="cdid">180000</Col>
- <Col id="cdnm">3분</Col>
- </Row>
- <Row>
- <Col id="cdid">300000</Col>
- <Col id="cdnm">5분</Col>
- </Row>
- <Row>
- <Col id="cdid">600000</Col>
- <Col id="cdnm">10분</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="interval" type="STRING" size="256"/>
- <Column id="instance1" type="STRING" size="256"/>
- <Column id="retroomcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="interval"/>
- <Col id="instance1"/>
- <Col id="retroomcd"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="combo2" propid="value" datasetid="ds_send" columnid="interval"/>
- <BindItem id="item1" compid="cmb_excuroom" propid="value" datasetid="ds_send" columnid="retroomcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * File Name : SPAEA02000_AlarmNotify(재활의학과).xfdl
- * Creator :
- * Make Date :
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // xjs Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "com_basiccodexp::ZBC001.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //******************************************************************
- // 데이터셋 동적 생성
- //******************************************************************
- function lf_initDataSet(){
- // cmb_excuroom의 INIT Dataset
- this.cmb_excuroom.innerdataset = "ds_init_cmb_excuroom";
- this.cmb_excuroom.codecolumn = "excuroomcdid";
- this.cmb_excuroom.datacolumn = "excuroomcdnm";
- }
- //치료실코드 조회
- function submit_TRAEA01201(){
-
- dsf_createDsRow("ds_cond_req",
- [{col:"basesuppdeptcd", val:suppdeptcd} //suppdeptcd
- ,{col:"rbasecdflag", val:"R"}
- ,{col:"initflag", val:"1"}
- ,{col:"alladdyn", val:"Y"}
- ]);
- var objParam = new Object();
- objParam.id = "TRAEA01201";
- objParam.service = "examcureacptexecapp.ExamCureAcpt";
- objParam.method = "reqGetInitExamCureRoomGrpCodeList";
- objParam.inds = "reqparam=ds_cond_req";
- objParam.outds ="ds_init_cmb_excuroom=initexcuroom";
- tranf_submit(objParam);
-
- //trace(ds_init_cmb_excuroom.saveXML());
- }
- // 조회
- function submit_TRAEA02015(){
-
- dsf_createDsRow("ds_cond_req",
- [{col:"suppdeptcd", val:suppdeptcd} //suppdeptcd
- ,{col:"rbasecdflag", val:"R"}
- ,{col:"initflag", val:"1"}
- ,{col:"alladdyn", val:"Y"}
- ]);
- var objParam = new Object();
- objParam.id = "TRAEA02015";
- objParam.service = "examcureacptexecapp.AssgMngt";
- objParam.method = "reqGetAlarmNotify";
- objParam.inds = "req=ds_cond_req";
- objParam.outds ="ds_grid_grd_tmplcodelist=item";
- tranf_submit(objParam);
-
- //trace(ds_init_cmb_excuroom.saveXML());
- }
-
-
- function fGetAlarmNotify()
- {
- submit_TRAEA02015();
- if(ds_grid_grd_tmplcodelist.getRowCount() > 0)
- {
- inff_playsound("ringin");
- }
- }
-
-
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : SPAEA02000
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SPAEA02000_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
- lf_commoduleDataSetShow(); //DataSet 조회;
- lf_aezfSetSuppDeptcd(); //suppdeptcd가져옴
- inff_initsound(); // 알람 플레이어 활성화
- if(!utlf_isNull(opener) && opener.frmf_getScreenID() == "SMAER00100"){
- // trace("1");
- // //frmf_setFocus(true);
- // this.parent.winlevel= "topmost";
- // this.parent.activate();
- checkbox1.enableevent = false;
- checkbox1.value = "Y";
- checkbox1.enableevent = true;
- }
-
- submit_TRAEA01201();
- combo2.index = 0;
- cmb_excuroom.index = 0;
-
- fGetAlarmNotify();
-
- fTopMost();
- }
- function fTopMost()
- {
- var popup = application.popupframes["SPAEA02000"];
-
- if (!utlf_isNull(popup))
- {
- if(checkbox1.value == "Y")
- {
- trace("topmost");
- popup.winlevel = "topmost";
- popup.activate();
- }
- else
- {
- trace("top");
- popup.winlevel = "bottom";
- popup.winlevel = "top";
- popup.activate();
- }
- }
- }
- /****************************************************************************************
- * Components :
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var interval = ds_send.getColumn(0,"interval");
-
- setTimer(0, interval);
- }
- /****************************************************************************************
- * Components :
- * Components ID : button4
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function button4_onclick(obj:Button, e:ClickEventInfo)
- {
- killTimer(0);
- }
- /****************************************************************************************
- * Components :
- * Components ID : SPAEA02000
- * Event : ontimer
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SPAEA02000_ontimer(obj:Form, e:TimerEventInfo)
- {
- if(e.timerid == 0)
- {
- fGetAlarmNotify();
- }
- }
- /****************************************************************************************
- * Components :
- * Components ID : Button00
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function Button00_onclick(obj:Button, e:ClickEventInfo)
- {
- killTimer(0);
- this.close();
- }
- /****************************************************************************************
- * Components :
- * Components ID : checkbox1
- * Event : onchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function checkbox1_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- fTopMost();
- }
- function cmb_excuroom_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fGetAlarmNotify();
- }
- ]]></Script>
- </Form>
- </FDL>
|