SMAYA00900_교리수행관리.xrw 61 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393
  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. <cond_memb>
  11. <doctrinecd/>
  12. <doctrinetrgtmanposcd/>
  13. <educstatflagcd/>
  14. <statflagcd/>
  15. <statfromdd/>
  16. <stattodd/>
  17. <trgtmannm/>
  18. <perchgr/>
  19. </cond_memb>
  20. <patinfo>
  21. <patinfolist/>
  22. </patinfo>
  23. <popupendflag/>
  24. <userpopupinfo>
  25. <param/>
  26. <flag/>
  27. <searchitem/>
  28. </userpopupinfo>
  29. <item>
  30. <flag/>
  31. <searchitem/>
  32. </item>
  33. <tempuserinfo/>
  34. <trgtmanrgst>
  35. <trgtmanrgstinfo>
  36. <doctrinecd/>
  37. <doctrinetrgtmanposcd/>
  38. <rgstdd_b/>
  39. <rgstdd/>
  40. <seqno/>
  41. <trgtmannm/>
  42. <trgtmanid/>
  43. <brthdatedd/>
  44. <mpphontel/>
  45. <emailaddr/>
  46. <depttel/>
  47. <posdept/>
  48. <perchgr/>
  49. <rem/>
  50. <statflagcd/>
  51. <statdd/>
  52. <baptnm/>
  53. <parishchrchnm/>
  54. <status/>
  55. <rgstno/>
  56. </trgtmanrgstinfo>
  57. </trgtmanrgst>
  58. <attdabsnrgst>
  59. <attdabsnrgstinfo>
  60. <attdncdd/>
  61. <lactrnm/>
  62. <lactrid/>
  63. <outer_chk/>
  64. <doctrineprogrs/>
  65. <trgtmanid/>
  66. <rgstdd/>
  67. <status/>
  68. </attdabsnrgstinfo>
  69. </attdabsnrgst>
  70. <attdncchkflag/>
  71. <trgtmanlist>
  72. <trgtmanlistinfo>
  73. <attdncsave/>
  74. <doctrinenm/>
  75. <perchgr/>
  76. <doctrinetrgtmanposnm/>
  77. <trgtmannm/>
  78. <baptnm/>
  79. <parishchrchnm/>
  80. <statflagnm/>
  81. <statdd/>
  82. <attdncdd/>
  83. <brthdatedd/>
  84. <mpphontel/>
  85. <depttel/>
  86. <posdept/>
  87. <emailaddr/>
  88. <rem/>
  89. <trgtmanid/>
  90. <rgstdd/>
  91. <seqno/>
  92. <doctrinecd/>
  93. <doctrinetrgtmanposcd/>
  94. <statflagcd/>
  95. <lactrnm/>
  96. <lactrid/>
  97. <doctrineprogrs/>
  98. <outer_chk/>
  99. <attdncdd_a/>
  100. <lactrnm_a/>
  101. <lactrid_a/>
  102. <doctrineprogrs_a/>
  103. <status/>
  104. <attdncchkflag/>
  105. <chkflag/>
  106. <rgstno/>
  107. <doctrinergstdd/>
  108. </trgtmanlistinfo>
  109. </trgtmanlist>
  110. <emplinfo>
  111. <empllist>
  112. <emplnm/>
  113. <baptnm/>
  114. <brthdatedd/>
  115. <mpphontel/>
  116. <depttel/>
  117. <posdept/>
  118. <emailaddr/>
  119. <emplid/>
  120. <rgstno/>
  121. </empllist>
  122. </emplinfo>
  123. </main>
  124. <send>
  125. <reqdata/>
  126. <savedata/>
  127. <popdata/>
  128. <conslrpastor/>
  129. </send>
  130. <init>
  131. <comcodelist>
  132. <doctrinecd_cmblist/>
  133. <doctrinetrgtmanposcd_cmblist/>
  134. <doctrinetrgtmanposcd_all_cmblist>
  135. </doctrinetrgtmanposcd_all_cmblist>
  136. <statflagcd_cmblist/>
  137. <statflagcd_kindcmblist>
  138. <A0001A0213>
  139. </A0001A0213>
  140. </statflagcd_kindcmblist>
  141. <educstatflagcd_cmblist/>
  142. </comcodelist>
  143. </init>
  144. <hidden>
  145. <errmsg/>
  146. <conslrpastor/>
  147. </hidden>
  148. <temp/>
  149. </root>
  150. </instance>
  151. <script type="javascript" ev:event="xforms-ready">
  152. <![CDATA[
  153. fInit();
  154. ]]>
  155. </script>
  156. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  157. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  158. <submission id="TRAYA01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/emplinfo"/>
  159. <submission id="TRAYA00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/trgtmanlist"/>
  160. <submission id="TRAYA00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/endstatlist"/>
  161. <submission id="TRAYA00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/trgtmanlist"/>
  162. <submission id="TXAYA00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  163. <submission id="TXAYA00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  164. <submission id="TXAYA00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/hidden/errmsg"/>
  165. <submission id="TRAYA01303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/conslrpastor" resultref="/root/hidden/conslrpastor"/>
  166. </model>
  167. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  168. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  169. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  170. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  171. <script type="javascript">
  172. <![CDATA[
  173. //화면 오픈시
  174. function fInit() {
  175. //그리드 초기화
  176. model.removeNodeset("/root/main/trgtmanlist/trgtmanlistinfo");
  177. //출석 저장 체크박스 설정
  178. grd_trgtmanlist.fixedcellcheckbox(0,1) = true;
  179. //조회조건 콤보리스트 셋팅(교리명, 대상자소속, 상태구분)
  180. zbcfGetCodeList(new Array("A0211", "A0215", "A0213"), new Array("/root/init/comcodelist/doctrinecd_cmblist", "/root/init/comcodelist/educstatflagcd_cmblist", "/root/init/comcodelist/statflagcd_cmblist"), true);
  181. //조회부 콤보 셋팅(상태구분)
  182. zbcfGetKindCodeList(
  183. new Array("A0001", "A0008", "A0008"), //업무규칙
  184. new Array("A0213", "A0212", "A0212"), //코드군
  185. new Array("/root/init/comcodelist/statflagcd_kindcmblist", "/root/init/comcodelist/doctrinetrgtmanposcd_cmblist", "/root/init/comcodelist/doctrinetrgtmanposcd_all_cmblist"), //노드
  186. true, //minimum : true TRZBC00105
  187. new Array("dispseq", "dispseq", "dispseq"), //sorting 항목
  188. new Array("asc", "asc", "asc")
  189. );
  190. addComboItem("cmb_doctrinetrgtmanposcd1", "전체", "", "above");
  191. addComboItem("cmb_statflagcd1", "전체", "S1", "above");
  192. //등록일자를 오늘 기준으로 세팅
  193. var CurrentDate = getCurrentDate();
  194. cmb_doctrinecd.select(0);
  195. cmb_doctrinetrgtmanposcd.select(0);
  196. cmb_statflagcd.select(0);
  197. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/rgstdd", CurrentDate);
  198. //model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/statdd", CurrentDate);
  199. // 조회 상태일자 셋팅
  200. model.setValue("/root/main/cond_memb/statfromdd", CurrentDate.substr(0, 6) + "01");
  201. model.setValue("/root/main/cond_memb/stattodd", CurrentDate);
  202. rdo_doctrinecd.select(0);
  203. rdo_educstatflagcd.select(0);
  204. // 출석일자 셋팅
  205. model.setValue("/root/main/attdabsnrgst/attdabsnrgstinfo/attdncdd", CurrentDate);
  206. //저장버튼 클릭시 status 상태 설정
  207. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/status",'i');
  208. model.refresh();
  209. }
  210. //교육상태 콤보 선택시
  211. function fSelectEducStatFlag() {
  212. var educstatflagcd = model.getValue("/root/main/cond_memb/educstatflagcd");
  213. //alert(educstatflagcd);
  214. if (educstatflagcd == 'ES1') { //교육중
  215. cmb_statflagcd1.disabled = true;
  216. ipt_statfromdd.disabled = true;
  217. ipt_stattodd.disabled = true;
  218. cmb_statflagcd1.value = "";
  219. } else if (educstatflagcd == 'ES2') { //교육종결
  220. cmb_statflagcd1.disabled = false;
  221. ipt_statfromdd.disabled = false;
  222. ipt_stattodd.disabled = false;
  223. cmb_statflagcd1.select(0);
  224. }
  225. }
  226. //교리대상자 리스트 조회버튼 클릭시
  227. function fTrgtManRef() {
  228. model.removeNodeset("/root/send/reqdata");
  229. model.makeNode("/root/send/reqdata");
  230. model.copyNode("/root/send/reqdata","/root/main/cond_memb");
  231. // reqGetDoctrineTrgtManListInfo
  232. // getDoctrineTrgtManListInfo
  233. if (submit("TRAYA00901", false)) {
  234. grd_trgtmanlist.fixedcellischeck(0,1) = false;
  235. //체크여부확인하기 위해 copy
  236. model.makeNode("/root/temp/main/trgtmanlist");
  237. model.copyNode("/root/temp/main/trgtmanlist","/root/main/trgtmanlist");
  238. }
  239. // model.setValue("/root/main/attdncchkflag",'AttdncChkIns');
  240. //model.refresh();
  241. }
  242. //대상자 등록시 필수 저장여부 체크
  243. function fCheckMandatoryInput() {
  244. if (model.getValue("/root/main/trgtmanrgst/trgtmanrgstinfo/doctrinecd") == "") {
  245. messageBox("교리명을 ","C002");
  246. model.setFocus("cmb_doctrinecd");
  247. return false;
  248. }
  249. if (model.getValue("/root/main/trgtmanrgst/trgtmanrgstinfo/doctrinetrgtmanposcd") == "") {
  250. messageBox("대상자 소속을 ","C002");
  251. model.setFocus("cmb_doctrinetrgtmanposcd");
  252. return false;
  253. }
  254. if (model.getValue("/root/main/trgtmanrgst/trgtmanrgstinfo/trgtmannm") == "") {
  255. messageBox("대상자명은 ","I003");
  256. model.setFocus("ipt_trgtmannm");
  257. return false;
  258. }
  259. if (model.getValue("/root/main/trgtmanrgst/trgtmanrgstinfo/rgstdd") == "") {
  260. messageBox("등록일자는 ","I003");
  261. model.setFocus("ipt_rgstdd");
  262. return false;
  263. }
  264. /*
  265. if (model.getValue("/root/main/trgtmanrgst/trgtmanrgstinfo/trgtmanid") == "" ) {
  266. messageBox("대상자번호(등록번호, 사번) ","I003");
  267. return false;
  268. }
  269. */
  270. return true;
  271. }
  272. //대상자 소속 콤보 선택시
  273. function fSelectTrgtManPos() {
  274. var trgtmanposcd = model.getValue("/root/main/trgtmanrgst/trgtmanrgstinfo/doctrinetrgtmanposcd");
  275. /* 대상자소속 코드 DT1 : 환자
  276. DT2 : 보호자
  277. DT3 : 사원
  278. DT4 : 기타
  279. */
  280. if (trgtmanposcd == 'DT1' || trgtmanposcd == 'DT3') {
  281. ipt_trgtmannm.disabled = true;
  282. ipt_trgtmanid.disabled = true;
  283. ipt_brthdatedd.disabled = true;
  284. ipt_mpphontel.disabled = false;
  285. ipt_emailaddr.disabled = false;
  286. btn_popup.disabled = false;
  287. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/trgtmannm", "");
  288. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/trgtmanid", "");
  289. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/brthdatedd", "");
  290. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/mpphontel", "");
  291. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/emailaddr", "");
  292. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/depttel", "");
  293. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/posdept", "");
  294. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/rgstno", "");
  295. } else if (trgtmanposcd == 'DT2' || trgtmanposcd == 'DT4') {
  296. ipt_trgtmannm.disabled = false;
  297. ipt_trgtmanid.disabled = true;
  298. ipt_brthdatedd.disabled = false;
  299. ipt_mpphontel.disabled = false;
  300. ipt_emailaddr.disabled = false;
  301. btn_popup.disabled = true;
  302. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/trgtmannm", "");
  303. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/trgtmanid", "");
  304. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/brthdatedd", "");
  305. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/mpphontel", "");
  306. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/emailaddr", "");
  307. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/depttel", "");
  308. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/posdept", "");
  309. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/rgstno", "");
  310. }
  311. }
  312. //교리대상자 등록 부분의 초기화버튼 클릭시
  313. function fRgstReset() {
  314. /*
  315. // model.resetInstanceNode("/root/main/trgtmanrgst/trgtmanrgstinfo/doctrinetrgtmanposcd");
  316. model.resetInstanceNode("/root/main/trgtmanrgst/trgtmanrgstinfo/rgstdd_b");
  317. // model.resetInstanceNode("/root/main/trgtmanrgst/trgtmanrgstinfo/rgstdd");
  318. model.resetInstanceNode("/root/main/trgtmanrgst/trgtmanrgstinfo/trgtmannm");
  319. model.resetInstanceNode("/root/main/trgtmanrgst/trgtmanrgstinfo/trgtmanid");
  320. model.resetInstanceNode("/root/main/trgtmanrgst/trgtmanrgstinfo/brthdatedd");
  321. model.resetInstanceNode("/root/main/trgtmanrgst/trgtmanrgstinfo/mpphontel");
  322. model.resetInstanceNode("/root/main/trgtmanrgst/trgtmanrgstinfo/emailaddr");
  323. model.resetInstanceNode("/root/main/trgtmanrgst/trgtmanrgstinfo/depttel");
  324. model.resetInstanceNode("/root/main/trgtmanrgst/trgtmanrgstinfo/posdept");
  325. model.resetInstanceNode("/root/main/trgtmanrgst/trgtmanrgstinfo/rem");
  326. model.resetInstanceNode("/root/main/trgtmanrgst/trgtmanrgstinfo/status");
  327. */
  328. model.resetInstanceNode("/root/main/trgtmanrgst/trgtmanrgstinfo");
  329. //alert(rdo_doctrinecd.value);
  330. //cmb_doctrinecd.select(0);
  331. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/doctrinecd", rdo_doctrinecd.value);
  332. //cmb_doctrinecd.value = rdo_doctrinecd.value;
  333. cmb_doctrinetrgtmanposcd.select(0);
  334. cmb_doctrinecd.disabled = false;
  335. cmb_doctrinetrgtmanposcd.disabled = false;
  336. // 등록일자
  337. cmb_doctrinecd.disabled = false;
  338. var CurrentDate = getCurrentDate();
  339. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/rgstdd", CurrentDate);
  340. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/status",'i');
  341. ipt_trgtmanid.disabled = false;
  342. ipt_rgstdd.disabled = false;
  343. //model.resetInstanceNode("/root/main/attdabsnrgst/attdabsnrgstinfo");
  344. cmb_statflagcd.select(0);
  345. cmb_statflagcd.disabled = false;
  346. ipt_statdd.disabled = false;
  347. //model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/statdd", CurrentDate);
  348. model.setFocus("ipt_trgtmannm"); //대상자명으로 포커스
  349. //model.refresh();
  350. fSelectTrgtManPos();
  351. }
  352. //교리대상자등록 부분의 저장버튼 클릭시
  353. function fSaveTrgtManRgst() {
  354. var status = model.getValue("/root/main/trgtmanrgst/trgtmanrgstinfo/status");
  355. model.removeNodeset("/root/send/savedata");
  356. model.makeNode("/root/send/savedata");
  357. if (status == 'i') { //저장
  358. model.copyNode("/root/send/savedata","/root/main/trgtmanrgst");
  359. // reqExeDoctrineTrgtManRgstInfo
  360. if (submit("TXAYA00901", false) == true)
  361. {
  362. messageBox("저장이","I002");
  363. //model.close();
  364. fTrgtManRef();
  365. fRgstReset();
  366. }
  367. //freTrgtManRef();
  368. } else if (status == 'u') { //수정
  369. //변경여부체크
  370. if (instance1.selectSingleNode("/root/temp/main/trgtmanrgst").xml == instance1.selectSingleNode("/root/main/trgtmanrgst").xml) {
  371. messageBox("변경된 데이터가 ","I004");
  372. return;
  373. } else {
  374. model.copyNode("/root/send/savedata","/root/main/trgtmanrgst");
  375. submit("TXAYA00901");
  376. fTrgtManRef();
  377. fRgstReset();
  378. //freTrgtManRef();
  379. }
  380. }
  381. }
  382. //교리 대상자 삭제버튼 클릭시
  383. function fDelTrgtMan() {
  384. // var statflagcd = model.getValue("/root/main/trgtmanrgst/trgtmanrgstinfo/statflagcd");
  385. //
  386. // if (statflagcd == "S2" || statflagcd == "S5")
  387. // {
  388. // messageBox("세례, 견진 성사자는 삭제할 수", "I004");
  389. // return;
  390. // }
  391. var status = model.getValue("/root/main/trgtmanrgst/trgtmanrgstinfo/status");
  392. var trgtmanid = model.getValue("/root/main/trgtmanrgst/trgtmanrgstinfo/trgtmanid");
  393. //var trgtmannm = model.getValue("/root/main/trgtmanlist/trgtmanlistinfo[trgtmanid='" + trgtmanid + "']/attdncdd");
  394. var attdncdd = model.getValue("/root/main/trgtmanrgst/trgtmanrgstinfo/attdncdd");
  395. //if (status == "u" && trgtmanid != "")
  396. if (status == "u" && trgtmanid != "")
  397. {
  398. if (attdncdd != "")
  399. {
  400. var btn = messageBox("선택한 교리대상자의 출석정보까지 모두 삭제됩니다. ", "Q001");
  401. var doctrinergstdd = model.getValue("/root/main/trgtmanrgst/trgtmanrgstinfo/doctrinergstdd");
  402. if(doctrinergstdd !=""){
  403. messageBox("성사를 받은 이력이 있는 대상자입니다. 삭제할 수", "I004");
  404. return;
  405. }
  406. }
  407. else
  408. {
  409. var btn = messageBox("선택한 교리대상자를", "Q001");
  410. var doctrinergstdd = model.getValue("/root/main/trgtmanrgst/trgtmanrgstinfo/doctrinergstdd");
  411. if(doctrinergstdd !=""){
  412. messageBox("성사를 받은 이력이 있는 대상자입니다. 삭제할 수", "I004");
  413. return;
  414. }
  415. }
  416. if (btn == '6') {
  417. model.removeNodeset("/root/send/savedata");
  418. model.makeNode("/root/send/savedata");
  419. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/status", "d");
  420. model.copyNode("/root/send/savedata","/root/main/trgtmanrgst");
  421. submit("TXAYA00901", false);
  422. fTrgtManRef();
  423. fRgstReset();
  424. } else if (btn == '7') {
  425. return;
  426. }
  427. }
  428. }
  429. //출결등록시 필수 저장여부 체크
  430. function fCheckMandatoryAttdncChkInput() {
  431. var chk = "N";
  432. for(var i =0; i<grd_trgtmanlist.rows; i++)
  433. {
  434. if (grd_trgtmanlist.valueMatrix(i, grd_trgtmanlist.colRef("attdncsave")) == "Y")
  435. {
  436. chk = "Y";
  437. break;
  438. }
  439. }
  440. if (chk == "N")
  441. {
  442. messageBox("출석사항을 등록할 교리대상자를 ","C002");
  443. return false;
  444. }
  445. if (model.getValue("/root/main/attdabsnrgst/attdabsnrgstinfo/attdncdd") == "") {
  446. messageBox("출석일자를 ","C001");
  447. model.setFocus("ipt_attdncdd");
  448. return false;
  449. }
  450. return true;
  451. }
  452. // 출결등록 초기화
  453. function fAttdncReset()
  454. {
  455. model.resetInstanceNode("/root/main/attdabsnrgst/attdabsnrgstinfo");
  456. //등록일자를 오늘 기준으로 세팅
  457. var CurrentDate = getCurrentDate();
  458. model.setValue("/root/main/attdabsnrgst/attdabsnrgstinfo/attdncdd", CurrentDate);
  459. //model.refresh();
  460. }
  461. //교리대상자 출결등록 부분의 저장버튼 클릭시
  462. function fSaveAttdAbsnRgst() {
  463. var sPassData =
  464. "trgtmanid" //교리대상자ID
  465. + "▦rgstdd" //등록일자
  466. + "▦seqno" //일련번호
  467. + "▦attdncdd" //출석일자
  468. + "▦lactrid" //강사ID
  469. + "▦lactrnm" //강사명
  470. + "▦outerlactryn" //외부가ㅑㅇ사여부
  471. + "▦doctrineprogrs" //교리진도
  472. + "▦status" //상태
  473. + "▩" ;
  474. var attdncdd = model.getValue("/root/main/attdabsnrgst/attdabsnrgstinfo/attdncdd");
  475. var lactrnm = model.getValue("/root/main/attdabsnrgst/attdabsnrgstinfo/lactrnm");
  476. var lactrid = model.getValue("/root/main/attdabsnrgst/attdabsnrgstinfo/lactrid");
  477. var doctrineprogrs = model.getValue("/root/main/attdabsnrgst/attdabsnrgstinfo/doctrineprogrs");
  478. var outerlactryn = "N";
  479. if (chk_outerlactryn.value == "Y")
  480. {
  481. outerlactryn = "Y";
  482. }
  483. var totRow = grd_trgtmanlist.rows;
  484. var chkYN = "";
  485. for(var i = 1; i < totRow; i++) {
  486. var chkFlag = model.getValue("/root/main/trgtmanlist/trgtmanlistinfo[" + i + "]/attdncsave"); //체크되었을 때 true를 반환함
  487. var attdncdd = model.getValue("/root/main/attdabsnrgst/attdabsnrgstinfo/attdncdd");
  488. if (chkFlag == "Y"){
  489. sPassData = sPassData + model.getValue("/root/main/trgtmanlist/trgtmanlistinfo[" + i + "]/trgtmanid")
  490. + "▦" + model.getValue("/root/main/trgtmanlist/trgtmanlistinfo[" + i + "]/rgstdd")
  491. + "▦" + model.getValue("/root/main/trgtmanlist/trgtmanlistinfo[" + i + "]/seqno")
  492. + "▦" + attdncdd
  493. + "▦" + lactrid
  494. + "▦" + lactrnm
  495. + "▦" + outerlactryn
  496. + "▦" + doctrineprogrs
  497. + "▦" + "i"
  498. + "▩" ;
  499. chkYN = 'Y'; //체크여부 확인하기 위한 값
  500. model.removeNodeset("/root/send/savedata");
  501. model.makeNode("/root/send/savedata");
  502. model.setValue("/root/send/savedata", sPassData);
  503. }
  504. }
  505. //체크박스 체크여부 확인
  506. if (chkYN == "") {
  507. messageBox("출석체크할 대상자를 ","C002");
  508. return;
  509. }
  510. model.resetInstanceNode("/root/hidden/errmsg");
  511. //강사ID 체크여부 확인
  512. var outerlactryn = model.getValue("/root/main/attdabsnrgst/attdabsnrgstinfo/outer_chk");
  513. var lactrid = model.getValue("/root/main/attdabsnrgst/attdabsnrgstinfo/lactrid");
  514. var lactrnm = model.getValue("/root/main/attdabsnrgst/attdabsnrgstinfo/lactrnm");
  515. if(lactrid == ""){
  516. if (outerlactryn =="" || lactrnm == "" ){
  517. messageBox("강사정보를","C001" );
  518. model.refresh();
  519. return;
  520. }
  521. }
  522. if(outerlactryn !="Y"){
  523. model.setValue("/root/main/attdabsnrgst/attdabsnrgstinfo/outer_chk","N");
  524. model.refresh ();
  525. }
  526. model.resetInstanceNode("/root/hidden/errmsg");
  527. if (submit("TXAYA00903", false)) {
  528. var chkerror = fChkError(); //중복체크
  529. var rownum = model.getValue("/root/hidden/errmsg/rownum"); //중복체크된 rownum
  530. // 1(에러), 0: 성공
  531. if (chkerror == 0)
  532. {
  533. messageBox("저장이", "I002");
  534. fTrgtManRef();
  535. fAttdncReset();
  536. }
  537. /*
  538. if (chkerror == 1) { //예
  539. //model.setValue("/root/main/trgtmanlist/trgtmanlistinfo[" + rownum + "]/status",'u'); //출결일자가 중복일 경우에도 업데이트 됨
  540. model.removeNodeset("/root/hidden/errmsg");
  541. model.makeNode("/root/hidden/errmsg")
  542. model.refresh();
  543. fSaveAttdAbsnRgst();
  544. } else if (chkerror == 0) { //아니오 : 체크해지 됨
  545. //중복체크된 일자 체크 해지
  546. model.setValue("/root/main/trgtmanlist/trgtmanlistinfo[" + rownum + "]/attdncsave", "false" );
  547. //model.resetInstanceNode("/root/main/trgtmanlist/trgtmanlistinfo[" + rownum + "]/status");
  548. model.removeNodeset("/root/hidden/errmsg");
  549. model.makeNode("/root/hidden/errmsg")
  550. model.refresh();
  551. } else if (chkerror == -1) { //취소 : 체크해지 안됨
  552. model.removeNodeset("/root/hidden/errmsg");
  553. model.makeNode("/root/hidden/errmsg")
  554. model.refresh();
  555. return;
  556. } else {
  557. //freTrgtManRef();
  558. fTrgtManRef();
  559. fRgstReset();
  560. }
  561. */
  562. }
  563. }
  564. //중복 출석입력 체크
  565. function fChkError(){
  566. var errcd = model.getValue("/root/hidden/errmsg/errcd");
  567. var rownum = model.getValue("/root/hidden/errmsg/rownum"); //중복체크된 rownum
  568. var trgtmanid = model.getValue("/root/hidden/errmsg/trgtmanid"); //중복체크된 rownum
  569. //alert(trgtmanid);
  570. var totRow = grd_trgtmanlist.rows;
  571. if(errcd == "err01"){ // insert error
  572. /*
  573. for (var i = 1 ; i < totRow ; i++) {
  574. var chkFlag = model.getValue("/root/main/trgtmanlist/trgtmanlistinfo[" + i + "]/attdncsave"); //체크되었을 때 true를 반환함
  575. if (chkFlag == "true") {
  576. var trgtmannm = model.getValue("/root/main/trgtmanlist/trgtmanlistinfo[" + rownum + "]/trgtmannm");
  577. var attdncdd = model.getValue("/root/main/trgtmanlist/trgtmanlistinfo[" + i + "]/attdncdd_a");
  578. break;
  579. }
  580. }
  581. */
  582. //var depth = model.getValue("/root/main/divsvcmassclslist/divsvcmassclslistinfo[clscd='" + clscd + "']/depth");
  583. var trgtmannm = model.getValue("/root/main/trgtmanlist/trgtmanlistinfo[trgtmanid='" + trgtmanid + "']/trgtmannm");
  584. var attdncdd = model.getValue("/root/main/attdabsnrgst/attdabsnrgstinfo/attdncdd");
  585. //var useYN = messageBox(trgtmannm + "의 " + attdncdd + "일자 출석 중복입력입니다! 새로운 출석내용으로 저장", "S001");
  586. messageBox(trgtmannm + "의 " + attdncdd + "일자 출석이", "E006");
  587. return 1;
  588. }
  589. return 0;
  590. /*
  591. if(useYN == 6) { //예
  592. return 1;
  593. }else if (useYN == 7) { //아니오
  594. return 0;
  595. } else if (useYN == 2) { //취소
  596. return -1;
  597. }
  598. */
  599. }
  600. //교리대상자 리스트 선택시 대상자 등록부분에 셋팅
  601. function fGetDoctrineTrgtManInfo() {
  602. var idxRow = grd_trgtmanlist.row;
  603. var idxCol = grd_trgtmanlist.col;
  604. //alert("idxRow" + idxRow);
  605. //alert("idxCol" + idxCol);
  606. if (idxRow < 1 || idxCol < 2) return;
  607. /*
  608. //row클릭하여 체크하기
  609. var chksave = model.getValue("/root/main/trgtmanlist/trgtmanlistinfo[" + idxRow + "]/attdncsave");
  610. if (chksave == "true") {
  611. model.setValue("/root/main/trgtmanlist/trgtmanlistinfo[" + idxRow + "]/attdncsave", "false");
  612. } else if (chksave == "false") {
  613. model.setValue("/root/main/trgtmanlist/trgtmanlistinfo[" + idxRow + "]/attdncsave", "true");
  614. }
  615. */
  616. //model.removeNodeset("/root/main/trgtmanrgst/trgtmanrgstinfo");
  617. model.copyNode("/root/main/trgtmanrgst/trgtmanrgstinfo","/root/main/trgtmanlist/trgtmanlistinfo[" + idxRow + "]");
  618. //model.copyNode("/root/main/attdabsnrgst/attdabsnrgstinfo","/root/main/trgtmanlist/trgtmanlistinfo[" + idxRow + "]");
  619. model.makeValue("/root/main/trgtmanrgst/trgtmanrgstinfo/rgstdd_b", model.getValue("/root/main/trgtmanlist/trgtmanlistinfo[" + idxRow + "]/rgstdd"));
  620. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/status",'u'); // 수정 status 설정
  621. //수정불가 항목 설정
  622. var trgtmanposcd = model.getValue("/root/main/trgtmanrgst/trgtmanrgstinfo/doctrinetrgtmanposcd");
  623. cmb_doctrinecd.disabled = true;
  624. cmb_doctrinetrgtmanposcd.disabled = true;
  625. // 등록일자 수정불가
  626. ipt_rgstdd.disabled = true;
  627. /* 대상자소속 코드 DT1 : 환자
  628. DT2 : 보호자
  629. DT3 : 사원
  630. DT4 : 기타
  631. */
  632. if (trgtmanposcd == 'DT1' || trgtmanposcd == 'DT3') {
  633. ipt_trgtmannm.disabled = true;
  634. ipt_trgtmanid.disabled = true;
  635. ipt_brthdatedd.disabled = true;
  636. ipt_mpphontel.disabled = false;
  637. ipt_emailaddr.disabled = false;
  638. btn_popup.disabled = true;
  639. } else if (trgtmanposcd == 'DT2' || trgtmanposcd == 'DT4') {
  640. ipt_trgtmannm.disabled = false;
  641. ipt_trgtmanid.disabled = true;
  642. ipt_brthdatedd.disabled = false;
  643. ipt_mpphontel.disabled = false;
  644. ipt_emailaddr.disabled = false;
  645. btn_popup.disabled = false;
  646. }
  647. // 셰레, 견진인 경우는 수정 불가
  648. var statflagcd = model.getValue("/root/main/trgtmanrgst/trgtmanrgstinfo/statflagcd");
  649. if (statflagcd == "S2" || statflagcd == "S5")
  650. {
  651. cmb_statflagcd.disabled = true;
  652. ipt_statdd.disabled = true;
  653. }
  654. else
  655. {
  656. cmb_statflagcd.disabled = false;
  657. ipt_statdd.disabled = false;
  658. }
  659. //ipt_lactrnm.disabled = false;
  660. //chk_outer.disabled = false;
  661. ipt_doctrineprogrs.disabled = false;
  662. //node 복사
  663. model.makeNode("/root/temp/main/trgtmanrgst");
  664. model.copyNode("/root/temp/main/trgtmanrgst","/root/main/trgtmanrgst");
  665. /*
  666. model.makeNode("/root/temp/main/attdabsnrgst");
  667. model.copyNode("/root/temp/main/attdabsnrgst","/root/main/attdabsnrgst");
  668. model.makeNode("/root/temp/main/trgtmanlist");
  669. model.copyNode("/root/temp/main/trgtmanlist","/root/main/trgtmanlist");
  670. */
  671. //model.refresh();
  672. }
  673. //상태구분값 변경시
  674. function fGetStatflagcd() {
  675. var CurrentDate = getCurrentDate();
  676. var statflagcd = model.getValue("/root/main/trgtmanrgst/trgtmanrgstinfo/statflagcd");
  677. /*
  678. 상태구분코드 S1 : 교리중
  679. S2 : 세례
  680. S3 : 본당연결
  681. S4 : 중도종결
  682. */
  683. if (statflagcd == 'S1') {
  684. ipt_rgstdd.disabled = false;
  685. ipt_rem.disabled = false;
  686. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/rgstdd", CurrentDate);
  687. }
  688. else
  689. {
  690. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/statdd", CurrentDate);
  691. }
  692. model.resetInstanceNode("/root/main/trgtmanrgst/trgtmanrgstinfo/baptnm");
  693. model.resetInstanceNode("/root/main/trgtmanrgst/trgtmanrgstinfo/parishchrchnmrem");
  694. model.refresh();
  695. }
  696. //교리대상자 리스트 재조회
  697. function freTrgtManRef() {
  698. var doctrinecd = model.getValue("/root/main/cond_memb/doctrinecd");
  699. var trgtmanposcd = model.getValue("/root/main/cond_memb/doctrinetrgtmanposcd");
  700. if (doctrinecd != "" && trgtmanposcd != "") {
  701. fTrgtManRef();
  702. } else {
  703. return;
  704. }
  705. }
  706. //대상자 팝업
  707. function fSearchTrgtMan() {
  708. var trgtmanposcd = model.getValue("/root/main/trgtmanrgst/trgtmanrgstinfo/doctrinetrgtmanposcd");
  709. if ( trgtmanposcd == 'DT1') { //환자
  710. //("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  711. modal("SPAYA05300", 1,100,100);
  712. //modal("SPAYA05300",null,null,null, "SPAYA05300", "/root/actsource", "/root/main/actsource");
  713. if (model.getValue("/root/main/popupendflag") == "ok")
  714. {
  715. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/trgtmannm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  716. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/trgtmanid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  717. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/brthdatedd", model.getValue("/root/main/patinfo/patinfolist/brthdd"));
  718. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/mpphontel", model.getValue("/root/main/patinfo/patinfolist/mpphontel"));
  719. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/emailaddr", model.getValue("/root/main/patinfo/patinfolist/email"));
  720. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/baptnm", model.getValue("/root/main/patinfo/patinfolist/baptnm"));
  721. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/rgstno", model.getValue("/root/main/patinfo/patinfolist/rgstno"));
  722. }
  723. } else if ( trgtmanposcd == 'DT3') { //사원
  724. model.resetInstanceNode("/root/main/userpopupinfo");
  725. model.removeNodeset("/root/main/tempuserinfo");
  726. model.makeNode("/root/main/tempuserinfo");
  727. model.setValue("/root/main/userpopupinfo/param", "_OneS_DD");
  728. //model.setValue("/root/main/userpopupinfo/flag", "usernm");
  729. //model.setValue("/root/main/userpopupinfo/searchitem", ipt_trgtmannm.currentText);
  730. modal("../../userdeptinfoweb/xrw/SPZSU10103_사용자부서선택조회", "", "200", "200", "SPZSU10103","/root/main/userpopupinfo","/root/main/temp");
  731. var iParam = getParameter("SPZSU10103_");
  732. setCSVToNode("/root/main/tempuserinfo", iParam);
  733. clearParameter("SPZSU10103_");
  734. //var rowcnt = getNodesetCnt(model1, "/root/main/tempuserinfo/userid");
  735. var userid = model.getValue("/root/main/tempuserinfo/list/userid");
  736. //if (rowcnt >= 1)
  737. if (userid !== '')
  738. {
  739. model.removeNodeset("/root/send/search");
  740. model.makeValue("/root/send/search/emplno", model.getValue("/root/main/tempuserinfo/list/userid"));
  741. model.removeNodeset("/root/main/emplinfo/emplist");
  742. // 사원정보 조회
  743. if ( submit("TRAYA01504", false) == true)
  744. {
  745. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/trgtmannm", model.getValue("/root/main/emplinfo/empllist/emplnm"));
  746. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/baptnm", model.getValue("/root/main/emplinfo/empllist/baptnm"));
  747. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/brthdatedd", model.getValue("/root/main/emplinfo/empllist/brthdatedd"));
  748. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/depttel", model.getValue("/root/main/emplinfo/empllist/depttel"));
  749. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/mpphontel", model.getValue("/root/main/emplinfo/empllist/mpphontel"));
  750. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/posdept", model.getValue("/root/main/emplinfo/empllist/posdept"));
  751. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/emailaddr", model.getValue("/root/main/emplinfo/empllist/emailaddr"));
  752. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/trgtmanid", model.getValue("/root/main/emplinfo/empllist/emplid"));
  753. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/rgstno", model.getValue("/root/main/emplinfo/empllist/rgstno"));
  754. }
  755. }
  756. /*
  757. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/trgtmannm", model.getValue("/root/main/tempuserinfo/list/usernm"));
  758. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/trgtmanid", model.getValue("/root/main/tempuserinfo/list/userid"));
  759. // model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/brthdatedd", model.getValue("/root/main/tempuserinfo/list/"));
  760. // model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/mpphontel", model.getValue("/root/main/tempuserinfo/list/"));
  761. // model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/emailaddr", model.getValue("/root/main/tempuserinfo/list/"));
  762. // model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/depttel", model.getValue("/root/main/tempuserinfo/list/"));
  763. model.setValue("/root/main/trgtmanrgst/trgtmanrgstinfo/posdept", model.getValue("/root/main/tempuserinfo/list/posdeptnm"));
  764. */
  765. }
  766. model.refresh();
  767. }
  768. //강사 팝업
  769. function fSearchLactr() {
  770. model.resetInstanceNode("/root/popdata");
  771. setParameter("SPAYA02800_joblncd", "A");
  772. modal("SPAYA02800", 1, 200, 100);
  773. //modal("SPAYA02800",null,null,null, "SPAYA02800", "/root/actsource", "/root/main/actsource");
  774. if (model.getValue("/root/popdata/conslrid") != "")
  775. {
  776. model.setValue("/root/main/attdabsnrgst/attdabsnrgstinfo/lactrid", model.getValue("/root/popdata/conslrid"));
  777. model.setValue("/root/main/attdabsnrgst/attdabsnrgstinfo/lactrnm", model.getValue("/root/popdata/conslrnm"));
  778. model.setValue("/root/main/attdabsnrgst/attdabsnrgstinfo/outer_chk", "");
  779. }
  780. //else(model.getValue("/root/main/attdabsnrgst/attdabsnrgstinfo/lactrid") == "" ); {
  781. // messageBox("강사정보를 ","C002");
  782. // return false;
  783. //}
  784. model.refresh();
  785. /*
  786. var chkflag = setParameter("chkflag", 'doctrinelactr');
  787. modal("SPAYA02800", 1, 200, 100);
  788. if (model.getValue("/root/main/attdabsnrgst/attdabsnrgstinfo/lactrid") != "") {
  789. model.resetInstanceNode("/root/main/attdabsnrgst/attdabsnrgstinfo/outer_chk");
  790. ipt_lactrnm.disabled = true;
  791. } else {
  792. ipt_lactrnm.disabled = false;
  793. }
  794. model.refresh();
  795. */
  796. }
  797. //외부 강사를 체크했을 경우
  798. function fClickOuter_Chk() {
  799. //model.resetInstanceNode("/root/main/attdabsnrgst/attdabsnrgstinfo/lactrnm");
  800. model.resetInstanceNode("/root/main/attdabsnrgst/attdabsnrgstinfo/lactrid");
  801. var outerlactryn = model.getValue("/root/main/attdabsnrgst/attdabsnrgstinfo/outer_chk");
  802. if (chk_outerlactryn.value == "Y")
  803. {
  804. //alert(outerlactryn);
  805. ipt_lactrnm.disabled = false;
  806. btn_pat.disabled = true;
  807. }
  808. else
  809. {
  810. //ipt_lactrnm.disabled =true;
  811. btn_pat.disabled = false;
  812. }
  813. model.refresh();
  814. }
  815. // 출석사항 조회 팝업
  816. function fSPAYA03300()
  817. {
  818. modal("SPAYA03300", 1,100,100);
  819. //modal("SPAYA03300",null,null,null, "SPAYA03300", "/root/actsource", "/root/main/actsource");
  820. }
  821. // 담당원목자명/주례자명으로 찾기
  822. function fGetConslrID(pastornm)
  823. {
  824. model.removeNodeset('/root/send/conslrpastor');
  825. model.resetInstanceNode("/root/hidden/conslrpastor/chrgconslrlistinfo");
  826. model.makeNode('/root/send/conslrpastor/conslrpastornm');
  827. model.setValue('/root/send/conslrpastor/conslrpastornm', pastornm);
  828. if (pastornm == "")
  829. {
  830. model.setValue("/root/main/attdabsnrgst/attdabsnrgstinfo/lactrid", "");
  831. model.setValue("/root/main/attdabsnrgst/attdabsnrgstinfo/lactrnm", "");
  832. model.setValue("/root/main/attdabsnrgst/attdabsnrgstinfo/outer_chk", "");
  833. return;
  834. }
  835. if(submit('TRAYA01303', false) == true)
  836. {
  837. var nodecnt = model.instances(0).selectNodes("/root/hidden/conslrpastor/chrgconslrlistinfo").length;
  838. // 두건 이상일때는 팝업
  839. if (nodecnt > 1)
  840. {
  841. fSearchLactr()
  842. }
  843. else
  844. {
  845. var conslrid = model.getValue('/root/hidden/conslrpastor/chrgconslrlistinfo/conslrpastorid');
  846. // 찾는 사람이 없을 때도 팝업
  847. if (conslrid == "")
  848. {
  849. fSearchLactr()
  850. }
  851. else
  852. {
  853. model.setValue("/root/main/attdabsnrgst/attdabsnrgstinfo/lactrid", model.getValue("/root/hidden/conslrpastor/chrgconslrlistinfo/conslrpastorid"));
  854. model.setValue("/root/main/attdabsnrgst/attdabsnrgstinfo/lactrnm", model.getValue("/root/hidden/conslrpastor/chrgconslrlistinfo/conslrpastornm"));
  855. model.setValue("/root/main/attdabsnrgst/attdabsnrgstinfo/outer_chk", "");
  856. }
  857. }
  858. }
  859. }
  860. ]]>
  861. </script>
  862. </xhtml:head>
  863. <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  864. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  865. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:144px; height:14px; ">교리수행관리</caption>
  866. </group>
  867. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  868. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  869. </group>
  870. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  871. <caption id="caption25" class="tit_2" style="left:5px; top:60px; width:188px; height:13px; ">교리대상자 조회 및 출결등록</caption>
  872. <line id="line11" class="line_1" style="x1:0px; y1:75px; x2:1193px; y2:75px; "/>
  873. <group id="group4" style="left:0px; top:10px; width:1193px; height:37px; vertical-align:top; ">
  874. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1193px; height:35px; "/>
  875. <caption id="caption34" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">교리명:</caption>
  876. <select1 id="cmb_trgtmanposcd" ref="/root/main/cond_memb/doctrinetrgtmanposcd" class="combo_search" appearance="minimal" style="left:385px; top:10px; width:105px; height:19px; ">
  877. <choices>
  878. <itemset nodeset="/root/init/comcodelist/doctrinetrgtmanposcd_cmblist/A0212">
  879. <label ref="cdnm"/>
  880. <value ref="cdid"/>
  881. </itemset>
  882. </choices>
  883. </select1>
  884. <caption id="caption29" class="search_name" style="left:280px; top:10px; width:99px; height:17px; ">대상자소속 :</caption>
  885. <select1 id="rdo_doctrinenm" ref="/root/main/cond_memb/doctrinecd" class="radio_search" appearance="full" cellspacing="5" cols="2" rows="1" overflow="visible" style="left:95px; top:10px; width:170px; height:20px; border-style:none; ">
  886. <choices>
  887. <itemset nodeset="/root/init/comcodelist/doctrinecd_cmblist/A0211">
  888. <label ref="cdnm"/>
  889. <value ref="cdid"/>
  890. </itemset>
  891. </choices>
  892. </select1>
  893. <caption id="caption3" class="search_name" style="left:520px; top:10px; width:94px; height:17px; ">상태구분 :</caption>
  894. <input id="input1" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/rgstdd" class="input_default" inputtype="date" style="left:820px; top:10px; width:119px; height:19px; "/>
  895. <input id="input2" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/rgstdd" class="input_default" inputtype="date" style="left:955px; top:10px; width:119px; height:19px; "/>
  896. <caption id="caption4" class="search_no_b" style="left:941px; top:10px; width:12px; height:17px; ">~</caption>
  897. <caption id="caption2" class="search_name" style="left:720px; top:10px; width:104px; height:17px; ">상태일자 :</caption>
  898. </group>
  899. </group>
  900. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:742px; ">
  901. <caption id="caption5" class="tit_2" style="left:5px; top:544px; width:156px; height:13px; ">교리대상자 등록</caption>
  902. <line id="line2" class="line_1" style="x1:0px; y1:559px; x2:624px; y2:559px; "/>
  903. <line id="line5" class="line_2" style="x1:0px; y1:587px; x2:624px; y2:587px; "/>
  904. <line id="line8" class="line_2" style="x1:0px; y1:611px; x2:624px; y2:611px; "/>
  905. <line id="line13" class="line_2" style="x1:0px; y1:712px; x2:624px; y2:712px; "/>
  906. <caption id="caption7" class="tit_2" style="left:5px; top:85px; width:188px; height:13px; ">교리대상자 조회 및 출결등록</caption>
  907. <line id="line14" class="line_1" style="x1:0px; y1:100px; x2:1193px; y2:100px; "/>
  908. <line id="line15" class="line_1" style="x1:0px; y1:685px; x2:624px; y2:685px; "/>
  909. <group id="group6" style="left:0px; top:10px; width:1193px; height:65px; vertical-align:top; ">
  910. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1193px; height:65px; "/>
  911. <caption id="caption8" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">교리명:</caption>
  912. <caption id="caption9" class="search_name" style="left:325px; top:10px; width:99px; height:17px; ">대상자소속 :</caption>
  913. <caption id="caption10" class="search_name" style="left:325px; top:35px; width:94px; height:17px; ">상태구분 :</caption>
  914. <caption id="caption17" class="search_no_b" style="left:795px; top:35px; width:12px; height:17px; ">~</caption>
  915. <caption id="caption26" class="search_name" style="left:595px; top:35px; width:104px; height:17px; ">상태일자 :</caption>
  916. <caption id="caption53" class="search_name" style="left:15px; top:35px; width:89px; height:17px; ">교육상태 :</caption>
  917. <line id="line25" class="line_4" style="x1:1107px; y1:12px; x2:1107px; y2:56px; "/>
  918. <select1 id="rdo_doctrinecd" ref="/root/main/cond_memb/doctrinecd" class="radio_search" appearance="full" cellspacing="5" cols="2" rows="1" overflow="visible" style="left:115px; top:10px; width:170px; height:20px; border-style:none; ">
  919. <choices>
  920. <itemset nodeset="/root/init/comcodelist/doctrinecd_cmblist/A0211">
  921. <label ref="cdnm"/>
  922. <value ref="cdid"/>
  923. </itemset>
  924. </choices>
  925. </select1>
  926. <select1 id="cmb_doctrinetrgtmanposcd1" ref="/root/main/cond_memb/doctrinetrgtmanposcd" class="combo_search" appearance="minimal" style="left:430px; top:10px; width:105px; height:19px; ">
  927. <choices>
  928. <itemset nodeset="/root/init/comcodelist/doctrinetrgtmanposcd_cmblist/A0008A0212">
  929. <label ref="cdnm"/>
  930. <value ref="cdid"/>
  931. </itemset>
  932. </choices>
  933. </select1>
  934. <input id="ipt_trgtmannm1" ref="/root/main/cond_memb/trgtmannm" class="input_default" imemode="hangul" appearance="input" style="left:685px; top:10px; width:105px; height:19px; "/>
  935. <input id="ipt_perchgr1" ref="/root/main/cond_memb/perchgr" class="input_default" imemode="hangul" appearance="input" style="left:950px; top:10px; width:105px; height:19px; "/>
  936. <select1 id="rdo_educstatflagcd" ref="/root/main/cond_memb/educstatflagcd" class="radio_search" appearance="full" cellspacing="15" cols="2" rows="1" overflow="visible" style="left:115px; top:35px; width:155px; height:20px; border-style:none; ">
  937. <choices>
  938. <itemset nodeset="/root/init/comcodelist/educstatflagcd_cmblist/A0215">
  939. <label ref="cdnm"/>
  940. <value ref="cdid"/>
  941. </itemset>
  942. </choices>
  943. <script type="javascript" ev:event="xforms-select">
  944. <![CDATA[
  945. fSelectEducStatFlag();
  946. ]]>
  947. </script>
  948. </select1>
  949. <select1 id="cmb_statflagcd1" ref="/root/main/cond_memb/statflagcd" class="combo_search" appearance="minimal" style="left:430px; top:35px; width:105px; height:19px; ">
  950. <choices>
  951. <itemset nodeset="/root/init/comcodelist/statflagcd_kindcmblist/A0001A0213">
  952. <label ref="cdnm"/>
  953. <value ref="cdid"/>
  954. </itemset>
  955. </choices>
  956. </select1>
  957. <input id="ipt_statfromdd" ref="/root/main/cond_memb/statfromdd" class="input_default" inputtype="date" style="left:685px; top:35px; width:105px; height:19px; "/>
  958. <input id="ipt_stattodd" ref="/root/main/cond_memb/stattodd" class="input_default" inputtype="date" style="left:810px; top:35px; width:105px; height:19px; "/>
  959. <button id="btn_search" class="btn1_letter2" style="left:1122px; top:23px; width:56px; height:22px; ">
  960. <caption>조회</caption>
  961. <script type="javascript" ev:event="DOMActivate">
  962. <![CDATA[
  963. fTrgtManRef();
  964. fRgstReset();
  965. fAttdncReset();
  966. model.refresh();
  967. ]]>
  968. </script>
  969. </button>
  970. <caption id="caption11" class="search_name" style="left:595px; top:10px; width:94px; height:17px; ">대상자명 :</caption>
  971. <caption id="caption12" class="search_name" style="left:845px; top:10px; width:112px; height:17px; ">교리담당자 :</caption>
  972. </group>
  973. <line id="line18" class="line_2" style="x1:648px; y1:588px; x2:1095px; y2:588px; "/>
  974. <caption id="caption30" class="cell_1" style="left:409px; top:639px; width:80px; height:23px; vertical-align:middle; ">소속부서</caption>
  975. <caption id="caption31" class="cell_1" style="left:650px; top:565px; width:80px; height:23px; vertical-align:middle; ">출석일자</caption>
  976. <caption id="caption36" class="cell_1" style="left:650px; top:590px; width:80px; height:23px; vertical-align:middle; ">강사명</caption>
  977. <caption id="caption37" class="cell_1" style="left:209px; top:566px; width:80px; height:23px; vertical-align:middle; ">대상자 소속</caption>
  978. <caption id="caption38" class="cell_1" style="left:0px; top:638px; width:80px; height:23px; vertical-align:middle; ">휴대전화</caption>
  979. <caption id="caption39" class="cell_1" style="left:650px; top:615px; width:80px; height:23px; vertical-align:middle; ">교리진도</caption>
  980. <caption id="caption40" class="cell_1" style="left:0px; top:614px; width:80px; height:23px; vertical-align:middle; ">이메일주소</caption>
  981. <caption id="caption41" class="cell_1" style="left:0px; top:566px; width:80px; height:23px; vertical-align:middle; ">교리명</caption>
  982. <caption id="caption42" class="cell_1" style="left:209px; top:590px; width:80px; height:23px; vertical-align:middle; ">대상자번호</caption>
  983. <caption id="caption43" class="cell_1" style="left:408px; top:590px; width:80px; height:23px; vertical-align:middle; ">생년월일</caption>
  984. <caption id="caption44" class="cell_1" style="left:210px; top:638px; width:80px; height:23px; vertical-align:middle; ">부서전화</caption>
  985. <line id="line19" class="line_3" style="x1:648px; y1:640px; x2:1095px; y2:640px; "/>
  986. <caption id="caption45" class="cell_1" style="left:0px; top:662px; width:80px; height:23px; vertical-align:middle; ">교리담당자</caption>
  987. <caption id="caption46" class="cell_1" style="left:408px; top:566px; width:80px; height:23px; vertical-align:middle; ">등록일자</caption>
  988. <caption id="caption47" class="cell_1" style="left:0px; top:590px; width:80px; height:23px; vertical-align:middle; ">대상자명</caption>
  989. <line id="line20" class="line_2" style="x1:0px; y1:637px; x2:624px; y2:637px; "/>
  990. <caption id="caption48" class="cell_1" style="left:209px; top:690px; width:80px; height:23px; vertical-align:middle; ">상태일자</caption>
  991. <caption id="caption49" class="cell_1" style="left:0px; top:714px; width:80px; height:23px; vertical-align:middle; ">본당명</caption>
  992. <caption id="caption50" class="cell_1" style="left:423px; top:690px; width:80px; height:23px; vertical-align:middle; ">세례명</caption>
  993. <caption id="caption51" class="cell_1" style="left:0px; top:690px; width:80px; height:23px; vertical-align:middle; ">상태구분</caption>
  994. <line id="line21" class="line_3" style="x1:2px; y1:737px; x2:626px; y2:737px; "/>
  995. <line id="line22" class="line_1" style="x1:648px; y1:559px; x2:1095px; y2:560px; "/>
  996. <caption id="caption52" class="tit_2" style="left:650px; top:544px; width:156px; height:13px; ">교리출석사항 등록</caption>
  997. <line id="line23" class="line_2" style="x1:648px; y1:613px; x2:1095px; y2:613px; "/>
  998. <line id="line24" class="line_2" style="x1:0px; y1:662px; x2:624px; y2:662px; "/>
  999. <button id="btn_popup" class="icon_search" style="left:191px; top:594px; width:16px; height:16px; ">
  1000. <caption/>
  1001. <script type="javascript" ev:event="DOMActivate">
  1002. <![CDATA[
  1003. fSearchTrgtMan();
  1004. ]]>
  1005. </script>
  1006. </button>
  1007. <select1 id="cmb_doctrinecd" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/doctrinecd" class="combo_default" appearance="minimal" style="left:83px; top:567px; width:123px; height:19px; ">
  1008. <choices>
  1009. <itemset nodeset="/root/init/comcodelist/doctrinecd_cmblist/A0211">
  1010. <label ref="cdnm"/>
  1011. <value ref="cdid"/>
  1012. </itemset>
  1013. </choices>
  1014. </select1>
  1015. <select1 id="cmb_doctrinetrgtmanposcd" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/doctrinetrgtmanposcd" class="combo_default" appearance="minimal" style="left:292px; top:567px; width:113px; height:19px; ">
  1016. <choices>
  1017. <itemset nodeset="/root/init/comcodelist/doctrinetrgtmanposcd_all_cmblist/A0008A0212">
  1018. <label ref="cdnm"/>
  1019. <value ref="cdid"/>
  1020. </itemset>
  1021. </choices>
  1022. <script type="javascript" ev:event="xforms-select">
  1023. <![CDATA[
  1024. fSelectTrgtManPos();
  1025. model.refresh();
  1026. ]]>
  1027. </script>
  1028. </select1>
  1029. <input id="ipt_rgstdd" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/rgstdd" class="input_default" inputtype="date" style="left:491px; top:567px; width:134px; height:19px; "/>
  1030. <input id="ipt_trgtmannm" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/trgtmannm" class="input_essential" imemode="hangul" style="left:83px; top:592px; width:106px; height:19px; ">
  1031. <script type="javascript" ev:event="onkeydown">
  1032. <![CDATA[
  1033. ]]>
  1034. </script>
  1035. </input>
  1036. <output id="ipt_trgtmanid" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/trgtmanid" class="output_fix" appearance="output" style="left:292px; top:592px; width:113px; height:19px; "/>
  1037. <input id="ipt_brthdatedd" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/brthdatedd" class="input_default" format="yyyy-mm-dd" appearance="input" style="left:491px; top:592px; width:134px; height:19px; "/>
  1038. <input id="ipt_mpphontel" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/mpphontel" class="input_default" appearance="input" style="left:83px; top:640px; width:123px; height:19px; "/>
  1039. <input id="ipt_emailaddr" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/emailaddr" class="input_default" appearance="input" style="left:82px; top:616px; width:323px; height:19px; "/>
  1040. <output id="opt_depttel" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/depttel" class="output_fix" style="left:293px; top:640px; width:112px; height:19px; "/>
  1041. <output id="opt_posdept" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/posdept" class="output_fix" style="left:492px; top:641px; width:133px; height:19px; "/>
  1042. <input id="ipt_rem" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/rem" class="input_default" imemode="hangul" appearance="input" style="left:292px; top:665px; width:333px; height:19px; "/>
  1043. <select1 id="cmb_statflagcd" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/statflagcd" class="combo_default" appearance="minimal" style="left:83px; top:691px; width:123px; height:19px; ">
  1044. <choices>
  1045. <itemset nodeset="/root/init/comcodelist/statflagcd_cmblist/A0213">
  1046. <label ref="cdnm"/>
  1047. <value ref="cdid"/>
  1048. </itemset>
  1049. </choices>
  1050. <script type="javascript" ev:event="xforms-select">
  1051. <![CDATA[
  1052. // alert(cmb_statflagcd.value +" "+ cmb_statflagcd.label);
  1053. // 교리수행 관리 창 - 교리 대상자 등록의 상태구분에서 세례/견진을 선택할 경우 성사 및 미사 일정 등록 창을 팝업(task번호: 9576, 2009.11.10 hhm)
  1054. if(cmb_statflagcd.value == "S2" || cmb_statflagcd.value == "S5" ){
  1055. var condclscd;
  1056. if(cmb_statflagcd.value == "S2"){
  1057. condclscd = "C0015" // 세례
  1058. }else if(cmb_statflagcd.value == "S5"){
  1059. condclscd = "C0005"; // 견진
  1060. }
  1061. setParameter("condclsnm", cmb_statflagcd.label); //팝업 등록화면의 성사/미사명에 값 가져가기
  1062. setParameter("condclscd", condclscd); //팝업 등록화면으로 화면코드 값 가져가기
  1063. setParameter("scrncd", "C1"); //팝업 등록화면으로 화면코드 값 가져가기
  1064. setParameter("clsflag", "C");
  1065. setParameter("scrnstatus",'ins'); //팝업 등록화면으로 상태 값 가져가기
  1066. model.makeNode("root/init/insupdtvalue");
  1067. modal("SPAYA01500", 1,100,100); //성사 및 미사일정등록관리.xrw 화면 팝업
  1068. }
  1069. //fGetStatflagcd();
  1070. ]]>
  1071. </script>
  1072. </select1>
  1073. <input id="ipt_statdd" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/statdd" class="input_default" inputtype="date" style="left:292px; top:691px; width:128px; height:19px; "/>
  1074. <input id="ipt_baptnm" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/baptnm" class="input_default" imemode="hangul" appearance="input" style="left:506px; top:691px; width:119px; height:19px; "/>
  1075. <input id="ipt_parishchrchnm" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/parishchrchnm" class="input_default" imemode="hangul" maxlength="20" appearance="input" style="left:83px; top:716px; width:337px; height:19px; "/>
  1076. <input id="ipt_attdncdd" ref="/root/main/attdabsnrgst/attdabsnrgstinfo/attdncdd" class="input_default" inputtype="date" style="left:733px; top:567px; width:123px; height:19px; ">
  1077. <script type="javascript" ev:event="xforms-value-changed">
  1078. <![CDATA[
  1079. //fAttncddValChg();
  1080. ]]>
  1081. </script>
  1082. </input>
  1083. <input id="ipt_lactrnm" ref="/root/main/attdabsnrgst/attdabsnrgstinfo/lactrnm" class="input_default" imemode="hangul" maxlength="10" appearance="input" style="left:733px; top:592px; width:122px; height:19px; ">
  1084. <script type="javascript" ev:event="onkeydown">
  1085. <![CDATA[
  1086. if(event.keyCode==13)
  1087. {
  1088. model.resetInstanceNode("/root/popdata");
  1089. var pastornm = ipt_lactrnm.currentText;
  1090. fGetConslrID(pastornm);
  1091. model.refresh();
  1092. }
  1093. ]]>
  1094. </script>
  1095. <script type="javascript" ev:event="DOMFocusOut">
  1096. <![CDATA[
  1097. model.resetInstanceNode("/root/popdata");
  1098. var pastornm = ipt_lactrnm.currentText;
  1099. if (pastornm == "")
  1100. {
  1101. model.setValue("/root/main/attdabsnrgst/attdabsnrgstinfo/lactrid", "");
  1102. model.setValue("/root/main/attdabsnrgst/attdabsnrgstinfo/lactrnm", "");
  1103. model.setValue("/root/main/attdabsnrgst/attdabsnrgstinfo/outer_chk", "");
  1104. //return;
  1105. }
  1106. //fGetConslrID(pastornm);
  1107. model.refresh();
  1108. ]]>
  1109. </script>
  1110. <script type="javascript" ev:event="xforms-value-changed">
  1111. <![CDATA[
  1112. model.setValue("/root/main/attdabsnrgst/attdabsnrgstinfo/lactrid", "");
  1113. model.refresh();
  1114. ]]>
  1115. </script>
  1116. </input>
  1117. <output id="opt_lactrid" ref="/root/main/attdabsnrgst/attdabsnrgstinfo/lactrid" class="output_fix" style="left:860px; top:592px; width:100px; height:19px; "/>
  1118. <select id="chk_outerlactryn" ref="/root/main/attdabsnrgst/attdabsnrgstinfo/outer_chk" overflow="visible" appearance="full" cellspacing="1" cols="1" rows="1" style="left:965px; top:595px; width:47px; height:15px; border-style:none; ">
  1119. <choices>
  1120. <item>
  1121. <label>외부</label>
  1122. <value>Y</value>
  1123. </item>
  1124. </choices>
  1125. <script type="javascript" ev:event="onclick">
  1126. <![CDATA[
  1127. fClickOuter_Chk();
  1128. ]]>
  1129. </script>
  1130. </select>
  1131. <input id="ipt_doctrineprogrs" ref="/root/main/attdabsnrgst/attdabsnrgstinfo/doctrineprogrs" class="input_default" imemode="hangul" appearance="input" style="left:733px; top:616px; width:311px; height:19px; "/>
  1132. <button id="btn_dotgsave" class="btn5_letter2" style="left:481px; top:537px; width:42px; height:19px; ">
  1133. <caption>저장</caption>
  1134. <script type="javascript" ev:event="DOMActivate">
  1135. <![CDATA[
  1136. if ( !fCheckMandatoryInput() ) return; //필수 저장여부 체크
  1137. fSaveTrgtManRgst();
  1138. //fRgstReset();
  1139. model.refresh();
  1140. ]]>
  1141. </script>
  1142. </button>
  1143. <button id="btn_dotgdel" class="btn5_letter2" style="left:526px; top:537px; width:42px; height:19px; ">
  1144. <caption>삭제</caption>
  1145. <script type="javascript" ev:event="DOMActivate">
  1146. <![CDATA[
  1147. fDelTrgtMan();
  1148. model.refresh();
  1149. ]]>
  1150. </script>
  1151. </button>
  1152. <button id="btn_dotgclear" class="btn5_letter3" style="left:571px; top:537px; width:53px; height:19px; ">
  1153. <caption>초기화</caption>
  1154. <script type="javascript" ev:event="DOMActivate">
  1155. <![CDATA[
  1156. fRgstReset();
  1157. model.refresh();
  1158. ]]>
  1159. </script>
  1160. </button>
  1161. <button id="btn_doatsave" class="btn5_letter2" style="left:990px; top:537px; width:42px; height:19px; ">
  1162. <caption>저장</caption>
  1163. <script type="javascript" ev:event="DOMActivate">
  1164. <![CDATA[
  1165. if ( !fCheckMandatoryAttdncChkInput() ) return; //필수 저장여부 체크
  1166. fSaveAttdAbsnRgst();
  1167. //fAttdncReset();
  1168. model.refresh();
  1169. //fRgstReset();
  1170. ]]>
  1171. </script>
  1172. </button>
  1173. <button id="btn_doatclear" class="btn5_letter3" style="left:1040px; top:537px; width:53px; height:19px; ">
  1174. <caption>초기화</caption>
  1175. <script type="javascript" ev:event="DOMActivate">
  1176. <![CDATA[
  1177. fAttdncReset();
  1178. model.refresh();
  1179. //fRgstReset();
  1180. ]]>
  1181. </script>
  1182. </button>
  1183. <button id="btn_attr" class="btn3_letter6" style="left:879px; top:535px; width:104px; height:22px; ">
  1184. <caption>출석사항조회</caption>
  1185. <script type="javascript" ev:event="DOMActivate">
  1186. <![CDATA[
  1187. fSPAYA03300();
  1188. ]]>
  1189. </script>
  1190. </button>
  1191. <datagrid id="grd_trgtmanlist" nodeset="/root/main/trgtmanlist/trgtmanlistinfo" allowuserresize="false" autoresize="true" caption="^교리명^교리담당자^대상자 소속^대상자명^세례명^본당명^상태구분^상태일자^최종출석일자^주민번호^생년월일^휴대전화^부서전화^부서명^이메일주소^비고^대상자아이디^등록일자^일련번호^교리코드^소속코드^상태코드^강사명^강사아이디^교리진도^외부^^^^^^^caption1^caption2^교리진도" colsep="^" colwidth="30, 90, 100, 90, 100, 100, 100, 90, 90, 90, 120, 90, 100, 95, 109, 150, 150, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 130, 130, 130, 130, 130, 130, 130, 100" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:104px; width:1193px; height:420px; ">
  1192. <col allowuserresize="false" checkvalue="Y,N" ref="attdncsave" type="checkbox"/>
  1193. <col disabled="true" ref="doctrinenm" style="text-align:center; "/>
  1194. <col ref="perchgr" style="text-align:center; "/>
  1195. <col disabled="true" ref="doctrinetrgtmanposnm" style="text-align:center; "/>
  1196. <col ref="trgtmannm" style="text-align:center; "/>
  1197. <col ref="baptnm" style="left:349px; top:23px; width:100px; height:23px; text-align:center; "/>
  1198. <col ref="parishchrchnm"/>
  1199. <col ref="statflagnm"/>
  1200. <col ref="statdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1201. <col ref="attdncdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1202. <col ref="rgstno" format="999999-9999999" style="text-align:center; "/>
  1203. <col ref="brthdatedd" format="yyyy-mm-dd" style="text-align:center; "/>
  1204. <col ref="mpphontel"/>
  1205. <col ref="depttel"/>
  1206. <col ref="posdept"/>
  1207. <col ref="emailaddr"/>
  1208. <col ref="rem"/>
  1209. <col ref="trgtmanid" visibility="hidden"/>
  1210. <col ref="rgstdd" visibility="hidden"/>
  1211. <col ref="seqno" visibility="hidden"/>
  1212. <col ref="doctrinecd" visibility="hidden"/>
  1213. <col ref="doctrinetrgtmanposcd" visibility="hidden"/>
  1214. <col ref="statflagcd" visibility="hidden"/>
  1215. <col ref="lactrnm" visibility="hidden"/>
  1216. <col ref="lactrid" visibility="hidden"/>
  1217. <col ref="doctrineprogrs" visibility="hidden"/>
  1218. <col ref="outer_chk" visibility="hidden"/>
  1219. <col ref="attdncdd_a" visibility="hidden"/>
  1220. <col ref="lactrnm_a" visibility="hidden"/>
  1221. <col ref="lactrid_a" visibility="hidden"/>
  1222. <col ref="doctrineprogrs_a" visibility="hidden"/>
  1223. <col ref="status" visibility="hidden"/>
  1224. <col ref="attdncchkflag" visibility="hidden"/>
  1225. <col ref="chkflag" visibility="hidden"/>
  1226. <col ref="doctrinergstdd" visibility="hidden"/>
  1227. <script type="javascript" ev:event="onclick">
  1228. <![CDATA[
  1229. fGetDoctrineTrgtManInfo();
  1230. model.refresh();
  1231. ]]>
  1232. </script>
  1233. <script type="javascript" ev:event="onaftersort">
  1234. <![CDATA[
  1235. grd_trgtmanlist.gridToInstance();
  1236. ]]>
  1237. </script>
  1238. </datagrid>
  1239. <button id="btn_pat" class="icon_search" style="left:1020px; top:595px; width:16px; height:16px; ">
  1240. <caption/>
  1241. <script type="javascript" ev:event="DOMActivate">
  1242. <![CDATA[
  1243. fSearchLactr();
  1244. ]]>
  1245. </script>
  1246. </button>
  1247. <caption id="caption1" class="cell_1" style="left:209px; top:662px; width:80px; height:23px; vertical-align:middle; ">비고</caption>
  1248. <input id="ipt_perchgr" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/perchgr" class="input_default" appearance="input" style="left:83px; top:665px; width:123px; height:19px; "/>
  1249. <caption id="caption13" class="cell_1" style="left:408px; top:614px; width:80px; height:23px; vertical-align:middle; ">주민번호</caption>
  1250. <input id="ipt_rgstno" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/rgstno" class="input_default" disabled="true" format="999999-9999999" appearance="input" style="left:491px; top:616px; width:134px; height:19px; "/>
  1251. </group>
  1252. </xhtml:body>
  1253. </xhtml:html>