SMAES01300_재활의학팀월별통계.xfdl 51 KB

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