123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656 |
- <?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="">
- <main>
- <search>
- <specactteam/>
- </search>
- <searchattd>
- <fromdd/>
- <todd/>
- <specactteam/>
- <servtmflag/>
- </searchattd>
- <specactteamlist>
- <specactteaminfo>
- <chk/>
- <voluntrnm/>
- <baptnm/>
- <specactteam/>
- <actfromdd/>
- <acttodd/>
- <voluntrid/>
- <actrgstseqno/>
- </specactteaminfo>
- </specactteamlist>
- <specactteamrgstlist>
- <specactteamrgstinfo>
- <voluntrnm/>
- <baptnm/>
- <specactteam/>
- <servtmflag/>
- <servdd/>
- <servtm/>
- <attdrem/>
- <voluntrid/>
- <actrgstseqno/>
- <attdabsnflag/>
- <servseqno/>
- <actfromdd/>
- <acttodd/>
- </specactteamrgstinfo>
- </specactteamrgstlist>
- <specdata>
- </specdata>
- </main>
- <send>
- <savedata/>
- <reqdata/>
- </send>
- <hidden>
- <init>
- <comcd/>
- <comcd1/>
- </init>
- </hidden>
- <temp>
- <popmenu>
- <menu>
- <name>복사</name>
- <func>fSpecactTeamRgstCopy</func>
- </menu>
- </popmenu>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRAAA01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/specactteamlist"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00122" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBP00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TXAAA01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/specdata" resultref="/root"/>
- <submission id="TRAAA01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/specactteamrgstlist"/>
- </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[
- //화면 오픈시
- function fInit()
- {
- zbcfGetCodeList(new Array("A0516","A0516","A0517","A0517"),new Array("/root/hidden/init/comcd","/root/hidden/init/comcd1","/root/hidden/init/comcd","/root/hidden/init/comcd1") );
- model.refresh(); // 관계코드 설정
-
- grd_specactteaminfinfo.fixedcellcheckbox(0,1)=true;
- //체크박스 위에 전체 선택 하는 콤보 셋팅
-
- //model.makeValue("/root/main/search/specactteam","0");
- // model.makeValue("/root/main/searchattd/specactteam","0");
- //model.makeValue("/root/main/searchattd/servtmflag","0");
-
- model.removeNodeset("/root/main/specactteamlist/specactteaminfo");
- model.removeNodeset("/root/main/specactteamrgstlist/specactteamrgstinfo");
-
- var CurrentDate = getCurrentDate();
-
- model.makeValue("/root/main/searchattd/fromdd",CurrentDate);
- model.makeValue("/root/main/searchattd/todd",CurrentDate);
-
- addComboItem("cmb_doctrinetrgtmanposcd1", "","","above"); // 특별활동팀 전체 추가
- addComboItem("cmb_servtmflag", "","","above"); // 시간대 전체 추가
-
- model.refresh();
- }
- // 특별 활동팀 명단 조회 함수
- function fSpecactTeamInfoReq()
- {
- model.resetInstanceNode("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- grd_specactteaminfinfo.fixedcellischeck(0,1)=false; //전체 체크 해지
-
- if(isNull(model.getValue("/root/main/search/specactteam")))
- {
- model.makeValue("/root/send/reqdata/specactteam","%");
-
- }
- else
- {
- model.makeValue("/root/send/reqdata/specactteam",model.getValue("/root/main/search/specactteam"));
- }
-
- //model.resetInstanceNode("/root/send/reqdata");
- //model.makeNode("/root/send/reqdata");
- //model.copyNode("/root/send/reqdata","/root/main/search");
-
- submit("TRAAA01201");
- }
- // 특별활동 등록시 행의 내용 복사하는 함수
- function fSpecactTeamRgstCopy()
- {
- var sRows=grd_specactteamrgstinfo.selectedRows; // 블럭 잡은 데이터 갯수
- var eRow=grd_specactteamrgstinfo.selectedRow(0); // 블럭 잡은 첫째 행
-
- for(i=0;i<sRows;i++)
- {
-
- // 블럭 처리된 갯수 만큼 선택된 행의 인덱스를 구해, 첫번째 인덱스의 값을 복사한다.
- var tRow=grd_specactteamrgstinfo.selectedRow(i);
- var rowstatus=grd_specactteamrgstinfo.rowStatus(tRow);
-
- // 행의 상태가 delete 또는 delete& update가 아닐때만 선택 행을 복사한다.
- if(rowstatus!='4'&& rowstatus!='6')
- {
- model.makeValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+tRow+"]/servtmflag",model.getValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+eRow+"]/servtmflag"));
- model.makeValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+tRow+"]/servdd",model.getValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+eRow+"]/servdd"));
- model.makeValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+tRow+"]/servtm",model.getValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+eRow+"]/servtm"));
- model.makeValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+tRow+"]/attdrem",model.getValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+eRow+"]/attdrem"));
- model.makeValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+tRow+"]/attdabsnflag",model.getValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+eRow+"]/attdabsnflag"));
-
- grd_specactteamrgstinfo.addStatus(tRow,"update");
- // 선택된 행의 상태값을 update로 처리
- }
- }
- model.refresh();
-
- }
- // 특별활동 출결 등록 함수
- function fSpecactTeamRgstSave()
- {
- var idxRows=grd_specactteamrgstinfo.rows;
- var idxFixRow=grd_specactteamrgstinfo.fixedRows;
- var chk=0;
-
-
- if(idxRows<=1)
- {
- messageBox("등록할 특별활동 내역이","I004");
- return;
-
- }
- for(i=1;i<=idxRows-idxFixRow;i++)
- {
- var rowstatus=grd_specactteamrgstinfo.rowStatus(i); //for문을 돌면서 각각의 상태를 조사한다.
- if(rowstatus=='1'||rowstatus=='2'||rowstatus=='3'||rowstatus=='4'||rowstatus=='6')
- {//insert일때, update일때, new+insert, delete, delete+update 일 때만 판별한다.
-
- if(rowstatus=='1'||rowstatus=='2'||rowstatus=='3')
- {
- //insert일때, update일때, new+insert일 때만 판별한다.
- var servdd=model.getValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+i+"]/servdd");
- //활동일자가 활동시작일과 활동 종료일 사이에 있는지 판별한다.
- var actfromdd=model.getValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+i+"]/actfromdd");
- var acttodd=model.getValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+i+"]/acttodd");
-
- if(isNull(servdd))
- {
- messageBox("활동일자는","I003");
- return;
- }
-
- if(servdd<actfromdd ||servdd>acttodd)
- {
- messageBox("활동시작일자와 활동종료일자 사이의 출결일자를 입력하십시요. ","I");
- return;
- }
-
- if(isNull(model.getValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+i+"]/servtm")))
- {
- messageBox("활동시간은","I003");
- return;
- }
- }
- chk=chk+1;
- }
- }
- if(chk=='0')
- {
- messageBox("등록할 특별활동 내역이","I004");
- return;
- }
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.makeValue("/root/main/specdata",grd_specactteamrgstinfo.getUpdateData());
-
- if(submit("TXAAA01201")==true)
- {
- messageBox("처리가","I002");
- fReqSpecActAttdAbsn(); //조회함수
- }
- model.refresh();
-
-
- }
- // 출결 등록 내역 조회 함수
- function fReqSpecActAttdAbsn()
- {
- model.removenode("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
-
- var fromdd=model.getValue("/root/main/searchattd/fromdd");
- var todd=model.getValue("/root/main/searchattd/todd");
- if(fromdd=='')
- {
- messageBox("조회 시작일자는 ","I003");
- return;
- }
- if(todd=='')
- {
- messageBox("조회 종료일자는 ","I003");
- return;
- }
- if(fromdd>todd)
- {
- messageBox("조회 종료 일자보다 작은 조회 시작일자를 입력하십시요","I");
- return;
- }
-
- if(isNull(model.getValue("/root/main/searchattd/specactteam")))
- {
- model.makeValue("/root/send/reqdata/specactteam","%");
-
- }
- else
- {
- model.makeValue("/root/send/reqdata/specactteam",model.getValue("/root/main/searchattd/specactteam"));
- }
- if(isNull(model.getValue("/root/main/searchattd/servtmflag")))
- {
- model.makeValue("/root/send/reqdata/servtmflag","%");
- }
- else
- {
- model.makeValue("/root/send/reqdata/servtmflag",model.getValue("/root/main/searchattd/servtmflag"));
- }
- model.makeValue("/root/send/reqdata/fromdd",fromdd);
- model.makeValue("/root/send/reqdata/todd",todd);
-
-
- //model.copyNode("/root/send/reqdata","/root/main/searchattd");
-
- submit("TRAAA01202");
- }
- // 삭제 함수
- function fSpecactTeamRgstDel()
- {
- var idxRow=grd_specactteamrgstinfo.row;
- var rowstatus=grd_specactteamrgstinfo.rowStatus(idxRow);
- //alert(rowstatus);
- if(idxRow>0)
- {
- if(rowstatus=='1'||rowstatus=='3')
- {
- // 클릭한 행이 공백일 때 행 삭제
- grd_specactteamrgstinfo.deleteItem(idxRow);
- }
- else
- {
- if(rowstatus=='4'||rowstatus=='6') //상태가 delete또는 Update& Delete일 때
- {
- grd_specactteamrgstinfo.removeStatus(idxRow,"delete"); //delete상태를 초기화 한다.
-
- }
- else
- {
- // 클릭한 행에 값이 있을 때에는 delete 로 상태 표시
- grd_specactteamrgstinfo.removeStatus(idxRow,"insert");
- grd_specactteamrgstinfo.addStatus(idxRow,"delete");
- }
- }
- }
- else
- {
- messageBox("삭제할 행을", "C002");
- return;
- }
- model.refresh();
- /*var idxRows=grd_specactteamrgstinfo.rows;
- var idxFixRow=grd_specactteamrgstinfo.fixedRows;
-
- for(i=1;i<=idxRows-idxFixRow;i++)
- { // 출결 조회 내역의 봉사 일련번호 존재 하지 않을 때 메시지 처리
- if(isNull(model.getValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+i+"]/servseqno")))
- {
- messageBox("출결 되지 않은 내역은 삭제할 수","I004");
- return;
- }
- else
- {
- grd_specactteamrgstinfo.addStatus(i,"delete");
- }
- }
-
- var btn=messageBox("특별활동 출결내역을","Q001");
- if(btn=='6')
- {
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.makeValue("/root/main/specdata",grd_specactteamrgstinfo.getUpdateData());
- if(submit("TXAAA01201")==true)
- {
- messageBox("삭제가","I002");
- }
- }
- else
- {
- return;
- }
-
- model.refresh();
- */
-
- }
- // 초기화 실행 함수
- function fSpecactTeamRgstReset()
- {
- var btn=messageBox("초기화를","Q004");
- if(btn=="6")
- {
- grd_specactteaminfinfo.fixedcellischeck(0,1)=false; //전체 체크 해지
- model.removenode("/root/main/specactteamlist");
- model.removeNodeset("/root/main/specactteamrgstlist/specactteamrgstinfo");
- }
- else
- {
- return;
- }
-
- model.refresh();
-
- }
- // 특별활동팀 명단 확대, 축소 시키는 함수
- function fSpecActTeamZoomToggle(state)
- {
- if(state)
- {
- btn_zoom.attribute("text")="축소";
- grd_specactteaminfinfo.attribute("width")="530";
-
- }
- else
- {
- btn_zoom.attribute("text")="확대";
- grd_specactteaminfinfo.attribute("width")="378";
-
- }
- model.refresh();
- }
-
-
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:144px; height:14px; ">특별활동내역관리</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:745px; width:1195px; height:27px; ">
- <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:0px; width:1195px; height:744px; ">
- <caption id="caption25" class="tit_2" style="left:5px; top:60px; width:188px; height:13px; ">교리대상자 조회 및 출결등록</caption>
- <line id="line11" class="line_1" style="x1:0px; y1:75px; x2:1193px; y2:75px; "/>
- <group id="group4" style="left:0px; top:10px; width:1193px; height:37px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1193px; height:35px; "/>
- <caption id="caption34" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">교리명:</caption>
- <select1 id="cmb_trgtmanposcd" ref="/root/main/cond_memb/doctrinetrgtmanposcd" class="combo_search" appearance="minimal" style="left:385px; top:10px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comcodelist/doctrinetrgtmanposcd_cmblist/A0212">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption29" class="search_name" style="left:280px; top:10px; width:99px; height:17px; ">대상자소속 :</caption>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/comcodelist/doctrinecd_cmblist/A0211">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:520px; top:10px; width:94px; height:17px; ">상태구분 :</caption>
- <input id="input1" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/rgstdd" class="input_default" inputtype="date" style="left:820px; top:10px; width:119px; height:19px; "/>
- <input id="input2" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/rgstdd" class="input_default" inputtype="date" style="left:955px; top:10px; width:119px; height:19px; "/>
- <caption id="caption4" class="search_no_b" style="left:941px; top:10px; width:12px; height:17px; ">~</caption>
- <caption id="caption2" class="search_name" style="left:720px; top:10px; width:104px; height:17px; ">상태일자 :</caption>
- </group>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:4px; width:1195px; height:742px; ">
- <caption id="caption5" class="tit_2" style="left:5px; top:67px; width:160px; height:13px; ">특별활동팀명단</caption>
- <line id="line5" class="line_2" style="x1:745px; y1:543px; x2:1179px; y2:543px; "/>
- <caption id="caption7" class="tit_2" style="left:420px; top:67px; width:188px; height:13px; ">특별활동등록및조회내역</caption>
- <line id="line14" class="line_1" style="x1:420px; y1:82px; x2:1191px; y2:82px; "/>
- <group id="group6" style="left:0px; top:10px; width:1193px; height:40px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:420px; top:5px; width:773px; height:35px; "/>
- <caption id="caption8" class="search_name" style="left:427px; top:13px; width:101px; height:17px; ">조회기간 :</caption>
- <caption id="caption9" class="search_name" style="left:712px; top:13px; width:99px; height:17px; ">특별활동팀 :</caption>
- <caption id="caption17" class="search_no_b" style="left:604px; top:12px; width:12px; height:17px; ">~</caption>
- <line id="line25" class="line_4" style="x1:1117px; y1:5px; x2:1117px; y2:39px; "/>
- <select1 id="cmb_doctrinetrgtmanposcd1" ref="/root/main/searchattd/specactteam" class="combo_search" appearance="minimal" style="left:814px; top:12px; width:123px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0516">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fReqSpecActAttdAbsn();
- ]]>
- </script>
- </select1>
- <input id="ipt_statfromdd" ref="/root/main/searchattd/fromdd" class="input_default" inputtype="date" style="left:515px; top:12px; width:86px; height:19px; "/>
- <input id="ipt_stattodd" ref="/root/main/searchattd/todd" class="input_default" inputtype="date" style="left:619px; top:12px; width:86px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:12px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReqSpecActAttdAbsn();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:940px; top:13px; width:75px; height:17px; ">시간대 :</caption>
- <select1 id="cmb_servtmflag" ref="/root/main/searchattd/servtmflag" class="combo_search" appearance="minimal" style="left:1020px; top:12px; width:86px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0517">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fReqSpecActAttdAbsn();
- ]]>
- </script>
- </select1>
- </group>
- <datagrid id="grd_specactteamrgstinfo" nodeset="/root/main/specactteamrgstlist/specactteamrgstinfo" autoresize="true" caption="이름^세례명^특별활동팀^활동시간대^활동일자^활동시간^내용^voluntrid^actrgstseqno^attdabsnflag^actfromdd^acttodd^specactteam^servseqno^servkind^교리진도" colsep="^" colwidth="103, 1, 129, 84, 100, 70, 248, 9, 24, 31, 10, 13, 19, 8, 13" dataheight="25" explorerbar="sort" extendlastcol="scroll" frozencols="4`" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:420px; top:87px; width:773px; height:649px; ">
- <col disabled="true" ref="voluntrnm" type="input" style="text-align:center; "/>
- <col disabled="true" ref="baptnm" type="input" visibility="hidden" style="text-align:center; "/>
- <col explorerbar="sort" disabled="true" ref="specactteam" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd1/A0516">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="servtmflag" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd1/A0517">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="servdd" type="inputdate" style="left:349px; top:23px; width:100px; height:23px; text-align:center; "/>
- <col ref="servtm" type="input" format="#,###" maxlength="4" style="text-align:center; "/>
- <col ref="attdrem" type="input" maxlength="100" style="text-align:center; "/>
- <col ref="voluntrid" visibility="hidden"/>
- <col ref="actrgstseqno" visibility="hidden"/>
- <col ref="attdabsnflag" visibility="hidden"/>
- <col ref="actfromdd" visibility="hidden"/>
- <col ref="acttodd" visibility="hidden"/>
- <col ref="specactteam" visibility="hidden"/>
- <col ref="servseqno" visibility="hidden"/>
- <col ref="servkind" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- //if(grd_specactteamrgstinfo.isCell(event.target) && grd_specactteamrgstinfo.mouseRow>=grd_specactteamrgstinfo.fixedRows)
- //{
- grd_specactteamrgstinfo.gridToInstance();
- //}
- //else
- //{
- // window.setPopupMenu(false);
- // return;
- //}
-
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- //alert(grd_specactteamrgstinfo.row);
- //alert(grd_specactteamrgstinfo.selectedRow(0));
- //alert(grd_specactteamrgstinfo.selectedRows);
- //alert(grd_specactteamrgstinfo.rows);
-
- if(grd_specactteamrgstinfo.isCell(event.target) && grd_specactteamrgstinfo.mouseRow>=grd_specactteamrgstinfo.fixedRows)
- {
- if(event.button==3)
- {
- window.setPopupMenu(true,"/root/temp/popmenu/menu","name","func",false);
- }
- else
- {
- window.setPopupMenu(false);
- }
- }
- else
- {
- window.setPopupMenu(false);
- return;
- }
- ]]>
- </script>
- </datagrid>
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:15px; width:380px; height:35px; "/>
- <caption id="caption10" class="search_name" style="left:19px; top:22px; width:100px; height:17px; ">특별활동팀 :</caption>
- <select1 id="cmb_specactteam" ref="/root/main/search/specactteam" class="combo_search" appearance="minimal" style="left:127px; top:22px; width:128px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0516">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSpecactTeamInfoReq();
- ]]>
- </script>
- </select1>
- <button id="button1" class="btn1_letter2" style="left:310px; top:21px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSpecactTeamInfoReq();
- ]]>
- </script>
- </button>
- <datagrid id="grd_specactteaminfinfo" nodeset="/root/main/specactteamlist/specactteaminfo" scroll="auto" autoresize="true" caption="^이름^세례명^특별활동팀^활동시작일^활동종료일^voluntrid^actrgstseqno
^교리진도" colsep="^" colwidth="30, 87, 0, 139, 70, 70, 22, 28" dataheight="25" explorerbar="sort" extendlastcol="scroll" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:2px; top:87px; width:378px; height:650px; ">
- <col allowuserresize="true" checkvalue="1,0" ref="chk" type="checkbox"/>
- <col disabled="true" ref="voluntrnm" style="text-align:center; "/>
- <col disabled="true" ref="baptnm" visibility="hidden" style="text-align:left; "/>
- <col explorerbar="sort" disabled="true" ref="specactteam" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0516">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="actfromdd" format="yyyy-mm-dd" style="left:349px; top:23px; width:100px; height:23px; text-align:left; "/>
- <col disabled="true" ref="acttodd" format="yyyy-mm-dd"/>
- <col ref="voluntrid" visibility="hidden"/>
- <col ref="actrgstseqno" visibility="hidden"/>
- </datagrid>
- <line id="line4" class="line_1" style="x1:2px; y1:82px; x2:380px; y2:82px; "/>
- <button id="button3" class="icon_right" style="left:386px; top:309px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var idxRows=grd_specactteaminfinfo.rows;
- var idxfixRows=grd_specactteaminfinfo.fixedRows;
- var idxRow=grd_specactteamrgstinfo.rows;
- var chkdata=0; // 체크여부 확인하는 변수 선언
- for(i=1;i<=idxRows-idxfixRows;i++)
- {
- if(model.getValue("/root/main/specactteamlist/specactteaminfo"+"["+i+"]/chk")=="1")
- { // 특별활동팀 명단에 체크된 값들을 특별활동등록 및 조회내역에 복사한다.
- grd_specactteamrgstinfo.addItem();
- var idxrgstRow=grd_specactteamrgstinfo.row;
- model.copyNode("/root/main/specactteamrgstlist/specactteamrgstinfo["+idxrgstRow+"]","/root/main/specactteamlist/specactteaminfo["+i+"]");
-
- chkdata=chkdata+1; // 체크된 수만큼 누적 된 양을 판별
- }
- }
-
- if(chkdata=='0') //체크된 데이터가 존재 하지 않을 때
- {
- messageBox("특별활동팀 명단을 선택하십시요.","I");
- return;
- }
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="btn_actdel" class="btn2_letter3" style="left:1130px; top:55px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSpecactTeamRgstDel();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:301px; y1:16px; x2:301px; y2:46px; "/>
- </group>
- <button id="button4" class="btn4_letter2" style="left:1048px; top:748px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSpecactTeamRgstSave();
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn4_letter3" style="left:1115px; top:748px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSpecactTeamRgstReset();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|