SPMNE12000_응급실 입실 현황.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNE12000" position="absolute 0 0 1170 739" titletext="응급실 입실 현황" oninit="SPMNE12000_oninit" onload="SPMNE12000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_sea" taborder="0" class="div_SA" position="absolute 0 25 1168 65" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption3" text="기 간 :" class="search_name" position="absolute 24 13 74 30" anchor="default"/>
  11. <Calendar id="ipt_fromdd" taborder="3" class="input_s_essential" position="absolute 82 10 177 31" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  12. <Calendar id="ipt_todd" taborder="4" class="input_s_essential" position="absolute 197 10 292 31" anchor="default" dateformat="yyyy-MM-dd" autoselect="true"/>
  13. <Static id="caption4" text="~" position="absolute 182 14 192 29" anchor="default"/>
  14. <Button id="button1" taborder="5" text="조회" class="btn1" position="absolute 1098 10 1154 32" anchor="top right" onclick="grp_sea_button1_onclick"/>
  15. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1082 7 1088 34" anchor="top right"/>
  16. </Layout>
  17. </Layouts>
  18. </Div>
  19. <Tab id="switch1" taborder="2" tabindex="0" position="absolute 0 79 1168 739" anchor="all" onchanged="switch1_onchanged">
  20. <Tabpages>
  21. <Tabpage id="case_stayss" text="월별 과별 응급의료센터 체류시간" style="anchor:default;margin:0 0 0 0;">
  22. <Layouts>
  23. <Layout>
  24. <Grid id="grd_staysslist" taborder="1" binddataset="ds_main_staysslist" useinputpanel="false" position="absolute 0 0 1168 635" anchor="all" cellsizingtype="col">
  25. <Formats>
  26. <Format id="default">
  27. <Columns>
  28. <Column size="100"/>
  29. <Column size="145"/>
  30. <Column size="122"/>
  31. </Columns>
  32. <Rows>
  33. <Row size="24" band="head"/>
  34. <Row size="24"/>
  35. </Rows>
  36. <Band id="head">
  37. <Cell text="구분(월)"/>
  38. <Cell col="1" text="진료과"/>
  39. <Cell col="2" text="체류시간(분)"/>
  40. </Band>
  41. <Band id="body">
  42. <Cell text="bind:inym"/>
  43. <Cell col="1" text="bind:inorddeptnm"/>
  44. <Cell col="2" text="bind:stayss"/>
  45. </Band>
  46. </Format>
  47. </Formats>
  48. </Grid>
  49. </Layout>
  50. </Layouts>
  51. </Tabpage>
  52. <Tabpage id="case_inpatcnt" text="월별 과별 입원환자 수/입원율" style="anchor:default;margin:0 0 0 0;">
  53. <Layouts>
  54. <Layout>
  55. <Grid id="grd_inpatcntlist" taborder="1" binddataset="ds_main_inpatcntlist" useinputpanel="false" position="absolute 0 0 1168 635" anchor="all" cellsizingtype="col">
  56. <Formats>
  57. <Format id="default">
  58. <Columns>
  59. <Column size="100"/>
  60. <Column size="134"/>
  61. <Column size="122"/>
  62. <Column size="122"/>
  63. <Column size="122"/>
  64. </Columns>
  65. <Rows>
  66. <Row size="24" band="head"/>
  67. <Row size="24"/>
  68. </Rows>
  69. <Band id="head">
  70. <Cell text="구분(월)"/>
  71. <Cell col="1" text="진료과"/>
  72. <Cell col="2" text="총 내원환자"/>
  73. <Cell col="3" text="입원환자"/>
  74. <Cell col="4" text="입원율(%)"/>
  75. </Band>
  76. <Band id="body">
  77. <Cell text="bind:inym"/>
  78. <Cell col="1" text="bind:inorddeptnm"/>
  79. <Cell col="2" text="bind:opatcnt"/>
  80. <Cell col="3" text="bind:ipatcnt"/>
  81. <Cell col="4" text="bind:ipatpercent"/>
  82. </Band>
  83. </Format>
  84. </Formats>
  85. </Grid>
  86. </Layout>
  87. </Layouts>
  88. </Tabpage>
  89. <Tabpage id="case_inavgss" text="응급실 내원 후 입원의뢰/입원결정/입원수속에 까지 소요된 평균 시간" style="anchor:default;margin:0 0 0 0;">
  90. <Layouts>
  91. <Layout>
  92. <Grid id="grd_inavgsslist" taborder="1" binddataset="ds_main_inavgsslist" useinputpanel="false" position="absolute 0 0 1168 635" cellsizingtype="col">
  93. <Formats>
  94. <Format id="default">
  95. <Columns>
  96. <Column size="100"/>
  97. <Column size="133"/>
  98. <Column size="122"/>
  99. <Column size="122"/>
  100. <Column size="122"/>
  101. </Columns>
  102. <Rows>
  103. <Row size="24" band="head"/>
  104. <Row size="24"/>
  105. </Rows>
  106. <Band id="head">
  107. <Cell text="구분(월)"/>
  108. <Cell col="1" text="진료과"/>
  109. <Cell col="2" text="의뢰대기시간(분)"/>
  110. <Cell col="3" text="결정대기시간(분)"/>
  111. <Cell col="4" text="수속대기시간(분)"/>
  112. </Band>
  113. <Band id="body">
  114. <Cell text="bind:inym"/>
  115. <Cell col="1" text="bind:inorddeptnm"/>
  116. <Cell col="2" displaytype="text" style="align:center;" text="bind:reqwaitss"/>
  117. <Cell col="3" displaytype="text" style="align:center;" text="bind:decwaitss"/>
  118. <Cell col="4" displaytype="text" style="align:center;" text="bind:prowaitss"/>
  119. </Band>
  120. </Format>
  121. </Formats>
  122. </Grid>
  123. </Layout>
  124. </Layouts>
  125. </Tabpage>
  126. </Tabpages>
  127. </Tab>
  128. <Static id="cpt_title" text="응급실 입실 현황" class="tit_1" position="absolute 0 0 136 25"/>
  129. <Button id="button5" taborder="3" text="엑셀" class="btn7" position="absolute 1112 75 1168 97" anchor="top right" onclick="button5_onclick"/>
  130. </Layout>
  131. </Layouts>
  132. <Objects>
  133. <Dataset id="ds_main_staysslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  134. <ColumnInfo>
  135. <Column id="inym" type="STRING"/>
  136. <Column id="inorddeptnm" type="STRING"/>
  137. <Column id="stayss" type="STRING"/>
  138. </ColumnInfo>
  139. </Dataset>
  140. <Dataset id="ds_main_inpatcntlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  141. <ColumnInfo>
  142. <Column id="inym" type="STRING"/>
  143. <Column id="inorddeptnm" type="STRING"/>
  144. <Column id="opatcnt" type="STRING"/>
  145. <Column id="ipatcnt" type="STRING"/>
  146. <Column id="ipatpercent" type="STRING"/>
  147. </ColumnInfo>
  148. </Dataset>
  149. <Dataset id="ds_main_inavgsslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  150. <ColumnInfo>
  151. <Column id="inym" type="STRING"/>
  152. <Column id="inorddeptnm" type="STRING"/>
  153. <Column id="reqwaitss" type="STRING"/>
  154. <Column id="decwaitss" type="STRING"/>
  155. <Column id="prowaitss" type="STRING"/>
  156. </ColumnInfo>
  157. </Dataset>
  158. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  159. <ColumnInfo>
  160. <Column id="fromdd" type="STRING" size="256"/>
  161. <Column id="todd" type="STRING" size="256"/>
  162. </ColumnInfo>
  163. <Rows>
  164. <Row/>
  165. </Rows>
  166. </Dataset>
  167. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  168. </Objects>
  169. <Bind>
  170. <BindItem id="item0" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  171. <BindItem id="item1" compid="grp_sea.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  172. </Bind>
  173. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  174. * System Name :
  175. * Job Name :
  176. * Creator :
  177. * Make Date : 2015-11-13
  178. * Description :
  179. *---------------------------------------------------------------------------------------
  180. * Modify Date Modifier Modify Description
  181. *---------------------------------------------------------------------------------------
  182. * 2015-11-13 Live Converter TF->XP
  183. *
  184. *---------------------------------------------------------------------------------------
  185. ****************************************************************************************/
  186. include "com_commonxp::comm_main.xjs";
  187. var flag = "1";
  188. /******************************************************************
  189. * Argument :
  190. * Description : 초기화
  191. ******************************************************************/
  192. function SPMNE12000_oninit(obj:Form, e:InitEventInfo)
  193. {
  194. frmf_initForm(obj);
  195. }
  196. function SPMNE12000_onload(obj:Form, e:LoadEventInfo)
  197. {
  198. var dt = utlf_getCurrentDate();
  199. ds_main_cond.setColumn(0, "fromdd", dt);
  200. ds_main_cond.setColumn(0, "todd", dt);
  201. switch1.tabindex = 0;
  202. fSearch() ;
  203. }
  204. /******************************************************************
  205. * Argument :
  206. * Description : 조회 button event
  207. ******************************************************************/
  208. function grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
  209. {
  210. fSearch();
  211. }
  212. /******************************************************************
  213. * Argument : fSearch()
  214. * Description : 조회
  215. ******************************************************************/
  216. function fSearch(){
  217. ds_send_reqdata.copyData(ds_main_cond);
  218. var oParam = {};
  219. oParam.id = "TRMNE10601";
  220. oParam.service = "ercareapp.ERPatMngt";
  221. oParam.method = "reqGetInEmInfo";
  222. oParam.inds = "req=ds_send_reqdata";
  223. oParam.outds = "ds_main_staysslist=staysslist ds_main_inpatcntlist=inpatcntlist ds_main_inavgsslist=inavgsslist";
  224. oParam.async = false;
  225. //oParam.callback = "cf_TRMNE10601";
  226. tranf_submit(oParam);
  227. ds_main_staysslist.rowposition = -1;
  228. ds_main_inpatcntlist.rowposition = -1;
  229. ds_main_inavgsslist.rowposition = -1;
  230. }
  231. /******************************************************************
  232. * Argument :
  233. * Description : Tab button event
  234. ******************************************************************/
  235. function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  236. {
  237. var tabIdx = switch1.tabindex;
  238. if( tabIdx == 0 ) flag = "1";
  239. else if( tabIdx == 1 ) flag = "2";
  240. else flag = "3";
  241. }
  242. /******************************************************************
  243. * Argument :
  244. * Description : Excel button event
  245. ******************************************************************/
  246. function button5_onclick(obj:Button, e:ClickEventInfo)
  247. {
  248. if( flag == "1" ){
  249. if( ds_main_staysslist.rowcount > 0 ){
  250. grdf_exportExcel(switch1.case_stayss.grd_staysslist, "월별 과별 응급의료센터 체류시간", "월별 과별 응급의료센터 체류시간", false, "", "user", false);
  251. } else {
  252. sysf_messageBox("조회된 데이터가 ", "I004");
  253. }
  254. } else if(flag == "2"){
  255. if( ds_main_inpatcntlist.rowcount > 0 ){
  256. grdf_exportExcel(switch1.case_inpatcnt.grd_inpatcntlist, "월별 과별 입원환자수 입원율", "월별 과별 입원환자수 입원율", false, "", "user", false);
  257. } else {
  258. sysf_messageBox("조회된 데이터가 ", "I004");
  259. }
  260. } else {
  261. if( ds_main_inavgsslist.rowcount > 0 ){
  262. grdf_exportExcel(switch1.case_inavgss.grd_inavgsslist, "응급실 내원 후부터 입원수속까지 소요된 평균 시간", "응급실 내원 후부터 입원수속까지 소요된 평균 시간", false, "", "user", false);
  263. } else {
  264. sysf_messageBox("조회된 데이터가 ", "I004");
  265. }
  266. }
  267. }
  268. ]]></Script>
  269. </Form>
  270. </FDL>