SSMNW00400_환자통계.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SSMNW00400" position="absolute 0 0 1158 770" titletext="환자통계" onload="SSMNW00400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="Div00" taborder="3" position="absolute 0 26 1158 66" class="div_SA" anchor="left top right"/>
  8. <Static id="caption30" class="search_name" position="absolute 16 38 130 55" style="" text="기 간 :" anchor="left top"/>
  9. <Calendar id="input1" class="input_search" taborder="2" visible="true" mask="yyyy-mm-dd" position="absolute 252 38 342 57" style="align:center ;" anchor="left top" onkillfocus="input1_onkillfocus"/>
  10. <Calendar id="ipt_procdd" class="input_search" taborder="2" visible="true" mask="yyyy-mm-dd" position="absolute 149 38 239 57" style="align:center ;" anchor="left top" onkillfocus="ipt_procdd_onkillfocus"/>
  11. <Shape id="line13" class="line_4" linetype="vertical" position="absolute 1016 35 1019 57" style="" anchor="top right"/>
  12. <Button id="btn_select" class="btn1" position="absolute 1032 35 1088 57" text="조회" onclick="btn_select_onclick" anchor="top right"/>
  13. <Button id="btn_excel" class="btn7" position="absolute 1089 35 1145 57" text="엑셀" onclick="btn_excel_onclick" anchor="top right"/>
  14. <Grid id="dgrd_rpt" binddataset="ds_main_patstsinfo" position="absolute 0 101 1158 768" style="" anchor="all">
  15. <Formats>
  16. <Format id="default">
  17. <Columns>
  18. <Column size="108"/>
  19. <Column size="44"/>
  20. <Column size="44"/>
  21. <Column size="44"/>
  22. <Column size="40"/>
  23. <Column size="39"/>
  24. <Column size="45"/>
  25. <Column size="50"/>
  26. <Column size="94"/>
  27. <Column size="45"/>
  28. <Column size="45"/>
  29. <Column size="40"/>
  30. <Column size="40"/>
  31. <Column size="40"/>
  32. <Column size="40"/>
  33. <Column size="40"/>
  34. <Column size="50"/>
  35. <Column size="50"/>
  36. <Column size="30"/>
  37. <Column size="30"/>
  38. <Column size="30"/>
  39. <Column size="30"/>
  40. <Column size="30"/>
  41. <Column size="30"/>
  42. </Columns>
  43. <Rows>
  44. <Row size="25" band="head"/>
  45. <Row size="25" band="head"/>
  46. <Row size="25"/>
  47. </Rows>
  48. <Band id="head">
  49. <Cell rowspan="2" text="진료과" taborder="undefined"/>
  50. <Cell col="1" rowspan="2" text="재원" taborder="undefined"/>
  51. <Cell col="2" rowspan="2" text="입원" taborder="undefined"/>
  52. <Cell col="3" rowspan="2" text="퇴원" taborder="undefined"/>
  53. <Cell col="4" colspan="4" text="외래" taborder="undefined"/>
  54. <Cell col="8" rowspan="2" text="병동" taborder="undefined"/>
  55. <Cell col="9" rowspan="2" text="운영병&#13;&#10;상수" taborder="undefined"/>
  56. <Cell col="10" rowspan="2" text="재원" taborder="undefined"/>
  57. <Cell col="11" rowspan="2" text="입원" taborder="undefined"/>
  58. <Cell col="12" rowspan="2" text="퇴원" taborder="undefined"/>
  59. <Cell col="13" rowspan="2" text="전입" taborder="undefined"/>
  60. <Cell col="14" rowspan="2" text="전출" taborder="undefined"/>
  61. <Cell col="15" rowspan="2" text="사망" taborder="undefined"/>
  62. <Cell col="16" rowspan="2" text="가동율" taborder="undefined"/>
  63. <Cell col="17" rowspan="2" text="평균재원일수" taborder="undefined"/>
  64. <Cell col="18" colspan="6" text="중증도(건)" taborder="undefined"/>
  65. <Cell col="24" text="진료과"/>
  66. <Cell col="25" text="재원"/>
  67. <Cell col="26" text="입원"/>
  68. <Cell col="27" text="퇴원"/>
  69. <Cell col="28" text="초진"/>
  70. <Cell col="29" text="재진"/>
  71. <Cell col="30" text="계"/>
  72. <Cell col="31" text="부도율"/>
  73. <Cell col="32" text="병동"/>
  74. <Cell col="33" text="운영병상수"/>
  75. <Cell col="34" text="재원"/>
  76. <Cell col="35" text="입원"/>
  77. <Cell col="36" text="퇴원"/>
  78. <Cell col="37" text="전입"/>
  79. <Cell col="38" text="전출"/>
  80. <Cell col="39" text="사망"/>
  81. <Cell col="40" text="가동율"/>
  82. <Cell col="41" text="평균재원일수"/>
  83. <Cell col="42" text="퇴원예고율"/>
  84. <Cell col="43" text="1군"/>
  85. <Cell col="44" text="2군"/>
  86. <Cell col="45" text="3군"/>
  87. <Cell col="46" text="4군"/>
  88. <Cell col="47" text="5군"/>
  89. <Cell col="48" text="6군"/>
  90. <Cell row="1" col="4" text="초진"/>
  91. <Cell row="1" col="5" text="재진"/>
  92. <Cell row="1" col="6" text="계"/>
  93. <Cell row="1" col="7" text="부도율"/>
  94. <Cell row="1" col="18" text="1군"/>
  95. <Cell row="1" col="19" text="2군"/>
  96. <Cell row="1" col="20" text="3군"/>
  97. <Cell row="1" col="21" text="4군"/>
  98. <Cell row="1" col="22" text="5군"/>
  99. <Cell row="1" col="23" text="6군"/>
  100. </Band>
  101. <Band id="body">
  102. <Cell style="align:left middle;" text="bind:depthngnm" suppress="1" suppressalign="middle,over"/>
  103. <Cell col="1" displaytype="number" text="bind:deptingcnt" suppress="2" suppressalign="middle,over"/>
  104. <Cell col="2" displaytype="number" text="bind:deptinptcnt" suppress="3" suppressalign="middle,over"/>
  105. <Cell col="3" displaytype="number" text="bind:deptdschcnt" suppress="4" suppressalign="middle,over"/>
  106. <Cell col="4" displaytype="number" text="bind:fstpatcnt" suppress="5" suppressalign="middle,over"/>
  107. <Cell col="5" displaytype="number" text="bind:secpatcnt" suppress="6" suppressalign="middle,over"/>
  108. <Cell col="6" displaytype="number" text="bind:outpatcnt" suppress="7" suppressalign="middle,over"/>
  109. <Cell col="7" displaytype="number" text="bind:absnpatrate" suppress="8" suppressalign="middle,over"/>
  110. <Cell col="8" style="align:left middle;" text="bind:wardnm"/>
  111. <Cell col="9" displaytype="number" text="bind:roomcnt"/>
  112. <Cell col="10" displaytype="number" text="bind:ingcnt"/>
  113. <Cell col="11" displaytype="number" text="bind:inptcnt"/>
  114. <Cell col="12" displaytype="number" text="bind:dschcnt"/>
  115. <Cell col="13" displaytype="number" text="bind:trnsinrmcnt"/>
  116. <Cell col="14" displaytype="number" text="bind:trnsoutrmcnt"/>
  117. <Cell col="15" displaytype="number" text="bind:dethcnt"/>
  118. <Cell col="16" displaytype="number" text="bind:warduserate"/>
  119. <Cell col="17" displaytype="number" text="bind:avgingday"/>
  120. <Cell col="18" displaytype="number" text="bind:sfdgree1"/>
  121. <Cell col="19" displaytype="number" text="bind:sfdgree2"/>
  122. <Cell col="20" displaytype="number" text="bind:sfdgree3"/>
  123. <Cell col="21" displaytype="number" text="bind:sfdgree4"/>
  124. <Cell col="22" displaytype="number" text="bind:sfdgree5"/>
  125. <Cell col="23" displaytype="number" text="bind:sfdgree6"/>
  126. </Band>
  127. </Format>
  128. </Formats>
  129. </Grid>
  130. <Static id="caption26" class="tit_2" position="absolute 0 81 260 97" style="" text="환자통계 리스트"/>
  131. <Static id="caption1" position="absolute 240 38 255 58" style="" text="~" anchor="left top"/>
  132. <Static id="caption6" text="환자 통계" class="tit_1" position="absolute 0 0 160 26"/>
  133. </Layout>
  134. </Layouts>
  135. <Objects>
  136. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  137. <ColumnInfo>
  138. <Column id="hidden" type="STRING" size="256"/>
  139. </ColumnInfo>
  140. </Dataset>
  141. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  142. <ColumnInfo>
  143. <Column id="init" type="STRING" size="256"/>
  144. </ColumnInfo>
  145. <Rows>
  146. <Row>
  147. <Col id="init"/>
  148. </Row>
  149. </Rows>
  150. </Dataset>
  151. <Dataset id="ds_main_patstsinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  152. <ColumnInfo>
  153. <Column id="patstslist" type="STRING" size="256"/>
  154. </ColumnInfo>
  155. <Rows>
  156. <Row>
  157. <Col id="patstslist"/>
  158. </Row>
  159. </Rows>
  160. </Dataset>
  161. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  162. <ColumnInfo/>
  163. </Dataset>
  164. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  165. <ColumnInfo>
  166. <Column id="fromdd" type="STRING" size="256"/>
  167. <Column id="todd" type="STRING" size="256"/>
  168. </ColumnInfo>
  169. <Rows>
  170. <Row>
  171. <Col id="fromdd"/>
  172. <Col id="todd"/>
  173. </Row>
  174. </Rows>
  175. </Dataset>
  176. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  177. <ColumnInfo>
  178. <Column id="send" type="STRING" size="256"/>
  179. </ColumnInfo>
  180. <Rows>
  181. <Row>
  182. <Col id="send"/>
  183. </Row>
  184. </Rows>
  185. </Dataset>
  186. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  187. </Objects>
  188. <Bind>
  189. <BindItem id="item0" compid="input1" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  190. <BindItem id="item1" compid="ipt_procdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  191. </Bind>
  192. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  193. * System Name :
  194. * Job Name :
  195. * Creator :
  196. * Make Date : 2016-05-24
  197. * Description :
  198. *---------------------------------------------------------------------------------------
  199. * Modify Date Modifier Modify Description
  200. *---------------------------------------------------------------------------------------
  201. * 2016-05-24 Live Converter TF->XP
  202. *
  203. *---------------------------------------------------------------------------------------
  204. ****************************************************************************************/
  205. include "com_commonxp::comm_main.xjs";
  206. function SSMNW00400_onload(obj:Form, e:LoadEventInfo) {
  207. frmf_initForm(obj);
  208. grdf_initGrid(dgrd_rpt);
  209. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  210. //그리드 초기화
  211. ds_main_patstsinfo.clearData();
  212. //현재 일자 세팅
  213. ds_main_cond.setColumn( 0, "fromdd", utlf_getCurrentDate().toDate().getAddDate(-1,'D').getDateFormat());
  214. ds_main_cond.setColumn( 0, "todd", utlf_getCurrentDate().toDate().getAddDate(-1,'D').getDateFormat());
  215. btn_select.click();
  216. }
  217. function input1_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
  218. }
  219. function ipt_procdd_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
  220. }
  221. function btn_select_onclick(obj:Button, e:ClickEventInfo) {
  222. if ( utlf_isNull(ds_main_cond.getColumn(0, "fromdd")) || utlf_isNull(ds_main_cond.getColumn(0, "todd")) ){
  223. sysf_messageBox("기간","I003");//필수입력입니다
  224. return;
  225. }
  226. ds_send_reqdata.clearData();
  227. dsf_makeValue( ds_send_reqdata, "fromdd", "string", ds_main_cond.getColumn(0, "fromdd") );
  228. dsf_makeValue( ds_send_reqdata, "todd", "string", ds_main_cond.getColumn(0, "todd") );
  229. // submit("TRSNW00401");
  230. var oParam = {};
  231. oParam.id = "TRSNW00401";
  232. oParam.service = "stsenrapp.StsPatMngt";
  233. oParam.method = "reqGetPatStslist";
  234. oParam.inds = "req=ds_send_reqdata";
  235. oParam.outds = "ds_main_patstsinfo=patstslist";
  236. oParam.async = false;
  237. //oParam.callback = "cf_TRSNW00401";
  238. tranf_submit(oParam);
  239. }
  240. function btn_excel_onclick(obj:Button, e:ClickEventInfo) {
  241. if (ds_main_patstsinfo.rowcount > 0) {
  242. grdf_exportExcel(dgrd_rpt, caption26.text , "see");
  243. }else{
  244. sysf_messageBox("엑셀저장할 내역이", "I004");
  245. }
  246. }
  247. ]]></Script>
  248. </Form>
  249. </FDL>