2023-11-06 10:16 찾교 수정 사항 개발
This commit is contained in:
parent
375639378b
commit
a49e373c30
@ -36,6 +36,8 @@ public class CmmnDetailCode implements Serializable {
|
|||||||
* 코드
|
* 코드
|
||||||
*/
|
*/
|
||||||
private String code = "";
|
private String code = "";
|
||||||
|
|
||||||
|
private int sort = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 코드명
|
* 코드명
|
||||||
@ -229,4 +231,12 @@ public class CmmnDetailCode implements Serializable {
|
|||||||
this.tempCodeId = tempCodeId;
|
this.tempCodeId = tempCodeId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getSort() {
|
||||||
|
return sort;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSort(int sort) {
|
||||||
|
this.sort = sort;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -378,7 +378,8 @@ public class EgovCcmCmmnCodeManageController {
|
|||||||
cmmnDetailCodeVO.setCodeNm(cmmnDetailCode.getCodeNm());
|
cmmnDetailCodeVO.setCodeNm(cmmnDetailCode.getCodeNm());
|
||||||
cmmnDetailCodeVO.setCodeDc(cmmnDetailCode.getCodeDc());
|
cmmnDetailCodeVO.setCodeDc(cmmnDetailCode.getCodeDc());
|
||||||
cmmnDetailCodeVO.setUseAt(cmmnDetailCode.getUseAt());
|
cmmnDetailCodeVO.setUseAt(cmmnDetailCode.getUseAt());
|
||||||
cmmnDetailCodeVO.setParent(cmmnDetailCode.getCodeId());
|
cmmnDetailCodeVO.setParent(cmmnDetailCode.getCodeId());
|
||||||
|
//cmmnDetailCodeVO.setSort(Integer.parseInt()cmmnDetailCode.getSort());
|
||||||
model.addAttribute("menuManageVO", cmmnDetailCodeVO);
|
model.addAttribute("menuManageVO", cmmnDetailCodeVO);
|
||||||
}
|
}
|
||||||
modelAndView.addObject("status", "success");
|
modelAndView.addObject("status", "success");
|
||||||
@ -575,6 +576,7 @@ public class EgovCcmCmmnCodeManageController {
|
|||||||
cmmnDetailCodeVO.setCodeDc(menuManageVO.getMenuDc());
|
cmmnDetailCodeVO.setCodeDc(menuManageVO.getMenuDc());
|
||||||
cmmnDetailCodeVO.setUseAt(menuManageVO.getUseYn());
|
cmmnDetailCodeVO.setUseAt(menuManageVO.getUseYn());
|
||||||
cmmnDetailCodeVO.setLastUpdusrId(user.getId());
|
cmmnDetailCodeVO.setLastUpdusrId(user.getId());
|
||||||
|
cmmnDetailCodeVO.setSort(Integer.parseInt(menuManageVO.getSort()));
|
||||||
//cmmnDetailCodeManageService.updateCmmnDetailCode(cmmnDetailCodeVO);
|
//cmmnDetailCodeManageService.updateCmmnDetailCode(cmmnDetailCodeVO);
|
||||||
cmmnDetailCodeManageService.updateCmmnDetailCodePk(cmmnDetailCodeVO);
|
cmmnDetailCodeManageService.updateCmmnDetailCodePk(cmmnDetailCodeVO);
|
||||||
newCode = menuManageVO.getUpperMenuId()+"__"+menuManageVO.getMenuNo();
|
newCode = menuManageVO.getUpperMenuId()+"__"+menuManageVO.getMenuNo();
|
||||||
|
|||||||
@ -108,6 +108,8 @@ public class MenuManageJTreeVO implements Serializable {
|
|||||||
|
|
||||||
String [] codeArry = null; //즐겨찾기 리스트 배열 받기
|
String [] codeArry = null; //즐겨찾기 리스트 배열 받기
|
||||||
|
|
||||||
|
private String sort; //매뉴순번
|
||||||
|
|
||||||
public String getTmp_snsId() {
|
public String getTmp_snsId() {
|
||||||
return tmp_snsId;
|
return tmp_snsId;
|
||||||
}
|
}
|
||||||
@ -481,6 +483,14 @@ public class MenuManageJTreeVO implements Serializable {
|
|||||||
public void setDepth(String depth) {
|
public void setDepth(String depth) {
|
||||||
this.depth = depth;
|
this.depth = depth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getSort() {
|
||||||
|
return sort;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSort(String sort) {
|
||||||
|
this.sort = sort;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -75,5 +75,14 @@ public interface VEAStngService {
|
|||||||
int update_VEAIRR(VEAStngVO paramVO) throws Exception; // U
|
int update_VEAIRR(VEAStngVO paramVO) throws Exception; // U
|
||||||
int delete_VEAIRR(VEAStngVO paramVO) throws Exception; // D
|
int delete_VEAIRR(VEAStngVO paramVO) throws Exception; // D
|
||||||
List<VEAStngVO> selectList_VEAIRR(VEAStngVO paramVO) throws Exception; // LIST
|
List<VEAStngVO> selectList_VEAIRR(VEAStngVO paramVO) throws Exception; // LIST
|
||||||
List<VEAStngVO> selectPagingList_VEAIRR(VEAStngVO paramVO) throws Exception; // Page List
|
List<VEAStngVO> selectPagingList_VEAIRR(VEAStngVO paramVO) throws Exception; // Page List
|
||||||
|
|
||||||
|
|
||||||
|
//VEA_BASIC_INFO_STNG - 기본설정정보
|
||||||
|
void insert_VEABIS(VEAStngVO paramVO) throws Exception; // C
|
||||||
|
VEAStngVO selectDetail_VEABIS(VEAStngVO paramVO) throws Exception; // R
|
||||||
|
int update_VEABIS(VEAStngVO paramVO) throws Exception; // U
|
||||||
|
int delete_VEABIS(VEAStngVO paramVO) throws Exception; // D
|
||||||
|
List<VEAStngVO> selectList_VEABIS(VEAStngVO paramVO) throws Exception; // LIST
|
||||||
|
List<VEAStngVO> selectPagingList_VEABIS(VEAStngVO paramVO) throws Exception; // Page List
|
||||||
}
|
}
|
||||||
|
|||||||
@ -94,6 +94,10 @@ public class VEAStngVO extends ComDefaultVO implements Serializable {
|
|||||||
private String instrTm0; //해당월 0일강사인당시간
|
private String instrTm0; //해당월 0일강사인당시간
|
||||||
private String asgnmChasi0; //해당월 0일강사배정총차시
|
private String asgnmChasi0; //해당월 0일강사배정총차시
|
||||||
|
|
||||||
|
//vea_basic_info_stng - 기본정보
|
||||||
|
private String stngCd; //설정코드
|
||||||
|
private String cn; //내용
|
||||||
|
|
||||||
//etc
|
//etc
|
||||||
private String code; //설정 년도
|
private String code; //설정 년도
|
||||||
private String psblTmQnttyCnt; //실제 신청 차시(관리자 달력용)
|
private String psblTmQnttyCnt; //실제 신청 차시(관리자 달력용)
|
||||||
@ -602,5 +606,17 @@ public class VEAStngVO extends ComDefaultVO implements Serializable {
|
|||||||
public void setPsblTmQnttyCnt(String psblTmQnttyCnt) {
|
public void setPsblTmQnttyCnt(String psblTmQnttyCnt) {
|
||||||
this.psblTmQnttyCnt = psblTmQnttyCnt;
|
this.psblTmQnttyCnt = psblTmQnttyCnt;
|
||||||
}
|
}
|
||||||
|
public String getStngCd() {
|
||||||
|
return stngCd;
|
||||||
|
}
|
||||||
|
public void setStngCd(String stngCd) {
|
||||||
|
this.stngCd = stngCd;
|
||||||
|
}
|
||||||
|
public String getCn() {
|
||||||
|
return cn;
|
||||||
|
}
|
||||||
|
public void setCn(String cn) {
|
||||||
|
this.cn = cn;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -244,5 +244,34 @@ public class VEAStngDAO extends EgovAbstractDAO {
|
|||||||
public List<VEAStngVO> selectPagingList_VEAIRR(VEAStngVO paramVO) throws Exception {
|
public List<VEAStngVO> selectPagingList_VEAIRR(VEAStngVO paramVO) throws Exception {
|
||||||
List<VEAStngVO> tlist = (List<VEAStngVO>) list("VEAInstrRsdncRatioDAO.selectPagingList", paramVO);
|
List<VEAStngVO> tlist = (List<VEAStngVO>) list("VEAInstrRsdncRatioDAO.selectPagingList", paramVO);
|
||||||
return tlist;
|
return tlist;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//VEA_BASIC_INFO_STNG - 기본정보설정
|
||||||
|
public void insert_VEABIS(VEAStngVO paramVO) throws Exception {
|
||||||
|
insert("VEABasicInfoStngDAO.insert", paramVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
public VEAStngVO selectDetail_VEABIS(VEAStngVO paramVO) throws Exception {
|
||||||
|
return (VEAStngVO) select("VEABasicInfoStngDAO.selectDetail", paramVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int update_VEABIS(VEAStngVO paramVO) throws Exception {
|
||||||
|
return update("VEABasicInfoStngDAO.update", paramVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int delete_VEABIS(VEAStngVO paramVO) throws Exception {
|
||||||
|
return delete("VEABasicInfoStngDAO.delete", paramVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
//L
|
||||||
|
public List<VEAStngVO> selectList_VEABIS(VEAStngVO paramVO) throws Exception {
|
||||||
|
List<VEAStngVO> tlist = (List<VEAStngVO>) list("VEABasicInfoStngDAO.selectList", paramVO);
|
||||||
|
return tlist;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<VEAStngVO> selectPagingList_VEABIS(VEAStngVO paramVO) throws Exception {
|
||||||
|
List<VEAStngVO> tlist = (List<VEAStngVO>) list("VEABasicInfoStngDAO.selectPagingList", paramVO);
|
||||||
|
return tlist;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -291,5 +291,38 @@ public class VEAStngServiceImpl implements VEAStngService {
|
|||||||
//paging List
|
//paging List
|
||||||
public List<VEAStngVO> selectPagingList_VEAIRR(VEAStngVO paramVO) throws Exception{
|
public List<VEAStngVO> selectPagingList_VEAIRR(VEAStngVO paramVO) throws Exception{
|
||||||
return vEAStngDAO.selectPagingList_VEAIRR(paramVO);
|
return vEAStngDAO.selectPagingList_VEAIRR(paramVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//VEA_BASIC_INFO_STNG - 기본설정정보
|
||||||
|
//C
|
||||||
|
public void insert_VEABIS(VEAStngVO paramVO) throws Exception {
|
||||||
|
vEAStngDAO.insert_VEABIS(paramVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
//R
|
||||||
|
public VEAStngVO selectDetail_VEABIS(VEAStngVO paramVO) throws Exception {
|
||||||
|
return vEAStngDAO.selectDetail_VEABIS(paramVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
//U
|
||||||
|
public int update_VEABIS(VEAStngVO paramVO) throws Exception{
|
||||||
|
|
||||||
|
return vEAStngDAO.update_VEABIS(paramVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
//D
|
||||||
|
public int delete_VEABIS(VEAStngVO paramVO) throws Exception{
|
||||||
|
return vEAStngDAO.delete_VEABIS(paramVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
//List
|
||||||
|
public List<VEAStngVO> selectList_VEABIS(VEAStngVO paramVO) throws Exception{
|
||||||
|
return vEAStngDAO.selectList_VEABIS(paramVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
//paging List
|
||||||
|
public List<VEAStngVO> selectPagingList_VEABIS(VEAStngVO paramVO) throws Exception{
|
||||||
|
return vEAStngDAO.selectPagingList_VEABIS(paramVO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -99,6 +99,44 @@ public class ScholInfoController {
|
|||||||
return "/web/ve/aplct/cpyrgExprnClsrm/exprnClsrmInfo/popup/scholPopList";
|
return "/web/ve/aplct/cpyrgExprnClsrm/exprnClsrmInfo/popup/scholPopList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 교육일정당력보기
|
||||||
|
*/
|
||||||
|
@RequestMapping("popup/calendarPopList.do")
|
||||||
|
public String popupCalendarPopList( @ModelAttribute("scholInfoVO") ScholInfoVO scholInfoVO , ModelMap model , HttpServletRequest request ) throws Exception {
|
||||||
|
//1.paging step1
|
||||||
|
PaginationInfo paginationInfo = this.setPagingStep1(scholInfoVO);
|
||||||
|
//2. paging step2
|
||||||
|
scholInfoVO = this.setPagingStep2(scholInfoVO, paginationInfo);
|
||||||
|
|
||||||
|
if (!"".equals(scholInfoVO.getSearchKeyword())) {
|
||||||
|
scholInfoVO.setSelectPagingListQuery(" AND A.SCHOL_NM LIKE '%"+scholInfoVO.getSearchKeyword()+"%' ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!"".equals(scholInfoVO.getSearchCondition())) {
|
||||||
|
if(scholInfoVO.getSearchCondition().equals("10")) {
|
||||||
|
scholInfoVO.setScholGrade(" AND A.SCHOL_GRADE_NM LIKE '%초등%' ");
|
||||||
|
}else if(scholInfoVO.getSearchCondition().equals("20")) {
|
||||||
|
scholInfoVO.setScholGrade(" AND A.SCHOL_GRADE_NM LIKE '%중학%' ");
|
||||||
|
}else if(scholInfoVO.getSearchCondition().equals("30")) {
|
||||||
|
scholInfoVO.setScholGrade(" AND A.SCHOL_GRADE_NM LIKE '%고등%' ");
|
||||||
|
}else if(scholInfoVO.getSearchCondition().equals("40")) {
|
||||||
|
scholInfoVO.setScholGrade(" AND A.SCHOL_GRADE_NM LIKE '%특수%' ");
|
||||||
|
}else if(scholInfoVO.getSearchCondition().equals("50")) {
|
||||||
|
scholInfoVO.setScholGrade(" AND A.SCHOL_GRADE_NM LIKE '%각종%' ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
List<ScholInfoVO> scholInfoVOList = scholInfoService.selectPagingList(scholInfoVO);
|
||||||
|
//3.paging step3
|
||||||
|
paginationInfo = this.setPagingStep3(scholInfoVOList, paginationInfo);
|
||||||
|
model.addAttribute("paginationInfo", paginationInfo);
|
||||||
|
//학교정보 리스트, 페이징 정보 전달
|
||||||
|
model.addAttribute("scholList", scholInfoVOList);
|
||||||
|
|
||||||
|
return "/web/ve/aplct/cpyrgExprnClsrm/exprnClsrmInfo/popup/calendarPopList";
|
||||||
|
}
|
||||||
|
//calendarPopList.jsp
|
||||||
|
|
||||||
//페이징을 위한 처리 step1 - 페이징 기본 정보 설정
|
//페이징을 위한 처리 step1 - 페이징 기본 정보 설정
|
||||||
private PaginationInfo setPagingStep1(
|
private PaginationInfo setPagingStep1(
|
||||||
|
|||||||
@ -24,6 +24,7 @@ import kcc.com.utl.user.service.CheckLoginUtil;
|
|||||||
import kcc.let.uat.uia.service.SsoLoginVO;
|
import kcc.let.uat.uia.service.SsoLoginVO;
|
||||||
import kcc.let.utl.fcc.service.EgovCryptoUtil;
|
import kcc.let.utl.fcc.service.EgovCryptoUtil;
|
||||||
import kcc.ve.adv.tngr.stngInfo.service.VEAStngMixService;
|
import kcc.ve.adv.tngr.stngInfo.service.VEAStngMixService;
|
||||||
|
import kcc.ve.adv.tngr.stngInfo.service.VEAStngService;
|
||||||
import kcc.ve.adv.tngr.stngInfo.service.VEAStngVO;
|
import kcc.ve.adv.tngr.stngInfo.service.VEAStngVO;
|
||||||
import kcc.ve.aplct.tngrVisitEdu.eduAplct.service.EduAplctTngrService;
|
import kcc.ve.aplct.tngrVisitEdu.eduAplct.service.EduAplctTngrService;
|
||||||
import kcc.ve.cmm.VeConstants;
|
import kcc.ve.cmm.VeConstants;
|
||||||
@ -131,6 +132,11 @@ public class EduAplctTngrController {
|
|||||||
@Resource(name = "vEAStngMixService")
|
@Resource(name = "vEAStngMixService")
|
||||||
private VEAStngMixService vEAStngMixService;
|
private VEAStngMixService vEAStngMixService;
|
||||||
|
|
||||||
|
|
||||||
|
@Resource(name = "vEAStngService")
|
||||||
|
private VEAStngService vEAStngService;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* START
|
* START
|
||||||
* 이전작업들...
|
* 이전작업들...
|
||||||
@ -190,6 +196,15 @@ public class EduAplctTngrController {
|
|||||||
model.addAttribute("list", vEPrcsDetailVOList);
|
model.addAttribute("list", vEPrcsDetailVOList);
|
||||||
model.addAttribute("uniqId", loginVO.getUniqId());
|
model.addAttribute("uniqId", loginVO.getUniqId());
|
||||||
|
|
||||||
|
|
||||||
|
//현재 신청등록문구 가져오기
|
||||||
|
VEAStngVO vEAStngVO = new VEAStngVO();
|
||||||
|
vEAStngVO.setStngCd("TR01");
|
||||||
|
vEAStngVO = vEAStngService.selectDetail_VEABIS(vEAStngVO);
|
||||||
|
|
||||||
|
model.addAttribute("selectBasicTRInfo", vEAStngVO);
|
||||||
|
|
||||||
|
|
||||||
return "/web/ve/aplct/tngrVisitEdu/eduAplct/eduAplctReg";
|
return "/web/ve/aplct/tngrVisitEdu/eduAplct/eduAplctReg";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -18,6 +18,7 @@ import egovframework.rte.fdl.idgnr.EgovIdGnrService;
|
|||||||
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
||||||
import kcc.com.cmm.LoginVO;
|
import kcc.com.cmm.LoginVO;
|
||||||
import kcc.com.utl.user.service.CheckLoginUtil;
|
import kcc.com.utl.user.service.CheckLoginUtil;
|
||||||
|
import kcc.let.uss.ion.cnt.service.CntManageVO;
|
||||||
import kcc.ve.adv.tngr.stngInfo.service.VEAStngMixService;
|
import kcc.ve.adv.tngr.stngInfo.service.VEAStngMixService;
|
||||||
import kcc.ve.adv.tngr.stngInfo.service.VEAStngService;
|
import kcc.ve.adv.tngr.stngInfo.service.VEAStngService;
|
||||||
import kcc.ve.adv.tngr.stngInfo.service.VEAStngVO;
|
import kcc.ve.adv.tngr.stngInfo.service.VEAStngVO;
|
||||||
@ -175,6 +176,92 @@ public class AdvAreaLctrMngTngrController {
|
|||||||
//회차 순번
|
//회차 순번
|
||||||
@Resource(name="dtPsblTmQnttyGnrService")
|
@Resource(name="dtPsblTmQnttyGnrService")
|
||||||
private EgovIdGnrService dtPsblTmQnttyGnrService;
|
private EgovIdGnrService dtPsblTmQnttyGnrService;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 청소년 등록화면 문구 수정 - TR01
|
||||||
|
* TL0E
|
||||||
|
* TL0M
|
||||||
|
* TL0H
|
||||||
|
*/
|
||||||
|
@RequestMapping("/kccadr/oprtn/tngrVisitEdu/advStngMngTRAjax.do")
|
||||||
|
public ModelAndView advStngMngTRAjax(
|
||||||
|
ModelMap model
|
||||||
|
, HttpServletRequest request ) throws Exception {
|
||||||
|
|
||||||
|
ModelAndView modelAndView = new ModelAndView();
|
||||||
|
modelAndView.setViewName("jsonView");
|
||||||
|
|
||||||
|
try {
|
||||||
|
String s_cn = request.getParameter("cn");
|
||||||
|
|
||||||
|
VEAStngVO vEAStngVO = new VEAStngVO();
|
||||||
|
vEAStngVO.setCn(s_cn);
|
||||||
|
vEAStngVO.setStngCd("TR01");
|
||||||
|
vEAStngService.update_VEABIS(vEAStngVO);
|
||||||
|
|
||||||
|
modelAndView.addObject("result", "success");
|
||||||
|
|
||||||
|
}catch(Exception e) {
|
||||||
|
System.err.println("IOException Occured");
|
||||||
|
modelAndView.addObject("result", "fail");
|
||||||
|
}
|
||||||
|
|
||||||
|
return modelAndView;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 기본 정보 설정 화면
|
||||||
|
*/
|
||||||
|
@RequestMapping("/kccadr/oprtn/tngrVisitEdu/advStngMngList.do")
|
||||||
|
public String advStngMngList(
|
||||||
|
@ModelAttribute("vELctrDetailVO") VELctrDetailVO vELctrDetailVO
|
||||||
|
, ModelMap model
|
||||||
|
) throws Exception {
|
||||||
|
|
||||||
|
//로그인 처리====================================
|
||||||
|
//로그인 정보 가져오기
|
||||||
|
String s_oprtnLoginCheckNInfo = checkLoginUtil.oprtnCheckNInfo(model);
|
||||||
|
if (!"".equals(s_oprtnLoginCheckNInfo)) return s_oprtnLoginCheckNInfo;
|
||||||
|
|
||||||
|
//로그인 처리====================================
|
||||||
|
|
||||||
|
//현재 신청등록문구 가져오기
|
||||||
|
VEAStngVO vEAStngVO = new VEAStngVO();
|
||||||
|
vEAStngVO.setStngCd("TR01");
|
||||||
|
vEAStngVO = vEAStngService.selectDetail_VEABIS(vEAStngVO);
|
||||||
|
|
||||||
|
model.addAttribute("selectBasicTRInfo", vEAStngVO);
|
||||||
|
|
||||||
|
|
||||||
|
return "oprtn/tngrVisitEdu/advStngMngList";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 청소년 교육확정 메일본문 미리보기 페이지
|
||||||
|
*/
|
||||||
|
@RequestMapping("/kccadr/oprtn/tngrVisitEdu/popup/eduAplctRegPreviewDetail.do")
|
||||||
|
public String eduAplctRegPreviewDetail( @ModelAttribute("cntManageVO") CntManageVO cntManageVO
|
||||||
|
, ModelMap model
|
||||||
|
, HttpServletRequest request ) throws Exception {
|
||||||
|
|
||||||
|
try {
|
||||||
|
//현재 신청등록문구 가져오기
|
||||||
|
VEAStngVO vEAStngVO = new VEAStngVO();
|
||||||
|
vEAStngVO.setStngCd("TR01");
|
||||||
|
vEAStngVO = vEAStngService.selectDetail_VEABIS(vEAStngVO);
|
||||||
|
|
||||||
|
model.addAttribute("selectBasicTRInfo", vEAStngVO);
|
||||||
|
|
||||||
|
}catch(Exception ex) {
|
||||||
|
ex.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return "oprtn/tngrVisitEdu/popup/eduAplctRegPreviewDetail";
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 지역별 강의관리 목록 화면
|
* 지역별 강의관리 목록 화면
|
||||||
@ -1016,6 +1103,60 @@ public class AdvAreaLctrMngTngrController {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}catch(Exception ex)
|
||||||
|
{
|
||||||
|
ex.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return "oprtn/tngrVisitEdu/popup/advLctrPrdCalendarPopup";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 강의가능기간 달력 팝업 - 해당 회차의 선택한 기간 정보에 대한 달력을 띄운다.
|
||||||
|
*/
|
||||||
|
@RequestMapping("/web/ve/tngrVisitEdu/popup/advLctrPrdCalendarPopup.do")
|
||||||
|
public String webVeadvLctrPrdCalendarPopup(
|
||||||
|
@ModelAttribute("vEAStngVO") VEAStngVO vEAStngVO
|
||||||
|
, ModelMap model
|
||||||
|
, HttpServletRequest request
|
||||||
|
) throws Exception {
|
||||||
|
|
||||||
|
//로그인 처리====================================
|
||||||
|
//로그인 정보 가져오기
|
||||||
|
|
||||||
|
//String s_userCheckNInfo = checkLoginUtil.userCheckNInfo(model, request);
|
||||||
|
//if (!"".equals(s_userCheckNInfo)) return s_userCheckNInfo;
|
||||||
|
|
||||||
|
//로그인 처리====================================
|
||||||
|
|
||||||
|
|
||||||
|
try {
|
||||||
|
LoginVO loginVO = checkLoginUtil.getAuthLoginVO(); //권한에 따른 로그인 정보 가져오기
|
||||||
|
vEAStngVO.setFrstRegisterId(loginVO.getUniqId());
|
||||||
|
|
||||||
|
|
||||||
|
//선택한 년도&차시의 교육가능시수 & 차시 정보
|
||||||
|
//vEAStngVO.setYr(vEAStngVO.getStngYr());
|
||||||
|
//vEAStngVO.setRndsOrd(vELctrDetailVO.getRndsOrd());
|
||||||
|
|
||||||
|
//VEAStngVO selectBasicInfo = vEAStngMixService.selectDetail_VEALYS(vEAStngVO);
|
||||||
|
|
||||||
|
//model.addAttribute("selectBasicInfo", selectBasicInfo);
|
||||||
|
|
||||||
|
|
||||||
|
//등록된 해당 년도 회차의 강의가능리스트 정보 가져오기
|
||||||
|
//List<VEAStngVO> selectBasicList = vEAStngService.selectList_VEALPPS(vEAStngVO);
|
||||||
|
|
||||||
|
//model.addAttribute("selectBasicList", selectBasicList);
|
||||||
|
|
||||||
|
System.out.println(vEAStngVO.getRndsOrd());
|
||||||
|
System.out.println(vEAStngVO.getRndsOrd());
|
||||||
|
|
||||||
|
model.addAttribute("rndsOrd", vEAStngVO.getRndsOrd());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}catch(Exception ex)
|
}catch(Exception ex)
|
||||||
{
|
{
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
|
|||||||
@ -131,4 +131,6 @@
|
|||||||
<sqlMap resource="egovframework/sqlmap/ve/tngr/VEAAsgnmStngMix_SQL_Tibero.xml"/> <!-- 강사배정(MIX) -->
|
<sqlMap resource="egovframework/sqlmap/ve/tngr/VEAAsgnmStngMix_SQL_Tibero.xml"/> <!-- 강사배정(MIX) -->
|
||||||
|
|
||||||
<sqlMap resource="egovframework/sqlmap/ve/tngr/VEACmpltCrtfcMix_SQL_Tibero.xml"/> <!-- 이수증(MIX) -->
|
<sqlMap resource="egovframework/sqlmap/ve/tngr/VEACmpltCrtfcMix_SQL_Tibero.xml"/> <!-- 이수증(MIX) -->
|
||||||
|
|
||||||
|
<sqlMap resource="egovframework/sqlmap/ve/tngr/VEABasicInfoStng_SQL_Tibero.xml"/> <!-- 기본정보 -->
|
||||||
</sqlMapConfig>
|
</sqlMapConfig>
|
||||||
@ -68,9 +68,11 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="CmmnDetailCodeManageDAO.selectCmmnDetailCodeDetail" parameterClass="CmmnDetailCode" resultClass="CmmnDetailCode">
|
<select id="CmmnDetailCodeManageDAO.selectCmmnDetailCodeDetail" parameterClass="CmmnDetailCode" resultClass="CmmnDetailCode">
|
||||||
|
/* CmmnDetailCodeManageDAO.selectCmmnDetailCodeDetail */
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
SELECT A.CODE_ID codeId
|
SELECT A.CODE_ID codeId
|
||||||
, B.CODE_ID_NM codeIdNm
|
, B.CODE_ID_NM codeIdNm
|
||||||
|
, A.SORT sort
|
||||||
, A.CODE code
|
, A.CODE code
|
||||||
, A.CODE_NM codeNm
|
, A.CODE_NM codeNm
|
||||||
, A.CODE_DC codeDc
|
, A.CODE_DC codeDc
|
||||||
@ -177,6 +179,7 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<update id="CmmnDetailCodeManageDAO.updateCmmnDetailCodePk" parameterClass="CmmnDetailCode">
|
<update id="CmmnDetailCodeManageDAO.updateCmmnDetailCodePk" parameterClass="CmmnDetailCode">
|
||||||
|
/* CmmnDetailCodeManageDAO.updateCmmnDetailCodePk */
|
||||||
UPDATE LETTCCMMNDETAILCODE
|
UPDATE LETTCCMMNDETAILCODE
|
||||||
SET CODE_NM = #codeNm#
|
SET CODE_NM = #codeNm#
|
||||||
<isNotEmpty property="codeDc">
|
<isNotEmpty property="codeDc">
|
||||||
@ -185,6 +188,9 @@
|
|||||||
<isNotEmpty property="useAt">
|
<isNotEmpty property="useAt">
|
||||||
, USE_AT = #useAt#
|
, USE_AT = #useAt#
|
||||||
</isNotEmpty>
|
</isNotEmpty>
|
||||||
|
<isNotEmpty property="sort">
|
||||||
|
, SORT = #sort#
|
||||||
|
</isNotEmpty>
|
||||||
, LAST_UPDT_PNTTM = SYSDATE
|
, LAST_UPDT_PNTTM = SYSDATE
|
||||||
, LAST_UPDUSR_ID = #lastUpdusrId#
|
, LAST_UPDUSR_ID = #lastUpdusrId#
|
||||||
, CODE = #code#
|
, CODE = #code#
|
||||||
|
|||||||
@ -0,0 +1,209 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
|
||||||
|
<!-- 찾교 교육 결과 테이블 -->
|
||||||
|
<sqlMap namespace="VEABasicInfoStng">
|
||||||
|
<typeAlias alias="egovMap" type="egovframework.rte.psl.dataaccess.util.EgovMap"/>
|
||||||
|
<typeAlias alias="VEAStngVO" type="kcc.ve.adv.tngr.stngInfo.service.VEAStngVO"/>
|
||||||
|
|
||||||
|
<!-- 공통 테이블 명 -->
|
||||||
|
<sql id="VEABasicInfoStngDAO.table_name">
|
||||||
|
vea_basic_info_stng
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<!-- 저장용 공통 컬럼 명 -->
|
||||||
|
<sql id="VEABasicInfoStngDAO.column_name">
|
||||||
|
stng_cd,
|
||||||
|
|
||||||
|
cn,
|
||||||
|
|
||||||
|
frst_regist_pnttm,
|
||||||
|
frst_register_id,
|
||||||
|
last_updt_pnttm,
|
||||||
|
last_updusr_id
|
||||||
|
|
||||||
|
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<!-- 조회용 공통 컬럼 명 -->
|
||||||
|
<sql id="VEABasicInfoStngDAO.select_column_name">
|
||||||
|
a.stng_cd AS stngCd,
|
||||||
|
a.cn AS cn,
|
||||||
|
|
||||||
|
|
||||||
|
TO_CHAR(a.frst_regist_pnttm,'YYYY-MM-DD') AS frstRegistPnttm,
|
||||||
|
a.frst_register_id AS frstRegisterId,
|
||||||
|
TO_CHAR(a.last_updt_pnttm,'YYYY-MM-DD') AS lastUpdtPnttm,
|
||||||
|
a.last_updusr_id AS lastUpdusrId
|
||||||
|
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<!-- 강사 등록 C -->
|
||||||
|
<insert id="VEABasicInfoStngDAO.insert" parameterClass="VEAStngVO">
|
||||||
|
/* VEABasicInfoStngDAO.insert */
|
||||||
|
MERGE INTO <include refid="VEABasicInfoStngDAO.table_name"/>
|
||||||
|
USING DUAL
|
||||||
|
ON(stng_cd=#stngCd#)
|
||||||
|
|
||||||
|
WHEN NOT MATCHED THEN
|
||||||
|
INSERT
|
||||||
|
(
|
||||||
|
<include refid="VEABasicInfoStngDAO.column_name"/>
|
||||||
|
)
|
||||||
|
VALUES(
|
||||||
|
#stngCd#,
|
||||||
|
|
||||||
|
#cn#,
|
||||||
|
|
||||||
|
SYSDATE,
|
||||||
|
#frstRegisterId#,
|
||||||
|
NULL,
|
||||||
|
NULL
|
||||||
|
)
|
||||||
|
WHEN MATCHED THEN
|
||||||
|
UPDATE
|
||||||
|
SET cn = #cn#
|
||||||
|
|
||||||
|
, last_updusr_id = #frstRegisterId#
|
||||||
|
, last_updt_pnttm = SYSDATE
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<!-- 강사 정보 R -->
|
||||||
|
<select id="VEABasicInfoStngDAO.selectDetail" parameterClass="VEAStngVO" resultClass="VEAStngVO">
|
||||||
|
SELECT
|
||||||
|
<include refid="VEABasicInfoStngDAO.select_column_name"/>
|
||||||
|
FROM
|
||||||
|
<include refid="VEABasicInfoStngDAO.table_name"/> a
|
||||||
|
WHERE
|
||||||
|
a.stng_cd = #stngCd#
|
||||||
|
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 강사 정보 U -->
|
||||||
|
<update id="VEABasicInfoStngDAO.update" parameterClass="VEAStngVO">
|
||||||
|
/* VEABasicInfoStngDAO.update */
|
||||||
|
MERGE INTO <include refid="VEABasicInfoStngDAO.table_name"/>
|
||||||
|
USING DUAL
|
||||||
|
ON(stng_cd=#stngCd#)
|
||||||
|
|
||||||
|
WHEN NOT MATCHED THEN
|
||||||
|
INSERT
|
||||||
|
(
|
||||||
|
<include refid="VEABasicInfoStngDAO.column_name"/>
|
||||||
|
)
|
||||||
|
VALUES(
|
||||||
|
#stngCd#,
|
||||||
|
|
||||||
|
#useYn#,
|
||||||
|
|
||||||
|
SYSDATE,
|
||||||
|
#frstRegisterId#,
|
||||||
|
NULL,
|
||||||
|
NULL
|
||||||
|
)
|
||||||
|
WHEN MATCHED THEN
|
||||||
|
UPDATE
|
||||||
|
SET cn = #cn#
|
||||||
|
|
||||||
|
, last_updusr_id = #frstRegisterId#
|
||||||
|
, last_updt_pnttm = SYSDATE
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<!-- 강사 정보 U -->
|
||||||
|
<!--
|
||||||
|
<update id="VEABasicInfoStngDAO.updateBulk" parameterClass="VEAStngVO">
|
||||||
|
INSERT INTO <include refid="VEABasicInfoStngDAO.table_name"/>
|
||||||
|
(
|
||||||
|
edu_aplct_ord,
|
||||||
|
prcs_ord,
|
||||||
|
|
||||||
|
frst_regist_pnttm,
|
||||||
|
frst_register_id
|
||||||
|
|
||||||
|
)
|
||||||
|
SELECT #eduAplctOrd#,prcs_ord, SYSDATE,#lastUpdusrId#
|
||||||
|
FROM ve_prcs_onln_cntnt
|
||||||
|
WHERE prcs_ord=#prcsOrd#
|
||||||
|
AND use_yn='Y'
|
||||||
|
ON DUPLICATE KEY UPDATE
|
||||||
|
last_updt_pnttm=SYSDATE,
|
||||||
|
last_updusr_id=#lastUpdusrId#
|
||||||
|
|
||||||
|
|
||||||
|
</update>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- 강사 정보 D -->
|
||||||
|
<delete id="VEABasicInfoStngDAO.delete" parameterClass="VEAStngVO">
|
||||||
|
DELETE FROM
|
||||||
|
<include refid="VEABasicInfoStngDAO.table_name"/> a
|
||||||
|
WHERE
|
||||||
|
a.stng_cd = #stngCd#
|
||||||
|
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<!-- 강사 정보 L -->
|
||||||
|
<select id="VEABasicInfoStngDAO.selectList" parameterClass="VEAStngVO" resultClass="VEAStngVO">
|
||||||
|
/* VEABasicInfoStngDAO.selectList */
|
||||||
|
SELECT
|
||||||
|
<include refid="VEABasicInfoStngDAO.select_column_name"/>
|
||||||
|
FROM
|
||||||
|
<include refid="VEABasicInfoStngDAO.table_name"/> a
|
||||||
|
WHERE
|
||||||
|
1=1
|
||||||
|
|
||||||
|
<isNotEmpty property="useYn">
|
||||||
|
AND a.cn=#cn#
|
||||||
|
</isNotEmpty>
|
||||||
|
|
||||||
|
<isNotEmpty property="stngCd">
|
||||||
|
AND a.stng_cd=#stngCd#
|
||||||
|
</isNotEmpty>
|
||||||
|
|
||||||
|
<isNotEmpty property="searchWord" prepend="AND">
|
||||||
|
a.cn LIKE '%'||#searchWord#||'%'
|
||||||
|
</isNotEmpty>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 강사 정보 L page -->
|
||||||
|
<select id="VEABasicInfoStngDAO.selectPagingList" parameterClass="VEAStngVO" resultClass="VEAStngVO">
|
||||||
|
SELECT
|
||||||
|
COUNT(1) OVER() AS totCnt ,
|
||||||
|
<include refid="VEABasicInfoStngDAO.select_column_name"/>
|
||||||
|
|
||||||
|
FROM
|
||||||
|
<include refid="VEABasicInfoStngDAO.table_name"/> a
|
||||||
|
|
||||||
|
WHERE
|
||||||
|
1=1
|
||||||
|
|
||||||
|
|
||||||
|
<isNotEmpty property="selectPagingListQuery">
|
||||||
|
$selectPagingListQuery$
|
||||||
|
</isNotEmpty>
|
||||||
|
|
||||||
|
<isNotEmpty property="stngCd">
|
||||||
|
AND a.stng_cd=#stngCd#
|
||||||
|
</isNotEmpty>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ORDER BY 1
|
||||||
|
|
||||||
|
<isEmpty property="orderByQuery">
|
||||||
|
, a.stng_cd desc
|
||||||
|
</isEmpty>
|
||||||
|
<isNotEmpty property="orderByQuery">
|
||||||
|
, $orderByQuery$
|
||||||
|
</isNotEmpty>
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
LIMIT recordCountPerPage OFFSET firstIndex
|
||||||
|
*/
|
||||||
|
OFFSET #firstIndex# ROWS FETCH NEXT #recordCountPerPage# ROWS ONLY;
|
||||||
|
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</sqlMap>
|
||||||
@ -322,12 +322,14 @@ function jstreeInit() {
|
|||||||
//코드 정보 세팅
|
//코드 정보 세팅
|
||||||
function fn_setting_menuNo(cmmnClCodeVO){
|
function fn_setting_menuNo(cmmnClCodeVO){
|
||||||
//upperIdxs = upperIdxs.join("|");
|
//upperIdxs = upperIdxs.join("|");
|
||||||
|
|
||||||
var tmpHtml = "";
|
var tmpHtml = "";
|
||||||
if(cmmnClCodeVO!=null){
|
if(cmmnClCodeVO!=null){
|
||||||
$('#menuNo').val(cmmnClCodeVO.codeId);
|
$('#menuNo').val(cmmnClCodeVO.codeId);
|
||||||
$('#tmp_Id').val(cmmnClCodeVO.codeId);
|
$('#tmp_Id').val(cmmnClCodeVO.codeId);
|
||||||
$('#menuNm').val(cmmnClCodeVO.codeNm);
|
$('#menuNm').val(cmmnClCodeVO.codeNm);
|
||||||
$('#menuDc').val(cmmnClCodeVO.codeDc);
|
$('#menuDc').val(cmmnClCodeVO.codeDc);
|
||||||
|
$('#sort').val(cmmnClCodeVO.sort);
|
||||||
$('#upperMenuIdText').text(cmmnClCodeVO.parent);
|
$('#upperMenuIdText').text(cmmnClCodeVO.parent);
|
||||||
$('#upperMenuId').val(cmmnClCodeVO.parent);
|
$('#upperMenuId').val(cmmnClCodeVO.parent);
|
||||||
$('#useYn').val(cmmnClCodeVO.useAt);
|
$('#useYn').val(cmmnClCodeVO.useAt);
|
||||||
@ -600,6 +602,12 @@ function fn_save_menuInfo(menuNo) {
|
|||||||
<input type="text" name="menuDc" id="menuDc" />
|
<input type="text" name="menuDc" id="menuDc" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><span>정렬순서</span></th>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="sort" id="sort" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><span>사용/미사용</span></th>
|
<th><span>사용/미사용</span></th>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@ -0,0 +1,195 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||||
|
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||||
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||||
|
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
||||||
|
<%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
||||||
|
<%@ taglib prefix="un" uri="http://jakarta.apache.org/taglibs/unstandard-1.0" %>
|
||||||
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||||
|
<un:useConstants var="KccadrStatus" className="kcc.kccadr.cmm.KccadrConstants" />
|
||||||
|
<%
|
||||||
|
/**
|
||||||
|
* @Class Name : advStngMngList.jsp
|
||||||
|
* @Description : 기본 정보 설정 관리 화면
|
||||||
|
|
||||||
|
* @Modification Information
|
||||||
|
* @
|
||||||
|
* @ 수정일 수정자 수정내용
|
||||||
|
* @ ------- -------- ---------------------------
|
||||||
|
* @ 2021.12.14 조용준 최초 생성
|
||||||
|
* @author 조용준
|
||||||
|
* @since 2021.12.14
|
||||||
|
* @version 1.0
|
||||||
|
* @see
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
%>
|
||||||
|
<html lang="ko">
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
|
<style>
|
||||||
|
input:read-only{
|
||||||
|
background-color: #ededed;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(document).ready(function(){
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
//fncPreviewEmail
|
||||||
|
function fncPreviewEmail(){
|
||||||
|
//document.listForm.authorCode.value = vAuthorCode;
|
||||||
|
//document.listForm.action = "<c:url value='/kccadr/oprtn/tngrVisitEdu/popup/advRndsStngMngPopup.do'/>";
|
||||||
|
document.listForm.action = "<c:url value='/kccadr/oprtn/tngrVisitEdu/popup/eduAplctRegPreviewDetail.do'/>";
|
||||||
|
window.open("#", "_aplctPreviewPop", "scrollbars = no, top=100px, left=100px, height=500px, width=1200px");
|
||||||
|
document.listForm.target = "_aplctPreviewPop";
|
||||||
|
document.listForm.submit();
|
||||||
|
}
|
||||||
|
|
||||||
|
function fncUpdate(){
|
||||||
|
|
||||||
|
if ($("#cn").val() == null || $("#cn").val() == ''){
|
||||||
|
alert("내용은 필수값입니다.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(confirm("수정하시겠습니까?")){
|
||||||
|
$.ajax({
|
||||||
|
type:"POST",
|
||||||
|
url:"${pageContext.request.contextPath}/kccadr/oprtn/tngrVisitEdu/advStngMngTRAjax.do",
|
||||||
|
data: {
|
||||||
|
"cn" : $("#cn").val()
|
||||||
|
},
|
||||||
|
dataType:'json',
|
||||||
|
success:function(returnData){
|
||||||
|
if(returnData.result == "success"){
|
||||||
|
alert("수정 되었습니다.");
|
||||||
|
location.reload(true);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error:function(request , status, error){
|
||||||
|
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<title>신청관리</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="popupForm" name="popupForm" method="post">
|
||||||
|
<input type="hidden" name="stngYr" id="stngYr" value=""/>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<form id="editForm" name="editForm" method="post">
|
||||||
|
<input type="hidden" name="mode" value=""/>
|
||||||
|
<input type="hidden" name="adrSeq" value=""/>
|
||||||
|
<input type="hidden" name="edtTy" value=""/>
|
||||||
|
<input type="hidden" name="edtSn" value=""/>
|
||||||
|
<input type="hidden" name="rejectCn" value=""/>
|
||||||
|
</form>
|
||||||
|
<form:form id="listForm" name="listForm" method="post" onsubmit="return false;">
|
||||||
|
<input type="hidden" name="pageIndex" value="<c:out value='${vELctrDetailVO.pageIndex}' default='1' />"/>
|
||||||
|
<input type="hidden" name="searchSortCnd" value="<c:out value="${vELctrDetailVO.searchSortCnd}" />" />
|
||||||
|
<input type="hidden" name="searchSortOrd" value="<c:out value="${vELctrDetailVO.searchSortOrd}" />" />
|
||||||
|
<input type="hidden" name="instrDiv" value="10"/>
|
||||||
|
<input type="hidden" name="yr" id="yr" value=""/>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="cont_wrap">
|
||||||
|
<div class="box">
|
||||||
|
|
||||||
|
<!-- cont_tit -->
|
||||||
|
<div class="cont_tit">
|
||||||
|
<h2>기본정보설정</h2>
|
||||||
|
<ul class="cont_nav">
|
||||||
|
<li class="home"><a href="/"><i></i></a></li>
|
||||||
|
<li>
|
||||||
|
<p>청소년 찾아가는 저작권 교육</p>
|
||||||
|
</li>
|
||||||
|
<li><span class="cur_nav">기본정보설정</span></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<!-- //cont_tit -->
|
||||||
|
|
||||||
|
<div class="cont">
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
<div class="btn_wrap btn_layout01">
|
||||||
|
<div class="btn_left">!-- 참고용 --</div>
|
||||||
|
<div class="btn_center"> 삭제 대상 //${selectBasicInfo}//</div>
|
||||||
|
<div class="btn_right" style="width: 100%">
|
||||||
|
<button class="btn_type06" onclick="fncDdlnState(); return false;" >신청상태변경</button>
|
||||||
|
|
||||||
|
<button class="btn_type06" onclick="fncAplctPrd(); return false;" >강의가능기간변경</button>
|
||||||
|
<button class="btn_type06" onclick="fncLctrPsblTm(); return false;" >강의가능시간변경</button>
|
||||||
|
<button class="btn_type06" onclick="fncRndsStng(); return false;" >회차관리</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- cont_tit -->
|
||||||
|
<div class="cont_tit">
|
||||||
|
<h2>교육신청등록문구</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="tb_type02">
|
||||||
|
<table>
|
||||||
|
<colgroup>
|
||||||
|
<col style="width: 220px;height:100px;">
|
||||||
|
<col style="width: auto;height:100px;">
|
||||||
|
</colgroup>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"><p>샘플 코드</p> </th>
|
||||||
|
<td>
|
||||||
|
<c:out value='<div class="tit_box"><i class="tit_box_icon1"></i><div><p>찾아가는 저작권 교육</p><span>‘찾아가는 저작권 교육’은 저작권 교육이 필요한 <span>전국 초ㆍ중ㆍ고등학교, 청소년ㆍ아동복지ㆍ노인ㆍ장애인 기관 및 단체 등</span>에 직접 방문하여무료로 강의를 지원하는 맞춤형 교육 서비스입니다.<p style="font-weight:400;color:red;font-size:17px;padding-top:8px; padding-bottom: 0;">담당자 연락처) 055-792-0224</p></span></div></div>' escapeXml="true" />
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">
|
||||||
|
<p>사용중인 코드</p>
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<textarea id="cn" rows="5">
|
||||||
|
<c:out value='${selectBasicTRInfo.cn}' escapeXml="true" />
|
||||||
|
</textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<!-- //list -->
|
||||||
|
|
||||||
|
<div class="btn_wrap btn_layout01">
|
||||||
|
<div class="btn_left">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="btn_center">
|
||||||
|
<button type="button" class="btn_type08" onclick="fncUpdate();return false;">내용 수정</button>
|
||||||
|
</div>
|
||||||
|
<div class="btn_right">
|
||||||
|
<button type="button" class="btn_type03" onclick="fncPreviewEmail();return false;">미리보기</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- //cont_tit -->
|
||||||
|
<!-- list_top -->
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- //cont -->
|
||||||
|
|
||||||
|
</form:form>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -0,0 +1,208 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<%@ page language="java" contentType="text/html; charset=utf-8"
|
||||||
|
pageEncoding="utf-8"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||||
|
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||||
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||||
|
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
||||||
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||||
|
<%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
||||||
|
<%@ taglib prefix="un" uri="http://jakarta.apache.org/taglibs/unstandard-1.0" %>
|
||||||
|
<un:useConstants var="VeConstants" className="kcc.ve.cmm.VeConstants" />
|
||||||
|
|
||||||
|
<% pageContext.setAttribute("replaceChar", "\n"); %>
|
||||||
|
|
||||||
|
<%
|
||||||
|
/**
|
||||||
|
* @Class Name : eduAplctRegPreviewDetail.jsp
|
||||||
|
* @Description : 메일 미리보기
|
||||||
|
* @Modification Information
|
||||||
|
* @
|
||||||
|
* @ 수정일 수정자 수정내용
|
||||||
|
* @ ------- -------- ---------------------------
|
||||||
|
* @ 2022.04.05 안주영 최초 생성
|
||||||
|
* @author 안주영
|
||||||
|
* @since 2022.04.05
|
||||||
|
* @version 1.0
|
||||||
|
* @see
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
%>
|
||||||
|
<html lang="ko">
|
||||||
|
<head>
|
||||||
|
<title>청소년 메일본문 상세</title>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/offedu/visitEdu/usr/publish/css/reset.css">
|
||||||
|
<link rel="stylesheet" href="/offedu/visitEdu/usr/publish/css/font.css">
|
||||||
|
<link rel="stylesheet" href="/offedu/visitEdu/usr/datapicker/default.css">
|
||||||
|
<link rel="stylesheet" href="/offedu/visitEdu/usr/publish/css/common.css">
|
||||||
|
<link rel="stylesheet" href="/offedu/visitEdu/usr/publish/css/content.css">
|
||||||
|
<link rel="stylesheet" href="/offedu/visitEdu/usr/publish/css/popup.css">
|
||||||
|
<link rel="stylesheet" href="/offedu/visitEdu/usr/publish/datepicker/classic.css">
|
||||||
|
<link rel="stylesheet" href="/offedu/visitEdu/usr/publish/datepicker/classic.date.css">
|
||||||
|
<link rel="stylesheet" href="/offedu/visitEdu/usr/publish/css/swiper.min.css">
|
||||||
|
<link rel="stylesheet" href="/offedu/visitEdu/usr/publish/css/main.css">
|
||||||
|
|
||||||
|
<!-- script -->
|
||||||
|
<script src="/offedu/visitEdu/usr/publish/script/jquery-3.5.0.js"></script>
|
||||||
|
<script src="/offedu/visitEdu/usr/publish/script/common.js"></script>
|
||||||
|
<script src="/offedu/visitEdu/usr/publish/script/popup.js"></script>
|
||||||
|
|
||||||
|
<script src="/offedu/visitEdu/usr/publish/script/postcode.js"></script>
|
||||||
|
<script src="/offedu/visitEdu/usr/publish/script/visitEduCom.js"></script>
|
||||||
|
<script src="/offedu/visitEdu/usr/publish/script/visitEduConstants.js"></script>
|
||||||
|
<script src="/offedu/visitEdu/usr/publish/script/content.js"></script>
|
||||||
|
<script src="/offedu/js/antdatepicker/moment.min.js"></script>
|
||||||
|
<script src="/offedu/js/year-select.js"></script>
|
||||||
|
<script src="/offedu/visitEdu/usr/publish/script/jquery.bxslider.js"></script>
|
||||||
|
<script src="/offedu/visitEdu/usr/publish/script/swiper.min.js"></script>
|
||||||
|
<script src="/offedu/visitEdu/usr/publish/script/main.js"></script>
|
||||||
|
<script type="module" src="/offedu/visitEdu/usr/datapicker/duet.esm.js"></script>
|
||||||
|
<script nomodule src="/offedu/visitEdu/usr/datapicker/duet.js"></script>
|
||||||
|
<script src="/offedu/visitEdu/usr/datapicker/duet.system.js"></script>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
function fncUpdate(){
|
||||||
|
|
||||||
|
if ($("#emailCn").val() == null || $("#emailCn").val() == ''){
|
||||||
|
alert("메일 본문 내용은 필수값입니다.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(confirm("메일 본문을 수정하시겠습니까?")){
|
||||||
|
$.ajax({
|
||||||
|
type:"POST",
|
||||||
|
url:"${pageContext.request.contextPath}/kccadr/oprtn/tngrVisitEdu/eduAplctMailMdfyAjax.do",
|
||||||
|
data: {
|
||||||
|
"cntCn" : $("#emailCn").val()
|
||||||
|
},
|
||||||
|
dataType:'json',
|
||||||
|
success:function(returnData){
|
||||||
|
if(returnData.result == "success"){
|
||||||
|
alert("수정 되었습니다.");
|
||||||
|
location.reload(true);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error:function(request , status, error){
|
||||||
|
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//이메일 발송
|
||||||
|
function fncSndEmail(){
|
||||||
|
|
||||||
|
var p_smsEmail = $("#emailCn").val();
|
||||||
|
|
||||||
|
if (p_smsEmail==""){
|
||||||
|
alert("이메일 발송 내용은 필수값입니다.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if ($("#emailAddr").val() == null || $("#emailAddr").val() == ''){
|
||||||
|
alert("이메일 수신 주소는 필수값입니다.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
//alert($("#emailType").val());
|
||||||
|
//return false;
|
||||||
|
|
||||||
|
fncContent(
|
||||||
|
"${pageContext.request.contextPath}/kccadr/oprtn/pblc/emailSndAjax.do",
|
||||||
|
"20",
|
||||||
|
p_smsEmail,
|
||||||
|
//"C"
|
||||||
|
$("#emailType").val()
|
||||||
|
, $("#clphone1").val()
|
||||||
|
, $("#clphone2").val()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
//fncPreviewEmail
|
||||||
|
function fncPreviewEmail(){
|
||||||
|
//document.listForm.authorCode.value = vAuthorCode;
|
||||||
|
document.listForm.action = "<c:url value='/oprtn/tngrVisitEdu/popup/eduAplctMailPreviewDetail.do'/>";
|
||||||
|
window.open("#", "_aplctPreviewPop", "scrollbars = no, top=100px, left=100px, height=800px, width=1000px");
|
||||||
|
document.listForm.target = "_aplctPreviewPop";
|
||||||
|
document.listForm.submit();
|
||||||
|
}
|
||||||
|
|
||||||
|
//발송
|
||||||
|
function fncContent(p_url, p_cd, p_cn, p_flag
|
||||||
|
, p_clphone1
|
||||||
|
, p_clphone2
|
||||||
|
){
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
// enctype: 'multipart/form-data',
|
||||||
|
url:p_url,
|
||||||
|
//data: data,
|
||||||
|
data:{
|
||||||
|
"sndCd": p_cd,
|
||||||
|
"sndCn": p_cn,
|
||||||
|
"eduAplctOrd": 'test',
|
||||||
|
"email": $("#emailAddr").val(),
|
||||||
|
"sndFlag": p_flag,
|
||||||
|
"clphone1": p_clphone1
|
||||||
|
, "clphone2": p_clphone2
|
||||||
|
},
|
||||||
|
dataType:'json',
|
||||||
|
/*
|
||||||
|
async: false,
|
||||||
|
processData: false,
|
||||||
|
contentType: false,
|
||||||
|
cache: false,
|
||||||
|
*/
|
||||||
|
|
||||||
|
success:function(returnData){
|
||||||
|
if(returnData.result == "success"){
|
||||||
|
alert("정상적으로 발송되었습니다.");
|
||||||
|
|
||||||
|
}else{
|
||||||
|
alert("발송 중 오류가 발생하였습니다.");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error:function(request , status, error){
|
||||||
|
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<!-- cont -->
|
||||||
|
<div class="cont_wrap" id="sub">
|
||||||
|
<div class="cont_tit">
|
||||||
|
<h2>사용본문 미리보기(저장된 내용만 반영됩니다.)</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<c:out value='${selectBasicTRInfo.cn}' escapeXml="false" />
|
||||||
|
|
||||||
|
|
||||||
|
<div class="btn_wrap btn_layout01">
|
||||||
|
<div class="btn_left">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="btn_center">
|
||||||
|
<button type="button" class="btn_type08" onclick="self.close();return false;">닫기</button>
|
||||||
|
</div>
|
||||||
|
<div class="btn_right">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- //cont -->
|
||||||
|
</body>
|
||||||
|
<form:form id="listForm" name="listForm" method="post" onsubmit="return false;" action="">
|
||||||
|
<input type="hidden" name="yr" id="yr" value=""/>
|
||||||
|
</form:form>
|
||||||
|
</html>
|
||||||
@ -0,0 +1,418 @@
|
|||||||
|
<%@ page contentType="text/html; charset=utf-8"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||||
|
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||||
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||||
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||||
|
<%@ taglib prefix="kc" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="${pageContext.request.contextPath}/kccadrPb/usr/script/popup.js"></script>
|
||||||
|
|
||||||
|
<style type="text/css">
|
||||||
|
.fc-day-sat { color:#0000FF; } /* 토요일 */
|
||||||
|
.fc-day-sun { color:#FF0000; } /* 일요일 */
|
||||||
|
</style>
|
||||||
|
<link type="text/css" rel="stylesheet" href="<c:url value='/js/fullcalendar/5.9.0/main.css' />" />
|
||||||
|
<script type="text/javascript" src="<c:url value='/js/fullcalendar/5.9.0/main.js'/>"></script>
|
||||||
|
<script type="text/javascript" src="<c:url value='/js/fullcalendar/5.9.0/locales-all.js'/>"></script>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- css -->
|
||||||
|
<link rel="stylesheet" href="/offedu/visitEdu/adm/publish/css/reset.css">
|
||||||
|
<link rel="stylesheet" href="/offedu/visitEdu/adm/publish/css/font.css">
|
||||||
|
<link rel="stylesheet" href="/offedu/visitEdu/adm/publish/css/common.css">
|
||||||
|
<link rel="stylesheet" href="/offedu/visitEdu/adm/publish/css/content.css">
|
||||||
|
<link rel="stylesheet" href="/offedu/visitEdu/adm/publish/css/popup.css">
|
||||||
|
|
||||||
|
<!-- script -->
|
||||||
|
<script src="/offedu/visitEdu/adm/publish/script/jquery-3.5.0.js"></script>
|
||||||
|
<script src="/offedu/visitEdu/adm/publish/script/content.js"></script>
|
||||||
|
<script src="/offedu/kccadrPb/adm/script/postcode.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="/offedu/js/ncms_common.js"></script>
|
||||||
|
<script src="/offedu/js/util.js"></script>
|
||||||
|
<script src="/offedu/js/kccadr/kccadrCom.js"></script>
|
||||||
|
<script src="/offedu/js/kccadr/kccadrConstants.js"></script>
|
||||||
|
<script src="/offedu/js/antdatepicker/moment.min.js"></script>
|
||||||
|
<script type="text/javascript" src="/offedu/js/ve/veConstants.js"></script>
|
||||||
|
|
||||||
|
<script type="text/javaScript" language="javascript">
|
||||||
|
|
||||||
|
function fncGoScholList(){
|
||||||
|
linkPage(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
function linkPage(pageNo){
|
||||||
|
var data = {
|
||||||
|
pageIndex : pageNo,
|
||||||
|
searchKeyword : $("#searchKeyword").val(),
|
||||||
|
searchCondition : $("#searchCondition").val(),
|
||||||
|
pageUnit : 5,
|
||||||
|
formId : $("#formId").val(),
|
||||||
|
}
|
||||||
|
fncScholList(data);
|
||||||
|
}
|
||||||
|
|
||||||
|
function fncScholList(paramObj) {
|
||||||
|
if(paramObj == undefined || paramObj == ''){
|
||||||
|
paramObj = {
|
||||||
|
pageIndex : 1,
|
||||||
|
searchKeyword : "",
|
||||||
|
searchCondition : "",
|
||||||
|
pageUnit : 5,
|
||||||
|
formId : $("#formId").val(),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
// 학교 리스트 팝업 호출
|
||||||
|
commonPopLayeropen(
|
||||||
|
"${pageContext.request.contextPath}/web/ve/aplct/cpyrgExprnClsrm/scholInfo/popup/scholPopList.do"
|
||||||
|
, 500
|
||||||
|
, 600
|
||||||
|
, paramObj
|
||||||
|
, "N"
|
||||||
|
, "scholPop"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function fncScholDataSlct_back(p_code, p_nm){
|
||||||
|
var fNm = "#"+$("#formId").val();
|
||||||
|
$(fNm + " #stndrdScholCd").val(p_code);
|
||||||
|
$(fNm + " #scholInsttNm").val(p_nm);
|
||||||
|
|
||||||
|
$(".btn_popup_close").click();
|
||||||
|
}
|
||||||
|
|
||||||
|
function fncScholDataSlct(thisObj){
|
||||||
|
var inObj = $(thisObj).closest("td").find("input[type=hidden]");
|
||||||
|
var rsObj = new Object();
|
||||||
|
$.each(inObj, function(idx, value){
|
||||||
|
console.log(value.value);
|
||||||
|
rsObj[value.name] = value.value;
|
||||||
|
});
|
||||||
|
callBackSchPop(rsObj);
|
||||||
|
$(".btn_popup_close").click();
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document).ready(function(){
|
||||||
|
//boardCaptionDetailToggle4();
|
||||||
|
|
||||||
|
// 레이어팝업 포커싱 이동 수정
|
||||||
|
$(".tooltip-close").click(function(){
|
||||||
|
var activeTarget = $('[data-tooltip-con="sub36_pop02"]');
|
||||||
|
activeTarget.hide();
|
||||||
|
$('[data-tooltip="sub01_pop02"]').focus();
|
||||||
|
});
|
||||||
|
|
||||||
|
//레이어팝업 초정 이동 시 필요한 data 값 추가
|
||||||
|
var btnLast = $('.popup_cont').find('.page').find('button:last-child');
|
||||||
|
btnLast.attr('data-focus-next','sub36_pop02');
|
||||||
|
btnLast.attr('data-focus','sub36_pop02_close');
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
var ex_s_todate;// = info.startStr;
|
||||||
|
var calendar;
|
||||||
|
|
||||||
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
var calendarEl = document.getElementById('schduleManager');
|
||||||
|
calendar = new FullCalendar.Calendar(calendarEl, {
|
||||||
|
locale: 'ko',
|
||||||
|
timezone : "local",
|
||||||
|
weekends : true,
|
||||||
|
editable : false,
|
||||||
|
firstDay : 0, //월요일이 먼저 오게 하려면 1
|
||||||
|
dayMaxEvents: true,
|
||||||
|
navLinks: true,
|
||||||
|
|
||||||
|
navLinkDayClick: function(date, jsEvent) { //일자클릭
|
||||||
|
console.log('day', date.toISOString());
|
||||||
|
console.log('coords', jsEvent.pageX, jsEvent.pageY);
|
||||||
|
},
|
||||||
|
|
||||||
|
customButtons: {
|
||||||
|
myCustomButton: {
|
||||||
|
text: '오늘',
|
||||||
|
click: function(event, elm) {
|
||||||
|
alert('clicked the custom button!');
|
||||||
|
}
|
||||||
|
},viewWeekends : {
|
||||||
|
text : '주말',
|
||||||
|
click : function (event, elm) {
|
||||||
|
calendar.setOption("weekends" , calendar.getOption("weekends") ? false : true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},buttonText: {
|
||||||
|
listMonth: '일정'
|
||||||
|
},
|
||||||
|
headerToolbar: {
|
||||||
|
left: 'prevYear nextYear today',
|
||||||
|
center: 'prev title next',
|
||||||
|
right: ' '
|
||||||
|
//right: 'dayGridMonth,listMonth'
|
||||||
|
},
|
||||||
|
eventSources: [
|
||||||
|
{
|
||||||
|
events: function(info, successCallback, failureCallback) {
|
||||||
|
console.log(info);
|
||||||
|
|
||||||
|
//alert(info.start);
|
||||||
|
//alert(info.startStr);
|
||||||
|
//alert(JSON.stringify(info));
|
||||||
|
//alert(JSON.stringify(info.startStr));
|
||||||
|
|
||||||
|
|
||||||
|
var s_todate = info.startStr;
|
||||||
|
ex_s_todate = info.startStr;
|
||||||
|
|
||||||
|
var searchDt = $("#searchCalendarCode").val();
|
||||||
|
$.ajax({
|
||||||
|
url: '<c:url value="/kccadr/oprtn/tngrVisitEdu/popup/advLctrPrdCalendarPopupAjax.do"/>',
|
||||||
|
type: 'POST',
|
||||||
|
dataType: 'json',
|
||||||
|
data: {
|
||||||
|
searchStartDt : "",
|
||||||
|
searchStartDt : s_todate,
|
||||||
|
todate : info.start,
|
||||||
|
dpStrtDt : s_todate,
|
||||||
|
dpDdlnDt : info.start,
|
||||||
|
rndsOrd : '${rndsOrd}',
|
||||||
|
//todate : info.startStr,
|
||||||
|
//todate : s_todate,
|
||||||
|
//todate : "",
|
||||||
|
searchYearMonth : function(){
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
success: function(data) {
|
||||||
|
successCallback(data);
|
||||||
|
|
||||||
|
// 날짜 계산
|
||||||
|
//setCalDate(data, info.startStr);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
eventContent: function(arg, createElement) {
|
||||||
|
event.preventDefault();
|
||||||
|
console.log(arg.event._def.url);
|
||||||
|
arg.event._def.url = "#none";
|
||||||
|
},
|
||||||
|
eventClick: function(info) {
|
||||||
|
info.jsEvent.preventDefault();
|
||||||
|
/*
|
||||||
|
alert(info.event._def.extendedProps.lctrPsblPrdOrd);
|
||||||
|
alert(info.event._def.extendedProps.start);
|
||||||
|
alert(info.event._def.extendedProps.end);
|
||||||
|
alert(info.event._def.extendedProps.rndsNm);
|
||||||
|
alert(JSON.stringify(info.event._def.extendedProps));
|
||||||
|
*/
|
||||||
|
schDetailPop(
|
||||||
|
info.event._def.extendedProps.lctrPsblPrdOrd
|
||||||
|
, info.event._def.extendedProps.rndsOrd
|
||||||
|
, info.event._def.extendedProps.rndsNm
|
||||||
|
);
|
||||||
|
return false;
|
||||||
|
},
|
||||||
|
});
|
||||||
|
calendar.render();
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
function schDetailPop(
|
||||||
|
p_lctrPsblPrdOrd
|
||||||
|
, p_rndsOrd
|
||||||
|
, p_lctrPsblStrtDt
|
||||||
|
) {
|
||||||
|
//alert(p_lctrPsblPrdOrd);
|
||||||
|
fncChangePsblDay(p_lctrPsblPrdOrd, p_rndsOrd, p_lctrPsblStrtDt);
|
||||||
|
//calendar.fullCalendar('refetchEvents');
|
||||||
|
|
||||||
|
/*
|
||||||
|
window.open('', 'schDetailPop', "width=800, height=520, left=100, top=130","location = no","status= no","toolbars= no");
|
||||||
|
document.listForm.eduAplctOrd.value = schSeq ;
|
||||||
|
document.listForm.eduChasiOrd.value = schChasiSeq ;
|
||||||
|
|
||||||
|
document.listForm.method = "post";
|
||||||
|
document.listForm.action = "${pageContext.request.contextPath}/kccadr/oprtn/tngrVisitEdu/popup/SchduleManagerPopDetail.do";
|
||||||
|
document.listForm.target = "schDetailPop" ;
|
||||||
|
document.listForm.submit();
|
||||||
|
*/
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//회차의 강의가능기간관리 삭제
|
||||||
|
function fncChangePsblDay(p_lctrPsblPrdOrd
|
||||||
|
, p_rndsOrd
|
||||||
|
, p_lctrPsblStrtDt){
|
||||||
|
//if(p_psblTmQntty != "") {
|
||||||
|
if(true) {
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type:"POST",
|
||||||
|
url:"${pageContext.request.contextPath}/kccadr/oprtn/tngrVisitEdu/popup/advLctrPrdChangeAjax.do",
|
||||||
|
data:{
|
||||||
|
"lctrPsblPrdOrd" : p_lctrPsblPrdOrd,
|
||||||
|
"rndsOrd" : p_rndsOrd,
|
||||||
|
"lctrPsblStrtDt" : p_lctrPsblStrtDt,
|
||||||
|
},
|
||||||
|
dataType:'json',
|
||||||
|
success:function(returnData){
|
||||||
|
|
||||||
|
if(returnData.result == "success"){
|
||||||
|
alert("변경 처리 되었습니다.");
|
||||||
|
//fncGoList();
|
||||||
|
//$('#schduleManager').fullCalendar('gotoDate', new Date('2023-10-01'));
|
||||||
|
window.location.reload(false);
|
||||||
|
//calendar.render();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}else{
|
||||||
|
alert("변경 중 오류가 발생하였습니다.");
|
||||||
|
fncGoList();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error:function(request , status, error){
|
||||||
|
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
alert("교육가능시수를 입력해주세요.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function excelDownLoad(){
|
||||||
|
var listForm = document.listForm ;
|
||||||
|
listForm.searchStartDt.value = ex_s_todate ;
|
||||||
|
listForm.action = "<c:url value='/kccadr/oprtn/tngrVisitEdu/tngrSchduleManagerExcelDownLoad.do'/>";
|
||||||
|
listForm.submit();
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
*##############################################################################
|
||||||
|
* START
|
||||||
|
*##############################################################################
|
||||||
|
*/
|
||||||
|
|
||||||
|
// 날짜 계산
|
||||||
|
function setCalDate(data, startStr) {
|
||||||
|
// 현재월 구하기
|
||||||
|
startStr = startStr.substr(0, 10);
|
||||||
|
startStr = replaceAll(startStr, "-", "");
|
||||||
|
startStr = replaceAll(startStr, ".", "");
|
||||||
|
startStr = replaceAll(startStr, "/", "");
|
||||||
|
|
||||||
|
var todayYear = startStr.substring(0,4);
|
||||||
|
var todayMonth = 0;
|
||||||
|
var todayDay = startStr.substring(6,8);
|
||||||
|
|
||||||
|
if (todayDay == "01") {
|
||||||
|
todayMonth = startStr.substring(4,6);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (startStr.substring(4,6) == "12") {
|
||||||
|
todayMonth = "01";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
todayMonth = parseInt(startStr.substring(4,6), 10) + 1;
|
||||||
|
if (todayMonth < 10) {
|
||||||
|
todayMonth = "0" + todayMonth;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// End
|
||||||
|
//alert(todayMonth);
|
||||||
|
|
||||||
|
var monthCnt = 0;
|
||||||
|
var week1Cnt = 0, week2Cnt = 0, week3Cnt = 0, week4Cnt = 0, week5Cnt = 0, week6Cnt = 0;
|
||||||
|
|
||||||
|
var sHtml = "";
|
||||||
|
for (var j = 0; j < data.length; j++) {
|
||||||
|
var schStartDate = data[j].start.substr(0, 10);
|
||||||
|
schStartDate = replaceAll(schStartDate, "-", "");
|
||||||
|
schStartDate = replaceAll(schStartDate, ".", "");
|
||||||
|
schStartDate = replaceAll(schStartDate, "/", "");
|
||||||
|
|
||||||
|
var thisYear = schStartDate.substring(0,4);
|
||||||
|
var thisMonth = schStartDate.substring(4,6);
|
||||||
|
var thisDay = schStartDate.substring(6,8);
|
||||||
|
var thisWeek = getSecofWeek(schStartDate);
|
||||||
|
|
||||||
|
// 해당월 데이터만 처리
|
||||||
|
if (todayMonth == thisMonth) {
|
||||||
|
monthCnt++;
|
||||||
|
|
||||||
|
if (thisWeek == 1) {
|
||||||
|
week1Cnt++;
|
||||||
|
}
|
||||||
|
else if (thisWeek == 2) {
|
||||||
|
week2Cnt++;
|
||||||
|
}
|
||||||
|
else if (thisWeek == 3) {
|
||||||
|
week3Cnt++;
|
||||||
|
}
|
||||||
|
else if (thisWeek == 4) {
|
||||||
|
week4Cnt++;
|
||||||
|
}
|
||||||
|
else if (thisWeek == 5) {
|
||||||
|
week5Cnt++;
|
||||||
|
}
|
||||||
|
else if (thisWeek == 6) {
|
||||||
|
week6Cnt++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sHtml += "전체 : " + monthCnt + "건";
|
||||||
|
sHtml += " (1주차 : " + week1Cnt + "건";
|
||||||
|
sHtml += ", 2주차 : " + week2Cnt + "건";
|
||||||
|
sHtml += ", 3주차 : " + week3Cnt + "건";
|
||||||
|
sHtml += ", 4주차 : " + week4Cnt + "건";
|
||||||
|
sHtml += ", 5주차 : " + week5Cnt + "건";
|
||||||
|
sHtml += ", 6주차 : " + week6Cnt + "건)";
|
||||||
|
|
||||||
|
sHtml += ' <button type="button" class="btn_down_excel" onclick="excelDownLoad();">일정현황 엑셀 다운로드</button>';
|
||||||
|
|
||||||
|
|
||||||
|
$("#weekCnt").html(sHtml);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 해당일 주차 계산
|
||||||
|
function getSecofWeek(date) {
|
||||||
|
var d = new Date( date.substring(0,4), parseInt(date.substring(4,6))-1, date.substring(6,8) );
|
||||||
|
var fd = new Date( date.substring(0,4), parseInt(date.substring(4,6))-1, 1 );
|
||||||
|
|
||||||
|
return Math.ceil((parseInt(date.substring(6,8))+fd.getDay())/7);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ReplaceAll
|
||||||
|
function replaceAll(str, searchStr, replaceStr) {
|
||||||
|
return str.split(searchStr).join(replaceStr);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
<!-- 일정 상세 -->
|
||||||
|
<form:form commandName="scholInfoVO" id="popList" name="popList" method="post" onsubmit="return false;">
|
||||||
|
<input type="hidden" name="pageIndex" value="<c:out value='${scholInfoVO.pageIndex}' default='1' />"/>
|
||||||
|
<input type="hidden" name="searchSortCnd" value="<c:out value="${scholInfoVO.searchSortCnd}" />" />
|
||||||
|
<input type="hidden" name="searchSortOrd" value="<c:out value="${scholInfoVO.searchSortOrd}" />" />
|
||||||
|
<input type="hidden" name="formId" id="formId" value="<c:out value="${scholInfoVO.formId}" />" />
|
||||||
|
|
||||||
|
<div class="popup_wrap popType01" tabindex="0" data-tooltip-con="sub36_pop02" data-focus="sub36_pop02" data-focus-prev="sub36_pop02_close">
|
||||||
|
<div class="popup_tit">
|
||||||
|
<p>학교명 검색</p> <button class="btn_popup_close tooltip-close" data-focus="sub36_pop02_close" title="팝업 닫기"><i></i></button>
|
||||||
|
</div>
|
||||||
|
<div class="popup_cont">
|
||||||
|
<div id="schduleManager">askfjaskdjfaskdjfasdk
|
||||||
|
asdfasfsad
|
||||||
|
asdfsadf
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form:form>
|
||||||
@ -783,6 +783,28 @@ var psblFlag = "Y";//학생 신청가능기간여부 체크
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function fncCalView(paramObj) {
|
||||||
|
if(paramObj == undefined || paramObj == ''){
|
||||||
|
paramObj = {
|
||||||
|
pageIndex : 1,
|
||||||
|
searchKeyword : "",
|
||||||
|
searchCondition : "",
|
||||||
|
pageUnit : 5,
|
||||||
|
formId : "createForm"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
commonPopLayeropen(
|
||||||
|
"${pageContext.request.contextPath}/web/ve/aplct/cpyrgExprnClsrm/scholInfo/popup/calendarPopList.do"
|
||||||
|
//"${pageContext.request.contextPath}/kccadr/oprtn/tngrVisitEdu/popup/advLctrPrdCalendarPopup.do"
|
||||||
|
//"${pageContext.request.contextPath}/web/ve/tngrVisitEdu/popup/advLctrPrdCalendarPopup.do"
|
||||||
|
|
||||||
|
, 900
|
||||||
|
, 900
|
||||||
|
, paramObj
|
||||||
|
, "Y"
|
||||||
|
, "calendarPop"
|
||||||
|
);
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<div class="mask2" onclick="timeLayerUtil()"></div>
|
<div class="mask2" onclick="timeLayerUtil()"></div>
|
||||||
<div class="cont_wrap" id="sub">
|
<div class="cont_wrap" id="sub">
|
||||||
@ -809,14 +831,27 @@ var psblFlag = "Y";//학생 신청가능기간여부 체크
|
|||||||
<button type="button" title="새창열림"><img src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/twitter_icon.png" alt="트위터 바로가기"></button>
|
<button type="button" title="새창열림"><img src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/twitter_icon.png" alt="트위터 바로가기"></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tit_box">
|
|
||||||
<i class="tit_box_icon1"></i>
|
<c:choose>
|
||||||
<div>
|
<c:when test="${empty selectBasicTRInfo}">
|
||||||
<p>찾아가는 저작권 교육</p>
|
<div class="tit_box">
|
||||||
<span>‘찾아가는 저작권 교육’은 저작권 교육이 필요한 <span>전국 초ㆍ중ㆍ고등학교, 청소년ㆍ아동복지ㆍ노인ㆍ장애인 기관 및 단체 등</span>에 직접 방문하여
|
<i class="tit_box_icon1"></i>
|
||||||
무료로 강의를 지원하는 맞춤형 교육 서비스입니다.<p style="font-weight:400;color:red;font-size:17px;padding-top:8px; padding-bottom: 0;">담당자 연락처) 055-792-0224</p></span>
|
<div>
|
||||||
</div>
|
<p>찾아가는 저작권 교육</p>
|
||||||
</div>
|
<span>‘찾아가는 저작권 교육’은 저작권 교육이 필요한 <span>전국 초ㆍ중ㆍ고등학교, 청소년ㆍ아동복지ㆍ노인ㆍ장애인 기관 및 단체 등</span>에 직접 방문하여
|
||||||
|
무료로 강의를 지원하는 맞춤형 교육 서비스입니다.<p style="font-weight:400;color:red;font-size:17px;padding-top:8px; padding-bottom: 0;">담당자 연락처) 055-792-0224</p></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<c:out value='${selectBasicTRInfo.cn}' escapeXml="false" />
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
<c:if test=""></c:if>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="tb_tit01">
|
<div class="tb_tit01">
|
||||||
<div class="tb_tit01_left">
|
<div class="tb_tit01_left">
|
||||||
@ -1010,6 +1045,7 @@ var psblFlag = "Y";//학생 신청가능기간여부 체크
|
|||||||
<span class="cf_text2" style="display:block; padding-left:0; padding-top: 6px;">※ 교육추가 버튼을누러 대상별 1줄씩 작성(1줄 = 강사 1인) 바랍니다. (예시 : 3개 학급 신청 시 1학급 당 1줄씩 총 3줄을 작성)</span>
|
<span class="cf_text2" style="display:block; padding-left:0; padding-top: 6px;">※ 교육추가 버튼을누러 대상별 1줄씩 작성(1줄 = 강사 1인) 바랍니다. (예시 : 3개 학급 신청 시 1학급 당 1줄씩 총 3줄을 작성)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn_wrap">
|
<div class="btn_wrap">
|
||||||
|
<!-- <button type="button" class="btnType01" data-tooltip="sub01_pop02" onclick="fncCalView();" title="팝업 열림">교육일정달력보기</button> -->
|
||||||
<button type="button" class="btnType05" title="교육차시 입력테이블 추가생성" onclick="addEduClassCopyTngr('addClassRow')">교육추가</button>
|
<button type="button" class="btnType05" title="교육차시 입력테이블 추가생성" onclick="addEduClassCopyTngr('addClassRow')">교육추가</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user