SMAES01100_재활의학팀치료건수.xfdl 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAES01100" position="absolute 0 0 1196 760" titletext="재활의학팀치료건수" onload="SMAES01100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 15 1195 759" id="grp_biz" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Button position="absolute 1130 45 1194 64" id="btn_excsave" class="btn2" visible="false" text="엑셀저장" anchor="default"/>
  11. <Div position="absolute 0 10 1195 70" align="align:center top;" id="grp_sea" class="div_SA" anchor="left top right">
  12. <Layouts>
  13. <Layout>
  14. <Static text="조회기간 :" position="absolute 15 11 101 28" id="caption2" class="search_name" anchor="default"/>
  15. <Shape position="absolute 1115 8 1121 53" linetype="vertical" id="line13" class="line_4" anchor="top right"/>
  16. <Button position="absolute 1128 20 1184 42" id="btn_sea" class="btn1" taborder="4" text="조회" anchor="top right" onclick="grp_biz_grp_sea_btn_sea_onclick"/>
  17. <Calendar position="absolute 227 9 327 28" align="align:center middle;" id="ipt_todd" class="input_default" taborder="2" anchor="default" dateformat="yyyy-MM-dd" onchanged="grp_biz_grp_sea_ipt_todd_onchanged"/>
  18. <Static text="~" position="absolute 212 10 224 27" id="caption5" class="search_no_b" anchor="default"/>
  19. <Calendar position="absolute 109 9 209 28" align="align:center middle;" id="ipt_fromdd" class="input_default" taborder="1" anchor="default" dateformat="yyyy-MM-dd" value="null" onchanged="grp_biz_grp_sea_ipt_fromdd_onchanged"/>
  20. <Static text="비교기간 :" position="absolute 15 35 101 52" id="caption3" class="search_name" anchor="default"/>
  21. <Calendar position="absolute 227 33 327 52" align="align:center middle;" id="input1" class="input_default" taborder="2" anchor="default" dateformat="yyyy-MM-dd" onchanged="grp_biz_grp_sea_input1_onchanged"/>
  22. <Static text="~" position="absolute 212 33 224 50" id="caption4" class="search_no_b" anchor="default"/>
  23. <Calendar position="absolute 109 33 209 52" align="align:center middle;" id="input2" class="input_default" taborder="1" anchor="default" dateformat="yyyy-MM-dd" onchanged="grp_biz_grp_sea_input2_onchanged"/>
  24. <Static text="처방과 :" position="absolute 340 11 426 28" id="caption7" class="search_name" anchor="default"/>
  25. <Static text="치료실 :" position="absolute 550 11 636 28" id="caption8" class="search_name" anchor="default"/>
  26. <Static text="치료사 :" position="absolute 340 35 426 52" id="caption9" class="search_name" anchor="default"/>
  27. <Static text="처방코드 :" position="absolute 550 35 636 52" id="caption10" class="search_name" anchor="default"/>
  28. <Combo position="absolute 420 9 535 28" id="cmb_orddept" innerdataset="@ds_inti_orddeptcd" datacolumn="nm" codecolumn="cd" anchor="default"/>
  29. <Combo position="absolute 420 33 535 52" id="cmb_execdrid" innerdataset="@ds_inti_execdrid" datacolumn="nm" codecolumn="cd" anchor="default"/>
  30. <Combo position="absolute 639 9 754 28" id="cmb_curerm" innerdataset="@ds_inti_curerm" datacolumn="nm" codecolumn="cd" anchor="default" onitemchanged="grp_biz_grp_sea_cmb_curerm_onitemchanged"/>
  31. <Combo position="absolute 639 33 869 52" id="cmb_prcpcd" innerdataset="@ds_inti_prcpcd" datacolumn="nm" codecolumn="cd" anchor="default"/>
  32. <Static text="구분 :" position="absolute 885 11 971 28" id="caption11" class="search_name" anchor="default"/>
  33. <Radio position="absolute 950 9 1090 29" id="radio1" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  34. <Dataset id="innerdataset">
  35. <ColumnInfo>
  36. <Column id="codecolumn"/>
  37. <Column id="datacolumn"/>
  38. </ColumnInfo>
  39. <Rows>
  40. <Row>
  41. <Col id="codecolumn">
  42. </Col>
  43. <Col id="datacolumn">전체</Col>
  44. </Row>
  45. <Row>
  46. <Col id="codecolumn">F</Col>
  47. <Col id="datacolumn">초환</Col>
  48. </Row>
  49. <Row>
  50. <Col id="codecolumn">R</Col>
  51. <Col id="datacolumn">재환</Col>
  52. </Row>
  53. </Rows>
  54. </Dataset>
  55. </Radio>
  56. <Radio position="absolute 950 35 1070 55" id="radio2" visible="false" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  57. <Dataset id="innerdataset">
  58. <ColumnInfo>
  59. <Column id="codecolumn"/>
  60. <Column id="datacolumn"/>
  61. </ColumnInfo>
  62. <Rows>
  63. <Row>
  64. <Col id="codecolumn">T</Col>
  65. <Col id="datacolumn">검사수</Col>
  66. </Row>
  67. <Row>
  68. <Col id="codecolumn">P</Col>
  69. <Col id="datacolumn">환자수</Col>
  70. </Row>
  71. </Rows>
  72. </Dataset>
  73. </Radio>
  74. <Static text="구분 :" position="absolute 885 36 945 53" id="caption12" class="search_name" visible="false" anchor="default"/>
  75. </Layout>
  76. </Layouts>
  77. </Div>
  78. <Tab position="absolute 0 76 1195 744" id="switch1" anchor="all">
  79. <Tabpages>
  80. <Tabpage text="치료실" id="case1">
  81. <Layouts>
  82. <Layout>
  83. <Grid position="absolute 0 0 1195 640" id="datagrid1" binddataset="ds_main_list_item" anchor="all" selecttype="multirow">
  84. <Formats>
  85. <Format id="default">
  86. <Columns>
  87. <Column size="166"/>
  88. <Column size="84"/>
  89. <Column size="84"/>
  90. <Column size="84"/>
  91. <Column size="84"/>
  92. <Column size="84"/>
  93. <Column size="84"/>
  94. <Column size="84"/>
  95. <Column size="84"/>
  96. <Column size="84"/>
  97. <Column size="0"/>
  98. <Column size="84"/>
  99. <Column size="84"/>
  100. <Column size="84"/>
  101. </Columns>
  102. <Rows>
  103. <Row size="24" band="head"/>
  104. <Row size="24" band="head"/>
  105. <Row size="24"/>
  106. <Row size="24" band="summ"/>
  107. </Rows>
  108. <Band id="head">
  109. <Cell rowspan="2" text="치료실" taborder="undefined"/>
  110. <Cell col="1" colspan="3" text="치료건수" taborder="undefined"/>
  111. <Cell col="4" colspan="3" text="비교기간건수" taborder="undefined"/>
  112. <Cell col="7" colspan="3" text="증감" taborder="undefined"/>
  113. <Cell col="10" text="caption1"/>
  114. <Cell col="11" colspan="3" text="증감율" taborder="undefined"/>
  115. <Cell row="1" col="1" text="입원"/>
  116. <Cell row="1" col="2" text="외래"/>
  117. <Cell row="1" col="3" text="합계"/>
  118. <Cell row="1" col="4" text="입원"/>
  119. <Cell row="1" col="5" text="외래"/>
  120. <Cell row="1" col="6" text="합계"/>
  121. <Cell row="1" col="7" text="입원"/>
  122. <Cell row="1" col="8" text="외래"/>
  123. <Cell row="1" col="9" text="합계"/>
  124. <Cell row="1" col="10" text="caption1"/>
  125. <Cell row="1" col="11" text="입원"/>
  126. <Cell row="1" col="12" text="외래"/>
  127. <Cell row="1" col="13" text="합계"/>
  128. </Band>
  129. <Band id="body">
  130. <Cell displaytype="text" text="bind:curerm"/>
  131. <Cell col="1" displaytype="number" text="bind:intestexeccnt"/>
  132. <Cell col="2" displaytype="number" text="bind:outtestexeccnt"/>
  133. <Cell col="3" displaytype="number" text="bind:sumcnt"/>
  134. <Cell col="4" displaytype="number" text="bind:intotexeccnt"/>
  135. <Cell col="5" displaytype="number" text="bind:outtotexeccnt"/>
  136. <Cell col="6" displaytype="number" text="bind:totexeccnt"/>
  137. <Cell col="7" displaytype="number" text="bind:intotrsrvcnt"/>
  138. <Cell col="8" displaytype="number" text="bind:outtotrsrvcnt"/>
  139. <Cell col="9" displaytype="number" text="bind:totrsrvcnt"/>
  140. <Cell col="10" displaytype="number" text="bind:sumtest"/>
  141. <Cell col="11" displaytype="number" text="bind:incomparerate" mask="##0%"/>
  142. <Cell col="12" displaytype="number" text="bind:outcomparerate" mask="##0%"/>
  143. <Cell col="13" displaytype="number" text="bind:comparerate" mask="##0%"/>
  144. </Band>
  145. <Band id="summary">
  146. <Cell text="합계"/>
  147. <Cell col="1" displaytype="number" text="expr:lf_setSum('intestexeccnt')"/>
  148. <Cell col="2" displaytype="number" text="expr:lf_setSum('outtestexeccnt')"/>
  149. <Cell col="3" displaytype="number" text="expr:lf_setSum('sumcnt')"/>
  150. <Cell col="4" displaytype="number" text="expr:lf_setSum('intotexeccnt')"/>
  151. <Cell col="5" displaytype="number" text="expr:lf_setSum('outtotexeccnt')"/>
  152. <Cell col="6" displaytype="number" text="expr:lf_setSum('totexeccnt')"/>
  153. <Cell col="7" displaytype="number" text="expr:lf_setSum('intotrsrvcnt')"/>
  154. <Cell col="8" displaytype="number" text="expr:lf_setSum('outtotrsrvcnt')"/>
  155. <Cell col="9" displaytype="number" text="expr:lf_setSum('totrsrvcnt')"/>
  156. <Cell col="10" displaytype="number" text="expr:lf_setSum('sumtest')"/>
  157. <Cell col="11" displaytype="number" style="align:right middle;" text="expr:lf_setSum('incomparerate')" mask="##0%"/>
  158. <Cell col="12" displaytype="number" style="align:right middle;" text="expr:lf_setSum('outcomparerate')" mask="##0%"/>
  159. <Cell col="13" displaytype="number" style="align:right middle;" text="expr:lf_setSum('comparerate')" mask="##0%"/>
  160. </Band>
  161. </Format>
  162. </Formats>
  163. </Grid>
  164. </Layout>
  165. </Layouts>
  166. </Tabpage>
  167. <Tabpage text="처방코드" id="case2">
  168. <Layouts>
  169. <Layout>
  170. <Grid id="datagrid2" taborder="0" binddataset="ds_main_list1_item" useinputpanel="false" position="absolute 0 0 1195 640" selecttype="multirow" anchor="all">
  171. <Formats>
  172. <Format id="default">
  173. <Columns>
  174. <Column size="166"/>
  175. <Column size="84"/>
  176. <Column size="84"/>
  177. <Column size="84"/>
  178. <Column size="84"/>
  179. <Column size="84"/>
  180. <Column size="84"/>
  181. <Column size="84"/>
  182. <Column size="84"/>
  183. <Column size="84"/>
  184. <Column size="0"/>
  185. <Column size="84"/>
  186. <Column size="84"/>
  187. <Column size="84"/>
  188. </Columns>
  189. <Rows>
  190. <Row size="24" band="head"/>
  191. <Row size="24" band="head"/>
  192. <Row size="24"/>
  193. <Row size="24" band="summ"/>
  194. </Rows>
  195. <Band id="head">
  196. <Cell rowspan="2" text="치료실" taborder="undefined"/>
  197. <Cell col="1" colspan="3" text="치료건수" taborder="undefined"/>
  198. <Cell col="4" colspan="3" text="비교기간건수" taborder="undefined"/>
  199. <Cell col="7" colspan="3" text="증감" taborder="undefined"/>
  200. <Cell col="10" text="caption1"/>
  201. <Cell col="11" colspan="3" text="증감율" taborder="undefined"/>
  202. <Cell row="1" col="1" text="입원"/>
  203. <Cell row="1" col="2" text="외래"/>
  204. <Cell row="1" col="3" text="합계"/>
  205. <Cell row="1" col="4" text="입원"/>
  206. <Cell row="1" col="5" text="외래"/>
  207. <Cell row="1" col="6" text="합계"/>
  208. <Cell row="1" col="7" text="입원"/>
  209. <Cell row="1" col="8" text="외래"/>
  210. <Cell row="1" col="9" text="합계"/>
  211. <Cell row="1" col="10" text="caption1"/>
  212. <Cell row="1" col="11" text="입원"/>
  213. <Cell row="1" col="12" text="외래"/>
  214. <Cell row="1" col="13" text="합계"/>
  215. </Band>
  216. <Band id="body">
  217. <Cell displaytype="text" text="bind:curerm"/>
  218. <Cell col="1" displaytype="number" text="bind:intestexeccnt"/>
  219. <Cell col="2" displaytype="number" text="bind:outtestexeccnt"/>
  220. <Cell col="3" displaytype="number" text="bind:sumcnt"/>
  221. <Cell col="4" displaytype="number" text="bind:intotexeccnt"/>
  222. <Cell col="5" displaytype="number" text="bind:outtotexeccnt"/>
  223. <Cell col="6" displaytype="number" text="bind:totexeccnt"/>
  224. <Cell col="7" displaytype="number" text="bind:intotrsrvcnt"/>
  225. <Cell col="8" displaytype="number" text="bind:outtotrsrvcnt"/>
  226. <Cell col="9" displaytype="number" text="bind:totrsrvcnt"/>
  227. <Cell col="10" displaytype="number" text="bind:sumtest"/>
  228. <Cell col="11" displaytype="number" text="bind:incomparerate" mask="##0%"/>
  229. <Cell col="12" displaytype="number" text="bind:outcomparerate" mask="##0%"/>
  230. <Cell col="13" displaytype="number" text="bind:comparerate" mask="##0%"/>
  231. </Band>
  232. <Band id="summary">
  233. <Cell text="합계"/>
  234. <Cell col="1" displaytype="number" text="expr:lf_setSum('intestexeccnt')"/>
  235. <Cell col="2" displaytype="number" text="expr:lf_setSum('outtestexeccnt')"/>
  236. <Cell col="3" displaytype="number" text="expr:lf_setSum('sumcnt')"/>
  237. <Cell col="4" displaytype="number" text="expr:lf_setSum('intotexeccnt')"/>
  238. <Cell col="5" displaytype="number" text="expr:lf_setSum('outtotexeccnt')"/>
  239. <Cell col="6" displaytype="number" text="expr:lf_setSum('totexeccnt')"/>
  240. <Cell col="7" displaytype="number" text="expr:lf_setSum('intotrsrvcnt')"/>
  241. <Cell col="8" displaytype="number" text="expr:lf_setSum('outtotrsrvcnt')"/>
  242. <Cell col="9" displaytype="number" text="expr:lf_setSum('totrsrvcnt')"/>
  243. <Cell col="10" displaytype="number" text="expr:lf_setSum('sumtest')"/>
  244. <Cell col="11" displaytype="number" style="align:right middle;" text="expr:lf_setSum('incomparerate')" mask="##0%"/>
  245. <Cell col="12" displaytype="number" style="align:right middle;" text="expr:lf_setSum('outcomparerate')" mask="##0%"/>
  246. <Cell col="13" displaytype="number" style="align:right middle;" text="expr:lf_setSum('comparerate')" mask="##0%"/>
  247. </Band>
  248. </Format>
  249. </Formats>
  250. </Grid>
  251. </Layout>
  252. </Layouts>
  253. </Tabpage>
  254. </Tabpages>
  255. </Tab>
  256. <Static text="재활의학팀치료건수" position="absolute 130 80 330 101" id="caption1" class="tit_2" anchor="default"/>
  257. <Button position="absolute 1115 76 1195 98" id="button1" class="btn7" text="엑셀저장" anchor="top right" onclick="grp_biz_button1_onclick"/>
  258. </Layout>
  259. </Layouts>
  260. </Div>
  261. <Static id="caption6" text="재활의학팀치료건수" class="tit_1" position="absolute 0 0 160 25"/>
  262. </Layout>
  263. </Layouts>
  264. <Objects>
  265. <Dataset id="ds_main_list_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  266. <ColumnInfo>
  267. <Column id="curerm" type="STRING" size="256"/>
  268. <Column id="intestexeccnt" type="STRING" size="256"/>
  269. <Column id="outtestexeccnt" type="STRING" size="256"/>
  270. <Column id="sumcnt" type="STRING" size="256"/>
  271. <Column id="totexeccnt" type="STRING" size="256"/>
  272. <Column id="totrsrvcnt" type="STRING" size="256"/>
  273. <Column id="comparerate" type="STRING" size="256"/>
  274. </ColumnInfo>
  275. <Rows>
  276. <Row>
  277. <Col id="curerm"/>
  278. <Col id="intestexeccnt"/>
  279. <Col id="outtestexeccnt"/>
  280. <Col id="sumcnt"/>
  281. <Col id="totexeccnt"/>
  282. <Col id="totrsrvcnt"/>
  283. <Col id="comparerate"/>
  284. </Row>
  285. </Rows>
  286. </Dataset>
  287. <Dataset id="ds_main_list1_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  288. <ColumnInfo>
  289. <Column id="curerm" type="STRING" size="256"/>
  290. <Column id="intestexeccnt" type="STRING" size="256"/>
  291. <Column id="outtestexeccnt" type="STRING" size="256"/>
  292. <Column id="sumcnt" type="STRING" size="256"/>
  293. <Column id="totexeccnt" type="STRING" size="256"/>
  294. <Column id="totrsrvcnt" type="STRING" size="256"/>
  295. <Column id="comparerate" type="STRING" size="256"/>
  296. </ColumnInfo>
  297. <Rows>
  298. <Row>
  299. <Col id="curerm"/>
  300. <Col id="intestexeccnt"/>
  301. <Col id="outtestexeccnt"/>
  302. <Col id="sumcnt"/>
  303. <Col id="totexeccnt"/>
  304. <Col id="totrsrvcnt"/>
  305. <Col id="comparerate"/>
  306. </Row>
  307. </Rows>
  308. </Dataset>
  309. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  310. <ColumnInfo>
  311. <Column id="srchdate" type="STRING" size="256"/>
  312. <Column id="suppdeptcd" type="STRING" size="256"/>
  313. <Column id="execfromdd" type="STRING" size="256"/>
  314. <Column id="exectodd" type="STRING" size="256"/>
  315. <Column id="comparefromdd" type="STRING" size="256"/>
  316. <Column id="comparetodd" type="STRING" size="256"/>
  317. <Column id="orddeptcd" type="STRING" size="256"/>
  318. <Column id="fstpatyn" type="STRING" size="256"/>
  319. <Column id="curerm" type="STRING" size="256"/>
  320. <Column id="curedr" type="STRING" size="256"/>
  321. <Column id="prcpcd" type="STRING" size="256"/>
  322. <Column id="execdrid" type="STRING" size="256"/>
  323. <Column id="srchflag" type="STRING" size="256"/>
  324. <Column id="srchtab" type="STRING" size="256"/>
  325. </ColumnInfo>
  326. <Rows>
  327. <Row>
  328. <Col id="srchdate"/>
  329. <Col id="suppdeptcd"/>
  330. <Col id="execfromdd"/>
  331. <Col id="exectodd"/>
  332. <Col id="comparefromdd"/>
  333. <Col id="comparetodd"/>
  334. <Col id="orddeptcd"/>
  335. <Col id="fstpatyn"/>
  336. <Col id="curerm"/>
  337. <Col id="curedr"/>
  338. <Col id="prcpcd"/>
  339. <Col id="execdrid"/>
  340. <Col id="srchflag">T</Col>
  341. <Col id="srchtab"/>
  342. </Row>
  343. </Rows>
  344. </Dataset>
  345. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  346. <Dataset id="ds_inti_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  347. <ColumnInfo>
  348. <Column id="cd" type="STRING" size="256"/>
  349. <Column id="nm" type="STRING" size="256"/>
  350. </ColumnInfo>
  351. </Dataset>
  352. <Dataset id="ds_inti_execdrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  353. <ColumnInfo>
  354. <Column id="cd" type="STRING" size="256"/>
  355. <Column id="nm" type="STRING" size="256"/>
  356. </ColumnInfo>
  357. </Dataset>
  358. <Dataset id="ds_inti_curerm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  359. <ColumnInfo>
  360. <Column id="cd" type="STRING" size="256"/>
  361. <Column id="nm" type="STRING" size="256"/>
  362. </ColumnInfo>
  363. </Dataset>
  364. <Dataset id="ds_inti_prcpcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  365. <ColumnInfo>
  366. <Column id="cd" type="STRING" size="256"/>
  367. <Column id="nm" type="STRING" size="256"/>
  368. </ColumnInfo>
  369. </Dataset>
  370. </Objects>
  371. <Bind>
  372. <BindItem id="item0" compid="grp_biz.grp_sea.ipt_todd" propid="value" datasetid="ds_send" columnid="exectodd"/>
  373. <BindItem id="item1" compid="grp_biz.grp_sea.ipt_fromdd" propid="value" datasetid="ds_send" columnid="execfromdd"/>
  374. <BindItem id="item2" compid="grp_biz.grp_sea.input1" propid="value" datasetid="ds_send" columnid="comparetodd"/>
  375. <BindItem id="item3" compid="grp_biz.grp_sea.input2" propid="value" datasetid="ds_send" columnid="comparefromdd"/>
  376. <BindItem id="item4" compid="grp_biz.grp_sea.cmb_orddept" propid="value" datasetid="ds_send" columnid="orddeptcd"/>
  377. <BindItem id="item5" compid="grp_biz.grp_sea.cmb_execdrid" propid="value" datasetid="ds_send" columnid="execdrid"/>
  378. <BindItem id="item6" compid="grp_biz.grp_sea.cmb_curerm" propid="value" datasetid="ds_send" columnid="curerm"/>
  379. <BindItem id="item7" compid="grp_biz.grp_sea.cmb_prcpcd" propid="value" datasetid="ds_send" columnid="prcpcd"/>
  380. <BindItem id="item8" compid="grp_biz.grp_sea.radio1" propid="value" datasetid="ds_send" columnid="fstpatyn"/>
  381. <BindItem id="item9" compid="grp_biz.grp_sea.radio2" propid="value" datasetid="ds_send" columnid="srchflag"/>
  382. </Bind>
  383. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  384. * System Name :
  385. * Job Name :
  386. * Creator :
  387. * Make Date : 2016-09-30
  388. * Description :
  389. *---------------------------------------------------------------------------------------
  390. * Modify Date Modifier Modify Description
  391. *---------------------------------------------------------------------------------------
  392. * 2016-09-30 Live Converter TF->XP
  393. *
  394. *---------------------------------------------------------------------------------------
  395. ****************************************************************************************/
  396. //=======================================================================================
  397. // Lib Include
  398. //---------------------------------------------------------------------------------------
  399. include "com_commonxp::comm_main.xjs";
  400. include "ast_examcurexp::AEZ0001.xjs";
  401. //=======================================================================================
  402. // Global Form Variable
  403. //---------------------------------------------------------------------------------------
  404. var arErrorCode = new HashArray();
  405. var gSuppdeptcd = "";
  406. //=======================================================================================
  407. // Function
  408. //---------------------------------------------------------------------------------------
  409. /****************************************************************************************
  410. * Argument : colNm - 대상컬럼
  411. * Description : expr사용 합계 함수
  412. ****************************************************************************************/
  413. function lf_setSum(colNm){
  414. var totsum = 0 ;
  415. if(colNm == "incomparerate") {
  416. var intestexeccnt = ds_main_list_item.getSum("intestexeccnt");
  417. var intotexeccnt = ds_main_list_item.getSum("intotexeccnt");
  418. totsum = ((intestexeccnt - intotexeccnt) / intotexeccnt * 100);
  419. totsum = totsum.toString().getRound(-1,"HALF_UP");
  420. } else if(colNm == "outcomparerate") {
  421. var outtestexeccnt = ds_main_list_item.getSum("outtestexeccnt");
  422. var outtotexeccnt = ds_main_list_item.getSum("outtotexeccnt");
  423. totsum = ((outtestexeccnt - outtotexeccnt) / outtotexeccnt * 100);
  424. totsum = totsum.toString().getRound(-1,"HALF_UP");
  425. } else if(colNm == "comparerate") {
  426. var sumprcp = ds_main_list_item.getSum("sumcnt");
  427. var totexeccnt = ds_main_list_item.getSum("totexeccnt");
  428. totsum = ((sumprcp - totexeccnt) / totexeccnt * 100);
  429. totsum = totsum.toString().getRound(-1,"HALF_UP");
  430. } else {
  431. totsum = ds_main_list_item.getSum(colNm);
  432. }
  433. return totsum;
  434. }
  435. /****************************************************************************************
  436. * Argument : colNm - 대상컬럼
  437. * Description : expr사용 합계 함수
  438. ****************************************************************************************/
  439. function lf_setSum1(colNm){
  440. var totsum = 0 ;
  441. if(colNm == "incomparerate") {
  442. var intestexeccnt = ds_main_list1_item.getSum("intestexeccnt");
  443. var intotexeccnt = ds_main_list1_item.getSum("intotexeccnt");
  444. totsum = ((intestexeccnt - intotexeccnt) / intotexeccnt * 100);
  445. totsum = totsum.toString().getRound(-1,"HALF_UP");
  446. } else if(colNm == "outcomparerate") {
  447. var outtestexeccnt = ds_main_list1_item.getSum("outtestexeccnt");
  448. var outtotexeccnt = ds_main_list1_item.getSum("outtotexeccnt");
  449. totsum = ((outtestexeccnt - outtotexeccnt) / outtotexeccnt * 100);
  450. totsum = totsum.toString().getRound(-1,"HALF_UP");
  451. } else if(colNm == "comparerate") {
  452. var sumprcp = ds_main_list1_item.getSum("sumcnt");
  453. var totexeccnt = ds_main_list1_item.getSum("totexeccnt");
  454. totsum = ((sumprcp - totexeccnt) / totexeccnt * 100);
  455. totsum = totsum.toString().getRound(-1,"HALF_UP");
  456. } else {
  457. totsum = ds_main_list1_item.getSum(colNm);
  458. }
  459. return totsum;
  460. }
  461. //=======================================================================================
  462. // Event
  463. //---------------------------------------------------------------------------------------
  464. /****************************************************************************************
  465. * Components : Form
  466. * Description : 화면 처음 초기화시 폼초기화
  467. ****************************************************************************************/
  468. function SMAES01100_onload(obj:Form, e:LoadEventInfo)
  469. {
  470. frmf_initForm(obj); // 폼 초기화
  471. lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
  472. gSuppdeptcd = frmf_getParameter("AST_DEPTCD");
  473. dsf_createDsRow("ds_req", [
  474. {col:"suppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
  475. , {col:"rbasecdflag", type:"STRING", size:256, val:"0"}
  476. ]);
  477. var oParam = {};
  478. oParam.id = "TRAES09000";
  479. oParam.service = "examcurestatsapp.RehbMediSc";
  480. oParam.method = "reqGetCode";
  481. oParam.inds = "req=ds_req";
  482. oParam.outds = "ds_inti_execdrid=execdrid ds_inti_curerm=curerm ds_inti_prcpcd=prcpcd ds_inti_orddeptcd=orddeptcd";
  483. oParam.async = false;
  484. oParam.callback = "cf_TRAES09000";
  485. tranf_submit(oParam);
  486. ds_send.setColumn( 0, "suppdeptcd", gSuppdeptcd);
  487. var fromdd = utlf_getCurrentDate().substr(0,4) + "0101"
  488. var todd = utlf_getLastDate(utlf_getCurrentDate());
  489. var comparefromdd = utlf_getCurrentDate().substr(0,6).toDate().getAddDate(0,"Y").getDateFormat("YYYY") + "0101";
  490. var comparetodd = comparefromdd.substr(0,4) + todd.substr(4,4);
  491. frmf_addComboItem("grp_biz.grp_sea.cmb_orddept","--전체--","","above");
  492. frmf_addComboItem("grp_biz.grp_sea.cmb_curerm","--전체--","","above");
  493. frmf_addComboItem("grp_biz.grp_sea.cmb_execdrid","--전체--","","above");
  494. frmf_addComboItem("grp_biz.grp_sea.cmb_prcpcd","--전체--","","above");
  495. grp_biz.grp_sea.cmb_curerm.index = 0;
  496. grp_biz.grp_sea.cmb_execdrid.index = 0;
  497. grp_biz.grp_sea.cmb_orddept.index = 0;
  498. grp_biz.grp_sea.cmb_prcpcd.index = 0;
  499. ds_main_list_item.clearData();
  500. ds_main_list1_item.clearData();
  501. ds_send.setColumn( 0, "fstpatyn","");
  502. ds_send.setColumn( 0, "execfromdd", fromdd);
  503. ds_send.setColumn( 0, "exectodd", todd);
  504. ds_send.setColumn( 0, "comparefromdd",comparefromdd);
  505. ds_send.setColumn( 0, "comparetodd",comparetodd);
  506. }
  507. function cf_TRAES09000(sSvcId, nErrorCode, sErrorMsg) {
  508. if(nErrorCode < 0) return;
  509. ds_inti_execdrid.updateColID("basecd","cd");
  510. ds_inti_execdrid.updateColID("basecdflagdesc","nm");
  511. ds_inti_curerm.updateColID("basecd","cd");
  512. ds_inti_curerm.updateColID("basecdflagdesc","nm");
  513. ds_inti_prcpcd.updateColID("basecd","cd");
  514. ds_inti_prcpcd.updateColID("basecdflagdesc","nm");
  515. }
  516. function grp_biz_grp_sea_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  517. {
  518. var execfromdd = ds_send.getColumn(0, "execfromdd");
  519. var exectodd = ds_send.getColumn(0, "exectodd");
  520. if (execfromdd > exectodd) {
  521. sysf_messageBox("조회기간 시작일자가 조회기간 종료일자 이후 일자입니다.", "I");
  522. ds_send.setColumn( 0, "execfromdd",exectodd);
  523. // execfromdd = exectodd;
  524. }
  525. }
  526. function grp_biz_grp_sea_ipt_todd_onchanged(obj:Calendar, e:ChangeEventInfo)
  527. {
  528. var exectodd = ds_send.getColumn(0, "exectodd");
  529. var execfromdd = ds_send.getColumn(0, "execfromdd");
  530. if (execfromdd > exectodd) {
  531. sysf_messageBox("조회기간 종료일자가 조회기간 시작일자 이전 일자입니다.", "I");
  532. ds_send.setColumn( 0, "exectodd",execfromdd);
  533. // exectodd = execfromdd;
  534. }
  535. }
  536. function grp_biz_grp_sea_input2_onchanged(obj:Calendar, e:ChangeEventInfo)
  537. {
  538. var comparefromdd = ds_send.getColumn(0, "comparefromdd");
  539. var comparetodd = ds_send.getColumn(0, "comparetodd");
  540. if (comparefromdd > comparetodd) {
  541. sysf_messageBox("비교조회기간 시작일자가 비교조회기간 종료일자 이후 일자입니다.", "I");
  542. ds_send.setColumn( 0, "comparefromdd",comparetodd);
  543. // comparefromdd = comparetodd;
  544. }
  545. }
  546. function grp_biz_grp_sea_input1_onchanged(obj:Calendar, e:ChangeEventInfo)
  547. {
  548. var comparefromdd = ds_send.getColumn(0, "comparefromdd");
  549. var comparetodd = ds_send.getColumn(0, "comparetodd");
  550. if (comparefromdd > comparetodd) {
  551. sysf_messageBox("비교조회기간 종료일자가 비교조회기간 시작일자 이전 일자입니다.", "I");
  552. ds_send.setColumn( 0, "comparetodd",comparefromdd);
  553. // comparetodd = comparefromdd;
  554. }
  555. }
  556. function grp_biz_grp_sea_cmb_curerm_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  557. {
  558. ds_inti_prcpcd.clearData();
  559. dsf_createDsRow("ds_req", [
  560. {col:"suppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
  561. , {col:"rbasecdflag", type:"STRING", size:256, val:"0"}
  562. , {col:"curerm", type:"STRING", size:256, val:e.postvalue}
  563. ]);
  564. var oParam = {};
  565. oParam.id = "TRAES09002";
  566. oParam.service = "examcurestatsapp.RehbMediSc";
  567. oParam.method = "reqGetCode";
  568. oParam.inds = "req=ds_req";
  569. oParam.outds = "ds_inti_prcpcd=prcpcd";
  570. oParam.async = false;
  571. oParam.callback = "cf_TRAES09002";
  572. tranf_submit(oParam);
  573. frmf_addComboItem("grp_biz.grp_sea.cmb_prcpcd","--전체--","","above");
  574. grp_biz.grp_sea.cmb_prcpcd.index = 0;
  575. }
  576. function cf_TRAES09002(sSvcId, nErrorCode, sErrorMsg) {
  577. if(nErrorCode < 0) return;
  578. ds_inti_prcpcd.updateColID("basecd","cd");
  579. ds_inti_prcpcd.updateColID("basecdflagdesc","nm");
  580. }
  581. function grp_biz_grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  582. {
  583. ds_main_list_item.clearData();
  584. //R:치료실,C:치료코드,D:처방과,E:치료사
  585. dsf_createDs("ds_req1")
  586. ds_req1.copyData(ds_send);
  587. ds_req1.setColumn( 0, "srchtab","R");
  588. dsf_setFixVal(ds_req1, "systflag:C");
  589. var oParam = {};
  590. oParam.id = "TRAES01101";
  591. oParam.service = "examcurestatsapp.RehbMediSc";
  592. oParam.method = "reqGetRehbCureCnt";
  593. oParam.inds = "req=ds_req1";
  594. oParam.outds = "ds_main_list_item=item";
  595. oParam.async = true;
  596. //oParam.callback = "cf_TRAES01101";
  597. tranf_submit(oParam);
  598. ds_main_list1_item.clearData();
  599. dsf_createDs("ds_req2")
  600. ds_req2.copyData(ds_send);
  601. ds_req2.setColumn( 0, "srchtab","C");
  602. dsf_setFixVal(ds_req2, "systflag:C");
  603. var oParam = {};
  604. oParam.id = "TRAES01102";
  605. oParam.service = "examcurestatsapp.RehbMediSc";
  606. oParam.method = "reqGetRehbCureCnt";
  607. oParam.inds = "req=ds_req2";
  608. oParam.outds = "ds_main_list1_item=item";
  609. oParam.async = true;
  610. //oParam.callback = "cf_TRAES01102";
  611. tranf_submit(oParam);
  612. }
  613. function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
  614. {
  615. if(grp_biz.switch1.tabindex == 0) {
  616. if( ds_main_list_item.rowcount > 0 ){
  617. grdf_exportExcel(grp_biz.switch1.case1.datagrid1, "SheetName", "SheetName", false, "", "user", false);
  618. } else {
  619. sysf_messageBox("조회된 데이터가 ", "I004");
  620. }
  621. } else {
  622. if( ds_main_list1_item.rowcount > 0 ){
  623. grdf_exportExcel(grp_biz.switch1.case2.datagrid2, "SheetName", "SheetName", false, "", "user", false);
  624. } else {
  625. sysf_messageBox("조회된 데이터가 ", "I004");
  626. }
  627. }
  628. }
  629. ]]></Script>
  630. </Form>
  631. </FDL>