SMPMI03801_VIP병상가동률조회.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMI03801" position="absolute 0 0 1256 805" titletext="VIP병상가동률조회" onload="SMPMI03801_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="VIP병상가동률조회" class="tit_1" position="absolute 0 0 152 25"/>
  8. <Div id="div" taborder="1" position="absolute 0 25 1194 60" class="div_SA">
  9. <Layouts>
  10. <Layout width="1194" height="35">
  11. <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="default"/>
  12. <Button id="btn_search" taborder="2" text="조회" class="btn1" position="absolute 1123 7 1179 29" onclick="div_btn_search_onclick" anchor="default"/>
  13. <Calendar id="ipt_fromdd" taborder="4" class="input_search" visible="true" position="absolute 90 8 185 27" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" anchor="default"/>
  14. <Calendar id="ipt_todd" taborder="5" class="input_search" visible="true" position="absolute 212 8 307 27" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null" anchor="default"/>
  15. <Static id="caption5" text="~" visible="true" position="absolute 193 11 204 26" anchor="default"/>
  16. <Static id="caption7" text="조회일자 :" class="search_name" visible="true" position="absolute 8 9 94 26" anchor="default"/>
  17. <Static id="Static00" text="※ 조회기간 최대 1년 지정 가능" position="absolute 336 8 538 28" style="color:blue;"/>
  18. </Layout>
  19. </Layouts>
  20. </Div>
  21. <Static id="caption2" text="병상가동률" class="tit_2" position="absolute 5 69 97 85"/>
  22. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 87 1194 93" style="strokepen:3 solid #33bbbbff;"/>
  23. <Div id="grp_report" taborder="2" visible="false" position="absolute 865 66 930 81"/>
  24. <Button id="btn_excel" taborder="5" text="엑셀저장" class="btn7" position="absolute 527 66 602 85" onclick="btn_excel_onclick"/>
  25. <Grid id="grd_list" class="datagrid2" taborder="6" binddataset="ds_main_grd" useinputpanel="false" position="absolute 0 91 607 759" oncelldblclick="grd_list_oncelldblclick">
  26. <Formats>
  27. <Format id="default">
  28. <Columns>
  29. <Column size="100"/>
  30. <Column size="100"/>
  31. <Column size="100"/>
  32. <Column size="100"/>
  33. <Column size="100"/>
  34. </Columns>
  35. <Rows>
  36. <Row size="24" band="head"/>
  37. <Row size="24"/>
  38. </Rows>
  39. <Band id="head">
  40. <Cell text="병동"/>
  41. <Cell col="1" text="병상수"/>
  42. <Cell col="2" text="재원병상"/>
  43. <Cell col="3" text="빈병상"/>
  44. <Cell col="4" text="가동률"/>
  45. </Band>
  46. <Band id="body">
  47. <Cell text="bind:wardnm"/>
  48. <Cell col="1" text="bind:totcnt"/>
  49. <Cell col="2" text="bind:incnt"/>
  50. <Cell col="3" text="bind:emptycnt"/>
  51. <Cell col="4" text="bind:inper" mask="#.#%"/>
  52. </Band>
  53. </Format>
  54. </Formats>
  55. </Grid>
  56. <Static id="caption8" text="★ 자정12시를 기준으로 저장된 데이터 조회" position="absolute 115 67 392 82" style="color:blue;font:Dotum,9,bold;"/>
  57. <Shape id="line4" linetype="horizontal" class="line_6" position="absolute 0 759 1194 765"/>
  58. <Grid id="Grid00" taborder="8" useinputpanel="false" position="absolute 615 91 1194 759" binddataset="ds_main_patinfolist">
  59. <Formats>
  60. <Format id="default">
  61. <Columns>
  62. <Column size="100"/>
  63. <Column size="100"/>
  64. <Column size="120"/>
  65. <Column size="100"/>
  66. <Column size="100"/>
  67. </Columns>
  68. <Rows>
  69. <Row size="24" band="head"/>
  70. <Row size="24"/>
  71. </Rows>
  72. <Band id="head">
  73. <Cell text="병동"/>
  74. <Cell col="1" text="일자"/>
  75. <Cell col="2" text="진료과"/>
  76. <Cell col="3" text="등록번호"/>
  77. <Cell col="4" text="성명"/>
  78. </Band>
  79. <Band id="body">
  80. <Cell text="bind:wardnm"/>
  81. <Cell col="1" displaytype="date" text="bind:workdd"/>
  82. <Cell col="2" text="bind:deptname"/>
  83. <Cell col="3" text="bind:pid"/>
  84. <Cell col="4" text="bind:hngnm"/>
  85. </Band>
  86. </Format>
  87. </Formats>
  88. </Grid>
  89. <Static id="caption00" text="세부환자내역" class="tit_2" position="absolute 623 69 726 85"/>
  90. <Button id="btn_excel_list" taborder="9" text="엑셀저장" onclick="btn_excel_list_onclick" class="btn7" position="absolute 1111 66 1186 85"/>
  91. </Layout>
  92. </Layouts>
  93. <Objects>
  94. <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  95. <ColumnInfo>
  96. <Column id="fromdd" type="STRING" size="256"/>
  97. <Column id="todd" type="STRING" size="256"/>
  98. </ColumnInfo>
  99. <Rows>
  100. <Row>
  101. <Col id="fromdd"/>
  102. <Col id="todd"/>
  103. </Row>
  104. </Rows>
  105. </Dataset>
  106. <Dataset id="ds_main_grd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  107. <ColumnInfo>
  108. <Column id="instcd" type="STRING" size="256"/>
  109. <Column id="wardnm" type="STRING" size="256"/>
  110. <Column id="totcnt" type="STRING" size="256"/>
  111. <Column id="incnt" type="STRING" size="256"/>
  112. <Column id="emptycnt" type="STRING" size="256"/>
  113. <Column id="inper" type="STRING" size="256"/>
  114. <Column id="roomcd" type="STRING" size="256"/>
  115. <Column id="wardcd" type="STRING" size="256"/>
  116. </ColumnInfo>
  117. </Dataset>
  118. <Dataset id="ds_main_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  119. <ColumnInfo>
  120. <Column id="instcd" type="STRING" size="256"/>
  121. <Column id="wardcd" type="STRING" size="256"/>
  122. <Column id="wardnm" type="STRING" size="256"/>
  123. <Column id="roomcd" type="STRING" size="256"/>
  124. <Column id="workdd" type="STRING" size="256"/>
  125. <Column id="pid" type="STRING" size="256"/>
  126. <Column id="hngnm" type="STRING" size="256"/>
  127. <Column id="deptname" type="STRING" size="256"/>
  128. </ColumnInfo>
  129. </Dataset>
  130. <Dataset id="ds_main_grd_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  131. <ColumnInfo>
  132. <Column id="instcd" type="STRING" size="256"/>
  133. <Column id="wardcd" type="STRING" size="256"/>
  134. <Column id="wardnm" type="STRING" size="256"/>
  135. <Column id="roomcd" type="STRING" size="256"/>
  136. <Column id="workdd" type="STRING" size="256"/>
  137. <Column id="pid" type="STRING" size="256"/>
  138. <Column id="hngnm" type="STRING" size="256"/>
  139. <Column id="deptname" type="STRING" size="256"/>
  140. </ColumnInfo>
  141. </Dataset>
  142. </Objects>
  143. <Bind>
  144. <BindItem id="item3" compid="div.ipt_todd" propid="value" datasetid="ds_send_data1" columnid="todd"/>
  145. <BindItem id="item4" compid="div.ipt_fromdd" propid="value" datasetid="ds_send_data1" columnid="fromdd"/>
  146. </Bind>
  147. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  148. * System Name :
  149. * Job Name :
  150. * Creator :
  151. * Make Date : 2015-10-27
  152. * Description :
  153. *---------------------------------------------------------------------------------------
  154. * Modify Date Modifier Modify Description
  155. *---------------------------------------------------------------------------------------
  156. * 2015-10-27 Live Converter TF->XP
  157. *
  158. *---------------------------------------------------------------------------------------
  159. ****************************************************************************************/
  160. //=======================================================================================
  161. // Lib Include
  162. //---------------------------------------------------------------------------------------
  163. include 'com_commonxp::comm_main.xjs';
  164. var arErrorCode = new HashArray();
  165. //=======================================================================================
  166. // Local methods
  167. //---------------------------------------------------------------------------------------
  168. function fInitialize() {
  169. ds_main_grd.clearData();
  170. ds_send_data1.clearData();
  171. ds_send_data1.addRow();
  172. }
  173. function callback(sSvcId, nErrorCode, sErrorMsg){
  174. arErrorCode.push(sSvcId, nErrorCode);
  175. }
  176. function SMPMI03801_onload(obj: Form, e: LoadEventInfo) {
  177. grdf_initGrid(Grid00);
  178. frmf_initForm(obj);
  179. ds_send_data1.setColumn(0, "fromdd", utlf_getCurrentDate().substring(0, 4) + "0101");
  180. ds_send_data1.setColumn(0, "todd", utlf_getCurrentDate().substring(0, 4) + "1231");
  181. }
  182. function div_btn_search_onclick(obj: Button, e: ClickEventInfo) {
  183. var fromdd = ds_send_data1.getColumn(0, "fromdd");
  184. var todd = ds_send_data1.getColumn(0, "todd");
  185. var term = utlf_getDateInterval(fromdd, todd);
  186. if (term > 364) {
  187. sysf_messageBox("조회기간은 1년을 넘을수 없습니다.", "E999");
  188. ds_send_data1.setColumn(0, "fromdd", utlf_getCurrentDate().substring(0, 4) + "0101");
  189. ds_send_data1.setColumn(0, "todd", utlf_getCurrentDate().substring(0, 4) + "1231");
  190. return;
  191. }
  192. ds_main_grd.clearData();
  193. ds_main_patinfolist.clearData();
  194. var oParam = {};
  195. oParam.id = "TRPMI03801";
  196. oParam.service = "ipatmngtapp.IPatRef";
  197. oParam.method = "reqGetBedInfoVip";
  198. oParam.inds = "req=ds_send_data1";
  199. oParam.outds = "ds_main_grd=list ds_main_grd_list=list2";
  200. oParam.async = false;
  201. tranf_submit(oParam);
  202. }
  203. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  204. {
  205. grdf_exportExcel(grd_list, "VIP병상가동율", "VIP병상가동율");
  206. }
  207. function grd_list_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  208. {
  209. ds_main_grd_list.filter("wardcd == '" + ds_main_grd.getColumn(e.row, "wardcd") + "'")
  210. ds_main_patinfolist.copyData(ds_main_grd_list, true);
  211. }
  212. function btn_excel_list_onclick(obj:Button, e:ClickEventInfo)
  213. {
  214. grdf_exportExcel(Grid00, "VIP병상가동율 세부환자내역", "VIP병상가동율 세부환자내역");
  215. }
  216. ]]></Script>
  217. </Form>
  218. </FDL>