SPZMI02000_문자통합대시보드.xfdl 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPZMI02000" classname="SPSTS00100_스마트앱통계" inheritanceid="" position="absolute 0 0 1000 830" titletext="문자통합대시보드" oninit="SPSTS00100_oninit" onload="SPSTS00100_onload" ontimer="SPZMI02000_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <WebBrowser id="web_tableau" position="absolute 0 0 1000 800" anchor="all" taborder="0" url="about:blank" useautobitmapcache="1"/>
  8. </Layout>
  9. </Layouts>
  10. <Objects>
  11. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  12. <ColumnInfo>
  13. <Column id="scrncd" type="STRING" size="256"/>
  14. <Column id="userid" type="STRING" size="256"/>
  15. <Column id="targetid" type="STRING" size="256"/>
  16. </ColumnInfo>
  17. <Rows>
  18. <Row/>
  19. </Rows>
  20. </Dataset>
  21. <Dataset id="ds_tableauinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  22. <ColumnInfo>
  23. <Column id="tableauURL" type="STRING" size="256"/>
  24. </ColumnInfo>
  25. </Dataset>
  26. </Objects>
  27. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  28. function SPSTS00100_oninit(obj:Form, e:InitEventInfo)
  29. {
  30. frmf_initForm(obj);
  31. obj.titletext += " <자동으로 15분마다 데이터가 갱신됩니다>";
  32. }
  33. function SPSTS00100_onload(obj:Form, e:LoadEventInfo)
  34. {
  35. obj.parent.openstatus = "maximize";
  36. var menuparam = frmf_getMenuParam();
  37. if(menuparam == "032") {
  38. ds_send.setColumn(0, "scrncd", "TBLRP00003");
  39. } else {
  40. ds_send.setColumn(0, "scrncd", "TBLRP00002");
  41. }
  42. ds_send.setColumn(0, "userid", "MSG01");
  43. ds_send.setColumn(0, "targetid", "MSG");
  44. var oParam = {};
  45. oParam.id = "getUrl";
  46. oParam.service = "authinfoapp.TableauInfo";
  47. oParam.method = "reqGetTableauTicket";
  48. oParam.inds = "req=ds_send";
  49. oParam.outds = "ds_tableauinfo=tableauinfo";
  50. oParam.async = true;
  51. oParam.callback = "cf_getUrl";
  52. tranf_submit(oParam);
  53. }
  54. function cf_getUrl(sSvcId, nErrorCode, sErrorMsg) {
  55. if(nErrorCode < 0) return;
  56. var tableauURL = ds_tableauinfo.getColumn(0, "tableauURL");
  57. web_tableau.url = tableauURL;
  58. this.setTimer(0, 300000);
  59. }
  60. function SPZMI02000_ontimer(obj:Form, e:TimerEventInfo)
  61. {
  62. if(e.timerid == 0) {
  63. obj.killTimer(e.timerid);
  64. web_tableau.reload();
  65. obj.setTimer(0, 300000);
  66. }
  67. }]]></Script>
  68. </Form>
  69. </FDL>