123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>자원봉사자출결조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <savedata/>
- <reqdata/>
- <data/>
- </send>
- <main>
- <voluntrattdabsninfo>
- <voluntrattdabsnlist>
- <chk/>
- <attdabsnyn/>
- <attdabsnflag/>
- <actdeptcd/>
- <actdeptdetlnm/>
- <voluntractdwcd/>
- <voluntractteamcd/>
- <voluntrnm/>
- <baptnm/>
- <servtm/>
- <attdrem/>
- <servdd/>
- <actrgstseqno/>
- <voluntrid/>
- <servkind/>
- <m/>
- <status/>
- </voluntrattdabsnlist>
- </voluntrattdabsninfo>
- <voluntrcalinfo>
- <voluntrcallist>
- <basedd/>
- <absn/>
- <dutflag/>
- <day/>
- <dw/>
- <weekno/>
- </voluntrcallist>
- </voluntrcalinfo>
- <search>
- <fromdd/>
- <todd/>
- <actdeptcd/>
- <voluntractdwcd/>
- <voluntractteamcd/>
- <actdivscd/>
- <voluntrid/>
- <voluntrnm/>
- <chrgnm/>
- </search>
- <attdabsn>
- <attdabsndata/>
- </attdabsn>
- <calendar>
- <calyy/>
- <calmm/>
- </calendar>
- <cond>
- <conddate/>
- </cond>
- <cal>
- <weeks>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- </weeks>
- <weeks>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- </weeks>
- <weeks>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- </weeks>
- <weeks>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- </weeks>
- <weeks>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- </weeks>
- <weeks>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- </weeks>
- </cal>
- <reqpopup>
- <reqpopuplist/>
- </reqpopup>
- </main>
- <init>
- </init>
- <hidden>
- <init>
- <comcd/>
- <comcd1/>
- <calenlist/>
- </init>
- <calendar>
- <month/>
- <year/>
- <weeklist>
- <list/>
- </weeklist>
- </calendar>
- </hidden>
- <code/>
- </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="TRAAA04101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/search" resultref="/root/main/voluntrattdabsninfo"/>
- </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"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../ast/soclworkweb/js/AWMCommon.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- </xhtml:head>
- <script type="javascript">
- <![CDATA[
- // 초기화 함수
- function fInit()
- {
- //공통코드 셋팅
- zbcfGetCodeList( new Array("A0503","A0359","A0360","A0506","A0503","A0359","A0360", "A0654"),
- new Array("/root/hidden/init/comcd","/root/hidden/init/comcd","/root/hidden/init/comcd","/root/hidden/init/comcd",
- "/root/hidden/init/comcd1","/root/hidden/init/comcd1","/root/hidden/init/comcd1", "/root/hidden/init/comcd") );
- addComboItem("cmb_actdeptcd", "전체", "", "above");
- addComboItem("cmb_actdivscd", "전체", "", "above");
-
- cmb_actdivscd.value = "02";
- grd_attdnc.fixedcellcheckbox(0,1)=true;
-
- ipt_fromdd.value = getCurrentDate();
- ipt_todd.value = getCurrentDate();
-
- }
-
- function fSearch() {
- submit("TRAAA04101");
- }
-
- ]]>
- </script>
- <xhtml:body guideline="1,1195;" 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:233px; height:13px; font-family:돋움체; ">자원봉사자 봉사활동 내역 조회</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; font-family:돋움체; ">
- <button id="button89" class="btn2_letter2" style="left:1150px; top:50px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- group4.visible = true;
- ]]>
- </script>
- </button>
- <line id="line12" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
- <caption id="caption32" class="tit_2" style="left:0px; top:55px; width:140px; height:13px; ">봉사활동 내역 조회</caption>
- <group id="group1" style="left:0px; top:10px; width:1190px; height:38px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:38px; font-family:돋움체; "/>
- <caption id="caption1" class="search_name" style="left:295px; top:10px; width:91px; height:17px; font-family:돋움체; ">소속분야 :</caption>
- <line id="line13" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:26px; font-family:돋움체; "/>
- <select1 id="cmb_actdeptcd" ref="/root/main/search/actdeptcd" class="combo_search" appearance="minimal" style="left:565px; top:10px; width:125px; height:19px; font-family:돋움체; ">
- <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[
- fSearch();
- ]]>
- </script>
- </select1>
- <button id="btn_search" class="btn1_letter2" style="left:1120px; top:7px; width:56px; height:22px; font-family:돋움체; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:700px; top:10px; width:82px; height:17px; font-family:돋움체; ">봉사자 :</caption>
- <caption id="caption4" class="search_name" style="left:475px; top:10px; width:91px; height:17px; font-family:돋움체; ">소속센터 :</caption>
- <select1 id="cmb_actdivscd" ref="/root/main/search/actdivscd" class="combo_search" appearance="minimal" style="left:385px; top:10px; width:80px; height:19px; font-family:돋움체; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0654">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="search_name" style="left:5px; top:10px; width:91px; height:17px; font-family:돋움체; ">출석일자 :</caption>
- <input id="ipt_fromdd" ref="/root/main/search/fromdd" class="input_search" inputtype="date" style="left:100px; top:10px; width:85px; height:19px; font-family:돋움체; "/>
- <input id="ipt_todd" ref="/root/main/search/todd" class="input_search" inputtype="date" style="left:200px; top:10px; width:85px; height:19px; font-family:돋움체; "/>
- <caption id="caption5" style="left:187px; top:10px; width:13px; height:20px; font-family:돋움체; font-weight:bold; ">~</caption>
- <input id="ipt_voluntrid" ref="/root/main/search/voluntrid" style="left:780px; top:10px; width:100px; height:19px; "/>
- <input id="ipt_voluntrnm" ref="/root/main/search/voluntrnm" style="left:905px; top:10px; width:100px; height:19px; "/>
- <button id="button1" class="icon_search" style="left:885px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.makeValue("/root/source/flag",'Y'); // 수시봉사내역에서 호출함은 알려주는 플래그 값 Y
- model.makeValue("/root/source/popupflag",'Y'); // 팝업창 호출 플래그 값 Y
- model.makeNode("/root/source/voluntrnm");
- model.makeNode("/root/source/rrgstno1");
- model.makeNode("/root/source/rrgstno2");
-
- modal("SPAAA02400", "1","150", "150", "SPAAA02400", "/root/source", "/root/send/reqdata"); ///root/source 의 인스턴스를 자원봉사자조회 팝업 화면의 /root/send/reqdata 밑의 인스턴스로 복사 하며 팝업 창 호출
-
- if ( !isNull(model.getValue("/root/main/reqpopup/reqpopuplist/voluntrid")) ){
- ipt_voluntrid.value = model.getValue("/root/main/reqpopup/reqpopuplist/voluntrid")
- ipt_voluntrnm.value = model.getValue("/root/main/reqpopup/reqpopuplist/voluntrnm")
- }
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_attdnc" nodeset="/root/main/voluntrattdabsninfo/voluntrattdabsnlist" caption="^출석일자^출결여부^출석구분^활동시간^소속분야^소속센터^소속센터^활동요일^활동시간대^성명^세례명^내용^caption1^caption2^caption3^servdd^servseqno^status" colsep="^" colwidth="36, 80, 54, 54, 54, 100, 120, 80, 58, 110, 74, 0, 170, 10, 16, 11, 3, -4, 20" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:75px; width:1195px; height:665px; ">
- <col checkvalue="1,0" ref="chk" type="checkbox"/>
- <col ref="servdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="attdabsnyn" style="text-align:center; "/>
- <col ref="attdabsnflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0506">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="servtm" type="input" format="#.9" maxlength="4" style="text-align:center; "/>
- <col ref="actdivscd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0654">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="actdeptcd" type="combo" format="yyyy-mm-dd" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0503">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="actdeptdetlnm" type="input"/>
- <col disabled="true" ref="voluntractdwcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd1/A0359">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <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 ref="voluntrnm" style="text-align:center; "/>
- <col ref="baptnm" visibility="hidden"/>
- <col ref="attdrem" type="input" maxlength="20"/>
- <col ref="actrgstseqno" visibility="hidden"/>
- <col ref="voluntrid" visibility="hidden"/>
- <col ref="servkind" visibility="hidden"/>
- <col ref="servdd" visibility="hidden"/>
- <col ref="servseqno" visibility="hidden"/>
- <col ref="status" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var idxRows=grd_attdnc.row;
- var idxRow=idxRows-1;
- var fixRox=grd_attdnc.fixedRows;
- var idxrow=idxRows;
- var attdabsnflag=model.getValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/attdabsnflag");
- var actdeptcd=model.getValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/actdeptcd");
- var voluntractteamcd=model.getValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/voluntractteamcd");
- if(grd_attdnc.col=="3")
- { // 출석구분 값이 바뀌었을 때
- // 결석, 휴가, 병가로 선택된 경우 활동시간 초기화
- if(attdabsnflag=="03"||attdabsnflag=="04"||attdabsnflag=="05")
- {
- model.resetInstanceNode("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm");
- model.makeValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm","0.0");
- // 2009.6.12 수정
- grd_attdnc.isReadOnly(idxrow,grd_attdnc.colRef("servtm"))=true;
- //alert(grd_attdnc.isReadOnly(idxrow,grd_attdnc.colRef("servtm")));
- //alert(idxrow);
- }
- else if(actdeptcd=='04'&& voluntractteamcd=='3')
- {// 활동부서가 호스피스이면서 소속팀이 종일일때 6시간 셋팅
- model.resetInstanceNode("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm");
- model.makeValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm","6.0");
- grd_attdnc.isReadOnly(idxrow,grd_attdnc.colRef("servtm"))=false;
- }
- else
- {// 출결, 대근일 경우 활동시간에 자동 3시간 셋팅
- model.resetInstanceNode("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm");
- //의정부성모일경우 활동시간을 2.5시간으로 셋팅한다.-kys-20090710
- if(model.getValue("/root/code/codeinfo/codelist[cdgrupid = '077' and supcdid = '02' and cdid = '"+ getUserInfo("dutplceinstcd") +"']/cdid")){ //02:의정부성모
- model.makeValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm","2.5");
- }if(model.getValue("/root/code/codeinfo/codelist[cdgrupid = '077' and supcdid = '03' and cdid = '"+ getUserInfo("dutplceinstcd") +"']/cdid")){ //03:부천성가
- model.makeValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm","2.0");
- }else{
- model.makeValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm","3.0");
- }
- grd_attdnc.isReadOnly(idxrow,grd_attdnc.colRef("servtm"))=false;
- }
- }
- /*if(grd_attdnc.col=="4")
- {
- var servtm=model.getValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm"); // 활동시간 저장
- //alert(servtm);
- if(servtm>10)
- {
- var upservtm=servtm.substr(0,1); // 활동시간 정수 자리
- var bkservtm=servtm.substr(1,1); // 활동시간 소숫점 앞 자리
- //alert(upservtm);
- //alert(bkservtm);
- model.makeValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm",upservtm+'.'+bkservtm);
- }
- // 활동시간에 값 입력시 출석구분에 결석, 휴가, 병가로 선택된 경우
- if(attdabsnflag=="03"||attdabsnflag=="04"||attdabsnflag=="05")
- {//시간에 값이 들어가있으면 message처리 함
- if(model.getValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm")!="")
- {
- //messageBox("휴가,병가,결석시에는 봉사시간을 입력할 수","I004");
- model.resetInstanceNode("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm");
- model.makeValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm","0");
- grd_attdnc.isReadOnly(idxRow,grd_attdnc.colRef("servtm"))=true;
- }
- }
- else
- {
- grd_attdnc.isReadOnly(idxRow,grd_attdnc.colRef("servtm"))=false;
- }
- }*/
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <group id="group4" visibility="hidden" style="left:975px; top:70px; width:205px; height:80px; background-color:#8cf1fb; ">
- <caption id="caption13" style="left:10px; top:15px; width:100px; height:15px; font-weight:bold; ">담당자</caption>
- <input id="input1" ref="/root/main/search/chrgnm" style="left:5px; top:30px; width:195px; height:19px; "/>
- <button id="button5" class="btn5_letter2" style="left:110px; top:55px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPAAA00201", "XMLSTR", "", "", "false");
- ]]>
- </script>
- </button>
- <button id="button6" class="btn5_letter2" style="left:155px; top:55px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group4.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <button id="button2" class="btn2_letter4" style="left:1085px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "자원봉사자출결조회", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_attdnc.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line1" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|