SMCHI01100_연속건진받은고객.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SMCHI01100_연속건진받은고객
  4. * Summary : 연속건진받은고객
  5. * Programmer : 김준규
  6. * Date Written : 2007.08.30
  7. * History :
  8. * Remark :
  9. -->
  10. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  11. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  12. <xhtml:head>
  13. <xhtml:title>연속 건진 받은 고객</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <list>
  19. <patlist>
  20. <hngnm/>
  21. <pid/>
  22. <sex/>
  23. <age/>
  24. <ordcount/>
  25. <mpphontel/>
  26. <zipcd/>
  27. <address/>
  28. <email/>
  29. <btype/>
  30. <rh/>
  31. <healexamvipgrde/>
  32. <smsaprvyn/>
  33. <emailuseaprvyn/>
  34. <postdeliveuseyn/>
  35. <inhospyn/>
  36. <dethyn/>
  37. <lastchosdt/>
  38. </patlist>
  39. </list>
  40. <area>
  41. <citycd/>
  42. <city/>
  43. <citycntyareacd/>
  44. <citycntyarea/>
  45. <blokcd/>
  46. <blok/>
  47. </area>
  48. <agelist>
  49. <agefrom/>
  50. <ageto/>
  51. </agelist>
  52. </main>
  53. <temp>
  54. <areagrup>
  55. <citycd>
  56. </citycd>
  57. <city/>
  58. <citycntyareacd/>
  59. <citycntyarea/>
  60. <blokcd/>
  61. <blok/>
  62. </areagrup>
  63. <age>
  64. <agefrom/>
  65. <ageto/>
  66. </age>
  67. </temp>
  68. <send>
  69. <data>
  70. <srchorddd1/>
  71. <srchorddd2/>
  72. <srchhealexamflag>C</srchhealexamflag>
  73. <srchhealexamdetlflag/>
  74. <srchpkgcd/>
  75. <srchpkgnm/>
  76. <srchcount1/>
  77. <srchcount2/>
  78. <srchsex/>
  79. <srchbtype/>
  80. <srchrh/>
  81. <srchhealexamvipgrde/>
  82. <srchaddresult/>
  83. <area/>
  84. <agelist/>
  85. <conditioninfo/>
  86. </data>
  87. <area>
  88. <citycd/>
  89. <citycntyareacd/>
  90. </area>
  91. </send>
  92. <hidden>
  93. <A0068list>
  94. <cdid/>
  95. <cdnm/>
  96. </A0068list>
  97. <A0069list>
  98. <cdid/>
  99. <cdnm/>
  100. </A0069list>
  101. <A0070list>
  102. <cdid/>
  103. <cdnm/>
  104. </A0070list>
  105. <A0118list>
  106. <cdid/>
  107. <cdnm/>
  108. </A0118list>
  109. <areacity>
  110. <city>
  111. <citynm/>
  112. <citycd/>
  113. </city>
  114. </areacity>
  115. <areacitycnty>
  116. <citycntyarea>
  117. <citycntyareanm/>
  118. <citycntyareacd/>
  119. </citycntyarea>
  120. </areacitycnty>
  121. <areablok>
  122. <blok>
  123. <bloknm/>
  124. <blokcd/>
  125. </blok>
  126. </areablok>
  127. </hidden>
  128. </root>
  129. </instance>
  130. <submission id="TRCHI01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/list"/>
  131. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  132. <submission id="TRCDT00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/areacity"/>
  133. <submission id="TRCDT00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/area" replace="instance" resultref="/root/hidden/areacitycnty"/>
  134. <submission id="TRCDT00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/area" replace="instance" resultref="/root/hidden/areablok"/>
  135. <script type="javascript" ev:event="xforms-ready">
  136. <![CDATA[
  137. model.setValue("/root/send/data/srchorddd1",getCurrentDate().toDate().getAddDate(-2,"Y").getDateFormat());
  138. model.setValue("/root/send/data/srchorddd2",getCurrentDate());
  139. model.removenodeset("/root/main/area"); // 지역
  140. model.removenodeset("/root/main/agelist"); // 연령
  141. model.removenodeset("/root/main/list/patlist"); // 목록
  142. zbcfGetCodeList( new Array("A0068", "A0069", "A0070", "A0118"), new Array("/root/hidden/A0068list", "/root/hidden/A0069list", "/root/hidden/A0070list", "/root/hidden/A0118list"), true );
  143. // 지역의 시도구분을 가져온다.
  144. submit("TRCDT00101");
  145. model.refresh();
  146. ]]>
  147. </script>
  148. <script type="javascript">
  149. <![CDATA[
  150. // 패키지검색 팝업창 호출
  151. function PkgCodeList(receive_pkgcd_path, receive_pkgnm_path){
  152. setParameter("receive_pkgcd_path", receive_pkgcd_path);
  153. setParameter("receive_pkgnm_path", receive_pkgnm_path);
  154. modal("SPCHT00500");
  155. clearParameter("receive_pkgcd_path");
  156. clearParameter("receive_pkgnm_path");
  157. }
  158. ]]>
  159. </script>
  160. </model>
  161. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  162. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  163. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  164. <script type="javascript" src="../../../crm/crmweb/js/CCZ001.js"/>
  165. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  166. </xhtml:head>
  167. <xhtml:body guideline="2,781;2,834;1,1218;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  168. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  169. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">연속건진자 마이닝</caption>
  170. </group>
  171. <caption id="caption2" class="tit_2" style="left:225px; top:22px; width:150px; height:14px; ">연속 건진 받은 고객</caption>
  172. <select id="chk_addresult" ref="/root/send/data/srchaddresult" overflow="hidden" appearance="full" style="left:1025px; top:18px; width:167px; height:16px; border-style:none; ">
  173. <choices>
  174. <item>
  175. <label>기존 결과에 추가해서 검색</label>
  176. <value>Y</value>
  177. </item>
  178. </choices>
  179. </select>
  180. <group id="grp_johe" style="left:225px; top:36px; width:970px; height:190px; vertical-align:top; ">
  181. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:970px; height:190px; background-color:#fffbf2; border-color:#ffd799; "/>
  182. <caption id="caption3" class="search_name" style="left:15px; top:9px; width:106px; height:17px; ">건 진 기 간 :</caption>
  183. <input id="ipt_orddd1" ref="/root/send/data/srchorddd1" class="input_s_essential" navindex="1" inputtype="date" style="left:124px; top:8px; width:120px; height:19px; "/>
  184. <caption id="caption4" class="search_no_b" style="left:249px; top:9px; width:12px; height:17px; ">~</caption>
  185. <input id="ipt_orddd2" ref="/root/send/data/srchorddd2" class="input_s_essential" navindex="2" inputtype="date" style="left:267px; top:8px; width:120px; height:19px; "/>
  186. <caption id="caption5" class="search_name" style="left:526px; top:9px; width:126px; height:17px; ">건 진 구 분 :</caption>
  187. <select1 id="cmb_Healexamflag" ref="/root/send/data/srchhealexamflag" class="combo_s_essential" navindex="3" appearance="minimal" style="left:655px; top:8px; width:92px; height:19px; ">
  188. <choices>
  189. <itemset nodeset="/root/hidden/A0068list/A0068">
  190. <label ref="cdnm"/>
  191. <value ref="cdid"/>
  192. </itemset>
  193. </choices>
  194. <script type="javascript" ev:event="xforms-value-changed">
  195. <![CDATA[
  196. // 기존에 선택된 세부분류를 초기화한다.
  197. // model.removenodeset("/root/send/data/srchhealexamdetlflag");
  198. model.resetInstanceNode("/root/send/data/srchhealexamdetlflag");
  199. // 선택한 분류에 따른 세부분류를 가져온다.
  200. var flag = model.getValue("/root/send/data/srchhealexamflag");
  201. if (flag == 'C'){
  202. cmb_Healexamdetlflag.choices.itemset.attribute("nodeset") = "/root/hidden/A0069list/A0069";
  203. // model.setValue("/root/send/data/srchhealexamdetlflag", "C01");
  204. } else if (flag == 'G'){
  205. cmb_Healexamdetlflag.choices.itemset.attribute("nodeset") = "/root/hidden/A0070list/A0070";
  206. // model.setValue("/root/send/data/srchhealexamdetlflag", "G01");
  207. }
  208. cmb_Healexamdetlflag.refresh();
  209. model.setFocus("cmb_Healexamdetlflag");
  210. ]]>
  211. </script>
  212. </select1>
  213. <select1 id="cmb_Healexamdetlflag" ref="/root/send/data/srchhealexamdetlflag" class="combo_search" navindex="4" appearance="minimal" style="left:751px; top:8px; width:173px; height:19px; ">
  214. <choices>
  215. <itemset nodeset="/root/hidden/A0069list/A0069">
  216. <label ref="cdnm"/>
  217. <value ref="cdid"/>
  218. </itemset>
  219. </choices>
  220. </select1>
  221. <caption id="caption16" class="search_name" style="left:15px; top:33px; width:110px; height:17px; ">건진 패키지 :</caption>
  222. <output id="opt_pkgcd" ref="/root/send/data/srchpkgcd" class="output_fix" style="left:124px; top:32px; width:80px; height:19px; "/>
  223. <button id="button3" class="icon_search" style="left:207px; top:33px; width:16px; height:16px; ">
  224. <caption/>
  225. <script type="javascript" ev:event="onclick">
  226. <![CDATA[
  227. // 건진정보패키지검색
  228. var receive_pkgnm_path = "/root/send/data/srchpkgnm";
  229. var receive_pkgcd_path = "/root/send/data/srchpkgcd";
  230. PkgCodeList(receive_pkgcd_path, receive_pkgnm_path);
  231. ]]>
  232. </script>
  233. </button>
  234. <output id="opt_pkgnm" ref="/root/send/data/srchpkgnm" class="output_fix" style="left:226px; top:32px; width:267px; height:19px; "/>
  235. <caption id="caption6" class="search_name" style="left:526px; top:33px; width:122px; height:17px; ">건진 받은 횟수 :</caption>
  236. <input id="ipt_count1" ref="/root/send/data/srchcount1" class="input_s_essential" navindex="4" format="999" style="left:655px; top:33px; width:53px; height:19px; "/>
  237. <caption id="caption8" class="search_no_b" style="left:715px; top:33px; width:30px; height:17px; ">회 ~</caption>
  238. <input id="ipt_count2" ref="/root/send/data/srchcount2" class="input_s_essential" navindex="4" format="999" style="left:751px; top:33px; width:53px; height:19px; "/>
  239. <caption id="caption17" class="search_no_b" style="left:810px; top:33px; width:20px; height:17px; ">회</caption>
  240. <caption id="caption7" class="search_name" style="left:15px; top:57px; width:110px; height:17px; ">성 별 :</caption>
  241. <select1 id="rdo_sex" ref="/root/send/data/srchsex" class="combo_search" appearance="minimal" overflow="visible" style="left:124px; top:56px; width:80px; height:19px; ">
  242. <choices>
  243. <item>
  244. <label>남</label>
  245. <value>M</value>
  246. </item>
  247. <item>
  248. <label>여</label>
  249. <value>F</value>
  250. </item>
  251. <item>
  252. <label>무관</label>
  253. <value/>
  254. </item>
  255. </choices>
  256. </select1>
  257. <caption id="caption9" class="search_name" style="left:228px; top:57px; width:83px; height:17px; ">혈 액 형 :</caption>
  258. <select1 id="cmb_btype" ref="/root/send/data/srchbtype" class="combo_search" appearance="minimal" style="left:318px; top:56px; width:65px; height:19px; ">
  259. <choices>
  260. <item>
  261. <label>A형</label>
  262. <value>A</value>
  263. </item>
  264. <item>
  265. <label>B형</label>
  266. <value>B</value>
  267. </item>
  268. <item>
  269. <label>O형</label>
  270. <value>O</value>
  271. </item>
  272. <item>
  273. <label>AB형</label>
  274. <value>AB</value>
  275. </item>
  276. <item>
  277. <label>무관</label>
  278. <value/>
  279. </item>
  280. </choices>
  281. </select1>
  282. <caption id="caption10" class="search_no_b" style="left:388px; top:56px; width:50px; height:17px; ">/ (RH)</caption>
  283. <select1 id="cmb_rh" ref="/root/send/data/srchrh" class="combo_search" appearance="minimal" style="left:438px; top:56px; width:55px; height:19px; ">
  284. <choices>
  285. <item>
  286. <label>RH +</label>
  287. <value>+</value>
  288. </item>
  289. <item>
  290. <label>RH -</label>
  291. <value>-</value>
  292. </item>
  293. <item>
  294. <label>무관</label>
  295. <value/>
  296. </item>
  297. </choices>
  298. </select1>
  299. <caption id="caption11" class="search_name" style="left:526px; top:57px; width:153px; height:17px; ">건진 VIP 등급 :</caption>
  300. <select1 id="cmb_Healexamvipgrde" ref="/root/send/data/srchhealexamvipgrde" class="combo_search" navindex="12" appearance="minimal" style="left:655px; top:56px; width:120px; height:19px; ">
  301. <choices>
  302. <itemset nodeset="/root/hidden/A0118list/A0118">
  303. <label ref="cdnm"/>
  304. <value ref="cdid"/>
  305. </itemset>
  306. </choices>
  307. </select1>
  308. <caption id="caption12" class="search_name" style="left:15px; top:81px; width:105px; height:17px; ">지 역 :</caption>
  309. <datagrid id="grd_area" nodeset="/root/main/area" class="datagrid0" scroll="auto" caption="^시도^시도코드^시군구^시군구코드^읍면동^읍면동코드" colwidth="0, 80, 0, 100, 0, 160, 0" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" style="left:124px; top:80px; width:369px; height:48px; ">
  310. <col ref="seq" visibility="hidden"/>
  311. <col ref="city"/>
  312. <col ref="citycd" visibility="hidden"/>
  313. <col ref="citycntyarea"/>
  314. <col ref="citycntyareacd" visibility="hidden"/>
  315. <col ref="blok"/>
  316. <col ref="blokcd" visibility="hidden"/>
  317. </datagrid>
  318. <select1 id="cmb_city" ref="/root/temp/areagrup/citycd" class="combo_default" appearance="minimal" style="left:498px; top:83px; width:90px; height:19px; ">
  319. <choices>
  320. <itemset nodeset="/root/hidden/areacity/city">
  321. <label ref="citynm"/>
  322. <value ref="citycd"/>
  323. </itemset>
  324. </choices>
  325. <script type="javascript" ev:event="xforms-select">
  326. <![CDATA[
  327. // 선택한 시도에 따른 시군구를 가져온다.
  328. // 선택한 시도의 lable값을 인스턴스에 심어준다.
  329. var citycd = model.getValue("/root/temp/areagrup/citycd");
  330. var citynm = cmb_city.label;
  331. model.setValue("/root/send/area/citycd",citycd);
  332. model.setValue("/root/temp/areagrup/city", citynm);
  333. model.removenodeset("/root/hidden/areacitycnty/citycntyarea");
  334. model.removenodeset("/root/hidden/areablok/blok");
  335. model.resetInstanceNode("/root/temp/areagrup/citycntyareacd");
  336. model.resetInstanceNode("/root/temp/areagrup/blokcd");
  337. submit("TRCDT00102");
  338. model.refresh();
  339. ]]>
  340. </script>
  341. </select1>
  342. <select1 id="cmb_citycntyarea" ref="/root/temp/areagrup/citycntyareacd" class="combo_default" appearance="minimal" style="left:591px; top:83px; width:130px; height:19px; ">
  343. <choices>
  344. <itemset nodeset="/root/hidden/areacitycnty/citycntyarea">
  345. <label ref="citycntyareanm"/>
  346. <value ref="citycntyareacd"/>
  347. </itemset>
  348. </choices>
  349. <script type="javascript" ev:event="xforms-select">
  350. <![CDATA[
  351. // 선택한 시군구에 대한 읍면동을 가져온다.
  352. // 선택한 시군구의 lable값을 인스턴스에 심어준다.
  353. var citycntyareacd = model.getValue("/root/temp/areagrup/citycntyareacd");
  354. var citycntyareanm = cmb_citycntyarea.label;
  355. model.setValue("/root/send/area/citycntyareacd",citycntyareacd);
  356. model.setValue("/root/temp/areagrup/citycntyarea", citycntyareanm);
  357. submit("TRCDT00103");
  358. model.refresh();
  359. ]]>
  360. </script>
  361. </select1>
  362. <select1 id="cmb_blok" ref="/root/temp/areagrup/blokcd" class="combo_default" appearance="minimal" style="left:724px; top:83px; width:200px; height:19px; ">
  363. <choices>
  364. <itemset nodeset="/root/hidden/areablok/blok">
  365. <label ref="bloknm"/>
  366. <value ref="blokcd"/>
  367. </itemset>
  368. </choices>
  369. <script type="javascript" ev:event="xforms-select">
  370. <![CDATA[
  371. // 선택한 읍면동의 lable값을 인스턴스에 심어준다.
  372. var bloknm = cmb_blok.label;
  373. model.setValue("/root/temp/areagrup/blok", bloknm);
  374. ]]>
  375. </script>
  376. </select1>
  377. <button id="btn_add" class="btn2_letter2" style="left:498px; top:106px; width:42px; height:19px; ">
  378. <caption>추가</caption>
  379. <script type="javascript" ev:event="DOMActivate">
  380. <![CDATA[
  381. // 선택한 지역을 지역그리드에 넣어준다.
  382. var citycd = model.getValue("/root/temp/areagrup/citycd");
  383. var city = model.getValue("/root/temp/areagrup/city");
  384. var citycntyareacd = model.getValue("/root/temp/areagrup/citycntyareacd");
  385. var citycntyarea = model.getValue("/root/temp/areagrup/citycntyarea");
  386. var blokcd = model.getValue("/root/temp/areagrup/blokcd");
  387. var blok = model.getValue("/root/temp/areagrup/blok");
  388. if(citycd == ""){
  389. var rtn = messageBox("시도를 ", "C002");
  390. return;
  391. } else {
  392. grd_area.additem();
  393. model.copyNode("/root/main/area[" + grd_area.row + " ]", "/root/temp/areagrup");
  394. //model.resetInstanceNode("/root/temp/citycd");
  395. model.resetInstanceNode("/root/temp/areagrup");
  396. model.refresh();
  397. }
  398. ]]>
  399. </script>
  400. </button>
  401. <button id="btn_del" class="btn2_letter2" style="left:543px; top:106px; width:42px; height:19px; ">
  402. <caption>삭제</caption>
  403. <script type="javascript" ev:event="DOMActivate">
  404. <![CDATA[
  405. // 선택한 지역그리드를 삭제한다.
  406. deleteSelectedRows(grd_area, false); // 지역 선택행 삭제
  407. //grd_area.deleteRow(grd_area.row);
  408. //grd_area.refresh();
  409. ]]>
  410. </script>
  411. </button>
  412. <caption id="caption13" class="search_name" style="left:17px; top:134px; width:105px; height:17px; ">연 령 :</caption>
  413. <datagrid id="grd_age" nodeset="/root/main/agelist" class="datagrid0" caption="^연령시작^연령끝" colwidth="0, 80, 80" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" style="left:124px; top:133px; width:211px; height:48px; ">
  414. <col ref="seq" visibility="hidden"/>
  415. <col ref="agefrom"/>
  416. <col ref="ageto"/>
  417. </datagrid>
  418. <input id="ipt_agefrom" ref="/root/temp/age/agefrom" class="output_w" format="999" appearance="output" style="left:340px; top:135px; width:50px; height:19px; "/>
  419. <caption id="caption14" style="left:393px; top:135px; width:35px; height:17px; ">세 ~</caption>
  420. <input id="ipt_ageto" ref="/root/temp/age/ageto" class="output_w" format="999" appearance="output" style="left:428px; top:135px; width:50px; height:19px; "/>
  421. <caption id="caption15" style="left:481px; top:135px; width:20px; height:17px; ">세</caption>
  422. <button id="button22" class="btn2_letter2" style="left:340px; top:159px; width:42px; height:19px; ">
  423. <caption>추가</caption>
  424. <script type="javascript" ev:event="DOMActivate">
  425. <![CDATA[
  426. // 입력한 연령을 연령그리드에 넣어준다.
  427. var agefrom = model.getValue("/root/temp/age/agefrom");
  428. var ageto = model.getValue("/root/temp/age/ageto");
  429. if(agefrom == ""){
  430. var rtn = messageBox("시작연령 ", "C001");
  431. return;
  432. } else if(ageto == "") {
  433. var rtn = messageBox("끝연령 ", "C001");
  434. return;
  435. } else {
  436. if(agefrom > ageto){
  437. var rtn = messageBox("시작연령과 끝연령을 올바르게", "C001");
  438. } else {
  439. grd_age.addRow();
  440. model.copyNode("/root/main/agelist[" + grd_age.row + " ]", "/root/temp/age");
  441. model.resetInstanceNode("/root/temp/age");
  442. model.refresh();
  443. }
  444. }
  445. ]]>
  446. </script>
  447. </button>
  448. <button id="button20" class="btn2_letter2" style="left:385px; top:159px; width:42px; height:19px; ">
  449. <caption>삭제</caption>
  450. <script type="javascript" ev:event="DOMActivate">
  451. <![CDATA[
  452. // 선택한 연령그리드를 삭제한다.
  453. deleteSelectedRows(grd_age, false); // 연령 선택행 삭제
  454. //grd_age.deleteRow(grd_age.row);
  455. //grd_age.refresh();
  456. ]]>
  457. </script>
  458. </button>
  459. <line id="line1" class="line_4" style="x1:886px; y1:153px; x2:886px; y2:177px; "/>
  460. <button id="btn_search" class="btn1_letter2" style="left:898px; top:153px; width:56px; height:22px; ">
  461. <caption>조회</caption>
  462. <script type="javascript" ev:event="DOMActivate">
  463. <![CDATA[
  464. var reSrchCount1 = model.getValue("/root/send/data/srchcount1");
  465. var reSrchCount2 = model.getValue("/root/send/data/srchcount2");
  466. var reSrchAddResult = model.getValue("/root/send/data/srchaddresult");
  467. if(isRequiredControls("ipt_orddd1", "ipt_orddd2", "cmb_Healexamflag")) {
  468. if (reSrchCount1 == "" || reSrchCount1 == null) {
  469. messageBox("시작 횟수는 반드시 ", "C001");
  470. model.SetValue("/root/send/data/srchcount1", "1");
  471. model.SetFocus("ipt_count1");
  472. } else if ( (reSrchCount1 < 1) && ( reSrchCount1 != "" ) ) {
  473. messageBox("시작 횟수는 1 이상을 ", "C001");
  474. model.SetFocus("ipt_count1");
  475. } else if ( (reSrchCount2 < 1) && ( reSrchCount2 != "" ) ) {
  476. messageBox("끝 횟수는 1 이상을 ", "C001");
  477. model.SetFocus("ipt_count2");
  478. } else if ( ( reSrchCount1 > reSrchCount2 ) && ( reSrchCount2 != "" ) ) {
  479. messageBox("시작 횟수와 끝 횟수를 올바르게 ", "C001");
  480. model.SetFocus("ipt_count1");
  481. } else {
  482. if ( reSrchAddResult == "Y" ) {
  483. TRCHI01101.attribute("add") = "bottom";
  484. } else {
  485. model.removeNodeset("/root/main/list/patlist");
  486. }
  487. model.makeValue("/root/send/data/area", grd_area.getUpdateData()); // 지역
  488. model.makeValue("/root/send/data/agelist", grd_age.getUpdateData()); // 연령
  489. submit("TRCHI01101");;
  490. model.SetFocus("grd_patlist");
  491. }
  492. }
  493. model.refresh();
  494. ]]>
  495. </script>
  496. </button>
  497. </group>
  498. <group id="grp_body" style="left:225px; top:227px; width:970px; height:525px; ">
  499. <button id="btn_print" class="btn6_letter2" style="left:5px; top:13px; width:56px; height:22px; ">
  500. <caption>출력</caption>
  501. </button>
  502. <button id="btn_sms" class="btn3_letter5" style="left:64px; top:13px; width:92px; height:22px; ">
  503. <caption>SMS전송</caption>
  504. <script type="javascript" ev:event="DOMActivate">
  505. <![CDATA[
  506. cczfSMSTrsmOpen("grid", grd_patlist,1,6, "", "");
  507. ]]>
  508. </script>
  509. </button>
  510. <button id="btn_email" class="btn3_letter5" style="left:159px; top:13px; width:92px; height:22px; ">
  511. <caption>이메일발송</caption>
  512. <script type="javascript" ev:event="DOMActivate">
  513. <![CDATA[
  514. cczfEmailTrsmOpen("grid", grd_patlist,9, "");
  515. ]]>
  516. </script>
  517. </button>
  518. <button id="btn_dm" class="btn3_letter4" style="left:254px; top:13px; width:80px; height:22px; ">
  519. <caption>DM출력</caption>
  520. <script type="javascript" ev:event="DOMActivate">
  521. <![CDATA[
  522. cczfDMTrsmOpen(grd_patlist,1,7,8,2);
  523. ]]>
  524. </script>
  525. </button>
  526. <button id="btn_cmpn" class="btn3_letter5" style="left:337px; top:13px; width:92px; height:22px; ">
  527. <caption>캠페인등록</caption>
  528. <script type="javascript" ev:event="DOMActivate">
  529. <![CDATA[
  530. cczfOpenInsertCmpn(grd_patlist, "06");
  531. ]]>
  532. </script>
  533. </button>
  534. <button id="btn_excsave" class="btn2_letter4" style="left:906px; top:13px; width:64px; height:19px; ">
  535. <caption>엑셀저장</caption>
  536. <script type="javascript" ev:event="DOMActivate">
  537. <![CDATA[
  538. var fileName = window.fileDialog("save", ",", false, "연속건진고객목록엑셀", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  539. if (fileName != "")
  540. {
  541. grd_patlist.saveExcel(fileName);
  542. }
  543. ]]>
  544. </script>
  545. </button>
  546. <line id="line2" class="line_1" style="x1:0px; y1:38px; x2:970px; y2:38px; "/>
  547. <datagrid id="grd_patlist" nodeset="/root/main/list/patlist" caption="이름^등록번호^성별^나이^건진횟수^휴대폰^우편번호^주소^이메일^혈액형^RH^건진VIP등급^SMS 여부^이메일 여부^우편 여부^재원 여부^사망 여부^최종내원일" colsep="^" colwidth="80, 85, 40, 45, 70, 85, 70, 290, 150, 50, 50, 90, 70, 70, 70, 70, 70, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:43px; width:970px; height:480px; ">
  548. <col ref="hngnm" style="text-align:center; "/>
  549. <col ref="pid" style="text-align:center; "/>
  550. <col ref="sex" style="text-align:center; "/>
  551. <col ref="age" style="text-align:center; "/>
  552. <col ref="ordcount" style="text-align:center; "/>
  553. <col ref="mpphontel" style="text-align:center; "/>
  554. <col ref="zipcd" style="text-align:center; "/>
  555. <col ref="address"/>
  556. <col ref="email"/>
  557. <col ref="btype" style="text-align:center; "/>
  558. <col ref="rh" style="text-align:center; "/>
  559. <col ref="healexamvipgrde" style="text-align:center; "/>
  560. <col ref="smsaprvyn" style="text-align:center; "/>
  561. <col ref="emailuseaprvyn" style="text-align:center; "/>
  562. <col ref="postdeliveuseyn" style="text-align:center; "/>
  563. <col ref="inhospyn" style="text-align:center; "/>
  564. <col ref="dethyn" style="text-align:center; "/>
  565. <col ref="lastchosdt" visibility="hidden"/>
  566. </datagrid>
  567. </group>
  568. <group id="grp_btn" style="left:225px; top:750px; width:970px; height:29px; vertical-align:top; ">
  569. <button id="btn_select" class="btn2_letter4" style="left:0px; top:3px; width:64px; height:19px; ">
  570. <caption>전체선택</caption>
  571. <script type="javascript" ev:event="DOMActivate">
  572. <![CDATA[
  573. var grid = grd_patlist;
  574. var grid_rows = grid.rows-1;
  575. grid.selectionmode = "byrow";
  576. grid.select(1, 1, grid_rows, 1) = true;
  577. ]]>
  578. </script>
  579. </button>
  580. <button id="btn_release" class="btn2_letter4" style="left:67px; top:3px; width:64px; height:19px; ">
  581. <caption>전체해제</caption>
  582. <script type="javascript" ev:event="DOMActivate">
  583. <![CDATA[
  584. var grid = grd_patlist;
  585. var grid_rows = grid.rows-1;
  586. grid.selectionmode = "byrow";
  587. grid.select(1, 1, grid_rows, 1) = false;
  588. ]]>
  589. </script>
  590. </button>
  591. </group>
  592. <group id="group12" style="left:0px; top:23px; width:215px; height:757px; ">
  593. <caption id="caption30" class="tit_2" style="left:0px; top:0px; width:215px; height:14px; ">건진정보마이닝 템플릿</caption>
  594. <import id="import1" instancetype="merge" src="./SSCHT00400_건진데이터마이닝그룹트리.xrw" style="left:0px; top:13px; width:215px; height:744px; "/>
  595. </group>
  596. </xhtml:body>
  597. </xhtml:html>