123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPZER00400" classname="SPSTS00100_스마트앱통계" inheritanceid="" position="absolute 0 0 1235 917" titletext="코로나19 관리 현황" oninit="SPZER00400_oninit" onload="SPZER00400_onload" ontimer="SPZER00400_ontimer">
- <Layouts>
- <Layout>
- <WebBrowser id="web_tableau" position="absolute 0 5 1229 911" anchor="all" taborder="0" url="about:blank" useautobitmapcache="1"/>
- <Button id="btn_search" taborder="7" text="조회" onclick="btn_search_onclick" class="btn5" position="absolute 1148 2 1215 34" visible="false" style="background:dimgray URL('theme://images/icon_single_N2.png') left middle;font:Dotum,15,bold;"/>
- <Button id="button3" taborder="8" text="PCR현황" onclick="button3_onclick" position="absolute 95 880 189 914" visible="false"/>
- <Button id="button2" taborder="9" text="직원격리현황" onclick="button2_onclick" position="absolute 190 880 284 914" anchor="default" visible="false"/>
- <Button id="button1" taborder="10" text="확진자현황" onclick="button1_onclick" position="absolute 0 880 94 914" anchor="default" visible="false"/>
- </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="scrncd" type="STRING" size="256"/>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="targetid" type="STRING" size="256"/>
- <Column id="tableauURL" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_tableauinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="tableauURL" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_menu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="menuid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="menuid">TBLCR00001</Col>
- </Row>
- <Row>
- <Col id="menuid">TBLCR00003</Col>
- </Row>
- <Row>
- <Col id="menuid">TBLCR00002</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind/>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- var menuparam
- var aIndex = 0;
- function SPZER00400_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- obj.titletext += " <자동으로 1분마다 화면이 갱신됩니다>";
-
- var objTitlebar = application.popupframes["SPZER00400"].titlebar;
- var oIv = objTitlebar.components["ivIcon"];
- if(lf_isNull(oIv)) {
- oIv = new Button();
- oIv.init("ivIcon", 390, 2, 430, 22);
- oIv.style.background = "lightcoral";
- oIv.style.border = "1 solid black";
- oIv.text = "환자";
- oIv.style.color = "white";
- oIv.onclick.setHandler(btnClick);
- objTitlebar.addChild(oIv.name, oIv);
- oIv.show();
-
- oIv = new Button();
- oIv.init("ivIcon2", 431, 2, 470, 22);
- oIv.style.background = "deepskyblue";
- oIv.style.border = "1 solid black";
- oIv.text = "PCR";
- oIv.anchor = "right";
- oIv.style.color = "white";
- oIv.onclick.setHandler(btnClick);
- objTitlebar.addChild(oIv.name, oIv);
- oIv.show();
-
- oIv = new Button();
- oIv.init("ivIcon3", 471, 2, 510, 22);
- oIv.style.background = "lightseagreen";
- oIv.style.border = "1 solid black";
- oIv.text = "직원";
- oIv.anchor = "right";
- oIv.style.color = "white";
- oIv.onclick.setHandler(btnClick);
- objTitlebar.addChild(oIv.name, oIv);
- oIv.show();
- }
- }
- function btnClick(obj:Button, e:ClickEventInfo){
- if(obj.name == "ivIcon"){
- aIndex = 0;
- }
- else if(obj.name == "ivIcon2"){
- aIndex = 1;
- }
- else if(obj.name == "ivIcon3"){
- aIndex = 2;
- }
- btn_search.click();
- }
- function SPZER00400_onload(obj:Form, e:LoadEventInfo)
- {
- menuparam = frmf_getMenuParam();
-
- var instcd = sysf_getUserInfo("dutplceinstcd");
- ds_send.setColumn(0, "instcd", instcd);
-
- ds_send.setColumn(0, "scrncd", "TBLCR00001");
- ds_send.setColumn(0, "userid", "CORU01");
- ds_send.setColumn(0, "targetid", "CORONA19");
-
- btn_search.click();
- }
- function SPZER00400_ontimer(obj:Form, e:TimerEventInfo)
- {
- if(e.timerid == 0) {
- obj.killTimer(e.timerid);
-
- btn_search.click();
- }
- }
- function btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var menuparam = ds_menu.getColumn(aIndex, "menuid");
-
- if(menuparam == 'TBLCR00001'){
- this.titletext = "코로나19 재원 환자 현황 <자동으로 1분마다 화면이 갱신됩니다>"
- }
- else if(menuparam == 'TBLCR00002'){
- this.titletext = "코로나19 직원 격리 현황 <자동으로 1분마다 화면이 갱신됩니다>"
- }
- else if(menuparam == 'TBLCR00003'){
- this.titletext = "코로나19 환자 PCR 현황 <자동으로 1분마다 화면이 갱신됩니다>"
- }
-
- ds_send.setColumn(0, "scrncd", menuparam);
-
- var oParam = {};
- oParam.id = "getUrl";
- oParam.service = "authinfoapp.TableauInfo";
- oParam.method = "reqGetTableauTicket";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_tableauinfo=tableauinfo";
- oParam.async = true;
- oParam.callback = "cf_getUrl";
- tranf_submit(oParam);
- }
- function cf_getUrl(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- var tableauURL = ds_tableauinfo.getColumn(0, "tableauURL");
- ds_send.setColumn(0, "tableauURL", tableauURL);
-
- web_tableau.url = tableauURL;
-
- /*this.setTimer(0, 180000);*/
- this.setTimer(0, 60000);
-
-
- if(aIndex == 2){
- aIndex = 0;
- }
- else{
- aIndex++;
- }
- }
- // function button1_onclick(obj:Button, e:ClickEventInfo)
- // {
- // aIndex = 0;
- // btn_search.click();
- // }
- //
- // function button3_onclick(obj:Button, e:ClickEventInfo)
- // {
- // aIndex = 1;
- // btn_search.click();
- // }
- //
- // function button2_onclick(obj:Button, e:ClickEventInfo)
- // {
- // aIndex = 2;
- // btn_search.click();
- // }
- ]]></Script>
- </Form>
- </FDL>
|