SMAES02700_핵의학체내기간별통계.xfdl 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAES02700" position="absolute 0 0 1194 776" titletext="기간별 통계" oninit="SMAES02700_oninit" onload="SMAES02700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="기간별 통계" class="tit_1" position="absolute 0 0 200 23"/>
  8. <Div id="group1" taborder="1" class="div_SA" position="absolute 0 24 1187 54" anchor="left top right">
  9. <Layouts>
  10. <Layout>
  11. <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1094 5 1100 25" anchor="top right"/>
  12. <Button id="button1" taborder="3" text="조회" class="btn1" position="absolute 1107 4 1163 26" anchor="top right" onclick="group1_button1_onclick"/>
  13. <Static id="caption2" text="조회기간 :" class="search_name" position="absolute 10 7 96 24" anchor="default"/>
  14. <Calendar id="ipt_todd" taborder="4" class="input_default" position="absolute 202 6 282 25" mask="yyyy-mm" anchor="default" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" onchanged="group1_ipt_todd_onchanged" autoselect="true"/>
  15. <Static id="caption5" text="~" class="search_no_b" position="absolute 187 6 199 23" anchor="default"/>
  16. <Calendar id="ipt_fromdd" taborder="5" class="input_default" position="absolute 104 6 184 25" mask="yyyy-mm" anchor="default" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" onchanged="group1_ipt_fromdd_onchanged" autoselect="true"/>
  17. <Combo id="cmb_excuroomgrp" taborder="6" innerdataset="@ds_init_initexcuroomgrp" codecolumn="basecdcnts" datacolumn="basecdcnts2" class="combo_default" position="absolute 390 6 508 25" anchor="default"/>
  18. <Static id="caption7" text="검사실 :" class="search_name" position="absolute 310 7 390 24" anchor="default"/>
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Tab id="switch1" taborder="2" tabindex="0" position="absolute 0 73 1185 769" anchor="all">
  23. <Tabpages>
  24. <Tabpage id="case1" text="검사">
  25. <Layouts>
  26. <Layout>
  27. <Grid id="grd_examlist" taborder="0" binddataset="ds_main_list_item" useinputpanel="false" cellsizingtype="col" position="absolute 0 15 1183 637" anchor="all">
  28. <Formats>
  29. <Format id="default">
  30. <Columns>
  31. <Column size="22"/>
  32. <Column size="100"/>
  33. <Column size="240"/>
  34. <Column size="40"/>
  35. <Column size="47"/>
  36. <Column size="47"/>
  37. <Column size="47"/>
  38. <Column size="47"/>
  39. <Column size="47"/>
  40. <Column size="47"/>
  41. <Column size="47"/>
  42. <Column size="47"/>
  43. <Column size="47"/>
  44. <Column size="47"/>
  45. <Column size="47"/>
  46. <Column size="47"/>
  47. <Column size="64"/>
  48. <Column size="71"/>
  49. <Column size="64"/>
  50. </Columns>
  51. <Rows>
  52. <Row size="24" band="head"/>
  53. <Row size="24" band="head"/>
  54. <Row size="24"/>
  55. </Rows>
  56. <Band id="head">
  57. <Cell rowspan="2" taborder="undefined"/>
  58. <Cell col="1" rowspan="2" text="검사실" taborder="undefined"/>
  59. <Cell col="2" rowspan="2" text="검사항목" taborder="undefined"/>
  60. <Cell col="3" rowspan="2" text="구분" taborder="undefined"/>
  61. <Cell col="4" text="2006년" taborder="undefined"/>
  62. <Cell col="5" text="2006년" taborder="undefined"/>
  63. <Cell col="6" text="2006년" taborder="undefined"/>
  64. <Cell col="7" text="2006년" taborder="undefined"/>
  65. <Cell col="8" text="2006년" taborder="undefined"/>
  66. <Cell col="9" text="2006년" taborder="undefined"/>
  67. <Cell col="10" text="2006년" taborder="undefined"/>
  68. <Cell col="11" text="2006년" taborder="undefined"/>
  69. <Cell col="12" text="2006년" taborder="undefined"/>
  70. <Cell col="13" text="2006년" taborder="undefined"/>
  71. <Cell col="14" text="2007년" taborder="undefined"/>
  72. <Cell col="15" text="2007년" taborder="undefined"/>
  73. <Cell col="16" rowspan="2" text="합계" taborder="undefined"/>
  74. <Cell col="17" rowspan="2" text="비교기간&#13;&#10;내건수" taborder="undefined"/>
  75. <Cell col="18" rowspan="2" text="증감율" taborder="undefined"/>
  76. <Cell row="1" col="4" text="3월"/>
  77. <Cell row="1" col="5" text="4월"/>
  78. <Cell row="1" col="6" text="5월"/>
  79. <Cell row="1" col="7" text="6월"/>
  80. <Cell row="1" col="8" text="7월"/>
  81. <Cell row="1" col="9" text="8월"/>
  82. <Cell row="1" col="10" text="9월"/>
  83. <Cell row="1" col="11" text="10월"/>
  84. <Cell row="1" col="12" text="11월"/>
  85. <Cell row="1" col="13" text="12월"/>
  86. <Cell row="1" col="14" text="1월"/>
  87. <Cell row="1" col="15" text="2월"/>
  88. </Band>
  89. <Band id="body">
  90. <Cell celltype="head" expr="currow+1"/>
  91. <Cell col="1" text="bind:excuroomnm"/>
  92. <Cell col="2" text="bind:prcpnm"/>
  93. <Cell col="3" text="bind:flag"/>
  94. <Cell col="4" text="bind:month1"/>
  95. <Cell col="5" text="bind:month2"/>
  96. <Cell col="6" text="bind:month3"/>
  97. <Cell col="7" text="bind:month4"/>
  98. <Cell col="8" text="bind:month5"/>
  99. <Cell col="9" text="bind:month6"/>
  100. <Cell col="10" text="bind:month7"/>
  101. <Cell col="11" text="bind:month8"/>
  102. <Cell col="12" text="bind:month9"/>
  103. <Cell col="13" text="bind:month10"/>
  104. <Cell col="14" text="bind:month11"/>
  105. <Cell col="15" text="bind:month12"/>
  106. <Cell col="16" text="bind:sumcnt"/>
  107. <Cell col="17" text="bind:comparecnt"/>
  108. <Cell col="18" text="bind:comparerate"/>
  109. </Band>
  110. </Format>
  111. </Formats>
  112. </Grid>
  113. </Layout>
  114. </Layouts>
  115. </Tabpage>
  116. <Tabpage id="case2" text="치료">
  117. <Layouts>
  118. <Layout>
  119. <Grid id="grd_isublist" taborder="1" binddataset="ds_main_isublist_item" useinputpanel="false" position="absolute 0 470 258 610" autofittype="col" cellsizingtype="col">
  120. <Formats>
  121. <Format id="default">
  122. <Columns>
  123. <Column size="75"/>
  124. <Column size="90"/>
  125. <Column size="90"/>
  126. </Columns>
  127. <Rows>
  128. <Row size="24" band="head"/>
  129. <Row size="24"/>
  130. </Rows>
  131. <Band id="head">
  132. <Cell text="구분"/>
  133. <Cell col="1" text="처방량"/>
  134. <Cell col="2" text="건수"/>
  135. </Band>
  136. <Band id="body">
  137. <Cell displaytype="combo" edittype="combo" text="bind:ioflag" combodataset="ds_cmb_ioflag" combocodecol="value" combodatacol="label" enable="false"/>
  138. <Cell col="1" text="bind:drugqty"/>
  139. <Cell col="2" text="bind:cnt"/>
  140. </Band>
  141. </Format>
  142. </Formats>
  143. </Grid>
  144. <Grid id="grd_osublist" taborder="2" binddataset="ds_main_osublist_item" useinputpanel="false" position="absolute 260 470 518 610" autofittype="col" cellsizingtype="col">
  145. <Formats>
  146. <Format id="default">
  147. <Columns>
  148. <Column size="75"/>
  149. <Column size="90"/>
  150. <Column size="90"/>
  151. </Columns>
  152. <Rows>
  153. <Row size="24" band="head"/>
  154. <Row size="24"/>
  155. </Rows>
  156. <Band id="head">
  157. <Cell text="구분"/>
  158. <Cell col="1" text="처방량"/>
  159. <Cell col="2" text="건수"/>
  160. </Band>
  161. <Band id="body">
  162. <Cell displaytype="combo" edittype="combo" text="bind:ioflag" combodataset="ds_cmb_ioflag" combocodecol="value" combodatacol="label" enable="false"/>
  163. <Cell col="1" text="bind:drugqty"/>
  164. <Cell col="2" text="bind:cnt"/>
  165. </Band>
  166. </Format>
  167. </Formats>
  168. </Grid>
  169. <Static id="caption1" text="외래합계" class="cell_1" position="absolute 260 613 387 636"/>
  170. <Static id="caption4" text="총합계" class="cell_1" position="absolute 0 639 127 662"/>
  171. <Edit id="input1" taborder="3" position="absolute 129 615 258 634"/>
  172. <Edit id="input2" taborder="4" position="absolute 389 615 518 634"/>
  173. <Edit id="input3" taborder="5" position="absolute 129 641 518 660"/>
  174. <Static id="caption8" text="병실합계" class="cell_1" position="absolute 0 613 127 636"/>
  175. <Grid id="grd_curelist" taborder="6" binddataset="ds_main_curelist_item" useinputpanel="false" position="absolute 0 15 1183 464" cellsizingtype="col">
  176. <Formats>
  177. <Format id="default">
  178. <Columns>
  179. <Column size="23"/>
  180. <Column size="66"/>
  181. <Column size="67"/>
  182. <Column size="67"/>
  183. <Column size="60"/>
  184. <Column size="60"/>
  185. <Column size="60"/>
  186. <Column size="60"/>
  187. <Column size="60"/>
  188. <Column size="60"/>
  189. <Column size="60"/>
  190. <Column size="60"/>
  191. <Column size="60"/>
  192. <Column size="60"/>
  193. <Column size="60"/>
  194. <Column size="60"/>
  195. <Column size="75"/>
  196. <Column size="75"/>
  197. <Column size="75"/>
  198. </Columns>
  199. <Rows>
  200. <Row size="24" band="head"/>
  201. <Row size="24" band="head"/>
  202. <Row size="24"/>
  203. <Row size="24" band="summ"/>
  204. </Rows>
  205. <Band id="head">
  206. <Cell rowspan="2" taborder="undefined"/>
  207. <Cell col="1" rowspan="2" text="구분" taborder="undefined"/>
  208. <Cell col="2" rowspan="2" text="병실" taborder="undefined"/>
  209. <Cell col="3" rowspan="2" text="처방량" taborder="undefined"/>
  210. <Cell col="4" text="2006년" taborder="undefined"/>
  211. <Cell col="5" text="2006년" taborder="undefined"/>
  212. <Cell col="6" text="2006년" taborder="undefined"/>
  213. <Cell col="7" text="2006년" taborder="undefined"/>
  214. <Cell col="8" text="2006년" taborder="undefined"/>
  215. <Cell col="9" text="2006년" taborder="undefined"/>
  216. <Cell col="10" text="2006년" taborder="undefined"/>
  217. <Cell col="11" text="2006년" taborder="undefined"/>
  218. <Cell col="12" text="2006년" taborder="undefined"/>
  219. <Cell col="13" text="2006년" taborder="undefined"/>
  220. <Cell col="14" text="2007년" taborder="undefined"/>
  221. <Cell col="15" text="2007년" taborder="undefined"/>
  222. <Cell col="16" rowspan="2" text="합계" taborder="undefined"/>
  223. <Cell col="17" rowspan="2" text="비교기간&#13;&#10;내건수" taborder="undefined"/>
  224. <Cell col="18" rowspan="2" text="증감율" taborder="undefined"/>
  225. <Cell row="1" col="4" text="3월"/>
  226. <Cell row="1" col="5" text="4월"/>
  227. <Cell row="1" col="6" text="5월"/>
  228. <Cell row="1" col="7" text="6월"/>
  229. <Cell row="1" col="8" text="7월"/>
  230. <Cell row="1" col="9" text="8월"/>
  231. <Cell row="1" col="10" text="9월"/>
  232. <Cell row="1" col="11" text="10월"/>
  233. <Cell row="1" col="12" text="11월"/>
  234. <Cell row="1" col="13" text="12월"/>
  235. <Cell row="1" col="14" text="1월"/>
  236. <Cell row="1" col="15" text="2월"/>
  237. </Band>
  238. <Band id="body">
  239. <Cell celltype="head" expr="currow+1"/>
  240. <Cell col="1" displaytype="combo" edittype="combo" text="bind:ioflag" combodataset="ds_cmb_ioflag" combocodecol="value" combodatacol="label" enable="false"/>
  241. <Cell col="2" text="bind:roomcd"/>
  242. <Cell col="3" text="bind:drugqty"/>
  243. <Cell col="4" text="bind:month1"/>
  244. <Cell col="5" text="bind:month2"/>
  245. <Cell col="6" text="bind:month3"/>
  246. <Cell col="7" text="bind:month4"/>
  247. <Cell col="8" text="bind:month5"/>
  248. <Cell col="9" text="bind:month6"/>
  249. <Cell col="10" text="bind:month7"/>
  250. <Cell col="11" text="bind:month8"/>
  251. <Cell col="12" text="bind:month9"/>
  252. <Cell col="13" text="bind:month10"/>
  253. <Cell col="14" text="bind:month11"/>
  254. <Cell col="15" text="bind:month12"/>
  255. <Cell col="16" text="bind:sumcnt"/>
  256. <Cell col="17" text="bind:comparecnt"/>
  257. <Cell col="18" text="bind:comparerate"/>
  258. </Band>
  259. <Band id="summary">
  260. <Cell/>
  261. <Cell col="1" colspan="3" style="color:#0000ffff;color2:#0000ffff;font:arial,9,bold;" text="총계" taborder="undefined"/>
  262. <Cell col="4" displaytype="number" style="color:#0000ffff;color2:#0000ffff;font:arial,9,bold;" text="expr:getSum('month1')"/>
  263. <Cell col="5" displaytype="number" style="color:#0000ffff;color2:#0000ffff;font:arial,9,bold;" text="expr:getSum('month2')"/>
  264. <Cell col="6" displaytype="number" style="color:#0000ffff;color2:#0000ffff;font:arial,9,bold;" text="expr:getSum('month3')"/>
  265. <Cell col="7" displaytype="number" style="color:#0000ffff;color2:#0000ffff;font:arial,9,bold;" text="expr:getSum('month4')"/>
  266. <Cell col="8" displaytype="number" style="color:#0000ffff;color2:#0000ffff;font:arial,9,bold;" text="expr:getSum('month5')"/>
  267. <Cell col="9" displaytype="number" style="color:#0000ffff;color2:#0000ffff;font:arial,9,bold;" text="expr:getSum('month6')"/>
  268. <Cell col="10" displaytype="number" style="color:#0000ffff;color2:#0000ffff;font:arial,9,bold;" text="expr:getSum('month7')"/>
  269. <Cell col="11" displaytype="number" style="color:#0000ffff;color2:#0000ffff;font:arial,9,bold;" text="expr:getSum('month8')"/>
  270. <Cell col="12" displaytype="number" style="color:#0000ffff;color2:#0000ffff;font:arial,9,bold;" text="expr:getSum('month9')"/>
  271. <Cell col="13" displaytype="number" style="color:#0000ffff;color2:#0000ffff;font:arial,9,bold;" text="expr:getSum('month10')"/>
  272. <Cell col="14" displaytype="number" style="color:#0000ffff;color2:#0000ffff;font:arial,9,bold;" text="expr:getSum('month11')"/>
  273. <Cell col="15" displaytype="number" style="color:#0000ffff;color2:#0000ffff;font:arial,9,bold;" text="expr:getSum('month12')"/>
  274. <Cell col="16" displaytype="number" style="color:#0000ffff;color2:#0000ffff;font:arial,9,bold;" text="expr:getSum('sumcnt')"/>
  275. <Cell col="17" displaytype="number" style="color:#0000ffff;color2:#0000ffff;font:arial,9,bold;" text="expr:getSum('comparecnt')"/>
  276. <Cell col="18" displaytype="number" style="color:#0000ffff;color2:#0000ffff;font:arial,9,bold;" text="expr:Math.floor(((getSum('sumcnt') - getSum('comparecnt')) / getSum('comparecnt')) * 100)"/>
  277. </Band>
  278. </Format>
  279. </Formats>
  280. </Grid>
  281. </Layout>
  282. </Layouts>
  283. </Tabpage>
  284. </Tabpages>
  285. </Tab>
  286. <Button id="btn_excsave" taborder="3" text="엑셀저장" class="btn7" position="absolute 1105 76 1185 95" anchor="top right" onclick="btn_excsave_onclick"/>
  287. <Shape id="line1" class="line_10" position="absolute 0 110 1185 116" anchor="left top right"/>
  288. </Layout>
  289. </Layouts>
  290. <Objects>
  291. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  292. <ColumnInfo>
  293. <Column id="execfromdd" type="STRING" size="256"/>
  294. <Column id="exectodd" type="STRING" size="256"/>
  295. <Column id="excuroomgrpcdid" type="STRING" size="256"/>
  296. <Column id="comparefromdd" type="STRING" size="256"/>
  297. <Column id="comparetodd" type="STRING" size="256"/>
  298. <Column id="suppdeptcd" type="STRING" size="256"/>
  299. <Column id="systkey6" type="STRING" size="256"/>
  300. </ColumnInfo>
  301. <Rows>
  302. <Row>
  303. <Col id="execfromdd"/>
  304. <Col id="exectodd"/>
  305. <Col id="excuroomgrpcdid"/>
  306. <Col id="comparefromdd"/>
  307. <Col id="comparetodd"/>
  308. <Col id="suppdeptcd"/>
  309. </Row>
  310. </Rows>
  311. </Dataset>
  312. <Dataset id="ds_init_initexcuroomgrp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  313. <ColumnInfo>
  314. <Column id="basecdcnts" type="STRING" size="256" sumtext="검사그룹코드"/>
  315. <Column id="basecdcnts2" type="STRING" size="256" sumtext="검사그룹코드명"/>
  316. </ColumnInfo>
  317. </Dataset>
  318. <Dataset id="ds_cmb_ioflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  319. <ColumnInfo>
  320. <Column id="label" type="STRING" size="256"/>
  321. <Column id="value" type="STRING" size="256"/>
  322. </ColumnInfo>
  323. <Rows>
  324. <Row>
  325. <Col id="label">입원</Col>
  326. <Col id="value">I</Col>
  327. </Row>
  328. <Row>
  329. <Col id="label">외래</Col>
  330. <Col id="value">O</Col>
  331. </Row>
  332. </Rows>
  333. </Dataset>
  334. <Dataset id="ds_main_list_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  335. <ColumnInfo>
  336. <Column id="excuroomnm" type="STRING" size="256" sumtext="검사실"/>
  337. <Column id="prcpnm" type="STRING" size="256" sumtext="검사항목"/>
  338. <Column id="flag" type="STRING" size="256" sumtext="구분"/>
  339. <Column id="month1" type="STRING" size="256" sumtext="1번째 월"/>
  340. <Column id="month2" type="STRING" size="256" sumtext="2번째 월"/>
  341. <Column id="month3" type="STRING" size="256" sumtext="3번째 월"/>
  342. <Column id="month4" type="STRING" size="256" sumtext="4번째 월"/>
  343. <Column id="month5" type="STRING" size="256" sumtext="5번째 월"/>
  344. <Column id="month6" type="STRING" size="256" sumtext="6번째 월"/>
  345. <Column id="month7" type="STRING" size="256" sumtext="7번째 월"/>
  346. <Column id="month8" type="STRING" size="256" sumtext="8번째 월"/>
  347. <Column id="month9" type="STRING" size="256" sumtext="9번째 월"/>
  348. <Column id="month10" type="STRING" size="256" sumtext="10번째 월"/>
  349. <Column id="month11" type="STRING" size="256" sumtext="11번째 월"/>
  350. <Column id="month12" type="STRING" size="256" sumtext="12번째 월"/>
  351. <Column id="sumcnt" type="STRING" size="256" sumtext="당해년계"/>
  352. <Column id="comparecnt" type="STRING" size="256" sumtext="비교기간건수"/>
  353. <Column id="comparerate" type="STRING" size="256" sumtext="증감율"/>
  354. </ColumnInfo>
  355. </Dataset>
  356. <Dataset id="ds_main_curelist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  357. <ColumnInfo>
  358. <Column id="ioflag" type="STRING" size="256" sumtext="구분"/>
  359. <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
  360. <Column id="drugqty" type="STRING" size="256" sumtext="용량"/>
  361. <Column id="month1" type="STRING" size="256" sumtext="1번째 월"/>
  362. <Column id="month2" type="STRING" size="256" sumtext="2번째 월"/>
  363. <Column id="month3" type="STRING" size="256" sumtext="3번째 월"/>
  364. <Column id="month4" type="STRING" size="256" sumtext="4번째 월"/>
  365. <Column id="month5" type="STRING" size="256" sumtext="5번째 월"/>
  366. <Column id="month6" type="STRING" size="256" sumtext="6번째 월"/>
  367. <Column id="month7" type="STRING" size="256" sumtext="7번째 월"/>
  368. <Column id="month8" type="STRING" size="256" sumtext="8번째 월"/>
  369. <Column id="month9" type="STRING" size="256" sumtext="9번째 월"/>
  370. <Column id="month10" type="STRING" size="256" sumtext="10번째 월"/>
  371. <Column id="month11" type="STRING" size="256" sumtext="11번째 월"/>
  372. <Column id="month12" type="STRING" size="256" sumtext="12번째 월"/>
  373. <Column id="sumcnt" type="STRING" size="256" sumtext="당해년계"/>
  374. <Column id="comparecnt" type="STRING" size="256" sumtext="비교기간건수"/>
  375. <Column id="comparerate" type="STRING" size="256" sumtext="증감율"/>
  376. </ColumnInfo>
  377. </Dataset>
  378. <Dataset id="ds_main_examsum" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  379. <ColumnInfo>
  380. <Column id="isum" type="STRING" size="256"/>
  381. <Column id="osum" type="STRING" size="256"/>
  382. <Column id="total" type="STRING" size="256"/>
  383. </ColumnInfo>
  384. <Rows>
  385. <Row/>
  386. </Rows>
  387. </Dataset>
  388. <Dataset id="ds_main_sublist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  389. <ColumnInfo>
  390. <Column id="ioflag" type="STRING" size="256" sumtext="IOFLAG"/>
  391. <Column id="drugqty" type="STRING" size="256" sumtext="처방량"/>
  392. <Column id="cnt" type="STRING" size="256" sumtext="건수"/>
  393. <Column id="total" type="STRING" size="256" sumtext="합계"/>
  394. </ColumnInfo>
  395. </Dataset>
  396. <FilteredDataset id="ds_main_isublist_item" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" filterstr="ioflag == 'I'" binddataset="@ds_main_sublist_item"/>
  397. <FilteredDataset id="ds_main_osublist_item" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" binddataset="@ds_main_sublist_item" filterstr="ioflag == 'O'"/>
  398. <Dataset id="ds_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  399. <ColumnInfo>
  400. <Column id="excuroomgrpcdid" type="STRING" size="256" sumtext="검사실그룹코드"/>
  401. <Column id="basesuppdeptcd" type="STRING" size="256" sumtext="부서코드"/>
  402. <Column id="rbasecdflag" type="STRING" size="256" sumtext="검사실기본코드구분,검사실"/>
  403. <Column id="kbasecdflag" type="STRING" size="256" sumtext="검사실기본코드구분,장비코드"/>
  404. <Column id="nbasecdflag" type="STRING" size="256" sumtext="핵종코드"/>
  405. <Column id="initflag" type="STRING" size="256" sumtext="astlib,병동병실코드구분,1:병동조회"/>
  406. <Column id="alladdyn" type="STRING" size="256" sumtext="검사살전체선택"/>
  407. <Column id="flag" type="STRING" size="256" sumtext="검사살전체선택"/>
  408. <Column id="baseroomflag" type="STRING" size="256" sumtext="검사실구분코드"/>
  409. <Column id="srchflag" type="STRING" size="256" sumtext="조회구분"/>
  410. <Column id="basecdcnts" type="STRING" size="256" sumtext="검사실그룹코드"/>
  411. <Column id="ebasecdflag" type="STRING" size="256" sumtext="실시자기본코드구분"/>
  412. </ColumnInfo>
  413. <Rows>
  414. <Row/>
  415. </Rows>
  416. </Dataset>
  417. </Objects>
  418. <Bind>
  419. <BindItem id="item0" compid="switch1.case2.input2" propid="value" datasetid="ds_main_examsum" columnid="osum"/>
  420. <BindItem id="item1" compid="switch1.case2.input1" propid="value" datasetid="ds_main_examsum" columnid="isum"/>
  421. <BindItem id="item2" compid="switch1.case2.input3" propid="value" datasetid="ds_main_examsum" columnid="total"/>
  422. <BindItem id="item3" compid="group1.ipt_fromdd" propid="value" datasetid="ds_send" columnid="execfromdd"/>
  423. <BindItem id="item4" compid="group1.ipt_todd" propid="value" datasetid="ds_send" columnid="exectodd"/>
  424. <BindItem id="item5" compid="group1.cmb_excuroomgrp" propid="value" datasetid="ds_send" columnid=""/>
  425. </Bind>
  426. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  427. * System Name :
  428. * Job Name :
  429. * Creator :
  430. * Make Date : 2015-11-13
  431. * Description :
  432. *---------------------------------------------------------------------------------------
  433. * Modify Date Modifier Modify Description
  434. *---------------------------------------------------------------------------------------
  435. * 2015-11-13 Live Converter TF->XP
  436. *
  437. *---------------------------------------------------------------------------------------
  438. ****************************************************************************************/
  439. include "com_commonxp::comm_main.xjs";
  440. include "ast_examcurexp::AEZ0001.xjs";
  441. var vSuppdeptcd;
  442. function SMAES02700_oninit(obj:Form, e:InitEventInfo)
  443. {
  444. frmf_initForm(obj);
  445. }
  446. function SMAES02700_onload(obj:Form, e:LoadEventInfo)
  447. {
  448. grdf_initGrid(switch1.case1.grd_examlist);
  449. grdf_initGrid(switch1.case2.grd_curelist);
  450. grdf_initGrid(switch1.case2.grd_isublist);
  451. grdf_initGrid(switch1.case2.grd_osublist);
  452. lf_aezfSetSuppDeptcd();
  453. vSuppdeptcd = frmf_getPrestDeptCd();
  454. ds_send.setColumn(0, "suppdeptcd", vSuppdeptcd);
  455. var fromdd01 = utlf_getCurrentDate().substr(0,4) + "0101";
  456. var todd12 = utlf_getCurrentDate().substr(0,4) + "1231";
  457. ds_send.setColumn(0, "execfromdd", fromdd01.toDate().getDateFormat("YYYYMM"));
  458. ds_send.setColumn(0, "exectodd", todd12.toDate().getDateFormat("YYYYMM"));
  459. ds_req.setColumn(0, "basesuppdeptcd", vSuppdeptcd);
  460. dsf_setFixVal(ds_req, "rbasecdflag:R,kbasecdflag:J,nbasecdflag:N,initflag:1,alladdyn:Y,baseroomflag:1,srchflag:A");
  461. var oParam = {};
  462. oParam.id = "TRAES09001";
  463. oParam.service = "examcurestatsapp.NmedStats";
  464. oParam.method = "reqGetCode";
  465. oParam.inds = "req=ds_req";
  466. oParam.outds = "ds_init_initexcuroomgrp=initexcuroomgrp";
  467. oParam.async = false;
  468. //oParam.callback = "cf_TRAES09001";
  469. tranf_submit(oParam);
  470. frmf_addComboItem("group1.cmb_excuroomgrp","--전체--","","above");
  471. group1.cmb_excuroomgrp.index = 0;
  472. setTitle();
  473. }
  474. function setTitle()
  475. {
  476. ds_main_list_item.clearData();
  477. ds_main_curelist_item.clearData();
  478. ds_main_isublist_item.clearData();
  479. ds_main_osublist_item.clearData();
  480. ds_main_examsum.clearData();
  481. var stYearMonth = ds_send.getColumn(0, "execfromdd") + "01";
  482. var dtYearMonth = stYearMonth.toDate();
  483. var stEndMonth = ds_send.getColumn(0, "exectodd") + "01";
  484. var dtEndMonth = stEndMonth.toDate();
  485. var stYearHeader = "";
  486. var stMonthHeader = "";
  487. for (var i = 4; i < 16; i++)
  488. {
  489. var stYear = dtYearMonth.getDateFormat("YYYY");
  490. var stMonth = dtYearMonth.getDateFormat("MM");
  491. stYearHeader = stYear + "년";
  492. stMonthHeader = stMonth + "월";
  493. if(dtYearMonth.getDateFormat("YYYYMM") > dtEndMonth.getDateFormat("YYYYMM"))
  494. {
  495. switch1.case1.grd_examlist.setFormatColProperty(i, "size", 0);
  496. }
  497. else
  498. {
  499. switch1.case1.grd_examlist.setCellProperty("Head", i, "text", stYearHeader);
  500. switch1.case1.grd_examlist.setCellProperty("Head", i+15, "text", stMonthHeader);
  501. switch1.case1.grd_examlist.setFormatColProperty(i, "size", 47);
  502. }
  503. dtYearMonth.getAddDate(1, "M");
  504. }
  505. ds_send.setColumn(0, "comparefromdd", stYearMonth.toDate().getAddDate(-12, "M").getDateFormat("YYYYMM"));
  506. ds_send.setColumn(0, "comparetodd", stEndMonth.toDate().getAddDate(-12, "M").getDateFormat("YYYYMM"));
  507. var comparefromdd = ds_send.getColumn(0, "comparefromdd");
  508. var comparetodd = ds_send.getColumn(0, "comparetodd");
  509. var stYearMonth = ds_send.getColumn(0, "execfromdd") + "01";
  510. var dtYearMonth = stYearMonth.toDate();
  511. var stEndMonth = ds_send.getColumn(0, "exectodd") + "01";
  512. var dtEndMonth = stEndMonth.toDate();
  513. var stYearHeader = "";
  514. var stMonthHeader = "";
  515. for (var i = 4; i < 16; i++)
  516. {
  517. var stYear = dtYearMonth.getDateFormat("YYYY");
  518. var stMonth = dtYearMonth.getDateFormat("MM");
  519. stYearHeader = stYear + "년";
  520. stMonthHeader = stMonth + "월";
  521. if(dtYearMonth.getDateFormat("YYYYMM") > dtEndMonth.getDateFormat("YYYYMM"))
  522. {
  523. switch1.case2.grd_curelist.setFormatColProperty(1+i, "size", 0);
  524. }
  525. else
  526. {
  527. switch1.case2.grd_curelist.setCellProperty("Head", i, "text", stYearHeader);
  528. switch1.case2.grd_curelist.setCellProperty("Head", i+15, "text", stMonthHeader);
  529. switch1.case2.grd_curelist.setFormatColProperty(1+i, "size", 60);
  530. }
  531. dtYearMonth.getAddDate(1, "M");
  532. }
  533. }
  534. function group1_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  535. {
  536. var execfromdd = (ds_send.getColumn(0, "execfromdd") + "01").toDate();
  537. var exectodd = (ds_send.getColumn(0, "exectodd") + "01").toDate();
  538. if(execfromdd < exectodd.getAddDate(-11, "M"))
  539. {
  540. sysf_messageBox("1년이상의 자료는 검색할수 없습니다.", "I");
  541. execfromdd = exectodd;
  542. }
  543. ds_send.setColumn(0, "execfromdd", execfromdd.getDateFormat("YYYYMM"));
  544. execfromdd = execfromdd.getAddDate(-12, "M");
  545. execfromdd = execfromdd.getDateFormat("YYYYMM");
  546. setTitle();
  547. }
  548. function group1_ipt_todd_onchanged(obj:Calendar, e:ChangeEventInfo)
  549. {
  550. var execfromdd = (ds_send.getColumn(0, "execfromdd") + "01").toDate();
  551. var exectodd = (ds_send.getColumn(0, "exectodd") + "01").toDate();
  552. if(execfromdd.getAddDate(11, "M") < exectodd)
  553. {
  554. sysf_messageBox("1년이상의 자료는 검색할수 없습니다.", "I");
  555. exectodd = execfromdd;
  556. }
  557. ds_send.setColumn(0, "exectodd", exectodd.getDateFormat("YYYYMM"));
  558. exectodd = exectodd.getAddDate(-12, "M");
  559. exectodd = exectodd.getDateFormat("YYYYMM");
  560. setTitle();
  561. }
  562. function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  563. {
  564. if(switch1.tabindex == 0)
  565. {
  566. grdf_exportExcel(switch1.case1.grd_examlist, "", "");
  567. }
  568. else
  569. {
  570. grdf_exportExcel(switch1.case2.grd_curelist, "", "");
  571. }
  572. }
  573. function group1_button1_onclick(obj:Button, e:ClickEventInfo)
  574. {
  575. setTitle();
  576. dsf_setFixVal(ds_send, "systkey6:701");
  577. var oParam = {};
  578. oParam.id = "TRAES02701";
  579. oParam.service = "examcurestatsapp.NmedStats";
  580. oParam.method = "reqGetNmedStatsTermCaseList";
  581. oParam.inds = "req=ds_send";
  582. oParam.outds = "ds_main_list_item=item ds_main_curelist_item=curelist ds_main_sublist_item=sublist";
  583. oParam.async = false;
  584. oParam.callback = "cf_TRAES02701";
  585. tranf_submit(oParam);
  586. }
  587. function cf_TRAES02701(sSvcId, nErrorCode, sErrorMsg)
  588. {
  589. if(nErrorCode < 0)
  590. {
  591. return;
  592. }
  593. else
  594. {
  595. var cnt = ds_main_curelist_item.rowcount;
  596. if (cnt > 0)
  597. {
  598. var ioflag = "";
  599. var iSum = 0;
  600. var oSum = 0;
  601. var total = 0;
  602. var rowCnt = ds_main_sublist_item.rowcount;
  603. if (cnt > 0)
  604. {
  605. for (var i = 0; i < rowCnt; i++)
  606. {
  607. ioflag = ds_main_sublist_item.getColumn(i, "ioflag");
  608. if (ioflag == "I")
  609. {
  610. iSum = iSum + eval(ds_main_sublist_item.getColumn(i, "cnt"));
  611. }
  612. else if (ioflag == "O")
  613. {
  614. oSum = oSum + eval(ds_main_sublist_item.getColumn(i, "cnt"));
  615. }
  616. }
  617. total = eval(iSum) + eval(oSum);
  618. ds_main_examsum.setColumn(0, "isum", iSum);
  619. ds_main_examsum.setColumn(0, "osum", osum);
  620. ds_main_examsum.setColumn(0, "total", total);
  621. }
  622. }
  623. }
  624. }]]></Script>
  625. </Form>
  626. </FDL>