12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184 |
- <?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>
- <search>
- <otynflag/>
- <fromdd/>
- <todd/>
- <actdeptcd/>
- <voluntractteamcd/>
- <voluntrnm/>
- <servyy/>
- <vacatflag/>
- </search>
- <studvoluntrlist>
- <studvoluntrinfo>
- <servyy/>
- <vacatflag/>
- <actfromdd/>
- <acttodd/>
- <voluntrnm/>
- <brthdd/>
- <sex/>
- <email/>
- <actdeptcd/>
- <schnm/>
- <servtm/>
- <voluntrid/>
- <studapptseqno/>
- <actrgstseqno/>
- </studvoluntrinfo>
- </studvoluntrlist>
- <studvoluntrabsnlist>
- <studvoluntrabsninfo>
- <attdabsnflagyn/>
- <attdabsnflag/>
- <servdd/>
- <voluntractteamcd/>
- <voluntrnm/>
- <actdeptcd/>
- <servtm/>
- <otyn/>
- <attdrem/>
- <voluntrid/>
- <actrgstseqno/>
- <actfromdd/>
- <acttodd/>
- <studapptseqno/>
- <status/>
- <servseqno/>
- </studvoluntrabsninfo>
- </studvoluntrabsnlist>
- <studvoluntrattdabsnlist>
- <studvoluntrattdabsninfo>
- <chk/>
- <attdabsnflagyn/>
- <attdabsnflag/>
- <servdd/>
- <voluntractteamcd/>
- <voluntrnm/>
- <actdeptcd/>
- <servtm/>
- <otyn/>
- <attdrem/>
- <voluntrid/>
- <actrgstseqno/>
- <actfromdd/>
- <acttodd/>
- <studapptseqno/>
- <status/>
- <servseqno/>
- </studvoluntrattdabsninfo>
- </studvoluntrattdabsnlist>
- <attdabsn>
- <attdabsndata/>
- </attdabsn>
- <otynrgstdd/>
- <ottm/>
- <returnsts>
- <statusinfo>
- <restatus/>
- <voluntrid/>
- <actstatflag/>
- <restatusdd/>
- <servdd/>
- </statusinfo>
- </returnsts>
- </main>
- <send>
- <savedata/>
- <reqdata/>
- </send>
- <hidden>
- <init>
- <comcd/>
- <comcd3/>
- <comcd1/>
- </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"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00105" 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="TRAAA01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/studvoluntrlist"/>
- <submission id="TRAAA01602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/studvoluntrabsnlist"/>
- <submission id="TXAAA01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/returnsts"/>
- </model>
- </xhtml:head>
- <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" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript">
- <![CDATA[
- // 초기값
- function fInit()
- {
- model.setFocus("ipt_fromdd");
- if(chk_ynflag.value == "")
- {
- cap_svcyear.visible = false;
- ipt_servyy.visible = false;
- cap_vacflag.visible = false;
- com_vacflag.visible = false;
- }
-
- var CurrentDate = getCurrentDate();
-
- var fdate=getDateCalc(CurrentDate, 6, '-');
- //기준일자를 기준으로 입력일자만큼의 날짜를 찾아오는 함수 , fromdd :기준일, i-1 :입력일자, +: 이후 날짜
-
- model.makeValue("/root/main/search/fromdd",fdate);
- model.makeValue("/root/main/search/todd",CurrentDate);
-
-
- grd_stdsvcattendlist.fixedcellcheckbox(0,1) = "true";
-
- zbcfGetCodeList(new Array("A0506","A0360","A0503","A0551","A0366","A0503","A0360"),
- new Array("/root/hidden/init/comcd","/root/hidden/init/comcd","/root/hidden/init/comcd","/root/hidden/init/comcd","/root/hidden/init/comcd","/root/hidden/init/comcd1","/root/hidden/init/comcd1")); // 관계코드 설정
- zbcfGetKindCodeList(new Array("A0023"), new Array("A0366"),new Array("/root/hidden/init/comcd3"),true,'','');
- zbcfGetKindCodeList(new Array("A0024"), new Array("A0506"),new Array("/root/hidden/init/comcd1"),true,'','');
- model.removeNodeset("/root/main/studvoluntrlist/studvoluntrinfo");
- model.removeNodeset("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo");
-
- addComboItem("com_svcflag", "","","above"); //활동부서에 전체 셋팅
- addComboItem("cmb_actdeptcd", "","","above"); //봉사구분에 전체 셋팅
- //addComboItem("com_vacflag", "","","above");
- //model.makeValue("/root/main/search/actdeptcd","01");
- //model.makeValue("/root/main/search/voluntractteamcd","1");
- model.makeValue("/root/main/search/vacatflag","S");
-
- roundrect1.visible=false; //ot등록일자비활성화
- cpt_voluntrflag.visible=false; //ot등록일자비활성화
- ipt_joinorgdd.visible=false; //ot등록일자비활성화
-
- //roundrect3.visible=false; //ot시간비활성화
- caption2.visible=false; //ot시간비활성화
- ipt_ottm.visible=false; //ot시간비활성화
-
-
- model.refresh();
- }
- // 학생자원봉사자 명단 조회시 필수 입력 체크 함수
- function fStudVoluntrAttdAbsnChk()
- {
- model.removeNodeset("/root/main/search/");
- model.makeNode("/root/main/search/");
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- // 값이 없을 때 전체를 조회할 값 %셋팅, 값이 존재 할 때 해당 값 셋팅
- //ot등록여부가 체크 되어있을 때 봉사년도, 방학구분만 파라미터로 셋팅함
- if(chk_ynflag.value=='Y')
- {
- if(isNull(ipt_servyy.currentText))
- {
- messageBox("봉사년도를 입력하십시요.","I");
- model.setFocus("ipt_servyy");
- return false;
- }
- else
- {
- model.makeValue("/root/send/reqdata/servyy",ipt_servyy.currentText);
- }
- if(isNull(model.getValue("/root/main/search/vacatflag")))
- {
- messageBox("방학구분을 선택하십시요","I");
- return false;
- }
- else
- {
- model.makeValue("/root/send/reqdata/vacatflag",model.getValue("/root/main/search/vacatflag"));
- }
- // 활동부서, 봉사구분, 성명은 %로 셋팅하여 전체 조회 함
- model.makeValue("/root/send/reqdata/actdeptcd","%");
- model.makeValue("/root/send/reqdata/voluntractteamcd","%");
- model.makeValue("/root/send/reqdata/voluntrnm","%");
- model.makeValue("/root/send/reqdata/otynflag","Y");
- }
- else
- {// 출결등록 처리시
- var fromdd=model.getValue("/root/main/search/fromdd"); //조회 시작일자 저장
- var todd=model.getValue("/root/main/search/todd"); //조회 종료일자 저장
-
- var dateintval=getDateInterval(fromdd,todd);
- // 조회 시작일과 조회 종료일 사이의 갯수를 세는 함수
- //var intval=dateintval+1;
- if(dateintval>7)
- {
- messageBox("출결등록은 최대 7일치까지 할 수 있습니다.","I");
- model.setFocus("ipt_fromdd");
- model.refresh();
- return false;
- }
- if(fromdd>todd)
- {
- messageBox("조회 종료일자보다 작은 조회 시작일자를 입력하십시요.","I");
- model.setFocus("ipt_fromdd");
- model.refresh();
- return false;
- }
-
- if(isNull(model.getValue("/root/main/search/actdeptcd")))
- { //활동부서에 값이 존재하지 않을 때 % 셋팅
- model.makeValue("/root/send/reqdata/actdeptcd","%");
- //messageBox("활동부서는.","I003");
- //model.setFocus("cmb_actdeptcd");
- //model.refresh();
- //return false;
- }
- else
- {
- model.makeValue("/root/send/reqdata/actdeptcd",model.getValue("/root/main/search/actdeptcd"));
- }
- if(isNull(model.getValue("/root/main/search/voluntractteamcd")))
- { //봉사구분이 전체 일때 %셋팅
- model.makeValue("/root/send/reqdata/voluntractteamcd","%");
- //messageBox("봉사구분은","I003");
- //model.setFocus("com_svcflag");
- //model.refresh();
- //return false;
- }
- else
- {
- model.makeValue("/root/send/reqdata/voluntractteamcd",model.getValue("/root/main/search/voluntractteamcd"));
- }
- if(isNull(ipt_voluntrnm.currentText))
- { // 성명이 입력되지 않을 때 %셋팅
- model.makeValue("/root/send/reqdata/voluntrnm","%");
- }
- else
- {
- model.makeValue("/root/send/reqdata/voluntrnm",ipt_voluntrnm.currentText);
- }
- // 봉사년도, 방학구분은 %로 셋팅
- model.makeValue("/root/send/reqdata/servyy","%");
- model.makeValue("/root/send/reqdata/vacatflag","%");
-
- }
- if(model.getValue("/root/main/search/fromdd")=="")
- {
- messageBox("활동일자는","I003");
- model.setFocus("ipt_fromdd");
- return false;
- }
- if(model.getValue("/root/main/search/todd")=="")
- {
- messageBox("활동일자는","I003");
- model.setFocus("ipt_todd");
- return false;
- }
- }
-
-
- // 학생자원봉사자 명단 조회
- function fStudVoluntrAttdAbsnReq()
- {
- if(fStudVoluntrAttdAbsnChk()==false)
- {
- return;
- }
- // 필수 입력 체크 함수
-
- model.makeValue("/root/send/reqdata/fromdd",model.getValue("/root/main/search/fromdd"));
- model.makeValue("/root/send/reqdata/todd",model.getValue("/root/main/search/todd"));
- model.makeValue("/root/send/reqdata/servdd",model.getValue("/root/main/otynrgstdd")); //ot등록날짜 존재시 ot등록날짜 저장
-
- model.removeNodeset("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo");
- // 학생자원봉사자 출결 등록창 초기화
- model.refresh();
- submit("TRAAA01601");
-
- model.resetInstanceNode("/root/main/otynrgstdd");
- // ot등록일자 초기화 및 비활성
- ipt_joinorgdd.disabled=false;
- model.resetInstanceNode("/root/main/ottm");
- ipt_ottm.disabled=false; //ot시간 초기화 및 비활성화
-
- // OT등록 여부 체크 되어 있을 때 출결등록창에 해당 모든 자원봉사자 셋팅한다.
- // OT등록은 전체 자원봉사자를 대상으로 한다.
- if(model.getValue("/root/main/search/otynflag")=="Y")
- {
- var idxRows=grd_studvoluntrlist.rows;
- var idxFixRow=grd_studvoluntrlist.fixedRows;
-
- for(i=1;i<=idxRows-idxFixRow;i++)
- {
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/attdabsnflagyn",model.getValue("/root/main/studvoluntrlist/studvoluntrattdabsninfo"+"["+i+"]/attdabsnflagyn"));
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/voluntrid",model.getValue("/root/main/studvoluntrlist/studvoluntrattdabsninfo"+"["+i+"]/voluntrid"));
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/attdabsnflag",model.getValue("/root/main/studvoluntrlist/studvoluntrattdabsninfo"+"["+i+"]/attdabsnflag"));
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/servdd",model.getValue("/root/main/studvoluntrlist/studvoluntrattdabsninfo"+"["+i+"]/servdd"));
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/servkind",model.getValue("/root/main/studvoluntrlist/studvoluntrattdabsninfo"+"["+i+"]/servkind"));
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/voluntractteamcd",model.getValue("/root/main/studvoluntrlist/studvoluntrattdabsninfo"+"["+i+"]/voluntractteamcd"));
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/voluntrnm",model.getValue("/root/main/studvoluntrlist/studvoluntrattdabsninfo"+"["+i+"]/voluntrnm"));
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/actdeptcd",model.getValue("/root/main/studvoluntrlist/studvoluntrattdabsninfo"+"["+i+"]/actdeptcd"));
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/servtm",model.getValue("/root/main/studvoluntrlist/studvoluntrattdabsninfo"+"["+i+"]/servtm"));
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/otyn",model.getValue("/root/main/studvoluntrlist/studvoluntrattdabsninfo"+"["+i+"]/otyn"));
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/attdrem",model.getValue("/root/main/studvoluntrlist/studvoluntrattdabsninfo"+"["+i+"]/attdrem"));
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/status",model.getValue("/root/main/studvoluntrlist/studvoluntrattdabsninfo"+"["+i+"]/status"));
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/chk",model.getValue("/root/main/studvoluntrlist/studvoluntrattdabsninfo"+"["+i+"]/chk"));
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/servseqno",model.getValue("/root/main/studvoluntrlist/studvoluntrattdabsninfo"+"["+i+"]/servseqno"));
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/actrgstseqno",model.getValue("/root/main/studvoluntrlist/studvoluntrattdabsninfo"+"["+i+"]/actrgstseqno"));
-
- if(!isNull(model.getValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/servdd")))
- { // 출결등록한 데이터 있을 때 봉사일자를 OT등록 일자에 셋팅하고 비활성화함
- model.makeValue("/root/main/otynrgstdd",model.getValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/servdd"));
- ipt_joinorgdd.disabled=true;
- }
- if(!isNull(model.getValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/servtm")))
- { // 출결등록한 데이터가 있고, 출결구분이 결석이 아닌 봉사시간을 OT등록 시간에 셋팅하고 비활성화함
- if(model.getValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/attdabsnflag")=='01')
- {
- model.makeValue("/root/main/ottm",model.getValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/servtm"));
- }
- ipt_ottm.disabled=true;
- }
- //grd_stdsvcattendlist.colDisabled(grd_stdsvcattendlist.colRef("otyn"))=true;
- /*else
- {
- model.resetInstanceNode("/root/main/otynrgstdd");
- ipt_joinorgdd.disabled=false;
- }*/
-
- }
- }
- else
- {
- ipt_joinorgdd.disabled=true;
- // ot구분 체크되지 않았을 경우 ot등록일자는 비활성화 시킴
- }
-
- grd_stdsvcattendlist.fixedcellischeck(0,1)=false;
- // 전체 선택 되었을 때 체크박스 해지
-
- model.refresh();
- }
- // 학생자원봉사자 명단 클릭시 출결 등록 그리드에 출결내역 조회되는 함수
- function fStudVoluntrAttdInfoReq()
- {
- model.removeNodeset("/root/main/studvoluntrabsnlist");
- model.removeNodeset("/root/main/studvoluntrattdabsnlist");
- grd_stdsvcattendlist.fixedcellischeck(0,1)=false;
- // 전체 선택 되었을 때 체크박스 해지
-
- var idxRow=grd_studvoluntrlist.row;
- var voluntrid=model.getValue("/root/main/studvoluntrlist/studvoluntrinfo"+"["+idxRow+"]/voluntrid");
- var actrgstseqno=model.getValue("/root/main/studvoluntrlist/studvoluntrinfo"+"["+idxRow+"]/actrgstseqno");
- var fromdd=model.getValue("/root/main/search/fromdd");
- var todd=model.getValue("/root/main/search/todd");
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/voluntrid",voluntrid);
- model.makeValue("/root/send/reqdata/actrgstseqno",actrgstseqno);
- model.makeValue("/root/send/reqdata/fromdd",fromdd);
- model.makeValue("/root/send/reqdata/todd",todd);
-
- submit("TRAAA01602");
- // 출결현황 조회하는 서브미션
-
- var fromdd=model.getValue("/root/main/search/fromdd"); //조회 시작일자 저장
- var todd=model.getValue("/root/main/search/todd"); //조회 종료일자 저장
- var voluntrnm=model.getValue("/root/main/studvoluntrlist/studvoluntrinfo"+"["+idxRow+"]/voluntrnm");
- // 클릭한 행의 명단에 있는 봉사자 이름 저장
- var actfromdd=model.getValue("/root/main/studvoluntrlist/studvoluntrinfo"+"["+idxRow+"]/actfromdd");
- var acttodd=model.getValue("/root/main/studvoluntrlist/studvoluntrinfo"+"["+idxRow+"]/acttodd");
-
- if(actfromdd>=fromdd)
- {
- if(acttodd>=todd)
- {
- var dateintval=getDateInterval(actfromdd,todd);
- // 조회 시작일과 조회 종료일 사이의 갯수를 세는 함수
- }
- else
- {
- var dateintval=getDateInterval(actfromdd,acttodd);
- }
- }
- else
- {
- if(acttodd>=todd)
- {
- var dateintval=getDateInterval(fromdd,todd);
- }
- else
- {
- var dateintval=getDateInterval(fromdd,acttodd);
- }
- }
- var nodeCnt=getNodesetCount("/root/main/studvoluntrabsnlist/studvoluntrabsninfo");
- // 조회시 출결이 된 데이터 갯수
-
- //var dateintval=getDateInterval(fromdd,todd);
- // 조회 시작일과 조회 종료일 사이의 갯수를 세는 함수
- var intval=dateintval+1;
- grd_stdsvcattendlist.colDisabled(grd_stdsvcattendlist.colRef("otyn"))=true;
- for(i=1;i<=intval;i++)
- { // 조회시작일과 종료일 사이 기간 만큼 for문을 돌린다.
- var idxRow=grd_studvoluntrlist.row;
- var actfromdd1=model.getValue("/root/main/studvoluntrlist/studvoluntrinfo"+"["+idxRow+"]/actfromdd");
- var acttodd1=model.getValue("/root/main/studvoluntrlist/studvoluntrinfo"+"["+idxRow+"]/acttodd");
-
- if(actfromdd1>=fromdd)
- {
- var fdate=getDateCalc(actfromdd1, i-1, '+');
- //기준일자를 기준으로 입력일자만큼의 날짜를 찾아오는 함수 , fromdd :기준일, i-1 :입력일자, +: 이후 날짜
- //alert(i+'번째데이터'+fdate+'actfromdd가클때');
- }
- else
- {
- var fdate=getDateCalc(fromdd, i-1, '+');
- //기준일자를 기준으로 입력일자만큼의 날짜를 찾아오는 함수 , fromdd :기준일, i-1 :입력일자, +: 이후 날짜
- // alert(i+'번째데이터'+fdate+'fromdd가클때');
- }
- var flag='N';
- // 출결등록한 건이 없다는 표시인 플래그 N 저장
-
-
- for(j=1;j<=nodeCnt;j++)
- { // 출결등록된 그리드 갯수만큼 for문 돌려서 봉사일자를 조회일자들과 비교한다.
- // 출결등록된 건이 있을 때만 for문을 탐
-
- var voluntrid=model.getValue("/root/main/studvoluntrabsnlist/studvoluntrabsninfo"+"["+j+"]/voluntrid");
- var voluntrnm=model.getValue("/root/main/studvoluntrabsnlist/studvoluntrabsninfo"+"["+j+"]/voluntrnm");
- var actdeptcd=model.getValue("/root/main/studvoluntrabsnlist/studvoluntrabsninfo"+"["+j+"]/actdeptcd");
- var voluntractteamcd=model.getValue("/root/main/studvoluntrabsnlist/studvoluntrabsninfo"+"["+j+"]/voluntractteamcd");
- var actrgstseqno=model.getValue("/root/main/studvoluntrabsnlist/studvoluntrabsninfo"+"["+j+"]/actrgstseqno");
- var actfromdd=model.getValue("/root/main/studvoluntrabsnlist/studvoluntrabsninfo"+"["+j+"]/actfromdd");
- var acttodd=model.getValue("/root/main/studvoluntrabsnlist/studvoluntrabsninfo"+"["+j+"]/acttodd");
- var studapptseqno=model.getValue("/root/main/studvoluntrabsnlist/studvoluntrabsninfo"+"["+j+"]/studapptseqno");
- var attdabsnflag=model.getValue("/root/main/studvoluntrabsnlist/studvoluntrabsninfo"+"["+j+"]/attdabsnflag");
- var servdd=model.getValue("/root/main/studvoluntrabsnlist/studvoluntrabsninfo"+"["+j+"]/servdd");
- var servtm=model.getValue("/root/main/studvoluntrabsnlist/studvoluntrabsninfo"+"["+j+"]/servtm");
- var otyn=model.getValue("/root/main/studvoluntrabsnlist/studvoluntrabsninfo"+"["+j+"]/otyn");
- var attdrem=model.getValue("/root/main/studvoluntrabsnlist/studvoluntrabsninfo"+"["+j+"]/attdrem");
- var status=model.getValue("/root/main/studvoluntrabsnlist/studvoluntrabsninfo"+"["+j+"]/status");
- var servseqno=model.getValue("/root/main/studvoluntrabsnlist/studvoluntrabsninfo"+"["+j+"]/servseqno");
- var servkind=model.getValue("/root/main/studvoluntrabsnlist/studvoluntrabsninfo"+"["+j+"]/servkind");
-
-
- if(servdd==fdate)
- { //조회기간 중 출결등록 된 데이터가 있을 때
- var flag='Y';
- //alert(j+": j의 값2");
- //alert(i+": i의 값");
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/voluntrid",voluntrid);
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/voluntrnm",voluntrnm);
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/actdeptcd",actdeptcd);
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/voluntractteamcd",voluntractteamcd);
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/actrgstseqno",actrgstseqno);
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/actfromdd",actfromdd);
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/acttodd",acttodd);
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/studapptseqno",studapptseqno);
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/attdabsnflag",attdabsnflag);
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/servdd",servdd);
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/servtm",servtm);
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/otyn",otyn);
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/attdrem",attdrem);
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/attdabsnflagyn","완료");
- model.makeNode("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/chk");
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/status",status);
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/servseqno",servseqno);
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/servkind",servkind);
-
- break;
-
- }
- }
- if(flag=='N')
- { // 출결 대상인 데이터
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/servdd",fdate);
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/voluntrnm",voluntrnm);
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/voluntrid",voluntrid);
- model.makeNode("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/actdeptcd");
- model.makeNode("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/voluntractteamcd");
- model.makeNode("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/actrgstseqno");
- model.makeNode("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/actfromdd");
- model.makeNode("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/acttodd");
- model.makeNode("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/studapptseqno");
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/attdabsnflag","01");
- //출결유무에 출결 표시
- model.makeNode("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/servtm");
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/otyn","N");
- model.makeNode("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/attdrem");
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/attdabsnflagyn","대상");
- model.makeNode("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/chk");
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/status","i");
- model.makeNode("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/servseqno");
- model.makeNode("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/servkind");
- // 상태값 i 저장 플래그
- }
- }
-
- model.refresh();
-
-
- }
-
- // 출결 처리 함수
- function fStudVoluntrAttdAbsnSave()
- {
- var idxRow=grd_stdsvcattendlist.rows;
- var idxfixRows=grd_stdsvcattendlist.fixedRows;
-
- // 출결정보 등록할 파리채 생성
- var attdabsndata= 'chk'
- + '▦attdabsnflagyn'
- + '▦attdabsnflag'
- + '▦servdd'
- + '▦voluntractteamcd'
- + '▦voluntrnm'
- + '▦actdeptcd'
- + '▦servtm'
- + '▦otyn'
- + '▦attdrem'
- + '▦voluntrid'
- + '▦actrgstseqno'
- + '▦actfromdd'
- + '▦acttodd'
- + '▦studapptseqno'
- + '▦status'
- + '▦chk'
- + '▦servseqno'
- + '▦servkind'
- + '▩';
- var chkdata=0; // 체크여부 확인하는 변수 선언
-
- for(i=1;i<=idxRow-idxfixRows;i++)
- {
- var chk=model.getValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/chk");
-
- if(chk=="1") //체크 된 데이터만
- {
- if(model.getValue("/root/main/search/otynflag")=="Y") //OT등록시
- {
- if(isNull(model.getValue('/root/main/otynrgstdd')))
- {
- messageBox("OT등록일자는","I003");
- return;
- }
- if(isNull(model.getValue('/root/main/ottm')))
- {
- messageBox("OT시간은","I003");
- return;
- }
- else
- {
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/servdd",model.getValue("/root/main/otynrgstdd"));
- // ot등록 날짜를 봉사일자에 저장
-
- if(model.getValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/attdabsnflag")=='01')
- { //출결구분이 출석일때만 ot등록시간 활동시간에 저장함
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/servtm",model.getValue("/root/main/ottm"));
- // ot등록 시간을 활동시간에 저장
- }
- else
- { // 출결구분 결석 일때 0시간 셋팅함
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/servtm",'0');
- }
-
- }
- }
- else // 출결등록시 활동시간 입력 체크
- {
- if(isNull(model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/servtm')))
- {
- messageBox("활동시간은","I003");
- return;
- }
-
- }
- // 출석구분은 ot등록, 출결 등록 모두 체크 한다.
- if(isNull(model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/attdabsnflag')))
- {
- messageBox("출석구분은","I003");
- return;
- }
-
- /*if(isNull(model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/otyn')))
- {
- messageBox("OT출석여부는","I003");
- return;
- } */
-
-
- // 그리드에 조회된 봉사자 출결 저장할 정보 attdabsndata에 누적 저장
- // 그리드 수만큼 해당 정보 저장한다.
- attdabsndata+= model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/chk')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/attdabsnflagyn')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/attdabsnflag')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/servdd')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/voluntractteamcd')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/voluntrnm')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/actdeptcd')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/servtm')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/otyn')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/attdrem')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/voluntrid')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/actrgstseqno')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/actfromdd')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/acttodd')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/studapptseqno')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/status')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/chk')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/servseqno')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/servkind')
- + '▩';
-
- chkdata=chkdata+1; // 체크된 수만큼 누적 된 양을 판별
-
- }
- }
- if(chkdata=='0') //체크된 데이터가 존재 하지 않을 때
- {
- messageBox("출결처리 대상을 선택 하십시요","I");
- return;
- }
-
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.makeValue("/root/main/attdabsn/attdabsndata",attdabsndata);
- model.copyNode("/root/send/savedata","/root/main/attdabsn");
-
- if(submit("TXAAA01601")==true)
- {
- /*if(model.getValue("/root/main/returnsts/statusinfo/restatus")=="R")
- {
- messageBox("출결날짜에 해당하는 활동 기간 정보가","I004");
- return;
-
- }*/
- var nodecnt=getNodesetCount("/root/main/returnsts/statusinfo"); //리턴된 정보 갯수 셈
- var chkdata =0;
- var daydata =0 ;
-
- if(nodecnt>0)
- { // 리턴된 정보 존재시
-
- for(i=1;i<=nodecnt;i++)
- {
- var restatus=+model.getValue("/root/main/returnsts/statusinfo"+"["+i+"]/restatus");
- var servdd=+model.getValue("/root/main/returnsts/statusinfo"+"["+i+"]/servdd");
-
- //alert("활동일자가 "+servdd+"인 " +restatus+"번 째 데이터에 활동정보가 존재하지 않습니다.");
- chkdata=chkdata+restatus+' '; // 체크된 수만큼 누적 된 양을 판별
- daydata=daydata+servdd+' ';
- }
- alert(chkdata+"번째 "+daydata+"일의 활동일자 정보가 존재하지 않습니다. 출결처리할 수 없습니다.");
- //alert(daydata);
- }
- else
- {
-
- messageBox("출결처리가","I002");
- fStudVoluntrAttdAbsnReq(); //명단 조회 함수
- }
- }
- model.refresh();
-
- }
- // 출결등록 삭제 함수
- function fStudVoluntrAttdAbsnDel()
- {
- var idxRow=grd_stdsvcattendlist.rows;
- var idxfixRows=grd_stdsvcattendlist.fixedRows;
-
- // 출결정보 등록할 파리채 생성
- var attdabsndata= 'chk'
- + '▦attdabsnflagyn'
- + '▦attdabsnflag'
- + '▦servdd'
- + '▦voluntractteamcd'
- + '▦voluntrnm'
- + '▦actdeptcd'
- + '▦servtm'
- + '▦otyn'
- + '▦attdrem'
- + '▦voluntrid'
- + '▦actrgstseqno'
- + '▦actfromdd'
- + '▦acttodd'
- + '▦studapptseqno'
- + '▦status'
- + '▦chk'
- + '▦servseqno'
- + '▦servkind'
- + '▩';
- var chkdata=0; // 체크여부 확인하는 변수 선언
-
- for(i=1;i<=idxRow-idxfixRows;i++)
- {
- var chk=model.getValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/chk");
-
- if(chk=="1") //체크 된 데이터만
- {
- if(model.getValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/attdabsnflagyn")=="대상")
- {
- messageBox("출결등록 되지 않은 대상은 삭제할 수","I004");
- return;
- }
-
- // 그리드에 조회된 봉사자 출결 저장할 정보 attdabsndata에 누적 저장
- // 그리드 수만큼 해당 정보 저장한다.
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+i+"]/status","d"); //삭제 플래그 d저장
-
- attdabsndata+= model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/chk')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/attdabsnflagyn')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/attdabsnflag')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/servdd')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/voluntractteamcd')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/voluntrnm')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/actdeptcd')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/servtm')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/otyn')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/attdrem')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/voluntrid')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/actrgstseqno')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/actfromdd')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/acttodd')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/studapptseqno')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/status')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/chk')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/servseqno')
- + '▦'+ model.getValue('/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo'+'['+i+']/servkind')
- + '▩';
-
-
- chkdata=chkdata+1; // 체크된 수만큼 누적 된 양을 판별
-
- }
- }
- if(chkdata=='0') //체크된 데이터가 존재 하지 않을 때
- {
- messageBox("삭제할 대상을 선택 하십시요","I");
- return;
- }
-
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.makeValue("/root/main/attdabsn/attdabsndata",attdabsndata);
- model.copyNode("/root/send/savedata","/root/main/attdabsn");
-
- var btn=messageBox("학생자원봉사자 출결 내역을","Q001");
- if(btn=='6')
- {
- if(submit("TXAAA01601")==true)
- {
- messageBox("삭제가","I002");
- fStudVoluntrAttdAbsnReq(); //명단 조회 함수
- }
- }
- else
- {
- return;
- }
- model.refresh();
- }
-
- function fStudVoluntrAttdAbsnReset()
- {
- var btn=messageBox("초기화를","Q004");
- if(btn=='6')
- { // 출결등록 정보 초기화
- model.resetInstanceNode("/root/main/studvoluntrabsnlist/studvoluntrabsninfo");
- model.removeNodeset("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo");
- model.removeNodeset("/root/main/studvoluntrlist/studvoluntrinfo");
- //model.resetInstanceNode("/root/main/search");
- grd_stdsvcattendlist.fixedcellischeck(0,1)=false;
- model.setFocus("ipt_fromdd");
- model.refresh();
- //fInit();
- }
-
- else
- {
- return;
- }
-
-
- }
-
-
-
- ]]>
- </script>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:184px; height:14px; ">학생자원봉사자출결등록관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <line id="line12" class="line_1" style="x1:0px; y1:72px; x2:1194px; y2:72px; "/>
- <caption id="caption32" class="tit_2" style="left:5px; top:55px; width:140px; height:13px; ">학생자원봉사자 명단</caption>
- <group id="group1" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button6" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fStudVoluntrAttdAbsnReq();
- ]]>
- </script>
- </button>
- <caption id="cap_fromdd" class="search_name" style="left:155px; top:9px; width:100px; height:17px; ">활동일자 :</caption>
- <input id="ipt_voluntrnm" ref="/root/main/search/voluntrnm" class="input_search" navindex="5" appearance="minimal" style="left:1000px; top:10px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode==13)
- {
- //model.makeValue("/root/send/reqdata/voluntrnm",ipt_voluntrnm.currentText);
- //alert(ipt_voluntrnm.currentText);
- fStudVoluntrAttdAbsnReq();
- }
-
- ]]>
- </script>
- </input>
- <input id="ipt_fromdd" ref="/root/main/search/fromdd" class="input_search" navindex="1" inputtype="date" style="left:246px; top:9px; width:100px; height:19px; "/>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <select id="chk_ynflag" ref="/root/main/search/otynflag" navindex="6" overflow="visible" appearance="full" style="left:14px; top:9px; width:96px; height:20px; font-weight:bold; color:#0000ff; border-style:none; ">
- <choices>
- <item>
- <label>OT등록처리</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (chk_ynflag.value == "Y")
- { //ot등록 처리 시
- model.setFocus("ipt_servyy");
- cap_svcyear.visible = true;
- ipt_servyy.visible = true;
- cap_vacflag.visible = true;
- com_vacflag.visible = true;
- cap_fromdd.visible = false;
- ipt_fromdd.visible = false;
- cap_middle.visible = false;
- ipt_todd.visible = false;
- cap_name.visible = false;
- ipt_voluntrnm.visible = false;
- cap_svcflag.visible = false;
- com_svcflag.visible = false;
- cap_actdeptcd.visible = false;
- cmb_actdeptcd.visible =false;
- model.makeValue("/root/main/search/servyy","2008");
- model.removeNodeset("/root/main/studvoluntrlist/studvoluntrinfo");
- model.removeNodeset("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo");
- roundrect1.visible=true; //ot등록일자활성화
- cpt_voluntrflag.visible=true; //ot등록일자활성화
- ipt_joinorgdd.visible=true; //ot등록일자활성화
-
- //roundrect3.visible=true; //ot시간활성화
- caption2.visible=true; //ot시간활성화
- ipt_ottm.visible=true; //ot시간활성화
-
- grd_stdsvcattendlist.colDisabled(grd_stdsvcattendlist.colRef("servtm"))=true;
- //활동시간 비활성화
- model.refresh();
-
-
-
- } else {
- model.setFocus("ipt_fromdd");
- cap_svcyear.visible = false;
- ipt_servyy.visible = false;
- cap_vacflag.visible = false;
- com_vacflag.visible = false;
- cap_fromdd.visible = true;
- ipt_fromdd.visible = true;
- cap_middle.visible = true;
- ipt_todd.visible = true;
- cap_name.visible = true;
- ipt_voluntrnm.visible = true;
- cap_svcflag.visible = true;
- com_svcflag.visible = true;
- cap_actdeptcd.visible = true;
- cmb_actdeptcd.visible =true;
- roundrect1.visible=false; //ot등록일자비활성화
- cpt_voluntrflag.visible=false; //ot등록일자비활성화
- ipt_joinorgdd.visible=false; //ot등록일자비활성화
- //roundrect3.visible=false; //ot시간비활성화
- caption2.visible=false; //ot시간비활성화
- ipt_ottm.visible=false; //ot시간비활성화
-
- grd_stdsvcattendlist.colDisabled(grd_stdsvcattendlist.colRef("servtm"))=false;
- //활동시간 활성화
-
- model.removeNodeset("/root/main/studvoluntrlist/studvoluntrinfo");
- model.removeNodeset("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo");
- model.refresh();
- }
-
- ]]>
- </script>
- </select>
- <caption id="cap_svcyear" class="search_name" style="left:190px; top:10px; width:90px; height:15px; ">봉사년도 :</caption>
- <select1 id="com_vacflag" ref="/root/main/search/vacatflag" class="combo_search" navindex="8" appearance="minimal" style="left:579px; top:9px; width:85px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd3/A0023A0366">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fStudVoluntrAttdAbsnReq();
- ]]>
- </script>
- </select1>
- <caption id="cap_middle" style="left:351px; top:9px; width:16px; height:19px; ">~</caption>
- <input id="ipt_todd" ref="/root/main/search/todd" class="input_search" navindex="2" inputtype="date" style="left:366px; top:9px; width:100px; height:19px; "/>
- <input id="ipt_servyy" ref="/root/main/search/servyy" class="input_search" navindex="7" maxlength="4" max="4" style="left:280px; top:9px; width:89px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode==13)
- {
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
-
- fStudVoluntrAttdAbsnReq();
-
- }
- ]]>
- </script>
- </input>
- <caption id="cap_vacflag" class="search_name" style="left:490px; top:10px; width:90px; height:17px; ">방학구분 :</caption>
- <caption id="cap_name" class="search_name" style="left:910px; top:10px; width:95px; height:17px; ">성 명 :</caption>
- <select1 id="com_svcflag" ref="/root/main/search/voluntractteamcd" class="combo_search" navindex="4" appearance="minimal" style="left:794px; top:9px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0360">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fStudVoluntrAttdAbsnReq();
- ]]>
- </script>
- </select1>
- <caption id="cap_svcflag" class="search_name" style="left:695px; top:10px; width:100px; height:17px; ">봉사구분 :</caption>
- <caption id="cap_actdeptcd" class="search_name" style="left:485px; top:10px; width:100px; height:17px; ">활동부서 :</caption>
- <select1 id="cmb_actdeptcd" ref="/root/main/search/actdeptcd" class="combo_search" navindex="3" appearance="minimal" style="left:594px; top:9px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0503">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fStudVoluntrAttdAbsnReq();
- ]]>
- </script>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:410px; x2:1194px; y2:410px; "/>
- <datagrid id="grd_stdsvcattendlist" nodeset="/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo" caption="^출결여부^출석구분^활동시간^활동일자^성명^봉사구분^활동부서^비고^actrgstseqno
^actfromdd
^acttodd
^studapptseqno
^otyn^servseqno^servkind" colsep="^" colwidth="45, 80, 80, 69, 96, 100, 90, 150, 100, 18, 22, 20, 22, 19, 23, 14" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:415px; width:1194px; height:325px; ">
- <col checkvalue="1,0" ref="chk" type="checkbox"/>
- <col ref="attdabsnflagyn" style="text-align:center; "/>
- <col ref="attdabsnflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd1/A0024A0506">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="servtm" type="input" maxlength="4" style="text-align:center; "/>
- <col ref="servdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="voluntrnm"/>
- <col disabled="true" ref="voluntractteamcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd1/A0360">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="actdeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd1/A0503">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="attdrem" type="input" maxlength="20"/>
- <col ref="actrgstseqno" visibility="hidden"/>
- <col ref="actfromdd" visibility="hidden"/>
- <col ref="acttodd" visibility="hidden"/>
- <col ref="studapptseqno" visibility="hidden"/>
- <col ref="otyn" visibility="hidden"/>
- <col ref="servseqno" visibility="hidden"/>
- <col ref="servkind" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var idxRow=grd_stdsvcattendlist.row;
- var attdabsnflag=model.getValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+idxRow+"]/attdabsnflag");
-
- //if(model.getValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+idxRow+"]/chk")=="1")
- //{ //체크 되어있을 때
-
- if(grd_stdsvcattendlist.col=="3")
- { // 출석구분 값이 바뀌었을 때
- // 결석 선택된 경우 활동시간 초기화 0 값 셋팅
- if(attdabsnflag=="03")
- {
- model.resetInstanceNode("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+idxRow+"]/servtm");
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+idxRow+"]/servtm","0");
- }
- // 출결 선택된 경우 초기화 후 ot시간 셋팅
- else
- {
- model.resetInstanceNode("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+idxRow+"]/servtm");
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+idxRow+"]/servtm",model.getValue("/root/main/ottm"));
-
- }
- model.refresh();
- //}
- /*if(grd_stdsvcattendlist.col=="1") //체크 선택시
- {
- // 결석 선택된 경우 활동시간 초기화 0 값 셋팅
- if(attdabsnflag=="03")
- {
- model.resetInstanceNode("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+idxRow+"]/servtm");
- model.makeValue("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+idxRow+"]/servtm","0");
- }
- else
- { //출결일때는 초기화
- model.resetInstanceNode("/root/main/studvoluntrattdabsnlist/studvoluntrattdabsninfo"+"["+idxRow+"]/servtm");
- }
-
- }*/
- }
-
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:5px; top:390px; width:196px; height:13px; ">학생자원봉사자 출결 등록</caption>
- <datagrid id="grd_studvoluntrlist" nodeset="/root/main/studvoluntrlist/studvoluntrinfo" caption="년도^방학구분^시작일^종료일^성명^생년월일^성별^e-mail^활동부서^학교명^활동시간 누계^voluntrid^studapptseqno^actrgstseqno" colsep="^" colwidth="60, 80, 89, 88, 100, 90, 70, 180, 142, 153, 99, 8, 3, 4" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:77px; width:1194px; height:296px; ">
- <col ref="servyy" style="text-align:center; "/>
- <col disabled="true" ref="vacatflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0366">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="actfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="acttodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="voluntrnm"/>
- <col ref="brthdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="sex" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>남자</label>
- <value>M</value>
- </item>
- <item>
- <label>여자</label>
- <value>F</value>
- </item>
- <!--<choices>
- <itemset nodeset="/root/init/sex_cmblist/P0313">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>-->
- </choices>
- </col>
- <col ref="email"/>
- <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="schnm"/>
- <col ref="servtm" format="#,###" style="text-align:center; "/>
- <col ref="voluntrid" visibility="hidden"/>
- <col ref="studapptseqno" visibility="hidden"/>
- <col ref="actrgstseqno" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_studvoluntrlist.isCell(event.target) && grd_studvoluntrlist.mouseRow >= grd_studvoluntrlist.fixedrows) // 01클릭하는 위치가 그리드 안에 있을 때만 함수 실행
- {
-
- if(model.getValue("/root/main/search/otynflag")!="Y")
- { //ot등록여부가 체크 되지 않았을 때만 명단 체크시 출결 등록창에 데이터 보여지게 함
- fStudVoluntrAttdInfoReq();
- }
-
- }
- else
- {
- return;
- }
- ]]>
- </script>
- </datagrid>
- <input id="ipt_joinorgdd" ref="/root/main/otynrgstdd" class="input_essential" navindex="28" inputtype="date" style="left:294px; top:383px; width:102px; height:19px; font-weight:bold; "/>
- <shape id="roundrect1" class="roundrect_example" appearance="roundrect" style="left:189px; top:379px; width:340px; height:28px; "/>
- <caption id="cpt_voluntrflag" class="cell_1" style="left:195px; top:384px; width:95px; height:19px; font-weight:bold; vertical-align:middle; ">OT등록일자 :</caption>
- <caption id="caption2" class="cell_1" style="left:405px; top:384px; width:70px; height:19px; font-weight:bold; vertical-align:middle; ">OT시간 :</caption>
- <input id="ipt_ottm" ref="/root/main/ottm" class="input_essential" navindex="28" maxlength="4" style="left:478px; top:383px; width:46px; height:19px; font-weight:bold; text-align:center; "/>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button17" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1067px; top:3px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fStudVoluntrAttdAbsnDel();
- ]]>
- </script>
- </button>
- <button id="button10" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1126px; top:3px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fStudVoluntrAttdAbsnReset();
- ]]>
- </script>
- </button>
- <line id="line16" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="button1" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1006px; top:3px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fStudVoluntrAttdAbsnSave();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|