SPCPC01200_건진정보마이닝그룹리스트.xfdl 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPCPC01200" position="absolute 0 0 908 600" titletext="건진정보마이닝 그룹 리스트" oninit="SPCPC01200_oninit" onload="SPCPC01200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid id="grd_healexamdtmnlist" taborder="0" binddataset="ds_main_list_healexamdtmnlist" useinputpanel="false" position="absolute 224 68 899 363" autoenter="select" cellsizingtype="col" cellclickbound="cell">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="20"/>
  12. <Column size="290"/>
  13. <Column size="70"/>
  14. <Column size="60"/>
  15. <Column size="70"/>
  16. <Column size="80"/>
  17. <Column size="60"/>
  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. <Cell col="3" text="자동실행"/>
  29. <Cell col="4" text="등록일"/>
  30. <Cell col="5" text="등록부서"/>
  31. <Cell col="6" text="등록자"/>
  32. <Cell col="7"/>
  33. </Band>
  34. <Band id="body">
  35. <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' ? 1 : 0"/>
  36. <Cell col="1" style="align:left middle;padding:0 0 0 3;" text="bind:healexamdtmntitl"/>
  37. <Cell col="2" displaytype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:lnktmplyn" combodataset="ds_cmb_lnktmplyn" combocodecol="value" combodatacol="label" enable="false"/>
  38. <Cell col="3" displaytype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:autexecflag" combodataset="ds_init_C0030list_C0030" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  39. <Cell col="4" displaytype="date" style="align:left middle;padding:0 0 0 3;" text="bind:fstrgstdt" calendardisplaynulltype="nulltext"/>
  40. <Cell col="5" style="align:left middle;padding:0 0 0 3;" text="bind:deptnm"/>
  41. <Cell col="6" style="align:left middle;padding:0 0 0 3;" text="bind:fstrgstnm"/>
  42. <Cell col="7" text="bind:healexamdtmnkey"/>
  43. </Band>
  44. </Format>
  45. </Formats>
  46. </Grid>
  47. <Static id="caption9" text="건진정보마이닝 그룹 조회" class="tit_2" position="absolute 225 0 425 21"/>
  48. <Div id="grp_johe" taborder="1" class="div_SA2" position="absolute 225 19 900 59">
  49. <Layouts>
  50. <Layout>
  51. <Static id="caption2" text="검색어 :" class="search_name" position="absolute 25 11 129 28" anchor="default"/>
  52. <Edit id="ipt_s_healexamdtmnnm" taborder="4" class="input_s_essential" position="absolute 149 10 279 29" anchor="default" autoselect="true" onkeyup="grp_johe_ipt_s_healexamdtmnnm_onkeyup"/>
  53. <Shape id="line13" linetype="vertical" position="absolute 457 8 463 30" anchor="default"/>
  54. <Button id="btn_search" taborder="5" text="조회" class="btn1" position="absolute 490 8 546 30" anchor="default" onclick="grp_johe_btn_search_onclick"/>
  55. </Layout>
  56. </Layouts>
  57. </Div>
  58. <Div id="group12" taborder="2" position="absolute 0 0 215 572"/>
  59. <Grid id="trv_leftmenu" taborder="3" useinputpanel="false" treeusecheckbox="false" position="absolute 0 21 215 571" autofit="col" autoenter="select" cellsizingtype="col" binddataset="ds_main_healexamtreeinfo_healexamtreelist" treeinitstatus="expand,all" oncellclick="trv_leftmenu_oncellclick">
  60. <Formats>
  61. <Format id="default">
  62. <Columns>
  63. <Column size="205"/>
  64. </Columns>
  65. <Rows>
  66. <Row size="24"/>
  67. </Rows>
  68. <Band id="body">
  69. <Cell displaytype="tree" edittype="tree" text="bind:healexamdtmnnm" treestartlevel="1" treelevel="bind:depth"/>
  70. </Band>
  71. </Format>
  72. </Formats>
  73. </Grid>
  74. <Shape id="lin_tree" class="line_10" position="absolute 0 16 215 22"/>
  75. <Static id="caption30" text="건진정보마이닝 그룹" class="tit_2" position="absolute 0 0 215 22"/>
  76. <CheckBox id="bool1" taborder="4" position="absolute 226 73 241 88" onclick="bool1_onclick"/>
  77. <Shape id="line2" class="line_10" position="absolute 224 63 899 69"/>
  78. <Button id="btn_saveexcel" taborder="5" text="초기화" class="btn2" position="absolute 779 364 832 383" onclick="btn_saveexcel_onclick"/>
  79. <Button id="button1" taborder="6" text="그룹추가" class="btn2" position="absolute 835 364 899 383" onclick="button1_onclick"/>
  80. <Shape id="line1" class="line_10" position="absolute 224 383 899 389"/>
  81. <Grid id="grd_choihealexamdtmnlist" taborder="7" binddataset="ds_main_list_choihealexamdtmnlist" useinputpanel="false" position="absolute 224 388 899 569" autoenter="select" cellsizingtype="col" cellclickbound="cell">
  82. <Formats>
  83. <Format id="default">
  84. <Columns>
  85. <Column size="20" band="left"/>
  86. <Column size="270"/>
  87. <Column size="80"/>
  88. <Column size="90"/>
  89. <Column size="90"/>
  90. <Column size="100"/>
  91. <Column size="0"/>
  92. <Column size="0"/>
  93. </Columns>
  94. <Rows>
  95. <Row size="24" band="head"/>
  96. <Row size="24"/>
  97. </Rows>
  98. <Band id="head">
  99. <Cell/>
  100. <Cell col="1" text="건진정보마이닝 그룹명"/>
  101. <Cell col="2" text="산정기준일"/>
  102. <Cell col="3" text="특정일"/>
  103. <Cell col="4" text="업데이트 구분"/>
  104. <Cell col="5" text="업데이트실행시간"/>
  105. <Cell col="6"/>
  106. <Cell col="7"/>
  107. </Band>
  108. <Band id="body">
  109. <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' ? 1 : 0"/>
  110. <Cell col="1" displaytype="text" edittype="text" text="bind:healexamdtmntitl"/>
  111. <Cell col="2" displaytype="combo" style="align:center middle;" text="bind:appbasedd" combodataset="ds_cmb_appbasedd" combocodecol="value" combodatacol="label" enable="false"/>
  112. <Cell col="3" displaytype="date" edittype="date" text="bind:spcldd" calendardisplaynulltype="nulltext"/>
  113. <Cell col="4" displaytype="combo" edittype="combo" text="bind:clintdupltretmthd" combodataset="ds_init_C0031list_C0031" combocodecol="cdid" combodatacol="cdnm"/>
  114. <Cell col="5" displaytype="text" edittype="text" class="text_center" text="bind:daydd" mask="##:##" maskchar=" "/>
  115. <Cell col="6" text="bind:healexamdtmnkey"/>
  116. <Cell col="7" text="bind:status"/>
  117. </Band>
  118. </Format>
  119. </Formats>
  120. </Grid>
  121. <CheckBox id="bool2" taborder="8" position="absolute 226 393 241 408" onclick="bool2_onclick"/>
  122. <Static id="caption3" text="그룹내역" class="tit_2" position="absolute 224 367 424 388"/>
  123. <Button id="button2" taborder="9" text="확인" class="btn4" position="absolute 785 573 841 595" onclick="button2_onclick"/>
  124. <Button id="button3" taborder="10" text="닫기" class="btn4" position="absolute 844 573 900 595" onclick="button3_onclick"/>
  125. </Layout>
  126. </Layouts>
  127. <Objects>
  128. <Dataset id="ds_main_healexamtreeinfo_healexamtreelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  129. <Dataset id="ds_main_list_healexamdtmnlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_list_healexamdtmnlist_oncolumnchanged">
  130. <ColumnInfo>
  131. <Column id="healexamdtmntitl" type="STRING" size="256" sumtext="건진탬플릿명"/>
  132. <Column id="healexamdtmnsmltitl" type="STRING" size="256" sumtext="그룹"/>
  133. <Column id="lnktmplyn" type="STRING" size="256" sumtext="연결캠페인 여부"/>
  134. <Column id="autexecflag" type="STRING" size="256" sumtext="자동실행 여부"/>
  135. <Column id="fstrgstdt" type="STRING" size="256" sumtext="등록일시"/>
  136. <Column id="fstrgstnm" type="STRING" size="256" sumtext="등록자"/>
  137. <Column id="examcnt" type="STRING" size="256" sumtext="총실행건수"/>
  138. <Column id="lastexamcnt" type="STRING" size="256" sumtext="최종실행건수"/>
  139. <Column id="lastexamdd" type="STRING" size="256" sumtext="최종실행일"/>
  140. <Column id="healexamdtmnkey" type="STRING" size="256" sumtext="건진데이터마이닝코드"/>
  141. <Column id="chk" type="STRING" size="256"/>
  142. <Column id="status" type="STRING" size="256"/>
  143. </ColumnInfo>
  144. </Dataset>
  145. <Dataset id="ds_cmb_lnktmplyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  146. <ColumnInfo>
  147. <Column id="label" type="STRING" size="256"/>
  148. <Column id="value" type="STRING" size="256"/>
  149. </ColumnInfo>
  150. <Rows>
  151. <Row>
  152. <Col id="label">연결</Col>
  153. <Col id="value">Y</Col>
  154. </Row>
  155. </Rows>
  156. </Dataset>
  157. <Dataset id="ds_init_C0030list_C0030" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  158. <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  159. <ColumnInfo>
  160. <Column id="rgstfromdd" type="STRING" size="256"/>
  161. <Column id="rgsttodd" type="STRING" size="256"/>
  162. <Column id="healexamdtmnnm" type="STRING" size="256"/>
  163. <Column id="rgstnm" type="STRING" size="256"/>
  164. <Column id="autexecflag" type="STRING" size="256"/>
  165. <Column id="cmpnlnkyn" type="STRING" size="256"/>
  166. <Column id="healexamdtmnsmlcd" type="STRING" size="256"/>
  167. </ColumnInfo>
  168. <Rows>
  169. <Row>
  170. <Col id="rgstfromdd"/>
  171. <Col id="rgsttodd"/>
  172. <Col id="healexamdtmnnm"/>
  173. <Col id="rgstnm"/>
  174. <Col id="autexecflag"/>
  175. <Col id="cmpnlnkyn"/>
  176. <Col id="healexamdtmnsmlcd"/>
  177. </Row>
  178. </Rows>
  179. </Dataset>
  180. <Dataset id="ds_main_list_choihealexamdtmnlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_list_choihealexamdtmnlist_oncolumnchanged">
  181. <ColumnInfo>
  182. <Column id="healexamdtmntitl" type="STRING" size="256" sumtext="건진탬플릿명"/>
  183. <Column id="healexamdtmnsmltitl" type="STRING" size="256" sumtext="그룹"/>
  184. <Column id="lnktmplyn" type="STRING" size="256" sumtext="연결캠페인 여부"/>
  185. <Column id="autexecflag" type="STRING" size="256" sumtext="자동실행 여부"/>
  186. <Column id="fstrgstdt" type="STRING" size="256" sumtext="등록일시"/>
  187. <Column id="fstrgstnm" type="STRING" size="256" sumtext="등록자"/>
  188. <Column id="examcnt" type="STRING" size="256" sumtext="총실행건수"/>
  189. <Column id="lastexamcnt" type="STRING" size="256" sumtext="최종실행건수"/>
  190. <Column id="lastexamdd" type="STRING" size="256" sumtext="최종실행일"/>
  191. <Column id="healexamdtmnkey" type="STRING" size="256" sumtext="건진데이터마이닝코드"/>
  192. <Column id="chk" type="STRING" size="256"/>
  193. <Column id="status" type="STRING" size="256"/>
  194. <Column id="appbasedd" type="STRING" size="256"/>
  195. <Column id="clintdupltretmthd" type="STRING" size="256"/>
  196. <Column id="daydd" type="STRING" size="256"/>
  197. <Column id="spcldd" type="STRING" size="256"/>
  198. </ColumnInfo>
  199. </Dataset>
  200. <Dataset id="ds_cmb_appbasedd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  201. <ColumnInfo>
  202. <Column id="label" type="STRING" size="256"/>
  203. <Column id="value" type="STRING" size="256"/>
  204. </ColumnInfo>
  205. <Rows>
  206. <Row>
  207. <Col id="label">오늘</Col>
  208. <Col id="value">0</Col>
  209. </Row>
  210. <Row>
  211. <Col id="label">건진일</Col>
  212. <Col id="value">1</Col>
  213. </Row>
  214. <Row>
  215. <Col id="label">특정일</Col>
  216. <Col id="value">4</Col>
  217. </Row>
  218. </Rows>
  219. </Dataset>
  220. <Dataset id="ds_init_C0031list_C0031" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  221. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  222. <ColumnInfo>
  223. <Column id="rcvcnt" type="STRING" size="256"/>
  224. <Column id="chkvalue1" type="STRING" size="256"/>
  225. <Column id="chkvalue2" type="STRING" size="256"/>
  226. </ColumnInfo>
  227. <Rows>
  228. <Row>
  229. <Col id="rcvcnt"/>
  230. <Col id="chkvalue1"/>
  231. <Col id="chkvalue2"/>
  232. </Row>
  233. </Rows>
  234. </Dataset>
  235. <Dataset id="ds_temp_healexamtrsmtrgtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  236. </Objects>
  237. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  238. * System Name :
  239. * Job Name :
  240. * Creator :
  241. * Make Date : 2016-05-24
  242. * Description :
  243. *---------------------------------------------------------------------------------------
  244. * Modify Date Modifier Modify Description
  245. *---------------------------------------------------------------------------------------
  246. * 2016-05-24 Live Converter TF->XP
  247. *
  248. *---------------------------------------------------------------------------------------
  249. ****************************************************************************************/
  250. include "com_commonxp::comm_main.xjs";
  251. function SPCPC01200_oninit(obj:Form, e:InitEventInfo)
  252. {
  253. frmf_initForm(obj);
  254. }
  255. function SPCPC01200_onload(obj:Form, e:LoadEventInfo)
  256. {
  257. grdf_initGrid(grd_choihealexamdtmnlist);
  258. grdf_initGrid(grd_healexamdtmnlist);
  259. ds_main_list_choihealexamdtmnlist.clearData();
  260. ds_main_list_healexamdtmnlist.clearData();
  261. // C0030: 자동실행여부, C0031: 고객중복처리여부, C0032: 적용기준일
  262. var arrParam = [{dsNm: "ds_init_C0030list_C0030", cdGrpId: "C0030"}
  263. ,{dsNm: "ds_init_C0031list_C0031", cdGrpId: "C0031"}
  264. ,{dsNm: "ds_init_C0032list_C0032", cdGrpId: "C0032"}]
  265. appf_getCodeList(arrParam);
  266. ds_main_healexamtreeinfo_healexamtreelist.clearData();
  267. var oParam = {};
  268. oParam.id = "TRCHT00401";
  269. oParam.service = "healexammngtapp.HealExamClsMngt";
  270. oParam.method = "reqGetHealExamTreeList";
  271. oParam.inds = "";
  272. oParam.outds = "ds_main_healexamtreeinfo_healexamtreelist=healexamtreelist";
  273. oParam.async = false;
  274. //oParam.callback = "cf_TRCHT00401";
  275. tranf_submit(oParam);
  276. }
  277. function trv_leftmenu_oncellclick(obj:Grid, e:GridClickEventInfo)
  278. {
  279. var healexamdtmnsmlcd = ds_main_healexamtreeinfo_healexamtreelist.getColumn(ds_main_healexamtreeinfo_healexamtreelist.rowposition, "healexamdtmnsmlcd");
  280. var healexamdtmn_smlcd = healexamdtmnsmlcd;
  281. if (healexamdtmn_smlcd > 0)
  282. {
  283. ds_send_data.setColumn(0, "healexamdtmnsmlcd", healexamdtmnsmlcd);
  284. fGetDtmnInfo();
  285. }
  286. }
  287. function fGetDtmnInfo()
  288. {
  289. var oParam = {};
  290. oParam.id = "TRCHT00201";
  291. oParam.service = "healexammngtapp.HealExamMngt";
  292. oParam.method = "reqGetHealExamDtmnList";
  293. oParam.inds = "req=ds_send_data";
  294. oParam.outds = "ds_main_list_healexamdtmnlist=healexamdtmnlist";
  295. oParam.async = false;
  296. //oParam.callback = "cf_TRCHT00201";
  297. tranf_submit(oParam);
  298. }
  299. function ds_main_list_healexamdtmnlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  300. {
  301. if(e.columnid == "chk")
  302. {
  303. obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  304. }
  305. }
  306. function grp_johe_ipt_s_healexamdtmnnm_onkeyup(obj:Edit, e:KeyEventInfo)
  307. {
  308. if(e.keycode == 13)
  309. {
  310. obj.updateToDataset();
  311. grp_johe.btn_search.click();
  312. }
  313. }
  314. function grp_johe_btn_search_onclick(obj:Button, e:ClickEventInfo)
  315. {
  316. if(utlf_isNull(grp_johe.ipt_s_healexamdtmnnm.value))
  317. {
  318. sysf_messageBox("검색어를 1자이상 ", "C001");
  319. }
  320. else
  321. {
  322. ds_main_list_healexamdtmnlist.clearData();
  323. fGetDtmnInfo();
  324. }
  325. }
  326. function bool1_onclick(obj:CheckBox, e:ClickEventInfo)
  327. {
  328. var mode = "A";
  329. fGridAllRow(mode);
  330. }
  331. function bool2_onclick(obj:CheckBox, e:ClickEventInfo)
  332. {
  333. var mode = "B";
  334. fGridAllRow(mode);
  335. }
  336. function fGridAllRow(mode)
  337. {
  338. // 주소록 그룹 조회
  339. if (mode == "A")
  340. {
  341. var rows = ds_main_list_healexamdtmnlist.rowcount;
  342. var fRow = 0;
  343. var chk = ds_main_list_healexamdtmnlist.getColumn(0, "chk");
  344. var boolchk = ds_main.getColumn(0, "chkvalue1");
  345. if (boolchk == "Y")
  346. {
  347. for(var i = fRow; i < rows; i++)
  348. {
  349. ds_main_list_healexamdtmnlist.setColumn(i, "chk", "Y");
  350. }
  351. }
  352. else
  353. {
  354. for(var i = fRow; i < rows; i++)
  355. {
  356. ds_main_list_healexamdtmnlist.setColumn(i, "chk", "N");
  357. }
  358. }
  359. // 그룹 내역
  360. }
  361. else if (mode == "B")
  362. {
  363. var rows = ds_main_list_choihealexamdtmnlist.rowcount;
  364. var fRow = 0;
  365. var chk = ds_main_list_choihealexamdtmnlist.getColumn(0, "chk");
  366. var boolchk = ds_main.getColumn(0, "chkvalue2");
  367. if (boolchk == "Y")
  368. {
  369. for(var i = fRow; i < rows; i++)
  370. {
  371. ds_main_list_choihealexamdtmnlist.setColumn(i, "chk", "Y");
  372. }
  373. }
  374. else
  375. {
  376. for(var i = fRow; i < rows; i++)
  377. {
  378. ds_main_list_choihealexamdtmnlist.setColumn(i, "chk", "N");
  379. }
  380. }
  381. }
  382. else if (mode == "C")
  383. { // 데이터 이동 후 마스터 목록 선택 해제
  384. var rows = ds_main_list_healexamdtmnlist.rowcount;
  385. var fRow = 0;
  386. var chk = ds_main_list_healexamdtmnlist.getColumn(0, "chk");
  387. for(var i = fRow; i < rows; i++)
  388. {
  389. ds_main_list_healexamdtmnlist.setColumn(i, "chk", "N");
  390. }
  391. ds_main.setColumn(0, "chkvalue1", "");
  392. }
  393. }
  394. function btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
  395. {
  396. fGridRowAddRow(grd_choihealexamdtmnlist,grd_healexamdtmnlist,"del");
  397. }
  398. function fGridRowAddRow(sndGrid, rcvGrid, type)
  399. {
  400. var sRows = this.objects[sndGrid.binddataset].rowcount;
  401. var sfRow = 0;
  402. var cntRows = this.objects[sndGrid.binddataset].rowcount-1
  403. var rRows = this.objects[rcvGrid.binddataset].rowcount-1;
  404. if(type=="del")
  405. {
  406. var rows = this.objects[sndGrid.binddataset].rowcount;
  407. var fRow = 0;
  408. for(var i = fRow; i < rows; i++)
  409. {
  410. this.objects[sndGrid.binddataset].setColumn(i, "chk", "Y");
  411. }
  412. }
  413. var check_cnt = 0;
  414. for(var i = sfRow; i < sRows; i++)
  415. {
  416. if(this.objects[sndGrid.binddataset].getColumn(i, "chk") == "Y" )
  417. {
  418. var lnktmplyn = ds_main_list_healexamdtmnlist.getColumn(i, "lnktmplyn");
  419. if (lnktmplyn == "Y")
  420. {
  421. sysf_messageBox("선택된 건진정보마이닝은 기존에 연결된 캠페인에서 제외처리 되오니","I007");
  422. this.objects[rcvGrid.binddataset].setColumn(rRows, "status", "U");
  423. }
  424. rRows = this.objects[rcvGrid.binddataset].addRow();
  425. if (lnktmplyn == "Y")
  426. {
  427. this.objects[rcvGrid.binddataset].setColumn(rRows, "status", "U");
  428. }
  429. else
  430. {
  431. this.objects[rcvGrid.binddataset].setColumn(rRows, "status", "I");
  432. }
  433. this.objects[rcvGrid.binddataset].setColumn(rRows, "healexamdtmntitl", this.objects[sndGrid.binddataset].getColumn(i, "healexamdtmntitl"));
  434. this.objects[rcvGrid.binddataset].setColumn(rRows, "healexamdtmnkey", this.objects[sndGrid.binddataset].getColumn(i, "healexamdtmnkey"));
  435. check_cnt++;
  436. rRows++;
  437. }
  438. }
  439. if(check_cnt < 1)
  440. {
  441. sysf_messageBox("건진정보마이닝 리스트를","C002");
  442. }
  443. //추가된 사람 목록삭제
  444. for(var j = sRows; j >= sfRow; j--)
  445. {
  446. if(this.objects[sndGrid.binddataset].getColumn(j, "chk") == "Y")
  447. {
  448. this.objects[sndGrid.binddataset].deleteRow(j);
  449. cntRows--;
  450. }
  451. }
  452. if(type == "add")
  453. {
  454. ds_main.setColumn(0, "rcvcnt",rRows-1);//수신인 숫자
  455. }
  456. else
  457. {
  458. ds_main.setColumn(0, "rcvcnt",cntRows);//수신인 숫자
  459. }
  460. }
  461. function button1_onclick(obj:Button, e:ClickEventInfo)
  462. {
  463. fGridRowAddRow(grd_healexamdtmnlist,grd_choihealexamdtmnlist,"add");
  464. var mode = "C";
  465. fGridAllRow(mode);
  466. }
  467. function ds_main_list_choihealexamdtmnlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  468. {
  469. if(e.columnid == "chk")
  470. {
  471. obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  472. }
  473. }
  474. function button2_onclick(obj:Button, e:ClickEventInfo)
  475. {
  476. fGetTrsmTrgt();
  477. }
  478. function fGetTrsmTrgt()
  479. {
  480. var check_cnt = 0;
  481. var rows = grdf_getSelectedRows(grd_choihealexamdtmnlist);
  482. for (var i = 0; i < rows.length; i++)
  483. {
  484. var sRow = rows[i];
  485. if(ds_main_list_choihealexamdtmnlist.getColumn(sRow, "chk") == "Y" )
  486. {
  487. var healexamdtmntitl = ds_main_list_choihealexamdtmnlist.getColumn(sRow, "healexamdtmntitl");
  488. var appbasedd = ds_main_list_choihealexamdtmnlist.getColumn(sRow, "appbasedd");
  489. var spcldd = ds_main_list_choihealexamdtmnlist.getColumn(sRow, "spcldd");
  490. var clintdupltretmthd = ds_main_list_choihealexamdtmnlist.getColumn(sRow, "clintdupltretmthd");
  491. var daydd = ds_main_list_choihealexamdtmnlist.getColumn(sRow, "daydd");
  492. var healexamdtmnkey = ds_main_list_choihealexamdtmnlist.getColumn(sRow, "healexamdtmnkey");
  493. var status = ds_main_list_choihealexamdtmnlist.getColumn(sRow, "status");
  494. dsf_makeValue(ds_temp_healexamtrsmtrgtlist, "healexamdtmntitl", "string", healexamdtmntitl);
  495. dsf_makeValue(ds_temp_healexamtrsmtrgtlist, "appbasedd", "string", appbasedd);
  496. dsf_makeValue(ds_temp_healexamtrsmtrgtlist, "spcldd", "string", spcldd);
  497. dsf_makeValue(ds_temp_healexamtrsmtrgtlist, "clintdupltretmthd", "string", clintdupltretmthd);
  498. dsf_makeValue(ds_temp_healexamtrsmtrgtlist, "daydd", "string", daydd);
  499. dsf_makeValue(ds_temp_healexamtrsmtrgtlist, "healexamdtmnkey", "string", healexamdtmnkey);
  500. dsf_makeValue(ds_temp_healexamtrsmtrgtlist, "status", "string", status);
  501. opener.ds_main_cmpn_healexamtrsmtrgtlist.copyRow(opener.ds_main_cmpn_healexamtrsmtrgtlist.addRow(), ds_temp_healexamtrsmtrgtlist, 0);
  502. ds_temp_healexamtrsmtrgtlist.clear();
  503. check_cnt++;
  504. }
  505. }
  506. if(check_cnt < 1)
  507. {
  508. sysf_messageBox("건진정보마이닝 리스트를","C002");
  509. }
  510. else
  511. {
  512. this.close();
  513. }
  514. }
  515. function button3_onclick(obj:Button, e:ClickEventInfo)
  516. {
  517. this.close();
  518. }
  519. ]]></Script>
  520. </Form>
  521. </FDL>