SMAHS00900_건진별수입현황.xfdl 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAHS00900" position="absolute 0 0 1211 784" titletext="건진일평균인원현황" oninit="SMAHS00900_oninit" onload="SMAHS00900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1211 23" id="group3">
  8. <Layouts>
  9. <Layout>
  10. <Static text="건진별 수입현황" position="absolute 0 0 133 23" align="align:center middle;" id="caption60" class="tit_1" anchor="default"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 4 23 1207 58" id="group2" class="div_SA">
  15. <Layouts>
  16. <Layout>
  17. <Shape position="absolute 1129 7 1135 29" linetype="vertical" id="line2" class="line_4"/>
  18. <Button position="absolute 1139 7 1195 29" id="btn_search" class="btn1" text="조회" onclick="group2_btn_search_onclick"/>
  19. <Button position="absolute 976 7 1056 29" id="btn_excelsave" class="btn7" visible="true" text="액셀저장" onclick="group2_btn_excelsave_onclick"/>
  20. <Button position="absolute 1070 7 1126 29" id="btn_prt" class="btn6" text="출력" onclick="group2_btn_prt_onclick"/>
  21. <Shape position="absolute 1060 7 1066 29" linetype="vertical" id="line3" class="line_4" visible="false"/>
  22. <Static text="연도 :" position="absolute 15 9 88 26" id="caption2" class="search_name"/>
  23. <Combo position="absolute 70 8 170 27" id="cmb_year" innerdataset="@ds_init_baseinfo_yearlst_P0167" datacolumn="cdnm" codecolumn="cdid" onitemchanged="group2_cmb_year_onitemchanged"/>
  24. <Combo position="absolute 415 8 515 27" id="cmb_srchhealexamdetlflag" class="combo_search" innerdataset="@ds_init_baseinfo_healexamdetlflaglist_item" datacolumn="cdnm" codecolumn="cdid"/>
  25. <Combo position="absolute 295 8 405 27" id="cmb_srchhealexamflag" class="combo_search" innerdataset="@ds_init_baseinfo_healexamflaglist_A0068" datacolumn="cdnm" codecolumn="cdid" onitemchanged="group2_cmb_srchhealexamflag_onitemchanged"/>
  26. <Static text="건진구분 :" position="absolute 210 9 296 26" id="caption1" class="search_name"/>
  27. </Layout>
  28. </Layouts>
  29. </Div>
  30. <Tab position="absolute 4 69 1207 780" id="swt_earncond" onchanged="swt_earncond_onchanged">
  31. <Tabpages>
  32. <Tabpage text="수입현황" id="case_earncond">
  33. <Layouts>
  34. <Layout>
  35. <Grid position="absolute 5 5 1196 684" id="grd_earncondlst" binddataset="ds_main_earncondlst_item">
  36. <Formats>
  37. <Format id="default">
  38. <Columns>
  39. <Column size="50"/>
  40. <Column size="50"/>
  41. <Column size="50"/>
  42. <Column size="80"/>
  43. <Column size="80"/>
  44. <Column size="80"/>
  45. <Column size="80"/>
  46. <Column size="80"/>
  47. <Column size="80"/>
  48. <Column size="80"/>
  49. <Column size="80"/>
  50. <Column size="80"/>
  51. <Column size="80"/>
  52. <Column size="80"/>
  53. <Column size="80"/>
  54. <Column size="80"/>
  55. <Column size="0"/>
  56. </Columns>
  57. <Rows>
  58. <Row size="24" band="head"/>
  59. <Row size="24"/>
  60. </Rows>
  61. <Band id="head">
  62. <Cell/>
  63. <Cell col="1"/>
  64. <Cell col="2"/>
  65. <Cell col="3" text="3월"/>
  66. <Cell col="4" text="4월"/>
  67. <Cell col="5" text="5월"/>
  68. <Cell col="6" text="6월"/>
  69. <Cell col="7" text="7월"/>
  70. <Cell col="8" text="8월"/>
  71. <Cell col="9" text="9월"/>
  72. <Cell col="10" text="10월"/>
  73. <Cell col="11" text="11월"/>
  74. <Cell col="12" text="12월"/>
  75. <Cell col="13" text="1월"/>
  76. <Cell col="14" text="2월"/>
  77. <Cell col="15" text="총계"/>
  78. <Cell col="16" text="종류구분"/>
  79. </Band>
  80. <Band id="body">
  81. <Cell style="align:left middle;line:BIND(colLine0);background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:healexamnm" wordwrap="word" suppress="1" suppressalign="middle,over"/>
  82. <Cell col="1" style="align:left middle;line:BIND(colLine1);background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:healexamdetlnm" wordwrap="word" suppress="2" suppressalign="middle,over"/>
  83. <Cell col="2" style="background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:earnflag"/>
  84. <Cell col="3" displaytype="number" style="align:left top;padding:4 2 2 2;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon3" wordwrap="word" mask="#,##9"/>
  85. <Cell col="4" displaytype="number" style="align:left top;padding:4 2 2 2;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon4" wordwrap="word" mask="#,##9"/>
  86. <Cell col="5" displaytype="number" style="align:left top;padding:4 2 2 2;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon5" wordwrap="word" mask="#,##9"/>
  87. <Cell col="6" displaytype="number" style="align:left top;padding:4 2 2 2;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon6" wordwrap="word" mask="#,##9"/>
  88. <Cell col="7" displaytype="number" style="align:left top;padding:4 2 2 2;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon7" wordwrap="word" mask="#,##9"/>
  89. <Cell col="8" displaytype="number" style="align:left top;padding:4 2 2 2;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon8" wordwrap="word" mask="#,##9"/>
  90. <Cell col="9" displaytype="number" style="align:left top;padding:4 2 2 2;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon9" wordwrap="word" mask="#,##9"/>
  91. <Cell col="10" displaytype="number" style="align:left top;padding:4 2 2 2;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon10" wordwrap="word" mask="#,##9"/>
  92. <Cell col="11" displaytype="number" style="align:left top;padding:4 2 2 2;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon11" wordwrap="word" mask="#,##9"/>
  93. <Cell col="12" displaytype="number" style="align:left top;padding:4 2 2 2;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon12" wordwrap="word" mask="#,##9"/>
  94. <Cell col="13" displaytype="number" style="align:left top;padding:4 2 2 2;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon1" wordwrap="word" mask="#,##9"/>
  95. <Cell col="14" displaytype="number" style="align:left top;padding:4 2 2 2;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon2" wordwrap="word" mask="#,##9"/>
  96. <Cell col="15" displaytype="number" style="align:left top;padding:4 2 2 2;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:montotal" wordwrap="word" mask="#,##9"/>
  97. <Cell col="16" text="bind:kindflag"/>
  98. </Band>
  99. </Format>
  100. </Formats>
  101. </Grid>
  102. </Layout>
  103. </Layouts>
  104. </Tabpage>
  105. <Tabpage text="수입" id="case_earn">
  106. <Layouts>
  107. <Layout>
  108. <Grid position="absolute 5 5 1196 684" id="grd_earnlst" binddataset="ds_main_earnlst_item">
  109. <Formats>
  110. <Format id="default">
  111. <Columns>
  112. <Column size="80"/>
  113. <Column size="70"/>
  114. <Column size="80"/>
  115. <Column size="80"/>
  116. <Column size="80"/>
  117. <Column size="80"/>
  118. <Column size="80"/>
  119. <Column size="80"/>
  120. <Column size="80"/>
  121. <Column size="80"/>
  122. <Column size="80"/>
  123. <Column size="80"/>
  124. <Column size="80"/>
  125. <Column size="80"/>
  126. <Column size="80"/>
  127. </Columns>
  128. <Rows>
  129. <Row size="24" band="head"/>
  130. <Row size="24"/>
  131. </Rows>
  132. <Band id="head">
  133. <Cell/>
  134. <Cell col="1" text="년도"/>
  135. <Cell col="2" text="3월"/>
  136. <Cell col="3" text="4월"/>
  137. <Cell col="4" text="5월"/>
  138. <Cell col="5" text="6월"/>
  139. <Cell col="6" text="7월"/>
  140. <Cell col="7" text="8월"/>
  141. <Cell col="8" text="9월"/>
  142. <Cell col="9" text="10월"/>
  143. <Cell col="10" text="11월"/>
  144. <Cell col="11" text="12월"/>
  145. <Cell col="12" text="1월"/>
  146. <Cell col="13" text="2월"/>
  147. <Cell col="14" text="총계"/>
  148. </Band>
  149. <Band id="body">
  150. <Cell style="align:left middle;padding:4 2 2 2;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:healexamdetlnm" wordwrap="word" suppress="1" suppressalign="middle,over"/>
  151. <Cell col="1" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:year"/>
  152. <Cell col="2" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon3" mask="#,##9"/>
  153. <Cell col="3" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon4" mask="#,##9"/>
  154. <Cell col="4" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon5" mask="#,##9"/>
  155. <Cell col="5" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon6" mask="#,##9"/>
  156. <Cell col="6" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon7" mask="#,##9"/>
  157. <Cell col="7" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon8" mask="#,##9"/>
  158. <Cell col="8" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon9" mask="#,##9"/>
  159. <Cell col="9" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon10" mask="#,##9"/>
  160. <Cell col="10" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon11" mask="#,##9"/>
  161. <Cell col="11" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon12" mask="#,##9"/>
  162. <Cell col="12" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon1" mask="#,##9"/>
  163. <Cell col="13" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon2" mask="#,##9"/>
  164. <Cell col="14" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:montotal" mask="#,##9"/>
  165. </Band>
  166. </Format>
  167. </Formats>
  168. </Grid>
  169. </Layout>
  170. </Layouts>
  171. </Tabpage>
  172. <Tabpage text="인원" id="case_psn">
  173. <Layouts>
  174. <Layout>
  175. <Grid position="absolute 5 5 1196 684" id="grd_psnlst" binddataset="ds_main_psnlst_item">
  176. <Formats>
  177. <Format id="default">
  178. <Columns>
  179. <Column size="80"/>
  180. <Column size="70"/>
  181. <Column size="80"/>
  182. <Column size="80"/>
  183. <Column size="80"/>
  184. <Column size="80"/>
  185. <Column size="80"/>
  186. <Column size="80"/>
  187. <Column size="80"/>
  188. <Column size="80"/>
  189. <Column size="80"/>
  190. <Column size="80"/>
  191. <Column size="80"/>
  192. <Column size="80"/>
  193. <Column size="80"/>
  194. </Columns>
  195. <Rows>
  196. <Row size="24" band="head"/>
  197. <Row size="24"/>
  198. </Rows>
  199. <Band id="head">
  200. <Cell/>
  201. <Cell col="1" text="년도"/>
  202. <Cell col="2" text="3월"/>
  203. <Cell col="3" text="4월"/>
  204. <Cell col="4" text="5월"/>
  205. <Cell col="5" text="6월"/>
  206. <Cell col="6" text="7월"/>
  207. <Cell col="7" text="8월"/>
  208. <Cell col="8" text="9월"/>
  209. <Cell col="9" text="10월"/>
  210. <Cell col="10" text="11월"/>
  211. <Cell col="11" text="12월"/>
  212. <Cell col="12" text="1월"/>
  213. <Cell col="13" text="2월"/>
  214. <Cell col="14" text="총계"/>
  215. </Band>
  216. <Band id="body">
  217. <Cell style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:healexamdetlnm" wordwrap="word" suppress="1" suppressalign="middle,over"/>
  218. <Cell col="1" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:year"/>
  219. <Cell col="2" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon3" mask="#,##9"/>
  220. <Cell col="3" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon4" mask="#,##9"/>
  221. <Cell col="4" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon5" mask="#,##9"/>
  222. <Cell col="5" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon6" mask="#,##9"/>
  223. <Cell col="6" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon7" mask="#,##9"/>
  224. <Cell col="7" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon8" mask="#,##9"/>
  225. <Cell col="8" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon9" mask="#,##9"/>
  226. <Cell col="9" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon10" mask="#,##9"/>
  227. <Cell col="10" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon11" mask="#,##9"/>
  228. <Cell col="11" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon12" mask="#,##9"/>
  229. <Cell col="12" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon1" mask="#,##9"/>
  230. <Cell col="13" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:mon2" mask="#,##9"/>
  231. <Cell col="14" displaytype="number" style="align:left;background:BIND(colBack);background2:BIND(colBack);color:BIND(colColor);color2:BIND(colColor);font:BIND(colFont);" text="bind:montotal" mask="#,##9"/>
  232. </Band>
  233. </Format>
  234. </Formats>
  235. </Grid>
  236. </Layout>
  237. </Layouts>
  238. </Tabpage>
  239. </Tabpages>
  240. </Tab>
  241. </Layout>
  242. </Layouts>
  243. <Objects>
  244. <Dataset id="ds_init_baseinfo_yearlst_P0167" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  245. <ColumnInfo>
  246. <Column id="cdnm" type="STRING"/>
  247. <Column id="cdid" type="STRING"/>
  248. </ColumnInfo>
  249. </Dataset>
  250. <Dataset id="ds_init_baseinfo_healexamdetlflaglist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  251. <ColumnInfo>
  252. <Column id="cdnm" type="STRING"/>
  253. <Column id="cdid" type="STRING"/>
  254. </ColumnInfo>
  255. </Dataset>
  256. <Dataset id="ds_init_baseinfo_healexamflaglist_A0068" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  257. <ColumnInfo>
  258. <Column id="cdnm" type="STRING"/>
  259. <Column id="cdid" type="STRING"/>
  260. </ColumnInfo>
  261. </Dataset>
  262. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  263. <ColumnInfo>
  264. <Column id="srchfromdd" type="STRING" size="256" sumtext="시작일자"/>
  265. <Column id="srchtodd" type="STRING" size="256" sumtext="종료일자"/>
  266. <Column id="srchyear" type="STRING" size="256" sumtext="연도"/>
  267. <Column id="srchinstcd" type="STRING" size="256" sumtext="기관코드"/>
  268. <Column id="srchhealexamflag" type="STRING" size="256" sumtext="건진구분"/>
  269. <Column id="srchhealexamdetlflag" type="STRING" size="256" sumtext="건진상세구분"/>
  270. </ColumnInfo>
  271. <Rows>
  272. <Row/>
  273. </Rows>
  274. </Dataset>
  275. <Dataset id="ds_main_earncondlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  276. <ColumnInfo>
  277. <Column id="healexamnm" type="STRING" size="256" sumtext="건진구분명"/>
  278. <Column id="healexamdetlnm" type="STRING" size="256" sumtext="건진상세구분명"/>
  279. <Column id="earnflag" type="STRING" size="256" sumtext="수입구분"/>
  280. <Column id="mon3" type="INT" size="256" sumtext="3월"/>
  281. <Column id="mon4" type="INT" size="256" sumtext="4월"/>
  282. <Column id="mon5" type="INT" size="256" sumtext="5월"/>
  283. <Column id="mon6" type="INT" size="256" sumtext="6월"/>
  284. <Column id="mon7" type="INT" size="256" sumtext="7월"/>
  285. <Column id="mon8" type="INT" size="256" sumtext="8월"/>
  286. <Column id="mon9" type="INT" size="256" sumtext="9월"/>
  287. <Column id="mon10" type="INT" size="256" sumtext="10월"/>
  288. <Column id="mon11" type="INT" size="256" sumtext="11월"/>
  289. <Column id="mon12" type="INT" size="256" sumtext="12월"/>
  290. <Column id="mon1" type="INT" size="256" sumtext="1월"/>
  291. <Column id="mon2" type="INT" size="256" sumtext="2월"/>
  292. <Column id="montotal" type="INT" size="256" sumtext="총계"/>
  293. <Column id="kindflag" type="STRING" size="256" sumtext="종류구분"/>
  294. <Column id="colBack" type="STRING" size="256"/>
  295. <Column id="colColor" type="STRING" size="256"/>
  296. <Column id="colFont" type="STRING" size="256"/>
  297. <Column id="colLine0" type="STRING" size="256"/>
  298. <Column id="colLine1" type="STRING" size="256"/>
  299. </ColumnInfo>
  300. </Dataset>
  301. <Dataset id="ds_main_earnlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  302. <ColumnInfo>
  303. <Column id="healexamdetlnm" type="STRING" size="256" sumtext="건진상세구분명"/>
  304. <Column id="year" type="STRING" size="256" sumtext="연도"/>
  305. <Column id="mon3" type="INT" size="256" sumtext="3월"/>
  306. <Column id="mon4" type="INT" size="256" sumtext="4월"/>
  307. <Column id="mon5" type="INT" size="256" sumtext="5월"/>
  308. <Column id="mon6" type="INT" size="256" sumtext="6월"/>
  309. <Column id="mon7" type="INT" size="256" sumtext="7월"/>
  310. <Column id="mon8" type="INT" size="256" sumtext="8월"/>
  311. <Column id="mon9" type="INT" size="256" sumtext="9월"/>
  312. <Column id="mon10" type="INT" size="256" sumtext="10월"/>
  313. <Column id="mon11" type="INT" size="256" sumtext="11월"/>
  314. <Column id="mon12" type="INT" size="256" sumtext="12월"/>
  315. <Column id="mon1" type="INT" size="256" sumtext="1월"/>
  316. <Column id="mon2" type="INT" size="256" sumtext="2월"/>
  317. <Column id="montotal" type="INT" size="256" sumtext="총계"/>
  318. <Column id="colBack" type="STRING" size="256"/>
  319. <Column id="colColor" type="STRING" size="256"/>
  320. <Column id="colFont" type="STRING" size="256"/>
  321. </ColumnInfo>
  322. </Dataset>
  323. <Dataset id="ds_main_psnlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  324. <ColumnInfo>
  325. <Column id="healexamdetlnm" type="STRING" size="256" sumtext="건진상세구분명"/>
  326. <Column id="year" type="STRING" size="256" sumtext="연도"/>
  327. <Column id="mon3" type="INT" size="256" sumtext="3월"/>
  328. <Column id="mon4" type="INT" size="256" sumtext="4월"/>
  329. <Column id="mon5" type="INT" size="256" sumtext="5월"/>
  330. <Column id="mon6" type="INT" size="256" sumtext="6월"/>
  331. <Column id="mon7" type="INT" size="256" sumtext="7월"/>
  332. <Column id="mon8" type="INT" size="256" sumtext="8월"/>
  333. <Column id="mon9" type="INT" size="256" sumtext="9월"/>
  334. <Column id="mon10" type="INT" size="256" sumtext="10월"/>
  335. <Column id="mon11" type="INT" size="256" sumtext="11월"/>
  336. <Column id="mon12" type="INT" size="256" sumtext="12월"/>
  337. <Column id="mon1" type="INT" size="256" sumtext="1월"/>
  338. <Column id="mon2" type="INT" size="256" sumtext="2월"/>
  339. <Column id="montotal" type="INT" size="256" sumtext="총계"/>
  340. <Column id="colBack" type="STRING" size="256"/>
  341. <Column id="colColor" type="STRING" size="256"/>
  342. <Column id="colFont" type="STRING" size="256"/>
  343. </ColumnInfo>
  344. </Dataset>
  345. <Dataset id="ds_init_srch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  346. <ColumnInfo>
  347. <Column id="year" type="STRING" size="256"/>
  348. </ColumnInfo>
  349. <Rows>
  350. <Row/>
  351. </Rows>
  352. </Dataset>
  353. <Dataset id="ds_init_baseinfo_chealexamdetlflaglist_A0069" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  354. <ColumnInfo>
  355. <Column id="cdnm" type="STRING"/>
  356. <Column id="cdid" type="STRING"/>
  357. </ColumnInfo>
  358. </Dataset>
  359. <Dataset id="ds_init_baseinfo_ghealexamdetlflaglist_A0070" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  360. <ColumnInfo>
  361. <Column id="cdnm" type="STRING"/>
  362. <Column id="cdid" type="STRING"/>
  363. </ColumnInfo>
  364. </Dataset>
  365. <Dataset id="ds_main_export" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  366. <ColumnInfo>
  367. <Column id="srchfromdd" type="STRING" size="256"/>
  368. <Column id="srchtodd" type="STRING" size="256"/>
  369. <Column id="srchyear" type="STRING" size="256"/>
  370. </ColumnInfo>
  371. <Rows>
  372. <Row/>
  373. </Rows>
  374. </Dataset>
  375. </Objects>
  376. <Bind>
  377. <BindItem id="item0" compid="group2.cmb_year" propid="value" datasetid="ds_init_srch" columnid="year"/>
  378. <BindItem id="item1" compid="group2.cmb_srchhealexamflag" propid="value" datasetid="ds_send" columnid="srchhealexamflag"/>
  379. <BindItem id="item2" compid="group2.cmb_srchhealexamdetlflag" propid="value" datasetid="ds_send" columnid="srchhealexamdetlflag"/>
  380. </Bind>
  381. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  382. * System Name : 경대 의료정보시스템
  383. * Job Name : ast_healexamstatxp -> SMAHS00900
  384. * Creator : yjh
  385. * Make Date : 2018-02-27
  386. * Description :
  387. *---------------------------------------------------------------------------------------
  388. * Modify Date Modifier Modify Description
  389. *---------------------------------------------------------------------------------------
  390. * 2018-02-27 yjh TF->XP
  391. *
  392. *---------------------------------------------------------------------------------------
  393. ****************************************************************************************/
  394. //=======================================================================================
  395. // Lib Include
  396. //---------------------------------------------------------------------------------------
  397. include "com_commonxp::comm_main.xjs";
  398. //=======================================================================================
  399. // Global Form Variable
  400. //---------------------------------------------------------------------------------------
  401. var arErrorCode = new HashArray();
  402. //=======================================================================================
  403. // Function
  404. //---------------------------------------------------------------------------------------
  405. /*
  406. * 화면merge와 소계 및 총계를 생성한다.
  407. */
  408. function fSetRcptSum(vFlag) {
  409. // 그리드 merge 및 합계 초기화
  410. var presYear = ds_send.getColumn(0, "srchyear"); // 올해
  411. var befYear = new String(parseInt(ds_send.getColumn(0, "srchyear")) - 1); // 전년도
  412. if(vFlag == "A") { // 수입현황
  413. var idx = ds_main_earncondlst_item.rowcount;
  414. ds_main_earncondlst_item.addRow();
  415. ds_main_earncondlst_item.addRow();
  416. // 스타일
  417. ds_main_earncondlst_item.setColumn(idx, "colBack", "#808080");
  418. ds_main_earncondlst_item.setColumn(idx, "colColor", "#ffffff");
  419. ds_main_earncondlst_item.setColumn(idx, "colFont", "arial,8,bold");
  420. ds_main_earncondlst_item.setColumn(idx+1, "colBack", "#808080");
  421. ds_main_earncondlst_item.setColumn(idx+1, "colColor", "#ffffff");
  422. ds_main_earncondlst_item.setColumn(idx+1, "colFont", "arial,8,bold");
  423. for(var i =0; i < swt_earncond.case_earncond.grd_earncondlst.getFormatColCount() ; i++) {
  424. var sColNm = utlf_transNullToEmpty(swt_earncond.case_earncond.grd_earncondlst.getCellProperty("body", i, "text")).replace("bind:", "");
  425. // 총계
  426. if(i >= swt_earncond.case_earncond.grd_earncondlst.getBindCellIndex("Body", "mon3") && i <= swt_earncond.case_earncond.grd_earncondlst.getBindCellIndex("Body", "montotal") ) {
  427. var sumAmt = 0;
  428. var sumCnt = 0;
  429. for(var j=0; j < idx; j++ ) {
  430. var kindFlag = ds_main_earncondlst_item.getColumn(j, "kindflag");
  431. if(kindFlag == "M") { // 금액
  432. sumAmt += parseInt(ds_main_earncondlst_item.getColumn(j, sColNm));
  433. }else if(kindFlag == "P") { // 인원
  434. sumCnt += parseInt(ds_main_earncondlst_item.getColumn(j, sColNm));
  435. }
  436. }
  437. // 항목명
  438. ds_main_earncondlst_item.setColumn(idx, "healexamnm", "총계");
  439. ds_main_earncondlst_item.setColumn(idx, "healexamdetlnm", "");
  440. ds_main_earncondlst_item.setColumn(idx, "earnflag", "인원");
  441. ds_main_earncondlst_item.setColumn(idx+1, "healexamnm", "총계");
  442. ds_main_earncondlst_item.setColumn(idx+1, "healexamdetlnm", "");
  443. ds_main_earncondlst_item.setColumn(idx+1, "earnflag", "금액");
  444. ds_main_earncondlst_item.setColumn(idx, "colLine0", "1 solid #808080ff,0 none #808080ff,1 solid #808080ff,1 solid #808080ff");
  445. ds_main_earncondlst_item.setColumn(idx, "colLine1", "1 solid #808080ff,1 solid #808080ff,1 solid #808080ff,0 none #808080ff");
  446. ds_main_earncondlst_item.setColumn(idx+1, "colLine0", "1 solid #808080ff,0 none #808080ff,1 solid #808080ff,1 solid #808080ff");
  447. ds_main_earncondlst_item.setColumn(idx+1, "colLine1", "1 solid #808080ff,1 solid #808080ff,1 solid #808080ff,0 none #808080ff");
  448. // 합계
  449. ds_main_earncondlst_item.setColumn(idx, sColNm, sumCnt);
  450. ds_main_earncondlst_item.setColumn(idx+1, sColNm, sumAmt);
  451. }
  452. }
  453. ds_main_earncondlst_item.rowposition = -1;
  454. }else if(vFlag == "B") { // 수입
  455. var idx = ds_main_earnlst_item.rowcount;
  456. // 행추가
  457. ds_main_earnlst_item.addRow();
  458. ds_main_earnlst_item.addRow();
  459. ds_main_earnlst_item.addRow();
  460. // 스타일
  461. ds_main_earnlst_item.setColumn(idx, "colBack", "#808080");
  462. ds_main_earnlst_item.setColumn(idx, "colColor", "#ffffff");
  463. ds_main_earnlst_item.setColumn(idx, "colFont", "arial,8,bold");
  464. ds_main_earnlst_item.setColumn(idx+1, "colBack", "#808080");
  465. ds_main_earnlst_item.setColumn(idx+1, "colColor", "#ffffff");
  466. ds_main_earnlst_item.setColumn(idx+1, "colFont", "arial,8,bold");
  467. ds_main_earnlst_item.setColumn(idx+2, "colBack", "#808080");
  468. ds_main_earnlst_item.setColumn(idx+2, "colColor", "#ffffff");
  469. ds_main_earnlst_item.setColumn(idx+2, "colFont", "arial,8,bold");
  470. for(var i =0; i < swt_earncond.case_earn.grd_earnlst.getFormatColCount() ; i++) {
  471. var sColNm = utlf_transNullToEmpty(swt_earncond.case_earn.grd_earnlst.getCellProperty("body", i, "text")).replace("bind:", "");
  472. // 소계
  473. if(i >= swt_earncond.case_earn.grd_earnlst.getBindCellIndex("body", "mon3") && i <= swt_earncond.case_earn.grd_earnlst.getBindCellIndex("body", "montotal") ) {
  474. var sum1 = 0;
  475. var sum2 = 0;
  476. var sum3 = 0;
  477. for(var j=0; j < idx; j++ ) {
  478. var year = ds_main_earnlst_item.getColumn(j, "year");
  479. if(year == befYear) { // 전년도
  480. sum1 += parseInt(ds_main_earnlst_item.getColumn(j, sColNm));
  481. }else if(year == presYear) { // 금년도
  482. sum2 += parseInt(ds_main_earnlst_item.getColumn(j, sColNm));
  483. }else { // 증감
  484. sum3 += parseInt(ds_main_earnlst_item.getColumn(j, sColNm));
  485. }
  486. }
  487. // 항목명
  488. ds_main_earnlst_item.setColumn(idx, "healexamdetlnm", "총계");
  489. ds_main_earnlst_item.setColumn(idx, "year", befYear);
  490. ds_main_earnlst_item.setColumn(idx+1, "healexamdetlnm", "총계");
  491. ds_main_earnlst_item.setColumn(idx+1, "year", presYear);
  492. ds_main_earnlst_item.setColumn(idx+2, "healexamdetlnm", "총계");
  493. ds_main_earnlst_item.setColumn(idx+2, "year", "증감");
  494. // 합계
  495. ds_main_earnlst_item.setColumn(idx, sColNm, sum1);
  496. ds_main_earnlst_item.setColumn(idx+1, sColNm, sum2);
  497. ds_main_earnlst_item.setColumn(idx+2, sColNm, sum3);
  498. }
  499. // 화면 merge
  500. // if( i >= swt_earncond.case_earn.grd_earnlst.getBindCellIndex("body", "healexamnm") && i <= swt_earncond.case_earn.grd_earnlst.getBindCellIndex("body", "healexamdetlnm") ) {
  501. // grd_earnlst.mergeCol(i) = true;
  502. // }else{
  503. // grd_earnlst.mergeCol(i) = false;
  504. // }
  505. }
  506. ds_main_earnlst_item.rowposition = -1;
  507. }else if(vFlag == "C") { // 인원
  508. var idx = ds_main_psnlst_item.rowcount;
  509. ds_main_psnlst_item.addRow();
  510. ds_main_psnlst_item.addRow();
  511. ds_main_psnlst_item.addRow();
  512. // 스타일
  513. ds_main_psnlst_item.setColumn(idx, "colBack", "#808080");
  514. ds_main_psnlst_item.setColumn(idx, "colColor", "#ffffff");
  515. ds_main_psnlst_item.setColumn(idx, "colFont", "arial,9,bold");
  516. ds_main_psnlst_item.setColumn(idx+1, "colBack", "#808080");
  517. ds_main_psnlst_item.setColumn(idx+1, "colColor", "#ffffff");
  518. ds_main_psnlst_item.setColumn(idx+1, "colFont", "arial,9,bold");
  519. ds_main_psnlst_item.setColumn(idx+2, "colBack", "#808080");
  520. ds_main_psnlst_item.setColumn(idx+2, "colColor", "#ffffff");
  521. ds_main_psnlst_item.setColumn(idx+2, "colFont", "arial,9,bold");
  522. for(var i =0; i < swt_earncond.case_psn.grd_psnlst.getFormatColCount() ; i++) {
  523. var sColNm = utlf_transNullToEmpty(swt_earncond.case_psn.grd_psnlst.getCellProperty("body", i, "text")).replace("bind:", "");
  524. // 소계
  525. if(i >= swt_earncond.case_psn.grd_psnlst.getBindCellIndex("body", "mon3") && i <= swt_earncond.case_psn.grd_psnlst.getBindCellIndex("body", "montotal") ) {
  526. var sum1 = 0;
  527. var sum2 = 0;
  528. var sum3 = 0;
  529. for(var j=0; j < idx; j++ ) {
  530. var year = ds_main_psnlst_item.getColumn(j, "year");
  531. if(year == befYear) { // 전년도
  532. sum1 += parseInt(ds_main_psnlst_item.getColumn(j, sColNm));
  533. }else if(year == presYear) { // 금년도
  534. sum2 += parseInt(ds_main_psnlst_item.getColumn(j, sColNm));
  535. }else { // 증감
  536. sum3 += parseInt(ds_main_psnlst_item.getColumn(j, sColNm));
  537. }
  538. }
  539. // 항목명
  540. ds_main_psnlst_item.setColumn(idx, "healexamdetlnm", "총계");
  541. ds_main_psnlst_item.setColumn(idx, "year", befYear);
  542. ds_main_psnlst_item.setColumn(idx+1, "healexamdetlnm", "총계");
  543. ds_main_psnlst_item.setColumn(idx+1, "year", presYear);
  544. ds_main_psnlst_item.setColumn(idx+2, "healexamdetlnm", "총계");
  545. ds_main_psnlst_item.setColumn(idx+2, "year", "증감");
  546. // 합계
  547. ds_main_psnlst_item.setColumn(idx, sColNm, sum1);
  548. ds_main_psnlst_item.setColumn(idx+1, sColNm, sum2);
  549. ds_main_psnlst_item.setColumn(idx+2, sColNm, sum3);
  550. }
  551. // 화면 merge
  552. // if( i >= grd_psnlst.colRef("healexamnm") && i <= grd_psnlst.colRef("healexamdetlnm") ) {
  553. // grd_psnlst.mergeCol(i) = true;
  554. // }else{
  555. // grd_psnlst.mergeCol(i) = false;
  556. // }
  557. }
  558. ds_main_psnlst_item.rowposition = -1;
  559. }
  560. }
  561. /*
  562. * 날짜 초기화
  563. */
  564. function fDate(vYear) {
  565. var dd = new Date(vYear , 13 , 0 );
  566. ds_send.setColumn(0, "srchfromdd" , vYear + "0301");
  567. ds_send.setColumn(0, "srchtodd" , vYear + new String(dd.getMonth()).getLeftPad(2,"0") + new String(dd.getDate() ) );
  568. ds_send.setColumn(0, "srchyear" , vYear);
  569. }
  570. //=======================================================================================
  571. // Event
  572. //---------------------------------------------------------------------------------------
  573. /****************************************************************************************
  574. * Components : Form
  575. * Components ID : SMAHS00900
  576. * Event : oninit
  577. * Argument : 01.obj : Object Event has occurred
  578. * : 02.e : Event Object
  579. * Description : 화면 처음 초기화시
  580. ****************************************************************************************/
  581. function SMAHS00900_oninit(obj:Form, e:InitEventInfo)
  582. {
  583. frmf_initForm(obj); //폼 초기화
  584. }
  585. /****************************************************************************************
  586. * Components : Form
  587. * Components ID : SMAHS00900
  588. * Event : onload
  589. * Argument : 01.obj : Object Event has occurred
  590. * : 02.e : Event Object
  591. * Description : 화면 로딩 완료시
  592. ****************************************************************************************/
  593. function SMAHS00900_onload(obj:Form, e:LoadEventInfo)
  594. {
  595. // 기관코드 초기화
  596. ds_send.setColumn(0, "srchinstcd" , sysf_getUserInfo("posinstcd"));
  597. // 공통코드 조회
  598. var arrParam = [{dsNm: "ds_init_baseinfo_yearlst_P0167", cdGrpId: "P0167"},
  599. {dsNm: "ds_init_baseinfo_healexamflaglist_A0068", cdGrpId: "A0068"},
  600. {dsNm: "ds_init_baseinfo_chealexamdetlflaglist_A0069", cdGrpId: "A0069"},
  601. {dsNm: "ds_init_baseinfo_ghealexamdetlflaglist_A0070", cdGrpId: "A0070"}]
  602. appf_getCodeList(arrParam);
  603. // 전체 넣기
  604. ds_init_baseinfo_healexamflaglist_A0068.insertRow(0);
  605. ds_init_baseinfo_healexamflaglist_A0068.setColumn(0, "cdid" , "A");
  606. ds_init_baseinfo_healexamflaglist_A0068.setColumn(0, "cdnm", "전체");
  607. // 일자초기화
  608. ds_init_srch.setColumn(0, "year" , utlf_getCurrentDate().substr(0,4));
  609. group2.cmb_srchhealexamflag.index = 0;
  610. group2_cmb_srchhealexamflag_onitemchanged();
  611. group2.cmb_srchhealexamdetlflag.index = 0;
  612. group2_cmb_year_onitemchanged();
  613. }
  614. /****************************************************************************************
  615. * Components : Button
  616. * Components ID : btn_search
  617. * Event : onclick
  618. * Argument : 01.obj : Object Event has occurred
  619. * : 02.e : Event Object
  620. * Description : 조회버튼 클릭시
  621. ****************************************************************************************/
  622. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  623. {
  624. var idx = swt_earncond.tabindex;
  625. var vFlag = "";
  626. var ret = false;
  627. if(idx == "0") {
  628. var oParam = {};
  629. oParam.id = "TRAHS00901";
  630. oParam.service = "healexamstatapp.StatRef";
  631. oParam.method = "reqGetEarnCondList";
  632. oParam.inds = "req=ds_send";
  633. oParam.outds = "ds_main_earncondlst_item=item";
  634. oParam.async = false;
  635. oParam.callback = "cf_TRAHS00901";
  636. tranf_submit(oParam);
  637. ds_main_earncondlst_item.addColumn("colBack", "string");
  638. ds_main_earncondlst_item.addColumn("colColor", "string");
  639. ds_main_earncondlst_item.addColumn("colFont", "string");
  640. ds_main_earncondlst_item.addColumn("colLine0", "string");
  641. ds_main_earncondlst_item.addColumn("colLine1", "string");
  642. vFlag = "A";
  643. }else if(idx == "1") {
  644. var oParam = {};
  645. oParam.id = "TRAHS00902";
  646. oParam.service = "healexamstatapp.StatRef";
  647. oParam.method = "reqGetHealexamEarnList";
  648. oParam.inds = "req=ds_send";
  649. oParam.outds = "ds_main_earnlst_item=item";
  650. oParam.async = false;
  651. oParam.callback = "cf_TRAHS00902";
  652. tranf_submit(oParam);
  653. ds_main_earnlst_item.addColumn("colBack", "string");
  654. ds_main_earnlst_item.addColumn("colColor", "string");
  655. ds_main_earnlst_item.addColumn("colFont", "string");
  656. vFlag = "B";
  657. }else if(idx == "2") {
  658. var oParam = {};
  659. oParam.id = "TRAHS00903";
  660. oParam.service = "healexamstatapp.StatRef";
  661. oParam.method = "reqGetEarnPsnList";
  662. oParam.inds = "req=ds_send";
  663. oParam.outds = "ds_main_psnlst_item=item";
  664. oParam.async = false;
  665. oParam.callback = "cf_TRAHS00903";
  666. tranf_submit(oParam);
  667. ds_main_psnlst_item.addColumn("colBack", "string");
  668. ds_main_psnlst_item.addColumn("colColor", "string");
  669. ds_main_psnlst_item.addColumn("colFont", "string");
  670. vFlag = "C";
  671. }
  672. if(arErrorCode.pop("TRAHS00901") > -1 || arErrorCode.pop("TRAHS00902") > -1 || arErrorCode.pop("TRAHS00903") > -1) {
  673. fSetRcptSum(vFlag);
  674. }
  675. }
  676. function cf_TRAHS00901(sSvcId, nErrorCode, sErrorMsg) {
  677. arErrorCode.push(sSvcId, nErrorCode);
  678. }
  679. function cf_TRAHS00902(sSvcId, nErrorCode, sErrorMsg) {
  680. arErrorCode.push(sSvcId, nErrorCode);
  681. }
  682. function cf_TRAHS00903(sSvcId, nErrorCode, sErrorMsg) {
  683. arErrorCode.push(sSvcId, nErrorCode);
  684. }
  685. /****************************************************************************************
  686. * Components : Button
  687. * Components ID : btn_excelsave
  688. * Event : onclick
  689. * Argument : 01.obj : Object Event has occurred
  690. * : 02.e : Event Object
  691. * Description : 엑셀저장버튼 클릭시
  692. ****************************************************************************************/
  693. function group2_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
  694. {
  695. var idx = swt_earncond.tabindex;
  696. if(idx == "0") {
  697. grdf_exportExcel(swt_earncond.case_earncond.grd_earncondlst, "excel", "SheetName", false, "", "user", false);
  698. }else if(idx == "1") {
  699. grdf_exportExcel(swt_earncond.case_earn.grd_earnlst, "excel", "SheetName", false, "", "user", false);
  700. }else if(idx == "2") {
  701. grdf_exportExcel(swt_earncond.case_psn.grd_psnlst, "excel", "SheetName", false, "", "user", false);
  702. }
  703. }
  704. /****************************************************************************************
  705. * Components : Button
  706. * Components ID : btn_prt
  707. * Event : onclick
  708. * Argument : 01.obj : Object Event has occurred
  709. * : 02.e : Event Object
  710. * Description : 출력버튼 클릭시
  711. ****************************************************************************************/
  712. function group2_btn_prt_onclick(obj:Button, e:ClickEventInfo)
  713. {
  714. ds_main_export.setColumn(0, "srchfromdd" ,ds_send.getColumn(0, "srchfromdd").toDate().getDateFormat("YYYY/MM/DD"));
  715. ds_main_export.setColumn(0, "srchtodd" , ds_send.getColumn(0, "srchtodd").toDate().getDateFormat("YYYY/MM/DD"));
  716. ds_main_export.setColumn(0, "srchyear" , ds_send.getColumn(0, "srchyear"));
  717. var idx = swt_earncond.tabindex;
  718. if(idx == "0") {
  719. var objDOM = rptf_createDOM(); // DOM 객체 설정
  720. rptf_setNodeListToDOM(objDOM, "/root/main/earncondlst/item", ds_main_earncondlst_item); // 데이터셋 1
  721. var objParam = new Object();
  722. objParam.srchyear = ds_main_export.getColumn(0, "srchyear"); // 최상의노드 XML 스트링 추출
  723. objParam.srchfromdd = ds_main_export.getColumn(0, "srchfromdd"); // 최상의노드 XML 스트링 추출
  724. objParam.srchtodd = ds_main_export.getColumn(0, "srchtodd"); // 최상의노드 XML 스트링 추출
  725. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  726. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  727. rptf_exeReportPreview30(["RPAHS00901"],[objParam], option);
  728. }else if(idx == "1") {
  729. var objDOM = rptf_createDOM(); // DOM 객체 설정
  730. rptf_setNodeListToDOM(objDOM, "/root/main/earnlst/item", ds_main_earnlst_item); // 데이터셋 1
  731. var objParam = new Object();
  732. objParam.srchyear = ds_main_export.getColumn(0, "srchyear"); // 최상의노드 XML 스트링 추출
  733. objParam.srchfromdd = ds_main_export.getColumn(0, "srchfromdd"); // 최상의노드 XML 스트링 추출
  734. objParam.srchtodd = ds_main_export.getColumn(0, "srchtodd"); // 최상의노드 XML 스트링 추출
  735. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  736. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  737. rptf_exeReportPreview30(["RPAHS00902"],[objParam], option);
  738. }else if(idx == "2") {
  739. var objDOM = rptf_createDOM(); // DOM 객체 설정
  740. rptf_setNodeListToDOM(objDOM, "/root/main/psnlst/item", ds_main_psnlst_item); // 데이터셋 1
  741. var objParam = new Object();
  742. objParam.srchyear = ds_main_export.getColumn(0, "srchyear"); // 최상의노드 XML 스트링 추출
  743. objParam.srchfromdd = ds_main_export.getColumn(0, "srchfromdd"); // 최상의노드 XML 스트링 추출
  744. objParam.srchtodd = ds_main_export.getColumn(0, "srchtodd"); // 최상의노드 XML 스트링 추출
  745. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  746. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  747. rptf_exeReportPreview30(["RPAHS00903"],[objParam], option);
  748. }
  749. }
  750. /****************************************************************************************
  751. * Components : Combo
  752. * Components ID : cmb_year
  753. * Event : onitemchanged
  754. * Argument : 01.obj : Object Event has occurred
  755. * : 02.e : Event Object
  756. * Description : 콤보 값 변경시
  757. ****************************************************************************************/
  758. function group2_cmb_year_onitemchanged(obj, e)
  759. {
  760. fDate(group2.cmb_year.value);
  761. }
  762. /****************************************************************************************
  763. * Components : Combo
  764. * Components ID : cmb_srchhealexamflag
  765. * Event : onitemchanged
  766. * Argument : 01.obj : Object Event has occurred
  767. * : 02.e : Event Object
  768. * Description : 콤보 값 변경시
  769. ****************************************************************************************/
  770. function group2_cmb_srchhealexamflag_onitemchanged(obj, e)
  771. {
  772. var value = ds_send.getColumn(0, "srchhealexamflag");
  773. ds_init_baseinfo_healexamdetlflaglist_item.clearData();
  774. ds_init_baseinfo_healexamdetlflaglist_item.addRow();
  775. ds_init_baseinfo_healexamdetlflaglist_item.setColumn(0, "cdid" , "A");
  776. ds_init_baseinfo_healexamdetlflaglist_item.setColumn(0, "cdnm" , "전체");
  777. if(value == "A") {
  778. ds_init_baseinfo_healexamdetlflaglist_item.appendData(ds_init_baseinfo_chealexamdetlflaglist_A0069, true);
  779. ds_init_baseinfo_healexamdetlflaglist_item.appendData(ds_init_baseinfo_ghealexamdetlflaglist_A0070, true);
  780. }else if(value == "C") {
  781. ds_init_baseinfo_healexamdetlflaglist_item.appendData(ds_init_baseinfo_chealexamdetlflaglist_A0069, true);
  782. }else if(value == "G") {
  783. ds_init_baseinfo_healexamdetlflaglist_item.appendData(ds_init_baseinfo_ghealexamdetlflaglist_A0070, true);
  784. }
  785. }
  786. /****************************************************************************************
  787. * Components : Tab
  788. * Components ID : swt_earncond
  789. * Event : onchanged
  790. * Argument : 01.obj : Object Event has occurred
  791. * : 02.e : Event Object
  792. * Description : 탭 변경시
  793. ****************************************************************************************/
  794. function swt_earncond_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  795. {
  796. switch( e.postindex ){
  797. case 0 :
  798. break;
  799. case 1 :
  800. break;
  801. case 2 :
  802. break;
  803. default :
  804. break;
  805. }
  806. }
  807. ]]></Script>
  808. </Form>
  809. </FDL>