SMAHA00800_발송관리.xrw 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>발송관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <sendcdlst>
  11. <item>
  12. <sel/>
  13. <sendflag/>
  14. <sendyn/>
  15. <senddd/>
  16. <sendaddrflag/>
  17. <pid/>
  18. <hngnm/>
  19. <rrgstno/>
  20. <mpphontel/>
  21. <detladdr/>
  22. <cmpycd/>
  23. <statflag/>
  24. <hopedd/>
  25. <judgdd/>
  26. <remcnts/>
  27. <prtyn/>
  28. <healexamflag/>
  29. <instcd/>
  30. <orddd/>
  31. <rsrvno/>
  32. <rsrvdd/>
  33. <address/>
  34. <zipcode/>
  35. <sexage/>
  36. <testcd/>
  37. </item>
  38. <item2>
  39. <sel/>
  40. <sendflag/>
  41. <sendyn/>
  42. <senddd/>
  43. <pid/>
  44. <hngnm/>
  45. <rrgstno/>
  46. <cmpycd/>
  47. <statflag/>
  48. <hopedd/>
  49. <judgdd/>
  50. <mpphontel/>
  51. <detladdr/>
  52. <remcnts/>
  53. <prtyn/>
  54. <rsrvno/>
  55. <healexamflag/>
  56. <instcd/>
  57. <sendaddrflag/>
  58. <rsrvdd/>
  59. <address/>
  60. </item2>
  61. <item3>
  62. <sel/>
  63. <sendflag/>
  64. <sendyn/>
  65. <senddd/>
  66. <pid/>
  67. <hngnm/>
  68. <rrgstno/>
  69. <cmpycd/>
  70. <statflag/>
  71. <hopedd/>
  72. <judgdd/>
  73. <remcnts/>
  74. <prtyn/>
  75. <rsrvno/>
  76. <healexamflag/>
  77. <instcd/>
  78. <sendaddrflag/>
  79. <rsrvdd/>
  80. <detladdr/>
  81. <address/>
  82. </item3>
  83. </sendcdlst>
  84. <sendvisalst>
  85. <item>
  86. <sel/>
  87. <sendflag/>
  88. <printyn/>
  89. <senddd/>
  90. <sendaddressflag/>
  91. <pid/>
  92. <visano/>
  93. <engnm/>
  94. <rrgstno/>
  95. <engaddress/>
  96. <orddd/>
  97. <healexamflag/>
  98. <instcd/>
  99. <healexamdetlflag/>
  100. <subclass/>
  101. <requiretest/>
  102. <resultoftest/>
  103. <specialoption/>
  104. <letterdoctor/>
  105. <letterdoctordept/>
  106. <letterdoctorsign/>
  107. </item>
  108. <srchyn>V</srchyn>
  109. </sendvisalst>
  110. <seqprntdata>
  111. <labelname>
  112. <list>
  113. <pid/>
  114. <hngnm/>
  115. <sexage/>
  116. <orddd/>
  117. </list>
  118. </labelname>
  119. </seqprntdata>
  120. </main>
  121. <send>
  122. <srchdatelist/>
  123. <srcsendflag/>
  124. <sendfrdd/>
  125. <sendtodd/>
  126. <rsvfrdd/>
  127. <rsvtodd/>
  128. <healexampid/>
  129. <shrchealexamflag/>
  130. <rsltcnstflag/>
  131. <ipt_pnm/>
  132. <statflag/>
  133. <srchhealexamdetlflag/>
  134. <req>
  135. <savesend/>
  136. <sendcd/>
  137. <sendflag/>
  138. <healexampid/>
  139. </req>
  140. <batchset>
  141. <senddd/>
  142. <sendaddrflag>1</sendaddrflag>
  143. <sendyn/>
  144. </batchset>
  145. <save>
  146. <senddata/>
  147. <updata/>
  148. <senddata2/>
  149. <updata2/>
  150. </save>
  151. <srchvisa>
  152. <req>
  153. <sendflag/>
  154. <instcd/>
  155. <healexamflag/>
  156. <healexamdetlflag/>
  157. <fromdd/>
  158. <todd/>
  159. <pid/>
  160. </req>
  161. </srchvisa>
  162. <healexamflag/>
  163. <srchvisa2>
  164. <req>
  165. <sendflag/>
  166. <instcd/>
  167. <healexamflag/>
  168. <healexamdetlflag/>
  169. <fromdd/>
  170. <todd/>
  171. <pid/>
  172. <subclass/>
  173. <requiretest/>
  174. <resultoftest/>
  175. <specialoption/>
  176. <letterdoctor/>
  177. <letterdoctordept/>
  178. <letterdoctorsign/>
  179. </req>
  180. </srchvisa2>
  181. <visadata>
  182. <insdata>
  183. <item>
  184. <sel/>
  185. <sendflag/>
  186. <printyn/>
  187. <senddd/>
  188. <sendaddressflag/>
  189. <pid/>
  190. <visano/>
  191. <engnm/>
  192. <rrgstno/>
  193. <engaddress/>
  194. <orddd/>
  195. <healexamflag/>
  196. <instcd/>
  197. <healexamdetlflag/>
  198. <subclass/>
  199. <requiretest/>
  200. <resultoftest/>
  201. <specialoption/>
  202. <letterdoctor/>
  203. <letterdoctordept/>
  204. <letterdoctorsign/>
  205. </item>
  206. </insdata>
  207. </visadata>
  208. <brthareacnts/>
  209. <save2>
  210. <senddata/>
  211. <updata/>
  212. </save2>
  213. <printformat>01</printformat>
  214. <srchhealexamplacecd/>
  215. </send>
  216. <init>
  217. <baseinfo>
  218. <sendflag>
  219. <A0121>
  220. <cdid/>
  221. <cdnm/>
  222. </A0121>
  223. </sendflag>
  224. <rsltcnstflaglst>
  225. <S080>
  226. <cdid/>
  227. <cdnm/>
  228. </S080>
  229. </rsltcnstflaglst>
  230. <healexamdetlflag>
  231. <A0070>
  232. <cdid/>
  233. <cdnm/>
  234. </A0070>
  235. </healexamdetlflag>
  236. <doctorlst>
  237. <A0484>
  238. <cdid/>
  239. <cdnm/>
  240. </A0484>
  241. </doctorlst>
  242. <doctordeptlst>
  243. <A0485>
  244. <cdid/>
  245. <cdnm/>
  246. </A0485>
  247. </doctordeptlst>
  248. <sendaddressflag>
  249. <A0468>
  250. <cdid/>
  251. <cdnm/>
  252. </A0468>
  253. </sendaddressflag>
  254. <nationlst>
  255. <A0465>
  256. <cdid/>
  257. <cdnm/>
  258. </A0465>
  259. </nationlst>
  260. <statlst>
  261. <A0107>
  262. <cdid/>
  263. <cdnm/>
  264. </A0107>
  265. </statlst>
  266. <chealexamdetlflag/>
  267. <healexamplacelst>
  268. <S600/>
  269. </healexamplacelst>
  270. </baseinfo>
  271. </init>
  272. <hidden>
  273. <popupmenu>
  274. <grid>
  275. <item>
  276. <name>선택</name>
  277. <func>fCheck</func>
  278. </item>
  279. <item>
  280. <name>선택취소</name>
  281. <func>fUnCheck</func>
  282. </item>
  283. </grid>
  284. </popupmenu>
  285. </hidden>
  286. <hidden2/>
  287. </root>
  288. </instance>
  289. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  290. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  291. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  292. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  293. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  294. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  295. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  296. <submission id="TRAHA00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/sendcdlst"/>
  297. <submission id="TXAHA00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden"/>
  298. <submission id="TRZBC00101"/>
  299. <submission id="TRAHA00002"/>
  300. <submission id="TRAHA00001"/>
  301. <script type="javascript" ev:event="xforms-ready">
  302. <![CDATA[
  303. var sFlag = getScreenMenuParameter();
  304. if(sFlag == "") {
  305. vHealexamflag = "C";
  306. vHealexamdetlflag = "C01";
  307. }else {
  308. vHealexamflag = sFlag.substr(0,1);
  309. vHealexamdetlflag = sFlag;
  310. }
  311. model.removeNodeset("/root/init/baseinfo/sendflag/A0121");
  312. model.removeNodeset("/root/init/baseinfo/statlst/A0107");
  313. model.removeNodeset("/root/init/baseinfo/rsltcnstflag/A0123");
  314. model.removeNodeset("/root/init/baseinfo/healexamdetlflag/A0070");
  315. model.removeNodeset("/root/init/baseinfo/doctorlst/A0484");
  316. model.removeNodeset("/root/init/baseinfo/doctordeptlst/A0485");
  317. model.removeNodeset("/root/init/baseinfo/sendaddressflag/A0468");
  318. model.removeNodeset("/root/init/baseinfo/rsltcnstflaglst/S080");
  319. //나중에 바뀌어야 할 사항
  320. combo1.value = "01 02 03 04";
  321. checkbox1.value = "A B C D E F G H I";
  322. // 건진 구분 셋팅
  323. model.setValue("/root/send/shrchealexamflag", vHealexamflag);
  324. model.setValue("/root/send/srchhealexamdetlflag", vHealexamdetlflag);
  325. // submit 방식 모든 공통코드 전체항목이 조회 됨
  326. healGetCodeListSubmit( new Array("S080")
  327. , new Array("/root/init/baseinfo/rsltcnstflaglst"), false);
  328. model.removenode("/root/init/baseinfo/rsltcnstflaglst/S080[1]");
  329. // cdnm,cdid,cdgrupid,cmt
  330. healGetCodeList( new Array("S600")
  331. , new Array("/root/init/baseinfo/healexamplacelst") );
  332. zbcfGetCodeList( new Array("A0121","A0123" ,"A0069","A0070","A0484","A0485","A0468","A0465","A0107"),
  333. new Array("/root/init/baseinfo/sendflag"
  334. ,"/root/init/baseinfo/rsltcnstflag"
  335. ,"/root/init/baseinfo/healexamdetlflag"
  336. ,"/root/init/baseinfo/chealexamdetlflag"
  337. ,"/root/init/baseinfo/doctorlst"
  338. ,"/root/init/baseinfo/doctordeptlst"
  339. ,"/root/init/baseinfo/sendaddressflag"
  340. ,"/root/init/baseinfo/nationlst"
  341. ,"/root/init/baseinfo/statlst") );
  342. //copyNodesetType("/root/init/baseinfo/healexamdetlflag/A0070","/root/init/baseinfo/chealexamdetlflag/A0069","after");
  343. model.refresh();
  344. fInitCtrl(true);
  345. if(vHealexamflag == 'C'){
  346. cmb_sendflag.select(0);
  347. cmb_healexamflag.disabled=false;
  348. caption5.visible=true;
  349. combo1.visible=true;
  350. caption19.visible=false; //국가구분 레이블
  351. cmb_brthareacnts.visible=false;//국가구분
  352. }
  353. if(vHealexamflag == 'G'){
  354. cmb_sendflag.select(0);
  355. cmb_healexamflag.disabled=false;
  356. caption5.visible=true;
  357. combo1.visible=true;
  358. caption19.visible=false; //국가구분 레이블
  359. cmb_brthareacnts.visible=false;//국가구분
  360. }
  361. // 수정추가 20100712 JHP 선택컬럼에 전체선택 체크박스 추가
  362. // 그리드 의 0번째 row, 1번째 필드dp 체크박스 셋팅!
  363. grd_send.fixedcellcheckbox(0,1) = true;
  364. model.removenode("/root/init/baseinfo/healexamdetlflag/A0070[0]");
  365. model.refresh();
  366. ]]>
  367. </script>
  368. <submission id="TRAHA00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/senddata" resultref="/root/tmp"/>
  369. <submission id="TRAHA00804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/senddata" resultref="/root/tmp"/>
  370. <submission id="TRAHA00805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/senddata" resultref="/root/tmp"/>
  371. <submission id="TRAHA00611" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchvisa/req" replace="instance" resultref="/root/main/sendvisalst/item"/>
  372. <submission id="TRAHA00612" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchvisa2/req" replace="instance" resultref="/root/main/sendvisalst/item"/>
  373. <submission id="TRAHA00613" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/visadata/insdata/item" replace="instance" resultref="/root/hidden"/>
  374. <submission id="TRAHA00614" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/updata" replace="instance" resultref="/root/tmp"/>
  375. </model>
  376. <script type="javascript">
  377. <![CDATA[
  378. var vHealexamflag = "";
  379. var vHealexamdetlflag = "";
  380. function fGetSendList()
  381. {
  382. if(combo1.value == "")
  383. {
  384. messageBox("결과상담구분을 하나이상 선택하셔야 합니다.", "E999");
  385. return false;
  386. }
  387. if(checkbox1.value == "")
  388. {
  389. messageBox("상태구분을 하나이상 선택하셔야 합니다.", "E999");
  390. return false;
  391. }
  392. model.setValue("/root/send/shrchealexamflag",vHealexamflag);
  393. var ret = submit("TRAHA00801");
  394. return ret ;
  395. }
  396. function fInitCtrl(bAll){
  397. if( bAll == true ){
  398. var curDt = getCurrentDate();
  399. model.setValue(ipt_rsvfrdd.attribute("ref") , curDt);
  400. model.setValue(ipt_rsvtodd.attribute("ref") , curDt);
  401. model.setValue(ipt_senddd.attribute("ref") , curDt);
  402. cmb_datelist.visible = false;
  403. }
  404. var vHealExamDetlFg = fGetHealExamDetlFlag();
  405. if( vHealExamDetlFg == 'C01' ){
  406. cmb_placeflag.value='S';
  407. } else if (vHealExamDetlFg == 'C03') {
  408. cmb_placeflag.value='K';
  409. }
  410. model.toggle("case_T");
  411. btn_case_t.dispatch("DOMActivate");
  412. }
  413. /**********************************************************************************
  414. *************************비자건진 선택시 컨트롤 히든을 풀고 아니면 히든**************
  415. **********************************************************************************/
  416. // function fSetHidden(){
  417. // if(cmb_healexamflag.value=='G02'){
  418. // btn_au.visible=true;
  419. // btn_visa_list.visible=true;
  420. // btn_seoul.visible=true;
  421. // btn_case_v.visible=true;
  422. // btn_case_l.visible=false;
  423. // btn_case_t.visible=false;
  424. //
  425. // btn_case_v.selected=true;
  426. // btn_case_l.selected=false;
  427. // btn_case_t.selected=false;
  428. // btn_SaveLett.visible=true;
  429. //
  430. // caption5.visible=false;
  431. // combo1.visible=false;
  432. // caption19.visible=true; //국가구분 레이블
  433. // cmb_brthareacnts.visible=true;//국가구분
  434. // model.toggle("case_V");
  435. //
  436. //
  437. // }
  438. // else{
  439. // btn_au.visible=false;
  440. // btn_visa_list.visible=false;
  441. // btn_seoul.visible=false;
  442. // btn_case_v.visible=false;
  443. // btn_case_l.visible=true;
  444. // btn_case_t.visible=true;
  445. //
  446. // btn_case_v.selected=false;
  447. // btn_case_t.selected=true;
  448. // btn_SaveLett.visible=false;
  449. //
  450. // caption5.visible=false;
  451. // combo1.visible=false;
  452. // caption19.visible=true; //국가구분 레이블
  453. // cmb_brthareacnts.visible=true;//국가구분
  454. // model.toggle("case_T");
  455. // }
  456. // }
  457. /***************************************************************
  458. ****************비자건진 조회 함수*******************************
  459. **************************************************************/
  460. function fGetVisaList(){
  461. //건진구분이 읍을시와 일검이 아닐때 리턴
  462. if(vHealexamflag=="" || vHealexamflag!='G')
  463. return;
  464. //기관코드가 읍을시에 리턴
  465. if(getUserInfo("dutplceinstcd")=="")
  466. return;
  467. //건진 상세구분이 비자 건진이 아닐시에
  468. if(cmb_healexamflag.value!="G02")
  469. return;
  470. if(model.getValue("/root/main/sendvisalst/srchyn")=='')
  471. return;
  472. //발송조회라면 "V"
  473. if(model.getValue("/root/main/sendvisalst/srchyn")=='V'){
  474. model.setValue("/root/send/srchvisa/req/instcd",getUserInfo("dutplceinstcd"));
  475. model.setValue("/root/send/srchvisa/req/healexamflag",vHealexamflag);
  476. model.setValue("/root/send/srchvisa/req/healexamdetlflag",cmb_healexamflag.value);
  477. model.setValue("/root/send/srchvisa/req/fromdd",getRemoveFormatter(ipt_rsvfrdd.currentText));
  478. model.setValue("/root/send/srchvisa/req/todd",getRemoveFormatter(ipt_rsvtodd.currentText));
  479. model.setValue("/root/send/srchvisa/req/pid",ipt_healexampid.currentText);
  480. submit("TRAHA00611");
  481. }
  482. //발송 완료조회라면 "R"
  483. else if(model.getValue("/root/main/sendvisalst/srchyn")=='R'){
  484. if(cmb_sendflag.value=="" || cmb_sendflag.value=="01" || cmb_sendflag.value=="02" || cmb_sendflag.value=="03" || cmb_sendflag.value=="04")
  485. return;
  486. model.setValue("/root/send/srchvisa2/req/sendflag",cmb_sendflag.value);
  487. model.setValue("/root/send/srchvisa2/req/instcd",getUserInfo("dutplceinstcd"));
  488. model.setValue("/root/send/srchvisa2/req/healexamflag",vHealexamflag);
  489. model.setValue("/root/send/srchvisa2/req/healexamdetlflag",cmb_healexamflag.value);
  490. model.setValue("/root/send/srchvisa2/req/fromdd",getRemoveFormatter(ipt_rsvfrdd.currentText));
  491. model.setValue("/root/send/srchvisa2/req/todd",getRemoveFormatter(ipt_rsvtodd.currentText));
  492. model.setValue("/root/send/srchvisa2/req/pid",ipt_healexampid.currentText);
  493. submit("TRAHA00612");
  494. }
  495. }
  496. /*************************************************************************************************
  497. ******************** 비자건진 조회된자중 선택한 자만 발송 조회 완료로 됨********************
  498. *************************************************************************************************/
  499. function fSaveVisaList(){
  500. if(rdo_visaflag.value=="R"){
  501. messageBox("발송조회를","C001");
  502. return;
  503. }
  504. var vgrd_rows=grd_sendvisalst.rows;
  505. var j=1;
  506. //i가 2부터인것은 로우 두개를 이용해 검색을 했으므로
  507. for(i = 2; i<= vgrd_rows-1 ;i++){
  508. if(model.getValue("/root/main/sendvisalst/item["+i+"]/sel")=="Y"){
  509. /*
  510. if(grd_sendvisalst.valueMatrix(i,2)==""){
  511. messageBox("발송구분을 ","C001");
  512. return;
  513. }
  514. //발송일자가 없을 경우
  515. if(grd_sendvisalst.valueMatrix(i,3)==""){
  516. messageBox("발송일자를 ","C001");
  517. return;
  518. }
  519. //발송지가 없을 경우
  520. if(grd_sendvisalst.valueMatrix(i,4)==""){
  521. messageBox("발송지를 ","C001");
  522. return;
  523. }
  524. //등록번호가 없을 경우
  525. if(grd_sendvisalst.valueMatrix(i,5)==""){
  526. messageBox("등록번호를 ","C001");
  527. return;
  528. }
  529. //비자연번이 없을 경우
  530. if(grd_sendvisalst.valueMatrix(i,6)==""){
  531. messageBox("등록번호를 ","C001");
  532. return;
  533. }
  534. */
  535. //인스턴스 저장
  536. //for(i = 0 ; i<= vgrd_rows ;i++){
  537. //if(model.getValue("/root/main/sendvisalst/item["+i+"]/sel")=="Y"){
  538. alert(model.getValue("/root/main/sendvisalst/item["+i+"]/sendflag"));
  539. model.setValue("/root/send/visadata/insdata/item["+j+"]/sel",model.getValue("/root/main/sendvisalst/item["+i+"]/sel"));
  540. model.setValue("/root/send/visadata/insdata/item["+j+"]/sendflag",model.getValue("/root/main/sendvisalst/item["+i+"]/sendflag"));
  541. model.setValue("/root/send/visadata/insdata/item["+j+"]/printyn",model.getValue("/root/main/sendvisalst/item["+i+"]/printyn"));
  542. model.setValue("/root/send/visadata/insdata/item["+j+"]/senddd",getRemoveFormatter(model.getValue("/root/main/sendvisalst/item["+i+"]/senddd")));
  543. model.setValue("/root/send/visadata/insdata/item["+j+"]/sendaddressflag",model.getValue("/root/main/sendvisalst/item["+i+"]/sendaddressflag"));
  544. model.setValue("/root/send/visadata/insdata/item["+j+"]/pid",model.getValue("/root/main/sendvisalst/item["+i+"]/pid"));
  545. model.setValue("/root/send/visadata/insdata/item["+j+"]/visano",model.getValue("/root/main/sendvisalst/item["+i+"]/visano"));
  546. model.setValue("/root/send/visadata/insdata/item["+j+"]/engnm",model.getValue("/root/main/sendvisalst/item["+i+"]/engnm"));
  547. model.setValue("/root/send/visadata/insdata/item["+j+"]/rrgstno",model.getValue("/root/main/sendvisalst/item["+i+"]/rrgstno"));
  548. model.setValue("/root/send/visadata/insdata/item["+j+"]/engaddress",model.getValue("/root/main/sendvisalst/item["+i+"]/engaddress"));
  549. model.setValue("/root/send/visadata/insdata/item["+j+"]/orddd",getRemoveFormatter(model.getValue("/root/main/sendvisalst/item["+i+"]/orddd")));
  550. model.setValue("/root/send/visadata/insdata/item["+j+"]/healexamflag",fGetHealExamFlag());
  551. model.setValue("/root/send/visadata/insdata/item["+j+"]/instcd",getUserInfo("dutplceinstcd"));
  552. model.setValue("/root/send/visadata/insdata/item["+j+"]/healexamdetlflag",cmb_healexamflag.value);
  553. j++;
  554. }//if문
  555. }//for문
  556. //model.refresh();
  557. submit("TRAHA00613");
  558. }
  559. function fSaveReSendList()
  560. {
  561. var ret = false ;
  562. if( messageBox("재발송대상정보를","Q002")==6 ){
  563. /* model.setValue("/root/send/req/savesend", grd_send.getUpdateData() ) ;
  564. //발송대상
  565. var idx = grd_send.row;
  566. if( idx < 0) return ;
  567. var vSendFlag = model.getValue("/root/send/srcsendlflag");
  568. alert(vSendFlag);
  569. model.setValue("/root/send/req/sendflag" , vSendFlag);
  570. //ret = submit("TXAHB00301");
  571. ret = submit("TXAHA00801");*/
  572. var vSendDD = model.getValue("/root/send/batchset/senddd");
  573. var vSendAddrFlag = model.getValue("/root/send/batchset/sendaddrflag");
  574. var cnt = grd_return.rows ;
  575. var sendChk = "1";
  576. for(i = 0 ; i<= cnt ;i++){
  577. if(grd_return.valueMatrix(i , grd_return.colRef("sel"))=="Y"){
  578. grd_return.rowStatus(i) = 2;
  579. sendChk = "2";
  580. }
  581. }
  582. if(sendChk=="1"){
  583. messageBox("등록할인원을", "C001");
  584. return;
  585. }else{
  586. model.setValue("/root/send/save/senddata", getGridUpdateData(grd_return));
  587. ret = submit("TRAHA00805");
  588. }
  589. }
  590. return ret ;
  591. }
  592. /* 예약 안내문을경우 희망을자를 조회
  593. * 결과발송일경우 내원상담일자를 조회
  594. */
  595. function fSaveSendList(){
  596. var ret = false ;
  597. if(messageBox("발송대상정보를","Q002") == 6 ){
  598. /*
  599. model.setValue("/root/send/req/savesend", grd_send.getUpdateData() ) ;
  600. //발송대상
  601. var idx = grd_send.row;
  602. if( idx < 0) return ;
  603. var vSendFlag = model.getValue("/root/send/srcsendlflag");
  604. alert(vSendFlag);
  605. model.setValue("/root/send/req/sendflag" , vSendFlag);
  606. //ret = submit("TXAHB00301");
  607. ret = submit("TXAHA00801");
  608. */
  609. var vSendDD = model.getValue("/root/send/batchset/senddd");
  610. var vSendAddrFlag = model.getValue("/root/send/batchset/sendaddrflag");
  611. var cnt = grd_send.rows;
  612. var sendChk = "1";
  613. for(i = 0 ; i<= cnt ;i++){
  614. if(grd_send.valueMatrix(i , grd_send.colRef("sel"))=="Y"){
  615. grd_send.rowStatus(i) = 2;
  616. grd_send.valueMatrix(i , grd_send.colRef("senddd")) = vSendDD;
  617. sendChk = "2";
  618. }
  619. }
  620. if(sendChk=="1"){
  621. messageBox("등록할인원을", "C001");
  622. return;
  623. }else{
  624. model.setValue("/root/send/save/senddata", getGridUpdateData(grd_send));
  625. ret = submit("TRAHA00803");
  626. }
  627. }
  628. return ret ;
  629. }
  630. function fSaveSendRetList(){
  631. var ret = false ;
  632. if( messageBox("반송대상정보를","Q002")==6 ){
  633. /* model.setValue("/root/send/req/savesend", grd_send.getUpdateData() ) ;
  634. //발송대상
  635. var idx = grd_send.row;
  636. if( idx < 0) return ;
  637. var vSendFlag = model.getValue("/root/send/srcsendlflag");
  638. alert(vSendFlag);
  639. model.setValue("/root/send/req/sendflag" , vSendFlag);
  640. //ret = submit("TXAHB00301");
  641. ret = submit("TXAHA00801");*/
  642. var vSendDD = model.getValue("/root/send/batchset/senddd");
  643. var vSendAddrFlag = model.getValue("/root/send/batchset/sendaddrflag");
  644. var cnt = datagrid1.rows;
  645. var sendChk = "1";
  646. for(i = 1 ; i<= cnt ;i++){
  647. if(datagrid1.valueMatrix(i , datagrid1.colRef("sel"))=="Y"){
  648. datagrid1.rowStatus(i) = 2;
  649. sendChk = "2";
  650. }
  651. }
  652. if(sendChk=="1"){
  653. messageBox("등록할인원을", "C001");
  654. return;
  655. }else{
  656. model.setValue("/root/send/save/senddata", getGridUpdateData(datagrid1));
  657. ret = submit("TRAHA00804");
  658. }
  659. }
  660. return ret ;
  661. }
  662. //일괄적용
  663. function fBatchSet()
  664. {
  665. var senddd = model.getValue("/root/send/batchset/senddd");
  666. if(model.getValue("/root/send/batchset/sendyn")=="Y"){
  667. var cnt = grd_send.rows;
  668. for (i=1;i<cnt-1;i++){
  669. model.setValue("/root/main/sendcdlst/item[" + i + "]/sel","Y");
  670. if(senddd!=""){
  671. model.setValue("/root/main/sendcdlst/item[" + i + "]/senddd",senddd);
  672. }
  673. model.setValue("/root/main/sendcdlst/item[" + i + "]/sendaddrflag" , model.getValue("/root/send/batchset/sendaddrflag"));
  674. }
  675. } else{
  676. var cnt = grd_send.rows;
  677. for (i=1;i<cnt-1;i++){
  678. model.setValue("/root/main/sendcdlst/item[" + i + "]/sel","N");
  679. }
  680. }
  681. model.refresh();
  682. }
  683. function fSaveCommitList(){
  684. //로우 스테이투스 검사
  685. var cnt = grd_sendvisalst.rows;
  686. var sendChk = "1";
  687. for(i = 0 ; i<= cnt ;i++){
  688. if(model.getValue("/root/main/sendvisalst/item["+i+"]/sel")=="Y"){
  689. grd_sendvisalst.rowStatus(i) = 2;
  690. sendChk = "2";
  691. }
  692. }
  693. if(sendChk=="1"){
  694. messageBox("등록할인원을", "C001");
  695. }else{
  696. model.setValue("/root/send/save/updata", grd_sendvisalst.getUpdateDataAll("u"));
  697. //로우 업데이트 할게 읍으면 메시지 보내주기^^
  698. //인스턴스 설정
  699. //서브및
  700. submit("TRAHA00614")
  701. }
  702. }
  703. /**********************************************************************************
  704. *****************비자건진 레터 정보 개인 한명 저장 하는 함수 업데이트 문밖에는 없다 **
  705. **********************************************************************************/
  706. function fGetSaveLett(){
  707. var vGrd_row=grd_sendvisalst.row;
  708. if(grd_sendvisalst.valueMatrix(vGrd_row,2)=="" ||
  709. grd_sendvisalst.valueMatrix(vGrd_row,4)=="" ||
  710. grd_sendvisalst.valueMatrix(vGrd_row,5)=="" ||
  711. grd_sendvisalst.valueMatrix(vGrd_row,6)=="" ||
  712. grd_sendvisalst.valueMatrix(vGrd_row,7)=="" ||
  713. grd_sendvisalst.valueMatrix(vGrd_row,11)=="")
  714. {
  715. messageBox("업데이트할 항목을","C001");
  716. return;
  717. }
  718. else{
  719. model.setValue("/root/send/srchvisa2/req/sendflag",cmb_sendflag.value);
  720. model.setValue("/root/send/srchvisa2/req/instcd",getUserInfo("dutplceinstcd"));
  721. model.setValue("/root/send/srchvisa2/req/healexamflag",vHealexamflag);
  722. model.setValue("/root/send/srchvisa2/req/healexamdetlflag",cmb_healexamflag.value);
  723. model.setValue("/root/send/srchvisa2/req/fromdd",getRemoveFormatter(ipt_rsvfrdd.currentText));
  724. model.setValue("/root/send/srchvisa2/req/todd",getRemoveFormatter(ipt_rsvtodd.currentText));
  725. model.setValue("/root/send/srchvisa2/req/pid",ipt_healexampid.currentText);
  726. }
  727. }
  728. /**=============================================================================================
  729. **라벨출력
  730. @author : 김다영
  731. @version : 2007-09-28
  732. *=============================================================================================*/
  733. function fGetLabelName(){
  734. var nodeList = null;
  735. if(case_T.selected == true) { //발송처리
  736. nodeList =instance1.selectNodes("/root/main/sendcdlst/item[sel='Y']");
  737. }else if(case_V.selected == true) { //반송처리
  738. nodeList = instance1.selectNodes("/root/main/sendcdlst/item3[sel='Y']");
  739. }else if(case_L.selected == true) { //발송내역
  740. nodeList = instance1.selectNodes("/root/main/sendcdlst/item2[sel='Y']");
  741. }
  742. var rCSV = getNodeListCSV(nodeList);
  743. model.makeNode("/root/main/seqprntdata/labelname/list/pid");
  744. model.makeNode("/root/main/seqprntdata/labelname/list/hngnm");
  745. model.makeNode("/root/main/seqprntdata/labelname/list/sexage");
  746. model.makeNode("/root/main/seqprntdata/labelname/list/hopedd");
  747. model.removeNodeset("/root/main/seqprntdata/labelname/list" );
  748. model.setValue("/root/main/seqprntdata/labelname", rCSV);
  749. var CSV = model.getValue("/root/main/seqprntdata/labelname");
  750. model.removeNodeset( "/root/main/seqprntdata/labelname" );
  751. model.makeNode("/root/main/seqprntdata/labelname");
  752. setCSVToNode("/root/main/seqprntdata/labelname", CSV);
  753. nodeList= null;
  754. nodeList= instance1.selectNodes("/root/main/seqprntdata/item");
  755. if((nodeList != null)||(nodeList.length >0 )){
  756. exeReportPreview("RPAHA00403", "XMLSTR" , "" , "" , "false" , "", "", "", "", "fasle");
  757. }
  758. }
  759. function fGetLabeladdr(){
  760. var nodeList = null;
  761. var vGrd = null;
  762. var printFormat = model.getValue("/root/send/printformat");
  763. if(case_T.selected == true) { //발송처리
  764. nodeList =instance1.selectNodes("/root/main/sendcdlst/item[sel='Y']");
  765. vGrd = grd_send;
  766. }else if(case_V.selected == true) { //반송처리
  767. nodeList = instance1.selectNodes("/root/main/sendcdlst/item3[sel='Y']");
  768. vGrd = grd_return;
  769. }else if(case_L.selected == true) { //발송내역
  770. nodeList = instance1.selectNodes("/root/main/sendcdlst/item2[sel='Y']");
  771. vGrd = datagrid1;
  772. }
  773. var rCSV = getNodeListCSV(nodeList);
  774. //alert(rCSV);
  775. model.makeNode("/root/main/seqprntdata/labelname/list/pid");
  776. model.makeNode("/root/main/seqprntdata/labelname/list/hngnm");
  777. model.makeNode("/root/main/seqprntdata/labelname/list/sexage");
  778. model.makeNode("/root/main/seqprntdata/labelname/list/orddd");
  779. model.removenode("/root/main/seqprntdata/labelname/list");
  780. model.setValue("/root/main/seqprntdata/labelname", rCSV);
  781. var CSV = model.getValue("/root/main/seqprntdata/labelname");
  782. model.removenode("/root/main/seqprntdata/labelname");
  783. model.makeNode("/root/main/seqprntdata/labelname");
  784. setCSVToNode("/root/main/seqprntdata/labelname", CSV);
  785. model.refresh();
  786. setParameter("reportprintyn", ""); //출력여부 확인하기
  787. nodeList= null;
  788. nodeList= instance1.selectNodes("/root/main/seqprntdata/item");
  789. if((nodeList != null)||(nodeList.length >0 )){
  790. if(printFormat == "01") {
  791. exeReportPreview("RPAHA00410", "XMLSTR" , "" , "" , "false" , "", "", "", "", "fasle");
  792. }else if(printFormat == "02") {
  793. exeReportPreview("RPAHA00411", "XMLSTR" , "" , "" , "false" , "", "", "", "", "fasle");
  794. }
  795. }
  796. if (getParameter("reportprintyn") == "Y"){ // 출력했으면..
  797. for(var i=1; i <= vGrd.rows; i++) {
  798. if(vGrd.valueMatrix( i , vGrd.colRef("sel")) == "Y" ) {
  799. vGrd.valueMatrix( i , vGrd.colRef("prtyn")) = "Y"
  800. }
  801. }
  802. }
  803. }
  804. // 팝업메뉴 선택 함수
  805. function fCheck(){
  806. var vGrd = null;
  807. if(case_T.selected == true) { //발송처리
  808. vGrd = grd_send;
  809. }else if(case_V.selected == true) { //반송처리
  810. vGrd = grd_return;
  811. }else if(case_L.selected == true) { //발송내역
  812. vGrd = datagrid1;
  813. }
  814. for( var i = 0 ; i <= vGrd.selectedRows ; i++){
  815. vGrd.valueMatrix(vGrd.selectedRow(i), vGrd.colRef("sel")) = "Y" ;
  816. }
  817. }
  818. //팝업메뉴 센택 취소 함수
  819. function fUnCheck(){
  820. var vGrd = null;
  821. if(case_T.selected == true) { //발송처리
  822. vGrd = grd_send;
  823. }else if(case_V.selected == true) { //반송처리
  824. vGrd = grd_return;
  825. }else if(case_L.selected == true) { //발송내역
  826. vGrd = datagrid1;
  827. }
  828. for( var i = 0 ; i <= vGrd.selectedRows ; i++){
  829. vGrd.valueMatrix(vGrd.selectedRow(i), vGrd.colRef("sel")) = "N" ; ;
  830. }
  831. }
  832. ]]>
  833. </script>
  834. </xhtml:head>
  835. <xhtml:body guideline="1,1191;2,783;2,757;2,757;1,1042;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  836. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  837. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:60px; vertical-align:top; ">
  838. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  839. <button id="btn_search" class="btn1_letter2" style="left:1120px; top:15px; width:56px; height:22px; ">
  840. <caption>조회</caption>
  841. <script type="javascript" ev:event="DOMActivate">
  842. <![CDATA[
  843. fGetSendList();
  844. ]]>
  845. </script>
  846. </button>
  847. <line id="line13" class="line_4" style="x1:1100px; y1:5px; x2:1100px; y2:52px; "/>
  848. <button id="button5" class="icon_search" style="left:1020px; top:8px; width:16px; height:16px; ">
  849. <caption/>
  850. <script type="javascript" ev:event="onclick">
  851. <![CDATA[
  852. fSearchPatInfo("SMAHA00800", "pnm", model.getValue("/root/send/healexampid") , "N", "/root/send" ,ipt_healexampid.attribute("ref"), ipt_healexampnm.attribute("ref") );
  853. // if( model.getValue(ipt_healexampid.attribute("ref")) != "" )
  854. // fGetRsltPatList();
  855. ]]>
  856. </script>
  857. </button>
  858. <caption id="caption10" class="search_name" style="left:865px; top:10px; width:95px; height:17px; ">환자검색 :</caption>
  859. <select1 id="cmb_sendflag" ref="/root/send/srcsendflag" class="combo_search" appearance="minimal" style="left:97px; top:8px; width:120px; height:19px; ">
  860. <choices>
  861. <itemset nodeset="/root/init/baseinfo/sendflag/A0121">
  862. <label ref="cdnm"/>
  863. <value ref="cdid"/>
  864. </itemset>
  865. </choices>
  866. </select1>
  867. <caption id="caption7" class="search_name" style="left:5px; top:8px; width:91px; height:17px; ">발송구분 :</caption>
  868. <output id="ipt_healexampnm" ref="/root/send/ipt_pnm" class="output_fix" style="left:1040px; top:8px; width:50px; height:19px; "/>
  869. <input id="ipt_healexampid" ref="/root/send/healexampid" class="input_search" style="left:955px; top:8px; width:60px; height:19px; ">
  870. <script type="javascript" ev:event="onkeypress">
  871. <![CDATA[
  872. // if( event.keyCode != 13) return ;
  873. // fGetPatInfo2(2);
  874. ]]>
  875. </script>
  876. </input>
  877. <caption id="caption3" style="left:760px; top:8px; width:15px; height:20px; ">~</caption>
  878. <caption id="caption4" class="search_name" style="left:545px; top:8px; width:125px; height:17px; ">예약/건진일자 :</caption>
  879. <input id="ipt_rsvfrdd" ref="/root/send/rsvfrdd" class="input_s_essential" inputtype="date" style="left:665px; top:8px; width:90px; height:19px; "/>
  880. <input id="ipt_rsvtodd" ref="/root/send/rsvtodd" class="input_s_essential" inputtype="date" style="left:775px; top:8px; width:90px; height:19px; "/>
  881. <caption id="caption5" class="search_name" style="left:5px; top:35px; width:112px; height:17px; ">결과상담구분 :</caption>
  882. <caption id="caption31" class="search_name" style="left:475px; top:35px; width:97px; height:17px; ">상태구분 :</caption>
  883. <caption id="caption8" class="search_name" style="left:220px; top:8px; width:91px; height:17px; ">건진구분 :</caption>
  884. <select1 id="cmb_healexamflag" ref="/root/send/srchhealexamdetlflag" class="combo_search" disabled="true" appearance="minimal" style="left:315px; top:8px; width:94px; height:19px; ">
  885. <choices>
  886. <itemset nodeset="/root/init/baseinfo/healexamdetlflag/A0069">
  887. <label ref="cdnm"/>
  888. <value ref="cdid"/>
  889. </itemset>
  890. </choices>
  891. <script type="javascript" ev:event="xforms-select">
  892. <![CDATA[
  893. //fSetHidden();
  894. ]]>
  895. </script>
  896. </select1>
  897. <caption id="caption19" class="search_name" visibility="visible" style="left:5px; top:35px; width:112px; height:17px; ">국가구분 :</caption>
  898. <select id="combo1" ref="/root/send/rsltcnstflag" overflow="visible" appearance="full" cols="4" style="left:120px; top:35px; width:363px; height:20px; border-style:none; ">
  899. <choices>
  900. <itemset nodeset="/root/init/baseinfo/rsltcnstflaglst/S080">
  901. <label ref="cdnm"/>
  902. <value ref="cdid"/>
  903. </itemset>
  904. </choices>
  905. </select>
  906. <select id="checkbox1" ref="/root/send/statflag" overflow="visible" appearance="full" cols="9" style="left:565px; top:35px; width:505px; height:20px; border-style:none; ">
  907. <choices>
  908. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  909. <label ref="cdnm"/>
  910. <value ref="cdid"/>
  911. </itemset>
  912. </choices>
  913. </select>
  914. <select id="cmb_brthareacnts" ref="/root/send/brthareacnts" overflow="visible" appearance="full" cols="6" style="left:120px; top:34px; width:360px; height:20px; border-style:none; ">
  915. <choices>
  916. <itemset nodeset="/root/init/baseinfo/nationlst/A0465">
  917. <label ref="cdnm"/>
  918. <value ref="cdid"/>
  919. </itemset>
  920. </choices>
  921. </select>
  922. <caption id="caption12" class="search_name" style="left:415px; top:8px; width:91px; height:17px; ">장소 :</caption>
  923. <select1 id="cmb_placeflag" ref="/root/send/srchhealexamplacecd" class="combo_default" appearance="minimal" style="left:480px; top:8px; width:60px; height:19px; ">
  924. <choices>
  925. <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
  926. <label ref="cdnm"/>
  927. <value ref="cdid"/>
  928. </itemset>
  929. </choices>
  930. </select1>
  931. <select1 id="cmb_datelist" ref="/root/send/srchdatelist" appearance="minimal" style="left:564px; top:8px; width:92px; height:19px; ">
  932. <choices>
  933. <item>
  934. <label>예약/건진일</label>
  935. <value>1</value>
  936. </item>
  937. <item>
  938. <label>발송일자</label>
  939. <value>2</value>
  940. </item>
  941. </choices>
  942. </select1>
  943. </group>
  944. <switch id="swt_send" style="left:0px; top:100px; width:1194px; height:644px; border-color:#c7a3cf; border-style:solid; ">
  945. <case id="case_T" selected="true">
  946. <caption id="caption1" class="tit_2" style="left:11px; top:8px; width:95px; height:13px; ">발송처리정보</caption>
  947. <line id="line1" class="line_1" style="x1:6px; y1:23px; x2:1185px; y2:23px; "/>
  948. <input id="ipt_senddd" ref="/root/send/batchset/senddd" class="input_essential" inputtype="date" style="left:90px; top:29px; width:108px; height:19px; "/>
  949. <select1 id="rdo_sendyn" ref="/root/send/batchset/sendyn" appearance="full" cols="2" rows="1" overflow="visible" style="left:287px; top:30px; width:63px; height:20px; border-style:none; ">
  950. <choices>
  951. <item>
  952. <label>Y</label>
  953. <value>Y</value>
  954. </item>
  955. <item>
  956. <label>N</label>
  957. <value>N</value>
  958. </item>
  959. </choices>
  960. <script type="javascript" ev:event="onclick">
  961. <![CDATA[
  962. ]]>
  963. </script>
  964. </select1>
  965. <caption id="caption15" class="cell_1" style="left:6px; top:28px; width:81px; height:23px; vertical-align:middle; ">발송일자</caption>
  966. <caption id="caption17" class="cell_1" style="left:201px; top:28px; width:81px; height:23px; vertical-align:middle; ">발송처리Y/N</caption>
  967. <datagrid id="grd_send" nodeset="/root/main/sendcdlst/item" autoresize="false" caption="선&#xA;택^발송구분^발송유무^발송일자^발송지^등록번호^성명^주민번호^휴대폰번호^우편번호^주소^사업체^상태^예약일자^결과일자^비고^출력유무^건진구분^기관코드^testcd^pkgcd|선&#xA;택^발송구분^발송유무^발송일자^발송지^등록번호^성명^주민번호^휴대폰번호^우편번호^주소^사업체^상태^예약일자^결과일자^비고^출력유무^건진구분^기관코드^testcd^pkgcd" colsep="^" colwidth="35, 100, 31, 106, 75, 73, 75, 95, 80, 60, 160, 90, 50, 80, 80, 100, 35, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycol" rowheader="seq" rowsep="|" style="left:6px; top:52px; width:1179px; height:590px; ">
  968. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  969. <col ref="sendflag" type="combo">
  970. <choices>
  971. <itemset nodeset="/root/init/baseinfo/sendflag/A0121">
  972. <label ref="cdnm"/>
  973. <value ref="cdid"/>
  974. </itemset>
  975. </choices>
  976. </col>
  977. <col ref="sendyn" type="checkbox" visibility="hidden"/>
  978. <col ref="senddd" type="inputdate"/>
  979. <col ref="sendaddrflag" type="combo" visibility="hidden">
  980. <choices>
  981. <item>
  982. <label>자택</label>
  983. <value>1</value>
  984. </item>
  985. <item>
  986. <label>직장</label>
  987. <value>2</value>
  988. </item>
  989. </choices>
  990. </col>
  991. <col ref="pid"/>
  992. <col ref="hngnm"/>
  993. <col ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
  994. <col ref="mpphontel"/>
  995. <col ref="zipcode" format="999-999"/>
  996. <col ref="detladdr"/>
  997. <col ref="cmpycd"/>
  998. <col disabled="true" ref="statflag" type="combo">
  999. <choices>
  1000. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  1001. <label ref="cdnm"/>
  1002. <value ref="cdid"/>
  1003. </itemset>
  1004. </choices>
  1005. </col>
  1006. <col ref="hopedd" format="yyyy-mm-dd" style="text-align:center; "/>
  1007. <col ref="judgdd"/>
  1008. <col ref="remcnts"/>
  1009. <col checkvalue="Y,N" ref="prtyn" type="checkbox"/>
  1010. <col ref="healexamflag" visibility="hidden"/>
  1011. <col ref="instcd" visibility="hidden"/>
  1012. <col ref="orddd" visibility="hidden"/>
  1013. <col ref="rsrvno" visibility="hidden"/>
  1014. <col ref="rsrvdd" visibility="hidden"/>
  1015. <col ref="address" visibility="hidden"/>
  1016. <col ref="sexage" visibility="hidden"/>
  1017. <col ref="testcd" visibility="hidden"/>
  1018. <col ref="pkgcd" visibility="hidden"/>
  1019. <script type="javascript" ev:event="onaftersort">
  1020. <![CDATA[
  1021. grd_send.gridToInstance();
  1022. ]]>
  1023. </script>
  1024. <script type="javascript" ev:event="onmousedown">
  1025. <![CDATA[
  1026. if(event.button == 3) {
  1027. if(isDataCell()) {
  1028. setPopupMenu("grd_send", false, "/root/hidden/popupmenu/grid/item", "name", "func");
  1029. }
  1030. }
  1031. ]]>
  1032. </script>
  1033. <script type="javascript" ev:event="DOMFocusOut">
  1034. <![CDATA[
  1035. window.setPopupMenu(false);
  1036. ]]>
  1037. </script>
  1038. </datagrid>
  1039. <select1 id="rdo_sendaddr" ref="/root/send/batchset/sendaddrflag" appearance="full" cols="2" rows="1" overflow="visible" style="left:439px; top:30px; width:93px; height:20px; border-style:none; ">
  1040. <choices>
  1041. <item>
  1042. <label>자택</label>
  1043. <value>1</value>
  1044. </item>
  1045. <item>
  1046. <label>직장</label>
  1047. <value>2</value>
  1048. </item>
  1049. </choices>
  1050. </select1>
  1051. <button id="btn_betsave" class="btn2_letter4" style="left:539px; top:29px; width:64px; height:19px; ">
  1052. <caption>일괄적용</caption>
  1053. <script type="javascript" ev:event="DOMActivate">
  1054. <![CDATA[
  1055. fBatchSet();
  1056. ]]>
  1057. </script>
  1058. </button>
  1059. <caption id="caption2" class="cell_1" style="left:352px; top:28px; width:81px; height:23px; vertical-align:middle; ">발송주소구분</caption>
  1060. <line id="line6" class="line_3" style="x1:6px; y1:50px; x2:1185px; y2:50px; "/>
  1061. </case>
  1062. <case id="case_V">
  1063. <caption id="caption6" class="tit_2" style="left:11px; top:8px; width:95px; height:13px; ">반송처리정보</caption>
  1064. <datagrid id="grd_return" nodeset="/root/main/sendcdlst/item3" autoresize="false" caption="선택^발송구분^발송유무^발송일자^등록번호^성명^주민번호^사업체^상태^예약일자^결과일자^비고^출력유무^caption1^caption2^caption3|선택^발송구분^발송유무^발송일자^등록번호^성명^주민번호^사업체^상태^예약일자^결과일자^비고^출력유무^caption1^caption2^caption3" colsep="^" colwidth="30, 90, 30, 85, 80, 80, 100, 80, 60, 80, 80, 300, 30, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="label" style="left:6px; top:28px; width:1179px; height:610px; ">
  1065. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  1066. <col ref="sendflag" type="combo">
  1067. <choices>
  1068. <itemset nodeset="/root/init/baseinfo/sendflag/A0121">
  1069. <label ref="cdnm"/>
  1070. <value ref="cdid"/>
  1071. </itemset>
  1072. </choices>
  1073. </col>
  1074. <col ref="sendyn" type="checkbox" visibility="hidden"/>
  1075. <col ref="senddd" type="inputdate"/>
  1076. <col ref="pid"/>
  1077. <col ref="hngnm"/>
  1078. <col ref="rrgstno"/>
  1079. <col ref="cmpycd"/>
  1080. <col disabled="true" ref="statflag" type="combo">
  1081. <choices>
  1082. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  1083. <label ref="cdnm"/>
  1084. <value ref="cdid"/>
  1085. </itemset>
  1086. </choices>
  1087. </col>
  1088. <col ref="hopedd" format="yyyy-mm-dd"/>
  1089. <col ref="judgdd" format="yyyy-mm-dd"/>
  1090. <col ref="remcnts"/>
  1091. <col checkvalue="Y,N" disabled="true" ref="prtyn" type="checkbox"/>
  1092. <col ref="rsrvno" visibility="hidden"/>
  1093. <col ref="healexamflag" visibility="hidden"/>
  1094. <col ref="instcd" visibility="hidden"/>
  1095. <col ref="sendaddrflag" visibility="hidden"/>
  1096. <col ref="rsrvdd" visibility="hidden"/>
  1097. <col ref="detladdr" visibility="hidden"/>
  1098. <col ref="address" visibility="hidden"/>
  1099. <col ref="zipcode" visibility="hidden"/>
  1100. <col ref="sexage" visibility="hidden"/>
  1101. <script type="javascript" ev:event="onaftersort">
  1102. <![CDATA[
  1103. grd_return.gridToInstance();
  1104. ]]>
  1105. </script>
  1106. <script type="javascript" ev:event="onmousedown">
  1107. <![CDATA[
  1108. if(event.button == 3) {
  1109. if(isDataCell()) {
  1110. setPopupMenu("grd_return", false, "/root/hidden/popupmenu/grid/item", "name", "func");
  1111. }
  1112. }
  1113. ]]>
  1114. </script>
  1115. <script type="javascript" ev:event="DOMFocusOut">
  1116. <![CDATA[
  1117. window.setPopupMenu(false);
  1118. ]]>
  1119. </script>
  1120. </datagrid>
  1121. <line id="line2" class="line_1" style="x1:6px; y1:23px; x2:1185px; y2:23px; "/>
  1122. </case>
  1123. <case id="case_L">
  1124. <caption id="caption9" class="tit_2" style="left:11px; top:8px; width:95px; height:13px; ">발송내역정보</caption>
  1125. <datagrid id="datagrid1" nodeset="/root/main/sendcdlst/item2" autoresize="false" caption="선택^발송구분^발송유무^발송일자^등록번호^성명^주민번호^사업체^상태^예약일자^결과일자^휴대폰번호^우편번호^주소^비고^출력유무^caption1^caption2^caption3|선택^발송구분^발송유무^발송일자^등록번호^성명^주민번호^사업체^상태^예약일자^결과일자^휴대폰번호^우편번호^주소^비고^출력유무^caption1^caption2^caption3" colsep="^" colwidth="30, 100, 30, 90, 80, 80, 100, 100, 60, 80, 80, 80, 60, 90, 110, 30, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" extendlastcol="scroll" frozencols="12" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="label" style="left:6px; top:28px; width:1179px; height:610px; ">
  1126. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  1127. <col ref="sendflag" type="combo">
  1128. <choices>
  1129. <itemset nodeset="/root/init/baseinfo/sendflag/A0121">
  1130. <label ref="cdnm"/>
  1131. <value ref="cdid"/>
  1132. </itemset>
  1133. </choices>
  1134. </col>
  1135. <col ref="sendyn" type="checkbox" visibility="hidden"/>
  1136. <col ref="senddd" type="inputdate"/>
  1137. <col ref="pid"/>
  1138. <col ref="hngnm"/>
  1139. <col ref="rrgstno"/>
  1140. <col ref="cmpycd"/>
  1141. <col disabled="true" ref="statflag" type="combo">
  1142. <choices>
  1143. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  1144. <label ref="cdnm"/>
  1145. <value ref="cdid"/>
  1146. </itemset>
  1147. </choices>
  1148. </col>
  1149. <col ref="hopedd" format="yyyy-mm-dd"/>
  1150. <col ref="judgdd" format="yyyy-mm-dd"/>
  1151. <col ref="mpphontel"/>
  1152. <col ref="zipcode" format="999-999"/>
  1153. <col ref="detladdr"/>
  1154. <col ref="remcnts"/>
  1155. <col checkvalue="Y,N" disabled="true" ref="prtyn" type="checkbox"/>
  1156. <col ref="rsrvno" visibility="hidden"/>
  1157. <col ref="healexamflag" visibility="hidden"/>
  1158. <col ref="instcd" visibility="hidden"/>
  1159. <col ref="sendaddrflag" visibility="hidden"/>
  1160. <col ref="rsrvdd" visibility="hidden"/>
  1161. <col ref="address" visibility="hidden"/>
  1162. <col ref="sexage" visibility="hidden"/>
  1163. <script type="javascript" ev:event="onaftersort">
  1164. <![CDATA[
  1165. datagrid1.gridToInstance();
  1166. ]]>
  1167. </script>
  1168. <script type="javascript" ev:event="onmousedown">
  1169. <![CDATA[
  1170. if(event.button == 3) {
  1171. if(isDataCell()) {
  1172. setPopupMenu("datagrid1", false, "/root/hidden/popupmenu/grid/item", "name", "func");
  1173. }
  1174. }
  1175. ]]>
  1176. </script>
  1177. <script type="javascript" ev:event="DOMFocusOut">
  1178. <![CDATA[
  1179. window.setPopupMenu(false);
  1180. ]]>
  1181. </script>
  1182. </datagrid>
  1183. <line id="line3" class="line_1" style="x1:6px; y1:23px; x2:1185px; y2:23px; "/>
  1184. </case>
  1185. </switch>
  1186. <button id="btn_case_t" class="btn_sw" group="tab" selected="true" style="left:0px; top:79px; width:69px; height:22px; ">
  1187. <caption>발송대상</caption>
  1188. <toggle case="case_T" ev:event="onclick"/>
  1189. <script type="javascript" ev:event="DOMActivate">
  1190. <![CDATA[
  1191. button11.disabled = false;
  1192. button15.disabled = true;
  1193. button16.disabled = true;
  1194. cmb_datelist.visible = false;
  1195. ]]>
  1196. </script>
  1197. </button>
  1198. <button id="btn_case_l" class="btn_sw" group="tab" style="left:68px; top:79px; width:69px; height:22px; ">
  1199. <caption>발송내역</caption>
  1200. <toggle case="case_L" ev:event="onclick"/>
  1201. <script type="javascript" ev:event="DOMActivate">
  1202. <![CDATA[
  1203. button11.disabled = true;
  1204. button15.disabled = false;
  1205. button16.disabled = true;
  1206. cmb_datelist.visible = true;
  1207. cmb_datelist.value = '2'
  1208. ]]>
  1209. </script>
  1210. </button>
  1211. <button id="btn_case_v" class="btn_sw" group="tab" style="left:138px; top:79px; width:69px; height:22px; ">
  1212. <caption>반송내역</caption>
  1213. <toggle case="case_V" ev:event="onclick"/>
  1214. <script type="javascript" ev:event="DOMActivate">
  1215. <![CDATA[
  1216. button11.disabled = true;
  1217. button15.disabled = true;
  1218. button16.disabled = false;
  1219. cmb_datelist.visible = false;
  1220. ]]>
  1221. </script>
  1222. </button>
  1223. </group>
  1224. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  1225. <button id="button9" class="btn4_letter2" visibility="hidden" style="left:1138px; top:5px; width:56px; height:22px; ">
  1226. <caption>취소</caption>
  1227. </button>
  1228. <button id="button15" class="btn4_letter4" style="left:980px; top:5px; width:80px; height:22px; ">
  1229. <caption>반송처리</caption>
  1230. <script type="javascript" ev:event="DOMActivate">
  1231. <![CDATA[
  1232. if(fSaveSendRetList()) {
  1233. fGetSendList();
  1234. }
  1235. ]]>
  1236. </script>
  1237. </button>
  1238. <button id="button16" class="btn4_letter3" style="left:1065px; top:5px; width:68px; height:22px; ">
  1239. <caption>재발송</caption>
  1240. <script type="javascript" ev:event="DOMActivate">
  1241. <![CDATA[
  1242. if(fSaveReSendList()) {
  1243. fGetSendList();
  1244. }
  1245. ]]>
  1246. </script>
  1247. </button>
  1248. <button id="button11" class="btn4_letter2" style="left:1135px; top:5px; width:56px; height:22px; ">
  1249. <caption>저장</caption>
  1250. <script type="javascript" ev:event="DOMActivate">
  1251. <![CDATA[
  1252. if(fSaveSendList()) {
  1253. fGetSendList();
  1254. }
  1255. ]]>
  1256. </script>
  1257. </button>
  1258. <button id="button2" class="btn6_letter4" style="left:82px; top:5px; width:80px; height:22px; ">
  1259. <caption>주소출력</caption>
  1260. <script type="javascript" ev:event="onclick">
  1261. <![CDATA[
  1262. fGetLabeladdr();
  1263. if(swt_send.selectedIndex == '0'){
  1264. if(fSaveSendList()){
  1265. fGetSendList();
  1266. }
  1267. }
  1268. ]]>
  1269. </script>
  1270. </button>
  1271. <button id="button91" class="btn6_letter4" style="left:0px; top:5px; width:80px; height:22px; ">
  1272. <caption>라벨출력</caption>
  1273. <script type="javascript" ev:event="DOMActivate">
  1274. <![CDATA[
  1275. fGetLabelName();
  1276. ]]>
  1277. </script>
  1278. </button>
  1279. <select1 id="combo2" ref="/root/send/printformat" appearance="minimal" style="left:175px; top:5px; width:100px; height:19px; ">
  1280. <choices>
  1281. <item>
  1282. <label>2x5</label>
  1283. <value>01</value>
  1284. </item>
  1285. <item>
  1286. <label>2x8</label>
  1287. <value>02</value>
  1288. </item>
  1289. </choices>
  1290. </select1>
  1291. <button id="button1" class="btn6_letter4" style="left:895px; top:5px; width:80px; height:22px; ">
  1292. <caption>엑셀저장</caption>
  1293. <script type="javascript" ev:event="onclick">
  1294. <![CDATA[
  1295. if(case_T.selected == true) { //발송대상
  1296. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1297. grd_send.saveExcel(fileName, "SheetName", true, true, "", "", false);
  1298. }else if(case_L.selected == true) { //발송내역
  1299. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1300. datagrid1.saveExcel(fileName, "SheetName", true, true, "", "", false);
  1301. }else if(case_V.selected == true) { //반송내역
  1302. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1303. grd_return.saveExcel(fileName, "SheetName", true, true, "", "", false);
  1304. }
  1305. ]]>
  1306. </script>
  1307. </button>
  1308. </group>
  1309. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  1310. <caption id="caption11" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">발송관리</caption>
  1311. </group>
  1312. </xhtml:body>
  1313. </xhtml:html>