123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307 |
- <?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="">
- <send>
- <savedata/>
- </send>
- <main>
- <actsource>
- <servkind/>
- <actdeptcd/>
- <actdeptdetlnm/>
- <voluntractdwcd/>
- <voluntractteamcd/>
- <actfromdd/>
- <acttodd/>
- <voluntrid/>
- <actrgstseqno/>
- <status/>
- <reflag/>
- <specactteam/>
- <joinorgdd/>
- <actdivscd/>
- </actsource>
- <returnsts>
- <statusinfo>
- <restatus/>
- <voluntrid/>
- <actstatflag/>
- <restatusdd/>
- </statusinfo>
- </returnsts>
- </main>
- <init>
- </init>
- <hidden>
- <init>
- <comcd/>
- <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="TXAAA03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/returnsts"/>
- </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()
- {
- zbcfGetCodeList( new Array("A0653","A0503","A0359","A0360", "A0507","A0654"),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/comcd")); // 관계코드 설정
-
- //zbcfGetKindCodeList(new Array("A0018"), new Array("A0507"),new Array("/root/hidden/init/comcd1"),true,'','');
-
- if(model.getValue("/root/main/actsource/status")=="i")
- { // 활동상태가 i일때 99991231 기본값으로 셋팅
- model.makeValue("/root/main/actsource/acttodd","99991231");
- }
-
- model.refresh();
- }
-
- //확인
- function fSendParam()
- {
- var actdeptcd=model.getValue("/root/main/actsource/actdeptcd"); //활동부서
- var voluntractdwcd=model.getValue("/root/main/actsource/voluntractdwcd"); //소속팀
- var voluntractteamcd=model.getValue("/root/main/actsource/voluntractteamcd"); //소속팀
- var actfromdd=model.getValue("/root/main/actsource/actfromdd"); //활동시작일
- var acttodd=model.getValue("/root/main/actsource/acttodd"); //활동종료일
- var servkind=model.getValue("/root/main/actsource/servkind"); //봉사 구분
- var joinorgdd=model.getValue("/root/main/actsource/joinorgdd"); // 입단일
- var actdivscd = model.getValue("/root/main/actsource/actdivscd"); // 입단일
-
- //model.makeValue("/root/main/actsource/specactteam","%"); //활동기간 체크시 sql에서 특별활동팀이 아닐때는 전체를 조회하기 위한 %
-
- if(isNull(servkind))
- {
- //저장시 봉사 구분이 비어있으면
- messageBox("봉사구분은","I003");
- model.setFocus("cmb_servkind");
- return;
- }
- if(actdeptcd=='')
- {
- messageBox("활동부서는","I003");
- model.setFocus("cmb_actdeptcd");
- return ;
- }
- if(voluntractdwcd==''||voluntractteamcd=="")
- {
- messageBox("소속팀은","I003");
- model.setFocus("cmb_voluntractdwcd");
- return ;
- }
- if(actfromdd=='')
- {
- messageBox("활동시작일자는","I003");
- model.setFocus("ipt_actfromdd");
- return ;
- }
- if(acttodd=='')
- {
- messageBox("활동종료일자는","I003");
- model.setFocus("ipt_acttodd");
- return ;
- }
- if(actfromdd>acttodd) //for문을 돌면서 활동종료일보다 활동 시작일이 큰 데이터가 있는지 체크하여 메시지 처리한다.
- {
- messageBox("활동 시작일자는 활동종료일자보다 클 수","I004");
- model.setFocus("ipt_actfromdd");
- return ;
- }
- if(actfromdd<joinorgdd)
- {
- messageBox("입단일자보다 큰 활동시작일자를 입력해 주십시요.","I");
- model.setFocus("ipt_actfromdd");
- return ;
- }
-
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
-
- model.copyNode("/root/send/savedata","/root/main/actsource");
-
- if(submit("TXAAA03001")==true)
- {
- if(model.getValue("/root/main/returnsts/statusinfo/restatus")=="N") // 특별활동 구간이 겹칠 때
- {
- messageBox("활동 구간이","E006");
- return;
- }
- if(model.getValue("/root/main/returnsts/statusinfo/restatus")=="L")
- {
- messageBox("활동 시작일자 전의 출결내역이 존재합니다. 수정할 수 ","I004");
- return;
- }
- if(model.getValue("/root/main/returnsts/statusinfo/restatus")=="K")
- {
- messageBox("활동 종료일자 후의 출결내역이 존재합니다. 수정할 수 ","I004");
- return;
- }
- else
- {
- messageBox("활동 처리가","I002");
- opener.model.makeValue("/root/actsource/status","u");
- // 자원봉사자 신상등록 화면의 status에 u를 저장
- opener.model.makeValue("/root/actsource/reflag","c");
- // 처리가 완료되었다는 의미의 플래그 c반환
- window.close();
- }
- }
- }
- function fDelActInfo()
- {
- var btn=messageBox("활동정보를","Q001");
- if(btn=='6')
- {
- if(model.getValue("/root/main/actsource/status")=="i") // 등록을 위해 팝업창을 열었을 경우에는 삭제할 수 없다.
- {
- messageBox("삭제할 봉사활동 처리 내역이","I004");
- return;
- }
- model.makeValue("/root/main/actsource/status","d"); //상태값에 d저장
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
-
- model.copyNode("/root/send/savedata","/root/main/actsource");
-
- if(submit("TXAAA03001")==true)
- {
- if(model.getValue("/root/main/returnsts/statusinfo/restatus")=="F") // 출결정보 존재하면
- {
- messageBox("해당기간에 출결처리한 내역이 존재합니다. 삭제할 수 ","I004");
- }
- else
- {
- messageBox("활동내역 삭제가","I002");
- opener.model.makeValue("/root/actsource/reflag","c");
- // 처리가 완료되었다는 의미의 플래그 c반환
- window.close();
- }
-
- }
- else
- {
- model.makeValue("/root/main/actsource/status","u");
- return;
- }
-
- }
- else if(btn=='7')
- {
- return;
- }
- }
- ]]>
- </script>
- <xhtml:body pagewidth="465" pageheight="132" guideline="1,500;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_btn" scroll="auto" style="left:0px; top:105px; width:439px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:438px; y2:0px; "/>
- <button id="btn_confirm" class="btn4_letter2" style="left:322px; top:5px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelActInfo();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:381px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //opener.javascript.setParameter("flag", "N");
- //opener.model.makeValue("/root/holisource/status","r"); //취소를 뜻하는 r 플래그 저장
- model.close();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" style="left:263px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSendParam();
- //model.close();
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:0px; width:439px; height:105px; ">
- <line id="line8" class="line_2" style="x1:0px; y1:23px; x2:439px; y2:23px; "/>
- <line id="line1" class="line_2" style="x1:0px; y1:47px; x2:439px; y2:47px; "/>
- <caption id="caption5" class="cell_1" style="left:0px; top:1px; width:85px; height:23px; vertical-align:middle; ">봉사구분</caption>
- <input id="ipt_actdeptdetlnm" ref="/root/main/actsource/actdeptdetlnm" class="input_default" navindex="3" maxlength="10" style="left:317px; top:26px; width:120px; height:19px; "/>
- <select1 id="cmb_voluntractdwcd" ref="/root/main/actsource/voluntractdwcd" class="combo_default" navindex="4" appearance="minimal" style="left:87px; top:50px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0359">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_actfromdd" ref="/root/main/actsource/actfromdd" class="input_default" disabled="false" navindex="6" inputtype="date" style="left:87px; top:74px; width:140px; height:19px; "/>
- <select1 id="cmb_voluntractteamcd" ref="/root/main/actsource/voluntractteamcd" class="combo_default" navindex="5" appearance="minimal" style="left:317px; top:50px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0360">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line2" class="line_2" style="x1:0px; y1:71px; x2:439px; y2:71px; "/>
- <caption id="caption2" class="cell_1" style="left:0px; top:73px; width:85px; height:23px; vertical-align:middle; ">활동시작일자</caption>
- <caption id="caption3" class="cell_1" style="left:230px; top:73px; width:85px; height:23px; vertical-align:middle; ">활동종료일자</caption>
- <select1 id="cmb_actdeptcd" ref="/root/main/actsource/actdeptcd" class="combo_default" navindex="2" appearance="minimal" style="left:87px; top:26px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0503">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_acttodd" ref="/root/main/actsource/acttodd" class="input_default" disabled="false" navindex="7" inputtype="date" style="left:317px; top:74px; width:120px; height:19px; "/>
- <caption id="caption4" class="cell_1" style="left:230px; top:25px; width:85px; height:23px; vertical-align:middle; ">소속센터기타</caption>
- <select1 id="cmb_servkind" ref="/root/main/actsource/servkind" class="combo_default" navindex="1" appearance="minimal" style="left:87px; top:2px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0507">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption8" class="cell_1" style="left:0px; top:25px; width:85px; height:23px; vertical-align:middle; ">소속센터</caption>
- <caption id="caption6" class="cell_1" style="left:0px; top:49px; width:85px; height:23px; vertical-align:middle; ">활동요일</caption>
- <caption id="caption1" class="cell_1" style="left:230px; top:49px; width:85px; height:23px; vertical-align:middle; ">활동시간대</caption>
- <line id="line3" class="line_3" style="x1:0px; y1:95px; x2:439px; y2:95px; "/>
- <caption id="caption7" class="cell_1" style="left:230px; top:0px; width:85px; height:23px; vertical-align:middle; ">소속분야</caption>
- <select1 id="cmb_actdivscd" ref="/root/main/actsource/actdivscd" class="combo_default" navindex="5" appearance="minimal" style="left:316px; top:2px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0654">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|