SMCHT00200_건진데이터마이닝목록조회.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMCHT00200" position="absolute 0 0 1200 792" titletext="건진데이터마이닝 관리" oninit="SMCHT00200_oninit" onload="SMCHT00200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 225 33 1195 93" align="align:center top;" id="grp_johe" class="div_SA2" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Static text="등 록 일 :" position="absolute 15 9 115 26" id="caption2" class="search_name" anchor="default"/>
  11. <Calendar position="absolute 118 8 238 27" id="ipt_rgstfromdd" class="input_search" anchor="default" autoskip="true" autoselect="true" onkillfocus="grp_johe_ipt_rgstfromdd_onkillfocus"/>
  12. <Static text="~" position="absolute 243 9 255 26" id="caption3" class="search_no_b" anchor="default"/>
  13. <Calendar position="absolute 258 8 378 27" id="ipt_rgsttodd" class="input_search" anchor="default" onkillfocus="grp_johe_ipt_rgsttodd_onkillfocus"/>
  14. <Static text="탬플릿명 :" position="absolute 449 9 536 26" id="caption4" class="search_name" anchor="default"/>
  15. <Edit position="absolute 538 7 668 26" id="ipt_healexamdtmntitl" class="input_search" anchor="default"/>
  16. <Static text="자동실행 여부 :" position="absolute 15 35 145 52" id="caption6" class="search_name" anchor="default"/>
  17. <Radio position="absolute 145 33 351 52" id="rdo_autoexecflag" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  18. <Dataset id="innerdataset">
  19. <ColumnInfo>
  20. <Column id="codecolumn"/>
  21. <Column id="datacolumn"/>
  22. </ColumnInfo>
  23. <Rows>
  24. <Row>
  25. <Col id="codecolumn">
  26. </Col>
  27. <Col id="datacolumn">전체</Col>
  28. </Row>
  29. <Row>
  30. <Col id="codecolumn">A</Col>
  31. <Col id="datacolumn">자동</Col>
  32. </Row>
  33. <Row>
  34. <Col id="codecolumn">M</Col>
  35. <Col id="datacolumn">수동</Col>
  36. </Row>
  37. </Rows>
  38. </Dataset>
  39. </Radio>
  40. <Static text="캠페인 연결 여부:" position="absolute 449 35 586 52" id="caption8" class="search_name" anchor="default"/>
  41. <Radio position="absolute 586 33 842 52" id="rdo_cmpnlnkyn" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" rowcount="-1" anchor="default">
  42. <Dataset id="innerdataset">
  43. <ColumnInfo>
  44. <Column id="codecolumn"/>
  45. <Column id="datacolumn"/>
  46. </ColumnInfo>
  47. <Rows>
  48. <Row>
  49. <Col id="codecolumn">
  50. </Col>
  51. <Col id="datacolumn">무관</Col>
  52. </Row>
  53. <Row>
  54. <Col id="codecolumn">Y</Col>
  55. <Col id="datacolumn">연결</Col>
  56. </Row>
  57. <Row>
  58. <Col id="codecolumn">N</Col>
  59. <Col id="datacolumn">연결되지않음</Col>
  60. </Row>
  61. </Rows>
  62. </Dataset>
  63. </Radio>
  64. <Shape position="absolute 880 7 886 53" linetype="vertical" id="line1" class="line_4" anchor="top right"/>
  65. <Button position="absolute 896 19 952 41" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="grp_johe_btn_search_onclick"/>
  66. </Layout>
  67. </Layouts>
  68. </Div>
  69. <Static id="caption1" text="건진정보마이닝 목록검색" class="tit_1" position="absolute 0 0 220 22"/>
  70. <Static id="caption30" text="건진정보마이닝 템플릿" class="tit_2" position="absolute 0 32 215 54"/>
  71. <Div id="import1" taborder="1" url="./SSCHT00400_건진데이터마이닝그룹트리.xfdl" position="absolute 0 48 215 792" anchor="left top bottom"/>
  72. <Static id="caption9" text="건진정보마이닝 템플릿" class="tit_2" position="absolute 225 106 425 128"/>
  73. <Shape id="line2" class="line_10" position="absolute 224 122 1195 128" anchor="left top right"/>
  74. <Grid id="grd_healexamdtmnlist" taborder="2" binddataset="ds_main_list_healexamdtmnlist" useinputpanel="false" position="absolute 224 127 1195 762" autoenter="select" cellsizingtype="col" anchor="all" oncelldblclick="grd_healexamdtmnlist_oncelldblclick">
  75. <Formats>
  76. <Format id="default">
  77. <Columns>
  78. <Column size="21"/>
  79. <Column size="175"/>
  80. <Column size="120"/>
  81. <Column size="100"/>
  82. <Column size="90"/>
  83. <Column size="100"/>
  84. <Column size="80"/>
  85. <Column size="90"/>
  86. <Column size="90"/>
  87. <Column size="75"/>
  88. <Column size="0"/>
  89. </Columns>
  90. <Rows>
  91. <Row size="24" band="head"/>
  92. <Row size="24"/>
  93. </Rows>
  94. <Band id="head">
  95. <Cell/>
  96. <Cell col="1" text="탬플릿명"/>
  97. <Cell col="2" text="그룹"/>
  98. <Cell col="3" text="연결캠페인 여부"/>
  99. <Cell col="4" text="자동실행 여부"/>
  100. <Cell col="5" text="등록일시"/>
  101. <Cell col="6" text="등록자"/>
  102. <Cell col="7" text="총 실행건수"/>
  103. <Cell col="8" text="최종실행건수"/>
  104. <Cell col="9" text="최종실행일"/>
  105. <Cell col="10"/>
  106. </Band>
  107. <Band id="body">
  108. <Cell celltype="head" expr="currow+1"/>
  109. <Cell col="1" style="align:left middle;padding:0 0 0 3;" text="bind:healexamdtmntitl"/>
  110. <Cell col="2" style="align:left top;padding:5 2 3 1;" text="bind:healexamdtmnsmltitl" wordwrap="word"/>
  111. <Cell col="3" displaytype="combo" style="align:center middle;" text="bind:lnktmplyn" combodataset="ds_cmb_lnktmplyn" combocodecol="value" combodatacol="label" enable="false"/>
  112. <Cell col="4" displaytype="combo" style="align:center middle;" text="bind:autexecflag" combodataset="ds_init_C0030list_C0030" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  113. <Cell col="5" displaytype="date" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm" maskchar=" " calendardisplaynulltype="nulltext"/>
  114. <Cell col="6" text="bind:fstrgstnm"/>
  115. <Cell col="7" text="bind:examcnt"/>
  116. <Cell col="8" text="bind:lastexamcnt"/>
  117. <Cell col="9" displaytype="date" style="align:center middle;" text="bind:lastexamdd" calendardisplaynulltype="nulltext"/>
  118. <Cell col="10" text="bind:healexamdtmnkey"/>
  119. </Band>
  120. </Format>
  121. </Formats>
  122. </Grid>
  123. <Static id="caption35" text="전체 템플릿 수 :" position="absolute 963 104 1053 123" anchor="top right"/>
  124. <Edit id="output1" taborder="3" readonly="true" position="absolute 1057 103 1087 122" anchor="top right" style="background:transparent stretch 5,5;align:center middle;"/>
  125. <Static id="caption7" text="건" position="absolute 1092 104 1114 123" anchor="top right"/>
  126. <Button id="button39" taborder="4" text="엑셀저장" class="btn7" position="absolute 1115 103 1195 122" anchor="top right" onclick="button39_onclick"/>
  127. <Button id="button40" taborder="5" text="정보보기" class="btn2" position="absolute 1131 763 1195 782" anchor="right bottom" onclick="button40_onclick"/>
  128. </Layout>
  129. </Layouts>
  130. <Objects>
  131. <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  132. <ColumnInfo>
  133. <Column id="rgstfromdd" type="STRING" size="256"/>
  134. <Column id="rgsttodd" type="STRING" size="256"/>
  135. <Column id="healexamdtmntitl" type="STRING" size="256"/>
  136. <Column id="autexecflag" type="STRING" size="256"/>
  137. <Column id="cmpnlnkyn" type="STRING" size="256"/>
  138. </ColumnInfo>
  139. <Rows>
  140. <Row>
  141. <Col id="rgstfromdd"/>
  142. <Col id="rgsttodd"/>
  143. <Col id="healexamdtmntitl"/>
  144. <Col id="autexecflag"/>
  145. <Col id="cmpnlnkyn"/>
  146. </Row>
  147. </Rows>
  148. </Dataset>
  149. <Dataset id="ds_main_list_healexamdtmnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  150. <ColumnInfo>
  151. <Column id="healexamdtmntitl" type="STRING" size="256" sumtext="건진탬플릿명"/>
  152. <Column id="healexamdtmnsmltitl" type="STRING" size="256" sumtext="그룹"/>
  153. <Column id="lnktmplyn" type="STRING" size="256" sumtext="연결캠페인 여부"/>
  154. <Column id="autexecflag" type="STRING" size="256" sumtext="자동실행 여부"/>
  155. <Column id="fstrgstdt" type="STRING" size="256" sumtext="등록일시"/>
  156. <Column id="fstrgstnm" type="STRING" size="256" sumtext="등록자"/>
  157. <Column id="examcnt" type="STRING" size="256" sumtext="총실행건수"/>
  158. <Column id="lastexamcnt" type="STRING" size="256" sumtext="최종실행건수"/>
  159. <Column id="lastexamdd" type="STRING" size="256" sumtext="최종실행일"/>
  160. <Column id="healexamdtmnkey" type="STRING" size="256" sumtext="건진데이터마이닝코드"/>
  161. </ColumnInfo>
  162. </Dataset>
  163. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  164. <ColumnInfo>
  165. <Column id="scrnflag" type="STRING" size="256"/>
  166. </ColumnInfo>
  167. <Rows>
  168. <Row>
  169. <Col id="scrnflag">L</Col>
  170. </Row>
  171. </Rows>
  172. </Dataset>
  173. <Dataset id="ds_CountNode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  174. <ColumnInfo>
  175. <Column id="CountNode" type="STRING" size="256"/>
  176. </ColumnInfo>
  177. <Rows>
  178. <Row/>
  179. </Rows>
  180. </Dataset>
  181. <Dataset id="ds_cmb_lnktmplyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  182. <ColumnInfo>
  183. <Column id="label" type="STRING" size="256"/>
  184. <Column id="value" type="STRING" size="256"/>
  185. </ColumnInfo>
  186. <Rows>
  187. <Row>
  188. <Col id="label">연결</Col>
  189. <Col id="value">Y</Col>
  190. </Row>
  191. </Rows>
  192. </Dataset>
  193. <Dataset id="ds_init_C0030list_C0030" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  194. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  195. <ColumnInfo>
  196. <Column id="refmode" type="STRING" size="256"/>
  197. </ColumnInfo>
  198. <Rows>
  199. <Row/>
  200. </Rows>
  201. </Dataset>
  202. <Dataset id="ds_send_treedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  203. <ColumnInfo>
  204. <Column id="healexamdtmnsmlcd" type="INT" size="256"/>
  205. </ColumnInfo>
  206. <Rows>
  207. <Row>
  208. <Col id="healexamdtmnsmlcd">0</Col>
  209. </Row>
  210. </Rows>
  211. </Dataset>
  212. <Dataset id="ds_send_key" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  213. </Objects>
  214. <Bind>
  215. <BindItem id="item0" compid="grp_johe.ipt_rgstfromdd" propid="value" datasetid="ds_send_data" columnid="rgstfromdd"/>
  216. <BindItem id="item1" compid="grp_johe.ipt_rgsttodd" propid="value" datasetid="ds_send_data" columnid="rgsttodd"/>
  217. <BindItem id="item2" compid="grp_johe.ipt_healexamdtmntitl" propid="value" datasetid="ds_send_data" columnid="healexamdtmntitl"/>
  218. <BindItem id="item3" compid="grp_johe.rdo_autoexecflag" propid="value" datasetid="ds_send_data" columnid="autexecflag"/>
  219. <BindItem id="item4" compid="grp_johe.rdo_cmpnlnkyn" propid="value" datasetid="ds_send_data" columnid="cmpnlnkyn"/>
  220. <BindItem id="item5" compid="output1" propid="value" datasetid="ds_CountNode" columnid="CountNode"/>
  221. </Bind>
  222. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  223. * System Name :
  224. * Job Name :
  225. * Creator :
  226. * Make Date : 2016-05-24
  227. * Description :
  228. *---------------------------------------------------------------------------------------
  229. * Modify Date Modifier Modify Description
  230. *---------------------------------------------------------------------------------------
  231. * 2016-05-24 Live Converter TF->XP
  232. *
  233. *---------------------------------------------------------------------------------------
  234. ****************************************************************************************/
  235. include "com_commonxp::comm_main.xjs";
  236. function SMCHT00200_oninit(obj:Form, e:InitEventInfo)
  237. {
  238. frmf_initForm(obj);
  239. }
  240. function SMCHT00200_onload(obj:Form, e:LoadEventInfo)
  241. {
  242. grdf_initGrid(grd_healexamdtmnlist);
  243. try
  244. {
  245. var Param = frmf_getMainFormParam();
  246. ds_send_treedata.setColumn(0, "healexamdtmnsmlcd", Param.healexamdtmnsmlcd);
  247. }
  248. catch(e){}
  249. // 공통코드를 호출하여 자료(자동실행여부)를 가져온다
  250. var arrParam = [{dsNm: "ds_init_C0030list_C0030", cdGrpId: "Z0007"}]
  251. appf_getCodeList(arrParam);
  252. ds_send_data.setColumn(0, "rgstfromdd",utlf_getCurrentDate().toDate().getAddDate(-31,"D").getDateFormat());
  253. ds_send_data.setColumn(0, "rgsttodd", utlf_getCurrentDate());
  254. ds_main_list_healexamdtmnlist.clearData();
  255. var refmode = ds_send.getColumn(0, "refmode");
  256. var healexamdtmn_smlcd = ds_send_treedata.getColumn(0, "healexamdtmnsmlcd");
  257. // 목록조회 페이지를 바로 열었을 경울 refmode를 L 로 설정 (내용페이지에서 넘어올 경우 C로 표시)
  258. if (utlf_isNull(refmode))
  259. {
  260. ds_send.setColumn(0, "refmode","L");
  261. }
  262. else if (refmode == "C")
  263. {
  264. fGetHealExamDtmnList();
  265. }
  266. if (healexamdtmn_smlcd > 0)
  267. {
  268. ds_main_list_healexamdtmnlist.clearData();
  269. var oParam = {};
  270. oParam.id = "TRCHT00201";
  271. oParam.service = "healexammngtapp.HealExamMngt";
  272. oParam.method = "reqGetHealExamDtmnList";
  273. oParam.inds = "req=ds_send_data";
  274. oParam.outds = "ds_main_list_healexamdtmnlist=healexamdtmnlist";
  275. oParam.async = false;
  276. //oParam.callback = "cf_TRCHT00201";
  277. tranf_submit(oParam);
  278. var grid_rows = ds_main_list_healexamdtmnlist.rowcount;
  279. ds_CountNode.setColumn(0, "CountNode" , grid_rows);
  280. ds_send_treedata.setColumn(0, "healexamdtmnsmlcd","0");
  281. }
  282. }
  283. function fGetHealExamDtmnList()
  284. {
  285. ds_main_list_healexamdtmnlist.clearData();
  286. var oParam = {};
  287. oParam.id = "TRCHT00201";
  288. oParam.service = "healexammngtapp.HealExamMngt";
  289. oParam.method = "reqGetHealExamDtmnList";
  290. oParam.inds = "req=ds_send_data";
  291. oParam.outds = "ds_main_list_healexamdtmnlist=healexamdtmnlist";
  292. oParam.async = false;
  293. //oParam.callback = "cf_TRCHT00201";
  294. tranf_submit(oParam);
  295. var grid_rows = ds_main_list_healexamdtmnlist.rowcount;
  296. ds_CountNode.setColumn(0, "CountNode" , grid_rows);
  297. }
  298. function grp_johe_ipt_rgstfromdd_onkillfocus(obj:Calendar, e:KillFocusEventInfo)
  299. {
  300. var rgstfromdd = String(obj.value);
  301. if (!utlf_isNull(rgstfromdd) && !utlf_isValidDateTime(rgstfromdd,"YYYYMMDD"))
  302. {
  303. sysf_messageBox("날짜가 바르게 입력되지","E007");
  304. obj.setFocus();
  305. }
  306. }
  307. function grp_johe_ipt_rgsttodd_onkillfocus(obj:Calendar, e:KillFocusEventInfo)
  308. {
  309. var rgsttodd = String(obj.value);
  310. if (!utlf_isNull(rgsttodd) && !utlf_isValidDateTime(rgsttodd,"YYYYMMDD"))
  311. {
  312. sysf_messageBox("날짜가 바르게 입력되지","E007");
  313. obj.setFocus();
  314. }
  315. }
  316. function grp_johe_btn_search_onclick(obj:Button, e:ClickEventInfo)
  317. {
  318. fGetHealExamDtmnList();
  319. }
  320. function button39_onclick(obj:Button, e:ClickEventInfo)
  321. {
  322. grdf_exportExcel(grd_healexamdtmnlist, "excel", "SheetName", "true", "", "");
  323. }
  324. function grd_healexamdtmnlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  325. {
  326. fGetHealExamDtmnAttr(); // 건진데이터마이닝 정보조회
  327. }
  328. function fGetHealExamDtmnAttr()
  329. {
  330. var row = ds_main_list_healexamdtmnlist.rowposition;
  331. var receive_healexamdtmnkey = ds_main_list_healexamdtmnlist.getColumn(row, "healexamdtmnkey");
  332. dsf_makeValue(ds_send_key, "healexamdtmnkey", "String", receive_healexamdtmnkey);
  333. var objArg = new Object();
  334. objArg.healexamdtmnkey = receive_healexamdtmnkey;
  335. frmf_openForm("SMCHT00100", "", objArg);
  336. }
  337. function button40_onclick(obj:Button, e:ClickEventInfo)
  338. {
  339. if( ds_main_list_healexamdtmnlist.rowposition >= 0 )
  340. {
  341. fGetHealExamDtmnAttr(); // 건진데이터마이닝 정보조회
  342. }
  343. else
  344. {
  345. sysf_messageBox("조회하신 후 목록을 ","C002");
  346. grd_healexamdtmnlist.setFocus();
  347. }
  348. }
  349. ]]></Script>
  350. </Form>
  351. </FDL>