SMAES02200_핵의학체내방사선동위원소치료현황.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAES02200" position="absolute 0 0 1201 707" titletext="핵의학체내 방사선 동위원소 치료현황(일별)" oninit="SMAES02200_oninit" onload="SMAES02200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="핵의학체내 방사선 동위원소 치료현황(일별)" class="tit_1" position="absolute 0 0 335 23"/>
  8. <Div id="grp_sea" anchor="left top right" taborder="1" class="div_SA" position="absolute 0 24 1195 64">
  9. <Layouts>
  10. <Layout>
  11. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1107 7 1113 31" anchor="top right"/>
  12. <Button id="btn_sea" taborder="4" text="조회" class="btn1" position="absolute 1120 8 1176 30" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
  13. <Static id="caption3" text="일자 :" class="search_name" position="absolute 15 11 101 28"/>
  14. <Calendar id="input4" taborder="5" class="input_default" position="absolute 80 10 180 29" mask="yyyy-mm" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" onchanged="grp_sea_input4_onchanged" autoselect="true"/>
  15. </Layout>
  16. </Layouts>
  17. </Div>
  18. <Static id="caption1" text="핵의학체내 방사선 동위원소 치료현황(일별)" class="tit_2" position="absolute 0 77 286 99"/>
  19. <Shape id="line1" class="line_10" position="absolute 0 93 1195 99" anchor="left top right"/>
  20. <Button id="btn_excsave" taborder="2" text="엑셀저장" class="btn7" position="absolute 1114 74 1194 93" anchor="top right" onclick="btn_excsave_onclick"/>
  21. <Grid id="grd_list" taborder="3" binddataset="ds_main_list_item" useinputpanel="false" position="absolute 0 98 1195 488" anchor="all">
  22. <Formats>
  23. <Format id="default">
  24. <Columns>
  25. <Column size="25" band="left"/>
  26. <Column size="91" band="left"/>
  27. <Column size="74" band="left"/>
  28. <Column size="92" band="left"/>
  29. <Column size="40"/>
  30. <Column size="40"/>
  31. <Column size="40"/>
  32. <Column size="40"/>
  33. <Column size="40"/>
  34. <Column size="40"/>
  35. <Column size="40"/>
  36. <Column size="40"/>
  37. <Column size="40"/>
  38. <Column size="40"/>
  39. <Column size="40"/>
  40. <Column size="40"/>
  41. <Column size="40"/>
  42. <Column size="40"/>
  43. <Column size="40"/>
  44. <Column size="40"/>
  45. <Column size="40"/>
  46. <Column size="40"/>
  47. <Column size="40"/>
  48. <Column size="40"/>
  49. <Column size="40"/>
  50. <Column size="40"/>
  51. <Column size="40"/>
  52. <Column size="40"/>
  53. <Column size="40"/>
  54. <Column size="40"/>
  55. <Column size="40"/>
  56. <Column size="40"/>
  57. <Column size="40"/>
  58. <Column size="40"/>
  59. <Column size="40"/>
  60. <Column size="40"/>
  61. </Columns>
  62. <Rows>
  63. <Row size="24" band="head"/>
  64. <Row size="24"/>
  65. </Rows>
  66. <Band id="head">
  67. <Cell/>
  68. <Cell col="1" colspan="2" taborder="undefined"/>
  69. <Cell col="3" text="처방량"/>
  70. <Cell col="4" text="1일"/>
  71. <Cell col="5" text="2일"/>
  72. <Cell col="6" text="3일"/>
  73. <Cell col="7" text="4일"/>
  74. <Cell col="8" text="5일"/>
  75. <Cell col="9" text="6일"/>
  76. <Cell col="10" text="7일"/>
  77. <Cell col="11" text="8일"/>
  78. <Cell col="12" text="9일"/>
  79. <Cell col="13" text="10일"/>
  80. <Cell col="14" text="11일"/>
  81. <Cell col="15" text="12일"/>
  82. <Cell col="16" text="13일"/>
  83. <Cell col="17" text="14일"/>
  84. <Cell col="18" text="15일"/>
  85. <Cell col="19" text="16일"/>
  86. <Cell col="20" text="17일"/>
  87. <Cell col="21" text="18일"/>
  88. <Cell col="22" text="19일"/>
  89. <Cell col="23" text="20일"/>
  90. <Cell col="24" text="21일"/>
  91. <Cell col="25" text="22일"/>
  92. <Cell col="26" text="23일"/>
  93. <Cell col="27" text="24일"/>
  94. <Cell col="28" text="25일"/>
  95. <Cell col="29" text="26일"/>
  96. <Cell col="30" text="27일"/>
  97. <Cell col="31" text="28일"/>
  98. <Cell col="32" text="29일"/>
  99. <Cell col="33" text="30일"/>
  100. <Cell col="34" text="31일"/>
  101. <Cell col="35" text="합계"/>
  102. </Band>
  103. <Band id="body">
  104. <Cell celltype="head" expr="currow+1"/>
  105. <Cell col="1" text="bind:ioflag"/>
  106. <Cell col="2" text="bind:roomcd"/>
  107. <Cell col="3" displaytype="number" text="bind:drugqty"/>
  108. <Cell col="4" displaytype="number" text="bind:day01"/>
  109. <Cell col="5" displaytype="number" text="bind:day02"/>
  110. <Cell col="6" displaytype="number" text="bind:day03"/>
  111. <Cell col="7" displaytype="number" text="bind:day04"/>
  112. <Cell col="8" displaytype="number" text="bind:day05"/>
  113. <Cell col="9" displaytype="number" text="bind:day06"/>
  114. <Cell col="10" displaytype="number" text="bind:day07"/>
  115. <Cell col="11" displaytype="number" text="bind:day08"/>
  116. <Cell col="12" displaytype="number" text="bind:day09"/>
  117. <Cell col="13" displaytype="number" text="bind:day10"/>
  118. <Cell col="14" displaytype="number" text="bind:day11"/>
  119. <Cell col="15" displaytype="number" text="bind:day12"/>
  120. <Cell col="16" displaytype="number" text="bind:day13"/>
  121. <Cell col="17" displaytype="number" text="bind:day14"/>
  122. <Cell col="18" displaytype="number" text="bind:day15"/>
  123. <Cell col="19" displaytype="number" text="bind:day16"/>
  124. <Cell col="20" displaytype="number" text="bind:day17"/>
  125. <Cell col="21" displaytype="number" text="bind:day18"/>
  126. <Cell col="22" displaytype="number" text="bind:day19"/>
  127. <Cell col="23" displaytype="number" text="bind:day20"/>
  128. <Cell col="24" displaytype="number" text="bind:day21"/>
  129. <Cell col="25" displaytype="number" text="bind:day22"/>
  130. <Cell col="26" displaytype="number" text="bind:day23"/>
  131. <Cell col="27" displaytype="number" text="bind:day24"/>
  132. <Cell col="28" displaytype="number" text="bind:day25"/>
  133. <Cell col="29" displaytype="number" text="bind:day26"/>
  134. <Cell col="30" displaytype="number" text="bind:day27"/>
  135. <Cell col="31" displaytype="number" text="bind:day28"/>
  136. <Cell col="32" displaytype="number" text="bind:day29"/>
  137. <Cell col="33" displaytype="number" text="bind:day30"/>
  138. <Cell col="34" displaytype="number" text="bind:day31"/>
  139. <Cell col="35" displaytype="number" text="bind:total"/>
  140. </Band>
  141. </Format>
  142. </Formats>
  143. </Grid>
  144. <Grid id="grd_isublist" taborder="4" binddataset="ds_main_isublist_item" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 492 258 632" anchor="left bottom">
  145. <Formats>
  146. <Format id="default">
  147. <Columns>
  148. <Column size="75"/>
  149. <Column size="80"/>
  150. <Column size="80"/>
  151. </Columns>
  152. <Rows>
  153. <Row size="24" band="head"/>
  154. <Row size="24"/>
  155. </Rows>
  156. <Band id="head">
  157. <Cell text="구분"/>
  158. <Cell col="1" text="처방량"/>
  159. <Cell col="2" text="건수"/>
  160. </Band>
  161. <Band id="body">
  162. <Cell text="bind:ioflag"/>
  163. <Cell col="1" text="bind:drugqty"/>
  164. <Cell col="2" text="bind:cnt"/>
  165. </Band>
  166. </Format>
  167. </Formats>
  168. </Grid>
  169. <Grid id="grd_osublist" taborder="5" binddataset="ds_main_osublist_item" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 262 492 520 632" anchor="left bottom">
  170. <Formats>
  171. <Format id="default">
  172. <Columns>
  173. <Column size="75"/>
  174. <Column size="90"/>
  175. <Column size="90"/>
  176. </Columns>
  177. <Rows>
  178. <Row size="24" band="head"/>
  179. <Row size="24"/>
  180. </Rows>
  181. <Band id="head">
  182. <Cell text="구분"/>
  183. <Cell col="1" text="처방량"/>
  184. <Cell col="2" text="건수"/>
  185. </Band>
  186. <Band id="body">
  187. <Cell text="bind:ioflag"/>
  188. <Cell col="1" text="bind:drugqty"/>
  189. <Cell col="2" text="bind:cnt"/>
  190. </Band>
  191. </Format>
  192. </Formats>
  193. </Grid>
  194. <Static id="caption2" text="외래합계" class="cell_1" position="absolute 260 638 387 661" anchor="left bottom"/>
  195. <Edit id="input2" taborder="6" position="absolute 389 640 518 659" anchor="left bottom" style="align:right middle;"/>
  196. <Edit id="input3" taborder="7" position="absolute 129 666 518 685" anchor="left bottom" style="align:right middle;"/>
  197. <Static id="caption4" text="총합계" class="cell_1" position="absolute 0 664 127 687" anchor="left bottom"/>
  198. <Static id="caption8" text="병실합계" class="cell_1" position="absolute 0 638 127 661" anchor="left bottom"/>
  199. <Edit id="input1" taborder="8" position="absolute 129 640 258 659" anchor="left bottom" style="align:right middle;"/>
  200. </Layout>
  201. </Layouts>
  202. <Objects>
  203. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  204. <ColumnInfo>
  205. <Column id="srchdate" type="STRING" size="256"/>
  206. <Column id="suppdeptcd" type="STRING" size="256"/>
  207. <Column id="initexcuroomgrp" type="STRING" size="256"/>
  208. <Column id="srchyy" type="STRING" size="256"/>
  209. <Column id="srchmm" type="STRING" size="256"/>
  210. </ColumnInfo>
  211. <Rows>
  212. <Row>
  213. <Col id="srchdate"/>
  214. <Col id="suppdeptcd"/>
  215. <Col id="initexcuroomgrp"/>
  216. <Col id="srchyy"/>
  217. <Col id="srchmm"/>
  218. </Row>
  219. </Rows>
  220. </Dataset>
  221. <Dataset id="ds_main_list_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  222. <ColumnInfo>
  223. <Column id="ioflag" type="STRING" size="256" sumtext="IOFLAG"/>
  224. <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
  225. <Column id="drugqty" type="STRING" size="256" sumtext="처방량"/>
  226. <Column id="day01" type="STRING" size="256" sumtext="1일"/>
  227. <Column id="day02" type="STRING" size="256" sumtext="2일"/>
  228. <Column id="day03" type="STRING" size="256" sumtext="3일"/>
  229. <Column id="day04" type="STRING" size="256" sumtext="4일"/>
  230. <Column id="day05" type="STRING" size="256" sumtext="5일"/>
  231. <Column id="day06" type="STRING" size="256" sumtext="6일"/>
  232. <Column id="day07" type="STRING" size="256" sumtext="7일"/>
  233. <Column id="day08" type="STRING" size="256" sumtext="8일"/>
  234. <Column id="day09" type="STRING" size="256" sumtext="9일"/>
  235. <Column id="day10" type="STRING" size="256" sumtext="10일"/>
  236. <Column id="day11" type="STRING" size="256" sumtext="11일"/>
  237. <Column id="day12" type="STRING" size="256" sumtext="12일"/>
  238. <Column id="day13" type="STRING" size="256" sumtext="13일"/>
  239. <Column id="day14" type="STRING" size="256" sumtext="14일"/>
  240. <Column id="day15" type="STRING" size="256" sumtext="15일"/>
  241. <Column id="day16" type="STRING" size="256" sumtext="16일"/>
  242. <Column id="day17" type="STRING" size="256" sumtext="17일"/>
  243. <Column id="day18" type="STRING" size="256" sumtext="18일"/>
  244. <Column id="day19" type="STRING" size="256" sumtext="19일"/>
  245. <Column id="day20" type="STRING" size="256" sumtext="20일"/>
  246. <Column id="day21" type="STRING" size="256" sumtext="21일"/>
  247. <Column id="day22" type="STRING" size="256" sumtext="22일"/>
  248. <Column id="day23" type="STRING" size="256" sumtext="23일"/>
  249. <Column id="day24" type="STRING" size="256" sumtext="24일"/>
  250. <Column id="day25" type="STRING" size="256" sumtext="25일"/>
  251. <Column id="day26" type="STRING" size="256" sumtext="26일"/>
  252. <Column id="day27" type="STRING" size="256" sumtext="27일"/>
  253. <Column id="day28" type="STRING" size="256" sumtext="28일"/>
  254. <Column id="day29" type="STRING" size="256" sumtext="29일"/>
  255. <Column id="day30" type="STRING" size="256" sumtext="30일"/>
  256. <Column id="day31" type="STRING" size="256" sumtext="31일"/>
  257. <Column id="total" type="STRING" size="256" sumtext="합계"/>
  258. </ColumnInfo>
  259. </Dataset>
  260. <Dataset id="ds_main_sublist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  261. <ColumnInfo>
  262. <Column id="ioflag" type="STRING" size="256" sumtext="IOFLAG"/>
  263. <Column id="drugqty" type="STRING" size="256" sumtext="처방량"/>
  264. <Column id="cnt" type="STRING" size="256" sumtext="건수"/>
  265. <Column id="total" type="STRING" size="256" sumtext="합계"/>
  266. </ColumnInfo>
  267. </Dataset>
  268. <FilteredDataset id="ds_main_isublist_item" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" binddataset="@ds_main_sublist_item" filterstr="ioflag == '입원'"/>
  269. <FilteredDataset id="ds_main_osublist_item" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" binddataset="@ds_main_sublist_item" filterstr="ioflag == '외래'"/>
  270. <Dataset id="ds_main_examsum" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  271. <ColumnInfo>
  272. <Column id="isum" type="STRING" size="256"/>
  273. <Column id="osum" type="STRING" size="256"/>
  274. <Column id="total" type="STRING" size="256"/>
  275. </ColumnInfo>
  276. <Rows>
  277. <Row/>
  278. </Rows>
  279. </Dataset>
  280. </Objects>
  281. <Bind>
  282. <BindItem id="item0" compid="grp_sea.input4" propid="value" datasetid="ds_send" columnid="srchdate"/>
  283. <BindItem id="item1" compid="input1" propid="value" datasetid="ds_main_examsum" columnid="isum"/>
  284. <BindItem id="item2" compid="input2" propid="value" datasetid="ds_main_examsum" columnid="osum"/>
  285. <BindItem id="item3" compid="input3" propid="value" datasetid="ds_main_examsum" columnid="total"/>
  286. </Bind>
  287. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  288. * System Name :
  289. * Job Name :
  290. * Creator :
  291. * Make Date : 2015-11-13
  292. * Description :
  293. *---------------------------------------------------------------------------------------
  294. * Modify Date Modifier Modify Description
  295. *---------------------------------------------------------------------------------------
  296. * 2015-11-13 Live Converter TF->XP
  297. *
  298. *---------------------------------------------------------------------------------------
  299. ****************************************************************************************/
  300. include "com_commonxp::comm_main.xjs";
  301. include "ast_examcurexp::AEZ0001.xjs";
  302. var vSuppdeptcd;
  303. function SMAES02200_oninit(obj:Form, e:InitEventInfo)
  304. {
  305. frmf_initForm(obj);
  306. }
  307. function SMAES02200_onload(obj:Form, e:LoadEventInfo)
  308. {
  309. grdf_initGrid(grd_isublist);
  310. grdf_initGrid(grd_list);
  311. grdf_initGrid(grd_osublist);
  312. lf_aezfSetSuppDeptcd();
  313. vSuppdeptcd = frmf_getPrestDeptCd();
  314. ds_send.setColumn(0, "suppdeptcd", vSuppdeptcd);
  315. ds_send.setColumn(0, "srchdate", utlf_getCurrentDate().substr(0,6));
  316. }
  317. function grp_sea_input4_onchanged(obj:Calendar, e:ChangeEventInfo)
  318. {
  319. ds_send.setColumn(0, "srchdate", String(obj.value).substr(0,6))
  320. }
  321. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  322. {
  323. ds_main_isublist_item.clearData();
  324. ds_main_list_item.clearData();
  325. ds_main_osublist_item.clearData();
  326. var oParam = {};
  327. oParam.id = "TRAES02200";
  328. oParam.service = "examcurestatsapp.NmedStats";
  329. oParam.method = "reqGetNmedStatsRayDDList";
  330. oParam.inds = "req=ds_send";
  331. oParam.outds = "ds_main_list_item=item ds_main_sublist_item=sublist";
  332. oParam.async = false;
  333. oParam.callback = "cf_TRAES02200";
  334. tranf_submit(oParam);
  335. }
  336. function cf_TRAES02200(sSvcId, nErrorCode, sErrorMsg)
  337. {
  338. if(nErrorCode < 0)
  339. {
  340. return;
  341. }
  342. else
  343. {
  344. var rowCnt = ds_main_sublist_item.rowcount;
  345. var ioflag = "";
  346. var iSum = 0;
  347. var oSum = 0;
  348. var total = 0;
  349. for (var i = 0; i < rowCnt; i++)
  350. {
  351. ioflag = ds_main_sublist_item.getColumn(i, "ioflag");
  352. if (ioflag == "입원")
  353. {
  354. iSum = iSum + eval(ds_main_sublist_item.getColumn(i, "cnt"));
  355. }
  356. else if (ioflag == "외래")
  357. {
  358. oSum = oSum + eval(ds_main_sublist_item.getColumn(i, "cnt"));
  359. }
  360. }
  361. total = eval(iSum) + eval(oSum);
  362. ds_main_examsum.setColumn(0, "isum", iSum);
  363. ds_main_examsum.setColumn(0, "osum", oSum);
  364. ds_main_examsum.setColumn(0, "total", total);
  365. }
  366. }
  367. function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  368. {
  369. grdf_exportExcel(grd_list, "", "");
  370. }
  371. ]]></Script>
  372. </Form>
  373. </FDL>