SPCDT01000_데이터마이닝수동실행.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPCDT01000" position="absolute 0 0 971 600" titletext="고객정보마이닝 수동실행" oninit="SPCDT01000_oninit" onload="SPCDT01000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption46" text="탬플릿 수동 실행 미리보기 결과" class="tit_2" position="absolute 0 0 251 21" onclick="caption46_onclick"/>
  8. <Button id="btn_sms" taborder="1" text="SMS전송" class="btn3" position="absolute 0 19 84 41" onclick="btn_sms_onclick"/>
  9. <Button id="btn_email" taborder="2" text="이메일발송" class="btn3" position="absolute 87 19 179 41" onclick="btn_email_onclick"/>
  10. <Button id="btn_dm" taborder="3" text="DM출력" class="btn3" position="absolute 182 19 262 41" onclick="btn_dm_onclick"/>
  11. <Static id="caption47" text="전체 인원수 :" position="absolute 684 24 764 41"/>
  12. <Edit id="opt_count" taborder="4" readonly="true" autoselect="true" position="absolute 767 22 797 41"/>
  13. <Static id="caption48" text="건" position="absolute 800 24 830 41"/>
  14. <Button id="btn_saveexcel" taborder="5" text="엑셀저장" class="btn7" position="absolute 825 22 905 41" onclick="btn_saveexcel_onclick"/>
  15. <Button id="btn_manlexec" taborder="6" text="수동실행" class="btn2" position="absolute 906 22 970 41" onclick="btn_manlexec_onclick"/>
  16. <Shape id="line27" class="line_10" position="absolute 0 41 970 47"/>
  17. <Grid id="grd_dtmnexec" taborder="7" binddataset="ds_main_list_dtmnexeclist" useinputpanel="false" position="absolute 0 46 970 571" autoenter="select" cellsizingtype="col" selecttype="multirow">
  18. <Formats>
  19. <Format id="default">
  20. <Columns>
  21. <Column size="26"/>
  22. <Column size="100"/>
  23. <Column size="100"/>
  24. <Column size="50"/>
  25. <Column size="50"/>
  26. <Column size="50"/>
  27. <Column size="50"/>
  28. <Column size="100"/>
  29. <Column size="150"/>
  30. <Column size="100"/>
  31. <Column size="295"/>
  32. <Column size="100"/>
  33. <Column size="100"/>
  34. <Column size="100"/>
  35. <Column size="200"/>
  36. <Column size="100"/>
  37. <Column size="200"/>
  38. <Column size="100"/>
  39. <Column size="200"/>
  40. <Column size="60"/>
  41. <Column size="60"/>
  42. <Column size="60"/>
  43. <Column size="100"/>
  44. <Column size="100"/>
  45. <Column size="100"/>
  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" text="성별"/>
  56. <Cell col="4" text="혈액형"/>
  57. <Cell col="5" text="RH"/>
  58. <Cell col="6" text="나이"/>
  59. <Cell col="7" text="휴대폰"/>
  60. <Cell col="8" text="이메일"/>
  61. <Cell col="9" text="우편번호"/>
  62. <Cell col="10" text="주소"/>
  63. <Cell col="11" text="VIP등급"/>
  64. <Cell col="12" text="최종내원일"/>
  65. <Cell col="13" text="내원일자"/>
  66. <Cell col="14" text="내원경로"/>
  67. <Cell col="15" text="노블레스여부"/>
  68. <Cell col="16" text="상병일자"/>
  69. <Cell col="17" text="상병코드"/>
  70. <Cell col="18" text="처방일자"/>
  71. <Cell col="19" text="처방코드"/>
  72. <Cell col="20" text="검사일자"/>
  73. <Cell col="21" text="검사코드"/>
  74. <Cell col="22" text="참고치상한"/>
  75. <Cell col="23" text="참고치하한"/>
  76. <Cell col="24" text="판정마크"/>
  77. </Band>
  78. <Band id="body">
  79. <Cell celltype="head" expr="currow+1"/>
  80. <Cell col="1" text="bind:hngnm"/>
  81. <Cell col="2" text="bind:pid"/>
  82. <Cell col="3" text="bind:sex"/>
  83. <Cell col="4" text="bind:btype"/>
  84. <Cell col="5" text="bind:rh"/>
  85. <Cell col="6" text="bind:age"/>
  86. <Cell col="7" text="bind:mpphontel"/>
  87. <Cell col="8" text="bind:email"/>
  88. <Cell col="9" text="bind:zipcd"/>
  89. <Cell col="10" text="bind:address"/>
  90. <Cell col="11" text="bind:vipgrde"/>
  91. <Cell col="12" text="bind:lastchosdt"/>
  92. <Cell col="13" text="bind:orddd"/>
  93. <Cell col="14" text="bind:chospath"/>
  94. <Cell col="15" text="bind:nblsyn"/>
  95. <Cell col="16" text="bind:diagdd"/>
  96. <Cell col="17" text="bind:diagcd"/>
  97. <Cell col="18" text="bind:prcpdd"/>
  98. <Cell col="19" text="bind:prcpcd"/>
  99. <Cell col="20" text="bind:lastreptdt"/>
  100. <Cell col="21" text="bind:testcd"/>
  101. <Cell col="22" text="bind:refh"/>
  102. <Cell col="23" text="bind:refl"/>
  103. <Cell col="24" text="bind:judgmark"/>
  104. </Band>
  105. </Format>
  106. </Formats>
  107. </Grid>
  108. <Button id="btn_select" taborder="8" text="전체선택" class="btn2" position="absolute 0 575 64 594" onclick="btn_select_onclick"/>
  109. <Button id="btn_release" taborder="9" text="전체해제" class="btn2" position="absolute 67 575 131 594" onclick="btn_release_onclick"/>
  110. </Layout>
  111. </Layouts>
  112. <Objects>
  113. <Dataset id="ds_main_list_dtmnexeclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  114. <ColumnInfo>
  115. <Column id="hngnm" type="STRING" size="256" sumtext="이름"/>
  116. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  117. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  118. <Column id="age" type="INT" size="256" sumtext="나이"/>
  119. <Column id="mpphontel" type="STRING" size="256" sumtext="휴대폰"/>
  120. <Column id="email" type="STRING" size="256" sumtext="이메일"/>
  121. <Column id="zipcd" type="STRING" size="256" sumtext="우편번호"/>
  122. <Column id="address" type="STRING" size="256" sumtext="주소"/>
  123. <Column id="vipgrde" type="STRING" size="256" sumtext="VIP등급"/>
  124. <Column id="btype" type="STRING" size="256" sumtext="혈액형"/>
  125. <Column id="rh" type="STRING" size="256" sumtext="RH혈액형"/>
  126. <Column id="lastchosdt" type="STRING" size="256" sumtext="최종내원일"/>
  127. <Column id="orddd" type="STRING" size="256" sumtext="내원일자"/>
  128. <Column id="chospath" type="STRING" size="256" sumtext="내원경로"/>
  129. <Column id="nblsyn" type="STRING" size="256" sumtext="노블레스여부"/>
  130. <Column id="diagdd" type="STRING" size="256" sumtext="상병일자"/>
  131. <Column id="diagcd" type="STRING" size="256" sumtext="상병코드"/>
  132. <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
  133. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  134. <Column id="lastperptdt" type="STRING" size="256" sumtext="검사일자"/>
  135. <Column id="testcd" type="STRING" size="256" sumtext="검사코드"/>
  136. <Column id="refh" type="STRING" size="256" sumtext="참고정치상한"/>
  137. <Column id="refl" type="STRING" size="256" sumtext="참고치하한"/>
  138. <Column id="judgmark" type="STRING" size="256" sumtext="판정마크"/>
  139. </ColumnInfo>
  140. </Dataset>
  141. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  142. <ColumnInfo>
  143. <Column id="countnode" type="STRING" size="256"/>
  144. </ColumnInfo>
  145. <Rows>
  146. <Row/>
  147. </Rows>
  148. </Dataset>
  149. <Dataset id="ds_main_dtmntmpl_area" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  150. <Dataset id="ds_main_dtmntmpl_agelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  151. <Dataset id="ds_main_dtmntmpl_chosordlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  152. <Dataset id="ds_main_dtmntmpl_snwlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  153. <Dataset id="ds_main_dtmntmpl_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  154. <Dataset id="ds_main_dtmntmpl_testlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  155. <Dataset id="ds_main_dtmntmpl_opordlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  156. <Dataset id="ds_main_dtmntmpl_tmpldefine" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  157. <Dataset id="ds_main_dtmntmpl_humtrainfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  158. <Dataset id="ds_main_dtmntmpl_chosinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  159. <Dataset id="ds_main_dtmntmpl_snwinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  160. <Dataset id="ds_main_dtmntmpl_prcpinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  161. <Dataset id="ds_main_dtmntmpl_testinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  162. <Dataset id="ds_main_dtmntmpl_opinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  163. <Dataset id="ds_main_dtmntmpl_oplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  164. <Dataset id="ds_temp_emailinfo_recvrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  165. <Dataset id="ds_temp_dminfo_recvrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  166. <Dataset id="ds_temp_smsinfo_recvrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  167. </Objects>
  168. <Bind>
  169. <BindItem id="item0" compid="opt_count" propid="value" datasetid="ds_temp" columnid="countnode"/>
  170. </Bind>
  171. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  172. * System Name :
  173. * Job Name :
  174. * Creator :
  175. * Make Date : 2016-05-24
  176. * Description :
  177. *---------------------------------------------------------------------------------------
  178. * Modify Date Modifier Modify Description
  179. *---------------------------------------------------------------------------------------
  180. * 2016-05-24 Live Converter TF->XP
  181. *
  182. *---------------------------------------------------------------------------------------
  183. ****************************************************************************************/
  184. include "com_commonxp::comm_main.xjs";
  185. include "crm_crmxp::CCZ001.xjs";
  186. function SPCDT01000_oninit(obj:Form, e:InitEventInfo)
  187. {
  188. frmf_initForm(obj);
  189. }
  190. function SPCDT01000_onload(obj:Form, e:LoadEventInfo)
  191. {
  192. grdf_initGrid(grd_dtmnexec);
  193. try
  194. {
  195. ds_main_dtmntmpl_area.copyData(arg_ds_main_dtmntmpl_area);
  196. }
  197. catch(e){}
  198. try
  199. {
  200. ds_main_dtmntmpl_agelist.copyData(arg_ds_main_dtmntmpl_agelist);
  201. }
  202. catch(e){}
  203. try
  204. {
  205. ds_main_dtmntmpl_chosordlist.copyData(arg_ds_main_dtmntmpl_chosordlist);
  206. }
  207. catch(e){}
  208. try
  209. {
  210. ds_main_dtmntmpl_snwlist.copyData(arg_ds_main_dtmntmpl_snwlist);
  211. }
  212. catch(e){}
  213. try
  214. {
  215. ds_main_dtmntmpl_prcplist.copyData(arg_ds_main_dtmntmpl_prcplist);
  216. }
  217. catch(e){}
  218. try
  219. {
  220. ds_main_dtmntmpl_testlist.copyData(arg_ds_main_dtmntmpl_testlist);
  221. }
  222. catch(e){}
  223. try
  224. {
  225. ds_main_dtmntmpl_oplist.copyData(arg_ds_main_dtmntmpl_oplist);
  226. }
  227. catch(e){}
  228. try
  229. {
  230. ds_main_dtmntmpl_opordlist.copyData(arg_ds_main_dtmntmpl_opordlist);
  231. }
  232. catch(e){}
  233. try
  234. {
  235. ds_main_dtmntmpl_tmpldefine.copyData(arg_ds_main_dtmntmpl_tmpldefine);
  236. }
  237. catch(e){}
  238. try
  239. {
  240. ds_main_dtmntmpl_humtrainfo.copyData(arg_ds_main_dtmntmpl_humtrainfo);
  241. }
  242. catch(e){}
  243. try
  244. {
  245. ds_main_dtmntmpl_chosinfo.copyData(arg_ds_main_dtmntmpl_chosinfo);
  246. }
  247. catch(e){}
  248. try
  249. {
  250. ds_main_dtmntmpl_snwinfo.copyData(arg_ds_main_dtmntmpl_snwinfo);
  251. }
  252. catch(e){}
  253. try
  254. {
  255. ds_main_dtmntmpl_prcpinfo.copyData(arg_ds_main_dtmntmpl_prcpinfo);
  256. }
  257. catch(e){}
  258. }
  259. function btn_sms_onclick(obj:Button, e:ClickEventInfo)
  260. {
  261. cczfSMSTrsmOpen("grid",grd_dtmnexec,"hngnm","mpphontel","","");
  262. }
  263. function btn_email_onclick(obj:Button, e:ClickEventInfo)
  264. {
  265. cczfEmailTrsmOpen("grid",grd_dtmnexec,"email","");
  266. }
  267. function btn_dm_onclick(obj:Button, e:ClickEventInfo)
  268. {
  269. cczfDMTrsmOpen(grd_dtmnexec,"hngnm","zipcd","address","pid");
  270. }
  271. function btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
  272. {
  273. grdf_exportExcel(grd_dtmnexec, "excel", "SheetName", "true", "", "");
  274. }
  275. function btn_manlexec_onclick(obj:Button, e:ClickEventInfo)
  276. {
  277. fDtMnExec(); //데이터마이닝 수동실행
  278. }
  279. function fDtMnExec()
  280. {
  281. var oParam = {};
  282. oParam.id = "TRCDT00112";
  283. oParam.service = "dtmnmngtapp.DtmnMngt";
  284. oParam.method = "reqGetDtmnExec";
  285. oParam.inds = "tmpldefine=ds_main_dtmntmpl_tmpldefine "
  286. +"humtrainfo=ds_main_dtmntmpl_humtrainfo "
  287. +"area=ds_main_dtmntmpl_area "
  288. +"agelist=ds_main_dtmntmpl_agelist "
  289. +"chosinfo=ds_main_dtmntmpl_chosinfo "
  290. +"chosordlist=ds_main_dtmntmpl_chosordlist "
  291. +"snwinfo=ds_main_dtmntmpl_snwinfo "
  292. +"snwlist=ds_main_dtmntmpl_snwlist "
  293. +"prcpinfo=ds_main_dtmntmpl_prcpinfo "
  294. +"prcplist=ds_main_dtmntmpl_prcplist "
  295. +"prcpordlist=ds_ "
  296. +"testinfo=ds_main_dtmntmpl_testinfo "
  297. +"testlist=ds_main_dtmntmpl_testlist "
  298. +"testordlist=ds_ "
  299. +"opinfo=ds_main_dtmntmpl_opinfo "
  300. +"oplist=ds_main_dtmntmpl_oplist "
  301. +"opordlist=ds_main_dtmntmpl_opordlist ";
  302. oParam.outds = "ds_main_list_dtmnexeclist=dtmnexeclist";
  303. oParam.async = false;
  304. //oParam.callback = "cf_TRCDT00112";
  305. tranf_submit(oParam);
  306. grd_dtmnexec.setFocus();
  307. var grid_rows = ds_main_list_dtmnexeclist.rowcount;
  308. ds_temp.setColumn(0, "countnode" , grid_rows);
  309. }
  310. function btn_select_onclick(obj:Button, e:ClickEventInfo)
  311. {
  312. grd_dtmnexec.selectAll();
  313. }
  314. function btn_release_onclick(obj:Button, e:ClickEventInfo)
  315. {
  316. ds_main_list_dtmnexeclist.clearSelect();
  317. }
  318. ]]></Script>
  319. </Form>
  320. </FDL>