SMAHS03400_검진고객현황.xfdl 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAHS03400" position="absolute 0 0 1214 719" titletext="검진고객 현황" onload="SMAHS03400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group2" position="absolute 0 25 1207 63" style="" class="div_SA" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Shape id="line2" class="line_4" linetype="vertical" position="absolute 1132 3 1135 35" anchor="top right"/>
  11. <Button id="btn_search" class="btn1" position="absolute 1139 8 1195 30" style="" text="조회" onclick="group2_btn_search_onclick" anchor="top right"/>
  12. <Calendar id="ipt_fromdd" class="input_search" enable="False" taborder="7" position="absolute 67 9 172 28" style="" anchor="default" autoselect="true" autoskip="true" onchanged="group2_ipt_fromdd_onchanged"/>
  13. <Button id="btn_excelsave" class="btn7" visible="true" position="absolute 1046 8 1126 30" style="" text="엑셀저장" onclick="group2_btn_excelsave_onclick" anchor="top right"/>
  14. <Static id="caption93" class="search_n_b" position="absolute 173 11 185 28" style="font:,,bolder;" text="~" anchor="default"/>
  15. <Calendar id="ipt_todd" class="input_search" enable="False" taborder="7" position="absolute 185 9 290 28" style="" anchor="default" autoselect="true" onchanged="group2_ipt_todd_onchanged"/>
  16. <Static id="caption2" class="search_name" position="absolute 7 11 64 28" style="" text="기간 :" anchor="default"/>
  17. <Static id="caption1" class="search_name" position="absolute 497 10 546 27" style="" text="분기 :" anchor="default"/>
  18. <Static id="caption3" class="search_name" position="absolute 314 10 371 27" style="" text="연도 :" anchor="default"/>
  19. <Combo innerdataset="ds_init_baseinfo_yearlst" datacolumn="cdnm" codecolumn="cdid" columncount="-1" rowcount="-1" id="cmb_year" enable="False" position="absolute 370 9 470 28" style="" onitemchanged="group2_cmb_year_onitemchanged" anchor="default"/>
  20. <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="cmb_qurtyy" enable="False" position="absolute 550 9 650 28" style="" onitemchanged="group2_cmb_qurtyy_onitemchanged" anchor="default">
  21. <Dataset id="innerdataset">
  22. <ColumnInfo>
  23. <Column id="codecolumn"/>
  24. <Column id="datacolumn"/>
  25. </ColumnInfo>
  26. <Rows>
  27. <Row>
  28. <Col id="codecolumn">03</Col>
  29. <Col id="datacolumn">1분기</Col>
  30. </Row>
  31. <Row>
  32. <Col id="codecolumn">06</Col>
  33. <Col id="datacolumn">2분기</Col>
  34. </Row>
  35. <Row>
  36. <Col id="codecolumn">09</Col>
  37. <Col id="datacolumn">3분기</Col>
  38. </Row>
  39. <Row>
  40. <Col id="codecolumn">12</Col>
  41. <Col id="datacolumn">4분기</Col>
  42. </Row>
  43. </Rows>
  44. </Dataset>
  45. </Combo>
  46. <Static id="caption4" class="search_name" position="absolute 800 11 879 28" style="" text="장소구분:" anchor="default"/>
  47. <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="rdo_ddflag" position="absolute 668 9 783 29" style="" value="1" index="0" onitemchanged="group2_rdo_ddflag_onitemchanged" anchor="default">
  48. <Dataset id="innerdataset">
  49. <ColumnInfo>
  50. <Column id="codecolumn"/>
  51. <Column id="datacolumn"/>
  52. </ColumnInfo>
  53. <Rows>
  54. <Row>
  55. <Col id="codecolumn">1</Col>
  56. <Col id="datacolumn">분기별</Col>
  57. </Row>
  58. <Row>
  59. <Col id="codecolumn">2</Col>
  60. <Col id="datacolumn">기간별</Col>
  61. </Row>
  62. </Rows>
  63. </Dataset>
  64. </Radio>
  65. <Combo innerdataset="@ds_init_baseinfo_healexamflag" datacolumn="cdnm" codecolumn="cdid" columncount="-1" rowcount="-1" id="cmb_srchhealexamplacecd" class="combo_search" position="absolute 881 10 984 29" style="" anchor="default"/>
  66. </Layout>
  67. </Layouts>
  68. </Div>
  69. <Tab id="swt_recm" position="absolute 0 72 1205 712" style="" anchor="all">
  70. <Tabpages>
  71. <Tabpage id="case_zone" selected="true" anchor="default" text="지역별">
  72. <Layouts>
  73. <Layout>
  74. <Grid id="grd_zone" binddataset="ds_main_zone_item" position="absolute 0 0 1204 604" style="" anchor="all">
  75. <Formats>
  76. <Format id="default">
  77. <Columns>
  78. <Column size="30"/>
  79. <Column size="170"/>
  80. <Column size="170"/>
  81. <Column size="170"/>
  82. <Column size="170"/>
  83. </Columns>
  84. <Rows>
  85. <Row size="24" band="head"/>
  86. <Row size="24"/>
  87. </Rows>
  88. <Band id="head">
  89. <Cell/>
  90. <Cell col="1"/>
  91. <Cell col="2" text="대구"/>
  92. <Cell col="3" text="경북"/>
  93. <Cell col="4" text="기타"/>
  94. </Band>
  95. <Band id="body">
  96. <Cell celltype="head" style="font:dotum,9,bold;" expr="currow+1"/>
  97. <Cell col="1" style="font:dotum,9,bold;" text="bind:zone1"/>
  98. <Cell col="2" style="font:dotum,9,bold;" text="bind:daegu"/>
  99. <Cell col="3" style="font:dotum,9,bold;" text="bind:kyungpook"/>
  100. <Cell col="4" style="font:dotum,9,bold;" text="bind:etc"/>
  101. </Band>
  102. </Format>
  103. </Formats>
  104. </Grid>
  105. </Layout>
  106. </Layouts>
  107. </Tabpage>
  108. <Tabpage id="case_area" anchor="default" text="구역별">
  109. <Layouts>
  110. <Layout>
  111. <Grid id="grd_area" binddataset="ds_main_area_item" position="absolute 0 0 1204 604" style="" anchor="all">
  112. <Formats>
  113. <Format id="default">
  114. <Columns>
  115. <Column size="28"/>
  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. <Column size="80"/>
  128. <Column size="80"/>
  129. </Columns>
  130. <Rows>
  131. <Row size="24" band="head"/>
  132. <Row size="24"/>
  133. </Rows>
  134. <Band id="head">
  135. <Cell/>
  136. <Cell col="1"/>
  137. <Cell col="2" text="중구"/>
  138. <Cell col="3" text="남구"/>
  139. <Cell col="4" text="서구"/>
  140. <Cell col="5" text="북구"/>
  141. <Cell col="6" text="동구"/>
  142. <Cell col="7" text="수성구"/>
  143. <Cell col="8" text="달서구"/>
  144. <Cell col="9" text="달성군"/>
  145. <Cell col="10" text="칠곡군"/>
  146. <Cell col="11" text="영천시"/>
  147. <Cell col="12" text="구미"/>
  148. <Cell col="13" text="기타"/>
  149. </Band>
  150. <Band id="body">
  151. <Cell celltype="head" style="font:dotum,9,bold;" expr="currow+1"/>
  152. <Cell col="1" style="font:dotum,9,bold;" text="bind:zone2"/>
  153. <Cell col="2" style="font:dotum,9,bold;" text="bind:junggu"/>
  154. <Cell col="3" style="font:dotum,9,bold;" text="bind:namgu"/>
  155. <Cell col="4" style="font:dotum,9,bold;" text="bind:seogu"/>
  156. <Cell col="5" style="font:dotum,9,bold;" text="bind:bookgu"/>
  157. <Cell col="6" style="font:dotum,9,bold;" text="bind:donggu"/>
  158. <Cell col="7" style="font:dotum,9,bold;" text="bind:susung"/>
  159. <Cell col="8" style="font:dotum,9,bold;" text="bind:dalseo"/>
  160. <Cell col="9" style="font:dotum,9,bold;" text="bind:dalseong"/>
  161. <Cell col="10" style="font:dotum,9,bold;" text="bind:chilgok"/>
  162. <Cell col="11" style="font:dotum,9,bold;" text="bind:youngchun"/>
  163. <Cell col="12" style="font:dotum,9,bold;" text="bind:gumi"/>
  164. <Cell col="13" style="font:dotum,9,bold;" text="bind:etc"/>
  165. </Band>
  166. </Format>
  167. </Formats>
  168. </Grid>
  169. </Layout>
  170. </Layouts>
  171. </Tabpage>
  172. <Tabpage id="case_sex" anchor="default" text="성별">
  173. <Layouts>
  174. <Layout>
  175. <Grid id="grd_sex" binddataset="ds_main_sex_item" position="absolute 0 0 1204 604" style="" anchor="all">
  176. <Formats>
  177. <Format id="default">
  178. <Columns>
  179. <Column size="34"/>
  180. <Column size="100"/>
  181. <Column size="170"/>
  182. <Column size="170"/>
  183. </Columns>
  184. <Rows>
  185. <Row size="24" band="head"/>
  186. <Row size="24"/>
  187. </Rows>
  188. <Band id="head">
  189. <Cell/>
  190. <Cell col="1"/>
  191. <Cell col="2" text="남성"/>
  192. <Cell col="3" text="여성"/>
  193. </Band>
  194. <Band id="body">
  195. <Cell celltype="head" expr="currow+1"/>
  196. <Cell col="1" style="font:dotum,9,bold;" text="bind:zone3"/>
  197. <Cell col="2" style="font:dotum,9,bold;" text="bind:man"/>
  198. <Cell col="3" style="font:dotum,9,bold;" text="bind:female"/>
  199. </Band>
  200. </Format>
  201. </Formats>
  202. </Grid>
  203. </Layout>
  204. </Layouts>
  205. </Tabpage>
  206. <Tabpage id="case_age" anchor="default" text="연령별">
  207. <Layouts>
  208. <Layout>
  209. <Grid id="grd_age" binddataset="ds_main_age_item" position="absolute 0 0 1204 604" style="" anchor="all">
  210. <Formats>
  211. <Format id="default">
  212. <Columns>
  213. <Column size="32"/>
  214. <Column size="100"/>
  215. <Column size="170"/>
  216. <Column size="170"/>
  217. <Column size="170"/>
  218. <Column size="170"/>
  219. <Column size="170"/>
  220. <Column size="170"/>
  221. </Columns>
  222. <Rows>
  223. <Row size="24" band="head"/>
  224. <Row size="24"/>
  225. </Rows>
  226. <Band id="head">
  227. <Cell/>
  228. <Cell col="1"/>
  229. <Cell col="2" text="20대미만"/>
  230. <Cell col="3" text="30대"/>
  231. <Cell col="4" text="40대"/>
  232. <Cell col="5" text="50대"/>
  233. <Cell col="6" text="60대"/>
  234. <Cell col="7" text="70대이상"/>
  235. </Band>
  236. <Band id="body">
  237. <Cell celltype="head" expr="currow+1"/>
  238. <Cell col="1" style="font:dotum,9,bold;" text="bind:zone4"/>
  239. <Cell col="2" style="font:dotum,9,bold;" text="bind:aa"/>
  240. <Cell col="3" style="font:dotum,9,bold;" text="bind:bb"/>
  241. <Cell col="4" style="font:dotum,9,bold;" text="bind:cc"/>
  242. <Cell col="5" style="font:dotum,9,bold;" text="bind:dd"/>
  243. <Cell col="6" style="font:dotum,9,bold;" text="bind:ee"/>
  244. <Cell col="7" style="font:dotum,9,bold;" text="bind:ff"/>
  245. </Band>
  246. </Format>
  247. </Formats>
  248. </Grid>
  249. </Layout>
  250. </Layouts>
  251. </Tabpage>
  252. </Tabpages>
  253. </Tab>
  254. <Static id="caption60" text="검진고객 현황" class="tit_1" position="absolute 0 0 183 25" style="align:left middle;font:Dotum,9,bold;"/>
  255. </Layout>
  256. </Layouts>
  257. <Objects>
  258. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  259. <ColumnInfo>
  260. <Column id="hidden" type="STRING" size="256"/>
  261. </ColumnInfo>
  262. <Rows>
  263. <Row>
  264. <Col id="hidden"/>
  265. </Row>
  266. </Rows>
  267. </Dataset>
  268. <Dataset id="ds_main_area_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  269. <ColumnInfo>
  270. <Column id="zone2" type="STRING" size="256"/>
  271. <Column id="junggu" type="STRING" size="256"/>
  272. <Column id="namgu" type="STRING" size="256"/>
  273. <Column id="seogu" type="STRING" size="256"/>
  274. <Column id="bookgu" type="STRING" size="256"/>
  275. <Column id="donggu" type="STRING" size="256"/>
  276. <Column id="susung" type="STRING" size="256"/>
  277. <Column id="dalseo" type="STRING" size="256"/>
  278. <Column id="dalseong" type="STRING" size="256"/>
  279. <Column id="chilgok" type="STRING" size="256"/>
  280. <Column id="youngchun" type="STRING" size="256"/>
  281. <Column id="gumi" type="STRING" size="256"/>
  282. <Column id="etc" type="STRING" size="256"/>
  283. </ColumnInfo>
  284. <Rows>
  285. <Row>
  286. <Col id="zone2"/>
  287. <Col id="junggu"/>
  288. <Col id="namgu"/>
  289. <Col id="seogu"/>
  290. <Col id="bookgu"/>
  291. <Col id="donggu"/>
  292. <Col id="susung"/>
  293. <Col id="dalseo"/>
  294. <Col id="dalseong"/>
  295. <Col id="chilgok"/>
  296. <Col id="youngchun"/>
  297. <Col id="gumi"/>
  298. <Col id="etc"/>
  299. </Row>
  300. </Rows>
  301. </Dataset>
  302. <Dataset id="ds_init_baseinfo_healexamflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  303. <ColumnInfo/>
  304. </Dataset>
  305. <Dataset id="ds_main_sex_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  306. <ColumnInfo>
  307. <Column id="zone3" type="STRING" size="256"/>
  308. <Column id="man" type="STRING" size="256"/>
  309. <Column id="female" type="STRING" size="256"/>
  310. </ColumnInfo>
  311. <Rows>
  312. <Row>
  313. <Col id="zone3"/>
  314. <Col id="man"/>
  315. <Col id="female"/>
  316. </Row>
  317. </Rows>
  318. </Dataset>
  319. <Dataset id="ds_main_age_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  320. <ColumnInfo>
  321. <Column id="zone4" type="STRING" size="256"/>
  322. <Column id="aa" type="STRING" size="256"/>
  323. <Column id="bb" type="STRING" size="256"/>
  324. <Column id="cc" type="STRING" size="256"/>
  325. <Column id="dd" type="STRING" size="256"/>
  326. <Column id="ee" type="STRING" size="256"/>
  327. <Column id="ff" type="STRING" size="256"/>
  328. </ColumnInfo>
  329. <Rows>
  330. <Row>
  331. <Col id="zone4"/>
  332. <Col id="aa"/>
  333. <Col id="bb"/>
  334. <Col id="cc"/>
  335. <Col id="dd"/>
  336. <Col id="ee"/>
  337. <Col id="ff"/>
  338. </Row>
  339. </Rows>
  340. </Dataset>
  341. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  342. <ColumnInfo>
  343. <Column id="srchfromdd" type="STRING" size="256"/>
  344. <Column id="srchtodd" type="STRING" size="256"/>
  345. <Column id="srchinstcd" type="STRING" size="256"/>
  346. <Column id="srchhealexamflag" type="STRING" size="256"/>
  347. </ColumnInfo>
  348. <Rows>
  349. <Row>
  350. <Col id="srchfromdd"/>
  351. <Col id="srchtodd"/>
  352. <Col id="srchinstcd"/>
  353. <Col id="srchhealexamflag"/>
  354. </Row>
  355. </Rows>
  356. </Dataset>
  357. <Dataset id="ds_init_srch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  358. <ColumnInfo>
  359. <Column id="fromdd" type="STRING" size="256"/>
  360. <Column id="todd" type="STRING" size="256"/>
  361. <Column id="year" type="STRING" size="256"/>
  362. <Column id="qurtyy" type="STRING" size="256"/>
  363. <Column id="ddflag" type="STRING" size="256"/>
  364. </ColumnInfo>
  365. <Rows>
  366. <Row>
  367. <Col id="ddflag">1</Col>
  368. </Row>
  369. </Rows>
  370. </Dataset>
  371. <Dataset id="ds_main_zone_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  372. <ColumnInfo>
  373. <Column id="zone1" type="STRING" size="256"/>
  374. <Column id="daegu" type="STRING" size="256"/>
  375. <Column id="kyungpook" type="STRING" size="256"/>
  376. <Column id="etc" type="STRING" size="256"/>
  377. </ColumnInfo>
  378. <Rows>
  379. <Row>
  380. <Col id="zone1"/>
  381. <Col id="daegu"/>
  382. <Col id="kyungpook"/>
  383. <Col id="etc"/>
  384. </Row>
  385. </Rows>
  386. </Dataset>
  387. <Dataset id="ds_init_baseinfo_yearlst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  388. </Objects>
  389. <Bind>
  390. <BindItem id="item0" compid="group2.ipt_fromdd" propid="value" datasetid="ds_init_srch" columnid="fromdd"/>
  391. <BindItem id="item1" compid="group2.ipt_todd" propid="value" datasetid="ds_init_srch" columnid="todd"/>
  392. <BindItem id="item2" compid="group2.cmb_year" propid="value" datasetid="ds_init_srch" columnid="year"/>
  393. <BindItem id="item3" compid="group2.cmb_qurtyy" propid="value" datasetid="ds_init_srch" columnid="qurtyy"/>
  394. <BindItem id="item4" compid="group2.rdo_ddflag" propid="value" datasetid="ds_init_srch" columnid="ddflag"/>
  395. <BindItem id="item5" compid="group2.cmb_srchhealexamplacecd" propid="value" datasetid="ds_send" columnid="srchhealexamflag"/>
  396. </Bind>
  397. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  398. * System Name :
  399. * Job Name :
  400. * Creator :
  401. * Make Date : 2015-11-13
  402. * Description :
  403. *---------------------------------------------------------------------------------------
  404. * Modify Date Modifier Modify Description
  405. *---------------------------------------------------------------------------------------
  406. * 2015-11-13 Live Converter TF->XP
  407. *
  408. *---------------------------------------------------------------------------------------
  409. ****************************************************************************************/
  410. include "com_commonxp::comm_main.xjs";
  411. include "emr_carecomxp::ENRSignEngine.xjs";
  412. include "com_basiccodexp::ZBC001.xjs";
  413. include "com_zipcodexp::ZBP001.xjs";
  414. include "ast_healexamxp::AHA001.xjs";
  415. include "ast_commonxp::AST.xjs";
  416. include "ast_healthexambasexp::healcombolist.xjs";
  417. function SMAHS03400_onload(obj:Form, e:LoadEventInfo) {
  418. frmf_initForm(obj);
  419. //grdf_initGrid(grd_XXX);
  420. //grdf_setGridSort(grd_XXX);
  421. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  422. // 일자초기화
  423. ds_init_srch.setColumn( 0, "fromdd" , utlf_getCurrentDate());
  424. ds_init_srch.setColumn( 0, "todd" , utlf_getCurrentDate());
  425. ds_init_srch.setColumn( 0, "year" , utlf_getCurrentDate().substr(0,4));
  426. ds_init_srch.setColumn( 0, "qurtyy" , "03");
  427. // 기관코드 초기화
  428. ds_send.setColumn( 0, "srchinstcd" , sysf_getUserInfo("dutplceinstcd"));
  429. // 공통코드 조회
  430. var arrParam = [{dsNm: "ds_init_baseinfo_yearlst", cdGrpId: "P0167"}
  431. ,{dsNm: "ds_init_baseinfo_monthlst", cdGrpId: "R0009"}
  432. ,{dsNm: "ds_init_baseinfo_healexamflag", cdGrpId: "A0068"} ];
  433. appf_getCodeList(arrParam);
  434. // 건진 공통코드 조회
  435. //healGetCodeList( new Array("S210"), new Array("ds_init_baseinfo_recmpkglst") );
  436. var arrParam = [ {dsNm: "ds_init_baseinfo_recmpkglst", cdGrpId: "S210"} ];
  437. healGetCodeList(arrParam);
  438. frmf_inputEnterKey("group2.rdo_ddflag", "onitemchanged", new ItemChangeEventInfo );
  439. ds_send.setColumn( 0, "srchhealexamflag", String(frmf_getMenuParam()));
  440. }
  441. function fSetDate() {trace(group2.rdo_ddflag.value)
  442. if(group2.rdo_ddflag.value == "1") {
  443. // 분기별
  444. group2.ipt_fromdd.enable = false;
  445. group2.ipt_todd.enable = false;
  446. group2.cmb_year.enable = true;
  447. group2.cmb_qurtyy.enable = true;
  448. // 일자초기화
  449. var year = group2.cmb_year.value;
  450. var month = group2.cmb_qurtyy.value;
  451. var todd = new Date(year , parseInt(month,10) + 2 , 0 );
  452. todd = todd.getDateFormat("YYYYMMDD");
  453. // 시작일
  454. ds_send.setColumn( 0, "srchfromdd" , year + month + "01");
  455. ds_send.setColumn( 0, "srchtodd" , todd);
  456. }else if(group2.rdo_ddflag.value == "2") {
  457. // 기간별
  458. group2.ipt_fromdd.enable = true;
  459. group2.ipt_todd.enable = true;
  460. group2.cmb_year.enable = false;
  461. group2.cmb_qurtyy.enable = false;
  462. // 일자초기화
  463. ds_send.setColumn( 0, "srchfromdd" , group2.ipt_fromdd.value);
  464. ds_send.setColumn( 0, "srchtodd" , group2.ipt_todd.value);
  465. }
  466. }
  467. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  468. var idx = swt_recm.tabindex;
  469. var ret = false;
  470. if(idx == "0") {
  471. var oParam = {};
  472. oParam.id = "TRAHS03401";
  473. oParam.service = "healexamstatapp.StatRef";
  474. oParam.method = "reqGetZoneList";
  475. oParam.inds = "req=ds_send";
  476. oParam.outds = "ds_main_zone_item=item";
  477. oParam.async = false;
  478. //oParam.callback = "cf_TRAHS03401";
  479. tranf_submit(oParam);
  480. }else if(idx == "1"){
  481. var oParam = {};
  482. oParam.id = "TRAHS03402";
  483. oParam.service = "healexamstatapp.StatRef";
  484. oParam.method = "reqGetAreaList";
  485. oParam.inds = "req=ds_send";
  486. oParam.outds = "ds_main_area_item=item";
  487. oParam.async = false;
  488. //oParam.callback = "cf_TRAHS03402";
  489. tranf_submit(oParam);
  490. }else if(idx == "2") {
  491. var oParam = {};
  492. oParam.id = "TRAHS03403";
  493. oParam.service = "healexamstatapp.StatRef";
  494. oParam.method = "reqGetSexList";
  495. oParam.inds = "req=ds_send";
  496. oParam.outds = "ds_main_sex_item=item";
  497. oParam.async = false;
  498. //oParam.callback = "cf_TRAHS03403";
  499. tranf_submit(oParam);
  500. }else if(idx == "3") {
  501. var oParam = {};
  502. oParam.id = "TRAHS03404";
  503. oParam.service = "healexamstatapp.StatRef";
  504. oParam.method = "reqGetAgeList";
  505. oParam.inds = "req=ds_send";
  506. oParam.outds = "ds_main_age_item=item";
  507. oParam.async = false;
  508. //oParam.callback = "cf_TRAHS03404";
  509. tranf_submit(oParam);
  510. }
  511. }
  512. function group2_ipt_fromdd_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
  513. fSetDate();
  514. }
  515. function group2_btn_excelsave_onclick(obj:Button, e:ClickEventInfo) {
  516. var idx = swt_recm.tabindex;
  517. if(idx == "0") {
  518. grdf_exportExcel(swt_recm.case_zone.grd_zone, "excel", "sheet1", true, "" , "" , true);
  519. }else if(idx == "1") {
  520. grdf_exportExcel(swt_recm.case_area.grd_area,"excel", "sheet1", true, "" , "" , true);
  521. }else if(idx == "2") {
  522. grdf_exportExcel(swt_recm.case_sex.grd_sex, "excel", "sheet1", true, "" , "" , true);
  523. }else if(idx == "3") {
  524. grdf_exportExcel(swt_recm.case_age.grd_age, "excel", "sheet1", true, "" , "" , true);
  525. }
  526. }
  527. function group2_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  528. {
  529. fSetDate();
  530. }
  531. function group2_ipt_todd_onchanged(obj:Calendar, e:ChangeEventInfo)
  532. {
  533. fSetDate();
  534. }
  535. function group2_cmb_year_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  536. {
  537. fSetDate();
  538. }
  539. function group2_cmb_qurtyy_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  540. {
  541. fSetDate();
  542. }
  543. function group2_rdo_ddflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  544. {
  545. fSetDate();
  546. }
  547. ]]></Script>
  548. </Form>
  549. </FDL>