SPCHT00300_건진데이터마이닝그룹관리.xfdl 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPCHT00300" position="absolute 0 0 651 460" titletext="건진데이터마이닝 그룹관리" oninit="SPCHT00300_oninit" onload="SPCHT00300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="건진데이터마이닝 그룹관리" class="tit_1" position="absolute 0 0 214 21"/>
  8. <Button id="btn_add_healexamdtmnlrg" taborder="1" text="행추가" class="btn2" position="absolute 59 29 112 48" onclick="btn_add_healexamdtmnlrg_onclick"/>
  9. <Button id="btn_delete_healexamdtmnlrg" taborder="2" text="행삭제" class="btn2" position="absolute 115 29 168 48" onclick="btn_delete_healexamdtmnlrg_onclick"/>
  10. <Button id="btn_save_healexamdtmnlrg" taborder="3" text="저장" class="btn5" position="absolute 171 29 213 48" onclick="btn_save_healexamdtmnlrg_onclick"/>
  11. <Shape id="line12" class="line_10" position="absolute 0 48 213 54"/>
  12. <Grid id="grd_healexamdtmnlrglist" taborder="4" binddataset="ds_main_list_healexamdtmnlrglist_healexamdtmnlrggrup" useinputpanel="false" position="absolute 0 53 213 431" autoenter="select" autofittype="col" cellsizingtype="col" onselectchanged="grd_healexamdtmnlrglist_onselectchanged" selecttype="multirow">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="21"/>
  17. <Column size="191"/>
  18. <Column size="0"/>
  19. </Columns>
  20. <Rows>
  21. <Row size="24" band="head"/>
  22. <Row size="24"/>
  23. </Rows>
  24. <Band id="head">
  25. <Cell/>
  26. <Cell col="1" text="대그룹 제목"/>
  27. <Cell col="2" text="대그룹코드"/>
  28. </Band>
  29. <Band id="body">
  30. <Cell celltype="head"/>
  31. <Cell col="1" displaytype="text" edittype="text" text="bind:healexamdtmnlrgtitl"/>
  32. <Cell col="2" text="bind:healexamdtmnlrgcd"/>
  33. </Band>
  34. </Format>
  35. </Formats>
  36. </Grid>
  37. <Shape id="line1" class="line_10" position="absolute 216 48 429 54"/>
  38. <Grid id="grd_healexamdtmnmdllist" taborder="5" binddataset="ds_main_list_healexamdtmnmdllist_healexamdtmnmdlgrup" useinputpanel="false" position="absolute 216 53 429 431" autoenter="select" autofittype="col" cellsizingtype="col" onselectchanged="grd_healexamdtmnmdllist_onselectchanged" selecttype="multirow">
  39. <Formats>
  40. <Format id="default">
  41. <Columns>
  42. <Column size="23"/>
  43. <Column size="191"/>
  44. <Column size="0"/>
  45. <Column size="0"/>
  46. </Columns>
  47. <Rows>
  48. <Row size="24" band="head"/>
  49. <Row size="24"/>
  50. </Rows>
  51. <Band id="head">
  52. <Cell/>
  53. <Cell col="1" text="중그룹 제목"/>
  54. <Cell col="2" text="중그룹 코드"/>
  55. <Cell col="3"/>
  56. </Band>
  57. <Band id="body">
  58. <Cell celltype="head"/>
  59. <Cell col="1" displaytype="text" edittype="text" text="bind:healexamdtmnmdltitl"/>
  60. <Cell col="2" text="bind:healexamdtmnmdlcd"/>
  61. <Cell col="3" text="bind:healexamdtmnlrgcd"/>
  62. </Band>
  63. </Format>
  64. </Formats>
  65. </Grid>
  66. <Button id="btn_add_healexamdtmnmdl" taborder="6" text="행추가" class="btn2" position="absolute 275 29 328 48" onclick="btn_add_healexamdtmnmdl_onclick"/>
  67. <Button id="btn_delete_healexamdtmnmdl" taborder="7" text="행삭제" class="btn2" position="absolute 331 29 384 48" onclick="btn_delete_healexamdtmnmdl_onclick"/>
  68. <Button id="btn_save_healexamdtmnmdl" taborder="8" text="저장" class="btn5" position="absolute 387 29 429 48" onclick="btn_save_healexamdtmnmdl_onclick"/>
  69. <Grid id="grd_healexamdtmnsmllist" taborder="9" binddataset="ds_main_list_healexamdtmnsmllist_healexamdtmnsmlgrup" useinputpanel="false" position="absolute 432 53 645 431" autoenter="select" autofittype="col" cellsizingtype="col" selecttype="multirow">
  70. <Formats>
  71. <Format id="default">
  72. <Columns>
  73. <Column size="24"/>
  74. <Column size="191"/>
  75. <Column size="0"/>
  76. <Column size="0"/>
  77. <Column size="0"/>
  78. </Columns>
  79. <Rows>
  80. <Row size="24" band="head"/>
  81. <Row size="24"/>
  82. </Rows>
  83. <Band id="head">
  84. <Cell/>
  85. <Cell col="1" text="소그룹 제목"/>
  86. <Cell col="2" text="소그룹코드"/>
  87. <Cell col="3"/>
  88. <Cell col="4"/>
  89. </Band>
  90. <Band id="body">
  91. <Cell celltype="head"/>
  92. <Cell col="1" displaytype="text" edittype="text" text="bind:healexamdtmnsmltitl"/>
  93. <Cell col="2" text="bind:healexamdtmnsmlcd"/>
  94. <Cell col="3" text="bind:healexamdtmnlrgcd"/>
  95. <Cell col="4" text="bind:healexamdtmnmdlcd"/>
  96. </Band>
  97. </Format>
  98. </Formats>
  99. </Grid>
  100. <Shape id="line2" class="line_10" position="absolute 432 48 645 54"/>
  101. <Button id="btn_add_healexamdtmnsml" taborder="10" text="행추가" class="btn2" position="absolute 491 29 544 48" onclick="btn_add_healexamdtmnsml_onclick"/>
  102. <Button id="btn_delete_healexamdtmnsml" taborder="11" text="행삭제" class="btn2" position="absolute 547 29 600 48" onclick="btn_delete_healexamdtmnsml_onclick"/>
  103. <Button id="btn_save_healexamdtmnsml" taborder="12" text="저장" class="btn5" position="absolute 603 29 645 48" onclick="btn_save_healexamdtmnsml_onclick"/>
  104. <Button id="button8" taborder="13" text="닫기" class="btn4" position="absolute 589 434 645 456" onclick="button8_onclick"/>
  105. </Layout>
  106. </Layouts>
  107. <Objects>
  108. <Dataset id="ds_main_list_healexamdtmnlrglist_healexamdtmnlrggrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  109. <ColumnInfo>
  110. <Column id="healexamdtmnlrgcd" type="INT" size="256" sumtext="건진데이터마이닝대분류코드"/>
  111. <Column id="healexamdtmnlrgtitl" type="STRING" size="256" sumtext="건진데이터마이닝대분류이름"/>
  112. </ColumnInfo>
  113. </Dataset>
  114. <Dataset id="ds_main_list_healexamdtmnmdllist_healexamdtmnmdlgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  115. <ColumnInfo>
  116. <Column id="healexamdtmnmdlcd" type="INT" size="256" sumtext="건진데이터마이닝중분류코드"/>
  117. <Column id="healexamdtmnmdltitl" type="STRING" size="256" sumtext="건진데이터마이닝중분류제목"/>
  118. <Column id="healexamdtmnlrgcd" type="INT" size="256" sumtext="건진데이터마이닝대분류코드"/>
  119. </ColumnInfo>
  120. </Dataset>
  121. <Dataset id="ds_main_list_healexamdtmnsmllist_healexamdtmnsmlgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  122. <ColumnInfo>
  123. <Column id="healexamdtmnsmltitl" type="STRING" size="256" sumtext="건진데이터마이닝소분류제목"/>
  124. <Column id="healexamdtmnsmlcd" type="INT" size="256" sumtext="건진데이터마이닝소분류코드"/>
  125. <Column id="healexamdtmnlrgcd" type="INT" size="256" sumtext="건진데이터마이닝대분류코드"/>
  126. <Column id="healexamdtmnmdlcd" type="INT" size="256" sumtext="건진데이터마이닝중분류코드"/>
  127. </ColumnInfo>
  128. </Dataset>
  129. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  130. <ColumnInfo>
  131. <Column id="healexamdtmnlrgcd" type="STRING" size="256"/>
  132. <Column id="healexamdtmnmdlcd" type="STRING" size="256"/>
  133. <Column id="healexamdtmnsmlcd" type="STRING" size="256"/>
  134. </ColumnInfo>
  135. <Rows>
  136. <Row>
  137. <Col id="healexamdtmnlrgcd"/>
  138. <Col id="healexamdtmnmdlcd"/>
  139. <Col id="healexamdtmnsmlcd"/>
  140. </Row>
  141. </Rows>
  142. </Dataset>
  143. <Dataset id="ds_send_healexamdtmnlrglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  144. <Dataset id="ds_send_healexamdtmnmdllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  145. <Dataset id="ds_send_healexamdtmnsmllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  146. </Objects>
  147. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  148. * System Name :
  149. * Job Name :
  150. * Creator :
  151. * Make Date : 2016-05-24
  152. * Description :
  153. *---------------------------------------------------------------------------------------
  154. * Modify Date Modifier Modify Description
  155. *---------------------------------------------------------------------------------------
  156. * 2016-05-24 Live Converter TF->XP
  157. *
  158. *---------------------------------------------------------------------------------------
  159. ****************************************************************************************/
  160. include "com_commonxp::comm_main.xjs";
  161. var arErrorCode = new HashArray();
  162. function SPCHT00300_oninit(obj:Form, e:InitEventInfo)
  163. {
  164. frmf_initForm(obj);
  165. }
  166. function SPCHT00300_onload(obj:Form, e:LoadEventInfo)
  167. {
  168. grdf_initGrid(grd_healexamdtmnlrglist);
  169. grdf_setRowTypeIcon(grd_healexamdtmnlrglist, 0);
  170. grdf_initGrid(grd_healexamdtmnmdllist);
  171. grdf_setRowTypeIcon(grd_healexamdtmnmdllist, 0);
  172. grdf_initGrid(grd_healexamdtmnsmllist);
  173. grdf_setRowTypeIcon(grd_healexamdtmnsmllist, 0);
  174. ds_main_list_healexamdtmnlrglist_healexamdtmnlrggrup.clearData();
  175. ds_main_list_healexamdtmnmdllist_healexamdtmnmdlgrup.clearData();
  176. ds_main_list_healexamdtmnsmllist_healexamdtmnsmlgrup.clearData();
  177. var oParam = {};
  178. oParam.id = "TRCHT00301";
  179. oParam.service = "healexammngtapp.HealExamClsMngt";
  180. oParam.method = "reqGetHealExamLrgCd";
  181. oParam.inds = "req=ds_";
  182. oParam.outds = "ds_main_list_healexamdtmnlrglist_healexamdtmnlrggrup=healexamdtmnlrggrup";
  183. oParam.async = false;
  184. //oParam.callback = "cf_TRCHT00301";
  185. tranf_submit(oParam);
  186. grd_healexamdtmnlrglist.setFocus();
  187. }
  188. function grd_healexamdtmnlrglist_onselectchanged(obj:Grid, e:GridSelectEventInfo)
  189. {
  190. // 선택한 대그룹에 속한 중그룹을 가져온다.
  191. var row = ds_main_list_healexamdtmnlrglist_healexamdtmnlrggrup.rowposition;
  192. var healexamdtmnlrgcd = ds_main_list_healexamdtmnlrglist_healexamdtmnlrggrup.getColumn(row, "healexamdtmnlrgcd");
  193. var healexamdtmnlrgnm = ds_main_list_healexamdtmnlrglist_healexamdtmnlrggrup.getColumn(row, "healexamdtmnlrgtitl");
  194. if (!utlf_isNull(healexamdtmnlrgnm) && row >= 0 )
  195. {
  196. ds_send.setColumn(0, "healexamdtmnlrgcd", healexamdtmnlrgcd);
  197. ds_main_list_healexamdtmnmdllist_healexamdtmnmdlgrup.clearData();
  198. ds_main_list_healexamdtmnsmllist_healexamdtmnsmlgrup.clearData();
  199. var oParam = {};
  200. oParam.id = "TRCHT00302";
  201. oParam.service = "healexammngtapp.HealExamClsMngt";
  202. oParam.method = "reqGetHealExamMdlCd";
  203. oParam.inds = "req=ds_send";
  204. oParam.outds = "ds_main_list_healexamdtmnmdllist_healexamdtmnmdlgrup=healexamdtmnmdlgrup";
  205. oParam.async = false;
  206. //oParam.callback = "cf_TRCHT00302";
  207. tranf_submit(oParam);
  208. }
  209. }
  210. function grd_healexamdtmnmdllist_onselectchanged(obj:Grid, e:GridSelectEventInfo)
  211. {
  212. // 선택한 중그룹에 속한 소그룹을 가져온다.
  213. var row = ds_main_list_healexamdtmnmdllist_healexamdtmnmdlgrup.rowposition;
  214. var healexamdtmnmdlcd = ds_main_list_healexamdtmnmdllist_healexamdtmnmdlgrup.getColumn(row, "healexamdtmnmdlcd");
  215. var healexamdtmnlrgcd = ds_main_list_healexamdtmnmdllist_healexamdtmnmdlgrup.getColumn(row, "healexamdtmnlrgcd");
  216. var healexamdtmnmdlnm = ds_main_list_healexamdtmnmdllist_healexamdtmnmdlgrup.getColumn(row, "healexamdtmnmdltitl");
  217. if ( !utlf_isNull(healexamdtmnmdlnm))
  218. {
  219. ds_send.setColumn(0, "healexamdtmnmdlcd", healexamdtmnmdlcd);
  220. ds_send.setColumn(0, "healexamdtmnlrgcd", healexamdtmnlrgcd);
  221. ds_main_list_healexamdtmnsmllist_healexamdtmnsmlgrup.clearData();
  222. var oParam = {};
  223. oParam.id = "TRCHT00303";
  224. oParam.service = "healexammngtapp.HealExamClsMngt";
  225. oParam.method = "reqGetHealExamSmlCd";
  226. oParam.inds = "req=ds_send";
  227. oParam.outds = "ds_main_list_healexamdtmnsmllist_healexamdtmnsmlgrup=healexamdtmnsmlgrup";
  228. oParam.async = false;
  229. //oParam.callback = "cf_TRCHT00303";
  230. tranf_submit(oParam);
  231. }
  232. }
  233. function btn_add_healexamdtmnlrg_onclick(obj:Button, e:ClickEventInfo)
  234. {
  235. grd_healexamdtmnlrglist.setFocus();
  236. ds_main_list_healexamdtmnlrglist_healexamdtmnlrggrup.addRow();
  237. grd_healexamdtmnlrglist.setCellPos(1);
  238. grd_healexamdtmnlrglist.showEditor(true);
  239. }
  240. function btn_delete_healexamdtmnlrg_onclick(obj:Button, e:ClickEventInfo)
  241. {
  242. var row = ds_main_list_healexamdtmnlrglist_healexamdtmnlrggrup.rowposition;
  243. var healexamdtmnlrgcd = ds_main_list_healexamdtmnlrglist_healexamdtmnlrggrup.getColumn(row, "healexamdtmnlrgcd");
  244. if (!utlf_isNull(healexamdtmnlrgcd))
  245. {
  246. var rtn = sysf_messageBox(" 하위 그룹이 있는 경우 함께 삭제됩니다.", "Q001");
  247. if(rtn == 6)
  248. {
  249. dsf_deleteSelectedRows(grd_healexamdtmnlrglist);
  250. }
  251. }
  252. else
  253. {
  254. sysf_messageBox("대분류가 선택되지 ", "E007");
  255. }
  256. }
  257. function btn_save_healexamdtmnlrg_onclick(obj:Button, e:ClickEventInfo)
  258. {
  259. fSaveClicklrg(grd_healexamdtmnlrglist);
  260. }
  261. function fSaveClicklrg(grid)
  262. {
  263. var updategrid = grdf_getGridUpdateData(grid);
  264. grdf_setStatusColumn(updategrid, "status");
  265. ds_send_healexamdtmnlrglist.copyData(grid, true);
  266. var oParam = {};
  267. oParam.id = "TXCHT00301";
  268. oParam.service = "healexammngtapp.HealExamClsMngt";
  269. oParam.method = "reqSaveHealExamLrgCd";
  270. oParam.inds = "req=ds_send_healexamdtmnlrglist";
  271. oParam.outds = "";
  272. oParam.async = false;
  273. oParam.callback = "cf_TXCHT00301";
  274. tranf_submit(oParam);
  275. if(arErrorCode.pop("TXCHT00301") > -1)
  276. {
  277. this.objects[grid.binddataset].applyChange();
  278. ds_main_list_healexamdtmnmdllist_healexamdtmnmdlgrup.clearData();
  279. ds_main_list_healexamdtmnsmllist_healexamdtmnsmlgrup.clearData();
  280. var oParam = {};
  281. oParam.id = "TRCHT00301";
  282. oParam.service = "healexammngtapp.HealExamClsMngt";
  283. oParam.method = "reqGetHealExamLrgCd";
  284. oParam.inds = "req=ds_";
  285. oParam.outds = "ds_main_list_healexamdtmnlrglist_healexamdtmnlrggrup=healexamdtmnlrggrup";
  286. oParam.async = false;
  287. //oParam.callback = "cf_TRCHT00301";
  288. tranf_submit(oParam);
  289. }
  290. }
  291. function cf_TXCHT00301(sSvcId, nErrorCode, sErrorMsg)
  292. {
  293. arErrorCode.push(sSvcId, nErrorCode);
  294. if(nErrorCode < 0) return;
  295. }
  296. function btn_add_healexamdtmnmdl_onclick(obj:Button, e:ClickEventInfo)
  297. {
  298. grd_healexamdtmnmdllist.setFocus();
  299. var row = ds_main_list_healexamdtmnlrglist_healexamdtmnlrggrup.rowposition;
  300. var healexamdtmnlrgcd = ds_main_list_healexamdtmnlrglist_healexamdtmnlrggrup.getColumn(row, "healexamdtmnlrgcd");
  301. if (!utlf_isNull(healexamdtmnlrgcd))
  302. {
  303. var addRow = ds_main_list_healexamdtmnmdllist_healexamdtmnmdlgrup.addRow();
  304. grd_healexamdtmnmdllist.setCellPos(1);
  305. grd_healexamdtmnmdllist.showEditor(true);
  306. ds_main_list_healexamdtmnlrglist_healexamdtmnlrggrup.setColumn(addRow, "healexamdtmnlrgcd",healexamdtmnlrgcd);
  307. }
  308. else
  309. {
  310. sysf_messageBox("대분류가 선택되지 ", "E007");
  311. }
  312. }
  313. function btn_delete_healexamdtmnmdl_onclick(obj:Button, e:ClickEventInfo)
  314. {
  315. var row = ds_main_list_healexamdtmnlrglist_healexamdtmnlrggrup.rowposition;
  316. var healexamdtmnmdlcd = ds_main_list_healexamdtmnlrglist_healexamdtmnlrggrup.getColumn(row, "healexamdtmnmdlcd");
  317. if (!utlf_isNull(healexamdtmnmdlcd))
  318. {
  319. var rtn = sysf_messageBox(" 하위 그룹이 있는 경우 함께 삭제됩니다.", "Q001");
  320. if(rtn == 6)
  321. {
  322. dsf_deleteSelectedRows(grd_healexamdtmnmdllist);
  323. }
  324. }
  325. else
  326. {
  327. sysf_messageBox("중분류가 선택되지 ", "E007");
  328. }
  329. }
  330. function btn_save_healexamdtmnmdl_onclick(obj:Button, e:ClickEventInfo)
  331. {
  332. fSaveClickmdl(grd_healexamdtmnmdllist);
  333. }
  334. function fSaveClickmdl(grid)
  335. {
  336. var updategrid = grdf_getGridUpdateData(grid);
  337. grdf_setStatusColumn(updategrid, "status");
  338. ds_send_healexamdtmnmdllist.copyData(grid, true);
  339. var oParam = {};
  340. oParam.id = "TXCHT00302";
  341. oParam.service = "healexammngtapp.HealExamClsMngt";
  342. oParam.method = "reqSaveHealExamMdlCd";
  343. oParam.inds = "req=ds_send_healexamdtmnmdllist";
  344. oParam.outds = "";
  345. oParam.async = false;
  346. oParam.callback = "cf_TXCHT00302";
  347. tranf_submit(oParam);
  348. if(arErrorCode.pop("TXCHT00302") > -1)
  349. {
  350. this.objects[grid.binddataset].applyChange();
  351. ds_main_list_healexamdtmnsmllist_healexamdtmnsmlgrup.clearData();
  352. var oParam = {};
  353. oParam.id = "TRCHT00302";
  354. oParam.service = "healexammngtapp.HealExamClsMngt";
  355. oParam.method = "reqGetHealExamMdlCd";
  356. oParam.inds = "req=ds_send";
  357. oParam.outds = "ds_main_list_healexamdtmnmdllist_healexamdtmnmdlgrup=healexamdtmnmdlgrup";
  358. oParam.async = false;
  359. //oParam.callback = "cf_TRCHT00302";
  360. tranf_submit(oParam);
  361. }
  362. }
  363. function cf_TXCHT00302(sSvcId, nErrorCode, sErrorMsg)
  364. {
  365. arErrorCode.push(sSvcId, nErrorCode);
  366. if(nErrorCode < 0) return;
  367. }
  368. function btn_add_healexamdtmnsml_onclick(obj:Button, e:ClickEventInfo)
  369. {
  370. grd_healexamdtmnsmllist.setFocus();
  371. var row = ds_main_list_healexamdtmnmdllist_healexamdtmnmdlgrup.rowposition;
  372. var healexamdtmnlrgcd = ds_main_list_healexamdtmnmdllist_healexamdtmnmdlgrup.getColumn(row, "healexamdtmnlrgcd");
  373. var healexamdtmnmdlcd = ds_main_list_healexamdtmnmdllist_healexamdtmnmdlgrup.getColumn(row, "healexamdtmnmdlcd");
  374. if (!utlf_isNull(healexamdtmnmdlcd))
  375. {
  376. var addRow = ds_main_list_healexamdtmnsmllist_healexamdtmnsmlgrup.addRow();
  377. grd_healexamdtmnsmllist.setCellPos(1);
  378. grd_healexamdtmnsmllist.showEditor(true);
  379. ds_main_list_healexamdtmnsmllist_healexamdtmnsmlgrup.setColumno(addRow, "healexamdtmnlrgcd",healexamdtmnlrgcd);
  380. ds_main_list_healexamdtmnsmllist_healexamdtmnsmlgrup.setColumno(addRow, "healexamdtmnmdlcd",healexamdtmnmdlcd);
  381. }
  382. else
  383. {
  384. sysf_messageBox("중분류가 선택되지 ", "E007");
  385. }
  386. }
  387. function btn_delete_healexamdtmnsml_onclick(obj:Button, e:ClickEventInfo)
  388. {
  389. var row = ds_main_list_healexamdtmnsmllist_healexamdtmnsmlgrup.rowposition;
  390. var healexamdtmnsmlcd = ds_main_list_healexamdtmnsmllist_healexamdtmnsmlgrup.getColumn(row, "healexamdtmnsmlcd");
  391. if (!utlf_isNull(healexamdtmnsmlcd))
  392. {
  393. var rtn = sysf_messageBox("소그룹을 ", "Q001");
  394. if(rtn == 6)
  395. {
  396. dsf_deleteSelectedRows(grd_healexamdtmnsmllist);
  397. }
  398. }
  399. else
  400. {
  401. messageBox("소분류가 선택되지 ", "E007");
  402. }
  403. }
  404. function btn_save_healexamdtmnsml_onclick(obj:Button, e:ClickEventInfo)
  405. {
  406. fSaveClicksml(grd_healexamdtmnsmllist);
  407. }
  408. function fSaveClicksml(grid)
  409. {
  410. var updategrid = grdf_getGridUpdateData(grid);
  411. grdf_setStatusColumn(updategrid, "status");
  412. ds_send_healexamdtmnsmllist.copyData(grid, true);
  413. var oParam = {};
  414. oParam.id = "TXCHT00303";
  415. oParam.service = "healexammngtapp.HealExamClsMngt";
  416. oParam.method = "reqSaveHealExamSmlCd";
  417. oParam.inds = "req=ds_send_healexamdtmnsmllist";
  418. oParam.outds = "";
  419. oParam.async = false;
  420. oParam.callback = "cf_TXCHT00303";
  421. tranf_submit(oParam);
  422. if(arErrorCode.pop("TXCHT00303") > -1)
  423. {
  424. this.objects[grid.binddataset].applyChange();
  425. var oParam = {};
  426. oParam.id = "TRCHT00303";
  427. oParam.service = "healexammngtapp.HealExamClsMngt";
  428. oParam.method = "reqGetHealExamSmlCd";
  429. oParam.inds = "req=ds_send";
  430. oParam.outds = "ds_main_list_healexamdtmnsmllist_healexamdtmnsmlgrup=healexamdtmnsmlgrup";
  431. oParam.async = false;
  432. //oParam.callback = "cf_TRCHT00303";
  433. tranf_submit(oParam);
  434. }
  435. }
  436. function cf_TXCHT00303(sSvcId, nErrorCode, sErrorMsg)
  437. {
  438. arErrorCode.push(sSvcId, nErrorCode);
  439. if(nErrorCode < 0) return;
  440. }
  441. function button8_onclick(obj:Button, e:ClickEventInfo)
  442. {
  443. this.close();
  444. }
  445. ]]></Script>
  446. </Form>
  447. </FDL>