SMAES03400_재활의학팀월별환자수통계.xfdl 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAES03400" position="absolute 0 0 1212 756" titletext="월별 환자수 통계" onload="SMAES03400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 13 1211 755" id="grp_biz" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 12 1211 72" align="align:center top;" id="grp_sea" class="div_SA" anchor="left top right">
  11. <Layouts>
  12. <Layout>
  13. <Static text="조회기간 :" position="absolute 15 11 101 28" id="caption2" class="search_name" anchor="default"/>
  14. <Shape position="absolute 1131 7 1137 52" linetype="vertical" id="line13" class="line_4" anchor="top right"/>
  15. <Button position="absolute 1144 20 1200 42" id="btn_sea" class="btn1" taborder="4" text="조회" anchor="top right" onclick="grp_biz_grp_sea_btn_sea_onclick"/>
  16. <Static text="~" position="absolute 195 10 207 27" id="caption5" class="search_no_b" anchor="default"/>
  17. <Static text="비교기간 :" position="absolute 15 35 101 52" id="caption3" class="search_name" anchor="default"/>
  18. <Static text="~" position="absolute 195 33 207 50" id="caption4" class="search_no_b" anchor="default"/>
  19. <Static text="처방과 :" position="absolute 340 11 418 28" id="caption7" class="search_name" anchor="default"/>
  20. <Static text="치료실 :" position="absolute 575 11 661 28" id="caption8" class="search_name" anchor="default"/>
  21. <Static text="치료사 :" position="absolute 340 35 418 52" id="caption9" class="search_name" anchor="default"/>
  22. <Combo position="absolute 417 9 532 28" id="cmb_orddept" innerdataset="@ds_inti_orddeptcd" datacolumn="nm" codecolumn="cd" anchor="default"/>
  23. <Combo position="absolute 417 33 532 52" id="cmb_execdrid" innerdataset="@ds_inti_execdrid" datacolumn="nm" codecolumn="cd" anchor="default"/>
  24. <Combo position="absolute 652 9 767 28" id="cmb_curerm" innerdataset="@ds_inti_curerm" datacolumn="nm" codecolumn="cd" anchor="default"/>
  25. <Static text="구분 :" position="absolute 575 35 637 52" id="caption11" class="search_name" anchor="default"/>
  26. <Radio position="absolute 652 33 792 51" id="radio1" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  27. <Dataset id="innerdataset">
  28. <ColumnInfo>
  29. <Column id="codecolumn"/>
  30. <Column id="datacolumn"/>
  31. </ColumnInfo>
  32. <Rows>
  33. <Row>
  34. <Col id="codecolumn">
  35. </Col>
  36. <Col id="datacolumn">전체</Col>
  37. </Row>
  38. <Row>
  39. <Col id="codecolumn">F</Col>
  40. <Col id="datacolumn">초환</Col>
  41. </Row>
  42. <Row>
  43. <Col id="codecolumn">R</Col>
  44. <Col id="datacolumn">재환</Col>
  45. </Row>
  46. </Rows>
  47. </Dataset>
  48. </Radio>
  49. <Static text="구분 :" position="absolute 822 35 884 52" id="caption13" class="search_name" anchor="default"/>
  50. <Radio position="absolute 885 33 1025 51" id="radio3" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  51. <Dataset id="innerdataset">
  52. <ColumnInfo>
  53. <Column id="codecolumn"/>
  54. <Column id="datacolumn"/>
  55. </ColumnInfo>
  56. <Rows>
  57. <Row>
  58. <Col id="codecolumn">A</Col>
  59. <Col id="datacolumn">전체</Col>
  60. </Row>
  61. <Row>
  62. <Col id="codecolumn">I</Col>
  63. <Col id="datacolumn">입원</Col>
  64. </Row>
  65. <Row>
  66. <Col id="codecolumn">O</Col>
  67. <Col id="datacolumn">외래</Col>
  68. </Row>
  69. </Rows>
  70. </Dataset>
  71. </Radio>
  72. <cp_monthCal id="ipt_fromdd" titletext="monthCalendar" taborder="5" onlbuttonup="grp_biz_grp_sea_ipt_fromdd_onlbuttonup" scrollbars="none" position="absolute 104 8 192 28"/>
  73. <cp_monthCal id="ipt_todd" titletext="monthCalendar" taborder="6" onlbuttonup="grp_biz_grp_sea_ipt_fromdd_onlbuttonup" scrollbars="none" position="absolute 210 8 298 28"/>
  74. <cp_monthCal id="input2" titletext="monthCalendar" taborder="7" onlbuttonup="grp_biz_grp_sea_input2_onlbuttonup" scrollbars="none" position="absolute 104 33 192 53"/>
  75. <cp_monthCal id="input1" titletext="monthCalendar" taborder="8" onlbuttonup="grp_biz_grp_sea_ipt_fromdd_onlbuttonup" scrollbars="none" position="absolute 210 33 298 53"/>
  76. </Layout>
  77. </Layouts>
  78. </Div>
  79. <Tab position="absolute 0 76 1211 742" id="switch1" anchor="all">
  80. <Tabpages>
  81. <Tabpage text="치료실" id="case1">
  82. <Layouts>
  83. <Layout>
  84. <Grid id="grd_list" taborder="0" binddataset="ds_main_list_item" useinputpanel="false" cellsizingtype="col" position="absolute 0 0 1211 639" anchor="all" selecttype="multirow">
  85. <Formats>
  86. <Format id="default">
  87. <Columns>
  88. <Column size="150"/>
  89. <Column size="60"/>
  90. <Column size="60"/>
  91. <Column size="60"/>
  92. <Column size="60"/>
  93. <Column size="60"/>
  94. <Column size="60"/>
  95. <Column size="60"/>
  96. <Column size="60"/>
  97. <Column size="60"/>
  98. <Column size="60"/>
  99. <Column size="60"/>
  100. <Column size="60"/>
  101. <Column size="80"/>
  102. <Column size="80"/>
  103. <Column size="80"/>
  104. <Column size="80"/>
  105. </Columns>
  106. <Rows>
  107. <Row size="24" band="head"/>
  108. <Row size="24" band="head"/>
  109. <Row size="24"/>
  110. <Row size="24" band="summ"/>
  111. </Rows>
  112. <Band id="head">
  113. <Cell rowspan="2" text="치료실" taborder="undefined"/>
  114. <Cell col="1" taborder="undefined"/>
  115. <Cell col="2" taborder="undefined"/>
  116. <Cell col="3" taborder="undefined"/>
  117. <Cell col="4" taborder="undefined"/>
  118. <Cell col="5" taborder="undefined"/>
  119. <Cell col="6" taborder="undefined"/>
  120. <Cell col="7" taborder="undefined"/>
  121. <Cell col="8" taborder="undefined"/>
  122. <Cell col="9" taborder="undefined"/>
  123. <Cell col="10" taborder="undefined"/>
  124. <Cell col="11" taborder="undefined"/>
  125. <Cell col="12" taborder="undefined"/>
  126. <Cell col="13" rowspan="2" text="합계" taborder="undefined"/>
  127. <Cell col="14" rowspan="2" text="비교기간건수" taborder="undefined"/>
  128. <Cell col="15" rowspan="2" text="증감" taborder="undefined"/>
  129. <Cell col="16" rowspan="2" text="증감율" taborder="undefined"/>
  130. <Cell row="1" col="1" text="1월"/>
  131. <Cell row="1" col="2" text="2월"/>
  132. <Cell row="1" col="3" text="3월"/>
  133. <Cell row="1" col="4" text="4월"/>
  134. <Cell row="1" col="5" text="5월"/>
  135. <Cell row="1" col="6" text="6월"/>
  136. <Cell row="1" col="7" text="7월"/>
  137. <Cell row="1" col="8" text="8월"/>
  138. <Cell row="1" col="9" text="9월"/>
  139. <Cell row="1" col="10" text="10월"/>
  140. <Cell row="1" col="11" text="11월"/>
  141. <Cell row="1" col="12" text="12월"/>
  142. </Band>
  143. <Band id="body">
  144. <Cell displaytype="text" text="bind:curerm"/>
  145. <Cell col="1" displaytype="number" text="bind:a_month1"/>
  146. <Cell col="2" displaytype="number" text="bind:a_month2"/>
  147. <Cell col="3" displaytype="number" text="bind:a_month3"/>
  148. <Cell col="4" displaytype="number" text="bind:a_month4"/>
  149. <Cell col="5" displaytype="number" text="bind:a_month5"/>
  150. <Cell col="6" displaytype="number" text="bind:a_month6"/>
  151. <Cell col="7" displaytype="number" text="bind:a_month7"/>
  152. <Cell col="8" displaytype="number" text="bind:a_month8"/>
  153. <Cell col="9" displaytype="number" text="bind:a_month9"/>
  154. <Cell col="10" displaytype="number" text="bind:a_month10"/>
  155. <Cell col="11" displaytype="number" text="bind:a_month11"/>
  156. <Cell col="12" displaytype="number" text="bind:a_month12"/>
  157. <Cell col="13" displaytype="number" text="bind:a_monthsum"/>
  158. <Cell col="14" displaytype="number" text="bind:totexeccnt"/>
  159. <Cell col="15" displaytype="number" text="bind:totrsrvcnt"/>
  160. <Cell col="16" displaytype="number" text="bind:comparerate" mask="##0%"/>
  161. </Band>
  162. <Band id="summary">
  163. <Cell text="합계"/>
  164. <Cell col="1" displaytype="number" text="expr:lf_setSum('a_month1')"/>
  165. <Cell col="2" displaytype="number" text="expr:lf_setSum('a_month2')"/>
  166. <Cell col="3" displaytype="number" text="expr:lf_setSum('a_month3')"/>
  167. <Cell col="4" displaytype="number" text="expr:lf_setSum('a_month4')"/>
  168. <Cell col="5" displaytype="number" text="expr:lf_setSum('a_month5')"/>
  169. <Cell col="6" displaytype="number" text="expr:lf_setSum('a_month6')"/>
  170. <Cell col="7" displaytype="number" text="expr:lf_setSum('a_month7')"/>
  171. <Cell col="8" displaytype="number" text="expr:lf_setSum('a_month8')"/>
  172. <Cell col="9" displaytype="number" text="expr:lf_setSum('a_month9')"/>
  173. <Cell col="10" displaytype="number" text="expr:lf_setSum('a_month10')"/>
  174. <Cell col="11" displaytype="number" text="expr:lf_setSum('a_month11')"/>
  175. <Cell col="12" displaytype="number" text="expr:lf_setSum('a_month12')"/>
  176. <Cell col="13" displaytype="number" text="expr:lf_setSum('a_monthsum')"/>
  177. <Cell col="14" displaytype="number" text="expr:lf_setSum('totexeccnt')"/>
  178. <Cell col="15" displaytype="number" text="expr:lf_setSum('totrsrvcnt')"/>
  179. <Cell col="16" displaytype="number" text="expr:lf_setSum('comparerate')" mask="##0%"/>
  180. </Band>
  181. </Format>
  182. </Formats>
  183. </Grid>
  184. </Layout>
  185. </Layouts>
  186. </Tabpage>
  187. <Tabpage text="처방과" id="case2">
  188. <Layouts>
  189. <Layout>
  190. <Grid id="grd_list1" taborder="0" binddataset="ds_main_list1_item" useinputpanel="false" position="absolute 0 0 1211 639" anchor="all" selecttype="multirow">
  191. <Formats>
  192. <Format id="default">
  193. <Columns>
  194. <Column size="150"/>
  195. <Column size="60"/>
  196. <Column size="60"/>
  197. <Column size="60"/>
  198. <Column size="60"/>
  199. <Column size="60"/>
  200. <Column size="60"/>
  201. <Column size="60"/>
  202. <Column size="60"/>
  203. <Column size="60"/>
  204. <Column size="60"/>
  205. <Column size="60"/>
  206. <Column size="60"/>
  207. <Column size="80"/>
  208. <Column size="80"/>
  209. <Column size="80"/>
  210. <Column size="80"/>
  211. </Columns>
  212. <Rows>
  213. <Row size="24" band="head"/>
  214. <Row size="24" band="head"/>
  215. <Row size="24"/>
  216. <Row size="24" band="summ"/>
  217. </Rows>
  218. <Band id="head">
  219. <Cell rowspan="2" text="처방과" taborder="undefined"/>
  220. <Cell col="1" taborder="undefined"/>
  221. <Cell col="2" taborder="undefined"/>
  222. <Cell col="3" taborder="undefined"/>
  223. <Cell col="4" taborder="undefined"/>
  224. <Cell col="5" taborder="undefined"/>
  225. <Cell col="6" taborder="undefined"/>
  226. <Cell col="7" taborder="undefined"/>
  227. <Cell col="8" taborder="undefined"/>
  228. <Cell col="9" taborder="undefined"/>
  229. <Cell col="10" taborder="undefined"/>
  230. <Cell col="11" taborder="undefined"/>
  231. <Cell col="12" taborder="undefined"/>
  232. <Cell col="13" rowspan="2" text="합계" taborder="undefined"/>
  233. <Cell col="14" rowspan="2" text="비교기간건수" taborder="undefined"/>
  234. <Cell col="15" rowspan="2" text="증감" taborder="undefined"/>
  235. <Cell col="16" rowspan="2" text="증감율" taborder="undefined"/>
  236. <Cell row="1" col="1" text="1월"/>
  237. <Cell row="1" col="2" text="2월"/>
  238. <Cell row="1" col="3" text="3월"/>
  239. <Cell row="1" col="4" text="4월"/>
  240. <Cell row="1" col="5" text="5월"/>
  241. <Cell row="1" col="6" text="6월"/>
  242. <Cell row="1" col="7" text="7월"/>
  243. <Cell row="1" col="8" text="8월"/>
  244. <Cell row="1" col="9" text="9월"/>
  245. <Cell row="1" col="10" text="10월"/>
  246. <Cell row="1" col="11" text="11월"/>
  247. <Cell row="1" col="12" text="12월"/>
  248. </Band>
  249. <Band id="body">
  250. <Cell displaytype="text" text="bind:curerm"/>
  251. <Cell col="1" displaytype="number" text="bind:a_month1"/>
  252. <Cell col="2" displaytype="number" text="bind:a_month2"/>
  253. <Cell col="3" displaytype="number" text="bind:a_month3"/>
  254. <Cell col="4" displaytype="number" text="bind:a_month4"/>
  255. <Cell col="5" displaytype="number" text="bind:a_month5"/>
  256. <Cell col="6" displaytype="number" text="bind:a_month6"/>
  257. <Cell col="7" displaytype="number" text="bind:a_month7"/>
  258. <Cell col="8" displaytype="number" text="bind:a_month8"/>
  259. <Cell col="9" displaytype="number" text="bind:a_month9"/>
  260. <Cell col="10" displaytype="number" text="bind:a_month10"/>
  261. <Cell col="11" displaytype="number" text="bind:a_month11"/>
  262. <Cell col="12" displaytype="number" text="bind:a_month12"/>
  263. <Cell col="13" displaytype="number" text="bind:a_monthsum"/>
  264. <Cell col="14" displaytype="number" text="bind:totexeccnt"/>
  265. <Cell col="15" displaytype="number" text="bind:totrsrvcnt"/>
  266. <Cell col="16" displaytype="number" text="bind:comparerate" mask="##0%"/>
  267. </Band>
  268. <Band id="summary">
  269. <Cell text="합계"/>
  270. <Cell col="1" displaytype="number" text="expr:lf_setSum2('a_month1')"/>
  271. <Cell col="2" displaytype="number" text="expr:lf_setSum2('a_month2')"/>
  272. <Cell col="3" displaytype="number" text="expr:lf_setSum2('a_month3')"/>
  273. <Cell col="4" displaytype="number" text="expr:lf_setSum2('a_month4')"/>
  274. <Cell col="5" displaytype="number" text="expr:lf_setSum2('a_month5')"/>
  275. <Cell col="6" displaytype="number" text="expr:lf_setSum2('a_month6')"/>
  276. <Cell col="7" displaytype="number" text="expr:lf_setSum2('a_month7')"/>
  277. <Cell col="8" displaytype="number" text="expr:lf_setSum2('a_month8')"/>
  278. <Cell col="9" displaytype="number" text="expr:lf_setSum2('a_month9')"/>
  279. <Cell col="10" displaytype="number" text="expr:lf_setSum2('a_month10')"/>
  280. <Cell col="11" displaytype="number" text="expr:lf_setSum2('a_month11')"/>
  281. <Cell col="12" displaytype="number" text="expr:lf_setSum2('a_month12')"/>
  282. <Cell col="13" displaytype="number" text="expr:lf_setSum2('a_monthsum')"/>
  283. <Cell col="14" displaytype="number" text="expr:lf_setSum2('totexeccnt')"/>
  284. <Cell col="15" displaytype="number" text="expr:lf_setSum2('totrsrvcnt')"/>
  285. <Cell col="16" displaytype="number" text="expr:lf_setSum2('comparerate')" mask="##0%"/>
  286. </Band>
  287. </Format>
  288. </Formats>
  289. </Grid>
  290. </Layout>
  291. </Layouts>
  292. </Tabpage>
  293. </Tabpages>
  294. </Tab>
  295. <Static text="재활의학팀치료 환자수" position="absolute 130 81 330 102" id="caption1" class="tit_2" anchor="default"/>
  296. <Button position="absolute 1133 76 1211 98" id="btn_excsave" class="btn7" text="엑셀저장" onclick="grp_biz_btn_excsave_onclick" anchor="top right"/>
  297. </Layout>
  298. </Layouts>
  299. </Div>
  300. <Static id="caption6" text="월별통계" class="tit_1" position="absolute 0 0 100 25"/>
  301. </Layout>
  302. </Layouts>
  303. <Objects>
  304. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  305. <ColumnInfo>
  306. <Column id="hidden" type="STRING" size="256"/>
  307. </ColumnInfo>
  308. </Dataset>
  309. <Dataset id="ds_inti" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  310. <ColumnInfo>
  311. <Column id="inti" type="STRING" size="256"/>
  312. </ColumnInfo>
  313. <Rows>
  314. <Row>
  315. <Col id="inti"/>
  316. </Row>
  317. </Rows>
  318. </Dataset>
  319. <Dataset id="ds_main_list_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  320. <ColumnInfo>
  321. <Column id="curerm" type="STRING" size="256"/>
  322. <Column id="i_month01" type="STRING" size="256"/>
  323. <Column id="o_month01" type="STRING" size="256"/>
  324. <Column id="a_month01" type="STRING" size="256"/>
  325. <Column id="i_month02" type="STRING" size="256"/>
  326. <Column id="o_month02" type="STRING" size="256"/>
  327. <Column id="a_month02" type="STRING" size="256"/>
  328. <Column id="i_month03" type="STRING" size="256"/>
  329. <Column id="o_month03" type="STRING" size="256"/>
  330. <Column id="a_month03" type="STRING" size="256"/>
  331. <Column id="i_month04" type="STRING" size="256"/>
  332. <Column id="o_month04" type="STRING" size="256"/>
  333. <Column id="a_month04" type="STRING" size="256"/>
  334. <Column id="i_month05" type="STRING" size="256"/>
  335. <Column id="o_month05" type="STRING" size="256"/>
  336. <Column id="a_month05" type="STRING" size="256"/>
  337. <Column id="i_month06" type="STRING" size="256"/>
  338. <Column id="o_month06" type="STRING" size="256"/>
  339. <Column id="a_month06" type="STRING" size="256"/>
  340. <Column id="i_month07" type="STRING" size="256"/>
  341. <Column id="o_month07" type="STRING" size="256"/>
  342. <Column id="a_month07" type="STRING" size="256"/>
  343. <Column id="i_month08" type="STRING" size="256"/>
  344. <Column id="o_month08" type="STRING" size="256"/>
  345. <Column id="a_month08" type="STRING" size="256"/>
  346. <Column id="i_month09" type="STRING" size="256"/>
  347. <Column id="o_month09" type="STRING" size="256"/>
  348. <Column id="a_month09" type="STRING" size="256"/>
  349. <Column id="i_month10" type="STRING" size="256"/>
  350. <Column id="o_month10" type="STRING" size="256"/>
  351. <Column id="a_month10" type="STRING" size="256"/>
  352. <Column id="i_month11" type="STRING" size="256"/>
  353. <Column id="o_month11" type="STRING" size="256"/>
  354. <Column id="a_month11" type="STRING" size="256"/>
  355. <Column id="i_month12" type="STRING" size="256"/>
  356. <Column id="o_month12" type="STRING" size="256"/>
  357. <Column id="a_month12" type="STRING" size="256"/>
  358. <Column id="i_monthsum" type="STRING" size="256"/>
  359. <Column id="o_monthsum" type="STRING" size="256"/>
  360. <Column id="a_monthsum" type="STRING" size="256"/>
  361. <Column id="totexeccnt" type="STRING" size="256"/>
  362. <Column id="totrsrvcnt" type="STRING" size="256"/>
  363. <Column id="comparerate" type="STRING" size="256"/>
  364. </ColumnInfo>
  365. <Rows>
  366. <Row>
  367. <Col id="curerm"/>
  368. <Col id="i_month01"/>
  369. <Col id="o_month01"/>
  370. <Col id="a_month01"/>
  371. <Col id="i_month02"/>
  372. <Col id="o_month02"/>
  373. <Col id="a_month02"/>
  374. <Col id="i_month03"/>
  375. <Col id="o_month03"/>
  376. <Col id="a_month03"/>
  377. <Col id="i_month04"/>
  378. <Col id="o_month04"/>
  379. <Col id="a_month04"/>
  380. <Col id="i_month05"/>
  381. <Col id="o_month05"/>
  382. <Col id="a_month05"/>
  383. <Col id="i_month06"/>
  384. <Col id="o_month06"/>
  385. <Col id="a_month06"/>
  386. <Col id="i_month07"/>
  387. <Col id="o_month07"/>
  388. <Col id="a_month07"/>
  389. <Col id="i_month08"/>
  390. <Col id="o_month08"/>
  391. <Col id="a_month08"/>
  392. <Col id="i_month09"/>
  393. <Col id="o_month09"/>
  394. <Col id="a_month09"/>
  395. <Col id="i_month10"/>
  396. <Col id="o_month10"/>
  397. <Col id="a_month10"/>
  398. <Col id="i_month11"/>
  399. <Col id="o_month11"/>
  400. <Col id="a_month11"/>
  401. <Col id="i_month12"/>
  402. <Col id="o_month12"/>
  403. <Col id="a_month12"/>
  404. <Col id="i_monthsum"/>
  405. <Col id="o_monthsum"/>
  406. <Col id="a_monthsum"/>
  407. <Col id="totexeccnt"/>
  408. <Col id="totrsrvcnt"/>
  409. <Col id="comparerate"/>
  410. </Row>
  411. </Rows>
  412. </Dataset>
  413. <Dataset id="ds_main_list1_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  414. <ColumnInfo>
  415. <Column id="curerm" type="STRING" size="256"/>
  416. <Column id="i_month01" type="STRING" size="256"/>
  417. <Column id="o_month01" type="STRING" size="256"/>
  418. <Column id="a_month01" type="STRING" size="256"/>
  419. <Column id="i_month02" type="STRING" size="256"/>
  420. <Column id="o_month02" type="STRING" size="256"/>
  421. <Column id="a_month02" type="STRING" size="256"/>
  422. <Column id="i_month03" type="STRING" size="256"/>
  423. <Column id="o_month03" type="STRING" size="256"/>
  424. <Column id="a_month03" type="STRING" size="256"/>
  425. <Column id="i_month04" type="STRING" size="256"/>
  426. <Column id="o_month04" type="STRING" size="256"/>
  427. <Column id="a_month04" type="STRING" size="256"/>
  428. <Column id="i_month05" type="STRING" size="256"/>
  429. <Column id="o_month05" type="STRING" size="256"/>
  430. <Column id="a_month05" type="STRING" size="256"/>
  431. <Column id="i_month06" type="STRING" size="256"/>
  432. <Column id="o_month06" type="STRING" size="256"/>
  433. <Column id="a_month06" type="STRING" size="256"/>
  434. <Column id="i_month07" type="STRING" size="256"/>
  435. <Column id="o_month07" type="STRING" size="256"/>
  436. <Column id="a_month07" type="STRING" size="256"/>
  437. <Column id="i_month08" type="STRING" size="256"/>
  438. <Column id="o_month08" type="STRING" size="256"/>
  439. <Column id="a_month08" type="STRING" size="256"/>
  440. <Column id="i_month09" type="STRING" size="256"/>
  441. <Column id="o_month09" type="STRING" size="256"/>
  442. <Column id="a_month09" type="STRING" size="256"/>
  443. <Column id="i_month10" type="STRING" size="256"/>
  444. <Column id="o_month10" type="STRING" size="256"/>
  445. <Column id="a_month10" type="STRING" size="256"/>
  446. <Column id="i_month11" type="STRING" size="256"/>
  447. <Column id="o_month11" type="STRING" size="256"/>
  448. <Column id="a_month11" type="STRING" size="256"/>
  449. <Column id="i_month12" type="STRING" size="256"/>
  450. <Column id="o_month12" type="STRING" size="256"/>
  451. <Column id="a_month12" type="STRING" size="256"/>
  452. <Column id="i_monthsum" type="STRING" size="256"/>
  453. <Column id="o_monthsum" type="STRING" size="256"/>
  454. <Column id="a_monthsum" type="STRING" size="256"/>
  455. <Column id="totexeccnt" type="STRING" size="256"/>
  456. <Column id="totrsrvcnt" type="STRING" size="256"/>
  457. <Column id="comparerate" type="STRING" size="256"/>
  458. </ColumnInfo>
  459. <Rows>
  460. <Row>
  461. <Col id="curerm"/>
  462. <Col id="i_month01"/>
  463. <Col id="o_month01"/>
  464. <Col id="a_month01"/>
  465. <Col id="i_month02"/>
  466. <Col id="o_month02"/>
  467. <Col id="a_month02"/>
  468. <Col id="i_month03"/>
  469. <Col id="o_month03"/>
  470. <Col id="a_month03"/>
  471. <Col id="i_month04"/>
  472. <Col id="o_month04"/>
  473. <Col id="a_month04"/>
  474. <Col id="i_month05"/>
  475. <Col id="o_month05"/>
  476. <Col id="a_month05"/>
  477. <Col id="i_month06"/>
  478. <Col id="o_month06"/>
  479. <Col id="a_month06"/>
  480. <Col id="i_month07"/>
  481. <Col id="o_month07"/>
  482. <Col id="a_month07"/>
  483. <Col id="i_month08"/>
  484. <Col id="o_month08"/>
  485. <Col id="a_month08"/>
  486. <Col id="i_month09"/>
  487. <Col id="o_month09"/>
  488. <Col id="a_month09"/>
  489. <Col id="i_month10"/>
  490. <Col id="o_month10"/>
  491. <Col id="a_month10"/>
  492. <Col id="i_month11"/>
  493. <Col id="o_month11"/>
  494. <Col id="a_month11"/>
  495. <Col id="i_month12"/>
  496. <Col id="o_month12"/>
  497. <Col id="a_month12"/>
  498. <Col id="i_monthsum"/>
  499. <Col id="o_monthsum"/>
  500. <Col id="a_monthsum"/>
  501. <Col id="totexeccnt"/>
  502. <Col id="totrsrvcnt"/>
  503. <Col id="comparerate"/>
  504. </Row>
  505. </Rows>
  506. </Dataset>
  507. <Dataset id="ds_inti_prcpcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  508. <ColumnInfo>
  509. <Column id="cd" type="STRING" size="256"/>
  510. <Column id="nm" type="STRING" size="256"/>
  511. </ColumnInfo>
  512. </Dataset>
  513. <Dataset id="ds_inti_execdrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  514. <ColumnInfo>
  515. <Column id="cd" type="STRING" size="256"/>
  516. <Column id="nm" type="STRING" size="256"/>
  517. </ColumnInfo>
  518. </Dataset>
  519. <Dataset id="ds_inti_curerm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  520. <ColumnInfo>
  521. <Column id="cd" type="STRING" size="256"/>
  522. <Column id="nm" type="STRING" size="256"/>
  523. </ColumnInfo>
  524. </Dataset>
  525. <Dataset id="ds_inti_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  526. <ColumnInfo>
  527. <Column id="cd" type="STRING" size="256"/>
  528. <Column id="nm" type="STRING" size="256"/>
  529. </ColumnInfo>
  530. </Dataset>
  531. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  532. <ColumnInfo>
  533. <Column id="srchdate" type="STRING" size="256"/>
  534. <Column id="suppdeptcd" type="STRING" size="256"/>
  535. <Column id="execfromdd" type="STRING" size="256"/>
  536. <Column id="exectodd" type="STRING" size="256"/>
  537. <Column id="comparefromdd" type="STRING" size="256"/>
  538. <Column id="comparetodd" type="STRING" size="256"/>
  539. <Column id="orddeptcd" type="STRING" size="256"/>
  540. <Column id="fstpatyn" type="STRING" size="256"/>
  541. <Column id="curerm" type="STRING" size="256"/>
  542. <Column id="curedr" type="STRING" size="256"/>
  543. <Column id="prcpcd" type="STRING" size="256"/>
  544. <Column id="execdrid" type="STRING" size="256"/>
  545. <Column id="srchflag" type="STRING" size="256"/>
  546. <Column id="srchioflag" type="STRING" size="256"/>
  547. <Column id="srchtab" type="STRING" size="256"/>
  548. </ColumnInfo>
  549. <Rows>
  550. <Row>
  551. <Col id="srchdate"/>
  552. <Col id="srchflag">T</Col>
  553. <Col id="fstpatyn"/>
  554. </Row>
  555. </Rows>
  556. </Dataset>
  557. </Objects>
  558. <Bind>
  559. <BindItem id="item0" compid="grp_biz.grp_sea.ipt_todd" propid="value" datasetid="ds_send" columnid="exectodd"/>
  560. <BindItem id="item1" compid="grp_biz.grp_sea.ipt_fromdd" propid="value" datasetid="ds_send" columnid="execfromdd"/>
  561. <BindItem id="item2" compid="grp_biz.grp_sea.input1" propid="value" datasetid="ds_send" columnid="comparetodd"/>
  562. <BindItem id="item3" compid="grp_biz.grp_sea.input2" propid="value" datasetid="ds_send" columnid="comparefromdd"/>
  563. <BindItem id="item4" compid="grp_biz.grp_sea.cmb_orddept" propid="value" datasetid="ds_send" columnid="orddeptcd"/>
  564. <BindItem id="item5" compid="grp_biz.grp_sea.cmb_execdrid" propid="value" datasetid="ds_send" columnid="execdrid"/>
  565. <BindItem id="item6" compid="grp_biz.grp_sea.cmb_curerm" propid="value" datasetid="ds_send" columnid="curerm"/>
  566. <BindItem id="item7" compid="grp_biz.grp_sea.radio1" propid="value" datasetid="ds_send" columnid="fstpatyn"/>
  567. <BindItem id="item8" compid="grp_biz.grp_sea.radio3" propid="value" datasetid="ds_send" columnid="srchioflag"/>
  568. </Bind>
  569. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  570. * System Name :
  571. * Job Name :
  572. * Creator :
  573. * Make Date : 2016-09-30
  574. * Description :
  575. *---------------------------------------------------------------------------------------
  576. * Modify Date Modifier Modify Description
  577. *---------------------------------------------------------------------------------------
  578. * 2016-09-30 Live Converter TF->XP
  579. *
  580. *---------------------------------------------------------------------------------------
  581. ****************************************************************************************/
  582. //=======================================================================================
  583. // Lib Include
  584. //---------------------------------------------------------------------------------------
  585. include "com_commonxp::comm_main.xjs";
  586. include "ast_examcurexp::AEZ0001.xjs";
  587. //=======================================================================================
  588. // Global Form Variable
  589. //---------------------------------------------------------------------------------------
  590. var arErrorCode = new HashArray();
  591. var gSuppdeptcd = "";
  592. var splitIndex = 0;
  593. //=======================================================================================
  594. // Function
  595. //---------------------------------------------------------------------------------------
  596. /****************************************************************************************
  597. * Argument : N/A
  598. * Description :
  599. ****************************************************************************************/
  600. function setTitle() {
  601. ds_main_list_item.clearData();
  602. ds_main_list1_item.clearData();
  603. if(splitIndex == 0) {
  604. grp_biz.switch1.case1.grd_list.splitContentsCell("Head",0,1,0,1,true);
  605. grp_biz.switch1.case2.grd_list1.splitContentsCell("Head",0,1,0,1,true);
  606. } else {
  607. grp_biz.switch1.case1.grd_list.splitContentsCell("Head",0,1,0,splitIndex,true);
  608. grp_biz.switch1.case2.grd_list1.splitContentsCell("Head",0,1,0,splitIndex,true);
  609. grp_biz.switch1.case1.grd_list.splitContentsCell("Head",0,splitIndex+1,0,12,true);
  610. grp_biz.switch1.case2.grd_list1.splitContentsCell("Head",0,splitIndex+1,0,12,true);
  611. }
  612. // 치료 Title Setting
  613. ds_send.setColumn(0,"execfromdd",grp_biz.grp_sea.ipt_fromdd.getData())
  614. ds_send.setColumn(0,"exectodd",grp_biz.grp_sea.ipt_todd.getData())
  615. var stYearMonth = ds_send.getColumn(0, "execfromdd") + "01";
  616. var dtYearMonth = stYearMonth.toDate();
  617. var stEndMonth = ds_send.getColumn(0, "exectodd") + "01";
  618. var dtEndMonth = stEndMonth.toDate();
  619. var stYearHeader = "치료실^ ";
  620. var stMonthHeader = "치료실^ ";
  621. var stYearHeader1 = "처방코드^";
  622. var stMonthHeader1 = "처방코드^";
  623. for (var i = 1; i <= 12; i++) {
  624. // 년도
  625. var stYear = dtYearMonth.getDateFormat("YYYY");
  626. // 월
  627. var stMonth = dtYearMonth.getDateFormat("MM");
  628. stYearHeader = stYear + "년 ";
  629. stMonthHeader = stMonth + "월 ";
  630. // stYearHeader1 = stYear + "년^";
  631. // stMonthHeader1 = stMonth + "월^";
  632. grp_biz.switch1.case1.grd_list.setCellProperty("Head",i,"text",stYearHeader);
  633. grp_biz.switch1.case2.grd_list1.setCellProperty("Head",i,"text",stYearHeader);
  634. grp_biz.switch1.case1.grd_list.setCellProperty("Head",i+16,"text",stMonthHeader);
  635. grp_biz.switch1.case2.grd_list1.setCellProperty("Head",i+16,"text",stMonthHeader);
  636. if(dtYearMonth.getDateFormat("YYYYMM") > dtEndMonth.getDateFormat("YYYYMM")) {
  637. grp_biz.switch1.case1.grd_list.setFormatColProperty(i,"size",0);
  638. grp_biz.switch1.case2.grd_list1.setFormatColProperty(i,"size",0);
  639. } else {
  640. grp_biz.switch1.case1.grd_list.setFormatColProperty(i,"size",60);
  641. grp_biz.switch1.case2.grd_list1.setFormatColProperty(i,"size",60);
  642. }
  643. dtYearMonth.getAddDate(1, "M");
  644. }
  645. var titletext = "";
  646. var startcol = 0;
  647. var changeYn = "N"
  648. for(var i = 12 ; i >= 1 ; i--) {
  649. var stYearHeader2 = grp_biz.switch1.case1.grd_list.getCellProperty("Head",i,"text");
  650. if(i == 12) {
  651. startcol = i;
  652. titletext = stYearHeader2;
  653. } else if(i < 12 && titletext != stYearHeader2 && changeYn == "N") {
  654. grp_biz.switch1.case1.grd_list.mergeContentsCell("Head",0,i+1,0,startcol,i+1,false);
  655. grp_biz.switch1.case2.grd_list1.mergeContentsCell("Head",0,i+1,0,startcol,i+1,false);
  656. startcol = i;
  657. titletext = stYearHeader2;
  658. changeYn = "Y";
  659. splitIndex = i;
  660. } else if(i == 1 && startcol == 12){
  661. grp_biz.switch1.case1.grd_list.mergeContentsCell("Head",0,1,0,12,1,false);
  662. grp_biz.switch1.case2.grd_list1.mergeContentsCell("Head",0,1,0,12,1,false);
  663. splitIndex = 0;
  664. } else if(i == 1 && changeYn == "Y"){
  665. grp_biz.switch1.case1.grd_list.mergeContentsCell("Head",0,1,0,startcol,1,false);
  666. grp_biz.switch1.case2.grd_list1.mergeContentsCell("Head",0,1,0,startcol,1,false);
  667. }
  668. }
  669. // stYearHeader = stYearHeader + "합계^비교기간건수^증감^증감율|";
  670. // stMonthHeader = stMonthHeader + "합계^비교기간건수^증감^증감율";
  671. // stYearHeader1 = stYearHeader1 + "합계^비교기간건수^증감^증감율|";
  672. // stMonthHeader1 = stMonthHeader1 + "합계^비교기간건수^증감^증감율";
  673. // grp_biz.switch1.case1.grd_list.caption = stYearHeader + stMonthHeader;
  674. // grp_biz.switch1.case2.grd_list1.caption = stYearHeader1 + stMonthHeader1;
  675. }
  676. //=======================================================================================
  677. // Event
  678. //---------------------------------------------------------------------------------------
  679. /****************************************************************************************
  680. * Components : Form
  681. * Description : 화면 처음 초기화시 폼초기화
  682. ****************************************************************************************/
  683. function SMAES03400_onload(obj:Form, e:LoadEventInfo)
  684. {
  685. frmf_initForm(obj); // 폼 초기화
  686. lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
  687. gSuppdeptcd = frmf_getParameter("AST_DEPTCD");
  688. // 진료과/진료의 조회
  689. dsf_createDs("ds_init_disccd");
  690. dsf_createDs("ds_init_insukind");
  691. dsf_createDs("ds_init_suppkind");
  692. dsf_createDs("ds_init_orddeptcd");
  693. dsf_createDs("ds_init_orddrid");
  694. dsf_createDs("ds_init_centcdlist");
  695. dsf_createDs("ds_init_subdeptcdlist");
  696. dsf_createDs("ds_init_reducd");
  697. dsf_createDs("ds_init_uncocd");
  698. dsf_createDs("ds_init_overcapa");
  699. dsf_createDs("ds_init_hospgrde");
  700. dsf_createDs("ds_init_P0022");
  701. dsf_createDs("ds_init_naticd");
  702. dsf_createDsRow("ds_req", [
  703. {col:"sess_posinstcd", type:"STRING", size:256, val:""}
  704. , {col:"dridsorttype", type:"STRING", size:256, val:""}
  705. ]);
  706. var oParam = {};
  707. oParam.id = "TRPMOCOM01";
  708. oParam.service = "pamcomnapp.PamComn";
  709. oParam.method = "reqGetComCD";
  710. oParam.inds = "req=ds_req";
  711. oParam.outds = "ds_init_disccd=disccd ds_init_insukind=insukind ds_init_suppkind=suppkind ds_init_orddeptcd=orddeptcd ds_init_orddrid=orddrid "
  712. +"ds_init_centcdlist=centcd ds_init_subdeptcdlist=subdeptcd ds_init_reducd=reducd ds_init_uncocd=uncocd ds_init_overcapa=overcapa "
  713. +"ds_init_hospgrde=hospgrde ds_init_P0022=P0022 ds_init_naticd=naticd";
  714. oParam.async = false;
  715. oParam.callback = "cf_TRPMOCOM01";
  716. tranf_submit(oParam);
  717. dsf_createDsRow("ds_req", [
  718. {col:"suppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
  719. , {col:"rbasecdflag", type:"STRING", size:256, val:"0"}
  720. ]);
  721. var oParam = {};
  722. oParam.id = "TRAES09000";
  723. oParam.service = "examcurestatsapp.RehbMediSc";
  724. oParam.method = "reqGetCode";
  725. oParam.inds = "req=ds_req";
  726. oParam.outds = "ds_inti_execdrid=execdrid ds_inti_curerm=curerm ds_inti_prcpcd=prcpcd ds_inti_orddeptcd=orddeptcd";
  727. oParam.async = false;
  728. oParam.callback = "cf_TRAES09000";
  729. tranf_submit(oParam);
  730. ds_send.setColumn( 0, "suppdeptcd", gSuppdeptcd);
  731. var fromdd = utlf_getCurrentDate().substr(0,4) + "01"
  732. var todd = utlf_getCurrentDate().substr(0,4) + "12";
  733. var comparefromdd = utlf_getCurrentDate().substr(0,6).toDate().getAddDate(-1,"Y").getDateFormat("YYYY") + "01";
  734. var comparetodd = comparefromdd.substr(0,4) + todd.substr(4,2);
  735. frmf_addComboItem("grp_biz.grp_sea.cmb_orddept","--전체--","","above");
  736. frmf_addComboItem("grp_biz.grp_sea.cmb_curerm","--전체--","","above");
  737. // frmf_addComboItem("grp_biz.grp_sea.cmb_prcpcd","--전체--","","above");
  738. frmf_addComboItem("grp_biz.grp_sea.cmb_execdrid","--전체--","","above");
  739. grp_biz.grp_sea.cmb_curerm.index = 0;
  740. grp_biz.grp_sea.cmb_execdrid.index = 0;
  741. grp_biz.grp_sea.cmb_orddept.index = 0;
  742. // grp_biz.grp_sea.cmb_prcpcd.index = 0;
  743. ds_main_list_item.clearData();
  744. ds_send.setColumn( 0, "srchflag","P");
  745. ds_send.setColumn( 0, "srchioflag","A");
  746. ds_send.setColumn( 0, "execfromdd", fromdd);
  747. ds_send.setColumn( 0, "exectodd", todd);
  748. ds_send.setColumn( 0, "comparefromdd",comparefromdd);
  749. ds_send.setColumn( 0, "comparetodd",comparetodd);
  750. grp_biz.grp_sea.ipt_fromdd.setData(fromdd);
  751. grp_biz.grp_sea.ipt_todd.setData(todd);
  752. grp_biz.grp_sea.input2.setData(comparefromdd);
  753. grp_biz.grp_sea.input1.setData(comparetodd);
  754. setTitle();
  755. }
  756. function cf_TRPMOCOM01(sSvcId, nErrorCode, sErrorMsg) {
  757. if(nErrorCode < 0) return;
  758. ds_init_orddrid.updateColID("nmspecyn","nmsp");
  759. }
  760. function cf_TRAES09000(sSvcId, nErrorCode, sErrorMsg) {
  761. if(nErrorCode < 0) return;
  762. ds_inti_execdrid.updateColID("basecd","cd");
  763. ds_inti_execdrid.updateColID("basecdflagdesc","nm");
  764. ds_inti_curerm.updateColID("basecd","cd");
  765. ds_inti_curerm.updateColID("basecdflagdesc","nm");
  766. ds_inti_prcpcd.updateColID("basecd","cd");
  767. ds_inti_prcpcd.updateColID("basecdflagdesc","nm");
  768. }
  769. function grp_biz_grp_sea_ipt_fromdd_onlbuttonup(obj:cp_monthCal, e:MouseEventInfo)
  770. {
  771. var curDate = obj.getData().toDate().getAddDate(12,"M").getDateFormat("YYYYMM");
  772. grp_biz.grp_sea.ipt_todd.setData(curDate);
  773. setTitle();
  774. }
  775. function grp_biz_grp_sea_input2_onlbuttonup(obj:cp_monthCal, e:MouseEventInfo)
  776. {
  777. var curDate = obj.getData().toDate().getAddDate(12,"M").getDateFormat("YYYYMM");
  778. grp_biz.grp_sea.input1.setData(curDate);
  779. setTitle();
  780. }
  781. // function grp_biz_grp_sea_cmb_curerm_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  782. // {
  783. // //2010.07.13 치료실,처방코드별로 조회 - 박재영
  784. // ds_inti_prcpcd.clearData();
  785. //
  786. // dsf_createDsRow("ds_req", [
  787. // {col:"suppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
  788. // , {col:"rbasecdflag", type:"STRING", size:256, val:"0"}
  789. // , {col:"curerm", type:"STRING", size:256, val:e.postvalue}
  790. // ]);
  791. // var oParam = {};
  792. // oParam.id = "TRAES09002";
  793. // oParam.service = "examcurestatsapp.RehbMediSc";
  794. // oParam.method = "reqGetCode";
  795. // oParam.inds = "req=ds_req";
  796. // oParam.outds = "ds_inti_prcpcd=prcpcd";
  797. // oParam.async = false;
  798. // oParam.callback = "cf_TRAES09002";
  799. //
  800. // tranf_submit(oParam);
  801. //
  802. // frmf_addComboItem("grp_biz.grp_sea.cmb_prcpcd","--전체--","","above");
  803. // grp_biz.grp_sea.cmb_prcpcd.index = 0;
  804. // }
  805. //
  806. // function cf_TRAES09002(sSvcId, nErrorCode, sErrorMsg) {
  807. // if(nErrorCode < 0) return;
  808. // ds_inti_prcpcd.updateColID("basecd","cd");
  809. // ds_inti_prcpcd.updateColID("basecdflagdesc","nm");
  810. // }
  811. function grp_biz_grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  812. {
  813. ds_main_list_item.clearData();
  814. //R:치료실,C:치료코드,D:처방과,E:치료사
  815. dsf_createDs("ds_req1")
  816. ds_req1.copyData(ds_send);
  817. ds_req1.setColumn( 0, "srchtab","R");
  818. dsf_setFixVal(ds_req1, "systflag:C");
  819. var oParam = {};
  820. oParam.id = "TRAES01301";
  821. oParam.service = "examcurestatsapp.RehbMediSc";
  822. oParam.method = "reqGetRehbStats";
  823. oParam.inds = "req=ds_req1";
  824. oParam.outds = "ds_main_list_item=item";
  825. oParam.async = true;
  826. //oParam.callback = "cf_TRAES01301";
  827. tranf_submit(oParam);
  828. dsf_createDs("ds_req2")
  829. ds_req2.copyData(ds_send);
  830. ds_req2.setColumn( 0, "srchtab","D");
  831. dsf_setFixVal(ds_req2, "systflag:C");
  832. var oParam = {};
  833. oParam.id = "TRAES01302";
  834. oParam.service = "examcurestatsapp.RehbMediSc";
  835. oParam.method = "reqGetRehbStats";
  836. oParam.inds = "req=ds_req2";
  837. oParam.outds = "ds_main_list1_item=item";
  838. oParam.async = true;
  839. //oParam.callback = "cf_TRAES01302";
  840. tranf_submit(oParam);
  841. }
  842. function lf_setSum(colNm){
  843. var totsum = 0 ;
  844. if(colNm == "comparerate") {
  845. var totrsrvcnt = ds_main_list_item.getSum("totrsrvcnt");
  846. var totexeccnt = ds_main_list_item.getSum("totexeccnt");
  847. totsum = (totrsrvcnt / totexeccnt * 100);
  848. totsum = totsum.toString().getRound(-1,"HALF_UP");
  849. } else {
  850. totsum = ds_main_list_item.getSum(colNm);
  851. }
  852. return totsum;
  853. }
  854. function lf_setSum2(colNm){
  855. var totsum = 0 ;
  856. if(colNm == "comparerate") {
  857. var totrsrvcnt = ds_main_list1_item.getSum("totrsrvcnt");
  858. var totexeccnt = ds_main_list1_item.getSum("totexeccnt");
  859. totsum = (totrsrvcnt / totexeccnt * 100);
  860. totsum = totsum.toString().getRound(-1,"HALF_UP");
  861. } else {
  862. totsum = ds_main_list1_item.getSum(colNm);
  863. }
  864. return totsum;
  865. }
  866. function grp_biz_btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  867. {
  868. if(grp_biz.switch1.tabindex == 0) {
  869. if( ds_main_list_item.rowcount > 0 ){
  870. grdf_exportExcel(grp_biz.switch1.case1.grd_list, "SheetName", "SheetName", false, "", "user", false);
  871. } else {
  872. sysf_messageBox("조회된 데이터가 ", "I004");
  873. }
  874. } else {
  875. if( ds_main_list1_item.rowcount > 0 ){
  876. grdf_exportExcel(grp_biz.switch1.case2.grd_list1, "SheetName", "SheetName", false, "", "user", false);
  877. } else {
  878. sysf_messageBox("조회된 데이터가 ", "I004");
  879. }
  880. }
  881. }
  882. ]]></Script>
  883. </Form>
  884. </FDL>