123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- <?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>
- <spcsource>
- <voluntrid/>
- <servkind/>
- <specactteam/>
- <actfromdd/>
- <acttodd/>
- <status/>
- <reflag/>
- </spcsource>
- <returnsts>
- <statusinfo>
- <restatus/>
- <voluntrid/>
- <actstatflag/>
- <restatusdd/>
- </statusinfo>
- </returnsts>
- </main>
- <init>
- </init>
- <hidden>
- <init>
- <comcd/>
- </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="TXAAA02101" 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("A0516"),new Array("/root/hidden/init/comcd")); // 관계코드 설정
-
- //zbcfGetKindCodeList(new Array("A0516"), new Array("A0506"),new Array("/root/hidden/init/comcd"),true,'','');
-
- model.refresh();
- }
-
- //확인
- function fSendParam()
- {
- var servkind=model.getValue("/root/main/spcsource/servkind"); //봉사구분
- var specactteam=model.getValue("/root/main/spcsource/specactteam"); //특별활동팀
- var actfromdd=model.getValue("/root/main/spcsource/actfromdd"); //휴가시작일
- var acttodd=model.getValue("/root/main/spcsource/acttodd"); //휴가종료일
-
- if(servkind=="")
- {
- messageBox("봉사구분은","I003");
- return;
- }
- if(specactteam=='')
- {
- messageBox("특별활동팀은","I003");
- model.setFocus("cmb_specactteam");
- return;
- }
- if(actfromdd=="")
- {
- messageBox("활동시작일자는","I003");
- model.setFocus("ipt_actfromdd");
- return;
- }
- if(acttodd=='')
- {
- messageBox("활동종료일자는","I003");
- model.setFocus("ipt_acttodd");
- return;
- }
- if(acttodd<actfromdd)
- {
- messageBox("활동 종료일자보다 작은 활동 시작일자를 입력하십시요","I");
- return;
- }
-
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
-
- model.copyNode("/root/send/savedata","/root/main/spcsource");
-
- if(submit("TXAAA02101")==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/spcsource/status","u");
- // 자원봉사자 신상등록 화면의 status에 u를 저장
- opener.model.makeValue("/root/spcsource/reflag","c");
- // 처리가 완료되었다는 의미의 플래그 c반환
- opener.model.refresh();
- window.close();
- }
-
- }
- }
- function fDelSpecActTeam()
- {
- var btn=messageBox("특별활동내역을","Q001");
- if(btn=='6')
- {
- if(model.getValue("/root/main/spcsource/status")=="i") //등록창에서 삭제 버튼을 눌렀을 때
- {
- messageBox("삭제할 특별활동 내역이","I004");
- return;
- }
- model.makeValue("/root/main/spcsource/status","d"); //상태값에 d저장
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
-
- model.copyNode("/root/send/savedata","/root/main/spcsource");
-
- if(submit("TXAAA02101")==true)
- {
- if(model.getValue("/root/main/returnsts/statusinfo/restatus")=="F") // 출결정보 존재하면
- {
- messageBox("해당기간에 출결처리한 내역이 존재합니다. 삭제할 수 ","I004");
- }
- else
- {
- messageBox("특별활동내역 삭제가","I002");
- opener.model.makeValue("/root/spcsource/reflag","c");
- // 처리가 완료되었다는 의미의 플래그 c반환
- opener.model.refresh();
- window.close();
- }
-
- }
- else
- {
- model.makeValue("/root/main/holisource/status","u");
- return;
- }
-
- }
- else if(btn=='7')
- {
- return;
- }
-
- }
- ]]>
- </script>
- <xhtml:body pagewidth="480" pageheight="110" 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:66px; width:449px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:448px; y2:0px; "/>
- <button id="btn_confirm" class="btn4_letter2" style="left:332px; top:3px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelSpecActTeam();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:391px; top:3px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //opener.javascript.setParameter("flag", "N");
- opener.model.makeValue("/root/spcsource/status","r"); //취소를 뜻하는 r 플래그 저장
- model.close();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" navindex="4" style="left:273px; top:3px; 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:3px; width:450px; height:55px; ">
- <line id="line8" class="line_2" style="x1:0px; y1:22px; x2:443px; y2:22px; "/>
- <caption id="caption6" class="cell_1" style="left:0px; top:24px; width:85px; height:23px; vertical-align:middle; ">활동시작일자</caption>
- <caption id="caption8" class="cell_1" style="left:220px; top:24px; width:85px; height:23px; vertical-align:middle; ">활동종료일자</caption>
- <input id="ipt_actfromdd" ref="/root/main/spcsource/actfromdd" class="input_default" disabled="false" navindex="2" inputtype="date" style="left:88px; top:26px; width:120px; height:19px; "/>
- <input id="ipt_acttodd" ref="/root/main/spcsource/acttodd" class="input_default" disabled="false" navindex="3" inputtype="date" style="left:310px; top:26px; width:120px; height:19px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:48px; x2:443px; y2:48px; "/>
- <select1 id="cmb_specactteam" ref="/root/main/spcsource/specactteam" class="combo_default" navindex="1" appearance="minimal" style="left:88px; top:2px; width:132px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0516">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="cell_1" style="left:0px; top:0px; width:85px; height:23px; vertical-align:middle; ">특별활동</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|