123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.4">
- <TypeDefinition url="..\default_typedef.xml"/>
- <Form id="workform" position="absolute 0 0 1328 805" titletext="소화기병센터 검사안내" oninit="model1_oninit">
- <Layouts>
- <Layout>
- <Div id="Div00" taborder="1" text="Div00" style="background:antiquewhite;" position2="absolute l:43.47% w:143 t:0 h:30" positiontype="position2">
- <Layouts>
- <Layout>
- <Button id="btn_autoexec" taborder="0" text="자동알림" onclick="btn_autoexec_onclick" class="btn3" position2="absolute l:0 w:82 t:6 h:20" positiontype="position2"/>
- <Button id="btn_sea" taborder="1" text="조회" onclick="btn_sea_onclick" class="btn3" position2="absolute l:85 w:56 t:6 h:20" positiontype="position2"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_display1" style="align:center middle;" autofittype="col" position="absolute 0 30 316 805" positiontype="position" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="300"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="검사실1"/>
- </Band>
- <Band id="body">
- <Cell/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_display2" style="align:center middle;" autofittype="col" anchor="all" position="absolute 340 30 656 805" positiontype="position">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="300"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="검사실2"/>
- </Band>
- <Band id="body">
- <Cell/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_display3" style="align:center middle;" autofittype="col" anchor="all" position="absolute 672 30 988 805" positiontype="position">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="300"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="검사실3"/>
- </Band>
- <Band id="body">
- <Cell/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_display4" style="align:center middle;" autofittype="col" anchor="all" position="absolute 1012 29 1320 804" positiontype="position">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="300"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="검사실4"/>
- </Band>
- <Band id="body">
- <Cell/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="Static31" text="h7" class="sta_guide" visible="false" position="absolute 557 0 699 7"/>
- <Static id="Static28" text="h3" class="sta_guide" visible="false" position="absolute 559 27 697 30"/>
- <Splitter id="Splitter00" position2="absolute l:23.8% w:23 t:272 h:56" positiontype="position2">
- <Formats>
- <Format id="default">
- <SplitterItems id="items">
- <SplitterItem id="item00" bindtype="resize" position="leftortop" offset="0" componentid="grd_display1"/>
- <SplitterItem id="item01" bindtype="resize" position="rightorbottom" offset="0" componentid="grd_display2"/>
- </SplitterItems>
- </Format>
- </Formats>
- </Splitter>
- <Splitter id="Splitter01" position2="absolute l:49.4% w:16 t:272 h:56" positiontype="position2">
- <Formats>
- <Format id="default">
- <SplitterItems id="items">
- <SplitterItem id="item00" bindtype="resize" position="leftortop" offset="0" componentid="grd_display2"/>
- <SplitterItem id="item01" bindtype="resize" position="rightorbottom" offset="0" componentid="grd_display3"/>
- </SplitterItems>
- </Format>
- </Formats>
- </Splitter>
- <Splitter id="Splitter02" position2="absolute l:74.4% w:23 t:272 h:56" positiontype="position2">
- <Formats>
- <Format id="default">
- <SplitterItems id="items">
- <SplitterItem id="item00" bindtype="resize" position="leftortop" offset="0" componentid="grd_display3"/>
- <SplitterItem id="item01" bindtype="resize" position="rightorbottom" offset="0" componentid="grd_display4"/>
- </SplitterItems>
- </Format>
- </Formats>
- </Splitter>
- </Layout>
- </Layouts>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : HIT
- * Job Name :
- * File Name : SPAEA01900_기능검사전광판.xfdl
- * Creator :
- * Make Date : 2014-03-05
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-03-05 HIT Converting Program(TF->XP)
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::common.xjs";
- include "com_commonxp::tfHelper.xjs";
- include "com_commonxp::stringHelper.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- include "com_commonxp::dateHelper.xjs";
- include "ast_examcurexp::combolist.xjs";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : model1
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function model1_oninit(obj:Form, e:InitEventInfo)
- {
- // 초기 화면 해상도 설정
- window.maximize();
- aezfSetSuppDeptcd();
- var monitor = app.monitorResolution; //모니터 해상도 가져옴
- var result = stringSplit(monitor, "|"); //분리
- var strIndex = ",";
- var re=result[0];
-
- remonitorW = re.substring(0,re.indexOf(strIndex)); //모니터 해상도 넓이
- remonitorH = re.substring(re.indexOf(strIndex)+1,re.length); //모니터 해상도 높이
- resizeW = remonitorW / 4; //그리드 4
- resizeH = remonitorH - 100; //대충빼둠
- //그리드 Size 설정
- fGridSize(grd_display1 , 1);
- fGridSize(grd_display2 , 2);
- fGridSize(grd_display3 , 3);
- fGridSize(grd_display4 , 4);
-
- var a = parseInt(grd_display1.rowHeight(1)); // 메인그리드 row 높이
- var b = parseInt(grd_display1.attribute("height")); // 메인그리드 높이
- var c = parseInt(grd_display1.rowHeight(0)); // 메인그리드 캡션 높이
- gridRowCnt = Math.floor((b - c) / a); // 그리드에 들어갈 갯수 연산
- btn_sea.dispatch("onclick");
- //btn_autoexec.dispatch("onclick");
- model.refresh();
-
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_autoexec
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_autoexec_onclick(obj:Button, e:ClickEventInfo)
- {
- var autoalertyn = model.getValue("/root/send/autoalertyn");
- if (autoalertyn == "Y") {
- btn_autoexec.value = "알림중지";
- model.setValue("/root/send/autoalertyn","N");
-
- //clockTimer = window.setInterval("fAutoAlert()", 30000); //30초
- clockTimer = window.setInterval("fAutoAlert()", 10000); //30초
- //clockTimer2 = window.setInterval("fGridViewControl()", 10000); //메인,서브 그리드 변환 5초
- } else {
- btn_autoexec.value = "자동알림";
- model.setValue("/root/send/autoalertyn","Y");
-
- if (clockTimer != null) {
- window.clearInterval(clockTimer);
- //window.clearInterval(clockTimer2);
- }
- }
- model.refresh();
-
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_sea
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- // 전광판 환자 리스트 조회 + 페이지 넘김 이창기
- model.setValue("/root/send/acptdd",getCurrentDate()); //접수일자, 오늘기준 조회
- submit("TRAEA01900",false);
-
- grd_display1.caption = model.getValue("/root/main/maindata/dispnmlist["+ 1 +"]/dispnm");
- grd_display2.caption = model.getValue("/root/main/maindata/dispnmlist["+ 2 +"]/dispnm");
- grd_display3.caption = model.getValue("/root/main/maindata/dispnmlist["+ 3 +"]/dispnm");
- grd_display4.caption = model.getValue("/root/main/maindata/dispnmlist["+ 4 +"]/dispnm");
-
- /* 그리드 변환
- for(var i = 1 ; i <= 7 ; i++){ // 서브 그리드 초기화
- model.removeNodeset("/root/main/subdisplay/subdisplay1["+ i +"]");
- model.removeNodeset("/root/main/subdisplay/subdisplay2["+ i +"]");
- model.removeNodeset("/root/main/subdisplay/subdisplay3["+ i +"]");
- model.removeNodeset("/root/main/subdisplay/subdisplay4["+ i +"]");
- }
- var gLength = 0; // 각 인스턴스의 길이 (대기,검사,회복)
- var sCnt = gridRowCnt+1;
- for(var j = 1; j <= 4 ; j++){ //메인 그리드
- gLength = model.instances(0).selectNodes( "/root/main/maindata/display"+j).length; // j 1 : 대기 , 2 : 회복 , 3 : 대기 인스턴스 size
- if(gLength > gridRowCnt){ // 그리드를 넘길경우 (스크룰이 생길경우)
- for(var k = sCnt ; k <= gLength ; k++){
- model.makeNode("/root/main/subdisplay/subdisplay"+ j +"["+ (k - gridRowCnt) +"]"); // 서브 인스턴스 노드 생성
- model.copyNode("/root/main/subdisplay/subdisplay"+ j +"["+ (k - gridRowCnt) +"]","/root/main/maindata/display"+ j +"["+ sCnt +"]"); // 서브 인스턴스 복사 (3번줄에서 인스턴스를 삭제 -> sCnt 유지)
- model.removeNodeset("/root/main/maindata/display"+ j +"["+ sCnt +"]"); // 메인 인스턴스 삭제
- }
- sGrid_check[j-1] = "Y"; // 서브 인스턴스 유무 체크
- }else{
- sGrid_check[j-1] = "N";
- }
- }
- */
- model.refresh();
-
- }
- ]]></Script>
- </Form>
- </FDL>
|