123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <fromdd/>
- <todd/>
- <attendflag/>
- <name/>
- <actdeptnm/>
- </cond>
- <empvoluntrattdabsn>
- <empvoluntrattdabsnlist>
- <img_st/>
- <chk/>
- <emplno/>
- <name/>
- <attdabsnyn/>
- <depthngnm/>
- <servdd/>
- <hosinhosoutflag/>
- <empactflag/>
- <actdeptnm/>
- <servtm/>
- <famyacompstcnt/>
- <gndr/>
- <cntctel/>
- <mpphonno/>
- <email/>
- <emplappseqno/>
- <dutplcedeptcd/>
- <rregno/>
- <residncaddr/>
- <currentyy/>
- <currentmm/>
- <currentdd/>
- <status/>
- <unitinstcd/>
- <unitcd/>
- <unitdeptnm/>
- <empactrem/>
- </empvoluntrattdabsnlist>
- <absndata/>
- <rex/>
- </empvoluntrattdabsn>
- <popupinfo>
- <param/>
- <flag/>
- <searchitem/>
- <list/>
- </popupinfo>
- <tempuserinfo/>
- <reportsql>
- <reportissseq>
- <issyy/>
- <issseqno/>
- </reportissseq>
- <servdata>
- <servddterm/>
- <servtmsum/>
- <emplnotmp/>
- </servdata>
- <voluntrhist>
- <voluntrhistinfo>
- <hisservdd/>
- <hosinhosoutflagnm/>
- <empactflagnm/>
- <hisservtm/>
- <hisactdeptnm/>
- </voluntrhistinfo>
- </voluntrhist>
- </reportsql>
- <aaa>
- <report>
- <systeminstnm/>
- <status/>
- <issrem/>
- <isscnts/>
- </report>
- <voluntrhist>
- <voluntrhistinfo>
- <hisservdd/>
- <hosinhosoutflagnm/>
- <empactflagnm/>
- <hisservtm/>
- <hisactdeptnm/>
- </voluntrhistinfo>
- </voluntrhist>
- </aaa>
- </main>
- <init>
- <hosinhosoutflag/>
- <gndr/>
- <empactflag/>
- </init>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden/>
- <tmp>
- <empnoinfo>
- <empnoinfolist/>
- </empnoinfo>
- </tmp>
- <temp>
- <popmenu>
- <menu>
- <name>복사</name>
- <func>fEmpInfoRgstCopy</func>
- </menu>
- </popmenu>
- </temp>
- </root>
- </instance>
- <bind id="bind1" ref="/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist/servtm" readonly="../attdabsnyn != 'Y'"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // grd_studvoluntrlist.fixedcellcheckbox(0,1) = "true";
- fInit();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRAAA01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/empvoluntrattdabsn"/>
- <submission id="TXAAA01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
- <submission id="TRAAA01702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/tmp/empnoinfo"/>
- <submission id="TRAAA01703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/reportsql"/>
- <submission id="TXAAA01702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
- </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">
- <![CDATA[
- //화면 오픈시 초기화
- function fInit() {
- //그리드 제어
- //grd_empvoluntrattdabsnlist.colDisabled(grd_empvoluntrattdabsnlist.colRef("servtm")) = true;
- //grd_empvoluntrattdabsnlist.valueMatrix(idxRow,grd_empvoluntrattdabsnlist.colRef("servtm"))="gkqrP";
-
- model.removeNodeset("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist");
- //날짜 초기화
- var Ndate = getNewDate();
- var Idate = Ndate.getDateFormat("YYYYMM")+"01";
- 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();
- grd_empvoluntrattdabsnlist.fixedcellcheckbox(0,2)=true; //체크박스 위에 전체 선택 하는 콤보 셋팅
- var systeminstnm = getUserInfo("systeminstnm"); //기관명
-
- model.setValue("/root/main/aaa/report/systeminstnm", systeminstnm+" 병원장");
-
- zbcfGetCodeList( new Array("A0509", "P0313","A0508"), new Array("/root/init/hosinhosoutflag", "/root/init/gndr","/root/init/empactflag"), true );
-
- model.setValue("/root/main/cond/fromdd", Idate);
- model.setValue("/root/main/cond/todd", lastDate);
- model.refresh();
- }
-
- //엑셀저장클릭시
- function fExcel() {
- if (grd_empvoluntrattdabsnlist.rows <= 1) {
- messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
- return;
- }
-
- var fileName = window.fileDialog("save", ",", false, "교직원봉사자 신청 리스트", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_empvoluntrattdabsnlist.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- }//fExcel END
-
- //초기화버튼 클릭시
- function fReset(){
- var btn = messageBox("초기화를 ", "Q004");
-
- if (btn == '6') {
- model.removeNodeset("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist");
- model.resetInstanceNode("/root/main/cond");
- var Ndate = getNewDate();
- var Idate = Ndate.getDateFormat("YYYYMM")+"01";
- 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/fromdd", Idate);
- model.setValue("/root/main/cond/todd", lastDate);
- model.setValue("/root/main/cond/attendflag","0");
- model.setValue("/root/main/cond/name","");
-
- model.refresh();
- } else if (btn == '7') {
- return;
- }
- }//fReset END
-
- //행추가 버튼 클릭시
- function fInsRow(){
- //행추가버튼 클릭시 한줄만 추가 ----servdd변경------
- grd_empvoluntrattdabsnlist.addRow();
-
- var curRow = grd_empvoluntrattdabsnlist.row;
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/servdd", getCurrentDate());
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/hosinhosoutflag", "O");
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/empactflag", "2");
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/status", "i");
-
- grd_empvoluntrattdabsnlist.cellStyle("background-image", curRow, 1) = "../../../com/commonweb/images/icon_i.gif";//insert img
-
-
- // model.setValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+ 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 idxRow = grd_empvoluntrattdabsnlist.row;
- var rowstatus = model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+idxRow+"]/status");
- //alert(rowstatus);
-
- if(idxRow !='-1'&& idxRow !='0' )
- {
- if(rowstatus =='i')
- {
- grd_empvoluntrattdabsnlist.deleteRow(idxRow);// 클릭한 행이 공백일 때 행 삭제
- }
- else if(rowstatus =='d')
- {
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+idxRow+"]/status","");
- grd_empvoluntrattdabsnlist.cellStyle("background-image", idxRow, 1) = "../../../com/commonweb/images/icon_n.gif";//e img
- }
- else
- {
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+idxRow+"]/status","d");
- grd_empvoluntrattdabsnlist.cellStyle("background-image", idxRow, 1) = "../../../com/commonweb/images/icon_d.gif";//delete img
- }
- }
- else
- {
- messageBox("삭제할 행을", "C002");
- return;
- }
-
-
-
-
- // var idxRow = grd_empvoluntrattdabsnlist.row;
- // var rowstatus = grd_empvoluntrattdabsnlist.rowStatus(idxRow);
- // //alert(rowstatus);
- // if(idxRow>0)
- // {
- // if(rowstatus=='1'||rowstatus=='3')
- // {
- // grd_empvoluntrattdabsnlist.deleteRow(idxRow);// 클릭한 행이 공백일 때 행 삭제
- // }
- // else
- // {
- // if(rowstatus=='4'||rowstatus=='6') //상태가 delete또는 Update& Delete일 때
- // {
- // grd_empvoluntrattdabsnlist.removeStatus(idxRow,"delete"); //delete상태를 초기화 한다.
- // }
- // else
- // {
- // grd_empvoluntrattdabsnlist.removeStatus(idxRow,"insert");
- // grd_empvoluntrattdabsnlist.addStatus(idxRow,"delete");// 클릭한 행에 값이 있을 때에는 delete 로 상태 표시
- // }
- // }
- // }
- // else
- // {
- // messageBox("삭제할 행을", "C002");
- // return;
- // }
-
-
- // var idxRows = grd_empvoluntrattdabsnlist.rows;
- // if(idxRow>0 && model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+idxRow+"]/chk") !='1')
- // {
- // if(rowstatus=='1'||rowstatus=='3')
- // {
- // // 클릭한 행이 공백일 때 행 삭제
- // grd_empvoluntrattdabsnlist.deleteItem(idxRow);
- // }
- // else
- // {
- // if(rowstatus=='4'||rowstatus=='6') //상태가 delete또는 Update& Delete일 때
- // {
- // //alert("delete초기화");
- // grd_empvoluntrattdabsnlist.removeStatus(idxRow,"delete"); //delete상태를 초기화 한다.
- // }
- // else
- // {
- // // 클릭한 행에 값이 있을 때에는 delete 로 상태 표시
- // grd_empvoluntrattdabsnlist.removeStatus(idxRow,"insert");
- // grd_empvoluntrattdabsnlist.addStatus(idxRow,"delete");
- // }
- // }
- // }
- // else if(model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+idxRow+"]/chk") =='1')
- // {
- // for(i=1;i<idxRows;i++)
- // {
- // if(model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+i+"]/chk") =='1')
- // {
- // var rowstatus2 = grd_empvoluntrattdabsnlist.rowStatus(i);
- // if(rowstatus2=='4'||rowstatus=='6') {
- // //alert("11111");
- // grd_empvoluntrattdabsnlist.removeStatus(i,"delete"); //delete상태를 초기화 한다.
- // } else {
- // //alert("22222");
- // grd_empvoluntrattdabsnlist.addStatus(i,"delete");//체크된 Row의 상태를 delete로 바꾼다.
- // }
- // }
- // }
- // }
- // else
- // {
- // messageBox("삭제할 행을", "C002");
- // return;
- // }
- model.refresh();
- }//fDelRow END
-
- //조회버튼 클릭시
- function fEmpVoluntrAttdAbsnList() {
- if (model.getValue("/root/main/cond/fromdd") == "" ) {
- messageBox("시작일자는 ","I003");
- model.setFocus("ipt_fromdd");
- return false;
- }
- if (model.getValue("/root/main/cond/fromdd").length != 8 ) {
- messageBox("올바른 시작일자 항목을","C001");
- model.setFocus("ipt_fromdd");
- return false;
- }
- if (model.getValue("/root/main/cond/todd") == "" ) {
- messageBox("종료일자는 ","I003");
- model.setFocus("ipt_todd");
- return false;
- }
- if (model.getValue("/root/main/cond/todd").length != 8 ) {
- messageBox("올바른 종료일자 항목을","C001");
- model.setFocus("ipt_todd");
- return false;
- }
- if (model.getValue("/root/main/cond/fromdd") > model.getValue("/root/main/cond/todd")) {
- messageBox("올바른 조회기간을","C001");
- model.setFocus("ipt_fromdd");
- return false;
- }
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
-
- submit("TRAAA01701");
- for(i=1;i<infoRows;i++)
- {
- model.removeNodeset("/root/main/reportsql/servdata["+i+"]/emplnotmp"); //조회된사번을 수정하지못하도록 하기위해서
- model.makeValue("/root/main/reportsql/servdata["+i+"]/emplnotmp", "/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+i+"]/emplno");
- }
-
- var infoRows = grd_empvoluntrattdabsnlist.rows;
- for(i=1;i<infoRows;i++)
- {
- if(model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+i+"]/status") =="")
- {
- model.makeNode("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+i+"]/img_st");
- grd_empvoluntrattdabsnlist.cellStyle("background-image", i, 1) = "../../../com/commonweb/images/icon_n.gif";//insert img
- }
- }
-
- }
-
- //저장버튼클릭시.
- function fSaveData() {
- //alert(grd_empvoluntrattdabsnlist.getUpdateData());
- var idx = grd_empvoluntrattdabsnlist.row; //-1
- var idx2 = grd_empvoluntrattdabsnlist.rows; //2
- // alert(grd_empvoluntrattdabsnlist.rowStatus(idx));
- var cnt = 0;
- model.removenode("/root/send");
- model.makeNode("/root/send/savedata");
- for(i=1;i<idx2;i++)
- {
- if(model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+i+"]/status") == "i"
- ||model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+i+"]/status") == "u"
- || model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+i+"]/status") == "d" )
- {
- cnt=cnt+1;
- if( cnt =="1")
- {
- copyNodesetType("/root/send/savedata", "/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+i+"]","replace");
- }
- else
- {
- copyNodesetType("/root/send/savedata", "/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+i+"]","after");
- }
- }
- }
-
- if(cnt == 0)
- {
- messageBox("저장할 자료가 ","I004");
- return;
- }
-
-
- //model.makeValue("/root/main/empvoluntrattdabsn/absndata", grd_empvoluntrattdabsnlist.getUpdateData());
- // var nodeList = instance1.selectNodes("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[status='i' or status='u' or status='d']") ;
- // var saveData = getNodeListCSV(nodeList);
- // alert(saveData);
- //
- //// model.makeValue("/root/main/empvoluntrattdabsn/absndata",
- //// getNodeListCSV(nodeList) );
- //
- // model.setValue("/root/send/savedata", saveData);
-
- if(submit("TXAAA01701")) {
- messageBox("자료 저장이 ","I002");
- }
-
-
-
-
-
-
- // if(grd_empvoluntrattdabsnlist.rowStatus(idx) == "0"){
- // messageBox("저장할 자료가 ","I004");
- // return;
- // }
- // if( idx > 0 ){
- // if(grd_empvoluntrattdabsnlist.rowStatus(idx) == "2" || grd_empvoluntrattdabsnlist.rowStatus(idx) == "3" || grd_empvoluntrattdabsnlist.rowStatus(idx) == "4"){
- // model.removenode("/root/send");
- // model.makeNode("/root/send/savedata");
- // model.makeValue("/root/main/empvoluntrattdabsn/absndata", grd_empvoluntrattdabsnlist.getUpdateData());
- // model.copyNode("/root/send/savedata", "/root/main/empvoluntrattdabsn");
- //
- // if(submit("TXAAA01701")) {
- // messageBox("자료 저장이 ","I002");
- // }
- // grd_empvoluntrattdabsnlist.clearStatus();
- //
- // }
- // }
- }
-
- //그리드에서 필수항목 체크
- function fCheckMandatoryInput() {
- for (var i = 1; i < (grd_empvoluntrattdabsnlist.rows); i++) {
- if (model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+ i +"]/emplno") == "" ) {
- messageBox("사번은","I003");
- return false;
- }
- }
- for (var i = 1; i < (grd_empvoluntrattdabsnlist.rows); i++) {
- if (model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+ i +"]/hosinhosoutflag") == "" ) {
- messageBox("미입력된 봉사구분 항목을 입력하십시오.","I");
- return false;
- }
- }
- for (var i = 1; i < (grd_empvoluntrattdabsnlist.rows); i++) {
- if (model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+ i +"]/empactflag") == "" ) {
- messageBox("미입력된 봉사구분 항목을 입력하십시오.","I");
- return false;
- }
- }
-
- for (var i = 1; i < (grd_empvoluntrattdabsnlist.rows); i++) {
- if (model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+ i +"]/attdabsnyn") == "Y") {
- if (model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+ i +"]/servtm") == "" ) {
- messageBox("미입력된 활동시간 항목을 입력하십시오.","I");
- return false;
- }
- }
- }
-
- return true;
- }//fCheckMandatoryInput END
-
- // 교직원 등록시 행의 내용 복사하는 함수-20090622-kys
- function fEmpInfoRgstCopy()
- {
- var sRows=grd_empvoluntrattdabsnlist.selectedRows; // 블럭 잡은 데이터 갯수
- var eRow=grd_empvoluntrattdabsnlist.selectedRow(0); // 블럭 잡은 첫째 행
-
- for(i=0;i<sRows;i++)
- {
-
- // 블럭 처리된 갯수 만큼 선택된 행의 인덱스를 구해, 첫번째 인덱스의 값을 복사한다.
- var tRow=grd_empvoluntrattdabsnlist.selectedRow(i);
- var rowstatus=model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+tRow+"]/status");
- //alert("rowstatus : " + rowstatus);
- // 행의 상태가 delete 또는 delete& update가 아닐때만 선택 행을 복사한다.
- if(rowstatus!="d")
- {
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + tRow + "]/attdabsnyn", model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + eRow + "]/attdabsnyn"));
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + tRow + "]/servdd", model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + eRow + "]/servdd"));
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + tRow + "]/hosinhosoutflag", model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + eRow + "]/hosinhosoutflag"));
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + tRow + "]/empactflag", model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + eRow + "]/empactflag"));
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + tRow + "]/actdeptnm", model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + eRow + "]/actdeptnm"));
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + tRow + "]/servtm", model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + eRow + "]/servtm"));
-
- if(rowstatus == "i"){
- //grd_empvoluntrattdabsnlist.addStatus(tRow,"insert");
- //model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+eRow+"]/status","i");
- }else{
- //grd_empvoluntrattdabsnlist.addStatus(tRow,"update");
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+tRow+"]/status","u");
- grd_empvoluntrattdabsnlist.cellStyle("background-image", tRow, 1) = "../../../com/commonweb/images/icon_u.gif";//update img
- } // 선택된 행의 상태값을 update로 처리
- }
- }
- model.refresh();
-
- }
- ]]>
- </script>
- </xhtml:head>
- <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:194px; 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:77px; x2:1194px; y2:77px; "/>
- <caption id="caption32" class="tit_2" style="left:5px; top:62px; width:219px; height:14px; ">교직원봉사자 신청 및 신청 리스트</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; ">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[
- fEmpVoluntrAttdAbsnList();
- ]]>
- </script>
- </button>
- <caption id="cap_fromdd" class="search_name" style="left:15px; top:9px; width:100px; height:17px; ">봉사일자 :</caption>
- <caption id="cap_svcflag" class="search_name" style="left:640px; top:10px; width:100px; height:17px; ">교직원명 :</caption>
- <input id="inp_name" ref="/root/main/cond/name" class="input_search" appearance="minimal" style="left:735px; top:10px; width:90px; height:19px; "/>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_search" inputtype="date" style="left:109px; top:9px; width:90px; height:19px; "/>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <caption id="cap_middle" style="left:209px; top:9px; width:16px; height:19px; ">~</caption>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_search" inputtype="date" style="left:231px; top:9px; width:90px; height:19px; "/>
- <caption id="cap_vacflag" class="search_name" style="left:410px; top:10px; width:80px; height:17px; ">출석자 :</caption>
- <select id="checkbox2" ref="/root/main/cond/attendflag" overflow="visible" appearance="full" style="left:490px; top:10px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="capactflag" class="search_name" style="left:850px; top:10px; width:145px; height:17px; ">봉사장소/활동부서 :</caption>
- <input id="ipt_actdeptnm" ref="/root/main/cond/actdeptnm" class="input_search" appearance="minimal" style="left:1005px; top:10px; width:90px; height:19px; "/>
- </group>
- <datagrid id="grd_empvoluntrattdabsnlist" nodeset="/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist" visibility="visible" autoresize="true" caption="^^사번^성명^주민번호^출석여부^소속부서^근무부서^봉사일자^봉사구분^봉사구분^봉사장소/활동부서^활동시간^가족동반수^성별^원내번호^핸드폰^e-mail^emplappseqno^caption1^caption2^caption3^caption5^caption6^servtmterm^^^비고" colsep="^" colwidth="19, 20, 90, 90, 100, 55, 100, 100, 100, 55, 95, 125, 70, 70, 70, 110, 110, 170, 100, 100, 100, 100, 100, 100, 100, 100, 100, 170" dataheight="25" explorerbar="sort" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:1px; top:80px; width:1194px; height:659px; text-align:center; ">
- <col ref="img_st" style="text-align:center; "/>
- <col checkvalue="1,0" ref="chk" type="checkbox"/>
- <col disabled="true" ref="emplno" type="inputbutton" style="text-align:left; "/>
- <col ref="name" style="text-align:center; "/>
- <col ref="rregno" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="attdabsnyn" type="checkbox"/>
- <col ref="unitdeptnm" style="text-align:center; "/>
- <col ref="depthngnm" style="text-align:center; "/>
- <col ref="servdd" type="inputdate" style="text-align:center; "/>
- <col ref="hosinhosoutflag" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/hosinhosoutflag/A0509">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="empactflag" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/empactflag/A0508">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="actdeptnm" type="input" maxlength="100" style="text-align:left; "/>
- <col ref="servtm" type="input" format="#.9" maxlength="4" style="text-align:center; "/>
- <col ref="famyacompstcnt" type="input" maxlength="2"/>
- <col disabled="true" ref="gndr" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/gndr/P0313">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cntctel" style="text-align:left; "/>
- <col ref="mpphonno" style="text-align:left; "/>
- <col ref="email" style="text-align:left; "/>
- <col ref="emplappseqno" visibility="hidden"/>
- <col ref="dutplcedeptcd" visibility="hidden"/>
- <col ref="unitinstcd" visibility="hidden"/>
- <col ref="unitcd" visibility="hidden"/>
- <!--<col ref="rregno" visibility="hidden"/> 이동-20090930-kys-->
- <col ref="residncaddr" visibility="hidden"/>
- <col ref="currentyy" visibility="hidden"/>
- <col ref="currentmm" visibility="hidden"/>
- <col ref="currentdd" visibility="hidden"/>
- <col ref="status" visibility="hidden"/>
- <col ref="empactrem" type="input" maxlength="100" style="text-align:left; "/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var idxRow = grd_empvoluntrattdabsnlist.row;
- if(grd_empvoluntrattdabsnlist.colRef("emplno") == grd_empvoluntrattdabsnlist.col){
- //if(grd_attntrlist.col == 5 && model.getValue('/root/main/attntrlist/attntrlistinfo[' + grd_attntrlist.row + ']/status') == 'i'){
- if(grd_empvoluntrattdabsnlist.rowStatus(idxRow) == "1" || grd_empvoluntrattdabsnlist.rowStatus(idxRow) == "3"){
- fPopupInfo();
- }
- }
- //팝업아이콘 클릭하여 교직원 조회
- function fPopupInfo(){
- var emplno = "";
- var name = "";
- var cntctel = "";
- var mpphonno = "";
- var email = "";
- var gndr = "";
- var deptcd = "";
- var deptnm = "";
- var unitinstcd = "";
- var unitcd = "";
- var unitdeptnm = "";
-
- var nodeList = null;
- model.removenodeset("/root/main/popupinfo");
- model.makeNode("/root/main/popupinfo");
- model.makeValue("/root/main/popupinfo/param", '_OneS_DD');
- modal("../../userdeptinfoweb/xrw/SPZSU10103_사용자부서선택조회", "", "200", "200", "SPZSU10103")
- var iParam = getParameter('SPZSU10103_');
- clearParameter('SPZSU10103_');
-
- if(iParam != ''){
- setCSVToNode("/root/main/popupinfo", iParam);
- model.removenode("/root/send");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/popupinfo");
-
- //var instcd = getUserInfo("posinstcd");
- // 타기관 교직원도 등록 가능하도록 변경요청 2009.06.16 hhm
- // var instcd = getUserInfo("dutplceinstcd");
- // if(model.getValue("/root/main/popupinfo/list/dutplceinstcd") != instcd)
- // {
- // messageBox("기관코드가 다른교직원입니다.","I");
- // return;
- // }
-
- submit("TRAAA01702");
-
- var idxRow = grd_empvoluntrattdabsnlist.row;
- var nodecnt = getNodesetCount("/root/tmp/empnoinfo/empnoinfolist");
- if ( nodecnt > 0){
- grd_empvoluntrattdabsnlist.deleteItem(grd_empvoluntrattdabsnlist.row);
- //grd_empvoluntrattdabsnlist.rebuild();
- for( var i = 1 ; i <= nodecnt ; i++ ){
- emplno = model.getValue("/root/tmp/empnoinfo/empnoinfolist[" + i +"]/emplno");
- name = model.getValue("/root/tmp/empnoinfo/empnoinfolist[" + i +"]/name");
- cntctel = model.getValue("/root/tmp/empnoinfo/empnoinfolist[" + i +"]/cntctel");
- mpphonno = model.getValue("/root/tmp/empnoinfo/empnoinfolist[" + i +"]/mpphonno");
- email = model.getValue("/root/tmp/empnoinfo/empnoinfolist[" + i +"]/email");
- gndr = model.getValue("/root/tmp/empnoinfo/empnoinfolist[" + i +"]/gndr");
- deptcd = model.getValue("/root/tmp/empnoinfo/empnoinfolist[" + i +"]/dutplcedeptcd");
- deptnm = model.getValue("/root/tmp/empnoinfo/empnoinfolist[" + i +"]/depthngnm");
- unitinstcd = model.getValue("/root/tmp/empnoinfo/empnoinfolist[" + i +"]/unitinstcd");
- unitcd = model.getValue("/root/tmp/empnoinfo/empnoinfolist[" + i +"]/unitcd");
- unitdeptnm = model.getValue("/root/tmp/empnoinfo/empnoinfolist[" + i +"]/unitdeptnm");
- //alert(emplno);
- //사번중복체크
- /*
- nodeList = instance1.selectNodes("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[emplno = '"+ emplno +"']/emplno");
- alert(nodeList.length);
- if( nodeList != null && nodeList.length > 0){
- messageBox("저장되어 있는 사번","E008");
- continue;
- }
- */
- grd_empvoluntrattdabsnlist.addItem();//행추가
- //curRow = curRow + 1;
- var curRow = grd_empvoluntrattdabsnlist.row;
-
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/servdd", getCurrentDate());
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/emplno", emplno);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/name", name);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/cntctel", cntctel);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/mpphonno", mpphonno);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/email", email);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/gndr", gndr);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/dutplcedeptcd", deptcd);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/depthngnm", deptnm);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/hosinhosoutflag","O");
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/empactflag","2");
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/unitinstcd",unitinstcd);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/unitcd",unitcd);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/unitdeptnm",unitdeptnm);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/status","i");
- grd_empvoluntrattdabsnlist.cellStyle("background-image", curRow, 1) = "../../../com/commonweb/images/icon_i.gif";//insert img
- }
- model.removenode("/root/tmp");
- model.makeNode("/root/tmp");
- }
-
- }else{
- //messageBox("사번이 선택되지","E007");
- messageBox("사번 정보가","I004");
- return;
- }
- }//fPopupInfo END
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var idxRow = grd_empvoluntrattdabsnlist.row;
- if(grd_empvoluntrattdabsnlist.colRef("emplno") == grd_empvoluntrattdabsnlist.col){
- //if(grd_attntrlist.col == 5 && model.getValue('/root/main/attntrlist/attntrlistinfo[' + grd_attntrlist.row + ']/status') == 'i'){
- if(grd_empvoluntrattdabsnlist.rowStatus(idxRow) == "1" || grd_empvoluntrattdabsnlist.rowStatus(idxRow) == "3")
- {
- fPopupInfo();
- }
- else
- {
- model.setValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+idxRow+"]/emplno", model.getValue("/root/main/reportsql/servdata["+idxRow+"]/emplnotmp"));
- }
- }
-
- function fPopupInfo() {
- var row = grd_empvoluntrattdabsnlist.row;
- model.removenode("/root/send");
- model.makeNode("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/userid", model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+row+"]/emplno"));
- //alert(model.getValue("/root/send/reqdata"));
- submit("TRAAA01702"); //없는 data를 조회시 에러
-
-
-
- if(model.getValue("/root/tmp/empnoinfo/empnoinfolist/emplno") !='') {
- emplno = model.getValue("/root/tmp/empnoinfo/empnoinfolist/emplno");
- name = model.getValue("/root/tmp/empnoinfo/empnoinfolist/name");
- cntctel = model.getValue("/root/tmp/empnoinfo/empnoinfolist/cntctel");
- mpphonno = model.getValue("/root/tmp/empnoinfo/empnoinfolist/mpphonno");
- email = model.getValue("/root/tmp/empnoinfo/empnoinfolist/email");
- gndr = model.getValue("/root/tmp/empnoinfo/empnoinfolist/gndr");
- deptcd = model.getValue("/root/tmp/empnoinfo/empnoinfolist/dutplcedeptcd");
- deptnm = model.getValue("/root/tmp/empnoinfo/empnoinfolist/depthngnm");
- unitinstcd = model.getValue("/root/tmp/empnoinfo/empnoinfolist/unitinstcd");
- unitcd = model.getValue("/root/tmp/empnoinfo/empnoinfolist/unitcd");
- unitdeptnm = model.getValue("/root/tmp/empnoinfo/empnoinfolist/unitdeptnm");
- // alert(emplno);
- nodeList = instance1.selectNodes("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[emplno = '"+ emplno +"']/emplno");
- // alert(nodeList.length);
-
-
- //curRow = curRow + 1;
- var curRow = grd_empvoluntrattdabsnlist.row;
-
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/emplno", emplno);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/name", name);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/cntctel", cntctel);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/mpphonno", mpphonno);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/email", email);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/gndr", gndr);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/dutplcedeptcd", deptcd);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/depthngnm", deptnm);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/unitinstcd", unitinstcd);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/unitcd", unitcd);
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/unitdeptnm", unitdeptnm);
-
- model.removenode("/root/tmp");
- model.makeNode("/root/tmp");
- }else{
- //messageBox("사번이 선택되지","E007");
- var curRow = grd_empvoluntrattdabsnlist.row;
- messageBox("사번 정보가","I004");
- model.setValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + curRow + "]/emplno","");
- return;
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var idxRow = grd_empvoluntrattdabsnlist.row;
- if(grd_empvoluntrattdabsnlist.colRef("chk") != grd_empvoluntrattdabsnlist.col
- &&grd_empvoluntrattdabsnlist.colRef("emplno") != grd_empvoluntrattdabsnlist.col)
- {
- if(model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + idxRow + "]/status") != "i")
- {
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+idxRow+"]/status","u");
- grd_empvoluntrattdabsnlist.cellStyle("background-image", idxRow, 1) = "../../../com/commonweb/images/icon_u.gif";//update img
- }
- }
-
- if(model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + idxRow + "]/attdabsnyn") != "Y")
- {
- model.setValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist[" + idxRow + "]/servtm", "");
- //활동시간.disabled = true;
- }
- else
- {
- //활동시간.disabled = false;
- }
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- //alert("grd_empvoluntrattdabsnlist.row : " + grd_empvoluntrattdabsnlist.row);
- //alert("grd_empvoluntrattdabsnlist.selectedRow(0) : " + grd_empvoluntrattdabsnlist.selectedRow(0));
- //alert("grd_empvoluntrattdabsnlist.selectedRows : " + grd_empvoluntrattdabsnlist.selectedRows);
- //alert("grd_empvoluntrattdabsnlist.rows : " + grd_empvoluntrattdabsnlist.rows);
-
- if(grd_empvoluntrattdabsnlist.isCell(event.target) && grd_empvoluntrattdabsnlist.mouseRow>=grd_empvoluntrattdabsnlist.fixedRows)
- {
- if(event.button==3)
- {
- window.setPopupMenu(true,"/root/temp/popmenu/menu","name","func",false);
- }
- else
- {
- window.setPopupMenu(false);
- }
- }
- else
- {
- window.setPopupMenu(false);
- return;
- }
- ]]>
- </script>
- </datagrid>
- <button id="button11" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1009px; top:55px; width:53px; height:19px; 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:1067px; top:55px; width:53px; height:19px; 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:1124px; top:55px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcel();
- ]]>
- </script>
- </button>
- </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[
- if ( !fCheckMandatoryInput() ) return; //그리드필수입력
- fSaveData();
- fEmpVoluntrAttdAbsnList(); //조회
- ]]>
- </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[
- fReset();
- fEmpVoluntrAttdAbsnList(); //조회
- ]]>
- </script>
- </button>
- <line id="line16" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="button89" class="btn6_letter5" disable.background-image="../../../com/commonweb/images/dis_btn6_letter5.gif" style="left:0px; top:3px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn6_letter5.gif; ">
- <caption>확인서출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPreview();
- function fPreview(){
- var idxRow = grd_empvoluntrattdabsnlist.row; //변경된 data count [NO -1]
- var idxRows = grd_empvoluntrattdabsnlist.rows; //그리드 행 count
- var chkCount = 0; //체크된 data가 없을때 메세지처리
- //alert(idxRow);
- //alert(idxRows);
-
- for(i=1; i<idxRows; i++) {
- var chkFlag = model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+i+"]/chk");
- if(chkFlag =='1')
- {
- model.makeNode("/root/hidden/empvoluntrattdabsn/empvoluntrattdabsnlist");
- model.copyNode("/root/hidden/empvoluntrattdabsn/empvoluntrattdabsnlist"
- , "/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+i+"]");
- chkCount = chkCount +1;
-
- }
- }
- if(chkCount=='0') {
- messageBox("확인서를 출력할 자원봉사자를 선택하십시오.","I");
- return;
- }
- if(chkCount>'1') {
- messageBox("확인서를 출력할 자원봉사자를 한명만 선택하십시오.","I");
- return;
- }
-
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/voluntrflag",'3');
- model.makeValue("/root/send/reqdata/emplno", model.getValue("/root/hidden/empvoluntrattdabsn/empvoluntrattdabsnlist/emplno"));
- model.makeValue("/root/send/reqdata/attdabsnyn", model.getValue("/root/hidden/empvoluntrattdabsn/empvoluntrattdabsnlist/attdabsnyn"));
-
- if(model.getValue("/root/hidden/empvoluntrattdabsn/empvoluntrattdabsnlist/attdabsnyn") == "" )
- {
- messageBox("봉사자의 봉사활동정보가 없습니다.","I");
- return;
- }
-
- //submit("TRAAA01703"); //발행번호 조회하는 서브미션 [issseqno, issyy]
-
- setParameter("reportprintyn", ""); //출력 여부 알려주는 reportprintyn 란 파라메터 셋팅
- setParameter("SMAAA01700_Param", "Y"); //교직원봉사자신청화면에서의 Open 파라메터 셋팅-20091005-kys
-
- modal("SPAAA02200", "1","150", "150", "SPAAA02200"); //확인서의 내용과 비고값을 입력받는다.
-
- if(model.getValue("/root/main/aaa/report/status")!="i")
- {
- model.removeNodeset("/root/main/aaa/report/issrem");
- model.removeNodeset("/root/main/aaa/report/isscnts");
- }
- else
- {
- //확인창에서 일자 선택후 이력을 가져와야 하므로 서브미션 이동함-20091005-kys
- submit("TRAAA01703"); //발행번호 조회하는 서브미션 [issseqno, issyy]
-
- //확인서를 출력하기위한 데이터를 /root/main/aaa/report 에 다 넣는다.
- model.makeValue("/root/main/aaa/report/voluntrflagnm","교직원");
- //model.makeValue("/root/main/aaa/report/stampflagnm","");
- model.makeValue("/root/main/aaa/report/voluntrnm",model.getValue("/root/hidden/empvoluntrattdabsn/empvoluntrattdabsnlist/name"));
- model.makeValue("/root/main/aaa/report/rrgstno",model.getValue("/root/hidden/empvoluntrattdabsn/empvoluntrattdabsnlist/rregno"));
- model.makeValue("/root/main/aaa/report/hometel",model.getValue("/root/hidden/empvoluntrattdabsn/empvoluntrattdabsnlist/cntctel"));
- model.makeValue("/root/main/aaa/report/mpphontel",model.getValue("/root/hidden/empvoluntrattdabsn/empvoluntrattdabsnlist/mpphonno"));
- model.makeValue("/root/main/aaa/report/servtm",model.getValue("/root/main/reportsql/servdata/servtmsum"));
- model.makeValue("/root/main/aaa/report/entrydd",model.getValue("/root/main/reportsql/servdata/servddterm"));
- model.makeValue("/root/main/aaa/report/issyy",model.getValue("/root/main/reportsql/reportissseq/issyy"));
- model.makeValue("/root/main/aaa/report/issseqno",model.getValue("/root/main/reportsql/reportissseq/issseqno"));
- model.makeValue("/root/main/aaa/report/currentyy",model.getValue("/root/hidden/empvoluntrattdabsn/empvoluntrattdabsnlist/currentyy"));
- model.makeValue("/root/main/aaa/report/currentmm",model.getValue("/root/hidden/empvoluntrattdabsn/empvoluntrattdabsnlist/currentmm"));
- model.makeValue("/root/main/aaa/report/currentdd",model.getValue("/root/hidden/empvoluntrattdabsn/empvoluntrattdabsnlist/currentdd"));
- model.makeValue("/root/main/aaa/report/detladdr",model.getValue("/root/hidden/empvoluntrattdabsn/empvoluntrattdabsnlist/residncaddr"));
- //20091005-kys-봉사이력추가
- model.copyNode("/root/main/aaa/voluntrhist"
- , "/root/main/reportsql/voluntrhist");
-
- //20091005-kys-확인서 변경으로 수정
- exeReportPreview("RPAAA01701", "XMLSTR");
- //exeReportPreview("RPAAA00101", "XMLSTR","/root/hidden/empvoluntrattdabsn");
- if (getParameter("reportprintyn") == "Y")
- { // 프린트 출력이 되고 창이 닫혔을 때
- fInsIssSeqNo();
- }
- model.removenode("/root/hidden/empvoluntrattdabsn");
- model.makeNode("/root/hidden/empvoluntrattdabsn");
- }
- model.removeNodeset("/root/main/aaa/report/status");
- model.refresh();
-
- }
- function fInsIssSeqNo()
- {
- // 발행번호 등록
- model.makeValue("/root/issseq/voluntrflag",3);
- // 봉사자 구분 3 :교직원 봉사자로 저장
- model.makeValue("/root/issseq/voluntrid",model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist/emplno"));
- model.makeValue("/root/issseq/issrem",model.getValue("/root/main/aaa/report/issrem"));
- model.makeValue("/root/issseq/isscnts",model.getValue("/root/main/aaa/report/isscnts"));
-
- // 해당 봉사자ID 값 저장
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.copyNode("/root/send/savedata","/root/issseq");
- submit("TXAAA01702");
-
- model.refresh();
- }
-
- /* +
- var idxRow = grd_empvoluntrattdabsnlist.rows;
- var nodeCnt = 0; //chk된 data만 따로 저장
- var chkCount = 0;//chk된 data가 없을시 메세지 처리
- var idxRow = grd_empvoluntrattdabsnlist.row;
- alert(idxRow);
- if(idxRow =='-1' || idxRow=='0') {
- messageBox("봉사자를 선택하십시오","I");
- return;
- }
- model.makeNode("/root/hidden/empvoluntrattdabsn/empvoluntrattdabsnlist");
- model.copyNode("/root/hidden/empvoluntrattdabsn/empvoluntrattdabsnlist"
- , "/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+idxRow+"]");
- model.makeValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+idxRow+"]/voluntrflagnm", "교직원");
-
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/voluntrflag",'3');
- submit("TRAAA01703"); //발행번호 조회하는 서브미션 [issseqno, issyy]
- setParameter("reportprintyn", ""); //출력 여부 알려주는 reportprintyn 란 파라메터 셋팅
-
- exeReportPreview("RPAAA00101", "XMLSTR", "/root/hidden/empvoluntrattdabsn", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
- if (getParameter("reportprintyn") == "Y")
- { // 프린트 출력이 되고 창이 닫혔을 때
- fInsIssSeqNo();
- // 발행번호 등록
- }
- model.refresh();
- }
-
-
- function fInsIssSeqNo() {
- // 발행번호 등록
- model.makeValue("/root/issseq/voluntrflag",3);
- // 봉사자 구분 3 :교직원 봉사자로 저장
- model.makeValue("/root/issseq/voluntrid",model.getValue("/root/main/studvoluntrinfo/voluntrinfo/voluntrid"));
- // 해당 봉사자ID 값 저장
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.copyNode("/root/send/savedata","/root/issseq");
- submit("TXAAA01702")
-
- model.refresh();
- }
- */
-
- ]]>
- </script>
- </button>
- <button id="button4" class="btn3_letter4" style="left:97px; top:3px; width:80px; height:22px; ">
- <caption>SMS전송</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removeNodeset("/root/hidden/voluntrspec");
-
- var idxRow = grd_empvoluntrattdabsnlist.rows;
- var idxRows = grd_empvoluntrattdabsnlist.fixedRows;
- var chkCount=0;
-
- for(i=1;i<=idxRow-idxRows;i++) // 그리드에 체크된 개수만큼 for문 돌려서 값을 체크한다.
- {
-
- var chkFlag=model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+i+"]/chk");
-
- if(chkFlag=='1')
- {
- var NodeCnt=eval(getNodesetCount("/root/hidden/voluntrspec/voluntrspecinfo"))+1;
- // 비어있는 hidden노드에 1을 더해 count개수 1를 만든다.
-
-
- model.makeNode("/root/hidden/voluntrspec/voluntrspecinfo["+NodeCnt+"]");
- //hidden노드에 첫번째 행을 만든뒤, 체크된 자원봉사자 정보 hidden에 넘겨준다.
-
- model.makeValue("/root/hidden/voluntrspec/voluntrspecinfo["+NodeCnt+"]/chk",model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+i+"]/chk"));
- model.makeValue("/root/hidden/voluntrspec/voluntrspecinfo["+NodeCnt+"]/pid",model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+i+"]/emplno"));
- model.makeValue("/root/hidden/voluntrspec/voluntrspecinfo["+NodeCnt+"]/recvrnm",model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+i+"]/name"));
- model.makeValue("/root/hidden/voluntrspec/voluntrspecinfo["+NodeCnt+"]/recvrtelno",model.getValue("/root/main/empvoluntrattdabsn/empvoluntrattdabsnlist["+i+"]/mpphonno"));
- // 체크가 된 봉사자 갯수만큼 해당 값 복사해서 넘긴다.
- chkCount=chkCount+1;
- }
- }
- if(chkCount=='0')
- {
- messageBox("SMS를 전송할 자원봉사자를 선택하십시오.","I");
- return;
- }
- modal("SPAAA03400", "1","150", "150", "SPAAA03400", "/root/hidden/voluntrspec", " /root/main/recvrlist");
- // /root/hidden/voluntrspec 경로에 담긴 정보 팝업창의 /root/main/sendmsg 노드로 보냄
- // model.removeNodeset("/root/hidden/voluntrspec");
-
- // model.makeNode("/root/hidden/voluntrspec");
- model.refresh();
-
-
- ]]>
- </script>
- </button>
- <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|