123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591 |
- <?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>
- <cond>
- <actfromdd/>
- <acttodd/>
- <actdeptcd/>
- <voluntractdwcd/>
- <voluntractteamcd/>
- <servkind/>
- <actdivscd/>
- </cond>
- <svcspec>
- <svcspeclist>
- <voluntrid/>
- <voluntrnm/>
- <actdeptcd/>
- <actdeptdetlnm/>
- <voluntractdwcd/>
- <voluntractteamcd/>
- <servdd/>
- <servtm/>
- <attdrem/>
- <servseqno/>
- <actrgstseqno/>
- <instcd/>
- </svcspeclist>
- </svcspec>
- <popupinfo>
- <param/>
- <flag/>
- <searchitem/>
- </popupinfo>
- <reqpopup>
- <reqpopuplist/>
- </reqpopup>
- </main>
- <init>
- <A0503list/>
- <A0359list/>
- <A0360list/>
- <A0654list/>
- </init>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <tmp>
- <svcspec>
- <joinnobaseinfo>
- <voluntrid/>
- <voluntrnm/>
- <actdeptcd/>
- <actdeptdetlnm/>
- <voluntractdwcd/>
- <voluntractteamcd/>
- <actrgstseqno/>
- <servdd/>
- <servtm/>
- <attdrem/>
- </joinnobaseinfo>
- </svcspec>
- </tmp>
- <source>
- </source>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- // fSvrSpec();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRAAA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/svcspec"/>
- <submission id="TXAAA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
- <submission id="TRAAA01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/tmp/svcspec"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- //화면 오픈시 초기화
- function fInit() {
- model.removeNodeset("/root/main/svcspec/svcspeclist");
- model.resetInstanceNode("/root/main/cond");
- var Ndate = getNewDate();
- var Idate = Ndate.getDateFormat("YYYYMM")+ "01";
-
- // ipt_fromdd.value = Idate; // 조회구간에 매달 첫째날짜(디폴트)
- // ipt_todd.value = getCurrentDate();// 조회구간에 현재날짜(디폴트)
- model.setValue("/root/main/cond/actfromdd", Idate);
- //model.setValue("/root/main/cond/acttodd", getCurrentDate());
-
- var sDate = getNewDate(); //달의 마지막날 가져오기
- var lastDate = sDate.getFullYear();
- lastDate = lastDate.toString() + (( sDate.getMonth() + 1 > 9 ) ? sDate.getMonth() + 1 : "0" + (sDate.getMonth() + 1));
- lastDate = lastDate.toString() + sDate.getMonthDay();
- model.setValue("/root/main/cond/acttodd", lastDate);
-
- // 공통코드를 조회한다.
- addComboItem("cmb_actdept", "- 전 체 -", "", "above");
- addComboItem("cmb_posteam1", "- 전 체 -", "", "above");
- addComboItem("cmb_posteam2", "- 전 체 -", "", "above");
- addComboItem("cmb_actdivscd", "- 전 체 -", "", "above");
-
- zbcfGetCodeList( new Array("A0503", "A0359", "A0360", "A0654"), new Array("/root/init/A0503list", "/root/init/A0359list", "/root/init/A0360list","/root/init/A0654list") );
- cmb_servkind.select(0);
-
- //메뉴파라미터값에 따른 활동부서 비활성처리
- //SMAAA01300_param : 호스피스 : 04 원목실 : 05
- var SMAAA01300_param = getScreenMenuParameter(); //2
- if(SMAAA01300_param=='2') {
- model.setValue("/root/main/cond/actdeptcd", "04");
- cmb_actdept.disabled = true;
- }
- if(SMAAA01300_param=='3') {
- model.setValue("/root/main/cond/actdeptcd", "05");
- model.setValue("/root/main/cond/voluntractteamcd", "3");
- cmb_actdept.disabled = true;
- }
-
- model.refresh();
- }
-
- //조회버튼 클릭시
- function fRefSvrSpecList() {
-
- var SMAAA01300_param = getScreenMenuParameter();
-
- if (model.getValue("/root/main/cond/actfromdd") > model.getValue("/root/main/cond/acttodd")) {
- messageBox("올바른 조회기간을","C001");
- model.setFocus("ipt_fromdd");
- return false;
- }
- if (model.getValue("/root/main/cond/actfromdd") == "" ) {
- messageBox("시작일자는 ","I003");
- model.setFocus("ipt_fromdd");
- return false;
- }
- if (model.getValue("/root/main/cond/actfromdd").length != 8 ) {
- messageBox("올바른 시작일자 항목을","C001");
- model.setFocus("ipt_fromdd");
- return false;
- }
- if (model.getValue("/root/main/cond/acttodd") == "" ) {
- messageBox("종료일자는 ","I003");
- model.setFocus("ipt_todd");
- return false;
- }
- if (model.getValue("/root/main/cond/acttodd").length != 8 ) {
- messageBox("올바른 종료일자 항목을","C001");
- model.setFocus("ipt_todd");
- return false;
- }
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRAAA01301");
- }
-
- //행추가 버튼 클릭시
- function fInsRow(){
- //행추가버튼 클릭시 한줄만 추가 servdd
- grd_svcspec.addRow();
- var row = grd_svcspec.rows-1;
-
- model.setValue("/root/main/svcspec/svcspeclist["+ row +"]/servdd",getCurrentDate());
- grd_svcspec.colDisabled(grd_svcspec.colRef("voluntrnm")) = true;
- grd_svcspec.colDisabled(grd_svcspec.colRef("actdeptcd")) = true;
- grd_svcspec.colDisabled(grd_svcspec.colRef("actdeptdetlnm")) = true;
- grd_svcspec.colDisabled(grd_svcspec.colRef("voluntractdwcd")) = true;
- grd_svcspec.colDisabled(grd_svcspec.colRef("voluntractteamcd")) = true;
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/actdeptcd", "-");
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntractdwcd", "-");
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntractteamcd", "-");
-
- model.refresh();
- }//fInsRow END
- //행삭제 버튼 클릭시
- function fDelRow() {
- var idx = grd_svcspec.row;
- if( idx > 0 ){
- //디비에 저장되지 않은 데이타는 그냥 삭제한다. 1: insert , 3 : insert and update
- if (grd_svcspec.rowStatus(idx) == "1" || grd_svcspec.rowStatus(idx) == "3"){
- grd_svcspec.deleteItem(idx);
- return;
- }
- if(idx != null){
- for (var i = 1; i < (grd_svcspec.rows-1); i++) {
- var voluntrid = model.getValue("/root/main/svcspec/svcspeclist[" + i + "]/voluntrid");
- var voluntrnm = model.getValue("/root/main/svcspec/svcspeclist[" + i + "]/voluntrnm");
- var actdeptcd = model.getValue("/root/main/svcspec/svcspeclist[" + i + "]/actdeptcd");
- var actdeptdetlnm = model.getValue("/root/main/svcspec/svcspeclist[" + i + "]/actdeptdetlnm");
- }//for END
- if ( voluntrid != "" || voluntrnm != "" || actdeptcd != "" || actdeptdetlnm != "" ) {
- grd_svcspec.addStatus(idx, "delete");
- }
- }//null check if END
- }else{
- messageBox("삭제할 일정을 ", "C002");
- grd_svcspec.removeStatus(idx, "delete");
- }
- }//fDelRow END
-
- //초기화 버튼 클릭시
- function fReset(){
- var btn = messageBox("초기화를 ", "Q004");
-
- if (btn == '6') {
- model.removeNodeset("/root/main/svcspec/svcspeclist");
- model.resetInstanceNode("/root/main/cond");
- var Ndate = getNewDate();
- var Idate = Ndate.getDateFormat("YYYYMM")+ "01";
-
- // ipt_fromdd.value = Idate; // 조회구간에 매달 첫째날짜(디폴트)
- // ipt_todd.value = getCurrentDate();// 조회구간에 현재날짜(디폴트)
- model.setValue("/root/main/cond/actfromdd", Idate);
- //model.setValue("/root/main/cond/acttodd", getCurrentDate());
- model.setValue("/root/main/cond/acttodd", model.getValue("/root/main/date/date/lastdate/lastdate"));
-
- var sDate = getNewDate(); //달의 마지막날 가져오기
- var lastDate = sDate.getFullYear();
- lastDate = lastDate.toString() + (( sDate.getMonth() + 1 > 9 ) ? sDate.getMonth() + 1 : "0" + (sDate.getMonth() + 1));
- lastDate = lastDate.toString() + sDate.getMonthDay();
- model.setValue("/root/main/cond/acttodd", lastDate);
-
- var SMAAA01300_param = getScreenMenuParameter(); //2
-
- if(SMAAA01300_param=='2') {
- model.setValue("/root/main/cond/actdeptcd", "04");
- cmb_actdept.disabled = true;
- }
- if(SMAAA01300_param=='3') {
- model.setValue("/root/main/cond/actdeptcd", "05");
- model.setValue("/root/main/cond/voluntractteamcd", "3");
- cmb_actdept.disabled = true;
- }
-
- model.refresh();
- } else if (btn == '7') {
- return;
- }
- }//fReset END
-
- //엑셀저장 버튼 클릭시
- function fExcel() {
- if (grd_svcspec.rows <= 1) {
- messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
- return;
- }
-
- var fileName = window.fileDialog("save", ",", false, "수시봉사내역관리", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_svcspec.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- }//fExcel END
-
- //저장버튼 클릭시
- function fSaveSvrSpecList() {
- var idx = grd_svcspec.row;
- var SMAAA01300_param2;
-
- if(grd_svcspec.rowStatus(idx) == "0"){
- messageBox("저장할 자료가 ","I004");
- return;
- }
-
- if( idx > 0 ){
- if(grd_svcspec.rowStatus(idx) == "2" || grd_svcspec.rowStatus(idx) == "3" || grd_svcspec.rowStatus(idx) == "4"){
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.makeNode("/root/send/savedata/condinfo");
- model.makeNode("/root/send/savedata/listinfo");
- model.copyNode("/root/send/savedata/condinfo", "/root/main/cond");
- model.setValue("/root/send/savedata/listinfo", grd_svcspec.getUpdateData());
-
- if(submit("TXAAA01301")) {
- messageBox("자료 저장이 ","I002");
- }
- grd_svcspec.clearStatus();
- }
- }//if END
- }//fSaveSvrSpecList END
- //입단번호 버튼클릭시 팝업
- function fPopupInfo() {
- var row = grd_svcspec.row;
-
- // model.resetInstanceNode("/root/main/popupinfo");
- // setParameter("SMAAA01300_paramyn","Y");
- //
- // modal("SPAAA02400",1,100,100);
- //
- // var SMAAA01300_voluntrid = getParameter("SMAAA01300_voluntrid"); //값을 받음
- // if ( !isNull(SMAAA01300_voluntrid) ){
- // model.makeValue("/root/send/reqdata/voluntrid", SMAAA01300_voluntrid);
- 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")) ){
- model.makeValue("/root/send/reqdata/voluntrid", model.getValue("/root/main/reqpopup/reqpopuplist/voluntrid"));
- submit("TRAAA01302");
-
- if( !isNull(model.getValue("/root/tmp/svcspec/joinnobaseinfo/actrgstseqno")) ){
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/actrgstseqno", model.getValue("/root/tmp/svcspec/joinnobaseinfo/actrgstseqno"));
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntrid", model.getValue("/root/tmp/svcspec/joinnobaseinfo/voluntrid"));
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntrnm", model.getValue("/root/tmp/svcspec/joinnobaseinfo/voluntrnm"));
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/actdeptcd", model.getValue("/root/tmp/svcspec/joinnobaseinfo/actdeptcd"));
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/actdeptdetlnm", model.getValue("/root/tmp/svcspec/joinnobaseinfo/actdeptdetlnm"));
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntractdwcd", model.getValue("/root/tmp/svcspec/joinnobaseinfo/voluntractdwcd"));
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntractteamcd", model.getValue("/root/tmp/svcspec/joinnobaseinfo/voluntractteamcd"));
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/actdivscd", model.getValue("/root/tmp/svcspec/joinnobaseinfo/actdivscd"));
- }
- if(isNull(model.getValue("/root/tmp/svcspec/joinnobaseinfo/actrgstseqno")) ){
- messageBox("원소속활동부서 정보가","I004");
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/actdeptcd", "-");
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntractdwcd", "-");
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntractteamcd", "-");
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntrnm", "");
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntrid", "");
- }
- }
- model.refresh();
- }//fPopupInfo END
-
- //그리드에서 필수항목 체크
- function fCheckMandatoryInput() {
- for (var i = 1; i < (grd_svcspec.rows); i++) {
- if (model.getValue("/root/main/svcspec/svcspeclist[" + i + "]/voluntrid") == "" ) {
- messageBox("미입력된 입단번호 항목을","C001");
- return false;
- }
- }
- for (var i = 1; i < (grd_svcspec.rows); i++) {
- if (model.getValue("/root/main/svcspec/svcspeclist[" + i + "]/servdd") == "" ) {
- messageBox("미입력된 봉사일자 항목을","C001");
- return false;
- }
- }
- for (var i = 1; i < (grd_svcspec.rows); i++) {
- if (model.getValue("/root/main/svcspec/svcspeclist[" + i + "]/servdd").length != 8 ) {
- messageBox("올바른 봉사일자 항목을","C001");
- return false;
- }
- }
- for (var i = 1; i < (grd_svcspec.rows); i++) {
- if ( isNull(model.getValue("/root/main/svcspec/svcspeclist[" + i + "]/servtm"))
- || model.getValue("/root/main/svcspec/svcspeclist[" + i + "]/servtm") <= 0 ) {
- messageBox("미입력된 활동시간 항목을","C001");
- return false;
- }
- }
- return true;
- }//fCheckMandatoryInput END
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1193;" 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:194px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">수시봉사활동관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption32" class="tit_2" style="left:5px; top:61px; width:170px; height:13px; font-family:돋움체; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">수시봉사내역</caption>
- <group id="group1" style="left:0px; top:10px; width:1194px; height:35px; font-family:돋움체; 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; ">d</shape>
- <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="DOMActivate">
- <![CDATA[
- fRefSvrSpecList();
- ]]>
- </script>
- </button>
- <caption id="cap_fromdd" class="search_name" style="left:5px; top:9px; width:100px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">조회기간 :</caption>
- <input id="ipt_fromdd" ref="/root/main/cond/actfromdd" class="input_s_essential" inputtype="date" style="left:89px; top:9px; width:90px; height:19px; "/>
- <line id="line13" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:29px; "/>
- <input id="ipt_todd" ref="/root/main/cond/acttodd" class="input_s_essential" inputtype="date" style="left:196px; top:10px; width:90px; height:19px; "/>
- <caption id="caption3" style="left:184px; top:10px; width:20px; height:20px; ">~</caption>
- <select1 id="cmb_actdept" ref="/root/main/cond/actdeptcd" class="combo_search" appearance="minimal" style="left:512px; top:8px; width:115px; height:19px; font-family:돋움체; ">
- <choices>
- <itemset nodeset="/root/init/A0503list/A0503">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_actdivscd" ref="/root/main/cond/actdivscd" class="combo_search" appearance="minimal" style="left:420px; top:8px; width:90px; height:19px; font-family:돋움체; ">
- <choices>
- <itemset nodeset="/root/init/A0654list/A0654">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_posteam1" class="search_name" style="left:294px; top:9px; width:123px; height:17px; font-family:돋움체; background-image:../../../com/commonweb/images/search_bullet1.gif; ">소속분야/센터 :</caption>
- <caption id="caption1" class="search_name" visibility="hidden" style="left:919px; top:10px; width:83px; height:17px; font-family:돋움체; background-image:../../../com/commonweb/images/search_bullet1.gif; ">봉사구분:</caption>
- <caption id="caption2" class="search_name" style="left:640px; top:10px; width:132px; height:17px; font-family:돋움체; background-image:../../../com/commonweb/images/search_bullet1.gif; ">활동요일/시간대:</caption>
- <select1 id="cmb_servkind" ref="/root/main/cond/servkind" class="combo_search" visibility="hidden" appearance="minimal" style="left:1002px; top:9px; width:90px; height:19px; font-family:돋움체; ">
- <choices>
- <item>
- <label>- 전 체 -</label>
- <value>%</value>
- </item>
- <item>
- <label>원소속</label>
- <value>1</value>
- </item>
- <item>
- <label>추가소속</label>
- <value>2</value>
- </item>
- <item>
- <label>수시봉사</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_posteam1" ref="/root/main/cond/voluntractdwcd" class="combo_search" disabled="false" appearance="minimal" style="left:771px; top:9px; width:69px; height:19px; font-family:돋움체; ">
- <choices>
- <itemset nodeset="/root/init/A0359list/A0359">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_posteam2" ref="/root/main/cond/voluntractteamcd" class="combo_search" appearance="minimal" style="left:842px; top:9px; width:65px; height:19px; font-family:돋움체; ">
- <choices>
- <itemset nodeset="/root/init/A0360list/A0360">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <line id="line2" class="line_1" style="x1:0px; y1:75px; x2:1194px; y2:75px; font-family:돋움체; "/>
- <button id="button11" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1041px; top:55px; width:53px; height:19px; font-family:돋움체; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRow();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1096px; top:55px; width:53px; height:19px; font-family:돋움체; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelRow();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:975px; top:55px; width:64px; height:19px; font-family:돋움체; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcel();
- ]]>
- </script>
- </button>
- <datagrid id="grd_svcspec" nodeset="/root/main/svcspec/svcspeclist" autoresize="true" caption="봉사자사번^성명^소속분야^소속센터^소속센터^활동요일^활동시간대^봉사일자^활동시간^내용^caption1^caption2" colsep="^" colwidth="100, 100, 100, 120, 80, 58, 90, 92, 98, 240, 100, 100" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:80px; width:1194px; height:659px; font-family:돋움체; ">
- <col disabled="true" ref="voluntrid" type="inputbutton" format="99999999" maxlength="8"/>
- <col ref="voluntrnm"/>
- <col ref="actdivscd" type="combo">
- <choices>
- <itemset nodeset="/root/init/A0654list/A0654">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="actdeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/A0503list/A0503">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="actdeptdetlnm"/>
- <col disabled="true" ref="voluntractdwcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/A0359list/A0359">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="voluntractteamcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/A0360list/A0360">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="servdd" type="inputdate"/>
- <col ref="servtm" type="input" format="#.9" maxlength="2" style="text-align:center; "/>
- <col ref="attdrem" type="input" maxlength="100"/>
- <col ref="servseqno" visibility="hidden"/>
- <col ref="actrgstseqno" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var idx = grd_svcspec.row;
- if(grd_svcspec.colRef("voluntrid") == grd_svcspec.col){
- if(grd_svcspec.rowStatus(idx) == "1" || grd_svcspec.rowStatus(idx) == "3"){
- fPopupInfo();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var row = grd_svcspec.row;
-
- if(grd_svcspec.colRef("voluntrid") == grd_svcspec.col){
- if(grd_svcspec.rowStatus(row) == "1" || grd_svcspec.rowStatus(row) == "3"){
- // if ((grd_svcspec.row+1) == grd_svcspec.rows) {
- // if(!isNull(model.getValue("/root/tmp/svcspec/joinnobaseinfo/voluntrnm"))) {
- // messageBox("올바른 입단번호 항목을","C001");
- // return;
- // }
- model.makeValue("/root/send/reqdata/voluntrid", model.getValue("/root/main/svcspec/svcspeclist["+row+"]/voluntrid"));
- submit("TRAAA01302");
-
- if( !isNull(model.getValue("/root/main/svcspec/svcspeclist["+row+"]/voluntrid")) ){
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/actrgstseqno", model.getValue("/root/tmp/svcspec/joinnobaseinfo/actrgstseqno"));
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntrid", model.getValue("/root/tmp/svcspec/joinnobaseinfo/voluntrid"));
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntrnm", model.getValue("/root/tmp/svcspec/joinnobaseinfo/voluntrnm"));
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/actdeptcd", model.getValue("/root/tmp/svcspec/joinnobaseinfo/actdeptcd"));
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/actdeptdetlnm", model.getValue("/root/tmp/svcspec/joinnobaseinfo/actdeptdetlnm"));
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntractdwcd", model.getValue("/root/tmp/svcspec/joinnobaseinfo/voluntractdwcd"));
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntractteamcd", model.getValue("/root/tmp/svcspec/joinnobaseinfo/voluntractteamcd"));
- }
-
- if( isNull(model.getValue("/root/main/svcspec/svcspeclist["+row+"]/actrgstseqno")) ){
- messageBox("원소속활동부서 정보가","I004");
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/actdeptcd", "-");
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntractdwcd", "-");
- model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntractteamcd", "-");
- return;
- }
- // }
- model.refresh();
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_save" class="btn5_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1151px; top:55px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !fCheckMandatoryInput() ) return;
- fSaveSvrSpecList();
- if( grd_svcspec.rows!="1")
- fRefSvrSpecList();
- ]]>
- </script>
- </button>
- <button id="button10" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:920px; top:55px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReset();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <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; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|