SMPMI03910_준공용병상가용현황.xfdl 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMI03910" position="absolute 0 0 1256 805" titletext="준공용 병상 가용 현황" onload="SMPMI03910_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid id="grd_inpatinfo" taborder="8" useinputpanel="false" position="absolute 1025 91 1195 766" binddataset="ds_main_inptlist_inpatinfo" visible="true">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="25" band="left"/>
  12. <Column size="100"/>
  13. <Column size="100"/>
  14. <Column size="45"/>
  15. <Column size="60"/>
  16. <Column size="100"/>
  17. <Column size="66"/>
  18. <Column size="70"/>
  19. <Column size="60"/>
  20. <Column size="287"/>
  21. </Columns>
  22. <Rows>
  23. <Row size="24" band="head"/>
  24. <Row size="24"/>
  25. </Rows>
  26. <Band id="head">
  27. <Cell/>
  28. <Cell col="1" text="진료과"/>
  29. <Cell col="2" text="병동"/>
  30. <Cell col="3" text="병실"/>
  31. <Cell col="4" text="병상"/>
  32. <Cell col="5" text="병상배정과"/>
  33. <Cell col="6" text="환자"/>
  34. <Cell col="7" text="환자"/>
  35. <Cell col="8" text="상태"/>
  36. <Cell col="9" text="비고"/>
  37. </Band>
  38. <Band id="body">
  39. <Cell celltype="head" expr="expr:currow + 1"/>
  40. <Cell col="1" style="align:left middle;padding:0 0 0 5;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:orddeptnm"/>
  41. <Cell col="2" style="align:left middle;padding:0 0 0 5;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:wardnm"/>
  42. <Cell col="3" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:roomcd"/>
  43. <Cell col="4" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:bednm"/>
  44. <Cell col="5" style="align:left middle;padding:0 0 0 5;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:bedorddeptnm"/>
  45. <Cell col="6" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:pid"/>
  46. <Cell col="7" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:hngnm"/>
  47. <Cell col="8" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:indschacptstat"/>
  48. <Cell col="9" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:remfact"/>
  49. </Band>
  50. </Format>
  51. </Formats>
  52. </Grid>
  53. <Static text="준공용 병상 가용 현황" position="absolute 0 0 180 25" align="align:center middle;" id="cap_title" class="tit_1"/>
  54. <Static text="조회 내역" position="absolute 0 70 85 86" id="caption7" class="tit_2"/>
  55. <Shape position="absolute 0 86 1195 92" linetype="horizontal" id="line1" class="line_1" style="strokepen:3 solid #33bbbbff;"/>
  56. <Button position="absolute 947 65 1027 84" id="btn_excel" class="btn7" text="엑셀저장" onclick="btn_excel_onclick"/>
  57. <Static id="caption14" text="※ 진료과 더블클릭 시 재원과 기준, 전용병상환자수 더블클릭 시 병상배정과 기준으로 환자세부정보가 표시됩니다." position="absolute 82 70 708 85" style="font:Dotum,9;"/>
  58. <Grid position="absolute 0 91 1022 766" align="align:center middle;" id="grd_exav" binddataset="ds_main_exavlist_exavinfo" oncelldblclick="grd_exav_oncelldblclick" autoenter="select" cellsizingtype="col">
  59. <Formats>
  60. <Format id="default">
  61. <Columns>
  62. <Column size="25" band="left"/>
  63. <Column size="121"/>
  64. <Column size="80"/>
  65. <Column size="80"/>
  66. <Column size="80"/>
  67. <Column size="40"/>
  68. <Column size="40"/>
  69. <Column size="40"/>
  70. <Column size="100"/>
  71. <Column size="92"/>
  72. <Column size="80"/>
  73. <Column size="80"/>
  74. <Column size="80"/>
  75. <Column size="80"/>
  76. </Columns>
  77. <Rows>
  78. <Row size="30" band="head"/>
  79. <Row size="24"/>
  80. <Row size="24" band="summ"/>
  81. </Rows>
  82. <Band id="head">
  83. <Cell/>
  84. <Cell col="1" text="진료과"/>
  85. <Cell col="2" text="전용병상수"/>
  86. <Cell col="3" text="진료과&#13;&#10;환자수"/>
  87. <Cell col="4" text="전용병상&#13;&#10;환자수"/>
  88. <Cell col="5" colspan="3" text="입원결정수&#13;&#10;(외래/응급/특수)" taborder="undefined"/>
  89. <Cell col="8" text="진료과&#13;&#10;가동률"/>
  90. <Cell col="9" text="전용병상&#13;&#10;가동률"/>
  91. <Cell col="10" text="입원결정률"/>
  92. <Cell col="11" text="가용병상수&#13;&#10;(진료과)"/>
  93. <Cell col="12" text="가용병상수&#13;&#10;(전용병상)"/>
  94. <Cell col="13" text="가용병상수&#13;&#10;(적용)"/>
  95. </Band>
  96. <Band id="body">
  97. <Cell celltype="head" expr="expr:currow + 1"/>
  98. <Cell col="1" style="align:left middle;" text="bind:deptnm"/>
  99. <Cell col="2" displaytype="number" style="align:right middle;padding:0 10 0 0;" text="bind:exbed"/>
  100. <Cell col="3" displaytype="number" style="align:right middle;padding:0 10 0 0;" text="bind:deptpat"/>
  101. <Cell col="4" displaytype="number" style="align:right middle;padding:0 10 0 0;" text="bind:bedpat"/>
  102. <Cell col="5" displaytype="number" style="align:right middle;padding:0 5 0 0;" text="bind:adrvipat"/>
  103. <Cell col="6" displaytype="number" style="align:right middle;padding:0 5 0 0;" text="bind:adrvepat"/>
  104. <Cell col="7" displaytype="number" style="align:right middle;padding:0 5 0 0;" text="bind:adrvdpat"/>
  105. <Cell col="8" displaytype="number" style="align:right middle;padding:0 10 0 0;" text="bind:deptrate"/>
  106. <Cell col="9" displaytype="number" style="align:right middle;padding:0 10 0 0;" text="bind:bedrate"/>
  107. <Cell col="10" displaytype="number" style="align:right middle;padding:0 10 0 0;"/>
  108. <Cell col="11" displaytype="number" style="align:right middle;padding:0 10 0 0;" text="bind:exavcnt_dept"/>
  109. <Cell col="12" displaytype="number" style="align:right middle;padding:0 10 0 0;" text="bind:exavcnt_bed"/>
  110. <Cell col="13" displaytype="number" style="align:right middle;padding:0 10 0 0;font:Dotum,9,bold;" text="bind:exavcnt_rslt"/>
  111. </Band>
  112. <Band id="summary">
  113. <Cell style="background:#7cbbddff;background2:#7cbbddff;color:black;"/>
  114. <Cell col="1" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;" text="* Total *"/>
  115. <Cell col="2" displaytype="number" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;" text="expr:getSum('exbed')"/>
  116. <Cell col="3" displaytype="number" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;" text="expr:getSum('deptpat')"/>
  117. <Cell col="4" displaytype="number" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;" text="expr:getSum('bedpat')"/>
  118. <Cell col="5" displaytype="number" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;" text="expr:getSum('adrvipat')"/>
  119. <Cell col="6" displaytype="number" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;" text="expr:getSum('adrvepat')"/>
  120. <Cell col="7" displaytype="number" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;" text="expr:getSum('adrvdpat')"/>
  121. <Cell col="8" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;"/>
  122. <Cell col="9" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;"/>
  123. <Cell col="10" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;"/>
  124. <Cell col="11" displaytype="number" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;" text="expr:getSum('exavcnt_dept')"/>
  125. <Cell col="12" displaytype="number" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;" text="expr:getSum('exavcnt_bed')"/>
  126. <Cell col="13" displaytype="number" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;" text="expr:getSum('exavcnt_rslt')"/>
  127. </Band>
  128. </Format>
  129. </Formats>
  130. </Grid>
  131. <Div id="div" taborder="7" position="absolute 0 25 1195 60" class="div_SA">
  132. <Layouts>
  133. <Layout>
  134. <Button id="btn_search" taborder="0" text="조회" class="btn1" position="absolute 1130 7 1186 29" anchor="default" onclick="div_btn_search_onclick"/>
  135. <Shape id="line13" linetype="vertical" position="absolute 1117 4 1123 31" anchor="default"/>
  136. <Static id="caption1" text="※ 가용병상수 : 전용병상수 * ( 90% - 가동률 ) / 100" position="absolute 10 10 340 25" anchor="default" style="font:Dotum,9,bold;"/>
  137. <Static id="caption2" text="(☞ 소수점은 내림으로 계산)" position="absolute 345 10 501 25" anchor="default"/>
  138. <Button id="btn_info" taborder="1" text="항목설명" class="btn2" position="absolute 520 8 586 27" anchor="default" onclick="div_btn_info_onclick"/>
  139. <Static id="caption17" text="특수병상 포함" class="search_name" position="absolute 665 9 760 26" anchor="default"/>
  140. <CheckBox id="checkbox1" taborder="2" position="absolute 769 10 785 25" falsevalue="N" truevalue="Y" value="N" anchor="default"/>
  141. <Button id="button1" taborder="3" text="특수병상제외내역" class="btn2" position="absolute 794 8 907 27" tooltiptext="PK074" onclick="div_button1_onclick"/>
  142. </Layout>
  143. </Layouts>
  144. </Div>
  145. <Div position="absolute 520 55 1028 326" id="grp_info" visible="false" style="background:white;border:1 solid #999999ff ;bordertype:round 4 4 ;">
  146. <Layouts>
  147. <Layout width="520" height="270">
  148. <Static text="전용병상수" position="absolute 3 2 143 26" align="align:right middle;" id="caption3" class="cell_1" anchor="default"/>
  149. <Static text="진료과환자수" position="absolute 3 2 143 26" align="align:right middle;" id="caption4" class="cell_1" anchor="default"/>
  150. <Static text="전용병상환자수" position="absolute 3 2 143 26" align="align:right middle;" id="caption5" class="cell_1" anchor="default"/>
  151. <Static text="진료과가동률" position="absolute 3 2 143 26" align="align:right middle;" id="caption6" class="cell_1" anchor="default"/>
  152. <Static text="전용병상가동률" position="absolute 3 2 143 26" align="align:right middle;" id="caption8" class="cell_1" anchor="default"/>
  153. <Static text="가용병상수(진료과)" position="absolute 3 2 143 26" align="align:right middle;" id="caption9" class="cell_1" anchor="default"/>
  154. <Static text="가용병상수(전용병상)" position="absolute 3 2 143 26" align="align:right middle;" id="caption10" class="cell_1" anchor="default"/>
  155. <Static text="전용병상수" position="absolute 3 2 143 26" align="align:right middle;" id="caption11" class="cell_1" anchor="default" style="padding:0 4 0 0;align:right middle;"/>
  156. <Static id="caption2" text="해당과가 보유하고 있는 전용 병상의 개수" position="absolute 156 2 506 26" anchor="default"/>
  157. <Static id="caption00" text="해당과 진료 환자 중 전용 병상에 있는 환자수 (타과 병상 포함)" position="absolute 156 28 506 52" anchor="default"/>
  158. <Static id="caption01" text="진료과환자수" class="cell_1" position="absolute 3 28 143 52" style="padding:0 4 0 0;align:right middle;" align="align:right middle;" anchor="default"/>
  159. <Static id="caption07" text="해당과 소속 병상에 있는 모든 환자수 (타과 환자 포함)" position="absolute 156 54 506 78" anchor="default"/>
  160. <Static id="caption12" text="전용병상환자수" class="cell_1" position="absolute 3 54 143 78" style="padding:0 4 0 0;align:right middle;" align="align:right middle;" anchor="default"/>
  161. <Static id="caption13" text="해당진료과로 결정한 환자 수" position="absolute 156 80 506 104" anchor="default"/>
  162. <Static id="caption14" text="입원결정수" class="cell_1" position="absolute 3 80 143 104" style="padding:0 4 0 0;align:right middle;" align="align:right middle;" anchor="default"/>
  163. <Static id="caption15" text="진료과 환자수 / 전용병상수 * 100" position="absolute 156 109 506 133" anchor="default"/>
  164. <Static id="caption16" text="진료과가동률" class="cell_1" position="absolute 3 109 143 133" style="padding:0 4 0 0;align:right middle;" align="align:right middle;" anchor="default"/>
  165. <Static id="caption17" text="전용 병상 환자수 / 전용 병상수 * 100" position="absolute 156 135 506 159" anchor="default"/>
  166. <Static id="caption18" text="전용병상가동률" class="cell_1" position="absolute 3 135 143 159" style="padding:0 4 0 0;align:right middle;" align="align:right middle;" anchor="default"/>
  167. <Static id="caption19" text="전용병상수 / 입원결정수 * 100" position="absolute 156 161 506 185" anchor="default"/>
  168. <Static id="caption20" text="입원결정률" class="cell_1" position="absolute 3 161 143 185" style="padding:0 4 0 0;align:right middle;" align="align:right middle;" anchor="default"/>
  169. <Static id="caption21" text="진료과 가동률 기준 가용 병상수" position="absolute 156 191 506 215" anchor="default"/>
  170. <Static id="caption22" text="가용병상수(진료과)" class="cell_1" position="absolute 3 191 143 215" style="padding:0 4 0 0;align:right middle;" align="align:right middle;" anchor="default"/>
  171. <Static id="caption23" text="전용 병상 가동률 기준 가용 병상수" position="absolute 156 217 506 241" anchor="default"/>
  172. <Static id="caption24" text="가용병상수(전용병상)" class="cell_1" position="absolute 3 217 143 241" style="padding:0 4 0 0;align:right middle;" align="align:right middle;" anchor="default"/>
  173. <Static id="caption25" text="두 가용 병상 중 적은 수의 가용 병상 수" position="absolute 156 243 506 267" anchor="default"/>
  174. <Static id="caption26" text="가용병상수(적용)" class="cell_1" position="absolute 3 243 143 267" style="padding:0 4 0 0;align:right middle;" align="align:right middle;" anchor="default"/>
  175. <Button id="btn_infoclose" taborder="1" text="닫기" class="btn2" visible="true" position="absolute 462 3 504 22" anchor="default" onclick="grp_info_btn_infoclose_onclick"/>
  176. </Layout>
  177. </Layouts>
  178. </Div>
  179. <Button id="btn_left" taborder="9" position="absolute 1142 67 1168 86" style="background:@gradation URL('theme://images\icon_arrowDoublePre_N.png') stretch;" onclick="btn_left_onclick" class="btn2"/>
  180. <Button id="btn_right" taborder="10" position="absolute 1169 67 1195 86" style="background:@gradation URL('theme://images\icon_arrowDoubleNext_N.png') stretch;" class="btn2" onclick="btn_right_onclick"/>
  181. <Static id="rectangle1" position="absolute 1042 772 1057 787" style="background:#e5f3c2ff;border:1 solid #99cc00ff ;"/>
  182. <Static id="rectangle00" position="absolute 1122 772 1137 787" style="background:#fcd2c1ff;border:1 solid #ff99ccff ;"/>
  183. <Static id="caption16" text="퇴원예고" position="absolute 1063 770 1115 790"/>
  184. <Static id="caption00" text="입원결정" position="absolute 1143 770 1195 790"/>
  185. <Div id="grp_bedinfo" taborder="11" text="Div00" position="absolute 793 55 1018 525" style="background:white;border:1 solid #999999ff ;" visible="false">
  186. <Layouts>
  187. <Layout>
  188. <Static id="caption18" position="absolute 2 2 223 468" style="linespace:4;align:left top;" anchor="default"/>
  189. <Button id="btn_infoclose" taborder="0" text="닫기" class="btn2" visible="true" position="absolute 179 2 221 21" anchor="default" onclick="grp_bedinfo_btn_infoclose_onclick"/>
  190. </Layout>
  191. </Layouts>
  192. </Div>
  193. </Layout>
  194. </Layouts>
  195. <Objects>
  196. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  197. <ColumnInfo>
  198. <Column id="fromdd" type="STRING" size="256"/>
  199. <Column id="todd" type="STRING" size="256"/>
  200. <Column id="orddeptcd" type="STRING" size="256"/>
  201. <Column id="bedorddeptcd" type="STRING" size="256"/>
  202. <Column id="exptyn" type="STRING" size="256"/>
  203. </ColumnInfo>
  204. <Rows>
  205. <Row>
  206. <Col id="fromdd"/>
  207. <Col id="todd"/>
  208. <Col id="orddeptcd"/>
  209. <Col id="bedorddeptcd"/>
  210. <Col id="exptyn"/>
  211. </Row>
  212. </Rows>
  213. </Dataset>
  214. <Dataset id="ds_init_pam_PK074list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  215. <Dataset id="ds_main_exavlist_exavinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  216. <ColumnInfo>
  217. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
  218. <Column id="deptnm" type="STRING" size="256" sumtext="진료과명"/>
  219. <Column id="exbed" type="STRING" size="256" sumtext="전용병상수"/>
  220. <Column id="deptpat" type="STRING" size="256" sumtext="재원환자수"/>
  221. <Column id="bedpat" type="STRING" size="256" sumtext="전용병상환자수"/>
  222. <Column id="adrvipat" type="STRING" size="256" sumtext="입원결정수(외래)"/>
  223. <Column id="adrvepat" type="STRING" size="256" sumtext="입원결정수(응급)"/>
  224. <Column id="adrvdpat" type="STRING" size="256" sumtext="입원결정수(특수주사실)"/>
  225. <Column id="deptrate" type="STRING" size="256" sumtext="진료과가동률"/>
  226. <Column id="bedrate" type="STRING" size="256" sumtext="전용병상가동률"/>
  227. <Column id="adrvrate" type="STRING" size="256" sumtext="입원결정률"/>
  228. <Column id="exavcnt_dept" type="STRING" size="256" sumtext="진료과기준가용병상수"/>
  229. <Column id="exavcnt_bed" type="STRING" size="256" sumtext="병상기준가용병상수"/>
  230. <Column id="exavcnt_rslt" type="STRING" size="256" sumtext="가용병상수"/>
  231. </ColumnInfo>
  232. </Dataset>
  233. <Dataset id="ds_main_inptlist_inpatinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  234. <ColumnInfo>
  235. <Column id="orddeptnm" type="STRING" size="256" sumtext="재원과"/>
  236. <Column id="wardnm" type="STRING" size="256" sumtext="병동"/>
  237. <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
  238. <Column id="bednm" type="STRING" size="256" sumtext="병상"/>
  239. <Column id="bedorddeptnm" type="STRING" size="256" sumtext="배정진료과"/>
  240. <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
  241. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  242. <Column id="indschacptstat" type="STRING" size="256" sumtext="상태"/>
  243. <Column id="remfact" type="STRING" size="256" sumtext="비고"/>
  244. <Column id="bgColor" type="STRING" size="256"/>
  245. </ColumnInfo>
  246. </Dataset>
  247. </Objects>
  248. <Bind>
  249. <BindItem id="item0" compid="div.checkbox1" propid="value" datasetid="ds_send" columnid="exptyn"/>
  250. </Bind>
  251. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  252. * System Name :
  253. * Job Name :
  254. * Creator :
  255. * Make Date : 2016-05-24
  256. * Description :
  257. *---------------------------------------------------------------------------------------
  258. * Modify Date Modifier Modify Description
  259. *---------------------------------------------------------------------------------------
  260. * 2016-05-24 Live Converter TF->XP
  261. *
  262. *---------------------------------------------------------------------------------------
  263. ****************************************************************************************/
  264. //=======================================================================================
  265. // Lib Include
  266. //---------------------------------------------------------------------------------------
  267. include 'com_commonxp::comm_main.xjs';
  268. include 'pam_pamcomnxp::PAM001.xjs';
  269. include 'ast_examcurexp::AEZ0001.xjs';
  270. include 'emr_prcpmngtxp::MMOCommon.xjs';
  271. var arErrorCode = new HashArray();
  272. //=======================================================================================
  273. // Local methods
  274. //---------------------------------------------------------------------------------------
  275. /**
  276. * submit 후 호출 될 공통 콜백
  277. * @param {[type]} sSvcId [description]
  278. * @param {[type]} nErrorCode [description]
  279. * @param {[type]} sErrorMsg [description]
  280. * @return {Function} [description]
  281. */
  282. function callback(sSvcId, nErrorCode, sErrorMsg){
  283. arErrorCode.push(sSvcId, nErrorCode);
  284. }
  285. //=======================================================================================
  286. // Events
  287. //---------------------------------------------------------------------------------------
  288. /**
  289. * onload 이벤트 발생 시 호출
  290. * @param {[type]} obj:Form [description]
  291. * @param {[type]} e:LoadEventInfo [description]
  292. */
  293. function SMPMI03910_onload(obj: Form, e: LoadEventInfo) {
  294. frmf_initForm(obj);
  295. grdf_setGridSort(grd_exav);
  296. pamfGetCodeList([{ dsNm: 'PK074', cdGrpId: 'ds_init_pam_PK074list' }]);
  297. var sWard = "";
  298. for (i = 0; i < ds_init_pam_PK074list.rowcount; i++) {
  299. var ward = ds_init_pam_PK074list.getColumn(i, "remark");
  300. if (!utlf_isNull(ward)) {
  301. sWard += ward + "\r\n";
  302. }
  303. }
  304. grp_bedinfo.caption18.text = sWard;
  305. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
  306. ds_send.setColumn(0, "todd", utlf_getCurrentDate());
  307. div.btn_search.click();
  308. }
  309. /**
  310. * 항목설명 버튼 클릭 이벤트
  311. * @param {[type]} obj: Button [description]
  312. * @param {[type]} e: ClickEventInfo [description]
  313. * @return {[type]} [description]
  314. */
  315. function div_btn_info_onclick(obj: Button, e: ClickEventInfo) {
  316. grp_info.visible = !grp_info.visible;
  317. }
  318. /**
  319. * 특수병상제외내역 버튼 클릭 이벤트
  320. * @param {[type]} obj: Button [description]
  321. * @param {[type]} e: ClickEventInfo [description]
  322. * @return {[type]} [description]
  323. */
  324. function div_button1_onclick(obj: Button, e: ClickEventInfo) {
  325. grp_bedinfo.visible = !grp_bedinfo.visible;
  326. }
  327. /**
  328. * 조회버튼 클릭 이벤트
  329. * @param {[type]} obj: Button [description]
  330. * @param {[type]} e: ClickEventInfo [description]
  331. * @return {[type]} [description]
  332. */
  333. function div_btn_search_onclick(obj: Button, e: ClickEventInfo) {
  334. dsf_createDsRow('ds_TRPMI03901', [
  335. { col: 'fromdd', type: 'string', size: 256, val: '' },
  336. { col: 'todd', type: 'string', size: 256, val: '' },
  337. { col: 'exptyn', type: 'string', size: 256, val: '' }
  338. ], false);
  339. ds_TRPMI03901.copyRow(0, ds_send, 0);
  340. ds_main_exavlist_exavinfo.clearData();
  341. var oParam = {};
  342. oParam.id = "TRPMI03901";
  343. oParam.service = "ipatmngtapp.InRsrv";
  344. oParam.method = "reqGetExavBedCnt";
  345. oParam.inds = "req=ds_TRPMI03901";
  346. oParam.outds = "ds_main_exavlist_exavinfo=exav";
  347. oParam.async = false;
  348. tranf_submit(oParam);
  349. }
  350. /**
  351. * grp_info 닫기 버튼 클릭 이벤트
  352. * @param {[type]} obj: Button [description]
  353. * @param {[type]} e: ClickEventInfo [description]
  354. * @return {[type]} [description]
  355. */
  356. function grp_info_btn_infoclose_onclick(obj: Button, e: ClickEventInfo) {
  357. grp_info.visible = false;
  358. }
  359. /**
  360. * grp_bedinfo 닫기 버튼 클릭 이벤트
  361. * @param {[type]} obj: Button [description]
  362. * @param {[type]} e: ClickEventInfo [description]
  363. * @return {[type]} [description]
  364. */
  365. function grp_bedinfo_btn_infoclose_onclick(obj: Button, e: ClickEventInfo) {
  366. grp_bedinfo.visible = false;
  367. }
  368. /**
  369. * 조회내역 그리드 셀 더블클릭 이벤트
  370. * @param {[type]} obj: Grid [description]
  371. * @param {[type]} e: GridClickEventInfo [description]
  372. * @return {[type]} [description]
  373. */
  374. function grd_exav_oncelldblclick(obj: Grid, e: GridClickEventInfo) {
  375. var sRow = grd_exav.currentrow;
  376. btn_left.click();
  377. // 자격조회 호출
  378. if (lf_getBindCellName(grd_exav, e.col) == "bedpat") {
  379. ds_send.setColumn(0, "orddeptcd", "");
  380. ds_send.setColumn(0, "bedorddeptcd", ds_main_exavlist_exavinfo.getColumn(sRow, "orddeptcd"));
  381. }
  382. else {
  383. ds_send.setColumn(0, "orddeptcd", ds_main_exavlist_exavinfo.getColumn(sRow, "orddeptcd"));
  384. ds_send.setColumn(0, "bedorddeptcd", "");
  385. }
  386. ds_main_inptlist_inpatinfo.clearData();
  387. var oParam = {};
  388. oParam.id = "TRPMI03902";
  389. oParam.service = "ipatmngtapp.InRsrv";
  390. oParam.method = "reqGetInpatInfoList";
  391. oParam.inds = "req=ds_send";
  392. oParam.outds = "ds_main_inptlist_inpatinfo=inpatinfo";
  393. oParam.async = false;
  394. tranf_submit(oParam);
  395. ds_main_inptlist_inpatinfo.addColumn('bgColor', 'string');
  396. for(var i = 0; i < ds_main_inptlist_inpatinfo.rowcount; i++){
  397. var value = ds_main_inptlist_inpatinfo.getColumn(i, 'indschacptstat');
  398. var color = '';
  399. if(value == '퇴원예고'){
  400. color = '#e5f3c2ff';
  401. }
  402. else if(value == '입원결정'){
  403. color = '#fcd2c1ff';
  404. }
  405. ds_main_inptlist_inpatinfo.setColumn(i, 'bgColor', color);
  406. }
  407. // 삭제대상 처리
  408. //lf_aezfSetRowStyle(grd_inpatinfo, '11', '퇴원예고', 'indschacptstat', 'equal');
  409. // 삭제대상 처리
  410. //lf_aezfSetRowStyle(grd_inpatinfo, '0', '입원결정', 'indschacptstat', 'equal');
  411. }
  412. /**
  413. * << 버튼 클릭 이벤트
  414. * @param {[type]} obj: Button [description]
  415. * @param {[type]} e: ClickEventInfo [description]
  416. * @return {[type]} [description]
  417. */
  418. function btn_left_onclick(obj: Button, e: ClickEventInfo) {
  419. grd_exav.position.width = 622;
  420. grd_inpatinfo.position.left = 625;
  421. grd_inpatinfo.position.width = 570;
  422. }
  423. /**
  424. * >> 버튼 클릭 이벤트
  425. * @param {[type]} obj: Button [description]
  426. * @param {[type]} e: ClickEventInfo [description]
  427. * @return {[type]} [description]
  428. */
  429. function btn_right_onclick(obj: Button, e: ClickEventInfo) {
  430. grd_exav.position.width = 1022; // 1022
  431. grd_inpatinfo.position.left = 1025; // 1025
  432. grd_inpatinfo.position.width = 170; // 170
  433. }
  434. /**
  435. * [btn_excel_onclick description]
  436. * @param {[type]} obj: Button [description]
  437. * @param {[type]} e: ClickEventInfo [description]
  438. * @return {[type]} [description]
  439. */
  440. function btn_excel_onclick(obj: Button, e: ClickEventInfo) {
  441. grdf_exportExcel(grd_exav, "준공용 병상 가용 현황", "준공용 병상 가용 현황", true, "", "", false);
  442. sysf_messageBox("엑셀 저장이 완료되었습니다.", "I999");
  443. }]]></Script>
  444. </Form>
  445. </FDL>