123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- <?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>
- <cond>
- <doctrinecd/>
- <doctrinetrgtmanposcd/>
- <statflagcd/>
- </cond>
- <doctrinetrgtmanlist>
- <doctrinetrgtmanlistinfo>
- <chk/>
- <doctrinetrgtmanposcd/>
- <doctrineseqno/>
- <trgtmannm/>
- <brthdatedd/>
- <baptnm/>
- <mpphontel/>
- <depttel/>
- <posdept/>
- <emailaddr/>
- <divsvctrgtmanid/>
- <doctrinecd/>
- <doctrinergstdd/>
- <clscd/>
- <seqno/>
- <fromdd/>
- <divsvctrgtmanseqno/>
- <divsvctrgtmanposcd/>
- <rgstno/>
- </doctrinetrgtmanlistinfo>
- </doctrinetrgtmanlist>
- </main>
- <send>
- <reqdata/>
- </send>
- <init>
- <comcodelist>
- <doctrinecd_cmblist/>
- <doctrinetrgtmanposcd_cmblist/>
- </comcodelist>
- </init>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRAYA01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/doctrinetrgtmanlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- //화면 오픈시
- function fInit() {
- //그리드 초기화
- model.removeNodeset("/root/main/doctrinetrgtmanlist/doctrinetrgtmanlistinfo");
- //체크박스 설정
- grd_doctrine.fixedcellcheckbox(0,1) = true;
- //조회조건 콤보리스트 셋팅(교리명, 대상자소속)
- //zbcfGetCodeList(new Array("A0211", "A0212"), new Array("/root/init/comcodelist/doctrinecd_cmblist", "/root/init/comcodelist/doctrinetrgtmanposcd_cmblist"), true);
- zbcfGetCodeList(new Array("A0211"), new Array("/root/init/comcodelist/doctrinecd_cmblist"), true);
-
- // 유형코드 가져오기
- zbcfGetKindCodeList(
- new Array("A0008"),
- new Array("A0212"),
- new Array("/root/init/comcodelist/doctrinetrgtmanposcd_cmblist"),
- true,
- null,
- new Array("cdid"),
- new Array("asc")
- );
-
- addComboItem("cmb_trgtmanposcd", "전체", "", "above");
- model.refresh();
- rdo_doctrinenm.select(0);
- cmb_trgtmanposcd.select(0);
-
- // 상태구분이 교리중인 대상자만 조회
- model.setValue("/root/main/cond/statflagcd", "S1");
-
- fTrgtManRef();
- }
-
- //교리대상자 리스트 조회버튼 클릭시
- function fTrgtManRef() { //성사 대상자 등록 후 교리수행관리 화면에서 세례로 수정해 줘야지 나중에 재조회 했을 경우 세례받은 대상자가 조회가 안됨
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata","/root/main/cond");
-
- // reqGetDoctrineTrgtManAttntrListInfo
-
- if (submit("TRAYA01601", false)) {
- for (var i = 1; i < grd_doctrine.rows; i++) {
- model.resetInstanceNode("/root/main/doctrinetrgtmanlist/doctrinetrgtmanlistinfo[" + i + "]/seqno"); //doctrineseqno값이 들어가므로 reset
- }
- model.refresh();
- }
- }
-
- //대상자 선택 후 확인버튼 클릭시
- function fSetfTrgtManInfo() {
-
- if( checkOpener() ){
- var nodeList = instance1.selectNodes("/root/main/doctrinetrgtmanlist/doctrinetrgtmanlistinfo[chk='true']");
- if(nodeList.length > 0){
- var rCSV = getNodeListCSV(nodeList);
-
- model.removeNodeset("/root/main/chkvalue");
- model.makeNode("/root/main/chkvalue");
- //model.setValue("/root/main/chkvalue", rCSV);
- setCSVToNode("/root/main/chkvalue", rCSV);
-
- opener.model.makeNode('/root/main/popdoctrine');
- //model.copyNode(opener.root.popdata, "/root/main/chrgconslrlist/chrgconslrlistinfo[" + grd_chrgconslrlist.row + "]");
- model.copyNode(opener.root.main.popdoctrine, "/root/main/chkvalue");
- }
- else{
- messageBox("성사대상자를 선택하십시오", "I");
- return;
- }
- }
- model.close();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="592" pageheight="717" guideline="1,576;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:576px; height:690px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:50px; width:158px; height:13px; ">교리대상자 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:575px; y2:65px; "/>
- <group id="group4" style="left:0px; top:0px; width:575px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:575px; height:35px; "/>
- <button id="button7" class="btn1_letter2" style="left:507px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fTrgtManRef();
- ]]>
- </script>
- </button>
- <caption id="caption34" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">교리명:</caption>
- <line id="line14" class="line_4" style="x1:491px; y1:7px; x2:491px; y2:29px; "/>
- <caption id="caption29" class="search_name" style="left:255px; top:10px; width:104px; height:17px; ">대상자 소속 :</caption>
- <select1 id="rdo_doctrinenm" ref="/root/main/cond/doctrinecd" class="radio_search" appearance="full" cellspacing="5" cols="2" rows="1" overflow="visible" style="left:95px; top:10px; width:155px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/comcodelist/doctrinecd_cmblist/A0211">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_trgtmanposcd" ref="/root/main/cond/doctrinetrgtmanposcd" class="combo_search" appearance="minimal" style="left:370px; top:10px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comcodelist/doctrinetrgtmanposcd_cmblist/A0008A0212">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <datagrid id="grd_doctrine" nodeset="/root/main/doctrinetrgtmanlist/doctrinetrgtmanlistinfo" caption="^대상자 소속^교리코드^대상자명^세례명^주민번호^생년월일^휴대전화^부서전화^소속부서^이메일주소^대상자아이디^교리명^등록일자^분류코드^일련번호^시작일자^성사일련번호^divsvctrgtmanposcd" colsep="^" colwidth="25, 70, 0, 70, 100, 105, 90, 92, 87, 130, 180, 80, 100, 80, 80, 80, 80, 80, 100" dataheight="25" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:1px; top:70px; width:575px; height:620px; ">
- <col ref="chk" type="checkbox"/>
- <col disabled="true" ref="doctrinetrgtmanposcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/comcodelist/doctrinetrgtmanposcd_cmblist/A0008A0212">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="doctrineseqno"/>
- <col ref="trgtmannm"/>
- <col ref="baptnm"/>
- <col ref="rgstno" format="999999-9999999" style="text-align:center; "/>
- <col ref="brthdatedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="mpphontel"/>
- <col ref="depttel"/>
- <col ref="posdept"/>
- <col ref="emailaddr"/>
- <col ref="divsvctrgtmanid" style="text-align:center; "/>
- <col ref="doctrinecd" visibility="hidden"/>
- <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="divsvctrgtmanposcd" visibility="hidden"/>
- </datagrid>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:690px; width:576px; height:27px; ">
- <button id="button4" class="btn4_letter2" style="left:459px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetfTrgtManInfo();
- ]]>
- </script>
- </button>
- <button id="button9" class="btn4_letter2" style="left:518px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- <line id="line12" class="line_6" style="x1:0px; y1:0px; x2:575px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|