SPMNE11000_EICU 응급입원실 입실현황.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNE11000" position="absolute 0 0 1169 734" titletext="EICU/응급입원실 입실현황" oninit="SPMNE11000_oninit" onload="SPMNE11000_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 20 12 70 29" anchor="default"/>
  11. <Calendar id="ipt_fromdd" taborder="3" class="input_s_essential" position="absolute 77 9 172 30" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  12. <Calendar id="ipt_todd" taborder="4" class="input_s_essential" position="absolute 192 9 287 30" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  13. <Static id="caption4" text="~" position="absolute 177 13 188 28" anchor="default"/>
  14. <Radio id="radio1" taborder="5" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 381 11 686 31" anchor="default">
  15. <Dataset id="innerdataset">
  16. <ColumnInfo>
  17. <Column id="codecolumn"/>
  18. <Column id="datacolumn"/>
  19. </ColumnInfo>
  20. <Rows>
  21. <Row>
  22. <Col id="codecolumn">01</Col>
  23. <Col id="datacolumn">EICU</Col>
  24. </Row>
  25. <Row>
  26. <Col id="codecolumn">02</Col>
  27. <Col id="datacolumn">응급입원실</Col>
  28. </Row>
  29. <Row>
  30. <Col id="codecolumn">03</Col>
  31. <Col id="datacolumn">508응급병동</Col>
  32. </Row>
  33. </Rows>
  34. </Dataset>
  35. </Radio>
  36. <Button id="button5" taborder="6" text="조회" class="btn1" position="absolute 1096 9 1152 31" anchor="top right" onclick="grp_sea_button5_onclick"/>
  37. <Static id="caption25" class="search_name" position="absolute 369 16 374 26" anchor="default"/>
  38. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1079 7 1085 34" anchor="top right"/>
  39. </Layout>
  40. </Layouts>
  41. </Div>
  42. <Tab id="switch1" taborder="2" tabindex="0" position="absolute 0 73 1168 733" anchor="all" onchanged="switch1_onchanged">
  43. <Tabpages>
  44. <Tabpage id="case_inroomnm" text="입실 환자 명단" style="anchor:default;margin:0 0 0 0;">
  45. <Layouts>
  46. <Layout>
  47. <Grid id="grd_inroomnmlist" taborder="1" binddataset="ds_main_inroomnmlist" useinputpanel="false" position="absolute 0 0 1168 635" anchor="all" cellsizingtype="col">
  48. <Formats>
  49. <Format id="default">
  50. <Columns>
  51. <Column size="100"/>
  52. <Column size="100"/>
  53. <Column size="70"/>
  54. <Column size="70"/>
  55. <Column size="110"/>
  56. <Column size="145"/>
  57. <Column size="145"/>
  58. </Columns>
  59. <Rows>
  60. <Row size="24" band="head"/>
  61. <Row size="24"/>
  62. </Rows>
  63. <Band id="head">
  64. <Cell text="환자번호"/>
  65. <Cell col="1" text="이름"/>
  66. <Cell col="2" text="성별"/>
  67. <Cell col="3" text="나이"/>
  68. <Cell col="4" text="내원일"/>
  69. <Cell col="5" text="응급실입실일시"/>
  70. <Cell col="6" text="EICU/응급병동 입실일시"/>
  71. </Band>
  72. <Band id="body">
  73. <Cell text="bind:pid"/>
  74. <Cell col="1" text="bind:hngnm"/>
  75. <Cell col="2" text="bind:sex"/>
  76. <Cell col="3" text="bind:age"/>
  77. <Cell col="4" displaytype="expr:utlf_isNull(indd) ? 'normal' : 'date'" text="bind:indd"/>
  78. <Cell col="5" text="bind:chosdt" mask="expr:utlf_isNull(chosdt) ? '' : '####-##-## ##:##'"/>
  79. <Cell col="6" text="bind:inroomdt" mask="expr:utlf_isNull(inroomdt) ? '' : '####-##-## ##:##'"/>
  80. </Band>
  81. </Format>
  82. </Formats>
  83. </Grid>
  84. <Shape id="line4" linetype="horizontal" class="line_1" position="absolute 5 -14 1160 -8" style="strokepen:3 solid #33bbbbff;"/>
  85. </Layout>
  86. </Layouts>
  87. </Tabpage>
  88. <Tabpage id="case_deptcnt" text="기간내 월별 과별 환자수" style="anchor:default;margin:0 0 0 0;">
  89. <Layouts>
  90. <Layout>
  91. <Grid id="grd_deptcntlist" taborder="1" binddataset="ds_main_deptcntlist" useinputpanel="false" position="absolute 0 0 1168 635" cellsizingtype="col">
  92. <Formats>
  93. <Format id="default">
  94. <Columns>
  95. <Column size="100"/>
  96. <Column size="134"/>
  97. <Column size="89"/>
  98. </Columns>
  99. <Rows>
  100. <Row size="24" band="head"/>
  101. <Row size="24"/>
  102. </Rows>
  103. <Band id="head">
  104. <Cell text="구분(월)"/>
  105. <Cell col="1" text="진료과"/>
  106. <Cell col="2" text="환자수"/>
  107. </Band>
  108. <Band id="body">
  109. <Cell text="bind:deptcntym"/>
  110. <Cell col="1" text="bind:inorddeptnm"/>
  111. <Cell col="2" text="bind:patcnt"/>
  112. </Band>
  113. </Format>
  114. </Formats>
  115. </Grid>
  116. </Layout>
  117. </Layouts>
  118. </Tabpage>
  119. <Tabpage id="case_avgkeepcnt" text="기간내 월별 평균 재원일수" style="anchor:default;margin:0 0 0 0;">
  120. <Layouts>
  121. <Layout>
  122. <Grid id="grd_avgkeepcntlist" taborder="1" binddataset="ds_main_avgkeepcntlist" useinputpanel="false" position="absolute 0 0 1168 635" anchor="all" cellsizingtype="col">
  123. <Formats>
  124. <Format id="default">
  125. <Columns>
  126. <Column size="100"/>
  127. <Column size="133"/>
  128. </Columns>
  129. <Rows>
  130. <Row size="24" band="head"/>
  131. <Row size="24"/>
  132. </Rows>
  133. <Band id="head">
  134. <Cell text="구분(월)"/>
  135. <Cell col="1" text="평균재원일수(일)"/>
  136. </Band>
  137. <Band id="body">
  138. <Cell text="bind:avgkeepcntym"/>
  139. <Cell col="1" text="bind:avgkeepcnt"/>
  140. </Band>
  141. </Format>
  142. </Formats>
  143. </Grid>
  144. </Layout>
  145. </Layouts>
  146. </Tabpage>
  147. </Tabpages>
  148. </Tab>
  149. <Static id="cpt_title" text="EICU/응급입원실 입실현황" class="tit_1" position="absolute 0 0 195 25"/>
  150. <Button id="button1" taborder="3" text="엑셀" class="btn7" position="absolute 1112 70 1168 92" anchor="top right" onclick="button1_onclick"/>
  151. </Layout>
  152. </Layouts>
  153. <Objects>
  154. <Dataset id="ds_main_inroomnmlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  155. <ColumnInfo>
  156. <Column id="pid" type="STRING"/>
  157. <Column id="hngnm" type="STRING"/>
  158. <Column id="sex" type="STRING"/>
  159. <Column id="age" type="STRING"/>
  160. <Column id="indd" type="STRING"/>
  161. <Column id="chosdt" type="STRING"/>
  162. <Column id="inroomdt" type="STRING"/>
  163. </ColumnInfo>
  164. </Dataset>
  165. <Dataset id="ds_main_deptcntlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  166. <ColumnInfo>
  167. <Column id="deptcntym" type="STRING"/>
  168. <Column id="inorddeptnm" type="STRING"/>
  169. <Column id="patcnt" type="STRING"/>
  170. </ColumnInfo>
  171. </Dataset>
  172. <Dataset id="ds_main_avgkeepcntlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  173. <ColumnInfo>
  174. <Column id="avgkeepcntym" type="STRING"/>
  175. <Column id="avgkeepcnt" type="STRING"/>
  176. </ColumnInfo>
  177. </Dataset>
  178. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  179. <ColumnInfo>
  180. <Column id="gubun" type="STRING" size="256"/>
  181. <Column id="fromdd" type="STRING" size="256"/>
  182. <Column id="todd" type="STRING" size="256"/>
  183. </ColumnInfo>
  184. <Rows>
  185. <Row>
  186. <Col id="gubun">01</Col>
  187. </Row>
  188. </Rows>
  189. </Dataset>
  190. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  191. </Objects>
  192. <Bind>
  193. <BindItem id="item0" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  194. <BindItem id="item1" compid="grp_sea.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  195. <BindItem id="item2" compid="grp_sea.radio1" propid="value" datasetid="ds_main_cond" columnid="gubun"/>
  196. </Bind>
  197. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  198. * System Name :
  199. * Job Name :
  200. * Creator :
  201. * Make Date : 2015-11-13
  202. * Description :
  203. *---------------------------------------------------------------------------------------
  204. * Modify Date Modifier Modify Description
  205. *---------------------------------------------------------------------------------------
  206. * 2015-11-13 Live Converter TF->XP
  207. *
  208. *---------------------------------------------------------------------------------------
  209. ****************************************************************************************/
  210. include "com_commonxp::comm_main.xjs";
  211. var flag="1";
  212. /******************************************************************
  213. * Argument :
  214. * Description : 초기화
  215. ******************************************************************/
  216. function SPMNE11000_oninit(obj:Form, e:InitEventInfo)
  217. {
  218. frmf_initForm(obj);
  219. }
  220. function SPMNE11000_onload(obj:Form, e:LoadEventInfo)
  221. {
  222. var dt = utlf_getCurrentDate();
  223. ds_main_cond.setColumn(0, "fromdd", dt);
  224. ds_main_cond.setColumn(0, "todd", dt);
  225. switch1.tabindex = 0;
  226. fSearch();
  227. }
  228. /******************************************************************
  229. * Argument :
  230. * Description : 조회 button event
  231. ******************************************************************/
  232. function grp_sea_button5_onclick(obj:Button, e:ClickEventInfo)
  233. {
  234. fSearch();
  235. }
  236. /******************************************************************
  237. * Argument : fSearch()
  238. * Description : 조회
  239. ******************************************************************/
  240. function fSearch(){
  241. ds_send_reqdata.copyData(ds_main_cond);
  242. var oParam = {};
  243. oParam.id = "TRMNE10600";
  244. oParam.service = "ercareapp.ERPatMngt";
  245. oParam.method = "reqGetInroomInfo";
  246. oParam.inds = "req=ds_send_reqdata";
  247. oParam.outds = "ds_main_inroomnmlist=inroomnmlist ds_main_deptcntlist=deptcntlist ds_main_avgkeepcntlist=avgkeepcntlist";
  248. oParam.async = false;
  249. //oParam.callback = "cf_TRMNE10600";
  250. tranf_submit(oParam);
  251. ds_main_inroomnmlist.rowposition = -1;
  252. ds_main_deptcntlist.rowposition = -1;
  253. ds_main_avgkeepcntlist.rowposition = -1;
  254. }
  255. /******************************************************************
  256. * Argument :
  257. * Description : Tab button event
  258. ******************************************************************/
  259. function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  260. {
  261. var tabIdx = switch1.tabindex;
  262. if( tabIdx == 0 ) flag = "1";
  263. else if( tabIdx == 1 ) flag = "2";
  264. else flag = "3";
  265. }
  266. /******************************************************************
  267. * Argument :
  268. * Description : Excel button event
  269. ******************************************************************/
  270. function button1_onclick(obj:Button, e:ClickEventInfo)
  271. {
  272. if( flag == "1" ){
  273. if( ds_main_inroomnmlist.rowcount > 1 ){
  274. grdf_exportExcel(switch1.case_inroomnm.grd_inroomnmlist, grp_sea.radio1.text+"입실 환자 명단", "입실 환자 명단", false, "", "", false);
  275. } else {
  276. sysf_messageBox("조회된 데이터가 ", "I004");
  277. }
  278. } else if(flag == "2"){
  279. if( ds_main_deptcntlist.rowcount > 1 ){
  280. grdf_exportExcel(switch1.case_deptcnt.grd_deptcntlist, grp_sea.radio1.text+"기간내 월별 과별 환자수", "기간내 월별 과별 환자수율", false, "", "", false);
  281. } else {
  282. sysf_messageBox("조회된 데이터가 ", "I004");
  283. }
  284. } else {
  285. if( ds_main_avgkeepcntlist.rowcount > 1 ){
  286. grdf_exportExcel(switch1.case_avgkeepcnt.grd_avgkeepcntlist, grp_sea.radio1.text+"기간내 월별 평균 재원일수", "기간내 월별 평균 재원일수", false, "", "", false);
  287. } else {
  288. sysf_messageBox("조회된 데이터가 ", "I004");
  289. }
  290. }
  291. }
  292. ]]></Script>
  293. </Form>
  294. </FDL>