SMPMI06500_퇴원예고율조회.xfdl 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMI06500" position="absolute 0 0 1202 794" titletext="입원_퇴원_재원조회" onload="SMPMI06500_onload" oninit="SMPMI06500_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="퇴원예고율조회" class="tit_1" position="absolute 0 0 200 24"/>
  8. <Div id="group2" anchor="left top right" taborder="1" class="div_SA" position="absolute 0 24 1195 64">
  9. <Layouts>
  10. <Layout>
  11. <Button id="button1" taborder="3" text="조회" class="btn1" position="absolute 1123 9 1179 31" anchor="top right" onclick="group2_button1_onclick"/>
  12. <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1108 8 1111 30" style="border: solid #ffe4bb #ffe4bb;" anchor="top right"/>
  13. <Static id="caption17" text="퇴원일자 :" class="search_name" position="absolute 10 12 96 29" anchor="default"/>
  14. <Static id="caption20" text="~" class="search_no_b" position="absolute 200 12 212 29" anchor="default"/>
  15. <Calendar id="ipt_infromdd" taborder="4" autoselect="true" autoskip="true" class="input_search" position="absolute 91 10 191 29" anchor="default"/>
  16. <Calendar id="ipt_intodd" taborder="5" autoselect="true" class="input_search" position="absolute 217 10 317 29" anchor="default"/>
  17. <Static id="caption8" text="입원당일퇴원 제외 :" class="search_name" position="absolute 360 11 505 28" anchor="default"/>
  18. <CheckBox id="checkbox1" taborder="6" position="absolute 496 9 516 27" truevalue="Y" onclick="group2_checkbox1_onclick" anchor="default"/>
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Static id="caption2" text="진료과별 퇴원예고율" class="tit_2" position="absolute 0 78 183 99"/>
  23. <Shape id="line1" class="line_10" position="absolute 0 92 430 103"/>
  24. <Button id="button3" taborder="2" text="엑셀저장" class="btn7" position="absolute 1114 75 1195 94" anchor="top right" onclick="button3_onclick"/>
  25. <Grid id="grd_ratedept" class="datagrid2" taborder="3" binddataset="ds_main_dschrate_dschratedeptlist_dschratedept" useinputpanel="false" position="absolute 0 99 430 759" autoenter="select" cellsizingtype="col" anchor="left top bottom" oncelldblclick="grd_ratedept_oncelldblclick">
  26. <Formats>
  27. <Format id="default">
  28. <Columns>
  29. <Column size="110"/>
  30. <Column size="60"/>
  31. <Column size="60"/>
  32. <Column size="60"/>
  33. <Column size="60"/>
  34. <Column size="60"/>
  35. <Column size="0"/>
  36. </Columns>
  37. <Rows>
  38. <Row size="32" band="head"/>
  39. <Row size="24"/>
  40. </Rows>
  41. <Band id="head">
  42. <Cell text="부서명"/>
  43. <Cell col="1" text="15시&#10;예고수"/>
  44. <Cell col="2" text="20시&#10;예고수"/>
  45. <Cell col="3" text="퇴원&#10;환자수"/>
  46. <Cell col="4" text="15시&#10;예고율"/>
  47. <Cell col="5" text="20시&#10;예고율"/>
  48. <Cell col="6" text="caption4"/>
  49. </Band>
  50. <Band id="body">
  51. <Cell style="align:left middle;padding:2 2 2 2;background:EXPR(deptnm == '합계' ? '#99ccff' : '');background2:EXPR(deptnm == '합계' ? '#99ccff' : '');" text="bind:deptnm"/>
  52. <Cell col="1" style="background:EXPR(deptnm == '합계' ? '#99ccff' : '');background2:EXPR(deptnm == '합계' ? '#99ccff' : '');" text="bind:rate15cnt"/>
  53. <Cell col="2" style="background:EXPR(deptnm == '합계' ? '#99ccff' : '');background2:EXPR(deptnm == '합계' ? '#99ccff' : '');" text="bind:rate20cnt"/>
  54. <Cell col="3" style="background:EXPR(deptnm == '합계' ? '#99ccff' : '');background2:EXPR(deptnm == '합계' ? '#99ccff' : '');" text="bind:totcnt"/>
  55. <Cell col="4" style="background:EXPR(deptnm == '합계' ? '#99ccff' : '');background2:EXPR(deptnm == '합계' ? '#99ccff' : '');" text="bind:rate15"/>
  56. <Cell col="5" style="background:EXPR(deptnm == '합계' ? '#99ccff' : '');background2:EXPR(deptnm == '합계' ? '#99ccff' : '');" text="bind:rate20"/>
  57. <Cell col="6" text="bind:deptcd"/>
  58. </Band>
  59. </Format>
  60. </Formats>
  61. </Grid>
  62. <Grid id="grd_rateward" class="datagrid2" taborder="4" binddataset="ds_main_dschrate_dschratewardlist_dschrateward" useinputpanel="false" position="absolute 435 99 865 759" autoenter="select" cellsizingtype="col" anchor="left top bottom" oncelldblclick="grd_rateward_oncelldblclick">
  63. <Formats>
  64. <Format id="default">
  65. <Columns>
  66. <Column size="110"/>
  67. <Column size="60"/>
  68. <Column size="60"/>
  69. <Column size="60"/>
  70. <Column size="60"/>
  71. <Column size="60"/>
  72. <Column size="0"/>
  73. </Columns>
  74. <Rows>
  75. <Row size="32" band="head"/>
  76. <Row size="24"/>
  77. </Rows>
  78. <Band id="head">
  79. <Cell text="부서명"/>
  80. <Cell col="1" text="15시&#10;예고수"/>
  81. <Cell col="2" text="20시&#10;예고수"/>
  82. <Cell col="3" text="퇴원&#10;환자수"/>
  83. <Cell col="4" text="15시&#10;예고율"/>
  84. <Cell col="5" text="20시&#10;예고율"/>
  85. <Cell col="6" text="caption7"/>
  86. </Band>
  87. <Band id="body">
  88. <Cell style="align:left middle;padding:2 2 2 2;background:EXPR(deptnm == '합계' ? '#99ccff' : '');background2:EXPR(deptnm == '합계' ? '#99ccff' : '');" text="bind:deptnm"/>
  89. <Cell col="1" style="background:EXPR(deptnm == '합계' ? '#99ccff' : '');background2:EXPR(deptnm == '합계' ? '#99ccff' : '');" text="bind:rate15cnt"/>
  90. <Cell col="2" style="background:EXPR(deptnm == '합계' ? '#99ccff' : '');background2:EXPR(deptnm == '합계' ? '#99ccff' : '');" text="bind:rate20cnt"/>
  91. <Cell col="3" style="background:EXPR(deptnm == '합계' ? '#99ccff' : '');background2:EXPR(deptnm == '합계' ? '#99ccff' : '');" text="bind:totcnt"/>
  92. <Cell col="4" style="background:EXPR(deptnm == '합계' ? '#99ccff' : '');background2:EXPR(deptnm == '합계' ? '#99ccff' : '');" text="bind:rate15"/>
  93. <Cell col="5" style="background:EXPR(deptnm == '합계' ? '#99ccff' : '');background2:EXPR(deptnm == '합계' ? '#99ccff' : '');" text="bind:rate20"/>
  94. <Cell col="6" text="bind:deptcd"/>
  95. </Band>
  96. </Format>
  97. </Formats>
  98. </Grid>
  99. <Grid id="grd_dschspec" class="datagrid2" taborder="5" binddataset="ds_main_dschspeclist_dschspec" useinputpanel="false" position="absolute 880 99 1195 759" autoenter="select" cellsizingtype="col" anchor="all">
  100. <Formats>
  101. <Format id="default">
  102. <Columns>
  103. <Column size="24" band="left"/>
  104. <Column size="80"/>
  105. <Column size="80"/>
  106. <Column size="120"/>
  107. <Column size="80"/>
  108. <Column size="100"/>
  109. <Column size="110"/>
  110. <Column size="60"/>
  111. <Column size="60"/>
  112. <Column size="70"/>
  113. <Column size="0"/>
  114. <Column size="0"/>
  115. </Columns>
  116. <Rows>
  117. <Row size="26" band="head"/>
  118. <Row size="24"/>
  119. </Rows>
  120. <Band id="head">
  121. <Cell/>
  122. <Cell col="1" text="입원일자"/>
  123. <Cell col="2" text="퇴원일자"/>
  124. <Cell col="3" text="퇴원예고&#10;등록일시"/>
  125. <Cell col="4" text="퇴원예고&#10;등록자"/>
  126. <Cell col="5" text="진료과"/>
  127. <Cell col="6" text="병동"/>
  128. <Cell col="7" text="병실"/>
  129. <Cell col="8" text="등록번호"/>
  130. <Cell col="9" text="성명"/>
  131. <Cell col="10" text="caption1"/>
  132. <Cell col="11" text="caption2"/>
  133. </Band>
  134. <Band id="body">
  135. <Cell celltype="head" expr="currow+1"/>
  136. <Cell col="1" displaytype="date" style="background:EXPR(rate15yn == 'Y' ? '#e5f3c2' : rate20yn == 'Y' ? '#ffe79d' : '');background2:EXPR(rate15yn == 'Y' ? '#e5f3c2' : rate20yn == 'Y' ? '#ffe79d' : '');" text="bind:indd" calendardisplaynulltype="nulltext"/>
  137. <Cell col="2" displaytype="date" style="background:EXPR(rate15yn == 'Y' ? '#e5f3c2' : rate20yn == 'Y' ? '#ffe79d' : '');background2:EXPR(rate15yn == 'Y' ? '#e5f3c2' : rate20yn == 'Y' ? '#ffe79d' : '');" text="bind:dschdd" calendardisplaynulltype="nulltext"/>
  138. <Cell col="3" displaytype="date" style="background:EXPR(rate15yn == 'Y' ? '#e5f3c2' : rate20yn == 'Y' ? '#ffe79d' : '');background2:EXPR(rate15yn == 'Y' ? '#e5f3c2' : rate20yn == 'Y' ? '#ffe79d' : '');" text="bind:dschdclrtrgstdt" mask="yyyy-MM-dd HH:mm:ss" calendardisplaynulltype="nulltext"/>
  139. <Cell col="4" style="background:EXPR(rate15yn == 'Y' ? '#e5f3c2' : rate20yn == 'Y' ? '#ffe79d' : '');background2:EXPR(rate15yn == 'Y' ? '#e5f3c2' : rate20yn == 'Y' ? '#ffe79d' : '');" text="bind:dschdclrtrgstnm"/>
  140. <Cell col="5" style="background:EXPR(rate15yn == 'Y' ? '#e5f3c2' : rate20yn == 'Y' ? '#ffe79d' : '');background2:EXPR(rate15yn == 'Y' ? '#e5f3c2' : rate20yn == 'Y' ? '#ffe79d' : '');" text="bind:orddeptnm"/>
  141. <Cell col="6" style="background:EXPR(rate15yn == 'Y' ? '#e5f3c2' : rate20yn == 'Y' ? '#ffe79d' : '');background2:EXPR(rate15yn == 'Y' ? '#e5f3c2' : rate20yn == 'Y' ? '#ffe79d' : '');" text="bind:wardnm"/>
  142. <Cell col="7" style="background:EXPR(rate15yn == 'Y' ? '#e5f3c2' : rate20yn == 'Y' ? '#ffe79d' : '');background2:EXPR(rate15yn == 'Y' ? '#e5f3c2' : rate20yn == 'Y' ? '#ffe79d' : '');" text="bind:roomcd"/>
  143. <Cell col="8" style="background:EXPR(rate15yn == 'Y' ? '#e5f3c2' : rate20yn == 'Y' ? '#ffe79d' : '');background2:EXPR(rate15yn == 'Y' ? '#e5f3c2' : rate20yn == 'Y' ? '#ffe79d' : '');" text="bind:pid"/>
  144. <Cell col="9" style="background:EXPR(rate15yn == 'Y' ? '#e5f3c2' : rate20yn == 'Y' ? '#ffe79d' : '');background2:EXPR(rate15yn == 'Y' ? '#e5f3c2' : rate20yn == 'Y' ? '#ffe79d' : '');" text="bind:hngnm"/>
  145. <Cell col="10" text="bind:rate15yn"/>
  146. <Cell col="11" text="bind:rate20yn"/>
  147. </Band>
  148. </Format>
  149. </Formats>
  150. </Grid>
  151. <Shape id="line3" class="line_10" position="absolute 880 92 1195 103" anchor="left top right"/>
  152. <Static id="caption1" text="세부내역 :" class="tit_2" position="absolute 880 78 1001 100"/>
  153. <Button id="button4" taborder="6" text="엑셀저장" class="btn7" position="absolute 785 75 865 94" onclick="button4_onclick"/>
  154. <Button id="button5" taborder="7" text="엑셀저장" class="btn7" position="absolute 350 75 430 94" onclick="button5_onclick"/>
  155. <Static id="caption3" text="병동별 퇴원예고율" class="tit_2" position="absolute 435 78 618 99"/>
  156. <Shape id="line4" class="line_10" position="absolute 435 92 865 103"/>
  157. <Static id="caption4" text="15시이전" position="absolute 902 762 958 782" anchor="right bottom"/>
  158. <Shape id="rectangle2" type="rectangle" position="absolute 975 764 990 779" style="strokepen:1 solid black;fillbrush:solid #ffe79dff true;background:#ffe79dff;" anchor="right bottom"/>
  159. <Static id="caption5" text="20시이전" position="absolute 994 762 1050 782" anchor="right bottom"/>
  160. <Static id="caption7" text="-" position="absolute 964 75 1124 95" style="color:#0000ffff;font:Dotum,9,bold;"/>
  161. <Button id="button2" taborder="8" text="초기화" onclick="button2_onclick" class="btn4" position="absolute 1126 761 1194 783" anchor="right bottom"/>
  162. <Shape id="rectangle1" position="absolute 880 764 895 779" type="rectangle" style="strokepen:1 solid black;fillbrush:solid #e5f3c2ff true;background:#e5f3c2ff;" anchor="right bottom"/>
  163. </Layout>
  164. </Layouts>
  165. <Objects>
  166. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  167. <ColumnInfo>
  168. <Column id="fromdd" type="STRING" size="256"/>
  169. <Column id="todd" type="STRING" size="256"/>
  170. <Column id="srchflag" type="STRING" size="256"/>
  171. <Column id="deptcd" type="STRING" size="256"/>
  172. <Column id="todaydschflag" type="STRING" size="256"/>
  173. </ColumnInfo>
  174. <Rows>
  175. <Row>
  176. <Col id="fromdd"/>
  177. <Col id="todd"/>
  178. <Col id="srchflag"/>
  179. <Col id="deptcd"/>
  180. <Col id="todaydschflag">Y</Col>
  181. </Row>
  182. </Rows>
  183. </Dataset>
  184. <Dataset id="ds_main_dschrate_dschratedeptlist_dschratedept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  185. <ColumnInfo>
  186. <Column id="deptcd" type="STRING" size="256" sumtext="부서(진료과)코드"/>
  187. <Column id="deptnm" type="STRING" size="256" sumtext="부서(진료과)명칭"/>
  188. <Column id="rate15cnt" type="STRING" size="256" sumtext="15시이전환자수"/>
  189. <Column id="rate20cnt" type="STRING" size="256" sumtext="20시이전환자수"/>
  190. <Column id="totcnt" type="STRING" size="256" sumtext="총퇴원환자수"/>
  191. <Column id="rate15" type="STRING" size="256" sumtext="15시이전퇴원예고율"/>
  192. <Column id="rate20" type="STRING" size="256" sumtext="20시이전퇴원예고율"/>
  193. </ColumnInfo>
  194. </Dataset>
  195. <Dataset id="ds_main_dschrate_dschratewardlist_dschrateward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  196. <ColumnInfo>
  197. <Column id="deptcd" type="STRING" size="256" sumtext="부서(병동)코드"/>
  198. <Column id="deptnm" type="STRING" size="256" sumtext="부서(병동)명칭"/>
  199. <Column id="rate15cnt" type="STRING" size="256" sumtext="15시이전환자수"/>
  200. <Column id="rate20cnt" type="STRING" size="256" sumtext="20시이전환자수"/>
  201. <Column id="totcnt" type="STRING" size="256" sumtext="총퇴원환자수"/>
  202. <Column id="rate15" type="STRING" size="256" sumtext="15시이전퇴원예고율"/>
  203. <Column id="rate20" type="STRING" size="256" sumtext="20시이전퇴원예고율"/>
  204. </ColumnInfo>
  205. </Dataset>
  206. <Dataset id="ds_main_dschspeclist_dschspec" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  207. <ColumnInfo>
  208. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  209. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  210. <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
  211. <Column id="dschdd" type="STRING" size="256" sumtext="퇴원일자"/>
  212. <Column id="dschtm" type="STRING" size="256" sumtext="퇴원시간"/>
  213. <Column id="dschdclrdt" type="STRING" size="256" sumtext="퇴원예고일"/>
  214. <Column id="dschdclrtrgstdt" type="STRING" size="256" sumtext="퇴원예고등록일"/>
  215. <Column id="dschdclrtrgstnm" type="STRING" size="256" sumtext="퇴원예고자"/>
  216. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  217. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
  218. <Column id="medispclid" type="STRING" size="256" sumtext="전문의"/>
  219. <Column id="medispclnm" type="STRING" size="256" sumtext="전문의명"/>
  220. <Column id="wardcd" type="STRING" size="256" sumtext="병동"/>
  221. <Column id="wardnm" type="STRING" size="256" sumtext="병동"/>
  222. <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
  223. <Column id="bednm" type="STRING" size="256" sumtext="병상명"/>
  224. <Column id="rate15yn" type="STRING" size="256" sumtext="15이시전여부"/>
  225. <Column id="rate20yn" type="STRING" size="256" sumtext="20이시전여부"/>
  226. </ColumnInfo>
  227. </Dataset>
  228. </Objects>
  229. <Bind>
  230. <BindItem id="item0" compid="group2.ipt_infromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  231. <BindItem id="item1" compid="group2.ipt_intodd" propid="value" datasetid="ds_send" columnid="todd"/>
  232. <BindItem id="item2" compid="group2.checkbox1" propid="value" datasetid="ds_send" columnid="todaydschflag"/>
  233. </Bind>
  234. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  235. * System Name :
  236. * Job Name :
  237. * Creator :
  238. * Make Date : 2015-11-13
  239. * Description :
  240. *---------------------------------------------------------------------------------------
  241. * Modify Date Modifier Modify Description
  242. *---------------------------------------------------------------------------------------
  243. * 2015-11-13 Live Converter TF->XP
  244. *
  245. *---------------------------------------------------------------------------------------
  246. ****************************************************************************************/
  247. include "com_commonxp::comm_main.xjs";
  248. function SMPMI06500_oninit(obj:Form, e:InitEventInfo)
  249. {
  250. frmf_initForm(obj);
  251. }
  252. function SMPMI06500_onload(obj:Form, e:LoadEventInfo)
  253. {
  254. grdf_initGrid(grd_dschspec);
  255. grdf_initGrid(grd_ratedept);
  256. grdf_initGrid(grd_rateward);
  257. fInitialize();
  258. }
  259. /****************************************************************************************
  260. * Function : fInitialize
  261. * Description : 초기화
  262. ****************************************************************************************/
  263. function fInitialize()
  264. {
  265. ds_main_dschrate_dschratedeptlist_dschratedept.clearData();
  266. ds_main_dschrate_dschratewardlist_dschrateward.clearData();
  267. ds_main_dschspeclist_dschspec.clearData();
  268. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
  269. ds_send.setColumn(0, "todd", utlf_getCurrentDate());
  270. caption7.text = "-";
  271. ds_send.setColumn(0, "todaydschflag", "Y");
  272. }
  273. /****************************************************************************************
  274. * Function : onclick
  275. * Description : 입원당일퇴원 제외 checkbox
  276. ****************************************************************************************/
  277. function group2_checkbox1_onclick(obj:CheckBox, e:ClickEventInfo)
  278. {
  279. if(obj.value == "Y"){}
  280. else
  281. {
  282. ds_send.setColumn(0, "todaydschflag", "");
  283. }
  284. }
  285. /****************************************************************************************
  286. * Function : onclick
  287. * Description : 조회 button
  288. ****************************************************************************************/
  289. function group2_button1_onclick(obj:Button, e:ClickEventInfo)
  290. {
  291. fGetDschRateList();
  292. }
  293. /****************************************************************************************
  294. * Function : fGetDschRateList
  295. * Description : 조회
  296. ****************************************************************************************/
  297. function fGetDschRateList()
  298. {
  299. var fromdd = ds_send.getColumn(0, "fromdd");
  300. var todd = ds_send.getColumn(0, "todd");
  301. if (utlf_isNull(fromdd) || utlf_isNull(todd))
  302. {
  303. sysf_messageBox("시작일자 및 종료일자는 반드시 입력하십시오.", "E");
  304. return;
  305. }
  306. var minusrslt = utlf_getDateInterval(fromdd,todd);
  307. if (minusrslt > 31)
  308. {
  309. sysf_messageBox("최대 31일까지 조회가능합니다.", "E");
  310. return;
  311. }
  312. var oParam = {};
  313. oParam.id = "TRPMI06501";
  314. oParam.service = "ipatmngtapp.IPatRef";
  315. oParam.method = "reqGetDschRateList";
  316. oParam.inds = "req=ds_send";
  317. oParam.outds = "ds_main_dschrate_dschratedeptlist_dschratedept=dschratedept ds_main_dschrate_dschratewardlist_dschrateward=dschrateward";
  318. oParam.async = false;
  319. //oParam.callback = "cf_TRPMI06501";
  320. tranf_submit(oParam);
  321. // 1.0 합계 background 색상 동일하게 하기 위하여 그리드 내 expr로 값 지정함. 2019-04-12 이아영
  322. // grdf_setRowStyle(grd_ratedept, "1" , "합계" , "deptnm" , "equal" );
  323. // grdf_setRowStyle(grd_rateward, "1" , "합계" , "deptnm" , "equal" );
  324. }
  325. /****************************************************************************************
  326. * Function : oncelldblclick
  327. * Description : 그리드 더블 클릭 이벤트
  328. ****************************************************************************************/
  329. function grd_ratedept_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  330. {
  331. var sRow = ds_main_dschrate_dschratedeptlist_dschratedept.rowposition;
  332. // 첫행과 마지막행 제외
  333. if (sRow >= 0 && sRow != ds_main_dschrate_dschratedeptlist_dschratedept.rowcount-1)
  334. {
  335. var deptcd = ds_main_dschrate_dschratedeptlist_dschratedept.getColumn(sRow, "deptcd");
  336. var deptnm = ds_main_dschrate_dschratedeptlist_dschratedept.getColumn(sRow, "deptnm");
  337. fGetDschSpecList("D", deptcd, deptnm);
  338. }
  339. }
  340. /****************************************************************************************
  341. * Function : fGetDschSpecList
  342. * Description :
  343. ****************************************************************************************/
  344. function fGetDschSpecList(srchflag, deptcd, deptnm)
  345. {
  346. caption7.text = deptnm;
  347. ds_send.setColumn(0, "srchflag", srchflag);
  348. ds_send.setColumn(0, "deptcd", deptcd);
  349. var oParam = {};
  350. oParam.id = "TRPMI06502";
  351. oParam.service = "ipatmngtapp.IPatRef";
  352. oParam.method = "reqGetDschSpecList";
  353. oParam.inds = "req=ds_send";
  354. oParam.outds = "ds_main_dschspeclist_dschspec=dschspec";
  355. oParam.async = false;
  356. //oParam.callback = "cf_TRPMI06502";
  357. tranf_submit(oParam);
  358. // 1.0 background 색상 동일하게 하기 위하여 그리드 내 expr로 값 지정함. 2019-04-12 이아영
  359. // grdf_setRowStyle(grd_dschspec, "11", "Y" , "rate15yn" , "equal" ); //e5f3c2
  360. // grdf_setRowStyle(grd_dschspec, "1", "Y" , "rate20yn" , "equal" ); //ffe79d
  361. }
  362. /****************************************************************************************
  363. * Function : oncelldblclick
  364. * Description : 그리드 더블 클릭 이벤트
  365. ****************************************************************************************/
  366. function grd_rateward_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  367. {
  368. var sRow = ds_main_dschrate_dschratewardlist_dschrateward.rowposition;
  369. // 첫행과 마지막행 제외
  370. if (sRow >= 0 && sRow != ds_main_dschrate_dschratewardlist_dschrateward.rowcount-1)
  371. {
  372. var deptcd = ds_main_dschrate_dschratewardlist_dschrateward.getColumn(sRow, "deptcd");
  373. var deptnm = ds_main_dschrate_dschratewardlist_dschrateward.getColumn(sRow, "deptnm");
  374. fGetDschSpecList("W", deptcd, deptnm);
  375. }
  376. }
  377. /****************************************************************************************
  378. * Function : onclick
  379. * Description : 초기화 button 이벤트
  380. ****************************************************************************************/
  381. function button2_onclick(obj:Button, e:ClickEventInfo)
  382. {
  383. fInitialize();
  384. }
  385. /****************************************************************************************
  386. * Function : onclick
  387. * Description : 진료과별 퇴원예고율 엑셀저장 button 이벤트
  388. ****************************************************************************************/
  389. function button5_onclick(obj:Button, e:ClickEventInfo)
  390. {
  391. grdf_exportExcel(grd_ratedept, "진료과별 퇴원예고율_" + utlf_getCurrentDate(), "SheetName", "true", "", "");
  392. }
  393. /****************************************************************************************
  394. * Function : onclick
  395. * Description : 병동별 퇴원예고율 엑셀저장 button 이벤트
  396. ****************************************************************************************/
  397. function button4_onclick(obj:Button, e:ClickEventInfo)
  398. {
  399. grdf_exportExcel(grd_rateward, "병동별 퇴원예고율_" + utlf_getCurrentDate(), "SheetName", "true", "", "");
  400. }
  401. /****************************************************************************************
  402. * Function : onclick
  403. * Description : 세부내역 엑셀저장 button 이벤트
  404. ****************************************************************************************/
  405. function button3_onclick(obj:Button, e:ClickEventInfo)
  406. {
  407. grdf_exportExcel(grd_dschspec, "퇴원환자 세부내역_" + utlf_getCurrentDate(), "SheetName", "true", "", "");
  408. }
  409. ]]></Script>
  410. </Form>
  411. </FDL>