123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>성사 및 미사일정등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <divsvcmasssche>
- <divsvcmassscheinfo>
- <clscd/>
- <clsnm/>
- <titlnm/>
- <fromdd_b/>
- <fromdd/>
- <todd/>
- <fromtm/>
- <totm/>
- <plcenm/>
- <trgtpsnqty/>
- <baptnm/>
- <pastorflag/>
- <outerpastoryn/>
- <voluntrnm/>
- <pastorid/>
- <pastornm/>
- <chrgconslrid/>
- <chrgconslrnm/>
- <seqno_b/>
- <seqno/>
- <scrncd/>
- <clsflag/>
- <status/>
- <schecnts/>
- </divsvcmassscheinfo>
- <conslrattntrlistinfo>
- <chk/>
- <conslrnm/>
- <conslrid/>
- <clscd/>
- <seqno/>
- <fromdd/>
- <status/>
- </conslrattntrlistinfo>
- <doctrinetrgtmanlistinfo>
- <chk/>
- <divsvctrgtmanposcd/>
- <doctrinecd/>
- <trgtmannm/>
- <brthdatedd/>
- <mpphontel/>
- <depttel/>
- <posdept/>
- <emailaddr/>
- <baptnm/>
- <divsvctrgtmanid/>
- <doctrinergstdd/>
- <clscd/>
- <seqno/>
- <fromdd/>
- <divsvctrgtmanseqno/>
- <doctrineseqno/>
- </doctrinetrgtmanlistinfo>
- <divsvctrgtmanlistinfo>
- <divsvctrgtmanposcd/>
- <trgtmannm/>
- <baptnm/>
- <brthdatedd/>
- <mpphontel/>
- <depttel/>
- <posdept/>
- <emailaddr/>
- <divsvctrgtmanid/>
- <clscd/>
- <seqno/>
- <fromdd/>
- <divsvctrgtmanseqno/>
- <rgstno/>
- </divsvctrgtmanlistinfo>
- <blsgcermytrgtmaninfo>
- <divsvctrgtmanposcd/>
- <trgtmannm/>
- <divsvctrgtmanid/>
- <clscd/>
- <seqno/>
- <fromdd/>
- <divsvctrgtmanseqno/>
- <blsg_status/>
- <divsvctrgtmannm/>
- </blsgcermytrgtmaninfo>
- <attachfile>
- <fileseqno/>
- <ftpfilepath/>
- <orgfilenm/>
- <filesize/>
- <filetype/>
- <filename/>
- <file/>
- <clscd/>
- <seqno/>
- <fromdd/>
- </attachfile>
- <rptfinfo>
- <clscd/>
- <seqno/>
- <fileseqno/>
- <ftpfilepath/>
- <orgfilenm/>
- <filename/>
- <filesize/>
- <filetype/>
- </rptfinfo>
- </divsvcmasssche>
- <userpopupinfo>
- <param/>
- <flag/>
- <searchitem/>
- </userpopupinfo>
- <item>
- <flag/>
- <searchitem/>
- </item>
- <tempuserinfo/>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <popupendflag/>
- <emplinfo>
- <empllist>
- <emplnm/>
- <baptnm/>
- <brthdatedd/>
- <mpphontel/>
- <depttel/>
- <posdept/>
- <emailaddr/>
- <emplid/>
- </empllist>
- </emplinfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- <search/>
- <conslrpastor/>
- </send>
- <init>
- <conslrattntrlist>
- <conslrattntrlistinfo>
- <chk/>
- <conslrnm/>
- <conslrid/>
- <clscd/>
- <seqno/>
- <fromdd/>
- <status/>
- </conslrattntrlistinfo>
- </conslrattntrlist>
- <comcodelist>
- <doctrinecd_cmblist/>
- <doctrinetrgtmanposcd_cmblist>
- </doctrinetrgtmanposcd_cmblist>
- <divsvctrgtmanposcd_cmblist>
- </divsvctrgtmanposcd_cmblist>
- <blsgcermytrgtmancd_cmblist>
- </blsgcermytrgtmancd_cmblist>
- <pastorflag>
- <A0450/>
- </pastorflag>
- </comcodelist>
- <rowadd/>
- </init>
- <hidden>
- <conslrpastor/>
- </hidden>
- <temp>
- <blsgcermytrgtmaninfo>
- <divsvctrgtmanposcd/>
- <trgtmannm/>
- <divsvctrgtmanid/>
- <clscd/>
- <seqno/>
- <fromdd/>
- <divsvctrgtmanseqno/>
- <blsg_status/>
- </blsgcermytrgtmaninfo>
- <reqdata>
- <seqno/>
- <scrncd/>
- <clscd/>
- </reqdata>
- <chklist>
- <msgno/>
- </chklist>
- </temp>
- </root>
- </instance>
- <submission id="TRZBC00101" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- <submission id="TRZBC00105" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- <submission id="TRAYA01501" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/init/conslrattntrlist"/>
- <submission id="TRAYA01502" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/divsvcmasssche"/>
- <submission id="TRAYA01503" ref="/root/send/savedata" method="post" resultref="/root/temp/attachfile"/>
- <submission id="TRAYA01504" ref="/root/send/search" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/emplinfo"/>
- <submission id="TXAYA01501" ref="/root/send/savedata" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/temp"/>
- <submission id="TXAYA01502" ref="/root/main/divsvcmasssche" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/temp"/>
- <submission id="TRAYA01303" ref="/root/send/conslrpastor" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/hidden/conslrpastor"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- /*=======================================================================
- // C1:견진, 세례, 태세, C2:병자, 고해, 혼인, 관면, C3:축복식(부서, 기계, 차량), C4: 미사, 장례
-
- ======================================================================= */
-
-
- //화면 오픈시
- function fInit() {
- //그리드 초기화
- model.removeNodeset("/root/main/divsvcmasssche/chrgconslrlistinfo");
- model.removeNodeset("/root/main/divsvcmasssche/doctrinetrgtmanlistinfo");
- model.removeNodeset("/root/main/divsvcmasssche/divsvctrgtmanlistinfo");
-
- // 추가행수 셋팅
- model.setValue("/root/init/rowadd", "1");
-
- //조회조건 콤보리스트 셋팅(교리명, 교리대상자 소속, 성사대상자 소속, 축복식대상자)
- /*
- zbcfGetCodeList(new Array("A0211", "A0212", "A0219", "A0220", "A0450"),
- new Array("/root/init/comcodelist/doctrinecd_cmblist", "/root/init/comcodelist/doctrinetrgtmanposcd_cmblist",
- "/root/init/comcodelist/divsvctrgtmanposcd_cmblist", "/root/init/comcodelist/blsgcermytrgtmancd_cmblist",
- "/root/init/comcodelist/pastorflag"), true);
- */
- zbcfGetCodeList(new Array("A0211", "A0450"),
- new Array("/root/init/comcodelist/doctrinecd_cmblist", "/root/init/comcodelist/pastorflag"), true);
-
- // 유형코드 가져오기
- zbcfGetKindCodeList(
- new Array("A0008", "A0008", "A0009"),
- new Array("A0212", "A0212", "A0212"),
- new Array("/root/init/comcodelist/divsvctrgtmanposcd_cmblist", "/root/init/comcodelist/doctrinetrgtmanposcd_cmblist", "/root/init/comcodelist/blsgcermytrgtmancd_cmblist"),
- true,
- new Array("dispseq", "dispseq", "dispseq"),
- new Array("asc", "asc", "asc")
- );
- model.refresh();
-
- //담당원목자 그리드 헤더 없애기
- //grd_chrgconslrlist.rowHeight(0) = 0;
- //참석원목자 전체 체크박스 설정
- //grd_conslrattntrlist.fixedcellcheckbox(0,1) = true;
-
- if (checkOpener()) {
- var scrncd = opener.javascript.getParameter("scrncd");
- var scrnstatus = opener.javascript.getParameter("scrnstatus");
- var condclsnm = opener.javascript.getParameter("condclsnm");
- var condclscd = opener.javascript.getParameter("condclscd");
- var clsflag = opener.javascript.getParameter("clsflag");
-
- var grd_clscd = opener.javascript.getParameter("grd_clscd");
- var grd_fromdd = opener.javascript.getParameter("grd_fromdd");
- var grd_seqno = opener.javascript.getParameter("grd_seqno");
- var grd_pastornm = opener.javascript.getParameter("grd_pastornm");
- } else {
- messageBox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
- }
- //성사/미사종류(화면코드)에 따른 화면 다르게 띄우기
- // C1:견진, 세례, 태세, C2:병자, 고해, 혼인, 관면, C3:축복식(부서, 기계, 차량), C4: 미사, 장례
- if (scrncd == 'C1') { // 세례
- model.toggle("case_doctrine");
-
- } else if (scrncd == 'C2') { //
- model.toggle("case_divsvc");
-
- } else if (scrncd == 'C3') { // 축복식
- model.toggle("case_blsgcermy");
-
- } else if (scrncd == 'C4') {
- model.toggle("case_mass");
- }
- // 신규등록
- if (scrnstatus == 'ins') { //등록시 팝업
- //화면 오픈시 성사/미사명에 이름 띄우기
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/clsnm", condclsnm);
- //화면 오픈시 성사/미사코드에 값 가져가기
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/clscd", condclscd);
- //저장시 구분하기 위한 화면 코드
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/scrncd", scrncd);
- // 분류코드
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/clsflag", clsflag);
- //등록 status설정
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/status",'i');
-
- //조회조건
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.makeNode("/root/send/reqdata/clscd");
- model.makeNode("/root/send/reqdata/fromdd");
- model.makeNode("/root/send/reqdata/todd");
- model.makeNode("/root/send/reqdata/seqno");
-
- var CurrentDate = getCurrentDate();
- model.setValue("/root/send/reqdata/fromdd", CurrentDate);
- model.setValue("/root/send/reqdata/todd", "99991231");
-
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/fromdd", CurrentDate);
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/todd", "99991231");
-
- //model.refresh();
-
- } else if (scrnstatus == 'updt') { //수정시 팝업
- //화면 오픈시 해당 교육일정 세부내용 띄우기
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.makeNode("/root/send/reqdata/clscd");
- model.makeNode("/root/send/reqdata/fromdd");
- model.makeNode("/root/send/reqdata/seqno");
- model.makeNode("/root/send/reqdata/scrncd");
-
- model.setValue("/root/send/reqdata/clscd", grd_clscd);
- model.setValue("/root/send/reqdata/fromdd", grd_fromdd);
- model.setValue("/root/send/reqdata/seqno", grd_seqno);
- model.setValue("/root/send/reqdata/scrncd", scrncd);
-
-
- // reqGetDivSvcMassScheInfo
- // getPrgmScheInfo, getDivSvcMassTrgtmanRgstInfo
- if (submit("TRAYA01502")) {
- //내부 주례자일 경우 disable
- if (model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastorid") != "") {
- ipt_pastornm.disabled = false;
- } else if (model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastornm") != "" && model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastorid") == "") {
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/outerpastoryn", 'Y');
- //model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastornm", pastornm );
- }
-
- //조회 건수가 없을 경우 축복식 노드 생성
- if (model.getValue("/root/main/divsvcmasssche/blsgcermytrgtmaninfo/divsvctrgtmanposcd") == "") {
- model.makeNode("/root/main/divsvcmasssche/blsgcermytrgtmaninfo");
- copyNodesetType("/root/main/divsvcmasssche/blsgcermytrgtmaninfo", "/root/temp/blsgcermytrgtmaninfo", "replace");
- } else {
- fBlsgCermyTrgtmanChg();
- }
-
- //조회건수가 없을 경우 파일첨부 노드 생성
- if (model.getValue("/root/main/divsvcmasssche/attachfile/filename") == "") {
- model.makeNode("/root/main/divsvcmasssche/attachfile");
- model.makeNode("/root/main/divsvcmasssche/attachfile/filename");
- model.makeNode("/root/main/divsvcmasssche/attachfile/file");
- model.makeNode("/root/main/divsvcmasssche/attachfile/clscd");
- model.makeNode("/root/main/divsvcmasssche/attachfile/seqno");
- model.makeNode("/root/main/divsvcmasssche/attachfile/fromdd");
- }
-
- //저장시 구분하기 위한 화면 코드
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/scrncd", scrncd);
- //수정 status설정
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/status",'u');
- //node 복사
- model.makeNode("/root/temp/main");
- model.copyNode("/root/temp/main","/root/main");
- }
- }
- model.refresh();
- }
-
- // 저장후 재조회
- function fReSearch()
- {
- if (checkOpener()) {
- /*
- var scrncd = opener.javascript.getParameter("scrncd");
-
- var scrnstatus = opener.javascript.getParameter("scrnstatus");
- var condclsnm = opener.javascript.getParameter("condclsnm");
- var condclscd = opener.javascript.getParameter("condclscd");
- var clsflag = opener.javascript.getParameter("clsflag");
-
- var grd_clscd = opener.javascript.getParameter("grd_clscd");
- var grd_fromdd = opener.javascript.getParameter("grd_fromdd");
- var grd_seqno = opener.javascript.getParameter("grd_seqno");
- */
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.makeNode("/root/send/reqdata/clscd");
- model.makeNode("/root/send/reqdata/fromdd");
- model.makeNode("/root/send/reqdata/seqno");
- model.makeNode("/root/send/reqdata/scrncd");
-
- model.setValue("/root/send/reqdata/clscd", model.getValue("/root/temp/reqdata/clscd"));
- //model.setValue("/root/send/reqdata/fromdd", grd_fromdd);
- model.setValue("/root/send/reqdata/seqno", model.getValue("/root/temp/reqdata/seqno"));
- model.setValue("/root/send/reqdata/scrncd", model.getValue("/root/temp/reqdata/scrncd"));
- }
-
-
- if (submit("TRAYA01502")) {
- /*
- //담당원목자 그리드 초기화
- if (model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/chrgconslrnm1") == "" ) {
- model.removeNodeset("/root/main/divsvcmasssche/chrgconslrlistinfo");
- }
- */
-
- //내부 주례자일 경우 disable
- if (model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastorid") != "") {
- ipt_pastornm.disabled = true;
- } else if (model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastornm") != "" && model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastorid") == "") {
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/outerpastoryn", 'Y');
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastornm", pastornm );
- }
-
- //조회 건수가 없을 경우 축복식 노드 생성
- if (model.getValue("/root/main/divsvcmasssche/blsgcermytrgtmaninfo/divsvctrgtmanposcd") == "") {
- model.makeNode("/root/main/divsvcmasssche/blsgcermytrgtmaninfo");
- copyNodesetType("/root/main/divsvcmasssche/blsgcermytrgtmaninfo", "/root/temp/blsgcermytrgtmaninfo", "replace");
- } else {
- fBlsgCermyTrgtmanChg();
- }
-
- //조회건수가 없을 경우 파일첨부 노드 생성
- if (model.getValue("/root/main/divsvcmasssche/attachfile/filename") == "") {
- model.makeNode("/root/main/divsvcmasssche/attachfile");
- model.makeNode("/root/main/divsvcmasssche/attachfile/filename");
- model.makeNode("/root/main/divsvcmasssche/attachfile/file");
- model.makeNode("/root/main/divsvcmasssche/attachfile/clscd");
- model.makeNode("/root/main/divsvcmasssche/attachfile/seqno");
- model.makeNode("/root/main/divsvcmasssche/attachfile/fromdd");
- }
-
- //저장시 구분하기 위한 화면 코드
- var scrncd = model.getValue("/root/temp/reqdata/scrncd");
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/scrncd", scrncd);
- //수정 status설정
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/status",'u');
- //node 복사
- model.makeNode("/root/temp/main");
- model.copyNode("/root/temp/main","/root/main");
- }
- }
-
- //노드 갯수 구함
- function getNodesetCnt(srchModel, path) {
- var insXml = srchModel.instances(0);
- var nodeList = insXml.selectNodes(path);
- return nodeList.length;
- }
-
- //교육시작일자 선택시 종료일자 동시 셋팅
- function fDivSvcMassDate() {
- var scrnstatus = opener.javascript.getParameter("scrnstatus");
- if (scrnstatus == 'ins') {
- var fromdd = model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/fromdd");
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/todd", "99991231");
- //ipt_todd.refresh();
- }
- }
-
- //담당원목자 선택(사용안함)
- function fChrgConslrSearch() {
- var chkflag = setParameter("chkflag", 'chrgconslr');
- modal("SPAYA02800", 1, 200, 100, "SPAYA02800", "/root/main/divsvcmasssche", "/root/init");
- //담당 원목자 셋팅
- var chrgconslrid1 = model.getValue("/root/main/divsvcmasssche/chrgconslrlistinfo[1]/conslrid");
- var chrgconslrid2 = model.getValue("/root/main/divsvcmasssche/chrgconslrlistinfo[2]/conslrid");
- var chrgconslrid3 = model.getValue("/root/main/divsvcmasssche/chrgconslrlistinfo[3]/conslrid");
-
- if ( chrgconslrid1 != "" ) {
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/chrgconslrid1", chrgconslrid1);
- }
- if (chrgconslrid2 != "" ) {
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/chrgconslrid2", chrgconslrid2);
- }
- if (chrgconslrid3 != "" ) {
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/chrgconslrid3", chrgconslrid3);
- }
- model.refresh();
- }
-
- //주례자 선택(pastor :y => 주례자, n: 담당원목자)
- function fPastorSearch(pastor){
- var chkflag = setParameter("chkflag", 'chrgpastor');
- var postorid = setParameter("pastorid", model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastorid"));
- var condclscd = opener.javascript.getParameter("condclscd");
- // model.resetInstanceNode("/root/popdata");
- // setParameter("SPAYA02800_joblncd", "A");
- // modal("SPAYA02800", 1, 200, 100);
- //modal("SPAYA02800",null,null,null, "SPAYA02800", "/root/actsource", "/root/main/actsource");
- /*
- if (model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastorid") != "") {
- model.resetInstanceNode("/root/main/divsvcmasssche/divsvcmassscheinfo/outerpastoryn");
- ipt_pastornm.disabled = true;
- } else {
- ipt_pastornm.disabled = false;
- }
- */
-
- // 주례자
- if (pastor == "Y")
- if(condclscd == "C0025"){ //대세등록시엔 원목자,사제 모두표시
- //alert(condclscd);
- model.resetInstanceNode("/root/popdata");
- setParameter("SPAYA02800_joblncd", "A"); //원목자,사제
- modal("SPAYA02800", 1, 200, 100);
-
- if (model.getValue("/root/popdata/conslrid") != "")
- {
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastorid" , model.getValue("/root/popdata/conslrid"));
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastornm" , model.getValue("/root/popdata/conslrnm"));
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/baptnm" , model.getValue("/root/popdata/baptnm"));
- }
- }
- else{
- model.resetInstanceNode("/root/popdata");
- setParameter("SPAYA02800_joblncd", "C"); //사제
- modal("SPAYA02800", 1, 200, 100);
-
- if (model.getValue("/root/popdata/conslrid") != "")
- {
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastorid" , model.getValue("/root/popdata/conslrid"));
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastornm" , model.getValue("/root/popdata/conslrnm"));
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/baptnm" , model.getValue("/root/popdata/baptnm"));
- }
-
- }
- // 원목자
- else
- {
- model.resetInstanceNode("/root/popdata");
- setParameter("SPAYA02800_joblncd", "A");
- modal("SPAYA02800", 1, 200, 100);
-
- if (model.getValue("/root/popdata/conslrid") != "")
- {
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/chrgconslrid", model.getValue("/root/popdata/conslrid"));
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/chrgconslrnm", model.getValue("/root/popdata/conslrnm"));
- }
- }
-
- model.refresh();
- }
-
- //대상자 소속에 따른 성사대상자 조회 팝업
- function fDivSvcTrgtmanSearch() {
- var idx = grd_divsvc.row;
- var idxTrgtmanposcd = model.getValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/divsvctrgtmanposcd");
- /*
- ST1 : 환자
- ST2 : 보호자
- ST3 : 사원
- */
- if ( idxTrgtmanposcd == 'DT1') { //환자
- modal("SPAYA05300", 1,100,100);
- //modal("SPAYA05300",null,null,null, "SPAYA05300", "/root/actsource", "/root/main/actsource");
-
- if (model.getValue("/root/main/popupendflag") == "ok")
- {
- model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/trgtmannm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/baptnm", model.getValue("/root/main/patinfo/patinfolist/baptnm"));
- model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/brthdatedd", model.getValue("/root/main/patinfo/patinfolist/brthdd"));
- model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/mpphontel", model.getValue("/root/main/patinfo/patinfolist/mpphontel"));
- model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/divsvctrgtmanid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/emailaddr", model.getValue("/root/main/patinfo/patinfolist/email"));
-
- if (grd_divsvc.rowStatus(idx) == "0")
- {
- grd_divsvc.addStatus(grd_divsvc.row,"update");
- }
- }
- //alert(grd_divsvc.rowStatus(idx));
-
- } else if (idxTrgtmanposcd == 'DT3') { //사원
- model.resetInstanceNode("/root/main/userpopupinfo");
- model.removeNodeset("/root/main/tempuserinfo");
- model.makeNode("/root/main/tempuserinfo");
-
- model.setValue("/root/main/userpopupinfo/param", "_OneS_DD");
- modal("../../userdeptinfoweb/xrw/SPZSU10103_사용자부서선택조회", "", "200", "200", "SPZSU10103","/root/main/userpopupinfo","/root/main/temp");
-
- var iParam = getParameter("SPZSU10103_");
- setCSVToNode("/root/main/tempuserinfo", iParam);
- clearParameter("SPZSU10103_");
- var rowcnt = getNodesetCnt(model1, "/root/main/tempuserinfo/userid");
- var userid = model.getValue("/root/main/tempuserinfo/list/usernm");
- //if (rowcnt >= 1)
- if (userid !== '')
- {
- /*
- model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/trgtmannm", model.getValue("/root/main/tempuserinfo/list/usernm"));
- model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/divsvctrgtmanid", model.getValue("/root/main/tempuserinfo/list/userid"));
- // model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/baptnm", model.getValue("/root/main/tempuserinfo/list/"));
- // model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/brthdatedd", model.getValue("/root/main/tempuserinfo/list/"));
- // model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/mpphontel", model.getValue("/root/main/tempuserinfo/list/"));
- // model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/depttel", model.getValue("/root/main/tempuserinfo/list/"));
- model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/posdept", model.getValue("/root/main/tempuserinfo/list/posdeptnm"));
- // model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/emailaddr", model.getValue("/root/main/tempuserinfo/list/"));
- */
-
- model.removeNodeset("/root/send/search");
- model.makeValue("/root/send/search/emplno", model.getValue("/root/main/tempuserinfo/list/userid"));
- model.removeNodeset("/root/main/emplinfo/emplist");
- // 사원정보 조회
- if ( submit("TRAYA01504", false) == true)
- {
- model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/trgtmannm", model.getValue("/root/main/emplinfo/empllist/emplnm"));
- model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/baptnm", model.getValue("/root/main/emplinfo/empllist/baptnm"));
- model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/brthdatedd", model.getValue("/root/main/emplinfo/empllist/brthdatedd"));
- model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/depttel", model.getValue("/root/main/emplinfo/empllist/depttel"));
- model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/mpphontel", model.getValue("/root/main/emplinfo/empllist/mpphontel"));
- model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/posdept", model.getValue("/root/main/emplinfo/empllist/posdept"));
- model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/emailaddr", model.getValue("/root/main/emplinfo/empllist/emailaddr"));
- model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/divsvctrgtmanid", model.getValue("/root/main/emplinfo/empllist/emplid"));
-
- if (grd_divsvc.rowStatus(idx) == "0")
- {
- grd_divsvc.addStatus(grd_divsvc.row,"update");
- }
- }
-
-
- }
- }
- model.refresh();
- }
-
- // 대상자 entercell
- function fDivsvcEnterCell()
- {
- var idx = grd_divsvc.row;
- var idxTrgtmanposcd = model.getValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/divsvctrgtmanposcd");
- /*
- ST1 : 환자
- ST2 : 보호자
- ST3 : 사원
- */
- //alert(grd_divsvc.rowStatus(idx));
- if (grd_divsvc.rowStatus(idx) == "1" || grd_divsvc.rowStatus(idx) == "3")
- {
- grd_divsvc.isReadOnly(idx, grd_divsvc.colRef("divsvctrgtmanposcd")) = false;
- }
- else
- {
- grd_divsvc.isReadOnly(idx, grd_divsvc.colRef("divsvctrgtmanposcd")) = true;
- }
-
- if ( idxTrgtmanposcd == 'DT1') { //환자
- //grd_list.isReadOnly(grd_list.row, grd_list.colRef("rrgstno1")) = false;
- grd_divsvc.isReadOnly(idx, grd_divsvc.colRef("baptnm")) = true;
- grd_divsvc.isReadOnly(idx, grd_divsvc.colRef("brthdatedd")) = true;
- grd_divsvc.isReadOnly(idx, grd_divsvc.colRef("mpphontel")) = true;
- grd_divsvc.isReadOnly(idx, grd_divsvc.colRef("emailaddr")) = true;
-
- if (grd_divsvc.colType(grd_divsvc.col) == "input")
- grd_divsvc.editCell();
- } else if (idxTrgtmanposcd == "DT3") { //사원
- grd_divsvc.isReadOnly(idx, grd_divsvc.colRef("baptnm")) = true;
- grd_divsvc.isReadOnly(idx, grd_divsvc.colRef("brthdatedd")) = true;
- grd_divsvc.isReadOnly(idx, grd_divsvc.colRef("mpphontel")) = true;
- grd_divsvc.isReadOnly(idx, grd_divsvc.colRef("emailaddr")) = true;
-
- if (grd_divsvc.colType(grd_divsvc.col) == "input")
- grd_divsvc.editCell();
-
- } else if (idxTrgtmanposcd == "DT2"){ // 보호자
- grd_divsvc.isReadOnly(idx, grd_divsvc.colRef("baptnm")) = false;
- grd_divsvc.isReadOnly(idx, grd_divsvc.colRef("brthdatedd")) = false;
- grd_divsvc.isReadOnly(idx, grd_divsvc.colRef("mpphontel")) = false;
- grd_divsvc.isReadOnly(idx, grd_divsvc.colRef("emailaddr")) = false;
-
- if (grd_divsvc.colType(grd_divsvc.col) == "input")
- grd_divsvc.editCell();
- }
- model.refresh();
- }
-
-
- //축복식 대상자에 따른 컨트롤 보이기
- function fBlsgCermyTrgtmanChg(){
- var trgtmanposcd = model.getValue("/root/main/divsvcmasssche/blsgcermytrgtmaninfo/divsvctrgtmanposcd");
- /*
- BT1 : 부서
- BT2 : 기계
- BT3 : 사원
- DT3 : 교직원
- DT5 : 부서
- DT4 : 기타 ipt_blsgcermytrgtmannm
- */
- if (trgtmanposcd == 'DT5' || trgtmanposcd == 'DT4') {
- btn_blsgcermySearch.visible = false;
- cap_blsgcermytrgtmanid.visible = false;
- ipt_blsgcermytrgtmanid.visible = false;
- ipt_blsgcermytrgtmannm.disabled = false;
- ipt_blsgcermytrgtmannm.visible = false;
- } else if ( trgtmanposcd == 'DT3') {
- btn_blsgcermySearch.visible = true;
- cap_blsgcermytrgtmanid.visible = true;
- ipt_blsgcermytrgtmanid.visible = true;
- ipt_blsgcermytrgtmannm.disabled = true;
- ipt_blsgcermytrgtmanid.disabled = true;
- ipt_blsgcermytrgtmannm.visible = true;
- }
- }
-
- //대상자 소속에 따른 축복식대상자 조회 팝업
- function fBlsgCermyTrgtmanSearch() {
- var trgtmanposcd = model.getValue("/root/main/divsvcmasssche/blsgcermytrgtmaninfo/divsvctrgtmanposcd");
- if ( trgtmanposcd == 'DT3') { // 사원
- model.resetInstanceNode("/root/main/userpopupinfo");
- model.removeNodeset("/root/main/tempuserinfo");
- model.makeNode("/root/main/tempuserinfo");
-
- model.setValue("/root/main/userpopupinfo/param", "_OneS_DD");
- modal("../../userdeptinfoweb/xrw/SPZSU10103_사용자부서선택조회", "", "200", "200", "SPZSU10103","/root/main/userpopupinfo","/root/main/temp");
-
- var iParam = getParameter("SPZSU10103_");
- setCSVToNode("/root/main/tempuserinfo", iParam);
- clearParameter("SPZSU10103_");
-
- model.setValue("/root/main/divsvcmasssche/blsgcermytrgtmaninfo/divsvctrgtmannm", model.getValue("/root/main/tempuserinfo/list/usernm"));
- model.setValue("/root/main/divsvcmasssche/blsgcermytrgtmaninfo/divsvctrgtmanid" , model.getValue("/root/main/tempuserinfo/list/userid"));
- model.refresh();
- }
- }
-
- //필수 저장여부 체크
- function fCheckMandatoryInput() {
- if (model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/fromdd") == "") {
- messageBox("성사/미사일자는","I003");
- model.setFocus("ipt_fromdd");
- return false;
- }
-
- //화면에 따라 저장 그리드 변경
- var scrncd = model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/scrncd");
- if (scrncd == 'C2')
- {
- for(var i = 1; i < grd_divsvc.rows; i++)
- {
- var divsvctrgtmanposcd = model.getValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + i + "]/divsvctrgtmanposcd");
- var trgtmannm = model.getValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + i + "]/trgtmannm");
-
- var status = grd_divsvc.rowStatus(i);
-
- if (divsvctrgtmanposcd == "")
- {
- messageBox("대상자소속은","I003")
- grd_divsvc.col = grd_divsvc.colRef("divsvctrgtmanposcd");
- grd_divsvc.editCell();
- return false;
- }
-
- //alert(status);
-
- if (status == "0" || status == "1" || status == "2" || status == "3")
- {
- if (trgtmannm == "")
- {
- messageBox("대상자명은","I003");
- grd_divsvc.col = grd_divsvc.colRef("trgtmannm");
-
- if (grd_divsvc.colType(grd_divsvc.col) == "input")
- grd_divsvc.editCell();
- //grd_divsvc.editCell();
- return false;
- }
- }
- }
- }
-
- return true;
- }
-
- //외부 주례자를 체크했을 경우
- function fClickOuter_Chk() {
- //model.resetInstanceNode("/root/main/divsvcmasssche/divsvcmassscheinfo/pastornm");
- model.resetInstanceNode("/root/main/divsvcmasssche/divsvcmassscheinfo/pastorid");
-
- model.resetInstanceNode("/root/main/divsvcmasssche/divsvcmassscheinfo/baptnm");
- model.resetInstanceNode("/root/main/divsvcmasssche/divsvcmassscheinfo/pastorflag");
- //alert(chk_outer.value);
- if (chk_outer.value == "Y")
- {
- btn_pastor.disabled = true;
- ipt_pastornm.disabled = false;
- ipt_baptnm.disabled = false;
- //cmb_pastorflag.disabled = false;
- }
- else
- {
- btn_pastor.disabled = false;
- ipt_pastornm.disabled = false;
- ipt_baptnm.disabled = true;
- //cmb_pastorflag.disabled = true;
- }
- model.refresh();
- }
-
- //저장 버튼 클릭시
- function fSavaDivSvcMassSche() {
- var status = model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/status");
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.makeNode("/root/send/savedata/scheinfo");
- model.makeNode("/root/send/savedata/conslrinfo");
- model.makeNode("/root/send/savedata/doctrineinfo");
- model.makeNode("/root/send/savedata/divsvcinfo");
- model.makeNode("/root/send/savedata/blsgcermyinfo");
- model.makeNode("/root/send/savedata/file");
- model.makeNode("/root/send/savedata/rptfinfo");
-
- var clscd = model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/clscd");
- var seqno = model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/seqno");
- var fromdd = model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/fromdd");
-
- //주례자ID 체크여부 확인
- var outerpastoryn = model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/outerpastoryn");
- var pastorid = model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastorid");
- var pastornm = model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastornm");
-
- if(pastorid == ""){
- if (outerpastoryn =="" || pastornm == "" ){
- messageBox("주례자정보를","C001" );
- model.refresh();
- return;
- }
- }
-
- if(outerpastoryn !="Y"){
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/outerpastoryn","N");
- model.refresh ();
- }
-
- model.resetInstanceNode("/root/hidden/errmsg");
-
- if (status == 'i' ) { //일정 저장할 때
- //일정 저장
- model.copyNode("/root/send/savedata/scheinfo","/root/main/divsvcmasssche");
-
- } else if (status == 'u') { //일정 수정할 때
- //변경여부 체크
- /*
- if (instance1.selectSingleNode("/root/main").xml == instance1.selectSingleNode("/root/temp/main").xml) {
- messageBox("변경된 데이터가 ","I004");
- return;
- } else {
- //일정 저장
- model.copyNode("/root/send/savedata/scheinfo","/root/main/divsvcmasssche");
- }
- */
-
- model.copyNode("/root/send/savedata/scheinfo","/root/main/divsvcmasssche");
- }
-
- //참석현황(참석 원목자 리스트) 저장
- /*
- var attntrConslrchk = model.getValue("/root/main/divsvcmasssche/conslrattntrlistinfo/chk");
- for(var i = 1; i < grd_conslrattntrlist.rows; i++) {
- var chkFlag = model.getValue("/root/main/divsvcmasssche/conslrattntrlistinfo[" + i + "]/chk"); //체크되었을 때 true를 반환함
- model.setValue("/root/main/divsvcmasssche/conslrattntrlistinfo[" + i + "]/clscd", clscd);
- model.setValue("/root/main/divsvcmasssche/conslrattntrlistinfo[" + i + "]/fromdd", fromdd);
- if (chkFlag == "true") {
- model.setValue("/root/main/divsvcmasssche/conslrattntrlistinfo[" + i + "]/status",'i'); //status에 상관없이 해당 일정의 참석자 명단을 delete -> insert
- }
- }
- model.setValue("/root/send/savedata/conslrinfo",grd_conslrattntrlist.getUpdateDataAll("i"));
- */
-
- //화면에 따라 저장 그리드 변경
- var scrncd = model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/scrncd");
- if (scrncd == 'C1') {
- for(var i = 1; i < grd_doctrine.rows; i++) {
- model.setValue("/root/main/divsvcmasssche/doctrinetrgtmanlistinfo[" + i + "]/clscd", clscd);
- model.setValue("/root/main/divsvcmasssche/doctrinetrgtmanlistinfo[" + i + "]/fromdd", fromdd);
-
- if (grd_doctrine.rowStatus(i) == "0" || grd_doctrine.rowStatus(i) == "2")
- {
- grd_doctrine.addStatus(i,"update");
- }
-
- //alert(grd_doctrine.rowStatus(i));
- }
- model.setValue("/root/send/savedata/doctrineinfo", grd_doctrine.getUpdateData());
-
- } else if (scrncd == 'C2') {
- for(var i = 1; i < grd_divsvc.rows; i++) {
- model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + i + "]/clscd", clscd);
- model.setValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + i + "]/fromdd", fromdd);
- }
- model.setValue("/root/send/savedata/divsvcinfo",grd_divsvc.getUpdateData());
-
- } else if (scrncd == 'C3') {
- var divsvctrgtmanposcd_main = model.getValue("/root/main/divsvcmasssche/blsgcermytrgtmaninfo/divsvctrgtmanposcd");
- var divsvctrgtmanposcd_temp = model.getValue("/root/temp/main/divsvcmasssche/blsgcermytrgtmaninfo/divsvctrgtmanposcd");
-
- model.setValue("/root/main/divsvcmasssche/blsgcermytrgtmaninfo/clscd", clscd);
- model.setValue("/root/main/divsvcmasssche/blsgcermytrgtmaninfo/fromdd", fromdd);
-
- //변경여부 체크
- if ( divsvctrgtmanposcd_main != "" && divsvctrgtmanposcd_temp == "") {
- //대상자 저장
- model.setValue("/root/main/divsvcmasssche/blsgcermytrgtmaninfo/blsg_status",'i');
- } else if ( divsvctrgtmanposcd_main != "" && divsvctrgtmanposcd_temp != "") {
- //대상자 수정
- model.setValue("/root/main/divsvcmasssche/blsgcermytrgtmaninfo/blsg_status",'u');
- } else if ( divsvctrgtmanposcd_main == "" && divsvctrgtmanposcd_temp != "") {
- //대상자 삭제
- model.setValue("/root/main/divsvcmasssche/blsgcermytrgtmaninfo/blsg_status", 'd');
- }
-
- var nodeList = instance1.selectNodes("/root/main/divsvcmasssche/blsgcermytrgtmaninfo");
- var blsgcermyinfo = getNodeListCSV(nodeList);
- model.setValue("/root/send/savedata/blsgcermyinfo", blsgcermyinfo);
-
- // 첨부파일
- //model.copyNode("/root/send/savedata/file","/root/main/divsvcmasssche/attachfile/file");
- }
- model.refresh();
-
- // reqExeDivSvcMassScheInfo
- // insDivSvcMassScheInfo
- if (submit("TXAYA01501", false) == true)
- {
- // 같은 분류, 동일 동시간대 데이터 중복여부 체크
- if(model.getValue("/root/temp/chklist/msgno") == "1"){
- messageBox("동일 동시간대 데이터가", "E006" );
- return;
- }
-
- messageBox("자료 저장이 ","I002");
-
- if (checkOpener()) {
- var InsUpdtValue = opener.model.setValue(opener.root.init.insupdtvalue, 'y'); //저장, 수정 후 재조회하기 위한 값 넘기기
- }
- model.close();
- //fReSearch()
-
- //fInit();
- }
- else
- {
-
- }
- model.refresh();
- /////////////////////////////////////////
- /*
- //첨부파일을 저장한다.
- var ins = instance1.selectSingleNode("/root/main/divsvcmasssche/attachfile");
- var nodeExistYN = ins.hasChildNodes();
- if(nodeExistYN == 1){
- model.setValue("/root/main/divsvcmasssche/attachfile/clscd", model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/clscd"));
- model.setValue("/root/main/divsvcmasssche/attachfile/seqno", model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/seqno"));
- model.setValue("/root/main/divsvcmasssche/attachfile/fromdd", model.getValue("/root/main/divsvcmasssche/divsvcmassscheinfo/fromdd"));
- submit("TXAYA01502");
- }
- */
- //////////////////////////////////////////
-
- //model.close();
-
- if (checkOpener()) {
- var InsUpdtValue = opener.model.setValue(opener.root.init.insupdtvalue, 'y'); //저장, 수정 후 재조회하기 위한 값 넘기기
- } else {
- messageBox("상위화면이 변경되어 데이터를 전달할 수 ","I004");
- }
- }
-
- //세례, 견진성사 대상자 삭제
- function fDelDoctrineTrgtMan() {
- var idx = grd_doctrine.row;
- /*
- if ( model.getValue("/root/main/divsvcmasssche/doctrinetrgtmanlistinfo[" + idx + "]/doctrinecd") != ""){
- var btn = messageBox("선택한 대상자를 ", "Q001");
- if (btn == '6') {
- //grd_doctrine.deleteItem(idx);
- grd_doctrine.addStatus(grd_doctrine.row,"delete");
- //model.setValue("/root/main/divsvcmasssche/doctrinetrgtmanlistinfo[" + idx + "]/status", "d");
-
- } else if (btn == '7') {
- return;
- }
- }
- */
-
- if (idx < 1) return;
-
- if (grd_doctrine.rowStatus(grd_doctrine.row) == "1" || grd_doctrine.rowStatus(grd_doctrine.row) == "3")
- {
- grd_doctrine.deleteRow(grd_doctrine.row);
- }
- else
- {
- grd_doctrine.addStatus(grd_doctrine.row,"delete");
- }
- }
-
- // 혼인,관면,병자성사 대상자 추가
- function fAddDivSvcTrgtMan()
- {
- /*
- if (grd_divsvc.rows <= 1)
- {
- grd_divsvc.addItem();
- model.refresh();
- }
- else
- {
- for (i = 1; i < grd_divsvc.rows; i++)
- {
- if (grd_divsvc.valueMatrix(i, grd_divsvc.colRef("divsvctrgtmanposcd")) == "")
- {
- //fGrdSetFocus(grd_famy, i, 0);
- grd_divsvc.col = grd_divsvc.colRef("divsvctrgtmanposcd");
- grd_divsvc.editCell();
- return;
- }
-
- if (grd_divsvc.valueMatrix(i, grd_divsvc.colRef("trgtmannm")) == "")
- {
- //fGrdSetFocus(grd_famy, i, 0);
- grd_divsvc.col = grd_divsvc.colRef("trgtmannm");
- //grd_divsvc.editCell();
- return;
- }
-
- }
- grd_divsvc.addItem();
- lrow = grd_divsvc.rows -1;
-
- //model.setValue("/root/main/list/itemlist[" + lrow + "]/coophospcd", model.getValue("/root/send/search/coophospcd"));
- //grd_divsvc.col = grd_list.colRef("rrgstno1");
- //grd_divsvc.editCell();
- model.refresh();
- }
- */
-
- if (ipt_rowadd.currentText > "0")
- {
- var rowcnt = ipt_rowadd.currentText;
- for (i=1; i <= rowcnt; i++)
- {
- grd_divsvc.addItem();
- }
- model.refresh();
- }
- else
- {
- //messageBox("추가행수가를 ", "Q001");
- }
-
- }
-
- //혼인, 관면, 병자성사 대상자 삭제
- function fDelDivSvcTrgtMan() {
- /*
- var idx = grd_divsvc.row;
- if ( model.getValue("/root/main/divsvcmasssche/divsvctrgtmanlistinfo[" + idx + "]/divsvctrgtmanposcd") != "") {
- var btn = messageBox("선택한 대상자를 ", "Q001");
- if (btn == '6') {
- grd_divsvc.deleteItem(idx);
- } else if (btn == '7') {
- return;
- }
- } else {
- grd_divsvc.deleteItem(idx);
- }
- */
-
- if (grd_divsvc.row < 1) return;
-
- if (grd_divsvc.rowStatus(grd_divsvc.row) == "1" || grd_divsvc.rowStatus(grd_divsvc.row) == "3")
- {
- grd_divsvc.deleteRow(grd_divsvc.row);
- }
- else
- {
- grd_divsvc.addStatus(grd_divsvc.row,"delete");
- }
- }
-
- //축복식 대상자 삭제
- function fDelBlsgCermyTrgtMan() {
- if (model.getValue("/root/main/divsvcmasssche/blsgcermytrgtmaninfo/divsvctrgtmanposcd") !="" ) {
- var btn = messageBox("선택한 대상자를 ", "Q001");
- if (btn == '6') {
- model.resetInstanceNode("/root/main/divsvcmasssche/blsgcermytrgtmaninfo/divsvctrgtmanposcd");
- model.resetInstanceNode("/root/main/divsvcmasssche/blsgcermytrgtmaninfo/trgtmannm");
- model.resetInstanceNode("/root/main/divsvcmasssche/blsgcermytrgtmaninfo/divsvctrgtmanid");
- // model.setValue("/root/main/divsvcmasssche/blsgcermytrgtmaninfo/blsg_status", 'd');
- model.refresh();
- } else if (btn == '7') {
- return;
- }
- }
- }
-
- // 성사대상자명단 Popup
- function fAYA01600()
- {
- //modal("SPAYA01600",1,100,100);
- modal("SPAYA01600",null,null,null, "SPAYA01600", "/root/actsource", "/root/main/actsource");
-
- var rowcnt = getNodesetCnt(model1, "/root/main/popdoctrine/list");
- //alert(rowcnt);
- for (var i = 1; i <= rowcnt; i++)
- {
- var chkyn = 'Y';
- var newdivsvctrgtmanid = model.getValue("/root/main/popdoctrine/list[" + i + "]/divsvctrgtmanid");
- //alert("1:"+newdivsvctrgtmanid);
- for (var j=0; j< grd_doctrine.rows; j++)
- {
- if (grd_doctrine.rowStatus(j) == "0" || grd_doctrine.rowStatus(j) == "1" || grd_doctrine.rowStatus(j) == "2" || grd_doctrine.rowStatus(j) == "3")
- {
- olddivsvctrgtmanid = model.getValue("/root/main/divsvcmasssche/doctrinetrgtmanlistinfo[" + j + "]/divsvctrgtmanid");
- //alert("2:"+olddivsvctrgtmanid);
- if (newdivsvctrgtmanid == olddivsvctrgtmanid)
- {
- chkyn = "N";
- break;
- }
- }
- }
- //alert(chkyn);
- if (chkyn == "Y")
- {
- grd_doctrine.addRow(false);
- model.copyNode("/root/main/divsvcmasssche/doctrinetrgtmanlistinfo[" + (grd_doctrine.rows -1) + "]", "/root/main/popdoctrine/list[" + i + "]");
- }
- }
- model.refresh();
- }
-
- // 담당원목자명/주례자명으로 찾기
- function fGetConslrID(pastor, pastornm)
- {
- model.removeNodeset('/root/send/conslrpastor');
- model.resetInstanceNode("/root/hidden/conslrpastor/chrgconslrlistinfo");
-
- model.makeNode('/root/send/conslrpastor/conslrpastornm');
- model.setValue('/root/send/conslrpastor/conslrpastornm', pastornm);
-
-
- if (pastornm == "")
- {
- // 주례자
- if (pastor == "Y")
- {
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastorid", "");
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastornm", "");
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/baptnm", "");
- }
- // 원목자
- else
- {
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/chrgconslrid", "");
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/chrgconslrnm", "");
- }
- return;
- }
- if(submit('TRAYA01303', false) == true)
- {
- var nodecnt = getNodesetCnt(model1, "/root/hidden/conslrpastor/chrgconslrlistinfo");
-
- // 두건 이상일때는 팝업
- if (nodecnt > 1)
- {
- fPastorSearch(pastor);
- }
- else
- {
-
- var conslrid = model.getValue('/root/hidden/conslrpastor/chrgconslrlistinfo/conslrpastorid');
-
- // 찾는 사람이 없을 때도 팝업
- if (conslrid == "")
- {
- fPastorSearch(pastor);
- }
- else
- {
- // 주례자
- if (pastor == "Y")
- {
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastorid", model.getValue("/root/hidden/conslrpastor/chrgconslrlistinfo/conslrpastorid"));
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastornm", model.getValue("/root/hidden/conslrpastor/chrgconslrlistinfo/conslrpastornm"));
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/baptnm", model.getValue("/root/hidden/conslrpastor/chrgconslrlistinfo/baptnm"));
- }
- // 원목자
- else
- {
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/chrgconslrid", model.getValue("/root/hidden/conslrpastor/chrgconslrlistinfo/conslrpastorid"));
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/chrgconslrnm", model.getValue("/root/hidden/conslrpastor/chrgconslrlistinfo/conslrpastornm"));
- }
-
- }
- }
- }
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1007" pageheight="769" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:990px; height:744px; "/>
- <group id="group5" scroll="auto" style="left:0px; top:742px; width:990px; height:27px; "/>
- <group id="group2" style="left:0px; top:0px; width:990px; height:742px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:11px; width:175px; height:14px; ">성사 및 미사 일정관련사항</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:990px; y2:26px; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:31px; width:80px; height:23px; vertical-align:middle; ">성사/미사명</caption>
- <line id="line6" class="line_3" style="x1:0px; y1:102px; x2:990px; y2:102px; "/>
- <caption id="caption19" style="left:760px; top:84px; width:20px; height:15px; vertical-align:middle; ">명</caption>
- <line id="line9" class="line_2" style="x1:0px; y1:77px; x2:990px; y2:77px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:53px; x2:990px; y2:53px; "/>
- <switch id="switch1" class="sw_box" style="left:0px; top:105px; width:984px; height:630px; border-style:solid; ">
- <case id="case_blsgcermy">
- <line id="line4" class="line_1" style="x1:4px; y1:24px; x2:978px; y2:24px; "/>
- <caption id="caption12" class="tit_2" style="left:9px; top:9px; width:139px; height:13px; ">성사 대상자 등록</caption>
- <select1 id="combo2" ref="/root/main/divsvcmasssche/blsgcermytrgtmaninfo/divsvctrgtmanposcd" class="combo_default" appearance="minimal" style="left:102px; top:31px; width:145px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comcodelist/blsgcermytrgtmancd_cmblist/A0009A0212">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.resetInstanceNode("/root/main/divsvcmasssche/blsgcermytrgtmaninfo/trgtmannm");
- model.resetInstanceNode("/root/main/divsvcmasssche/blsgcermytrgtmaninfo/divsvctrgtmanid");
- model.refresh();
- fBlsgCermyTrgtmanChg();
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="cell_1" style="left:4px; top:29px; width:95px; height:23px; vertical-align:middle; ">소속</caption>
- <input id="ipt_blsgcermytrgtmannm" ref="/root/main/divsvcmasssche/blsgcermytrgtmaninfo/divsvctrgtmannm" class="input_default" imemode="hangul" appearance="input" style="left:706px; top:31px; width:77px; height:19px; "/>
- <line id="line8" class="line_3" style="x1:4px; y1:53px; x2:970px; y2:53px; "/>
- <button id="btn_blsgcermySearch" class="icon_search" style="left:685px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fBlsgCermyTrgtmanSearch();
- ]]>
- </script>
- </button>
- <caption id="caption16" class="cell_1" style="left:250px; top:29px; width:95px; height:23px; vertical-align:middle; ">대상명</caption>
- <caption id="cap_blsgcermytrgtmanid" class="cell_1" style="left:498px; top:29px; width:95px; height:23px; vertical-align:middle; ">대상자아이디</caption>
- <input id="ipt_blsgcermytrgtmanid" ref="/root/main/divsvcmasssche/blsgcermytrgtmaninfo/divsvctrgtmanid" class="input_default" appearance="input" style="left:596px; top:31px; width:83px; height:19px; "/>
- <button id="button2" class="btn2_letter2" style="left:936px; top:4px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelBlsgCermyTrgtMan();
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/main/divsvcmasssche/blsgcermytrgtmaninfo/trgtmannm" style="left:348px; top:31px; width:147px; height:19px; "/>
- </case>
- <case id="case_doctrine">
- <button id="button15" class="btn2_letter7" style="left:815px; top:4px; width:97px; height:19px; ">
- <caption>성사대상자명단</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAYA01600();
- ]]>
- </script>
- </button>
- <caption id="caption4" class="tit_2" style="left:9px; top:9px; width:177px; height:13px; ">성사 대상자 등록</caption>
- <line id="line5" class="line_1" style="x1:0px; y1:24px; x2:980px; y2:24px; "/>
- <datagrid id="grd_doctrine" nodeset="/root/main/divsvcmasssche/doctrinetrgtmanlistinfo" caption="^대상자 소속^교리코드^대상자명^세례명^휴대전화^부서전화^소속부서^이메일주소^주민번호^생년월일^대상자아이디^등록일자^분류코드^일련번호^시작일자^성사일련번호^caption1" colwidth="46, 75, 100, 75, 100, 100, 90, 110, 125, 100, 80, 80, 50, 50, 50, 50, 50, 100" dataheight="25" extendlastcol="scroll" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" colsep="^" style="left:0px; top:29px; width:980px; height:596px; ">
- <col ref="chk" type="checkbox" visibility="hidden"/>
- <col ref="divsvctrgtmanposcd" type="combo" disabled="true">
- <choices>
- <itemset nodeset="/root/init/comcodelist/doctrinetrgtmanposcd_cmblist/A0008A0212">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="doctrinecd" visibility="hidden"/>
- <col ref="trgtmannm"/>
- <col ref="baptnm"/>
- <col ref="mpphontel"/>
- <col ref="depttel"/>
- <col ref="posdept"/>
- <col ref="emailaddr"/>
- <col ref="rgstno" format="999999-9999999" style="text-align:center; "/>
- <col ref="brthdatedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="divsvctrgtmanid" style="text-align:center; "/>
- <col ref="doctrinergstdd" visibility="hidden"/>
- <col ref="clscd" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="fromdd" visibility="hidden"/>
- <col ref="divsvctrgtmanseqno" visibility="hidden"/>
- <col ref="doctrineseqno" visibility="hidden"/>
- </datagrid>
- <button id="button3" class="btn2_letter3" style="left:915px; top:4px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelDoctrineTrgtMan();
- ]]>
- </script>
- </button>
- </case>
- <case id="case_divsvc" selected="true">
- <caption id="caption8" class="tit_2" style="left:9px; top:9px; width:126px; height:13px; ">성사 대상자 등록</caption>
- <line id="line3" class="line_1" style="x1:4px; y1:24px; x2:978px; y2:24px; "/>
- <datagrid id="grd_divsvc" nodeset="/root/main/divsvcmasssche/divsvctrgtmanlistinfo" caption="대상자 소속^대상자명^세례명^생년월일^휴대전화^부서전화^소속부서^이메일주소^대상자아이디^분류코드^일련번호^시작일자^성사일련번호" colwidth="90, 100, 100, 82, 120, 78, 120, 181, 80, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" colsep="^" style="left:4px; top:29px; width:974px; height:596px; ">
- <col ref="divsvctrgtmanposcd" type="combo" disabled="true">
- <choices>
- <itemset nodeset="/root/init/comcodelist/divsvctrgtmanposcd_cmblist/A0008A0212">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="trgtmannm" type="inputbutton">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fDivSvcTrgtmanSearch();
- ]]>
- </script>
- </col>
- <col ref="baptnm" type="input" imemode="hangul" disabled="true"/>
- <col ref="brthdatedd" type="input" disabled="true" format="yyyy-mm-dd"/>
- <col ref="mpphontel" type="input" disabled="true"/>
- <col ref="depttel"/>
- <col ref="posdept"/>
- <col ref="emailaddr" type="input" disabled="true"/>
- <col ref="divsvctrgtmanid" style="text-align:center; "/>
- <col ref="clscd" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="fromdd" visibility="hidden"/>
- <col ref="divsvctrgtmanseqno" visibility="hidden"/>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- fDivsvcEnterCell();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fDivSvcTrgtmanSearch();
- ]]>
- </script>
- </datagrid>
- <button id="button4" class="btn2_letter3" style="left:869px; top:4px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_divsvc.addRow();
- //grd_divsvc.addItem(grd_divsvc.row);
- //model.refresh();
-
- fAddDivSvcTrgtMan();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter3" style="left:925px; top:4px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelDivSvcTrgtMan();
- ]]>
- </script>
- </button>
- <caption id="caption20" class="cell_1" style="left:740px; top:1px; width:60px; height:23px; vertical-align:middle; ">추가행수</caption>
- <input id="ipt_rowadd" ref="/root/init/rowadd" class="input_default" format="####" appearance="input" style="left:803px; top:3px; width:63px; height:19px; text-align:right; "/>
- </case>
- <case id="case_mass">
- <line id="line7" class="line_1" style="x1:4px; y1:24px; x2:978px; y2:24px; "/>
- <caption id="caption15" class="tit_2" style="left:9px; top:9px; width:126px; height:14px; ">미사일정 세부내용</caption>
- <textarea id="textarea1" ref="/root/main/divsvcmasssche/divsvcmassscheinfo/schecnts" style="left:5px; top:30px; width:971px; height:580px; "/>
- </case>
- </switch>
- <output id="opt_clsnm" ref="/root/main/divsvcmasssche/divsvcmassscheinfo/clsnm" class="output_fix" style="left:83px; top:32px; width:145px; height:19px; "/>
- <caption id="caption14" class="cell_1" style="left:0px; top:79px; width:80px; height:23px; vertical-align:middle; ">주례자</caption>
- <caption id="caption30" class="cell_1" style="left:805px; top:79px; width:55px; height:23px; vertical-align:middle; ">봉사자</caption>
- <caption id="caption10" class="cell_1" style="left:0px; top:55px; width:80px; height:23px; vertical-align:middle; ">시간</caption>
- <caption id="caption5" class="cell_1" style="left:236px; top:31px; width:89px; height:23px; vertical-align:middle; ">비고</caption>
- <caption id="caption6" class="cell_1" style="left:635px; top:31px; width:70px; height:23px; vertical-align:middle; ">일자</caption>
- <caption id="caption9" style="left:151px; top:58px; width:12px; height:17px; ">~</caption>
- <caption id="caption25" class="cell_1" style="left:635px; top:55px; width:70px; height:23px; vertical-align:middle; ">담당원목자</caption>
- <caption id="caption11" class="cell_1" style="left:635px; top:79px; width:70px; height:23px; vertical-align:middle; ">대상인원</caption>
- <caption id="caption13" class="cell_1" style="left:236px; top:55px; width:89px; height:23px; vertical-align:middle; ">장소</caption>
- <input id="ipt_titlnm" ref="/root/main/divsvcmasssche/divsvcmassscheinfo/titlnm" class="input_default" imemode="hangul" maxlength="100" appearance="input" style="left:329px; top:32px; width:303px; height:19px; "/>
- <input id="ipt_fromdd" ref="/root/main/divsvcmasssche/divsvcmassscheinfo/fromdd" class="input_essential" inputtype="date" style="left:708px; top:32px; width:92px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fDivSvcMassDate();
- ]]>
- </script>
- </input>
- <input id="ipt_fromtm" ref="/root/main/divsvcmasssche/divsvcmassscheinfo/fromtm" class="input_default" format="hh:nn" appearance="input" style="left:83px; top:56px; width:63px; height:19px; text-align:center; "/>
- <input id="ipt_totm" ref="/root/main/divsvcmasssche/divsvcmassscheinfo/totm" class="input_default" format="hh:nn" appearance="input" style="left:165px; top:56px; width:63px; height:19px; text-align:center; "/>
- <input id="ipt_plcenm" ref="/root/main/divsvcmasssche/divsvcmassscheinfo/plcenm" class="input_default" imemode="hangul" maxlength="100" appearance="input" style="left:329px; top:56px; width:303px; height:19px; "/>
- <input id="ipt_chrgconslrnm" ref="/root/main/divsvcmasssche/divsvcmassscheinfo/chrgconslrnm" imemode="hangul" maxlength="10" appearance="input" style="left:708px; top:55px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode==13)
- {
- model.resetInstanceNode("/root/popdata");
- var pastor = "N";
- var pastornm = ipt_chrgconslrnm.currentText;
- fGetConslrID(pastor, pastornm);
- model.refresh();
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- model.resetInstanceNode("/root/popdata");
- var pastor = "N";
- var pastornm = ipt_chrgconslrnm.currentText;
-
- if (pastornm == "")
- {
- // 주례자
- if (pastor == "Y")
- {
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastorid", "");
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastornm", "");
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/baptnm", "");
- }
- // 원목자
- else
- {
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/chrgconslrid", "");
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/chrgconslrnm", "");
- }
- //return;
- }
- //fGetConslrID(pastor, pastornm);
- model.refresh();
-
- ]]>
- </script>
- </input>
- <output id="opt_chrgconslrid" ref="/root/main/divsvcmasssche/divsvcmassscheinfo/chrgconslrid" class="output_fix" style="left:803px; top:55px; width:65px; height:19px; "/>
- <button id="button6" class="icon_search" style="left:872px; top:58px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pastor = "N";
- fPastorSearch(pastor);
- ]]>
- </script>
- </button>
- <input id="ipt_pastornm" ref="/root/main/divsvcmasssche/divsvcmassscheinfo/pastornm" class="input_default" imemode="hangul" maxlength="10" appearance="input" style="left:83px; top:81px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
-
- if(event.keyCode==13)
- {
- if (chk_outer.value != "Y")
- {
- model.resetInstanceNode("/root/popdata");
- var pastor = "Y";
- var pastornm = ipt_pastornm.currentText;
-
-
- fGetConslrID(pastor, pastornm);
- model.refresh();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- model.resetInstanceNode("/root/popdata");
- var pastor = "Y";
- var pastornm = ipt_pastornm.currentText;
-
- if (pastornm == "")
- {
- // 주례자
- if (pastor == "Y")
- {
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastorid", "");
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastornm", "");
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/baptnm", "");
- }
- // 원목자
- else
- {
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/chrgconslrid", "");
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/chrgconslrnm", "");
- }
- //return;
- }
- //fGetConslrID(pastor, pastornm);
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/divsvcmasssche/divsvcmassscheinfo/pastorid", "");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <output id="opt_pastorid" ref="/root/main/divsvcmasssche/divsvcmassscheinfo/pastorid" class="output_fix" style="left:176px; top:81px; width:65px; height:19px; "/>
- <button id="btn_pastor" class="icon_search" style="left:245px; top:84px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pastor = "Y";
- fPastorSearch(pastor);
- ]]>
- </script>
- </button>
- <select id="chk_outer" ref="/root/main/divsvcmasssche/divsvcmassscheinfo/outerpastoryn" overflow="visible" appearance="full" rows="1" cols="4" cellspacing="3" style="left:273px; top:84px; width:47px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>외부</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fClickOuter_Chk();
- ]]>
- </script>
- </select>
- <input id="ipt_baptnm" ref="/root/main/divsvcmasssche/divsvcmassscheinfo/baptnm" class="input_default" disabled="true" imemode="hangul" appearance="input" style="left:385px; top:81px; width:90px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:330px; top:79px; width:50px; height:23px; vertical-align:middle; ">세례명</caption>
- <caption id="caption18" class="cell_1" style="left:480px; top:79px; width:70px; height:23px; vertical-align:middle; ">주례자신분</caption>
- <select1 id="cmb_pastorflag" ref="/root/main/divsvcmasssche/divsvcmassscheinfo/pastorflag" class="combo_search" appearance="minimal" style="left:555px; top:81px; width:75px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comcodelist/pastorflag/A0450">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_trgtpsnqty" ref="/root/main/divsvcmasssche/divsvcmassscheinfo/trgtpsnqty" class="input_default" format="####" appearance="input" style="left:708px; top:81px; width:47px; height:19px; text-align:right; "/>
- <input id="ipt_voluntrnm" ref="/root/main/divsvcmasssche/divsvcmassscheinfo/voluntrnm" class="input_default" imemode="hangul" maxlength="30" appearance="input" style="left:865px; top:81px; width:120px; height:19px; "/>
- <button id="button1" class="btn4_letter2" style="left:868px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !fCheckMandatoryInput() ) return; //필수 저장여부 체크
- fSavaDivSvcMassSche();
- ]]>
- </script>
- </button>
- <button id="button46" class="btn4_letter2" style="left:928px; top:3px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|