123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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="">
- <send>
- <reqdata/>
- </send>
- <main>
- <grdlist>
- <itemlist>
- <voluntrnm/>
- <baptnm/>
- <actdeptcd/>
- <actdeptdetlnm/>
- <voluntractdwcd/>
- <voluntractteamcd/>
- <actfromdd/>
- <acttodd/>
- <actrgstseqno/>
- <mpphontel/>
- </itemlist>
- </grdlist>
- <famyinfo>
- <infolist>
- <famynm/>
- <famyrel/>
- <famyage/>
- <religncd/>
- <famybaptnm/>
- <voluntrid>
- <famyjobnm/>
- </voluntrid>
- <famyseqno/>
- </infolist>
- <actlist>
- <servkind/>
- <actfromdd/>
- <acttodd/>
- <voluntractdwcd/>
- <voluntractteamcd/>
- <actdeptcd/>
- <specactteam/>
- <actdeptdetlnm/>
- <voluntrid/>
- <actrgstseqno/>
- </actlist>
- </famyinfo>
- <search>
- <voluntrnm/>
- <baptnm/>
- <actstatflag/>
- </search>
- <reqpopup/>
- </main>
- <init/>
- <hidden>
- <init>
- <comcd/>
- <comcd1/>
- </init>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
-
- ]]>
- </script>
- <submission id="TRAAA02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/grdlist"/>
- <submission id="TRAAA02402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/famyinfo"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBP00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00122" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- </xhtml:head>
- <script type="javascript">
- <![CDATA[
- //화면 오픈시
- function fInit()
- {
- model.removeNodeset("/root/main/grdlist/itemlist");
-
- zbcfGetCodeList(new Array("A0524","A0503","A0359","A0360","A0524", "A0654"),new Array("/root/hidden/init/comcd","/root/hidden/init/comcd","/root/hidden/init/comcd","/root/hidden/init/comcd","/root/hidden/init/comcd1", "/root/hidden/init/comcd")); // 활동 상태 관계코드 설정
- addComboItem("cmb_actstatflag", "","","above");
-
-
- if(model.getValue("/root/send/reqdata/popupflag")=='N')
- {
- // 자원봉사자 이름/주민등록번호 등 넘겨준 파라미터 의 값이 있을 때
-
- if(model.getValue("/root/send/reqdata/voluntrnm")=='')
- {
- model.makeValue("/root/send/reqdata/voluntrnm","%"); //봉사자명이 없을 때는 %로 셋팅
- }
- else
- {
- model.makeValue("/root/main/search/voluntrnm",model.getValue("/root/send/reqdata/voluntrnm"));
- }
-
- if(model.getValue("/root/send/reqdata/baptnm")=='')
- {
- model.makeValue("/root/send/reqdata/baptnm","%"); // 봉사자 세례명이 없을 때는 %로 셋팅
- }
- if(model.getValue("/root/send/reqdata/rrgstno1")=='')
- {
- model.makeValue("/root/send/reqdata/rrgstno1","%"); // 봉사자 주빈번호 없을 때는 %로 셋팅
- }
- if(model.getValue("/root/send/reqdata/rrgstno2")=='')
- {
- model.makeValue("/root/send/reqdata/rrgstno2","%"); // 봉사자 주빈번호 없을 때는 %로 셋팅
- }
-
- model.makeValue("/root/send/reqdata/actstatflag","%"); // 봉사자 활동상태 전체 찾는 %로 셋팅
-
- submit("TRAAA02401");
- //자원봉사자 조회
-
- var reaNodesetCount=getNodesetCount("/root/main/grdlist/itemlist");
- // 조회된 자원봉사자 정보의 개수를 셈
-
- if(reaNodesetCount=="1")
- {
-
- //그리드에 1명만 조회될 때
- var voluntrid=model.getValue("/root/main/grdlist/itemlist/voluntrid");
- //var rrgstno1=model.getValue("/root/main/grdlist/itemlist/rrgstno1");
- //var rrgstno2=model.getValue("/root/main/grdlist/itemlist/rrgstno2");
- // 조회된 자원봉사자의 id, 주민등록번호 변수에 저장
- model.makeValue("/root/send/reqdata/voluntrid",voluntrid);
- //model.makeValue("/root/send/reqdata/rrgstno1",rrgstno1);
- //model.makeValue("/root/send/reqdata/rrgstno2",rrgstno2);
- // 해당 노드에 조회된 자원봉사자의 id, 주민등록번호 저장
- model.makeValue("/root/main/grdlist/itemlist["+reaNodesetCount+"]/flag","Y");
- // 해당 봉사자 조회된 값이 존재한다는 플래그 Y
- model.copyNode(opener.root.main.reqpopup.reqpopuplist , "/root/main/grdlist/itemlist["+reaNodesetCount+"]");
- // 조회된 1건의 데이터 자원봉사자 신상등록관리 화면으로 보냄
- opener.model.refresh();
- window.close();
- // 팝업창 닫기
-
- }
- }
- model.refresh();
- }
-
- // 조회
- function fSearch() //팝업창 띄운 후 조회 버튼 클릭시
- {
- //model.removeNodeset("/root/send/reqdata");
- //model.makeNode("/root/send/reqdata");
-
- if(model.getValue("/root/main/search/voluntrnm")=='')
- {
- model.makeValue("/root/send/reqdata/voluntrnm","%"); //봉사자명이 없을 때는 %로 셋팅
- }
- else
- {
- model.makeValue("/root/send/reqdata/voluntrnm",model.getValue("/root/main/search/voluntrnm")); //봉사자명이 있을 때는 해당값을 셋팅
- }
-
- if(model.getValue("/root/main/search/baptnm")=='')
- {
- model.makeValue("/root/send/reqdata/baptnm","%"); // 봉사자 세례명이 없을 때는 %로 셋팅
- }
- else
- {
- model.makeValue("/root/send/reqdata/baptnm",model.getValue("/root/main/search/baptnm")); // 봉사자 세례명이 있을 때는 해당값을 셋팅
- }
-
- model.makeValue("/root/send/reqdata/rrgstno1","%"); // 봉사자 주빈번호에 %로 셋팅
- model.makeValue("/root/send/reqdata/rrgstno2","%"); // 봉사자 주빈번호에 %로 셋팅
- if(model.getValue("/root/main/search/actstatflag")=='')
- { //활동 상태가 전체일때
- model.makeValue("/root/send/reqdata/actstatflag","%");
- // 활동 상태 전체를 조회하도록 %로 셋팅
- }
- else
- {
- model.makeValue("/root/send/reqdata/actstatflag",model.getValue("/root/main/search/actstatflag"));
- // 활동상태(1 : 활동중, 2 : 탈단) 값이 있을 경우 해당 값 셋팅
- }
-
- //model.copyNode("/root/send/reqdata","/root/main/search"); // 인적정보를 조회한다.
-
- submit("TRAAA02401");
-
- var row=grd_list.rows; // 조회된 행 갯수를 세고
-
- if(row=='1')
- {
- model.makeValue("/root/main/grdlist/itemlist/status","i");
- model.removeNodeset("/root/main/grdlist/itemlist"); // 조회된 결과가 없을 때 빈행으로 셋팅
- opener.model.makeValue("/root/main/voluntrinfo/baseinfo/itemlist/status","i");
- // 조회된 결과가 없을 때 status값에 i를 셋팅한다.
- }
-
- model.refresh();
- }
-
-
-
- function fVoluntrDetlInfo()
- { //그리드 더블 클릭시
-
- if(grd_list.row < 1 ) return;
-
- var row=grd_list.row; // 클릭한 행 저장
-
- if(row>=1) // 조회된 결과가 있을 때
- {
- model.makeValue("/root/main/grdlist/itemlist["+row+"]/flag","Y");
- //조회된 사람이 있다는 의미의 flag Y를 셋팅함
- model.copyNode(opener.root.main.reqpopup.reqpopuplist,"/root/main/grdlist/itemlist["+row+"]");
- // 자원봉사자 신상등록 조회된 값 화면에 보내줌
- //model.removeNodeset("/root/main/grdlist");
- model.refresh();
- opener.model.refresh();
- window.close();
- // 창 닫음
- }
- else
- {
- messageBox("상위화면이 변경되어 데이터를 가져올 수","I004");
- model.setValue("/root/main/grdlist/itemlist["+row+"]/flag","N");
- opener.model.makeValue("/root/main/voluntrinfo/baseinfo/itemlist/status","i");
- }
- }
- ]]>
- </script>
- <xhtml:body pagewidth="750" pageheight="500" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:16px; top:10px; width:694px; height:470px; ">
- <group id="group2" style="left:2px; top:3px; width:688px; height:42px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:685px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:13px; top:8px; width:86px; height:17px; ">봉사자명 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:615px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:599px; y1:7px; x2:599px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_voluntrnm" ref="/root/main/search/voluntrnm" class="input_search" imemode="hangul" style="left:98px; top:9px; width:93px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode==13)
- {
- model.setValue("/root/main/search/voluntrnm",ipt_voluntrnm.currentText);
- model.setValue("/root/main/search/baptnm",ipt_baptnm.currentText);
- fSearch();
- }
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" visibility="hidden" style="left:395px; top:10px; width:86px; height:17px; ">세례명 :</caption>
- <input id="ipt_baptnm" ref="/root/main/search/baptnm" class="input_search" visibility="hidden" imemode="hangul" style="left:476px; top:10px; width:83px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode==13)
- {
- model.setValue("/root/main/search/voluntrnm",ipt_voluntrnm.currentText);
- model.setValue("/root/main/search/baptnm",ipt_baptnm.currentText);
- fSearch();
- }
- ]]>
- </script>
- </input>
- <caption id="caption4" class="search_name" style="left:200px; top:8px; width:86px; height:17px; ">활동상태 :</caption>
- <select1 id="cmb_actstatflag" ref="/root/main/search/actstatflag" class="combo_search" appearance="minimal" style="left:287px; top:9px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0524">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:41px; width:113px; height:13px; ">자원봉사자 정보</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:63px; x2:690px; y2:63px; "/>
- <datagrid id="grd_list" nodeset="/root/main/grdlist/itemlist" class="datagrid2" caption="성명^세례명^소속분야^소속센터^소속센터^활동
요일^활동
시간대^활동상태^휴대폰번호^caption1" colsep="^" colwidth="71, 0, 80, 120, 80, 43, 110, 75, 87, 3" dataheight="23" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:60px; width:690px; height:370px; ">
- <col ref="voluntrnm" style="text-align:left; "/>
- <col ref="baptnm" visibility="hidden"/>
- <col ref="actdivscd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0654">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="actdeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0503">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="actdeptdetlnm"/>
- <col disabled="true" ref="voluntractdwcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0359">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="voluntractteamcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0360">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="actstatflag" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd1/A0524">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="mpphontel"/>
- <col ref="voluntrid" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fVoluntrDetlInfo();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_list.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:0px; y1:55px; x2:691px; y2:55px; "/>
- </group>
- <group id="group1" scroll="auto" style="left:15px; top:440px; width:690px; height:35px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:575px; top:9px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fVoluntrDetlInfo();
- //if (fSendParam() == false) return;
- model.close();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:634px; top:9px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (checkOpener())
- {
- //opener.model.makeNode("/root/main/reqpopupflag");
- //opener.model.setValue("/root/main/reqpopupflag", "N");
- opener.model.makeValue("/root/main/reqpopup/reqpopuplist/flag","N");
- window.close();
- }
- model.close();
-
-
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:3px; x2:690px; y2:3px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|