SPZER00100_ER체류현황대시보드.xfdl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPZER00100" classname="SPSTS00100_스마트앱통계" inheritanceid="" position="absolute 0 0 1235 944" titletext="응급실체류현황대시보드" ontimer="SPZMI02000_ontimer" oninit="SPZER00100_oninit" onload="SPZER00100_onload">
  5. <Layouts>
  6. <Layout>
  7. <WebBrowser id="web_tableau" position="absolute -2 53 1233 940" anchor="all" taborder="0" url="about:blank" useautobitmapcache="1"/>
  8. <Grid id="grd_Excel" taborder="2" useinputpanel="false" position="absolute 9 65 1219 404" binddataset="ds_erstlist" visible="false">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="70"/>
  13. <Column size="70"/>
  14. <Column size="40"/>
  15. <Column size="40"/>
  16. <Column size="70"/>
  17. <Column size="100"/>
  18. <Column size="80"/>
  19. <Column size="40"/>
  20. <Column size="80"/>
  21. <Column size="40"/>
  22. <Column size="100"/>
  23. <Column size="100"/>
  24. <Column size="100"/>
  25. <Column size="100"/>
  26. <Column size="88"/>
  27. <Column size="162"/>
  28. <Column size="60"/>
  29. <Column size="60"/>
  30. <Column size="150"/>
  31. <Column size="40"/>
  32. </Columns>
  33. <Rows>
  34. <Row size="49" band="head"/>
  35. <Row size="24"/>
  36. </Rows>
  37. <Band id="head">
  38. <Cell text="등록번호"/>
  39. <Cell col="1" text="환자명"/>
  40. <Cell col="2" text="성별"/>
  41. <Cell col="3" text="나이"/>
  42. <Cell col="4" text="내원경로"/>
  43. <Cell col="5" text="진료과"/>
  44. <Cell col="6" colspan="2" text="내원일시" taborder="undefined"/>
  45. <Cell col="8" colspan="2" text="퇴실일시" taborder="undefined"/>
  46. <Cell col="10" text="내원에서 &#13;&#10;입원예약까지 &#13;&#10;소요시간(분)"/>
  47. <Cell col="11" text="입원예약에서&#13;&#10;입원결정까지&#13;&#10;소요시간(분)"/>
  48. <Cell col="12" text="의사결정에서 &#13;&#10;입원수속까지 &#13;&#10;소요시간(분)"/>
  49. <Cell col="13" text="입원수속에서 &#13;&#10;퇴실까지&#13;&#10;소요시간(분)"/>
  50. <Cell col="14" text="응급실&#13;&#10;재실시간(분)"/>
  51. <Cell col="15" text="퇴실종류"/>
  52. <Cell col="16" text="진단구분"/>
  53. <Cell col="17" text="진단코드"/>
  54. <Cell col="18" text="질환군명"/>
  55. <Cell col="19" text="주/&#13;&#10;부/&#13;&#10;의증"/>
  56. </Band>
  57. <Band id="body">
  58. <Cell text="bind:pid"/>
  59. <Cell col="1" text="bind:hngnm"/>
  60. <Cell col="2" text="bind:sex"/>
  61. <Cell col="3" text="bind:age"/>
  62. <Cell col="4" style="align:left middle;padding:2 2 2 2;" text="bind:chospath"/>
  63. <Cell col="5" style="align:left middle;padding:2 2 2 2;" text="bind:orddeptnm"/>
  64. <Cell col="6" displaytype="date" text="bind:chosdd" calendardisplaynulltype="nulltext"/>
  65. <Cell col="7" displaytype="date" text="bind:chostm" mask="hh:mm" maskchar=" " calendardisplaynulltype="nulltext"/>
  66. <Cell col="8" displaytype="date" text="bind:outrmdd" calendardisplaynulltype="nulltext"/>
  67. <Cell col="9" displaytype="date" text="bind:outrmtm" mask="hh:mm" maskchar=" " calendardisplaynulltype="nulltext"/>
  68. <Cell col="10" text="bind:hrtime"/>
  69. <Cell col="11" text="bind:rdtime"/>
  70. <Cell col="12" text="bind:ditime"/>
  71. <Cell col="13" text="bind:iotime"/>
  72. <Cell col="14" text="bind:erdt"/>
  73. <Cell col="15" style="align:left middle;" text="bind:outrmcd"/>
  74. <Cell col="16" text="bind:gubun"/>
  75. <Cell col="17" text="bind:erdddiag"/>
  76. <Cell col="18" style="align:left middle;padding:2 2 2 2;" text="bind:erdddiagnm"/>
  77. <Cell col="19" text="bind:erdtdggb"/>
  78. </Band>
  79. </Format>
  80. </Formats>
  81. </Grid>
  82. <ImageViewer id="KULogo" taborder="4" position="absolute 860 1 1233 49" stretch="fit" style="border:0 none #e5e5e5ff ;" anchor="top right" image="URL('IMG::com\Kulogo_h.png')"/>
  83. <Static id="caption6" text="[ 중증상병군별 응급실 체류현황 ]" position="absolute 0 2 371 51" style="color:#e15759ff;font:맑은 고딕,18,bold antialias;"/>
  84. <Calendar id="ipt_fromdd" taborder="5" autoselect="true" autoskip="true" position="absolute 430 16 534 42"/>
  85. <Static id="Static00" text="~" position="absolute 542 20 556 38"/>
  86. <Calendar id="ipt_todd" taborder="6" autoselect="true" position="absolute 561 16 665 42"/>
  87. <Button id="btn_search" taborder="7" text="조회" onclick="group1_btn_search_onclick" class="btn1" position="absolute 672 16 728 43"/>
  88. <Button id="btn_excel" taborder="8" text="Excel" onclick="group1_btn_excel_onclick" class="btn7" position="absolute 732 15 794 43"/>
  89. </Layout>
  90. </Layouts>
  91. <Objects>
  92. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  93. <ColumnInfo>
  94. <Column id="scrncd" type="STRING" size="256"/>
  95. <Column id="userid" type="STRING" size="256"/>
  96. <Column id="targetid" type="STRING" size="256"/>
  97. <Column id="fromdd" type="STRING" size="256"/>
  98. <Column id="todd" type="STRING" size="256"/>
  99. <Column id="tableauURL" type="STRING" size="256"/>
  100. <Column id="instcd" type="STRING" size="256"/>
  101. </ColumnInfo>
  102. <Rows>
  103. <Row/>
  104. </Rows>
  105. </Dataset>
  106. <Dataset id="ds_tableauinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  107. <ColumnInfo>
  108. <Column id="tableauURL" type="STRING" size="256"/>
  109. </ColumnInfo>
  110. </Dataset>
  111. <Dataset id="ds_erstlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  112. </Objects>
  113. <Bind>
  114. <BindItem id="item0" compid="ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  115. <BindItem id="item1" compid="ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  116. </Bind>
  117. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  118. var menuparam
  119. function SPZER00100_oninit(obj:Form, e:InitEventInfo)
  120. {
  121. frmf_initForm(obj);
  122. }
  123. function SPZER00100_onload(obj:Form, e:LoadEventInfo)
  124. {
  125. menuparam = frmf_getMenuParam();
  126. if(menuparam == "TBLER00001")
  127. {
  128. caption6.text = "[ 응급실 체류현황 ]";
  129. }
  130. else if(menuparam == "TBLER00002")
  131. {
  132. caption6.text = "[ 중증상병군별 응급실 체류현황 ]";
  133. }
  134. else if(menuparam == "TBLER00003")
  135. {
  136. caption6.text = "[ 내과 응급실 체류현황 ]";
  137. }
  138. var instcd = sysf_getUserInfo("dutplceinstcd");
  139. ds_send.setColumn(0, "instcd", instcd);
  140. if(instcd == "031")
  141. {
  142. KULogo.image = "IMG::com/Kulogo_h.png";
  143. }
  144. else
  145. {
  146. KULogo.image = "IMG::com/Kulogo_h2.png";
  147. }
  148. var CurrentDate = utlf_getCurrentDate();
  149. var Fromdd = ((CurrentDate.toDate()).getAddDate(-3,"M")).getDateFormat();
  150. ds_send.setColumn(0, "fromdd", Fromdd);
  151. ds_send.setColumn(0, "todd", CurrentDate);
  152. ds_send.setColumn(0, "scrncd", menuparam);
  153. ds_send.setColumn(0, "userid", "ER01");
  154. ds_send.setColumn(0, "targetid", "erst");
  155. }
  156. function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
  157. {
  158. var oParam = {};
  159. oParam.id = "getUrl";
  160. oParam.service = "authinfoapp.TableauInfo";
  161. oParam.method = "reqGetTableauTicket";
  162. oParam.inds = "req=ds_send";
  163. oParam.outds = "ds_tableauinfo=tableauinfo";
  164. oParam.async = true;
  165. oParam.callback = "cf_getUrl";
  166. tranf_submit(oParam);
  167. }
  168. function cf_getUrl(sSvcId, nErrorCode, sErrorMsg)
  169. {
  170. if(nErrorCode < 0) return;
  171. var tableauURL = ds_tableauinfo.getColumn(0, "tableauURL");
  172. var pFromdd = ds_send.getColumn(0, "fromdd");
  173. var pTodd = ds_send.getColumn(0, "todd");
  174. tableauURL += "&FROMDD="+pFromdd+"&TODD="+pTodd;
  175. ds_send.setColumn(0, "tableauURL", tableauURL);
  176. web_tableau.url = tableauURL;
  177. }
  178. function group1_btn_excel_onclick(obj:Button, e:ClickEventInfo)
  179. {
  180. var oParam = {};
  181. oParam.id = "getStsErstList";
  182. oParam.service = "stscomapp.StsCom";
  183. oParam.method = "reqGetStsErstList";
  184. oParam.inds = "req=ds_send";
  185. oParam.outds = "ds_erstlist=erstlist";
  186. oParam.async = false;
  187. oParam.callback = "cf_saveExcel";
  188. tranf_submit(oParam);
  189. }
  190. var ExTitle = "";
  191. function cf_saveExcel(sSvcId, nErrorCode, sErrorMsg)
  192. {
  193. if(nErrorCode < 0) return;
  194. if(menuparam == "TBLER00001")
  195. {
  196. ExTitle = "응급실현황";
  197. grd_Excel.setFormatColProperty(10, "size", 0);
  198. grd_Excel.setFormatColProperty(11, "size", 0);
  199. grd_Excel.setFormatColProperty(12, "size", 0);
  200. grd_Excel.setFormatColProperty(13, "size", 0);
  201. grd_Excel.setFormatColProperty(16, "size", 0);
  202. grd_Excel.setFormatColProperty(17, "size", 0);
  203. grd_Excel.setFormatColProperty(18, "size", 0);
  204. grd_Excel.setFormatColProperty(19, "size", 0);
  205. }
  206. else if(menuparam == "TBLER00002")
  207. {
  208. ExTitle = "중증상병군별 응급실현황";
  209. grd_Excel.setFormatColProperty(10, "size", 100);
  210. grd_Excel.setFormatColProperty(11, "size", 100);
  211. grd_Excel.setFormatColProperty(12, "size", 100);
  212. grd_Excel.setFormatColProperty(13, "size", 100);
  213. grd_Excel.setFormatColProperty(16, "size", 60);
  214. grd_Excel.setFormatColProperty(17, "size", 60);
  215. grd_Excel.setFormatColProperty(18, "size", 150);
  216. grd_Excel.setFormatColProperty(19, "size", 40);
  217. }
  218. else if(menuparam == "TBLER00003")
  219. {
  220. ExTitle = "내과 응급실현황";
  221. grd_Excel.setFormatColProperty(16, "size", 0);
  222. grd_Excel.setFormatColProperty(17, "size", 0);
  223. grd_Excel.setFormatColProperty(18, "size", 0);
  224. grd_Excel.setFormatColProperty(19, "size", 0);
  225. }
  226. grdf_exportExcel(grd_Excel, ExTitle, ExTitle, true, "", "open", false, "", true)
  227. }
  228. ]]></Script>
  229. </Form>
  230. </FDL>