SPZER00400_코로나19관리현황.xfdl 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPZER00400" classname="SPSTS00100_스마트앱통계" inheritanceid="" position="absolute 0 0 1235 917" titletext="코로나19 관리 현황" oninit="SPZER00400_oninit" onload="SPZER00400_onload" ontimer="SPZER00400_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <WebBrowser id="web_tableau" position="absolute 0 5 1229 911" anchor="all" taborder="0" url="about:blank" useautobitmapcache="1"/>
  8. <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;"/>
  9. <Button id="button3" taborder="8" text="PCR현황" onclick="button3_onclick" position="absolute 95 880 189 914" visible="false"/>
  10. <Button id="button2" taborder="9" text="직원격리현황" onclick="button2_onclick" position="absolute 190 880 284 914" anchor="default" visible="false"/>
  11. <Button id="button1" taborder="10" text="확진자현황" onclick="button1_onclick" position="absolute 0 880 94 914" anchor="default" visible="false"/>
  12. </Layout>
  13. </Layouts>
  14. <Objects>
  15. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  16. <ColumnInfo>
  17. <Column id="scrncd" type="STRING" size="256"/>
  18. <Column id="userid" type="STRING" size="256"/>
  19. <Column id="targetid" type="STRING" size="256"/>
  20. <Column id="tableauURL" type="STRING" size="256"/>
  21. <Column id="instcd" type="STRING" size="256"/>
  22. </ColumnInfo>
  23. <Rows>
  24. <Row/>
  25. </Rows>
  26. </Dataset>
  27. <Dataset id="ds_tableauinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  28. <ColumnInfo>
  29. <Column id="tableauURL" type="STRING" size="256"/>
  30. </ColumnInfo>
  31. </Dataset>
  32. <Dataset id="ds_menu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  33. <ColumnInfo>
  34. <Column id="menuid" type="STRING" size="256"/>
  35. </ColumnInfo>
  36. <Rows>
  37. <Row>
  38. <Col id="menuid">TBLCR00001</Col>
  39. </Row>
  40. <Row>
  41. <Col id="menuid">TBLCR00003</Col>
  42. </Row>
  43. <Row>
  44. <Col id="menuid">TBLCR00002</Col>
  45. </Row>
  46. </Rows>
  47. </Dataset>
  48. </Objects>
  49. <Bind/>
  50. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  51. var menuparam
  52. var aIndex = 0;
  53. function SPZER00400_oninit(obj:Form, e:InitEventInfo)
  54. {
  55. frmf_initForm(obj);
  56. obj.titletext += " <자동으로 1분마다 화면이 갱신됩니다>";
  57. var objTitlebar = application.popupframes["SPZER00400"].titlebar;
  58. var oIv = objTitlebar.components["ivIcon"];
  59. if(lf_isNull(oIv)) {
  60. oIv = new Button();
  61. oIv.init("ivIcon", 390, 2, 430, 22);
  62. oIv.style.background = "lightcoral";
  63. oIv.style.border = "1 solid black";
  64. oIv.text = "환자";
  65. oIv.style.color = "white";
  66. oIv.onclick.setHandler(btnClick);
  67. objTitlebar.addChild(oIv.name, oIv);
  68. oIv.show();
  69. oIv = new Button();
  70. oIv.init("ivIcon2", 431, 2, 470, 22);
  71. oIv.style.background = "deepskyblue";
  72. oIv.style.border = "1 solid black";
  73. oIv.text = "PCR";
  74. oIv.anchor = "right";
  75. oIv.style.color = "white";
  76. oIv.onclick.setHandler(btnClick);
  77. objTitlebar.addChild(oIv.name, oIv);
  78. oIv.show();
  79. oIv = new Button();
  80. oIv.init("ivIcon3", 471, 2, 510, 22);
  81. oIv.style.background = "lightseagreen";
  82. oIv.style.border = "1 solid black";
  83. oIv.text = "직원";
  84. oIv.anchor = "right";
  85. oIv.style.color = "white";
  86. oIv.onclick.setHandler(btnClick);
  87. objTitlebar.addChild(oIv.name, oIv);
  88. oIv.show();
  89. }
  90. }
  91. function btnClick(obj:Button, e:ClickEventInfo){
  92. if(obj.name == "ivIcon"){
  93. aIndex = 0;
  94. }
  95. else if(obj.name == "ivIcon2"){
  96. aIndex = 1;
  97. }
  98. else if(obj.name == "ivIcon3"){
  99. aIndex = 2;
  100. }
  101. btn_search.click();
  102. }
  103. function SPZER00400_onload(obj:Form, e:LoadEventInfo)
  104. {
  105. menuparam = frmf_getMenuParam();
  106. var instcd = sysf_getUserInfo("dutplceinstcd");
  107. ds_send.setColumn(0, "instcd", instcd);
  108. ds_send.setColumn(0, "scrncd", "TBLCR00001");
  109. ds_send.setColumn(0, "userid", "CORU01");
  110. ds_send.setColumn(0, "targetid", "CORONA19");
  111. btn_search.click();
  112. }
  113. function SPZER00400_ontimer(obj:Form, e:TimerEventInfo)
  114. {
  115. if(e.timerid == 0) {
  116. obj.killTimer(e.timerid);
  117. btn_search.click();
  118. }
  119. }
  120. function btn_search_onclick(obj:Button, e:ClickEventInfo)
  121. {
  122. var menuparam = ds_menu.getColumn(aIndex, "menuid");
  123. if(menuparam == 'TBLCR00001'){
  124. this.titletext = "코로나19 재원 환자 현황 <자동으로 1분마다 화면이 갱신됩니다>"
  125. }
  126. else if(menuparam == 'TBLCR00002'){
  127. this.titletext = "코로나19 직원 격리 현황 <자동으로 1분마다 화면이 갱신됩니다>"
  128. }
  129. else if(menuparam == 'TBLCR00003'){
  130. this.titletext = "코로나19 환자 PCR 현황 <자동으로 1분마다 화면이 갱신됩니다>"
  131. }
  132. ds_send.setColumn(0, "scrncd", menuparam);
  133. var oParam = {};
  134. oParam.id = "getUrl";
  135. oParam.service = "authinfoapp.TableauInfo";
  136. oParam.method = "reqGetTableauTicket";
  137. oParam.inds = "req=ds_send";
  138. oParam.outds = "ds_tableauinfo=tableauinfo";
  139. oParam.async = true;
  140. oParam.callback = "cf_getUrl";
  141. tranf_submit(oParam);
  142. }
  143. function cf_getUrl(sSvcId, nErrorCode, sErrorMsg)
  144. {
  145. if(nErrorCode < 0) return;
  146. var tableauURL = ds_tableauinfo.getColumn(0, "tableauURL");
  147. ds_send.setColumn(0, "tableauURL", tableauURL);
  148. web_tableau.url = tableauURL;
  149. /*this.setTimer(0, 180000);*/
  150. this.setTimer(0, 60000);
  151. if(aIndex == 2){
  152. aIndex = 0;
  153. }
  154. else{
  155. aIndex++;
  156. }
  157. }
  158. // function button1_onclick(obj:Button, e:ClickEventInfo)
  159. // {
  160. // aIndex = 0;
  161. // btn_search.click();
  162. // }
  163. //
  164. // function button3_onclick(obj:Button, e:ClickEventInfo)
  165. // {
  166. // aIndex = 1;
  167. // btn_search.click();
  168. // }
  169. //
  170. // function button2_onclick(obj:Button, e:ClickEventInfo)
  171. // {
  172. // aIndex = 2;
  173. // btn_search.click();
  174. // }
  175. ]]></Script>
  176. </Form>
  177. </FDL>