SMAES00200_기능검사실통계(기본).xfdl 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAES00200" position="absolute 0 0 1256 805" titletext="기능검사실 통계(기본)" oninit="model1_oninit" onload="SMAES00200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Tab id="switch1" taborder="3" tabindex="0" position="absolute 0 122 1256 805" anchor="all" positiontype="position" onchanged="switch1_onchanged">
  8. <Tabpages>
  9. <Tabpage id="case1" text="검사">
  10. <Layouts>
  11. <Layout>
  12. <Grid id="grd_list" taborder="0" useinputpanel="false" position="absolute 0 0 1256 656" autofittype="col" anchor="all" binddataset="ds_grid_grd_list" positiontype="position" autosizingtype="none" cellsizingtype="col" oncolresized="switch1_case1_grd_list_oncolresized">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="40"/>
  17. <Column size="296"/>
  18. <Column size="85"/>
  19. <Column size="85"/>
  20. <Column size="100"/>
  21. <Column size="100"/>
  22. <Column size="100"/>
  23. <Column size="100"/>
  24. <Column size="86"/>
  25. <Column size="0"/>
  26. <Column size="77"/>
  27. <Column size="100"/>
  28. <Column size="0"/>
  29. </Columns>
  30. <Rows>
  31. <Row size="24" band="head"/>
  32. <Row size="24" band="head"/>
  33. <Row size="24"/>
  34. <Row size="24" band="summ"/>
  35. </Rows>
  36. <Band id="head">
  37. <Cell rowspan="2"/>
  38. <Cell col="1" rowspan="2" text="검사명"/>
  39. <Cell col="2" rowspan="2" text="입원"/>
  40. <Cell col="3" rowspan="2" text="외래"/>
  41. <Cell col="4" rowspan="2" text="예약건수"/>
  42. <Cell col="5" colspan="3" text="시행건수"/>
  43. <Cell col="8" rowspan="2" text="부도건수"/>
  44. <Cell col="9" text="caption2"/>
  45. <Cell col="10" rowspan="2" text="예약부도율"/>
  46. <Cell col="11" rowspan="2" text="비교기간대비&#10;중감율"/>
  47. <Cell col="12" rowspan="2" text="caption"/>
  48. <Cell row="1" col="5" text="예약"/>
  49. <Cell row="1" col="6" text="당일"/>
  50. <Cell row="1" col="7" text="합계"/>
  51. <Cell row="1" col="9" text="caption2"/>
  52. </Band>
  53. <Band id="body">
  54. <Cell expr="expr:currow + 1"/>
  55. <Cell col="1" style="align:left;background:EXPR(prcpnm == '합 계' ? '#99ff99': '');background2:EXPR(prcpnm == '합 계' ? '#99ff99': '');" text="bind:prcpnm"/>
  56. <Cell col="2" displaytype="number" style="background:EXPR(prcpnm == '합 계' ? '#99ff99': '');background2:EXPR(prcpnm == '합 계' ? '#99ff99': '');" text="bind:inprcpcnt" mask="#,##0"/>
  57. <Cell col="3" displaytype="number" style="background:EXPR(prcpnm == '합 계' ? '#99ff99': '');background2:EXPR(prcpnm == '합 계' ? '#99ff99': '');" text="bind:outprcpcnt" mask="#,##0"/>
  58. <Cell col="4" displaytype="number" style="background:EXPR(prcpnm == '합 계' ? '#99ff99': '');background2:EXPR(prcpnm == '합 계' ? '#99ff99': '');" text="bind:totrsrvcnt" mask="#,##0"/>
  59. <Cell col="5" displaytype="number" style="background:EXPR(prcpnm == '합 계' ? '#99ff99': '');background2:EXPR(prcpnm == '합 계' ? '#99ff99': '');" text="bind:rsrvcnt" mask="#,##0"/>
  60. <Cell col="6" displaytype="number" style="background:EXPR(prcpnm == '합 계' ? '#99ff99': '');background2:EXPR(prcpnm == '합 계' ? '#99ff99': '');" text="bind:prcpexeccnt" mask="#,##0"/>
  61. <Cell col="7" displaytype="number" style="background:EXPR(prcpnm == '합 계' ? '#99ff99': '');background2:EXPR(prcpnm == '합 계' ? '#99ff99': '');" text="bind:totexeccnt" mask="#,##0"/>
  62. <Cell col="8" displaytype="number" style="background:EXPR(prcpnm == '합 계' ? '#99ff99': '');background2:EXPR(prcpnm == '합 계' ? '#99ff99': '');" text="bind:totnopaycnt" mask="#,##0"/>
  63. <Cell col="9" text="bind:sumcnt"/>
  64. <Cell col="10" displaytype="number" style="background:EXPR(prcpnm == '합 계' ? '#99ff99': '');background2:EXPR(prcpnm == '합 계' ? '#99ff99': '');" text="bind:rsrvnopayrate" mask="9,999.99%"/>
  65. <Cell col="11" displaytype="number" style="background:EXPR(prcpnm == '합 계' ? '#99ff99': '');background2:EXPR(prcpnm == '합 계' ? '#99ff99': '');" text="bind:comparerate" mask="9,999.99%"/>
  66. <Cell col="12" displaytype="number" text="bind:sumcnt" mask="#,##0"/>
  67. </Band>
  68. <Band id="summary">
  69. <Cell/>
  70. <Cell col="1" text="합계"/>
  71. <Cell col="2" text="expr:getSum(&quot;inprcpcnt&quot;)"/>
  72. <Cell col="3" text="expr:getSum(&quot;outprcpcnt&quot;)"/>
  73. <Cell col="4" text="expr:getSum(&quot;totrsrvcnt&quot;)"/>
  74. <Cell col="5" text="expr:getSum(&quot;rsrvcnt&quot;)"/>
  75. <Cell col="6" text="expr:getSum(&quot;prcpexeccnt&quot;)"/>
  76. <Cell col="7" text="expr:getSum(&quot;totexeccnt&quot;)"/>
  77. <Cell col="8" text="expr:getSum(&quot;totnopaycnt&quot;)"/>
  78. <Cell col="9"/>
  79. <Cell col="10" displaytype="number" text="expr:getSum(&quot;totnopaycnt&quot;)/getSum(&quot;totrsrvcnt&quot;)*100" mask="9,999%"/>
  80. <Cell col="11" displaytype="number" text="expr:(getSum(&quot;totexeccnt&quot;) - getSum(&quot;sumcnt&quot;)) / getSum(&quot;sumcnt&quot;) * 100" mask="9,999%"/>
  81. <Cell col="12" text="expr:getSum(&quot;sumcnt&quot;)"/>
  82. </Band>
  83. </Format>
  84. </Formats>
  85. </Grid>
  86. </Layout>
  87. </Layouts>
  88. </Tabpage>
  89. <Tabpage id="case2" text="검사실">
  90. <Layouts>
  91. <Layout>
  92. <Grid id="grd_list1" taborder="0" binddataset="ds_grid_grd_list1" useinputpanel="false" autofittype="col" position="absolute 0 0 1256 656" anchor="all" cellsizingtype="col">
  93. <Formats>
  94. <Format id="default">
  95. <Columns>
  96. <Column size="40"/>
  97. <Column size="80"/>
  98. <Column size="85"/>
  99. <Column size="239"/>
  100. <Column size="70"/>
  101. <Column size="70"/>
  102. <Column size="90"/>
  103. <Column size="80"/>
  104. <Column size="80"/>
  105. <Column size="100"/>
  106. <Column size="86"/>
  107. <Column size="0"/>
  108. <Column size="77"/>
  109. <Column size="77"/>
  110. <Column size="0"/>
  111. </Columns>
  112. <Rows>
  113. <Row size="24" band="head"/>
  114. <Row size="24" band="head"/>
  115. <Row size="24"/>
  116. <Row size="24" band="summ"/>
  117. </Rows>
  118. <Band id="head">
  119. <Cell rowspan="2"/>
  120. <Cell col="1" rowspan="2" text="검사실그룹"/>
  121. <Cell col="2" rowspan="2" text="검사실"/>
  122. <Cell col="3" rowspan="2" text="검사명"/>
  123. <Cell col="4" rowspan="2" text="입원"/>
  124. <Cell col="5" rowspan="2" text="외래"/>
  125. <Cell col="6" rowspan="2" text="예약건수"/>
  126. <Cell col="7" colspan="3" text="시행건수"/>
  127. <Cell col="10" rowspan="2" text="부도건수"/>
  128. <Cell col="11" text="caption2"/>
  129. <Cell col="12" rowspan="2" text="예약부도율"/>
  130. <Cell col="13" rowspan="2">
  131. <Cell text="비교기간"/>
  132. <Cell row="1" text="대비증감율"/>
  133. </Cell>
  134. <Cell col="14" rowspan="2" text="caption"/>
  135. <Cell row="1" col="7" text="예약"/>
  136. <Cell row="1" col="8" text="당일"/>
  137. <Cell row="1" col="9" text="합계"/>
  138. <Cell row="1" col="11" text="caption2"/>
  139. </Band>
  140. <Band id="body">
  141. <Cell expr="expr:currow + 1"/>
  142. <Cell col="1" displaytype="normal" edittype="none" style="background:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');color:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');color2:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');" text="bind:basecdcnts" suppress="1"/>
  143. <Cell col="2" style="background:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');color:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');color2:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');" text="bind:excuroomcdnm" suppress="1"/>
  144. <Cell col="3" style="align:left;background:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');color:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');color2:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');" text="bind:excucdnm" subsumtext="소계"/>
  145. <Cell col="4" displaytype="number" style="background:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');color:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');color2:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');" text="bind:inprcpcnt" mask="#,##0"/>
  146. <Cell col="5" displaytype="number" style="background:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');color:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');color2:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');" text="bind:outprcpcnt" mask="#,##0"/>
  147. <Cell col="6" displaytype="number" style="background:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');color:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');color2:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');" text="bind:totrsrvcnt" mask="#,##0"/>
  148. <Cell col="7" displaytype="number" style="background:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');color:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');color2:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');" text="bind:rsrvcnt" mask="#,##0"/>
  149. <Cell col="8" displaytype="number" style="background:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');color:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');color2:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');" text="bind:prcpexeccnt" mask="#,##0"/>
  150. <Cell col="9" displaytype="number" style="background:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');color:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');color2:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');" text="bind:totexeccnt" mask="#,##0"/>
  151. <Cell col="10" displaytype="number" style="background:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');color:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');color2:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');" text="bind:totnopaycnt" mask="#,##0"/>
  152. <Cell col="11" text="bind:sumcnt"/>
  153. <Cell col="12" displaytype="number" style="background:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');color:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');color2:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');" text="bind:rsrvnopayrate" mask="9,999.9%"/>
  154. <Cell col="13" displaytype="number" style="background:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#FFFFCC' : 'white');color:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');color2:EXPR(getRowLevel(currow)==1 ? '#0000ff' : '');" text="bind:comparerate" mask="9,999.9%"/>
  155. <Cell col="14" text="bind:sumcnt"/>
  156. </Band>
  157. <Band id="summary">
  158. <Cell/>
  159. <Cell col="1" colspan="3" text="총계"/>
  160. <Cell col="4" text="expr:getSum(&quot;inprcpcnt&quot;)"/>
  161. <Cell col="5" text="expr:getSum(&quot;outprcpcnt&quot;)"/>
  162. <Cell col="6" text="expr:getSum(&quot;totrsrvcnt&quot;)"/>
  163. <Cell col="7" text="expr:getSum(&quot;rsrvcnt&quot;)"/>
  164. <Cell col="8" text="expr:getSum(&quot;prcpexeccnt&quot;)"/>
  165. <Cell col="9" text="expr:getSum(&quot;totexeccnt&quot;)"/>
  166. <Cell col="10" text="expr:getSum(&quot;totnopaycnt&quot;)"/>
  167. <Cell col="11"/>
  168. <Cell col="12" displaytype="number" text="expr:getSum(&quot;totnopaycnt&quot;)/getSum(&quot;totrsrvcnt&quot;)*100" mask="9,999.9%"/>
  169. <Cell col="13" displaytype="number" text="expr:(getSum(&quot;totexeccnt&quot;) - getSum(&quot;sumcnt&quot;))/getSum(&quot;sumcnt&quot;) *100" mask="9,999.9%"/>
  170. <Cell col="14" text="expr:getSum(&quot;sumcnt&quot;)"/>
  171. </Band>
  172. </Format>
  173. </Formats>
  174. </Grid>
  175. </Layout>
  176. </Layouts>
  177. </Tabpage>
  178. </Tabpages>
  179. </Tab>
  180. <Static id="caption1" text="기능검사실 통계(기본)" class="tit_2" position="absolute 0 102 200 122" positiontype="position"/>
  181. <Shape id="line1" class="line_1" position="absolute 0 95 1195 95" linetype="horizontal" positiontype="position"/>
  182. <Div id="grp_sea" taborder="1" style="align:center top;" class="div_SA" position="absolute 0 26 1256 93" anchor="left top right" positiontype="position">
  183. <Layouts>
  184. <Layout>
  185. <Static id="caption2" text="조회기간" class="search_name" position="absolute 8 10 82 30" anchor="default" positiontype="position"/>
  186. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1110 7 1110 52" anchor="default" positiontype="position"/>
  187. <Button id="btn_sea" taborder="3" text="조회" onlbuttonup="btn_sea_onlbuttonup" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" onclick="btn_sea_onclick" positiontype="position"/>
  188. <Calendar id="ipt_todd" taborder="4" class="input_essential" position="absolute 198 10 298 30" anchor="default" dateformat="yyyy-MM-dd" value="null" positiontype="position" autoselect="true"/>
  189. <Static id="caption5" text="~" position="absolute 182 10 198 30" anchor="default" style="align:center;" class="search_no_b" positiontype="position"/>
  190. <Calendar id="ipt_fromdd" taborder="5" class="input_essential" position="absolute 82 10 182 30" anchor="default" dateformat="yyyy-MM-dd" value="null" positiontype="position" autoselect="true"/>
  191. <Static id="caption3" text="비교기간" class="search_name" position="absolute 8 35 82 55" anchor="default" positiontype="position"/>
  192. <Calendar id="ipt_compto" taborder="6" class="input_essential" position="absolute 198 35 298 55" anchor="default" dateformat="yyyy-MM-dd" value="null" positiontype="position" autoselect="true"/>
  193. <Static id="caption4" text="~" position="absolute 182 35 198 55" anchor="default" style="align:center;" class="search_no_b" positiontype="position"/>
  194. <Calendar id="ipt_compfrom" taborder="7" class="input_essential" position="absolute 82 35 182 55" anchor="default" dateformat="yyyy-MM-dd" value="null" positiontype="position" autoselect="true"/>
  195. <Static id="caption7" text="처방과" class="search_name" position="absolute 322 10 383 30" anchor="default" positiontype="position"/>
  196. <Static id="caption8" text="처방의" class="search_name" position="absolute 522 10 583 30" anchor="default" positiontype="position"/>
  197. <Static id="caption9" text="시행과" class="search_name" visible="false" position="absolute 323 36 384 56" anchor="default" positiontype="position"/>
  198. <Static id="caption10" text="시행의" class="search_name" visible="false" position="absolute 522 35 583 55" anchor="default" positiontype="position"/>
  199. <Combo id="cmb_orddept" taborder="8" position="absolute 383 10 498 30" anchor="default" class="input_essential" innerdataset="@ds_init_cmb_orddeptcd" codecolumn="cd" datacolumn="nm" onitemchanged="grp_sea_cmb_orddept_onitemchanged" positiontype="position"/>
  200. <Combo id="cmb_execdept" taborder="9" visible="false" position="absolute 384 36 499 56" anchor="default" class="input_essential" innerdataset="@ds_init_cmb_orddeptcd" codecolumn="cd" datacolumn="nm" onitemchanged="grp_sea_cmb_execdept_onitemchanged" positiontype="position"/>
  201. <Combo id="cmb_orddr" taborder="10" position="absolute 583 10 698 30" anchor="default" class="input_essential" innerdataset="@ds_init_cmb_orddrid" codecolumn="drid" datacolumn="drnm" positiontype="position"/>
  202. <Combo id="cmb_execdr" taborder="11" visible="false" position="absolute 583 35 698 55" anchor="default" class="input_essential" innerdataset="@ds_init_cmb_exeddid" codecolumn="drid" datacolumn="drnm" positiontype="position"/>
  203. <Static id="caption11" text="실시자" class="search_name" visible="false" position="absolute 722 35 783 55" anchor="default" positiontype="position"/>
  204. <Combo id="cmb_excuroom" taborder="12" position="absolute 785 10 900 30" anchor="default" class="input_essential" innerdataset="@ds_init_cmb_initexcuroom" codecolumn="basecd" datacolumn="basecdflagdesc" positiontype="position"/>
  205. <Combo id="cmb_execrid" taborder="13" visible="false" position="absolute 783 35 898 55" anchor="default" class="input_essential" innerdataset="@ds_init_cmb_initexecrid" codecolumn="basecd" datacolumn="basecdflagdesc" positiontype="position"/>
  206. <Static id="caption12" text="검사실" class="search_name" position="absolute 724 10 785 30" anchor="default" positiontype="position"/>
  207. </Layout>
  208. </Layouts>
  209. </Div>
  210. <Button id="btn_excsave" taborder="2" text="엑셀저장" onlbuttonup="btn_excsave_onlbuttonup" class="btn2" position="absolute 1188 99 1256 119" anchor="top right" positiontype="position" onclick="btn_excsave_onclick"/>
  211. <Static id="caption6" text="기능검사실 통계(기본)" class="tit_1" position="absolute 0 3 200 25" positiontype="position"/>
  212. </Layout>
  213. </Layouts>
  214. <Objects>
  215. <Dataset id="ds_grid_grd_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  216. <ColumnInfo>
  217. <Column id="prcpnm" type="STRING"/>
  218. <Column id="inprcpcnt" type="STRING"/>
  219. <Column id="outprcpcnt" type="STRING"/>
  220. <Column id="totrsrvcnt" type="STRING"/>
  221. <Column id="rsrvcnt" type="STRING"/>
  222. <Column id="prcpexeccnt" type="STRING"/>
  223. <Column id="totexeccnt" type="STRING"/>
  224. <Column id="totnopaycnt" type="STRING"/>
  225. <Column id="sumcnt" type="STRING"/>
  226. <Column id="rsrvnopayrate" type="STRING"/>
  227. <Column id="comparerate" type="STRING"/>
  228. </ColumnInfo>
  229. </Dataset>
  230. <Dataset id="ds_grid_grd_list1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" keystring="G:excuroomcdnm">
  231. <ColumnInfo>
  232. <Column id="basecdcnts" type="STRING"/>
  233. <Column id="excuroomcdnm" type="STRING"/>
  234. <Column id="excucdnm" type="STRING"/>
  235. <Column id="inprcpcnt" type="STRING"/>
  236. <Column id="outprcpcnt" type="STRING"/>
  237. <Column id="totrsrvcnt" type="STRING"/>
  238. <Column id="rsrvcnt" type="STRING"/>
  239. <Column id="prcpexeccnt" type="STRING"/>
  240. <Column id="totexeccnt" type="STRING"/>
  241. <Column id="totnopaycnt" type="STRING"/>
  242. <Column id="sumcnt" type="STRING"/>
  243. <Column id="rsrvnopayrate" type="STRING"/>
  244. <Column id="comparerate" type="STRING"/>
  245. </ColumnInfo>
  246. </Dataset>
  247. <Dataset id="ds_baseinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  248. <Dataset id="ds_init_cmb_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  249. <ColumnInfo>
  250. <Column id="cd" type="STRING" size="256"/>
  251. <Column id="nm" type="STRING" size="256"/>
  252. </ColumnInfo>
  253. </Dataset>
  254. <Dataset id="ds_init_cmb_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  255. <ColumnInfo>
  256. <Column id="drid" type="STRING" size="256"/>
  257. <Column id="drnm" type="STRING" size="256"/>
  258. </ColumnInfo>
  259. </Dataset>
  260. <Dataset id="ds_init_cmb_initexcuroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  261. <ColumnInfo>
  262. <Column id="basecd" type="STRING" size="256"/>
  263. <Column id="basecdflagdesc" type="STRING" size="256"/>
  264. </ColumnInfo>
  265. </Dataset>
  266. <Dataset id="ds_init_cmb_initexecrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  267. <ColumnInfo>
  268. <Column id="basecd" type="STRING" size="256"/>
  269. <Column id="basecdflagdesc" type="STRING" size="256"/>
  270. <Column id="equaluserid" type="STRING" size="256"/>
  271. </ColumnInfo>
  272. </Dataset>
  273. <Dataset id="ds_cmb_reqparam" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  274. <ColumnInfo>
  275. <Column id="basesuppdeptcd" type="STRING" size="256"/>
  276. <Column id="rbasecdflag" type="STRING" size="256"/>
  277. <Column id="ebasecdflag" type="STRING" size="256"/>
  278. <Column id="largeclass" type="STRING" size="256"/>
  279. <Column id="cdgrupid" type="STRING" size="256"/>
  280. <Column id="centflag" type="STRING" size="256"/>
  281. <Column id="basecdcnts" type="STRING" size="256"/>
  282. <Column id="suppflag" type="STRING" size="256"/>
  283. <Column id="baseroomopenyn" type="STRING" size="256"/>
  284. <Column id="screenflag" type="STRING" size="256"/>
  285. </ColumnInfo>
  286. <Rows>
  287. <Row/>
  288. </Rows>
  289. </Dataset>
  290. <Dataset id="ds_init_cmb_exeddid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  291. <ColumnInfo>
  292. <Column id="drid" type="STRING" size="256"/>
  293. <Column id="drnm" type="STRING" size="256"/>
  294. </ColumnInfo>
  295. </Dataset>
  296. </Objects>
  297. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  298. * System Name : KU2.0
  299. * Job Name :
  300. * File Name :
  301. * Creator :
  302. * Make Date : 2016-03-22
  303. *
  304. * Description :
  305. *---------------------------------------------------------------------------------------
  306. * Modify Date Modifier Modify Description
  307. *---------------------------------------------------------------------------------------
  308. *
  309. *---------------------------------------------------------------------------------------
  310. ****************************************************************************************/
  311. //=======================================================================================
  312. // xjs Include
  313. //---------------------------------------------------------------------------------------
  314. include "com_commonxp::comm_main.xjs";
  315. include "com_basiccodexp::ZBC001.xjs";
  316. include "ast_examcurexp::AEZ0001.xjs";
  317. include "ast_examcurexp::combolist.xjs";
  318. //=======================================================================================
  319. //변수 선언
  320. var lv_suppdeptcd="";
  321. /* @group : 기능검사실 통계(처방의)
  322. * @-----------------------------------
  323. * @type : function
  324. * @access : public
  325. * @desc : 주치의정보(진료의사) 조회를 위한 Function
  326. */
  327. //2009-06-23 진료과별 처방의 조회
  328. function fChngSrchDrId() {
  329. if(ds_init_cmb_orddeptcd.getColumn(0, "cd") == ""){
  330. ds_init_cmb_orddrid.clearData();
  331. ds_init_cmb_orddrid.setColumn(0, "execorddrcdid", "");
  332. }
  333. ds_init_cmb_orddrid.clearData();
  334. f_TRAER00804();
  335. }
  336. function lf_chkInterval(){//조회/비교기간 체크
  337. if(utlf_isNull(grp_sea.ipt_fromdd.value) == true || utlf_isNull(grp_sea.ipt_todd.value) == true){
  338. sysf_messageBox("조회기간을", "C001");
  339. }else{
  340. if(grp_sea.ipt_fromdd.value > grp_sea.ipt_todd.value){
  341. sysf_messageBox("시작 조회 기간보다 종료 조회 기간을 적게 입력", "E001")
  342. }
  343. }
  344. if(utlf_isNull(grp_sea.ipt_compfrom.value) == true || utlf_isNull(grp_sea.ipt_compto.value) == true){
  345. sysf_messageBox("비교기간을", "C001");
  346. }else{
  347. if(grp_sea.ipt_compfrom.value > grp_sea.ipt_compto.value){
  348. sysf_messageBox("시작 비교 기간보다 종료 비교 기간을 적게 입력", "E001")
  349. }
  350. }
  351. }
  352. function f_TRAER00804(){//진료의
  353. dsf_createDsRow("ds_cmb_orddr",
  354. [{col:"deptcd", val:grp_sea.cmb_orddept.value}
  355. ,{col:"initflag", val:"2"}
  356. ]);
  357. var objParam = new Object();
  358. objParam.id = "TRAER00804";
  359. objParam.service = "examcureresultrefapp.RsltRef";
  360. objParam.method = "reqGetInitRsltRefDrIdList";
  361. objParam.inds = "reqparam=ds_cmb_orddr";
  362. objParam.outds ="ds_init_cmb_orddrid=initexecdr";
  363. objParam.callback = "cbf_TRAER00804";
  364. objParam.alert = false;
  365. tranf_submit(objParam);
  366. }
  367. function cbf_TRAER00804(sSvcId, objErrorCode, objErrorMsg){
  368. grp_sea.cmb_orddr.index = 0;
  369. }
  370. function f_TRPMOCOM01(){//진료과
  371. dsf_createDsRow("ds_cmb_req",
  372. [{col:"sess_posinstcd", val:""}//세션에서가져오는값으로 변경해야됨.
  373. ,{col:"dridsorttype", val:""}
  374. ]);
  375. var objParam = new Object();
  376. objParam.id = "TRPMOCOM01";
  377. objParam.service = "pamcomnapp.PamComn";
  378. objParam.method = "reqGetComCD";
  379. objParam.inds = "req=ds_cmb_req";
  380. objParam.outds ="ds_init_cmb_orddeptcd=orddeptcd";
  381. objParam.callback = "cbf_TRPMOCOM01";
  382. objParam.alert = false;
  383. tranf_submit(objParam);
  384. }
  385. function cbf_TRPMOCOM01(sSvcId, objErrorCode, objErrorMsg){
  386. }
  387. function f_TRAEA01115(){//검사실, 실시자
  388. ds_cmb_reqparam.setColumn(0, "basesuppdeptcd", lv_suppdeptcd);
  389. ds_cmb_reqparam.setColumn(0, "rbasecdflag", "R");
  390. ds_cmb_reqparam.setColumn(0, "ebasecdflag", "E");
  391. ds_cmb_reqparam.setColumn(0, "largeclass", "M4");
  392. ds_cmb_reqparam.setColumn(0, "cdgrupid", "A0486");
  393. ds_cmb_reqparam.setColumn(0, "centflag", "");
  394. ds_cmb_reqparam.setColumn(0, "baseroomopenyn", "N");
  395. var objParam = new Object();
  396. objParam.id = "TRAEA01115";
  397. objParam.service = "examcureacptexecapp.ExamCureAcpt";
  398. objParam.method = "reqGetInitFuncExamCureRoomList";
  399. objParam.inds = "reqparam=ds_cmb_reqparam";
  400. objParam.outds ="ds_init_cmb_initexcuroom=initexcuroom ds_init_cmb_initexecrid=initexecrid";
  401. objParam.callback = "cbf_TRAEA01115";
  402. objParam.alert = false;
  403. tranf_submit(objParam);
  404. }
  405. function cbf_TRAEA01115(sSvcId, objErrorCode, objErrorMsg){
  406. }
  407. function cbf_getAllBizCodeList(sSvcId, objErrorCode, objErrorMsg){
  408. }
  409. function f_TRAES00201(){//조회(검사)
  410. dsf_createDsRow("ds_sch_req1",
  411. [{col:"execfromdd", val:grp_sea.ipt_fromdd.value}
  412. ,{col:"exectodd", val:grp_sea.ipt_todd.value}
  413. ,{col:"comparefromdd", val:grp_sea.ipt_compfrom.value}
  414. ,{col:"comparetodd", val:grp_sea.ipt_compto.value}
  415. ,{col:"orddeptcd", val:grp_sea.cmb_orddept.value}
  416. ,{col:"orddrid", val:grp_sea.cmb_orddr.value}
  417. ,{col:"execdeptcd", val:grp_sea.cmb_execdept.value}
  418. ,{col:"execdrid", val:grp_sea.cmb_execdr.value}
  419. ,{col:"suppdeptcd", val:lv_suppdeptcd}
  420. ,{col:"excuroomcd", val:grp_sea.cmb_excuroom.value}
  421. ,{col:"srchtab", val:""}
  422. ,{col:"screenflag", val:ds_cmb_reqparam.getColumn(0, "screenflag")}
  423. ]);
  424. var objParam = new Object();
  425. objParam.id = "TRAES00201";
  426. objParam.service = "examcurestatsapp.FuntExam";
  427. objParam.method = "reqGetFuntExamStatsBaseList";
  428. objParam.inds = "req=ds_sch_req1";
  429. objParam.outds ="ds_grid_grd_list=item";
  430. objParam.callback = "cbf_TRAES00201";
  431. objParam.alert = false;
  432. tranf_submit(objParam);
  433. }
  434. function cbf_TRAES00201(sSvcId, objErrorCode, objErrorMsg){
  435. }
  436. function f_TRAES00202(){//조회(검사실)
  437. dsf_createDsRow("ds_sch_req2",
  438. [{col:"execfromdd", val:grp_sea.ipt_fromdd.value}
  439. ,{col:"exectodd", val:grp_sea.ipt_todd.value}
  440. ,{col:"comparefromdd", val:grp_sea.ipt_compfrom.value}
  441. ,{col:"comparetodd", val:grp_sea.ipt_compto.value}
  442. ,{col:"orddeptcd", val:grp_sea.cmb_orddept.value}
  443. ,{col:"orddrid", val:grp_sea.cmb_orddr.value}
  444. ,{col:"execdeptcd", val:grp_sea.cmb_execdept.value}
  445. ,{col:"execdrid", val:grp_sea.cmb_execdr.value}
  446. ,{col:"suppdeptcd", val:lv_suppdeptcd}
  447. ,{col:"excuroomcd", val:grp_sea.cmb_excuroom.value}
  448. ,{col:"srchtab", val:"R"}
  449. ,{col:"screenflag", val:ds_cmb_reqparam.getColumn(0, "screenflag")}
  450. ]);
  451. var objParam = new Object();
  452. objParam.id = "TRAES00202";
  453. objParam.service = "examcurestatsapp.FuntExam";
  454. objParam.method = "reqGetFuntExamStatsBaseList";
  455. objParam.inds = "req=ds_sch_req2";
  456. objParam.outds ="ds_grid_grd_list1=item";
  457. objParam.callback = "cbf_TRAES00202";
  458. objParam.alert = false;
  459. tranf_submit(objParam);
  460. }
  461. function cbf_TRAES00202(sSvcId, objErrorCode, objErrorMsg){
  462. for(var i = 0 ; i <= ds_grid_grd_list1.rowcount ; i++){
  463. if(ds_grid_grd_list1.getColumn(i,"basecdcnts") == "FU"){
  464. ds_grid_grd_list1.setColumn(i, "basecdcnts", "기능검사" );
  465. }
  466. }
  467. }
  468. //=======================================================================================
  469. // Event
  470. //---------------------------------------------------------------------------------------
  471. /****************************************************************************************
  472. * Components :
  473. * Components ID : SMAES00200
  474. * Event : onload
  475. * Argument : 01.obj : Object Event has occurred
  476. * : 02.e : Event Object
  477. * Description :
  478. ****************************************************************************************/
  479. function SMAES00200_onload(obj:Form, e:LoadEventInfo)
  480. {
  481. frmf_initForm(obj); // 화면공통
  482. lf_aezfSetSuppDeptcd();
  483. lv_suppdeptcd = frmf_getParameter("AST_DEPTCD")
  484. // 진료과조회
  485. f_TRPMOCOM01();
  486. // 검사실/실시자 조회
  487. f_TRAEA01115();
  488. var tempfrom1 = utlf_getCurrentDate().toDate();
  489. var tempfrom = tempfrom1.getAddDate(-1).getDateFormat("YYYYMMDD");
  490. grp_sea.ipt_fromdd.value = tempfrom;
  491. var tempto1 = utlf_getCurrentDate().toDate();
  492. var tempto = tempto1.getAddDate(-1).getDateFormat("YYYYMMDD");
  493. grp_sea.ipt_todd.value = tempto;
  494. var compfrom1 = utlf_getCurrentDate().toDate();
  495. var compfrom = compfrom1.getAddDate(-2).getDateFormat("YYYYMMDD");
  496. grp_sea.ipt_compfrom.value = compfrom;
  497. var compto1 = utlf_getCurrentDate().toDate();
  498. var compto = compto1.getAddDate(-2).getDateFormat("YYYYMMDD");
  499. grp_sea.ipt_compto.value = compto;
  500. //시행과,시행의,실시자 추가 20141007 by 공부매니아
  501. frmf_addComboItem("grp_sea.cmb_excuroom", "--전체--", "", ""); //검사실
  502. frmf_addComboItem("grp_sea.cmb_orddept", "--전체--", "", ""); //처방과
  503. frmf_addComboItem("grp_sea.cmb_orddr", "--전체--", "", ""); //처방의
  504. frmf_addComboItem("grp_sea.cmb_execdr", "--전체--", "", ""); //시행의
  505. grp_sea.cmb_excuroom.index = 0;
  506. grp_sea.cmb_orddept.index = 0;
  507. grp_sea.cmb_orddr.index = 0;
  508. grp_sea.cmb_execdept.index = 0;
  509. grp_sea.cmb_execdr.index = 0;
  510. }
  511. /****************************************************************************************
  512. * Components :
  513. * Components ID : btn_sea
  514. * Event : onclick
  515. * Argument : 01.obj : Object Event has occurred
  516. * : 02.e : Event Object
  517. * Description :
  518. ****************************************************************************************/
  519. function btn_sea_onclick(obj:Button, e:ClickEventInfo)
  520. {
  521. lf_chkInterval();//조회/비교기간 체크
  522. f_TRAES00201();
  523. f_TRAES00202();
  524. }
  525. /****************************************************************************************
  526. * Components :
  527. * Components ID : btn_excsave
  528. * Event : onclick
  529. * Argument : 01.obj : Object Event has occurred
  530. * : 02.e : Event Object
  531. * Description : 선택탭(index)에 따라 excel출력 데이터셋을 다르게 처리.
  532. ****************************************************************************************/
  533. function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  534. {
  535. if(switch1.tabindex == 0){
  536. if(ds_grid_grd_list.rowcount <= 0){
  537. sysf_messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  538. return;
  539. }else{
  540. grdf_exportExcel(switch1.case1.grd_list, "기능검사실통계(기본)검사", "sheet1");
  541. }
  542. }else if(switch1.tabindex == 1){
  543. if(ds_grid_grd_list1.rowcount <= 0){
  544. sysf_messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  545. return;
  546. }else{
  547. grdf_exportExcel(switch1.case2.grd_list1, "기능검사실통계(기본)검사실", "sheet1");
  548. }
  549. }
  550. }
  551. /****************************************************************************************
  552. * Components :
  553. * Components ID : grp_sea.cmb_orddept
  554. * Event : onitemchanged
  555. * Argument : 01.obj : Object Event has occurred
  556. * : 02.e : Event Object
  557. * Description : 진료과선택에 따른 진료의 값가져오기
  558. ****************************************************************************************/
  559. function grp_sea_cmb_orddept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  560. {
  561. fChngSrchDrId();
  562. }
  563. /****************************************************************************************
  564. * Components :
  565. * Components ID : switch1
  566. * Event : onchanged
  567. * Argument : 01.obj : Object Event has occurred
  568. * : 02.e : Event Object
  569. * Description : 탭선택시 조회
  570. ****************************************************************************************/
  571. function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  572. {
  573. if(switch1.tabindex == 0){
  574. lf_chkInterval();//조회/비교기간 체크
  575. f_TRAES00201();
  576. }else if(switch1.tabindex == 1){
  577. lf_chkInterval();//조회/비교기간 체크
  578. f_TRAES00202();
  579. }
  580. }
  581. function switch1_case1_grd_list_oncolresized(obj:Grid, e:GridSizeChangedEventInfo)
  582. {
  583. if(e.newvalue == 0){
  584. obj.setRealColSize(e.subindex, 1);
  585. }
  586. }
  587. //시행과 선택시 시술의 조회 추가 20141007 by 공부매니아
  588. function grp_sea_cmb_execdept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  589. {
  590. var execdept = grp_sea.cmb_execdept.value;
  591. if(utlf_isNull(execdept)){
  592. ds_init_cmb_initexcuroom.filter("");
  593. }else{
  594. ds_init_cmb_initexcuroom.filter("basesuppdeptcd=='"+execdept+"'||basesuppdeptcd==null");
  595. }
  596. return;
  597. if(ds_init_cmb_orddeptcd.getColumn(0, "cd") == ""){
  598. ds_init_cmb_orddrid.clearData();
  599. ds_init_cmb_orddrid.setColumn(0, "execorddrcdid", "");
  600. }
  601. ds_init_cmb_orddrid.clearData();
  602. dsf_createDsRow("ds_cmb_exeddr",
  603. [{col:"deptcd", val:grp_sea.cmb_execdept.value}
  604. ,{col:"initflag", val:"2"}
  605. ]);
  606. var objParam = new Object();
  607. objParam.id = "TRAER00804";
  608. objParam.service = "examcureresultrefapp.RsltRef";
  609. objParam.method = "reqGetInitRsltRefDrIdList";
  610. objParam.inds = "reqparam=ds_cmb_exeddr";
  611. objParam.outds ="ds_init_cmb_exeddid=initexecdr";
  612. objParam.callback = "cbf_TRAER00804_1";
  613. objParam.alert = false;
  614. tranf_submit(objParam);
  615. }
  616. function cbf_TRAER00804_1(sSvcId, objErrorCode, objErrorMsg){
  617. grp_sea.cmb_execdr.index = 0;
  618. }
  619. ]]></Script>
  620. </Form>
  621. </FDL>