Merge branch 'hylee'
This commit is contained in:
commit
90f34a6ac8
@ -64,7 +64,7 @@ public class ExmpAnswerManagerController {
|
||||
exmpManageVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
// 답변서 코드
|
||||
exmpManageVO.setCodeId("CC003");
|
||||
exmpManageVO.setExmpCd("04");
|
||||
|
||||
paginationInfo.setTotalRecordCount(exmpAppManageService.selectExmpAppManagerCount(exmpManageVO));
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
|
||||
@ -16,8 +16,6 @@ public interface ExmpAppManageService {
|
||||
|
||||
List<ExmpManageVO> selectExmpAppDetailList(ExmpManageVO exmpManageVO) throws Exception;
|
||||
|
||||
Map<String, Object> selectExmpAnswerManagerInfo(ExmpManageVO exmpManageVO);
|
||||
|
||||
RestResponse insertExmpAppManager(ExmpManageVO exmpManageVO) throws Exception;
|
||||
|
||||
void updateExmpManager(ExmpManageVO exmpManageVO);
|
||||
|
||||
@ -36,10 +36,6 @@ public class ExmpAppManageDAO extends EgovAbstractDAO {
|
||||
return (List<ExmpManageVO>)list("ExmpAppManageDAO.selectExmpDetailList", exmpManageVO);
|
||||
}
|
||||
|
||||
public String selectOneAdjustExmpCcTy(ExmpManageVO exmpManageVO) {
|
||||
return (String) select("ExmpAppManageDAO.selectOneAdjustExmpCcTy", exmpManageVO);
|
||||
}
|
||||
|
||||
public void insertExmpAppManager(ExmpManageVO exmpManageVO) {
|
||||
insert("ExmpAppManageDAO.insertExmpManager", exmpManageVO);
|
||||
|
||||
|
||||
@ -59,7 +59,7 @@ public class ExmpAppManageServiceImpl implements ExmpAppManageService {
|
||||
}
|
||||
|
||||
map.put("mgrInfo", mgrInfo);
|
||||
map.put("list", exmpAppManageDAO.selectExmpAppDetailList(exmpManageVO));
|
||||
// map.put("list", exmpAppManageDAO.selectExmpAppDetailList(exmpManageVO));
|
||||
|
||||
return map;
|
||||
}
|
||||
@ -69,40 +69,20 @@ public class ExmpAppManageServiceImpl implements ExmpAppManageService {
|
||||
return exmpAppManageDAO.selectExmpAppDetailList(exmpManageVO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> selectExmpAnswerManagerInfo(ExmpManageVO exmpManageVO) {
|
||||
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
|
||||
String ccTy = exmpAppManageDAO.selectOneAdjustExmpCcTy(exmpManageVO);
|
||||
|
||||
if(StringUtils.isEmpty(ccTy))
|
||||
{
|
||||
ccTy = "001";
|
||||
}else {
|
||||
int resutl = Integer.parseInt(ccTy)+1;
|
||||
ccTy = Integer.toString(resutl);
|
||||
}
|
||||
|
||||
map.put("ccTy", ccTy);
|
||||
|
||||
return map;
|
||||
}
|
||||
|
||||
@Override
|
||||
public RestResponse insertExmpAppManager(ExmpManageVO exmpManageVO) throws Exception {
|
||||
|
||||
try {
|
||||
exmpManageVO.setExmpMgrId(idgenExmpMrgService.getNextStringId());
|
||||
exmpAppManageDAO.insertExmpAppManager(exmpManageVO);
|
||||
for(ExmpManageVO model : exmpManageVO.getExmpList()){
|
||||
model.setExmpMgrId(exmpManageVO.getExmpMgrId());
|
||||
model.setExmpDtlId(idgenExmpDtlService.getNextStringId());
|
||||
model.setFrstRegisterId(exmpManageVO.getFrstRegisterId());
|
||||
model.setLastUpdusrId(exmpManageVO.getLastUpdusrId());
|
||||
model.setExmpCcTy(exmpManageVO.getExmpCcTy());
|
||||
exmpAppManageDAO.insertExmpDetailList(model);
|
||||
}
|
||||
// for(ExmpManageVO model : exmpManageVO.getExmpList()){
|
||||
// model.setExmpMgrId(exmpManageVO.getExmpMgrId());
|
||||
// model.setExmpDtlId(idgenExmpDtlService.getNextStringId());
|
||||
// model.setFrstRegisterId(exmpManageVO.getFrstRegisterId());
|
||||
// model.setLastUpdusrId(exmpManageVO.getLastUpdusrId());
|
||||
// model.setExmpCcTy(exmpManageVO.getExmpCcTy());
|
||||
// exmpAppManageDAO.insertExmpDetailList(model);
|
||||
// }
|
||||
return new RestResponse(HttpStatus.OK, "정상적으로 등록되었습니다.", LocalDateTime.now());
|
||||
} catch (Exception e) {
|
||||
return new RestResponse(HttpStatus.BAD_REQUEST, "오류가 발생하였습니다. 관리자에게 문의해 주세요", LocalDateTime.now());
|
||||
@ -112,13 +92,13 @@ public class ExmpAppManageServiceImpl implements ExmpAppManageService {
|
||||
|
||||
@Override
|
||||
public void updateExmpManager(ExmpManageVO exmpManageVO) {
|
||||
System.out.println(":::::::::::::::::");
|
||||
|
||||
exmpAppManageDAO.updateExmpManager(exmpManageVO);
|
||||
for(ExmpManageVO model : exmpManageVO.getExmpList()){
|
||||
model.setExmpMgrId(exmpManageVO.getExmpMgrId());
|
||||
model.setLastUpdusrId(exmpManageVO.getLastUpdusrId());
|
||||
exmpAppManageDAO.updateExmpAppDetails(model);
|
||||
}
|
||||
// for(ExmpManageVO model : exmpManageVO.getExmpList()){
|
||||
// model.setExmpMgrId(exmpManageVO.getExmpMgrId());
|
||||
// model.setLastUpdusrId(exmpManageVO.getLastUpdusrId());
|
||||
// exmpAppManageDAO.updateExmpAppDetails(model);
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -64,59 +64,59 @@ public class ExmpAppManagerController {
|
||||
* @author : 이호영
|
||||
* @date : 2022.10.11
|
||||
* @description : 예문관리 LIST
|
||||
* @param exmpAppManageVO
|
||||
* @param exmpManageVO
|
||||
* @param model
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/kccadr/adjPgrMgr/exmp/exmpAppManagerList.do")
|
||||
public String exmpAppManagerList(@ModelAttribute("exmpAppManageVO") ExmpManageVO exmpAppManageVO , ModelMap model) throws Exception {
|
||||
if(exmpAppManageVO.getPageUnit() != 10) {
|
||||
exmpAppManageVO.setPageUnit(exmpAppManageVO.getPageUnit());
|
||||
public String exmpAppManagerList(@ModelAttribute("exmpManageVO") ExmpManageVO exmpManageVO , ModelMap model) throws Exception {
|
||||
if(exmpManageVO.getPageUnit() != 10) {
|
||||
exmpManageVO.setPageUnit(exmpManageVO.getPageUnit());
|
||||
}
|
||||
|
||||
if("".equals(exmpAppManageVO.getSearchSortCnd())){ //최초조회시 최신것 조회List
|
||||
exmpAppManageVO.setSearchSortCnd("T1.Exmp_CC_TY");
|
||||
exmpAppManageVO.setSearchSortOrd("asc");
|
||||
if("".equals(exmpManageVO.getSearchSortCnd())){ //최초조회시 최신것 조회List
|
||||
exmpManageVO.setSearchSortCnd("T1.Exmp_CC_TY");
|
||||
exmpManageVO.setSearchSortOrd("asc");
|
||||
}
|
||||
|
||||
/** paging */
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(exmpAppManageVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(exmpAppManageVO.getPageUnit());
|
||||
paginationInfo.setPageSize(exmpAppManageVO.getPageSize());
|
||||
paginationInfo.setCurrentPageNo(exmpManageVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(exmpManageVO.getPageUnit());
|
||||
paginationInfo.setPageSize(exmpManageVO.getPageSize());
|
||||
|
||||
exmpAppManageVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
exmpAppManageVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
exmpAppManageVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
exmpManageVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
exmpManageVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
exmpManageVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
exmpAppManageVO.setCodeId("CC002");
|
||||
paginationInfo.setTotalRecordCount(exmpAppManageService.selectExmpAppManagerCount(exmpAppManageVO));
|
||||
exmpManageVO.setExmpCd("02");
|
||||
paginationInfo.setTotalRecordCount(exmpAppManageService.selectExmpAppManagerCount(exmpManageVO));
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
model.addAttribute("list", exmpAppManageService.selectExmpAppManagerList(exmpAppManageVO));
|
||||
model.addAttribute("list", exmpAppManageService.selectExmpAppManagerList(exmpManageVO));
|
||||
|
||||
return "kccadr/adjPgrMgr/exmp/app/exmpAppManagerList";
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value = "/kccadr/adjPgrMgr/exmp/exmpAppManagerCreate.do")
|
||||
public String exmpAppManagerCreate(ExmpManageVO exmpAppManageVO, ModelMap model) throws Exception {
|
||||
public String exmpAppManagerCreate(ExmpManageVO exmpManageVO, ModelMap model) throws Exception {
|
||||
return "kccadr/adjPgrMgr/exmp/app/exmpAppManagerCreate";
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/kccadr/adjPgrMgr/exmp/exmpAppManagerModify.do")
|
||||
public String exmpAppManagerModify(@ModelAttribute("exmpAppManageVO") ExmpManageVO exmpAppManageVO , ModelMap model) throws Exception {
|
||||
public String exmpAppManagerModify(@ModelAttribute("exmpManageVO") ExmpManageVO exmpManageVO , ModelMap model) throws Exception {
|
||||
|
||||
Map<String, Object> resultMap = exmpAppManageService.selectExmpAppManagerInfo(exmpAppManageVO);;
|
||||
Map<String, Object> resultMap = exmpAppManageService.selectExmpAppManagerInfo(exmpManageVO);;
|
||||
|
||||
model.addAttribute("fileList", resultMap.get("fileList"));
|
||||
model.addAttribute("mgrInfo", resultMap.get("mgrInfo"));
|
||||
model.addAttribute("list", resultMap.get("list"));
|
||||
// model.addAttribute("list", resultMap.get("list"));
|
||||
return "kccadr/adjPgrMgr/exmp/app/exmpAppManagerModify";
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/kccadr/adjPgrMgr/exmp/updateExmpManager.do")
|
||||
public ModelAndView updateExmpManager(@ModelAttribute("exmpAppManageVO") ExmpManageVO exmpAppManageVO
|
||||
public ModelAndView updateExmpManager(@ModelAttribute("exmpManageVO") ExmpManageVO exmpManageVO
|
||||
,ModelMap model, final MultipartHttpServletRequest multiRequest) throws Exception {
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
@ -125,36 +125,36 @@ public class ExmpAppManagerController {
|
||||
|
||||
|
||||
String uploadFolder = "";
|
||||
String atchFileId = exmpAppManageVO.getAtchFileId();
|
||||
String atchFileId = exmpManageVO.getAtchFileId();
|
||||
List<FileVO> result = null;
|
||||
|
||||
final Map<String, MultipartFile> files = multiRequest.getFileMap();
|
||||
if(!files.isEmpty() && StringUtils.isNotBlank(exmpAppManageVO.getAtchFileId())){
|
||||
if(!files.isEmpty() && StringUtils.isNotBlank(exmpManageVO.getAtchFileId())){
|
||||
FileVO fvo = new FileVO();
|
||||
fvo.setAtchFileId(atchFileId);
|
||||
int cnt = fileMngService.getMaxFileSN(fvo);
|
||||
result = fileUtil.parseFileInf(files, "Exmp_" , cnt, atchFileId, uploadFolder, "");
|
||||
fileMngService.updateFileInfs(result);
|
||||
}
|
||||
exmpAppManageVO.setAtchFileId(atchFileId);
|
||||
exmpAppManageVO.setLastUpdusrId(loginVO.getUniqId());
|
||||
exmpManageVO.setAtchFileId(atchFileId);
|
||||
exmpManageVO.setLastUpdusrId(loginVO.getUniqId());
|
||||
|
||||
exmpAppManageService.updateExmpManager(exmpAppManageVO);
|
||||
exmpAppManageService.updateExmpManager(exmpManageVO);
|
||||
modelAndView.addObject("result", KccadrConstants.SUCCESS);
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
@RequestMapping(value = {"/kccadr/adjPgrMgr/exmp/existsExmpManagerDataCheck.do"}, method = RequestMethod.POST)
|
||||
public ResponseEntity<RestResponse> exmpAppManagerCheck(HttpServletRequest request , @RequestBody ExmpManageVO exmpAppManageVO) throws Exception {
|
||||
return ResponseEntity.ok().body(exmpAppManageService.existsExmpManagerDataCheck(exmpAppManageVO));
|
||||
public ResponseEntity<RestResponse> exmpAppManagerCheck(HttpServletRequest request , @RequestBody ExmpManageVO exmpManageVO) throws Exception {
|
||||
return ResponseEntity.ok().body(exmpAppManageService.existsExmpManagerDataCheck(exmpManageVO));
|
||||
}
|
||||
|
||||
@RequestMapping(value="/kccadr/adjPgrMgr/exmp/insertExmpAppManager.do")
|
||||
public ResponseEntity<RestResponse> insertExmpAppManager(ExmpManageVO exmpAppManageVO, final MultipartHttpServletRequest multiRequest) throws Exception {
|
||||
public ResponseEntity<RestResponse> insertExmpAppManager(ExmpManageVO exmpManageVO, final MultipartHttpServletRequest multiRequest) throws Exception {
|
||||
|
||||
LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
|
||||
String atchFileId = exmpAppManageVO.getAtchFileId();
|
||||
String atchFileId = exmpManageVO.getAtchFileId();
|
||||
List<FileVO> result = null;
|
||||
|
||||
final Map<String, MultipartFile> files = multiRequest.getFileMap();
|
||||
@ -162,9 +162,9 @@ public class ExmpAppManagerController {
|
||||
result = fileUtil.parseFileInf(files, "Exmp_" , 0, atchFileId, "", "");
|
||||
atchFileId = fileMngService.insertFileInfs(result);
|
||||
}
|
||||
exmpAppManageVO.setAtchFileId(atchFileId);
|
||||
exmpAppManageVO.setFrstRegisterId(loginVO.getUniqId());
|
||||
return ResponseEntity.ok().body(exmpAppManageService.insertExmpAppManager(exmpAppManageVO));
|
||||
exmpManageVO.setAtchFileId(atchFileId);
|
||||
exmpManageVO.setFrstRegisterId(loginVO.getUniqId());
|
||||
return ResponseEntity.ok().body(exmpAppManageService.insertExmpAppManager(exmpManageVO));
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/kccadr/adjPgrMgr/exmp/exmpAppManagerDetail.do")
|
||||
@ -174,7 +174,7 @@ public class ExmpAppManagerController {
|
||||
|
||||
model.addAttribute("fileList", resultMap.get("fileList"));
|
||||
model.addAttribute("mgrInfo", resultMap.get("mgrInfo"));
|
||||
model.addAttribute("list", resultMap.get("list"));
|
||||
// model.addAttribute("list", resultMap.get("list"));
|
||||
|
||||
return "kccadr/adjPgrMgr/exmp/app/exmpAppManagerDetail";
|
||||
}
|
||||
|
||||
@ -1,162 +1,131 @@
|
||||
package kcc.kccadr.adjPgrMgr.exmp.cmm;
|
||||
|
||||
|
||||
import kcc.kccadr.adjPgrMgr.cclt.service.ConciliatorManageVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ExmpManageVO extends ConciliatorManageVO {
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -4650759575042493292L;
|
||||
|
||||
List<ExmpManageVO> exmpList;
|
||||
|
||||
/* 예문 관리 PK */
|
||||
private String exmpMgrId;
|
||||
|
||||
/* 예문 관리 상세 PK */
|
||||
private String exmpDtlId;
|
||||
|
||||
private String expmCcTy;
|
||||
|
||||
private String ccTyNm;
|
||||
|
||||
private String expmTit;
|
||||
|
||||
private String ccTy;
|
||||
|
||||
private String exmpNms;
|
||||
|
||||
private String exmpCd;
|
||||
|
||||
private String exmpCn;
|
||||
|
||||
private String atchFileId;
|
||||
|
||||
private String exmpCcTy;
|
||||
|
||||
private String exmpTit;
|
||||
|
||||
private String codeId;
|
||||
|
||||
|
||||
|
||||
|
||||
public String getExmpMgrId() {
|
||||
return exmpMgrId;
|
||||
}
|
||||
|
||||
public void setExmpMgrId(String exmpMgrId) {
|
||||
this.exmpMgrId = exmpMgrId;
|
||||
}
|
||||
|
||||
public String getExmpDtlId() {
|
||||
return exmpDtlId;
|
||||
}
|
||||
|
||||
public void setExmpDtlId(String exmpDtlId) {
|
||||
this.exmpDtlId = exmpDtlId;
|
||||
}
|
||||
|
||||
public String getExpmCcTy() {
|
||||
return expmCcTy;
|
||||
}
|
||||
|
||||
public void setExpmCcTy(String expmCcTy) {
|
||||
this.expmCcTy = expmCcTy;
|
||||
}
|
||||
|
||||
public String getCcTyNm() {
|
||||
return ccTyNm;
|
||||
}
|
||||
|
||||
public void setCcTyNm(String ccTyNm) {
|
||||
this.ccTyNm = ccTyNm;
|
||||
}
|
||||
|
||||
public String getExpmTit() {
|
||||
return expmTit;
|
||||
}
|
||||
|
||||
public void setExpmTit(String expmTit) {
|
||||
this.expmTit = expmTit;
|
||||
}
|
||||
|
||||
public String getCcTy() {
|
||||
return ccTy;
|
||||
}
|
||||
|
||||
public void setCcTy(String ccTy) {
|
||||
this.ccTy = ccTy;
|
||||
}
|
||||
|
||||
public String getExmpNms() {
|
||||
return exmpNms;
|
||||
}
|
||||
|
||||
public void setExmpNms(String exmpNms) {
|
||||
this.exmpNms = exmpNms;
|
||||
}
|
||||
|
||||
public String getExmpCd() {
|
||||
return exmpCd;
|
||||
}
|
||||
|
||||
public void setExmpCd(String exmpCd) {
|
||||
this.exmpCd = exmpCd;
|
||||
}
|
||||
|
||||
public String getExmpCn() {
|
||||
return exmpCn;
|
||||
}
|
||||
|
||||
public void setExmpCn(String exmpCn) {
|
||||
this.exmpCn = exmpCn;
|
||||
}
|
||||
|
||||
public List<ExmpManageVO> getExmpList() {
|
||||
return exmpList;
|
||||
}
|
||||
|
||||
public void setExmpList(List<ExmpManageVO> exmpList) {
|
||||
this.exmpList = exmpList;
|
||||
}
|
||||
|
||||
public String getAtchFileId() {
|
||||
return atchFileId;
|
||||
}
|
||||
|
||||
public void setAtchFileId(String atchFileId) {
|
||||
this.atchFileId = atchFileId;
|
||||
}
|
||||
|
||||
public String getExmpCcTy() {
|
||||
return exmpCcTy;
|
||||
}
|
||||
|
||||
public void setExmpCcTy(String exmpCcTy) {
|
||||
this.exmpCcTy = exmpCcTy;
|
||||
}
|
||||
|
||||
public String getExmpTit() {
|
||||
return exmpTit;
|
||||
}
|
||||
|
||||
public void setExmpTit(String exmpTit) {
|
||||
this.exmpTit = exmpTit;
|
||||
}
|
||||
|
||||
public String getCodeId() {
|
||||
return codeId;
|
||||
}
|
||||
|
||||
public void setCodeId(String codeId) {
|
||||
this.codeId = codeId;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
package kcc.kccadr.adjPgrMgr.exmp.cmm;
|
||||
|
||||
|
||||
import kcc.kccadr.adjPgrMgr.cclt.service.ConciliatorManageVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ExmpManageVO extends ConciliatorManageVO {
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -4650759575042493292L;
|
||||
|
||||
List<ExmpManageVO> exmpList;
|
||||
|
||||
/* 예문 관리 PK */
|
||||
private String exmpMgrId;
|
||||
|
||||
/* 예문 관리 상세 PK */
|
||||
private String exmpDtlId;
|
||||
|
||||
private String exmpCcTy;
|
||||
|
||||
private String ccTyNm;
|
||||
|
||||
private String exmpTit;
|
||||
|
||||
private String ccTy;
|
||||
|
||||
private String exmpNms;
|
||||
|
||||
private String exmpCd;
|
||||
|
||||
private String exmpCn;
|
||||
|
||||
private String atchFileId;
|
||||
|
||||
public List<ExmpManageVO> getExmpList() {
|
||||
return exmpList;
|
||||
}
|
||||
|
||||
public void setExmpList(List<ExmpManageVO> exmpList) {
|
||||
this.exmpList = exmpList;
|
||||
}
|
||||
|
||||
public String getExmpMgrId() {
|
||||
return exmpMgrId;
|
||||
}
|
||||
|
||||
public void setExmpMgrId(String exmpMgrId) {
|
||||
this.exmpMgrId = exmpMgrId;
|
||||
}
|
||||
|
||||
public String getExmpDtlId() {
|
||||
return exmpDtlId;
|
||||
}
|
||||
|
||||
public void setExmpDtlId(String exmpDtlId) {
|
||||
this.exmpDtlId = exmpDtlId;
|
||||
}
|
||||
|
||||
public String getExmpCcTy() {
|
||||
return exmpCcTy;
|
||||
}
|
||||
|
||||
public void setExmpCcTy(String exmpCcTy) {
|
||||
this.exmpCcTy = exmpCcTy;
|
||||
}
|
||||
|
||||
public String getCcTyNm() {
|
||||
return ccTyNm;
|
||||
}
|
||||
|
||||
public void setCcTyNm(String ccTyNm) {
|
||||
this.ccTyNm = ccTyNm;
|
||||
}
|
||||
|
||||
public String getExmpTit() {
|
||||
return exmpTit;
|
||||
}
|
||||
|
||||
public void setExmpTit(String exmpTit) {
|
||||
this.exmpTit = exmpTit;
|
||||
}
|
||||
|
||||
public String getCcTy() {
|
||||
return ccTy;
|
||||
}
|
||||
|
||||
public void setCcTy(String ccTy) {
|
||||
this.ccTy = ccTy;
|
||||
}
|
||||
|
||||
public String getExmpNms() {
|
||||
return exmpNms;
|
||||
}
|
||||
|
||||
public void setExmpNms(String exmpNms) {
|
||||
this.exmpNms = exmpNms;
|
||||
}
|
||||
|
||||
public String getExmpCd() {
|
||||
return exmpCd;
|
||||
}
|
||||
|
||||
public void setExmpCd(String exmpCd) {
|
||||
this.exmpCd = exmpCd;
|
||||
}
|
||||
|
||||
public String getExmpCn() {
|
||||
return exmpCn;
|
||||
}
|
||||
|
||||
public void setExmpCn(String exmpCn) {
|
||||
this.exmpCn = exmpCn;
|
||||
}
|
||||
|
||||
public String getAtchFileId() {
|
||||
return atchFileId;
|
||||
}
|
||||
|
||||
public void setAtchFileId(String atchFileId) {
|
||||
this.atchFileId = atchFileId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -92,8 +92,8 @@ public class ExmpEffectManagerController {
|
||||
exmpManageVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
exmpManageVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
// 의견 코드
|
||||
exmpManageVO.setCodeId("05");
|
||||
// 신청취지 코드
|
||||
exmpManageVO.setExmpCd("01");
|
||||
|
||||
paginationInfo.setTotalRecordCount(exmpAppManageService.selectExmpAppManagerCount(exmpManageVO));
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
@ -115,7 +115,6 @@ public class ExmpEffectManagerController {
|
||||
|
||||
model.addAttribute("fileList", resultMap.get("fileList"));
|
||||
model.addAttribute("mgrInfo", resultMap.get("mgrInfo"));
|
||||
model.addAttribute("list", resultMap.get("list"));
|
||||
return "kccadr/adjPgrMgr/exmp/effect/exmpEffectManagerModify";
|
||||
}
|
||||
|
||||
@ -126,7 +125,7 @@ public class ExmpEffectManagerController {
|
||||
|
||||
model.addAttribute("fileList", resultMap.get("fileList"));
|
||||
model.addAttribute("mgrInfo", resultMap.get("mgrInfo"));
|
||||
model.addAttribute("list", resultMap.get("list"));
|
||||
// model.addAttribute("list", resultMap.get("list"));
|
||||
|
||||
return "kccadr/adjPgrMgr/exmp/effect/exmpEffectManagerDetail";
|
||||
}
|
||||
|
||||
@ -92,7 +92,7 @@ public class ExmpHelpManagerController {
|
||||
exmpManageVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
// 의견 코드
|
||||
exmpManageVO.setCodeId("05");
|
||||
exmpManageVO.setExmpCd("05");
|
||||
|
||||
paginationInfo.setTotalRecordCount(exmpAppManageService.selectExmpAppManagerCount(exmpManageVO));
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
@ -119,7 +119,7 @@ public class ExmpHelpManagerController {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/kccadr/adjPgrMgr/exmp/exmpHelpManagerDetail.do")
|
||||
public String exmpHelpManagerDetail( ExmpManageVO exmpManageVO , ModelMap model) throws Exception {
|
||||
public String exmpHelpManagerDetail(@ModelAttribute("exmpManageVO") ExmpManageVO exmpManageVO , ModelMap model) throws Exception {
|
||||
|
||||
Map<String, Object> resultMap = exmpAppManageService.selectExmpAppManagerInfo(exmpManageVO);;
|
||||
|
||||
@ -130,5 +130,5 @@ public class ExmpHelpManagerController {
|
||||
return "kccadr/adjPgrMgr/exmp/help/exmpHelpManagerDetail";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -77,7 +77,7 @@ public class ExmpOpinionManagerController {
|
||||
exmpManageVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
// 의견 코드
|
||||
exmpManageVO.setCodeId("CC007");
|
||||
exmpManageVO.setExmpCd("03");
|
||||
|
||||
paginationInfo.setTotalRecordCount(exmpAppManageService.selectExmpAppManagerCount(exmpManageVO));
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
|
||||
@ -237,15 +237,15 @@ public class AdjstReqWebController {
|
||||
public ResponseEntity<RestResponse> adjstReqOpenExamplePopCn(@RequestBody AdjstReqVO adjstReqVO) throws Exception {
|
||||
System.out.println("adjstReqVO.getExmpCd() :: "+ adjstReqVO.getExmpCd());
|
||||
System.out.println("adjstReqVO.getExmpCcTy() :: "+ adjstReqVO.getExmpCcTy());
|
||||
AdjstReqVO expm = adjstReqService.selectAdjstReqOpenExamplePopCn(adjstReqVO);
|
||||
AdjstReqVO exmp = adjstReqService.selectAdjstReqOpenExamplePopCn(adjstReqVO);
|
||||
|
||||
// if (expm != null && StringUtils.isNotBlank(expm.getAtchFileId())) {
|
||||
// if (exmp != null && StringUtils.isNotBlank(exmp.getAtchFileId())) {
|
||||
// FileVO fileVO = new FileVO();
|
||||
// fileVO.setAtchFileId(expm.getAtchFileId());
|
||||
// fileVO.setAtchFileId(exmp.getAtchFileId());
|
||||
// List<FileVO> fileList = fileService.selectFileInfs(fileVO);
|
||||
// model.addAttribute("fileList", fileList);
|
||||
// }
|
||||
return ResponseEntity.ok().body(new RestResponse(HttpStatus.OK, expm.getExmpCn(), LocalDateTime.now()));
|
||||
return ResponseEntity.ok().body(new RestResponse(HttpStatus.OK, exmp.getExmpCn(), LocalDateTime.now()));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -253,14 +253,14 @@ public class AdjstReqWebController {
|
||||
*/
|
||||
@RequestMapping("/web/kccadr/adjst/popup/adjstReqOpenAnswerExamplePop.do")
|
||||
public String adjstReqOpenAnswerExamplePop(@ModelAttribute("adjstReqVO") AdjstReqVO adjstReqVO, ModelMap model) throws Exception {
|
||||
AdjstReqVO expm = adjstReqService.selectAdjstReqOpenAnswerExamplePop(adjstReqVO);
|
||||
if (expm != null && StringUtils.isNotBlank(expm.getAtchFileId())) {
|
||||
AdjstReqVO exmp = adjstReqService.selectAdjstReqOpenAnswerExamplePop(adjstReqVO);
|
||||
if (exmp != null && StringUtils.isNotBlank(exmp.getAtchFileId())) {
|
||||
FileVO fileVO = new FileVO();
|
||||
fileVO.setAtchFileId(expm.getAtchFileId());
|
||||
fileVO.setAtchFileId(exmp.getAtchFileId());
|
||||
List<FileVO> fileList = fileService.selectFileInfs(fileVO);
|
||||
model.addAttribute("fileList", fileList);
|
||||
}
|
||||
model.addAttribute("expm", expm);
|
||||
model.addAttribute("exmp", exmp);
|
||||
return "/web/kccadr/adjst/popup/adjstReqOpenAnswerExamplePop";
|
||||
}
|
||||
|
||||
|
||||
@ -398,17 +398,15 @@ public class AdjstExpController {
|
||||
*/
|
||||
@RequestMapping("/web/kccadr/adjstExp/popup/adjstReqOpenExamplePopCn.do")
|
||||
public ResponseEntity<RestResponse> adjstReqOpenExamplePopCn(@RequestBody AdjstReqVO adjstReqVO) throws Exception {
|
||||
System.out.println("adjstReqVO.getExmpCd() :: "+ adjstReqVO.getExmpCd());
|
||||
System.out.println("adjstReqVO.getExmpCcTy() :: "+ adjstReqVO.getExmpCcTy());
|
||||
AdjstReqVO expm = adjstReqService.selectAdjstReqOpenExamplePopCn(adjstReqVO);
|
||||
AdjstReqVO exmp = adjstReqService.selectAdjstReqOpenExamplePopCn(adjstReqVO);
|
||||
|
||||
// if (expm != null && StringUtils.isNotBlank(expm.getAtchFileId())) {
|
||||
// if (exmp != null && StringUtils.isNotBlank(exmp.getAtchFileId())) {
|
||||
// FileVO fileVO = new FileVO();
|
||||
// fileVO.setAtchFileId(expm.getAtchFileId());
|
||||
// fileVO.setAtchFileId(exmp.getAtchFileId());
|
||||
// List<FileVO> fileList = fileService.selectFileInfs(fileVO);
|
||||
// model.addAttribute("fileList", fileList);
|
||||
// }
|
||||
return ResponseEntity.ok().body(new RestResponse(HttpStatus.OK, expm.getExmpCn(), LocalDateTime.now()));
|
||||
return ResponseEntity.ok().body(new RestResponse(HttpStatus.OK, exmp.getExmpCn(), LocalDateTime.now()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
SELECT
|
||||
COUNT(1) AS TOT
|
||||
FROM ADR_EXMP_MGR T1
|
||||
WHERE CODE_ID = #codeId#
|
||||
WHERE T1.EXMP_CD = #exmpCd#
|
||||
<isNotEmpty property="searchKeyword">
|
||||
<isEqual prepend="AND" property="searchCondition" compareValue="">
|
||||
( T1.EXMP_TIT LIKE CONCAT('%' , #searchKeyword#, '%') OR
|
||||
@ -25,42 +25,18 @@
|
||||
|
||||
<select id="ExmpAppManageDAO.selectExmpManagerList" parameterClass="exmpManageVO" resultClass="exmpManageVO">
|
||||
SELECT
|
||||
T1.EXMP_MGR_ID AS exmpMgrId
|
||||
,T1.EXMP_CC_TY AS exmpCcTy
|
||||
,T1.EXMP_TIT AS exmpTit
|
||||
,T1.ATCH_FILE_ID AS atchFileId
|
||||
,T1.EXMP_NMS AS exmpNms
|
||||
,TO_CHAR(T1.FRST_REGIST_PNTTM,'YYYY-MM-DD') AS frstRegistPnttm
|
||||
,T1.FRST_REGISTER_ID AS frstRegisterId
|
||||
,T1.LAST_UPDT_PNTTM AS lastUpdtPnttm
|
||||
,T1.LAST_UPDUSR_ID AS lastUpdusrId
|
||||
,T1.CODE_ID AS codeId
|
||||
FROM (
|
||||
SELECT
|
||||
T1.EXMP_MGR_ID
|
||||
,T1.EXMP_CC_TY
|
||||
,T1.EXMP_TIT
|
||||
,T1.ATCH_FILE_ID
|
||||
,(
|
||||
SELECT
|
||||
CASE
|
||||
WHEN COUNT(*) <![CDATA[ <= ]]> 1 THEN GROUP_CONCAT(S2.CODE_NM SEPARATOR ',')
|
||||
ELSE S2.CODE_NM ||' 외'|| (COUNT(*)-1) || '건'
|
||||
END EXMP_NMS
|
||||
FROM ADR_EXMP_DTL S1 INNER JOIN LETTCCMMNDETAILCODE S2
|
||||
ON S1.EXMP_CD = S2.CODE AND CODE_ID = #codeId#
|
||||
WHERE 1=1
|
||||
AND S1.EXMP_CC_TY = T1.EXMP_CC_TY
|
||||
GROUP BY S1.EXMP_CC_TY
|
||||
) AS EXMP_NMS
|
||||
,T1.FRST_REGIST_PNTTM
|
||||
,T1.FRST_REGISTER_ID
|
||||
,T1.LAST_UPDT_PNTTM
|
||||
,T1.LAST_UPDUSR_ID
|
||||
,T1.CODE_ID
|
||||
FROM ADR_EXMP_MGR T1
|
||||
) T1
|
||||
WHERE T1.CODE_ID = #codeId#
|
||||
EXMP_MGR_ID AS exmpMgrId
|
||||
, T1.EXMP_CD AS exmpCd
|
||||
, T1.EXMP_CC_TY AS exmpCcTy
|
||||
, T1.EXMP_TIT AS exmpTit
|
||||
, T1.EXMP_CN AS exmpCn
|
||||
, T1.ATCH_FILE_ID AS atchFileId
|
||||
, TO_CHAR(T1.FRST_REGIST_PNTTM, 'YYYY-MM-DD') AS frstRegistPnttm
|
||||
, T1.FRST_REGISTER_ID AS frstRegisterId
|
||||
, TO_CHAR(T1.LAST_UPDT_PNTTM, 'YYYY-MM-DD') AS lastUpdtPnttm
|
||||
, T1.LAST_UPDUSR_ID AS lastUpdusrId
|
||||
FROM ADR_EXMP_MGR T1
|
||||
WHERE T1.EXMP_CD = #exmpCd#
|
||||
<isNotEmpty property="searchKeyword">
|
||||
<isEqual prepend="AND" property="searchCondition" compareValue="">
|
||||
( T1.EXMP_TIT LIKE CONCAT('%' , #searchKeyword#, '%') OR
|
||||
@ -88,6 +64,7 @@
|
||||
ADR_EXMP_MGR
|
||||
SET
|
||||
EXMP_TIT = #exmpTit#
|
||||
, EXMP_CN = #exmpCn#
|
||||
, ATCH_FILE_ID = #atchFileId#
|
||||
, LAST_UPDT_PNTTM = NOW()
|
||||
, LAST_UPDUSR_ID = #lastUpdusrId#
|
||||
@ -112,20 +89,22 @@
|
||||
|
||||
INSERT INTO ADR_EXMP_MGR (
|
||||
EXMP_MGR_ID
|
||||
, EXMP_CD
|
||||
, EXMP_CC_TY
|
||||
, EXMP_TIT
|
||||
, EXMP_CN
|
||||
, ATCH_FILE_ID
|
||||
, FRST_REGIST_PNTTM
|
||||
, FRST_REGISTER_ID
|
||||
, CODE_ID
|
||||
) VALUES (
|
||||
#exmpMgrId#
|
||||
, #exmpCd#
|
||||
, #exmpCcTy#
|
||||
, #exmpTit#
|
||||
, #exmpCn#
|
||||
, #atchFileId#
|
||||
, NOW()
|
||||
, #frstRegisterId#
|
||||
, #codeId#
|
||||
)
|
||||
</insert>
|
||||
|
||||
@ -156,14 +135,15 @@
|
||||
<select id="ExmpAppManageDAO.selectExmpManagerInfo" parameterClass="exmpManageVO" resultClass="exmpManageVO">
|
||||
SELECT
|
||||
EXMP_MGR_ID AS exmpMgrId
|
||||
, EXMP_CD AS exmpCd
|
||||
, EXMP_CC_TY AS exmpCcTy
|
||||
, EXMP_TIT AS exmpTit
|
||||
, EXMP_CN AS exmpCn
|
||||
, ATCH_FILE_ID AS atchFileId
|
||||
, FRST_REGIST_PNTTM AS frstRegistPnttm
|
||||
, FRST_REGISTER_ID AS frstRegisterId
|
||||
, LAST_UPDT_PNTTM AS lastUpdtPnttm
|
||||
, LAST_UPDUSR_ID AS lastUpdusrId
|
||||
, CODE_ID AS codeId
|
||||
FROM ADR_EXMP_MGR
|
||||
WHERE EXMP_MGR_ID = #exmpMgrId#
|
||||
<!-- <isNotEmpty prepend="AND" property="exmpCcTy"> -->
|
||||
@ -179,18 +159,10 @@
|
||||
EXMP_MGR_ID
|
||||
FROM ADR_EXMP_MGR
|
||||
WHERE EXMP_CC_TY = #exmpCcTy#
|
||||
AND CODE_ID = #codeId#
|
||||
AND EXMP_CD = #exmpCd#
|
||||
)
|
||||
</select>
|
||||
|
||||
<select id="ExmpAppManageDAO.selectOneAdjustExmpCcTy" parameterClass="exmpManageVO" resultClass="String">
|
||||
SELECT
|
||||
EXMP_CC_TY AS exmpCcTy
|
||||
FROM ADR_EXMP_MGR
|
||||
WHERE CODE_ID = #codeId#
|
||||
ORDER BY EXMP_CC_TY DESC
|
||||
</select>
|
||||
|
||||
<select id="ExmpAppManageDAO.selectExmpDetailList" parameterClass="exmpManageVO" resultClass="exmpManageVO">
|
||||
SELECT
|
||||
EXMP_MGR_ID AS exmpMgrId
|
||||
|
||||
@ -36,64 +36,7 @@ $(document).ready( function() {
|
||||
});
|
||||
});
|
||||
|
||||
function fncRowAdd(){
|
||||
// 등록가능한 갯수
|
||||
var len = $("select[name*=exmpCd]:first option").length;
|
||||
var rowLen = $(".addTb > table > tbody > tr").length;
|
||||
var obj = $(".addTb > table > tbody > tr:last");
|
||||
|
||||
var cloneObj = obj.clone(true);
|
||||
console.log('cloneObj : ',cloneObj);
|
||||
if(len == 0 || rowLen >= (len-1)){
|
||||
alert("등록가능한 항목은 갯수는 " + (len-1) + "개 입니다.");
|
||||
return false;
|
||||
}
|
||||
var exmpCd = cloneObj.find("select[name*=exmpCd]");
|
||||
var exmpCn = cloneObj.find("textarea[name*=exmpCn]");
|
||||
exmpCd.val("");
|
||||
exmpCn.val("");
|
||||
exmpCd.attr("name", exmpCd.attr("name").replace(/[0-9]/gi, rowLen));
|
||||
exmpCn.attr("name", exmpCn.attr("name").replace(/[0-9]/gi, rowLen));
|
||||
obj.after(cloneObj);
|
||||
}
|
||||
|
||||
function fncRowDel(){
|
||||
var rowLen = $(".addTb > table > tbody > tr").length;
|
||||
if(rowLen == 1){
|
||||
alert("더이상 삭제할 수 없습니다.");
|
||||
return false;
|
||||
}
|
||||
$(".addTb > table > tbody > tr:last").remove();
|
||||
}
|
||||
|
||||
// function fncSave(){
|
||||
// var exmpCcTy = "<c:out value='${mgrInfo.exmpCcTy}' />";
|
||||
// if(exmpCcTy != ''){
|
||||
// saveProcess();
|
||||
// }else{
|
||||
// $.ajax({
|
||||
// type: "POST",
|
||||
// url: "/kccadr/adjPgrMgr/exmp/existsExmpManagerDataCheck.do",
|
||||
// data: JSON.stringify({exmpCcTy : 0
|
||||
// ,codeId : $('#codeId').val()}),
|
||||
// dataType:'json',
|
||||
// async: false,
|
||||
// processData: false,
|
||||
// contentType: "application/json",
|
||||
// cache: false,
|
||||
// success: function (data) {
|
||||
// if(data.status == "OK"){
|
||||
// saveProcess();
|
||||
// }else{
|
||||
// alert(data.message);
|
||||
// return false;
|
||||
// }
|
||||
// },
|
||||
// error: function (e) { alert("저장에 실패하였습니다."); console.log("ERROR : ", e); }
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
function saveProcess(){
|
||||
if(!validation()){
|
||||
return false;
|
||||
@ -115,7 +58,7 @@ function saveProcess(){
|
||||
success:function(returnData){
|
||||
if(returnData.status == "OK"){
|
||||
alert(returnData.data);
|
||||
fncDetail();
|
||||
fncGoList();
|
||||
}else{
|
||||
alert(returnData.data);
|
||||
}
|
||||
@ -140,38 +83,21 @@ function validation(){
|
||||
return flag = false;
|
||||
}
|
||||
|
||||
var cn = $('#exmpCn').val();
|
||||
|
||||
var validArr = [];
|
||||
$.each(obj , function(idx, elm){
|
||||
var cn = $(this).find("textarea[name*=exmpCn]").val();
|
||||
|
||||
var textLen = conByteLeng(cn); //예문 입력 내용 Byte 계산 처리
|
||||
|
||||
if(cn == ''){
|
||||
alert("예문내용을 입력해주세요.");
|
||||
return flag = false;
|
||||
}
|
||||
var textLen = conByteLeng(cn);
|
||||
|
||||
if(cn == ''){
|
||||
alert("예문내용을 입력해주세요.["+(idx+1)+"]");
|
||||
return flag = false;
|
||||
}
|
||||
if(Number(textLen) > 2000){
|
||||
|
||||
if(Number(textLen) > 2000){
|
||||
|
||||
alert("예문 내용의 길이는 2000자를 넘을 수 없습니다.");
|
||||
return flag = false;
|
||||
|
||||
}
|
||||
alert("예문 내용의 길이는 2000자를 넘을 수 없습니다.");
|
||||
return flag = false;
|
||||
|
||||
});
|
||||
var checkObj = validArr.reduce((accu, curr) => {
|
||||
accu[curr] = (accu[curr] || 0)+1;
|
||||
return accu;
|
||||
}, {});
|
||||
|
||||
$.each(checkObj, function(key, value){
|
||||
if(parseInt(value) > 1){
|
||||
alert("동일한 항목을 중복으로 등록하실 수 없습니다.");
|
||||
return flag = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return flag;
|
||||
}
|
||||
|
||||
@ -180,13 +106,6 @@ function fncGoList(){
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpAnswerManagerList.do'/>";
|
||||
varFrom.submit();
|
||||
}
|
||||
|
||||
function fncDetail(){
|
||||
var varFrom = document.getElementById("createForm");
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpAnswerManagerDetail.do'/>";
|
||||
varFrom.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
<style>
|
||||
#exmpTit{width: 95%}
|
||||
@ -199,7 +118,7 @@ function fncDetail(){
|
||||
<input type="hidden" name="searchCondition" value="<c:out value='${exmpManageVO.searchCondition}'/>"/>
|
||||
<input type="hidden" name="searchKeyword" value="<c:out value='${exmpManageVO.searchKeyword}'/>"/>
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpManageVO.pageIndex}'/>"/>
|
||||
<input type="hidden" name="codeId" id="codeId" value="<c:out value="${exmpManageVO.codeId}" />" />
|
||||
<input type="hidden" name="exmpCd" value="<c:out value="${exmpManageVO.exmpCd}" />" />
|
||||
<input type="hidden" name="exmpCcTy" id="exmpCcTy" value="" />
|
||||
<!-- <input type="hidden" name="exmpTit" value="답변서예문" /> -->
|
||||
|
||||
@ -209,18 +128,17 @@ function fncDetail(){
|
||||
<div class="box">
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>답변서예문등록</h2>
|
||||
<h2>답변서예문관리 등록</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li><p>조정진행관리</p></li>
|
||||
<li><p>답변서예문관리</p></li>
|
||||
<li><span class="cur_nav">답변서예문등록</span></li>
|
||||
<li><span class="cur_nav">답변서예문관리 등록</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
|
||||
<div class="cont">
|
||||
<p class="tb_tit">답변서</p>
|
||||
<p class="tb_tit">기본 정보</p>
|
||||
<div class="tbType02">
|
||||
<table>
|
||||
<colgroup>
|
||||
@ -236,18 +154,6 @@ function fncDetail(){
|
||||
<td>
|
||||
<input type="text" placeholder="제목을 입력해주세요." name="exmpTit" id="exmpTit" value="<c:out value='${mgrInfo.exmpTit}' />">
|
||||
</td>
|
||||
<!-- <th>저작물종류</th> -->
|
||||
<!-- <td> -->
|
||||
<%-- <c:choose> --%>
|
||||
<%-- <c:when test="${not empty mgrInfo}"> --%>
|
||||
<%-- <kc:code codeId="CC002" code="${mgrInfo.exmpCcTy}"/> --%>
|
||||
<%-- <input type="hidden" name="exmpCcTy" value="<c:out value='${mgrInfo.exmpCcTy}'/>"/> --%>
|
||||
<%-- </c:when> --%>
|
||||
<%-- <c:otherwise> --%>
|
||||
<%-- <kc:select codeId="CC002" name="exmpCcTy" id="exmpCcTy" defaultText="선택" defaultValue="" selectedValue="${mgrInfo.exmpCcTy}"/> --%>
|
||||
<%-- </c:otherwise> --%>
|
||||
<%-- </c:choose> --%>
|
||||
<!-- </td> -->
|
||||
</tr>
|
||||
<tr>
|
||||
<th><span class="">첨부파일</span></th>
|
||||
@ -324,49 +230,24 @@ function fncDetail(){
|
||||
</div>
|
||||
<!-- //list_상세 -->
|
||||
<div class="tb_tit">
|
||||
<p>예문내용</p>
|
||||
<!-- <div class="btn_wrap"> -->
|
||||
<!-- <button type="button" class="btn_plus" onclick="fncRowAdd(); return false;"><i></i></button> -->
|
||||
<!-- <button type="button" class="btn_minus" onclick="fncRowDel(); return false;"><i></i></button> -->
|
||||
<!-- </div> -->
|
||||
<p>답변서</p>
|
||||
</div>
|
||||
<div class="list tbType01 addTb">
|
||||
<table>
|
||||
<colgroup>
|
||||
<%-- <col style="width: 27%"> --%>
|
||||
<col style="width: auto">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<!-- <th>항목</th> -->
|
||||
<th>예문내용</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:choose>
|
||||
<c:when test="${fn:length(list) eq 0}">
|
||||
<tr>
|
||||
<!-- <td> -->
|
||||
<%-- <kc:select codeId="CC040" name="exmpList[0].exmpCd" id="test" defaultText="선택" defaultValue="" selectedValue="" css="style='width:200px; height:38px;'"/> --%>
|
||||
<!-- </td> -->
|
||||
<td>
|
||||
<textarea name="exmpList[0].exmpCn" placeholder="예문을 입력해주세요." style="resize: none; width:96%; margin: 10px 0;"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr>
|
||||
<!-- <td> -->
|
||||
<%-- <kc:select codeId="CC040" name="exmpList[${status.index}].exmpCd" defaultText="선택" defaultValue="" selectedValue="${list.exmpCd}" css="style='width:200px; height:38px;'"/> --%>
|
||||
<!-- </td> -->
|
||||
<td>
|
||||
<textarea name="exmpList[<c:out value='${status.index}' />].exmpCn" placeholder="예문을 입력해주세요." style="resize: none; width:96%; margin: 10px 0;"><c:out value='${list.exmpCn}' /></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea name="exmpCn" id="exmpCn" placeholder="예문을 입력해주세요." style="resize: none; height: 250px; width:96%; margin: 10px 0;"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@ -53,19 +53,18 @@
|
||||
<input type="hidden" name="searchCondition" value="<c:out value='${exmpManageVO.searchCondition}'/>"/>
|
||||
<input type="hidden" name="searchKeyword" value="<c:out value='${exmpManageVO.searchKeyword}'/>"/>
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpManageVO.pageIndex}'/>"/>
|
||||
<input type="hidden" name="codeId" value="<c:out value="${exmpManageVO.codeId}" />" />
|
||||
<input type="hidden" name="exmpCd" value="<c:out value="${exmpManageVO.exmpCd}" />" />
|
||||
<input type="hidden" name="exmpMgrId" value="<c:out value="${exmpManageVO.exmpMgrId}" />" />
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>답변서예문상세</h2>
|
||||
<h2>답변서예문관리 상세</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li><p>조정진행관리</p></li>
|
||||
<li><p>답변서예문관리</p></li>
|
||||
<li><span class="cur_nav">답변서예문상세</span></li>
|
||||
<li><span class="cur_nav">답변서예문관리 상세</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
@ -115,6 +114,7 @@
|
||||
<div class="list tbType01 addTb">
|
||||
<table>
|
||||
<colgroup>
|
||||
<%-- <col style="width: 20%"> --%>
|
||||
<col style="width: auto">
|
||||
</colgroup>
|
||||
<thead>
|
||||
@ -123,13 +123,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr>
|
||||
<td style="text-align: left; line-height: 30px; padding: 10px;">
|
||||
<c:out value="${fn:replace(list.exmpCn, crlf , '<br/>')}" escapeXml="false" />
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<tr>
|
||||
<td style="text-align: left; line-height: 30px; padding: 10px;">
|
||||
<c:out value="${fn:replace(mgrInfo.exmpCn, crlf , '<br/>')}" escapeXml="false" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@ -81,7 +81,7 @@
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpManageVO.pageIndex}' default='1' />"/>
|
||||
<input type="hidden" name="searchSortCnd" value="<c:out value="${exmpManageVO.searchSortCnd}" />" />
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${exmpManageVO.searchSortOrd}" />" />
|
||||
<input type="hidden" name="codeId" value="<c:out value="${exmpManageVO.codeId}" />" />
|
||||
<input type="hidden" name="exmpCd" value="<c:out value="${exmpManageVO.exmpCd}" />" />
|
||||
<input type="hidden" name="exmpMgrId" value="0" />
|
||||
|
||||
<div class="cont_wrap">
|
||||
@ -89,13 +89,13 @@
|
||||
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>답변서예문관리</h2>
|
||||
<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>
|
||||
<li><span class="cur_nav">답변서예문관리 목록</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
|
||||
@ -147,12 +147,12 @@
|
||||
var textLen = conByteLeng(cn); //예문 입력 내용 Byte 계산 처리
|
||||
|
||||
if(cd == ''){
|
||||
alert("항목을 선택해주세요.["+(idx+1)+"]");
|
||||
alert("항목을 선택해주세요.");
|
||||
return flag = false;
|
||||
}
|
||||
|
||||
if(cn == ''){
|
||||
alert("예문내용을 입력해주세요.["+(idx+1)+"]");
|
||||
alert("예문내용을 입력해주세요.");
|
||||
return flag = false;
|
||||
}
|
||||
|
||||
@ -204,19 +204,18 @@
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpManageVO.pageIndex}'/>"/>
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${exmpManageVO.searchSortOrd}" />"/>
|
||||
<input type="hidden" name="exmpMgrId" value="<c:out value='${mgrInfo.exmpMgrId}' />">
|
||||
<input type="hidden" name="codeId" id="codeId" value="<c:out value='${mgrInfo.codeId}' />">
|
||||
<input type="hidden" name="exmpCd" value="<c:out value="${exmpManageVO.exmpCd}" />" />
|
||||
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>답변서예문수정</h2>
|
||||
<h2>답변서예문관리 수정</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li><p>조정진행관리</p></li>
|
||||
<li><p>답변서예문관리</p></li>
|
||||
<li><span class="cur_nav">답변서예문수정</span></li>
|
||||
<li><span class="cur_nav">답변서예문관리 수정</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
@ -328,14 +327,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr>
|
||||
<input type="hidden" name="exmpList[${status.index}].exmpDtlId" value="<c:out value='${list.exmpDtlId}' />">
|
||||
<td>
|
||||
<textarea name="exmpList[<c:out value='${status.index}' />].exmpCn" placeholder="예문을 입력해주세요." style="resize: none; width:96%; margin: 10px 0;"><c:out value='${list.exmpCn}' /></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<tr>
|
||||
<td style="text-align: left; line-height: 30px; padding: 10px;">
|
||||
<textarea name="exmpCn" id="exmpCn" placeholder="예문을 입력해주세요." style="resize: none; height: 250px; width:96%; margin: 10px 0;"><c:out value='${mgrInfo.exmpCn}' /></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
%>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>예문관리</title>
|
||||
<title>신청원인예문관리</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script type="text/javascript">
|
||||
$(document).ready( function() {
|
||||
@ -36,62 +36,27 @@
|
||||
});
|
||||
});
|
||||
|
||||
function fncRowAdd(){
|
||||
// 등록가능한 갯수
|
||||
var len = $("select[name*=exmpCd]:first option").length;
|
||||
var rowLen = $(".addTb > table > tbody > tr").length;
|
||||
var obj = $(".addTb > table > tbody > tr:last");
|
||||
|
||||
var cloneObj = obj.clone(true);
|
||||
console.log('cloneObj : ',cloneObj);
|
||||
if(len == 0 || rowLen >= (len-1)){
|
||||
alert("등록가능한 항목은 갯수는 " + (len-1) + "개 입니다.");
|
||||
return false;
|
||||
}
|
||||
var exmpCd = cloneObj.find("select[name*=exmpCd]");
|
||||
var exmpCn = cloneObj.find("textarea[name*=exmpCn]");
|
||||
exmpCd.val("");
|
||||
exmpCn.val("");
|
||||
exmpCd.attr("name", exmpCd.attr("name").replace(/[0-9]/gi, rowLen));
|
||||
exmpCn.attr("name", exmpCn.attr("name").replace(/[0-9]/gi, rowLen));
|
||||
obj.after(cloneObj);
|
||||
}
|
||||
|
||||
function fncRowDel(){
|
||||
var rowLen = $(".addTb > table > tbody > tr").length;
|
||||
if(rowLen == 1){
|
||||
alert("더이상 삭제할 수 없습니다.");
|
||||
return false;
|
||||
}
|
||||
$(".addTb > table > tbody > tr:last").remove();
|
||||
}
|
||||
|
||||
function fncSave(){
|
||||
var exmpCcTy = "<c:out value='${mgrInfo.exmpCcTy}' />";
|
||||
if(exmpCcTy != ''){
|
||||
saveProcess();
|
||||
}else{
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/kccadr/adjPgrMgr/exmp/existsExmpManagerDataCheck.do",
|
||||
data: JSON.stringify({exmpCcTy : $("#exmpCcTy").val()
|
||||
,codeId : $('#codeId').val()}),
|
||||
dataType:'json',
|
||||
async: false,
|
||||
processData: false,
|
||||
contentType: "application/json",
|
||||
cache: false,
|
||||
success: function (returnData) {
|
||||
if(returnData.status == "OK"){
|
||||
saveProcess();
|
||||
}else{
|
||||
alert(returnData.data);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (e) { alert("저장에 실패하였습니다."); console.log("ERROR : ", e); }
|
||||
});
|
||||
}
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/kccadr/adjPgrMgr/exmp/existsExmpManagerDataCheck.do",
|
||||
data: JSON.stringify({exmpCcTy : $("#exmpCcTy").val()
|
||||
,codeId : $('#codeId').val()}),
|
||||
dataType:'json',
|
||||
async: false,
|
||||
processData: false,
|
||||
contentType: "application/json",
|
||||
cache: false,
|
||||
success: function (returnData) {
|
||||
if(returnData.status == "OK"){
|
||||
saveProcess();
|
||||
}else{
|
||||
alert(returnData.data);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (e) { alert("저장에 실패하였습니다."); console.log("ERROR : ", e); }
|
||||
});
|
||||
}
|
||||
|
||||
function saveProcess(){
|
||||
@ -208,18 +173,17 @@
|
||||
<input type="hidden" name="searchCondition" value="<c:out value='${exmpManageVO.searchCondition}'/>"/>
|
||||
<input type="hidden" name="searchKeyword" value="<c:out value='${exmpManageVO.searchKeyword}'/>"/>
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpManageVO.pageIndex}'/>"/>
|
||||
<input type="hidden" name="codeId" id="codeId" value="<c:out value="${exmpManageVO.codeId}" />" />
|
||||
<input type="hidden" name="exmpCd" id="exmpCd" value="<c:out value="${exmpManageVO.exmpCd}" />" />
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>신청서예문등록</h2>
|
||||
<h2>신청원인예문관리 등록</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li><p>조정진행관리</p></li>
|
||||
<li><p>신청서예문관리</p></li>
|
||||
<li><span class="cur_nav">신청서예문등록</span></li>
|
||||
<li><span class="cur_nav">신청원인예문관리 등록</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
@ -304,31 +268,22 @@
|
||||
</div>
|
||||
<!-- //list_상세 -->
|
||||
<div class="tb_tit">
|
||||
<p>항목추가</p>
|
||||
<div class="btn_wrap">
|
||||
<button type="button" class="btn_plus" onclick="fncRowAdd(); return false;"><i></i></button>
|
||||
<button type="button" class="btn_minus" onclick="fncRowDel(); return false;"><i></i></button>
|
||||
</div>
|
||||
<p>신청원인</p>
|
||||
</div>
|
||||
<div class="list tbType01 addTb">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 27%">
|
||||
<col style="width: auto">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>항목</th>
|
||||
<th>예문내용</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<kc:select codeId="CC040" name="exmpList[0].exmpCd" id="test" defaultText="선택" defaultValue="" selectedValue="" css="style='width:200px; height:38px;'"/>
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="exmpList[0].exmpCn" placeholder="예문을 입력해주세요." style="resize: none; width:96%; margin: 10px 0;"></textarea>
|
||||
<textarea name="exmpCn" placeholder="예문을 입력해주세요." style="resize: none; height: 250px; width:96%; margin: 10px 0;"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@ -53,19 +53,18 @@
|
||||
<input type="hidden" name="searchCondition" value="<c:out value='${exmpManageVO.searchCondition}'/>"/>
|
||||
<input type="hidden" name="searchKeyword" value="<c:out value='${exmpManageVO.searchKeyword}'/>"/>
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpManageVO.pageIndex}'/>"/>
|
||||
<input type="hidden" name="codeId" value="<c:out value="${exmpManageVO.codeId}" />" />
|
||||
<input type="hidden" name="exmpCd" value="<c:out value="${exmpManageVO.exmpCd}" />" />
|
||||
<input type="hidden" name="exmpMgrId" value="<c:out value="${exmpManageVO.exmpMgrId}" />" />
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>신청서예문상세</h2>
|
||||
<h2>신청원인예문관리 상세</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li><p>조정진행관리</p></li>
|
||||
<li><p>신청서예문관리</p></li>
|
||||
<li><span class="cur_nav">신청서예문상세</span></li>
|
||||
<li><span class="cur_nav">신청원인예문관리 상세</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
@ -110,49 +109,25 @@
|
||||
</div>
|
||||
<!-- //list_상세 -->
|
||||
<div class="tb_tit">
|
||||
<p>항목추가</p>
|
||||
<%--<div class="btn_wrap">
|
||||
<button type="button" class="btn_plus" onclick="fncRowAdd(); return false;"><i></i></button>
|
||||
<button type="button" class="btn_minus" onclick="fncRowDel(); return false;"><i></i></button>
|
||||
</div>--%>
|
||||
<p><kc:code codeId="CC040" code="${mgrInfo.exmpCd}"/></p>
|
||||
</div>
|
||||
<div class="list tbType01 addTb">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 20%">
|
||||
<%-- <col style="width: 20%"> --%>
|
||||
<col style="width: auto">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>항목</th>
|
||||
<th>예문내용</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:choose>
|
||||
<c:when test="${fn:length(list) eq 0}">
|
||||
<tr>
|
||||
<td>
|
||||
<kc:select codeId="CC040" name="exmpList[0].exmpCd" id="test" defaultText="선택" defaultValue="" selectedValue="" css="style='width:200px; height:38px;'"/>
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="exmpList[0].exmpCn" placeholder="예문을 입력해주세요." style="resize: none; width:96%; margin: 10px 0;"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr>
|
||||
<td>
|
||||
<kc:code codeId="CC040" code="${list.exmpCd}"/>
|
||||
</td>
|
||||
<td style="text-align: left; line-height: 30px; padding: 10px;">
|
||||
<c:out value="${fn:replace(list.exmpCn, crlf , '<br/>')}" escapeXml="false" />
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<tr>
|
||||
<td style="text-align: left; line-height: 30px; padding: 10px;">
|
||||
<c:out value="${fn:replace(mgrInfo.exmpCn, crlf , '<br/>')}" escapeXml="false" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@ -10,20 +10,20 @@
|
||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
|
||||
<%
|
||||
/**
|
||||
* @Class Name : AdjustDeptManagerList.jsp
|
||||
* @Description : 조정부관리
|
||||
* @Modification Information
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------- -------- ---------------------------
|
||||
* @ 2021.08.09 김봉호 최초 생성
|
||||
* @author 김봉호
|
||||
* @since 2021.08.21
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* @Class Name : exmpOpinionManagerList.jsp
|
||||
* @Description : 신청원인 예문 관리
|
||||
* @Modification Information
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------- -------- ---------------------------
|
||||
* @ 2022.10.12 이호영 최초 생성
|
||||
* @author 이호영
|
||||
* @since 2021.10.12
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
*/
|
||||
%>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
@ -78,11 +78,11 @@
|
||||
</head>
|
||||
<body>
|
||||
<form:form id="listForm" name="listForm" method="post">
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpAppManageVO.pageIndex}' default='1' />"/>
|
||||
<input type="hidden" name="searchSortCnd" value="<c:out value="${exmpAppManageVO.searchSortCnd}" />" />
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${exmpAppManageVO.searchSortOrd}" />" />
|
||||
<input type="hidden" name="codeId" value="<c:out value="${exmpAppManageVO.codeId}" />" />
|
||||
<input type="hidden" name="expmCcTy" value="" />
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpManageVO.pageIndex}' default='1' />"/>
|
||||
<input type="hidden" name="searchSortCnd" value="<c:out value="${exmpManageVO.searchSortCnd}" />" />
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${exmpManageVO.searchSortOrd}" />" />
|
||||
<input type="hidden" name="exmpCd" value="<c:out value="${exmpManageVO.exmpCd}" />" />
|
||||
<input type="hidden" name="exmpCcTy" value="" />
|
||||
<input type="hidden" name="exmpMgrId" value="" />
|
||||
|
||||
<div class="cont_wrap">
|
||||
@ -90,13 +90,13 @@
|
||||
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>신청원인예문관리</h2>
|
||||
<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>
|
||||
<li><span class="cur_nav">신청원인예문관리 목록</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
@ -107,11 +107,11 @@
|
||||
<p>총 건수 : <span><c:out value="${paginationInfo.totalRecordCount}"/></span>건</p>
|
||||
<div class="list_util">
|
||||
<select name="searchCondition" id="searchCondition">
|
||||
<option value="" <c:if test="${empty exmpAppManageVO.searchCondition}">selected="selected"</c:if>>전체</option>
|
||||
<option value="1" <c:if test="${exmpAppManageVO.searchCondition eq '1'}">selected="selected"</c:if>>제목</option>
|
||||
<option value="2" <c:if test="${exmpAppManageVO.searchCondition eq '2'}">selected="selected"</c:if>>항목</option>
|
||||
<option value="" <c:if test="${empty exmpManageVO.searchCondition}">selected="selected"</c:if>>전체</option>
|
||||
<option value="1" <c:if test="${exmpManageVO.searchCondition eq '1'}">selected="selected"</c:if>>제목</option>
|
||||
<option value="2" <c:if test="${exmpManageVO.searchCondition eq '2'}">selected="selected"</c:if>>항목</option>
|
||||
</select>
|
||||
<input type="text" id=searchKeyword name="searchKeyword" class="search_input" placeholder="검색어를 입력하세요" value="<c:out value='${exmpAppManageVO.searchKeyword}'/>">
|
||||
<input type="text" id=searchKeyword name="searchKeyword" class="search_input" placeholder="검색어를 입력하세요" value="<c:out value='${exmpManageVO.searchKeyword}'/>">
|
||||
<button class="btn_search" onclick="fncSelectConciliatorManageList(); return false;">검색</button>
|
||||
</div>
|
||||
</div>
|
||||
@ -123,7 +123,6 @@
|
||||
<col style="width: 10%">
|
||||
<col style="width: 10%">
|
||||
<col style="width: auto">
|
||||
<col style="width: 25%">
|
||||
<col style="width: 10%">
|
||||
</colgroup>
|
||||
<thead>
|
||||
@ -131,7 +130,6 @@
|
||||
<th>번호</th>
|
||||
<th>저작물</th>
|
||||
<th>제목</th>
|
||||
<th>항목</th>
|
||||
<th>등록일</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -139,22 +137,19 @@
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr>
|
||||
<td>
|
||||
<c:if test="${exmpAppManageVO.searchSortOrd eq 'desc' }">
|
||||
<c:out value="${ ( paginationInfo.totalRecordCount - ((exmpAppManageVO.pageIndex -1)*exmpAppManageVO.pageUnit) ) - status.index }"/>
|
||||
<c:if test="${exmpManageVO.searchSortOrd eq 'desc' }">
|
||||
<c:out value="${ ( paginationInfo.totalRecordCount - ((exmpManageVO.pageIndex -1)*exmpManageVO.pageUnit) ) - status.index }"/>
|
||||
</c:if>
|
||||
<c:if test="${exmpAppManageVO.searchSortOrd eq 'asc' }">
|
||||
<c:out value="${(exmpAppManageVO.pageIndex - 1) * exmpAppManageVO.pageUnit + status.count}"/>
|
||||
<c:if test="${exmpManageVO.searchSortOrd eq 'asc' }">
|
||||
<c:out value="${(exmpManageVO.pageIndex - 1) * exmpManageVO.pageUnit + status.count}"/>
|
||||
</c:if>
|
||||
</td>
|
||||
<td>
|
||||
<kc:code codeId="${list.codeId}" code="${list.exmpCcTy}"/>
|
||||
<kc:code codeId="CC002" code="${list.exmpCcTy}"/>
|
||||
</td>
|
||||
<td>
|
||||
<a href="#" onclick="fncDetailPage('${list.exmpMgrId}');"><c:out value="${list.exmpTit}"/></a>
|
||||
</td>
|
||||
<td>
|
||||
<c:out value="${list.exmpNms}"/>
|
||||
</td>
|
||||
<td>
|
||||
<c:out value="${list.frstRegistPnttm}"/>
|
||||
</td>
|
||||
|
||||
@ -111,7 +111,7 @@
|
||||
cache: false,
|
||||
success:function(returnData){
|
||||
if(returnData.result == "SUCCESS"){
|
||||
alert("정상적으로 등록되었습니다.");
|
||||
alert("정상적으로 수정되었습니다.");
|
||||
fncDetail();
|
||||
}
|
||||
},
|
||||
@ -147,12 +147,12 @@
|
||||
var textLen = conByteLeng(cn); //예문 입력 내용 Byte 계산 처리
|
||||
|
||||
if(cd == ''){
|
||||
alert("항목을 선택해주세요.["+(idx+1)+"]");
|
||||
alert("항목을 선택해주세요.");
|
||||
return flag = false;
|
||||
}
|
||||
|
||||
if(cn == ''){
|
||||
alert("예문내용을 입력해주세요.["+(idx+1)+"]");
|
||||
alert("예문내용을 입력해주세요.");
|
||||
return flag = false;
|
||||
}
|
||||
|
||||
@ -196,27 +196,26 @@
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form:form id="modifyForm" name="modifyForm" commandName="exmpAppManageVO" method="post">
|
||||
<form:form id="modifyForm" name="modifyForm" commandName="exmpManageVO" method="post">
|
||||
<input type="hidden" name="atchFileId" value="<c:out value='${mgrInfo.atchFileId}'/>"/>
|
||||
<input type="hidden" name="limitcount" value="3" /><!-- 최대 업로드 파일갯수 -->
|
||||
<input type="hidden" name="searchCondition" value="<c:out value='${exmpAppManageVO.searchCondition}'/>"/>
|
||||
<input type="hidden" name="searchKeyword" value="<c:out value='${exmpAppManageVO.searchKeyword}'/>"/>
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpAppManageVO.pageIndex}'/>"/>
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${exmpAppManageVO.searchSortOrd}" />"/>
|
||||
<input type="hidden" name="searchCondition" value="<c:out value='${exmpManageVO.searchCondition}'/>"/>
|
||||
<input type="hidden" name="searchKeyword" value="<c:out value='${exmpManageVO.searchKeyword}'/>"/>
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpManageVO.pageIndex}'/>"/>
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${exmpManageVO.searchSortOrd}" />"/>
|
||||
<input type="hidden" name="exmpMgrId" value="<c:out value='${mgrInfo.exmpMgrId}' />">
|
||||
<input type="hidden" name="codeId" id="codeId" value="<c:out value='${mgrInfo.codeId}' />">
|
||||
<input type="hidden" name="exmpCd" value="<c:out value="${exmpManageVO.exmpCd}" />" />
|
||||
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>신청서예문수정</h2>
|
||||
<h2>신청원인예문관리 수정</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li><p>조정진행관리</p></li>
|
||||
<li><p>신청서예문관리</p></li>
|
||||
<li><span class="cur_nav">신청서예문수정</span></li>
|
||||
<li><span class="cur_nav">신청원인예문관리 수정</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
@ -322,36 +321,25 @@
|
||||
</div>
|
||||
<!-- //list_상세 -->
|
||||
<div class="tb_tit">
|
||||
<p>항목추가</p>
|
||||
<div class="btn_wrap">
|
||||
<button type="button" class="btn_plus" onclick="fncRowAdd(); return false;"><i></i></button>
|
||||
<button type="button" class="btn_minus" onclick="fncRowDel(); return false;"><i></i></button>
|
||||
</div>
|
||||
<p><kc:code codeId="CC040" code="${mgrInfo.exmpCd}"/></p>
|
||||
</div>
|
||||
<div class="list tbType01 addTb">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 27%">
|
||||
<col style="width: auto">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>항목</th>
|
||||
<th>예문내용</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr>
|
||||
<input type="hidden" name="exmpList[${status.index}].exmpDtlId" value="<c:out value='${list.exmpDtlId}' />">
|
||||
<td>
|
||||
<kc:select codeId="CC040" name="exmpList[${status.index}].exmpCd" defaultText="선택" defaultValue="" selectedValue="${list.exmpCd}" css="style='width:200px; height:38px;'"/>
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="exmpList[<c:out value='${status.index}' />].exmpCn" placeholder="예문을 입력해주세요." style="resize: none; width:96%; margin: 10px 0;"><c:out value='${list.exmpCn}' /></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<tr>
|
||||
<td style="text-align: left; line-height: 30px; padding: 10px;">
|
||||
<textarea name="exmpCn" placeholder="예문을 입력해주세요." style="resize: none; height: 250px; width:96%; margin: 10px 0;"><c:out value='${mgrInfo.exmpCn}' /></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- btn_wrap -->
|
||||
|
||||
@ -36,65 +36,9 @@
|
||||
});
|
||||
});
|
||||
|
||||
function fncRowAdd(){
|
||||
// 등록가능한 갯수
|
||||
var len = $("select[name*=exmpCd]:first option").length;
|
||||
var rowLen = $(".addTb > table > tbody > tr").length;
|
||||
var obj = $(".addTb > table > tbody > tr:last");
|
||||
|
||||
var cloneObj = obj.clone(true);
|
||||
console.log('cloneObj : ',cloneObj);
|
||||
if(len == 0 || rowLen >= (len-1)){
|
||||
alert("등록가능한 항목은 갯수는 " + (len-1) + "개 입니다.");
|
||||
return false;
|
||||
}
|
||||
var exmpCd = cloneObj.find("select[name*=exmpCd]");
|
||||
var exmpCn = cloneObj.find("textarea[name*=exmpCn]");
|
||||
exmpCd.val("");
|
||||
exmpCn.val("");
|
||||
exmpCd.attr("name", exmpCd.attr("name").replace(/[0-9]/gi, rowLen));
|
||||
exmpCn.attr("name", exmpCn.attr("name").replace(/[0-9]/gi, rowLen));
|
||||
obj.after(cloneObj);
|
||||
}
|
||||
|
||||
function fncRowDel(){
|
||||
var rowLen = $(".addTb > table > tbody > tr").length;
|
||||
if(rowLen == 1){
|
||||
alert("더이상 삭제할 수 없습니다.");
|
||||
return false;
|
||||
}
|
||||
$(".addTb > table > tbody > tr:last").remove();
|
||||
}
|
||||
|
||||
function fncSave(){
|
||||
var exmpCcTy = "<c:out value='${mgrInfo.exmpCcTy}' />";
|
||||
if(exmpCcTy != ''){
|
||||
saveProcess();
|
||||
}else{
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/kccadr/adjPgrMgr/exmp/existsExmpManagerDataCheck.do",
|
||||
data: JSON.stringify({exmpCcTy : $("#exmpCcTy").val()
|
||||
,codeId : $('#codeId').val()}),
|
||||
dataType:'json',
|
||||
async: false,
|
||||
processData: false,
|
||||
contentType: "application/json",
|
||||
cache: false,
|
||||
success: function (returnData) {
|
||||
if(returnData.status == "OK"){
|
||||
saveProcess();
|
||||
}else{
|
||||
alert(returnData.data);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (e) { alert("저장에 실패하였습니다."); console.log("ERROR : ", e); }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function saveProcess(){
|
||||
if(!validation()){
|
||||
return false;
|
||||
}
|
||||
@ -115,7 +59,7 @@
|
||||
success:function(returnData){
|
||||
if(returnData.status == "OK"){
|
||||
alert(returnData.data);
|
||||
fncDetail();
|
||||
fncGoList();
|
||||
}else{
|
||||
alert(returnData.data);
|
||||
}
|
||||
@ -140,60 +84,27 @@
|
||||
return flag = false;
|
||||
}
|
||||
|
||||
if($("#exmpCcTy").val() == ''){
|
||||
alert("저작물을 선택해주세요.");
|
||||
var cn = $('#exmpCn').val();
|
||||
|
||||
if(cn == ''){
|
||||
alert("예문내용을 입력해주세요.");
|
||||
return flag = false;
|
||||
}
|
||||
var textLen = conByteLeng(cn);
|
||||
|
||||
var validArr = [];
|
||||
$.each(obj , function(idx, elm){
|
||||
var cd = $(this).find("select[name*=exmpCd]").val();
|
||||
var cn = $(this).find("textarea[name*=exmpCn]").val();
|
||||
validArr[idx] = cd;
|
||||
if(Number(textLen) > 2000){
|
||||
|
||||
var textLen = conByteLeng(cn); //예문 입력 내용 Byte 계산 처리
|
||||
alert("예문 내용의 길이는 2000자를 넘을 수 없습니다.");
|
||||
return flag = false;
|
||||
|
||||
if(cd == ''){
|
||||
alert("항목을 선택해주세요.["+(idx+1)+"]");
|
||||
return flag = false;
|
||||
}
|
||||
|
||||
if(cn == ''){
|
||||
alert("예문내용을 입력해주세요.["+(idx+1)+"]");
|
||||
return flag = false;
|
||||
}
|
||||
|
||||
if(Number(textLen) > 2000){
|
||||
|
||||
alert("예문 내용의 길이는 2000자를 넘을 수 없습니다.");
|
||||
return flag = false;
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
var checkObj = validArr.reduce((accu, curr) => {
|
||||
accu[curr] = (accu[curr] || 0)+1;
|
||||
return accu;
|
||||
}, {});
|
||||
|
||||
$.each(checkObj, function(key, value){
|
||||
if(parseInt(value) > 1){
|
||||
alert("동일한 항목을 중복으로 등록하실 수 없습니다.");
|
||||
return flag = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return flag;
|
||||
}
|
||||
|
||||
function fncGoList(){
|
||||
var varFrom = document.getElementById("createForm");
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpAppManagerList.do'/>";
|
||||
varFrom.submit();
|
||||
}
|
||||
|
||||
function fncDetail(){
|
||||
var varFrom = document.getElementById("createForm");
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpAppManagerDetail.do'/>";
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpEffectManagerList.do'/>";
|
||||
varFrom.submit();
|
||||
}
|
||||
|
||||
@ -208,24 +119,23 @@
|
||||
<input type="hidden" name="searchCondition" value="<c:out value='${exmpManageVO.searchCondition}'/>"/>
|
||||
<input type="hidden" name="searchKeyword" value="<c:out value='${exmpManageVO.searchKeyword}'/>"/>
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpManageVO.pageIndex}'/>"/>
|
||||
<input type="hidden" name="codeId" id="codeId" value="<c:out value="${exmpManageVO.codeId}" />" />
|
||||
<input type="hidden" name="exmpCd" value="<c:out value="${exmpManageVO.exmpCd}" />" />
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>신청서예문등록</h2>
|
||||
<h2>신청취지예문관리 등록</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li><p>조정진행관리</p></li>
|
||||
<li><p>신청서예문관리</p></li>
|
||||
<li><span class="cur_nav">신청서예문등록</span></li>
|
||||
<li><span class="cur_nav">신청취지예문관리 등록</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
|
||||
<div class="cont">
|
||||
<p class="tb_tit">예문 저작물종류</p>
|
||||
<p class="tb_tit">기본 정보</p>
|
||||
<div class="tbType02">
|
||||
<table>
|
||||
<colgroup>
|
||||
@ -241,11 +151,6 @@
|
||||
<td>
|
||||
<input type="text" placeholder="제목을 입력해주세요." name="exmpTit" id="exmpTit" value="">
|
||||
</td>
|
||||
<th>저작물종류</th>
|
||||
<td>
|
||||
<kc:select codeId="CC002" name="exmpCcTy" id="exmpCcTy" defaultText="선택" defaultValue="" selectedValue="${mgrInfo.exmpCcTy}"/>
|
||||
<%-- <kc:select codeId="CC002" name="exmpCcTy" id="exmpCcTy" defaultText="선택" defaultValue=""/> --%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><span class="">첨부파일</span></th>
|
||||
@ -304,31 +209,22 @@
|
||||
</div>
|
||||
<!-- //list_상세 -->
|
||||
<div class="tb_tit">
|
||||
<p>항목추가</p>
|
||||
<div class="btn_wrap">
|
||||
<button type="button" class="btn_plus" onclick="fncRowAdd(); return false;"><i></i></button>
|
||||
<button type="button" class="btn_minus" onclick="fncRowDel(); return false;"><i></i></button>
|
||||
</div>
|
||||
<p>신청취지</p>
|
||||
</div>
|
||||
<div class="list tbType01 addTb">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 27%">
|
||||
<col style="width: auto">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>항목</th>
|
||||
<th>예문내용</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<kc:select codeId="CC040" name="exmpList[0].exmpCd" id="test" defaultText="선택" defaultValue="" selectedValue="" css="style='width:200px; height:38px;'"/>
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="exmpList[0].exmpCn" placeholder="예문을 입력해주세요." style="resize: none; width:96%; margin: 10px 0;"></textarea>
|
||||
<textarea name="exmpCn" id="exmpCn" placeholder="예문을 입력해주세요." style="resize: none; height: 250px; width:96%; margin: 10px 0;"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@ -36,13 +36,13 @@
|
||||
function fncGoList(){
|
||||
var varFrom = document.getElementById("detailForm");
|
||||
varFrom.exmpCcTy.value = '';
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpAppManagerList.do'/>";
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpEffectManagerList.do'/>";
|
||||
varFrom.submit();
|
||||
}
|
||||
|
||||
function fncEdit(){
|
||||
var varFrom = document.getElementById("detailForm");
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpAppManagerModify.do'/>";
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpEffectManagerModify.do'/>";
|
||||
varFrom.submit();
|
||||
}
|
||||
</script>
|
||||
@ -53,25 +53,24 @@
|
||||
<input type="hidden" name="searchCondition" value="<c:out value='${exmpManageVO.searchCondition}'/>"/>
|
||||
<input type="hidden" name="searchKeyword" value="<c:out value='${exmpManageVO.searchKeyword}'/>"/>
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpManageVO.pageIndex}'/>"/>
|
||||
<input type="hidden" name="codeId" value="<c:out value="${exmpManageVO.codeId}" />" />
|
||||
<input type="hidden" name="exmpCd" value="<c:out value="${exmpManageVO.exmpCd}" />" />
|
||||
<input type="hidden" name="exmpMgrId" value="<c:out value="${exmpManageVO.exmpMgrId}" />" />
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>신청서예문상세</h2>
|
||||
<h2>신청취지예문관리 상세</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li><p>조정진행관리</p></li>
|
||||
<li><p>신청서예문관리</p></li>
|
||||
<li><span class="cur_nav">신청서예문상세</span></li>
|
||||
<li><span class="cur_nav">신청취지예문관리 상세</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
|
||||
<div class="cont">
|
||||
<p class="tb_tit">예문 저작물종류</p>
|
||||
<p class="tb_tit">기본정보</p>
|
||||
<div class="tbType02">
|
||||
<table>
|
||||
<colgroup>
|
||||
@ -87,10 +86,6 @@
|
||||
<td>
|
||||
<c:out value='${mgrInfo.exmpTit}' />
|
||||
</td>
|
||||
<th>저작물종류</th>
|
||||
<td>
|
||||
<kc:code codeId="CC002" code="${mgrInfo.exmpCcTy}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<c:if test="${not empty fileList }">
|
||||
<tr>
|
||||
@ -110,49 +105,25 @@
|
||||
</div>
|
||||
<!-- //list_상세 -->
|
||||
<div class="tb_tit">
|
||||
<p>항목추가</p>
|
||||
<%--<div class="btn_wrap">
|
||||
<button type="button" class="btn_plus" onclick="fncRowAdd(); return false;"><i></i></button>
|
||||
<button type="button" class="btn_minus" onclick="fncRowDel(); return false;"><i></i></button>
|
||||
</div>--%>
|
||||
<p><kc:code codeId="CC040" code="${mgrInfo.exmpCd}"/></p>
|
||||
</div>
|
||||
<div class="list tbType01 addTb">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 20%">
|
||||
<%-- <col style="width: 20%"> --%>
|
||||
<col style="width: auto">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>항목</th>
|
||||
<th>예문내용</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:choose>
|
||||
<c:when test="${fn:length(list) eq 0}">
|
||||
<tr>
|
||||
<td>
|
||||
<kc:select codeId="CC040" name="exmpList[0].exmpCd" id="test" defaultText="선택" defaultValue="" selectedValue="" css="style='width:200px; height:38px;'"/>
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="exmpList[0].exmpCn" placeholder="예문을 입력해주세요." style="resize: none; width:96%; margin: 10px 0;"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr>
|
||||
<td>
|
||||
<kc:code codeId="CC040" code="${list.exmpCd}"/>
|
||||
</td>
|
||||
<td style="text-align: left; line-height: 30px; padding: 10px;">
|
||||
<c:out value="${fn:replace(list.exmpCn, crlf , '<br/>')}" escapeXml="false" />
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<tr>
|
||||
<td style="text-align: left; line-height: 30px; padding: 10px;">
|
||||
<c:out value="${fn:replace(mgrInfo.exmpCn, crlf , '<br/>')}" escapeXml="false" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@ -10,20 +10,20 @@
|
||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
|
||||
<%
|
||||
/**
|
||||
* @Class Name : AdjustDeptManagerList.jsp
|
||||
* @Description : 조정부관리
|
||||
* @Modification Information
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------- -------- ---------------------------
|
||||
* @ 2021.08.09 김봉호 최초 생성
|
||||
* @author 김봉호
|
||||
* @since 2021.08.21
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* @Class Name : exmpOpinionManagerList.jsp
|
||||
* @Description : 신청취지 예문 관리
|
||||
* @Modification Information
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------- -------- ---------------------------
|
||||
* @ 2022.10.12 이호영 최초 생성
|
||||
* @author 이호영
|
||||
* @since 2021.10.12
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
*/
|
||||
%>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
@ -39,13 +39,13 @@
|
||||
listForm.pageIndex.value = pageNo ;
|
||||
listForm.searchCondition.value = $('#searchCondition').val();
|
||||
listForm.searchKeyword.value = $('#searchKeyword').val();
|
||||
listForm.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpAppManagerList.do'/>";
|
||||
listForm.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpEffectManagerList.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
|
||||
function fncCreate() {
|
||||
var listForm = document.listForm ;
|
||||
listForm.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpAppManagerCreate.do'/>";
|
||||
listForm.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpEffectManagerCreate.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
|
||||
@ -69,7 +69,7 @@
|
||||
function fncDetailPage(exmpMgrId){
|
||||
var listForm = document.listForm ;
|
||||
listForm.exmpMgrId.value = exmpMgrId;
|
||||
listForm.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpAppManagerDetail.do'/>";
|
||||
listForm.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpEffectManagerDetail.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
|
||||
@ -78,10 +78,10 @@
|
||||
</head>
|
||||
<body>
|
||||
<form:form id="listForm" name="listForm" method="post">
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpAppManageVO.pageIndex}' default='1' />"/>
|
||||
<input type="hidden" name="searchSortCnd" value="<c:out value="${exmpAppManageVO.searchSortCnd}" />" />
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${exmpAppManageVO.searchSortOrd}" />" />
|
||||
<input type="hidden" name="codeId" value="<c:out value="${exmpAppManageVO.codeId}" />" />
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpManageVO.pageIndex}' default='1' />" />
|
||||
<input type="hidden" name="searchSortCnd" value="<c:out value="${exmpManageVO.searchSortCnd}" />" />
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${exmpManageVO.searchSortOrd}" />" />
|
||||
<input type="hidden" name="exmpCd" value="<c:out value="${exmpManageVO.exmpCd}" />" />
|
||||
<input type="hidden" name="expmCcTy" value="" />
|
||||
<input type="hidden" name="exmpMgrId" value="" />
|
||||
|
||||
@ -90,13 +90,13 @@
|
||||
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>신청취지예문관리</h2>
|
||||
<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>
|
||||
<li><span class="cur_nav">신청취지예문관리 목록</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
@ -107,11 +107,11 @@
|
||||
<p>총 건수 : <span><c:out value="${paginationInfo.totalRecordCount}"/></span>건</p>
|
||||
<div class="list_util">
|
||||
<select name="searchCondition" id="searchCondition">
|
||||
<option value="" <c:if test="${empty exmpAppManageVO.searchCondition}">selected="selected"</c:if>>전체</option>
|
||||
<option value="1" <c:if test="${exmpAppManageVO.searchCondition eq '1'}">selected="selected"</c:if>>제목</option>
|
||||
<option value="2" <c:if test="${exmpAppManageVO.searchCondition eq '2'}">selected="selected"</c:if>>항목</option>
|
||||
<option value="" <c:if test="${empty exmpManageVO.searchCondition}">selected="selected"</c:if>>전체</option>
|
||||
<option value="1" <c:if test="${exmpManageVO.searchCondition eq '1'}">selected="selected"</c:if>>제목</option>
|
||||
<option value="2" <c:if test="${exmpManageVO.searchCondition eq '2'}">selected="selected"</c:if>>항목</option>
|
||||
</select>
|
||||
<input type="text" id=searchKeyword name="searchKeyword" class="search_input" placeholder="검색어를 입력하세요" value="<c:out value='${exmpAppManageVO.searchKeyword}'/>">
|
||||
<input type="text" id=searchKeyword name="searchKeyword" class="search_input" placeholder="검색어를 입력하세요" value="<c:out value='${exmpManageVO.searchKeyword}'/>">
|
||||
<button class="btn_search" onclick="fncSelectConciliatorManageList(); return false;">검색</button>
|
||||
</div>
|
||||
</div>
|
||||
@ -120,18 +120,14 @@
|
||||
<div class="list tbType01">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 10%">
|
||||
<col style="width: 10%">
|
||||
<col style="width: auto">
|
||||
<col style="width: 25%">
|
||||
<col style="width: 10%">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>번호</th>
|
||||
<th>저작물</th>
|
||||
<th>제목</th>
|
||||
<th>항목</th>
|
||||
<th>등록일</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -139,29 +135,23 @@
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr>
|
||||
<td>
|
||||
<c:if test="${exmpAppManageVO.searchSortOrd eq 'desc' }">
|
||||
<c:out value="${ ( paginationInfo.totalRecordCount - ((exmpAppManageVO.pageIndex -1)*exmpAppManageVO.pageUnit) ) - status.index }"/>
|
||||
<c:if test="${exmpManageVO.searchSortOrd eq 'desc' }">
|
||||
<c:out value="${ ( paginationInfo.totalRecordCount - ((exmpManageVO.pageIndex -1)*exmpManageVO.pageUnit) ) - status.index }"/>
|
||||
</c:if>
|
||||
<c:if test="${exmpAppManageVO.searchSortOrd eq 'asc' }">
|
||||
<c:out value="${(exmpAppManageVO.pageIndex - 1) * exmpAppManageVO.pageUnit + status.count}"/>
|
||||
<c:if test="${exmpManageVO.searchSortOrd eq 'asc' }">
|
||||
<c:out value="${(exmpManageVO.pageIndex - 1) * exmpManageVO.pageUnit + status.count}"/>
|
||||
</c:if>
|
||||
</td>
|
||||
<td>
|
||||
<kc:code codeId="${list.codeId}" code="${list.exmpCcTy}"/>
|
||||
</td>
|
||||
<td>
|
||||
<a href="#" onclick="fncDetailPage('${list.exmpMgrId}');"><c:out value="${list.exmpTit}"/></a>
|
||||
</td>
|
||||
<td>
|
||||
<c:out value="${list.exmpNms}"/>
|
||||
</td>
|
||||
<td>
|
||||
<c:out value="${list.frstRegistPnttm}"/>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<c:if test="${empty list}">
|
||||
<tr><td colspan="5"><spring:message code="common.nodata.msg" /></td></tr>
|
||||
<tr><td colspan="3"><spring:message code="common.nodata.msg" /></td></tr>
|
||||
</c:if>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@ -36,60 +36,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
function fncRowAdd(){
|
||||
// 등록가능한 갯수
|
||||
var len = $("select[name*=exmpCd]:first option").length;
|
||||
var rowLen = $(".addTb > table > tbody > tr").length;
|
||||
var obj = $(".addTb > table > tbody > tr:last");
|
||||
var cloneObj = obj.clone(true);
|
||||
if(len == 0 || rowLen >= (len-1)){
|
||||
alert("등록가능한 항목은 갯수는 " + (len-1) + "개 입니다.");
|
||||
return false;
|
||||
}
|
||||
var exmpCd = cloneObj.find("select[name*=exmpCd]");
|
||||
var exmpCn = cloneObj.find("textarea[name*=exmpCn]");
|
||||
exmpCd.val("");
|
||||
exmpCn.val("");
|
||||
exmpCd.attr("name", exmpCd.attr("name").replace(/[0-9]/gi, rowLen));
|
||||
exmpCn.attr("name", exmpCn.attr("name").replace(/[0-9]/gi, rowLen));
|
||||
obj.after(cloneObj);
|
||||
}
|
||||
|
||||
function fncRowDel(){
|
||||
var rowLen = $(".addTb > table > tbody > tr").length;
|
||||
if(rowLen == 1){
|
||||
alert("더이상 삭제할 수 없습니다.");
|
||||
return false;
|
||||
}
|
||||
$(".addTb > table > tbody > tr:last").remove();
|
||||
}
|
||||
|
||||
function fn_modifyBtn(){
|
||||
var exmpCcTy = "<c:out value='${mgrInfo.exmpCcTy}' />";
|
||||
if(exmpCcTy != ''){
|
||||
saveProcess();
|
||||
}else{
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/kccadr/adjPgrMgr/exmp/existsExmpManagerDataCheck.do",
|
||||
data: JSON.stringify({exmpCcTy : $("#exmpCcTy").val()}),
|
||||
dataType:'json',
|
||||
async: false,
|
||||
processData: false,
|
||||
contentType: "application/json",
|
||||
cache: false,
|
||||
success: function (returnData) {
|
||||
if(data.status == "OK"){
|
||||
saveProcess();
|
||||
}else{
|
||||
alert(returnData.data);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (e) { alert("저장에 실패하였습니다."); console.log("ERROR : ", e); }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function fn_modifyBtn(){
|
||||
if(!validation()){
|
||||
@ -111,7 +58,7 @@
|
||||
cache: false,
|
||||
success:function(returnData){
|
||||
if(returnData.result == "SUCCESS"){
|
||||
alert("정상적으로 등록되었습니다.");
|
||||
alert("정상적으로 수정되었습니다.");
|
||||
fncDetail();
|
||||
}
|
||||
},
|
||||
@ -147,12 +94,12 @@
|
||||
var textLen = conByteLeng(cn); //예문 입력 내용 Byte 계산 처리
|
||||
|
||||
if(cd == ''){
|
||||
alert("항목을 선택해주세요.["+(idx+1)+"]");
|
||||
alert("항목을 선택해주세요.");
|
||||
return flag = false;
|
||||
}
|
||||
|
||||
if(cn == ''){
|
||||
alert("예문내용을 입력해주세요.["+(idx+1)+"]");
|
||||
alert("예문내용을 입력해주세요.");
|
||||
return flag = false;
|
||||
}
|
||||
|
||||
@ -180,13 +127,13 @@
|
||||
|
||||
function fncGoList(){
|
||||
var varFrom = document.getElementById("modifyForm");
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpAppManagerList.do'/>";
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpEffectManagerList.do'/>";
|
||||
varFrom.submit();
|
||||
}
|
||||
|
||||
function fncDetail(){
|
||||
var varFrom = document.getElementById("modifyForm");
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpAppManagerDetail.do'/>";
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpEffectManagerDetail.do'/>";
|
||||
varFrom.submit();
|
||||
}
|
||||
|
||||
@ -196,27 +143,26 @@
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form:form id="modifyForm" name="modifyForm" commandName="exmpAppManageVO" method="post">
|
||||
<form:form id="modifyForm" name="modifyForm" commandName="exmpManageVO" method="post">
|
||||
<input type="hidden" name="atchFileId" value="<c:out value='${mgrInfo.atchFileId}'/>"/>
|
||||
<input type="hidden" name="limitcount" value="3" /><!-- 최대 업로드 파일갯수 -->
|
||||
<input type="hidden" name="searchCondition" value="<c:out value='${exmpAppManageVO.searchCondition}'/>"/>
|
||||
<input type="hidden" name="searchKeyword" value="<c:out value='${exmpAppManageVO.searchKeyword}'/>"/>
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpAppManageVO.pageIndex}'/>"/>
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${exmpAppManageVO.searchSortOrd}" />"/>
|
||||
<input type="hidden" name="searchCondition" value="<c:out value='${exmpManageVO.searchCondition}'/>"/>
|
||||
<input type="hidden" name="searchKeyword" value="<c:out value='${exmpManageVO.searchKeyword}'/>"/>
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpManageVO.pageIndex}'/>"/>
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${exmpManageVO.searchSortOrd}" />"/>
|
||||
<input type="hidden" name="exmpMgrId" value="<c:out value='${mgrInfo.exmpMgrId}' />">
|
||||
<input type="hidden" name="codeId" id="codeId" value="<c:out value='${mgrInfo.codeId}' />">
|
||||
<input type="hidden" name="exmpCd" value="<c:out value="${exmpManageVO.exmpCd}" />" />
|
||||
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>신청서예문수정</h2>
|
||||
<h2>신청취지예문관리 수정</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li><p>조정진행관리</p></li>
|
||||
<li><p>신청서예문관리</p></li>
|
||||
<li><span class="cur_nav">신청서예문수정</span></li>
|
||||
<li><span class="cur_nav">신청취지예문관리 수정</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
@ -322,36 +268,25 @@
|
||||
</div>
|
||||
<!-- //list_상세 -->
|
||||
<div class="tb_tit">
|
||||
<p>항목추가</p>
|
||||
<div class="btn_wrap">
|
||||
<button type="button" class="btn_plus" onclick="fncRowAdd(); return false;"><i></i></button>
|
||||
<button type="button" class="btn_minus" onclick="fncRowDel(); return false;"><i></i></button>
|
||||
</div>
|
||||
<p><kc:code codeId="CC040" code="${mgrInfo.exmpCd}"/></p>
|
||||
</div>
|
||||
<div class="list tbType01 addTb">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 27%">
|
||||
<col style="width: auto">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>항목</th>
|
||||
<th>예문내용</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr>
|
||||
<input type="hidden" name="exmpList[${status.index}].exmpDtlId" value="<c:out value='${list.exmpDtlId}' />">
|
||||
<td>
|
||||
<kc:select codeId="CC040" name="exmpList[${status.index}].exmpCd" defaultText="선택" defaultValue="" selectedValue="${list.exmpCd}" css="style='width:200px; height:38px;'"/>
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="exmpList[<c:out value='${status.index}' />].exmpCn" placeholder="예문을 입력해주세요." style="resize: none; width:96%; margin: 10px 0;"><c:out value='${list.exmpCn}' /></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<tr>
|
||||
<td style="text-align: left; line-height: 30px; padding: 10px;">
|
||||
<textarea name="exmpCn" placeholder="예문을 입력해주세요." style="resize: none; height: 250px; width:96%; margin: 10px 0;"><c:out value='${mgrInfo.exmpCn}' /></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- btn_wrap -->
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
%>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>의견예문등록</title>
|
||||
<title>진행단계도움말관리</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script type="text/javascript">
|
||||
$(document).ready( function() {
|
||||
@ -36,73 +36,48 @@ $(document).ready( function() {
|
||||
});
|
||||
});
|
||||
|
||||
function fncRowAdd(){
|
||||
// 등록가능한 갯수
|
||||
var len = $("select[name*=exmpCd]:first option").length;
|
||||
var rowLen = $(".addTb > table > tbody > tr").length;
|
||||
var obj = $(".addTb > table > tbody > tr:last");
|
||||
|
||||
function dataChk(data){
|
||||
var flag = false;
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url: "/kccadr/adjPgrMgr/exmp/existsExmpManagerDataCheck.do",
|
||||
data: data,
|
||||
dataType:'json',
|
||||
async: false,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
cache: false,
|
||||
success:function(returnData){
|
||||
console.log(returnData);
|
||||
flag = true;
|
||||
},
|
||||
error:function(request , status, error){
|
||||
console.log('request : ', request);
|
||||
console.log('status : ', status);
|
||||
console.log('error : ', error);
|
||||
}
|
||||
});
|
||||
|
||||
var cloneObj = obj.clone(true);
|
||||
console.log('cloneObj : ',cloneObj);
|
||||
if(len == 0 || rowLen >= (len-1)){
|
||||
alert("등록가능한 항목은 갯수는 " + (len-1) + "개 입니다.");
|
||||
return false;
|
||||
}
|
||||
var exmpCd = cloneObj.find("select[name*=exmpCd]");
|
||||
var exmpCn = cloneObj.find("textarea[name*=exmpCn]");
|
||||
exmpCd.val("");
|
||||
exmpCn.val("");
|
||||
exmpCd.attr("name", exmpCd.attr("name").replace(/[0-9]/gi, rowLen));
|
||||
exmpCn.attr("name", exmpCn.attr("name").replace(/[0-9]/gi, rowLen));
|
||||
obj.after(cloneObj);
|
||||
return flag;
|
||||
}
|
||||
|
||||
function fncRowDel(){
|
||||
var rowLen = $(".addTb > table > tbody > tr").length;
|
||||
if(rowLen == 1){
|
||||
alert("더이상 삭제할 수 없습니다.");
|
||||
return false;
|
||||
}
|
||||
$(".addTb > table > tbody > tr:last").remove();
|
||||
}
|
||||
|
||||
// function fncSave(){
|
||||
// var exmpCcTy = "<c:out value='${mgrInfo.exmpCcTy}' />";
|
||||
// if(exmpCcTy != ''){
|
||||
// saveProcess();
|
||||
// }else{
|
||||
// $.ajax({
|
||||
// type: "POST",
|
||||
// url: "/kccadr/adjPgrMgr/exmp/existsExmpManagerDataCheck.do",
|
||||
// data: JSON.stringify({exmpCcTy : 0
|
||||
// ,codeId : $('#codeId').val()}),
|
||||
// dataType:'json',
|
||||
// async: false,
|
||||
// processData: false,
|
||||
// contentType: "application/json",
|
||||
// cache: false,
|
||||
// success: function (data) {
|
||||
// if(data.status == "OK"){
|
||||
// saveProcess();
|
||||
// }else{
|
||||
// alert(data.message);
|
||||
// return false;
|
||||
// }
|
||||
// },
|
||||
// error: function (e) { alert("저장에 실패하였습니다."); console.log("ERROR : ", e); }
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
|
||||
function saveProcess(){
|
||||
if(!validation()){
|
||||
return false;
|
||||
}
|
||||
if(confirm("해당내용을 저장 하시겠습니까?")){
|
||||
|
||||
|
||||
var data = new FormData(document.getElementById("createForm"));
|
||||
_fileForm2.forEach(function(obj, idx) {
|
||||
if (obj) data.append("file"+idx, obj.fileObj);
|
||||
});
|
||||
|
||||
console.log('dataChk() : ', dataChk(data));
|
||||
|
||||
|
||||
/*
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url: "/kccadr/adjPgrMgr/exmp/insertExmpAppManager.do",
|
||||
@ -115,7 +90,7 @@ function saveProcess(){
|
||||
success:function(returnData){
|
||||
alert(returnData.data);
|
||||
if(data.status == "OK"){
|
||||
fncDetail();
|
||||
fncGoList();
|
||||
}
|
||||
},
|
||||
error:function(request , status, error){
|
||||
@ -123,67 +98,51 @@ function saveProcess(){
|
||||
console.log('status : ', status);
|
||||
console.log('error : ', error);
|
||||
}
|
||||
});
|
||||
}); */
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function validation(){
|
||||
var obj = $(".addTb > table > tbody > tr");
|
||||
var flag = true;
|
||||
|
||||
if($("#exmpTit").val() == ''){
|
||||
alert("제목을 입력해주세요.");
|
||||
$("#exmpTit").focus();
|
||||
return flag = false;
|
||||
}
|
||||
|
||||
// if($("#exmpCcTy").val() == ''){
|
||||
// alert("적용할 진행상태를 선택해주세요.");
|
||||
// return flag = false;
|
||||
// }
|
||||
|
||||
var validArr = [];
|
||||
$.each(obj , function(idx, elm){
|
||||
var cn = $(this).find("textarea[name*=exmpCn]").val();
|
||||
|
||||
var textLen = conByteLeng(cn); //예문 입력 내용 Byte 계산 처리
|
||||
|
||||
var cn = $('#exmpCn').val();
|
||||
|
||||
if(cn == ''){
|
||||
alert("예문내용을 입력해주세요.["+(idx+1)+"]");
|
||||
return flag = false;
|
||||
}
|
||||
|
||||
if(Number(textLen) > 2000){
|
||||
|
||||
alert("예문 내용의 길이는 2000자를 넘을 수 없습니다.");
|
||||
return flag = false;
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
var checkObj = validArr.reduce((accu, curr) => {
|
||||
accu[curr] = (accu[curr] || 0)+1;
|
||||
return accu;
|
||||
}, {});
|
||||
if(cn == ''){
|
||||
alert("예문내용을 입력해주세요.");
|
||||
return flag = false;
|
||||
}
|
||||
var textLen = conByteLeng(cn);
|
||||
|
||||
$.each(checkObj, function(key, value){
|
||||
if(parseInt(value) > 1){
|
||||
alert("동일한 항목을 중복으로 등록하실 수 없습니다.");
|
||||
return flag = false;
|
||||
}
|
||||
});
|
||||
if(Number(textLen) > 2000){
|
||||
|
||||
alert("예문 내용의 길이는 2000자를 넘을 수 없습니다.");
|
||||
return flag = false;
|
||||
|
||||
}
|
||||
|
||||
return flag;
|
||||
}
|
||||
|
||||
|
||||
function fncGoList(){
|
||||
var varFrom = document.getElementById("createForm");
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpOpinionManagerList.do'/>";
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpHelpManagerList.do'/>";
|
||||
varFrom.submit();
|
||||
}
|
||||
|
||||
function fncDetail(){
|
||||
var varFrom = document.getElementById("createForm");
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpOpinionManagerDetail.do'/>";
|
||||
varFrom.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
<style>
|
||||
@ -197,7 +156,7 @@ function fncDetail(){
|
||||
<input type="hidden" name="searchCondition" value="<c:out value='${exmpManageVO.searchCondition}'/>"/>
|
||||
<input type="hidden" name="searchKeyword" value="<c:out value='${exmpManageVO.searchKeyword}'/>"/>
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpManageVO.pageIndex}'/>"/>
|
||||
<input type="hidden" name="codeId" id="codeId" value="<c:out value="${exmpManageVO.codeId}" />" />
|
||||
<input type="hidden" name="exmpCd" value="<c:out value="${exmpManageVO.exmpCd}" />" />
|
||||
<input type="hidden" name="exmpCcTy" id="exmpCcTy" value="" />
|
||||
<!-- <input type="hidden" name="exmpTit" value="답변서예문" /> -->
|
||||
|
||||
@ -207,24 +166,23 @@ function fncDetail(){
|
||||
<div class="box">
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>의견예문등록</h2>
|
||||
<h2>진행단계도움말관리 등록</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li><p>조정진행관리</p></li>
|
||||
<li><p>의견예문관리</p></li>
|
||||
<li><span class="cur_nav">의견예문등록</span></li>
|
||||
<li><span class="cur_nav">진행단계도움말관리 등록</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
|
||||
<div class="cont">
|
||||
<p class="tb_tit">의견</p>
|
||||
<p class="tb_tit">기본 정보</p>
|
||||
<div class="tbType02">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 150px">
|
||||
<col style="width: auto;">
|
||||
<col style="width: 150px">
|
||||
<col style="width: 200px">
|
||||
<col style="width: auto;">
|
||||
</colgroup>
|
||||
|
||||
@ -234,18 +192,17 @@ function fncDetail(){
|
||||
<td>
|
||||
<input type="text" placeholder="제목을 입력해주세요." name="exmpTit" id="exmpTit" value="<c:out value='${mgrInfo.exmpTit}' />">
|
||||
</td>
|
||||
<!-- <th>저작물종류</th> -->
|
||||
<!-- <td> -->
|
||||
<%-- <c:choose> --%>
|
||||
<%-- <c:when test="${not empty mgrInfo}"> --%>
|
||||
<%-- <kc:code codeId="CC002" code="${mgrInfo.exmpCcTy}"/> --%>
|
||||
<%-- <input type="hidden" name="exmpCcTy" value="<c:out value='${mgrInfo.exmpCcTy}'/>"/> --%>
|
||||
<%-- </c:when> --%>
|
||||
<%-- <c:otherwise> --%>
|
||||
<%-- <kc:select codeId="CC002" name="exmpCcTy" id="exmpCcTy" defaultText="선택" defaultValue="" selectedValue="${mgrInfo.exmpCcTy}"/> --%>
|
||||
<%-- </c:otherwise> --%>
|
||||
<%-- </c:choose> --%>
|
||||
<!-- </td> -->
|
||||
<th>적용할 진행상태</th>
|
||||
<td>
|
||||
<select name="exmpCcTy" id="exmpCcTy" class="">
|
||||
<option value="">선택</option>
|
||||
<option value="01">STEP.01 접수</option>
|
||||
<option value="02">STEP.02 기일지정</option>
|
||||
<option value="03">STEP.03 기일개최</option>
|
||||
<option value="04">STEP.04 조정중</option>
|
||||
<option value="05">STEP.05 종료</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><span class="">첨부파일</span></th>
|
||||
@ -322,7 +279,7 @@ function fncDetail(){
|
||||
</div>
|
||||
<!-- //list_상세 -->
|
||||
<div class="tb_tit">
|
||||
<p>예문내용</p>
|
||||
<p>진행단계도움말</p>
|
||||
<!-- <div class="btn_wrap"> -->
|
||||
<!-- <button type="button" class="btn_plus" onclick="fncRowAdd(); return false;"><i></i></button> -->
|
||||
<!-- <button type="button" class="btn_minus" onclick="fncRowDel(); return false;"><i></i></button> -->
|
||||
@ -331,40 +288,19 @@ function fncDetail(){
|
||||
<div class="list tbType01 addTb">
|
||||
<table>
|
||||
<colgroup>
|
||||
<%-- <col style="width: 27%"> --%>
|
||||
<col style="width: auto">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<!-- <th>항목</th> -->
|
||||
<th>예문내용</th>
|
||||
<th>내용</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:choose>
|
||||
<c:when test="${fn:length(list) eq 0}">
|
||||
<tr>
|
||||
<!-- <td> -->
|
||||
<%-- <kc:select codeId="CC040" name="exmpList[0].exmpCd" id="test" defaultText="선택" defaultValue="" selectedValue="" css="style='width:200px; height:38px;'"/> --%>
|
||||
<!-- </td> -->
|
||||
<td>
|
||||
<textarea name="exmpList[0].exmpCn" placeholder="예문을 입력해주세요." style="resize: none; width:96%; margin: 10px 0;"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr>
|
||||
<!-- <td> -->
|
||||
<%-- <kc:select codeId="CC040" name="exmpList[${status.index}].exmpCd" defaultText="선택" defaultValue="" selectedValue="${list.exmpCd}" css="style='width:200px; height:38px;'"/> --%>
|
||||
<!-- </td> -->
|
||||
<td>
|
||||
<textarea name="exmpList[<c:out value='${status.index}' />].exmpCn" placeholder="예문을 입력해주세요." style="resize: none; width:96%; margin: 10px 0;"><c:out value='${list.exmpCn}' /></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea name="exmpCn" id="exmpCn" placeholder="예문을 입력해주세요." style="resize: none; height: 250px; width:96%; margin: 10px 0;"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@ -36,13 +36,13 @@
|
||||
function fncGoList(){
|
||||
var varFrom = document.getElementById("detailForm");
|
||||
varFrom.exmpCcTy.value = '';
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpOpinionManagerList.do'/>";
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpHelpManagerList.do'/>";
|
||||
varFrom.submit();
|
||||
}
|
||||
|
||||
function fncEdit(){
|
||||
var varFrom = document.getElementById("detailForm");
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpOpinionManagerModify.do'/>";
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpHelpManagerModify.do'/>";
|
||||
varFrom.submit();
|
||||
}
|
||||
</script>
|
||||
@ -53,25 +53,24 @@
|
||||
<input type="hidden" name="searchCondition" value="<c:out value='${exmpManageVO.searchCondition}'/>"/>
|
||||
<input type="hidden" name="searchKeyword" value="<c:out value='${exmpManageVO.searchKeyword}'/>"/>
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpManageVO.pageIndex}'/>"/>
|
||||
<input type="hidden" name="codeId" value="<c:out value="${exmpManageVO.codeId}" />" />
|
||||
<input type="hidden" name="exmpCd" value="<c:out value="${exmpManageVO.exmpCd}" />" />
|
||||
<input type="hidden" name="exmpMgrId" value="<c:out value="${exmpManageVO.exmpMgrId}" />" />
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>의견예문상세</h2>
|
||||
<h2>진행단계도움말관리 상세</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li><p>조정진행관리</p></li>
|
||||
<li><p>의견예문관리</p></li>
|
||||
<li><span class="cur_nav">의견예문상세</span></li>
|
||||
<li><span class="cur_nav">진행단계도움말관리 상세</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
|
||||
<div class="cont">
|
||||
<p class="tb_tit">의견</p>
|
||||
<p class="tb_tit">기본정보</p>
|
||||
<div class="tbType02">
|
||||
<table>
|
||||
<colgroup>
|
||||
@ -106,7 +105,7 @@
|
||||
</div>
|
||||
<!-- //list_상세 -->
|
||||
<div class="tb_tit">
|
||||
<p>예문</p>
|
||||
<p>의견</p>
|
||||
<%--<div class="btn_wrap">
|
||||
<button type="button" class="btn_plus" onclick="fncRowAdd(); return false;"><i></i></button>
|
||||
<button type="button" class="btn_minus" onclick="fncRowDel(); return false;"><i></i></button>
|
||||
@ -115,6 +114,7 @@
|
||||
<div class="list tbType01 addTb">
|
||||
<table>
|
||||
<colgroup>
|
||||
<%-- <col style="width: 20%"> --%>
|
||||
<col style="width: auto">
|
||||
</colgroup>
|
||||
<thead>
|
||||
@ -123,13 +123,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr>
|
||||
<td style="text-align: left; line-height: 30px; padding: 10px;">
|
||||
<c:out value="${fn:replace(list.exmpCn, crlf , '<br/>')}" escapeXml="false" />
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<tr>
|
||||
<td style="text-align: left; line-height: 30px; padding: 10px;">
|
||||
<c:out value="${fn:replace(mgrInfo.exmpCn, crlf , '<br/>')}" escapeXml="false" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@ -10,20 +10,20 @@
|
||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
|
||||
<%
|
||||
/**
|
||||
* @Class Name : AdjustDeptManagerList.jsp
|
||||
* @Description : 조정부관리
|
||||
* @Modification Information
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------- -------- ---------------------------
|
||||
* @ 2021.08.09 김봉호 최초 생성
|
||||
* @author 김봉호
|
||||
* @since 2021.08.21
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* @Class Name : exmpOpinionManagerList.jsp
|
||||
* @Description : 도움말 예문 관리
|
||||
* @Modification Information
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------- -------- ---------------------------
|
||||
* @ 2022.10.12 이호영 최초 생성
|
||||
* @author 이호영
|
||||
* @since 2021.10.12
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
*/
|
||||
%>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
@ -81,7 +81,7 @@
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpManageVO.pageIndex}' default='1' />"/>
|
||||
<input type="hidden" name="searchSortCnd" value="<c:out value="${exmpManageVO.searchSortCnd}" />" />
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${exmpManageVO.searchSortOrd}" />" />
|
||||
<input type="hidden" name="codeId" value="<c:out value="${exmpManageVO.codeId}" />" />
|
||||
<input type="hidden" name="exmpCd" value="<c:out value="${exmpManageVO.exmpCd}" />" />
|
||||
<input type="hidden" name="exmpMgrId" value="0" />
|
||||
|
||||
<div class="cont_wrap">
|
||||
|
||||
@ -64,32 +64,6 @@
|
||||
$(".addTb > table > tbody > tr:last").remove();
|
||||
}
|
||||
|
||||
function fn_modifyBtn(){
|
||||
var exmpCcTy = "<c:out value='${mgrInfo.exmpCcTy}' />";
|
||||
if(exmpCcTy != ''){
|
||||
saveProcess();
|
||||
}else{
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/kccadr/adjPgrMgr/exmp/existsExmpManagerDataCheck.do",
|
||||
data: JSON.stringify({exmpCcTy : $("#exmpCcTy").val()}),
|
||||
dataType:'json',
|
||||
async: false,
|
||||
processData: false,
|
||||
contentType: "application/json",
|
||||
cache: false,
|
||||
success: function (returnData) {
|
||||
if(returnData.status == "OK"){
|
||||
saveProcess();
|
||||
}else{
|
||||
alert(returnData.data);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (e) { alert("저장에 실패하였습니다."); console.log("ERROR : ", e); }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function fn_modifyBtn(){
|
||||
if(!validation()){
|
||||
@ -110,7 +84,8 @@
|
||||
contentType: false,
|
||||
cache: false,
|
||||
success:function(returnData){
|
||||
if(returnData.status == "OK"){
|
||||
console.log('returnData : ', returnData);
|
||||
if(returnData.result == "SUCCESS"){
|
||||
alert("정상적으로 등록되었습니다.");
|
||||
fncDetail();
|
||||
}
|
||||
@ -133,11 +108,6 @@
|
||||
return flag = false;
|
||||
}
|
||||
|
||||
if($("#exmpCcTy").val() == ''){
|
||||
alert("저작물을 선택해주세요.");
|
||||
return flag = false;
|
||||
}
|
||||
|
||||
var validArr = [];
|
||||
$.each(obj , function(idx, elm){
|
||||
var cd = $(this).find("select[name*=exmpCd]").val();
|
||||
@ -180,13 +150,13 @@
|
||||
|
||||
function fncGoList(){
|
||||
var varFrom = document.getElementById("modifyForm");
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpOpinionManagerList.do'/>";
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpHelpManagerList.do'/>";
|
||||
varFrom.submit();
|
||||
}
|
||||
|
||||
function fncDetail(){
|
||||
var varFrom = document.getElementById("modifyForm");
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpOpinionManagerDetail.do'/>";
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpHelpManagerDetail.do'/>";
|
||||
varFrom.submit();
|
||||
}
|
||||
|
||||
@ -204,19 +174,18 @@
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpManageVO.pageIndex}'/>"/>
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${exmpManageVO.searchSortOrd}" />"/>
|
||||
<input type="hidden" name="exmpMgrId" value="<c:out value='${mgrInfo.exmpMgrId}' />">
|
||||
<input type="hidden" name="codeId" id="codeId" value="<c:out value='${mgrInfo.codeId}' />">
|
||||
<input type="hidden" name="exmpCd" value="<c:out value="${exmpManageVO.exmpCd}" />" />
|
||||
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>의견예문수정</h2>
|
||||
<h2>진행단계도움말관리 수정</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li><p>조정진행관리</p></li>
|
||||
<li><p>의견예문관리</p></li>
|
||||
<li><span class="cur_nav">의견예문수정</span></li>
|
||||
<li><span class="cur_nav">진행단계도움말관리 수정</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
@ -328,14 +297,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr>
|
||||
<input type="hidden" name="exmpList[${status.index}].exmpDtlId" value="<c:out value='${list.exmpDtlId}' />">
|
||||
<td>
|
||||
<textarea name="exmpList[<c:out value='${status.index}' />].exmpCn" placeholder="예문을 입력해주세요." style="resize: none; width:96%; margin: 10px 0;"><c:out value='${list.exmpCn}' /></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<tr>
|
||||
<td style="text-align: left; line-height: 30px; padding: 10px;">
|
||||
<textarea name="exmpCn" placeholder="예문을 입력해주세요." style="resize: none; height: 250px; width:96%; margin: 10px 0;"><c:out value='${mgrInfo.exmpCn}' /></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@ -36,63 +36,7 @@ $(document).ready( function() {
|
||||
});
|
||||
});
|
||||
|
||||
function fncRowAdd(){
|
||||
// 등록가능한 갯수
|
||||
var len = $("select[name*=exmpCd]:first option").length;
|
||||
var rowLen = $(".addTb > table > tbody > tr").length;
|
||||
var obj = $(".addTb > table > tbody > tr:last");
|
||||
|
||||
var cloneObj = obj.clone(true);
|
||||
console.log('cloneObj : ',cloneObj);
|
||||
if(len == 0 || rowLen >= (len-1)){
|
||||
alert("등록가능한 항목은 갯수는 " + (len-1) + "개 입니다.");
|
||||
return false;
|
||||
}
|
||||
var exmpCd = cloneObj.find("select[name*=exmpCd]");
|
||||
var exmpCn = cloneObj.find("textarea[name*=exmpCn]");
|
||||
exmpCd.val("");
|
||||
exmpCn.val("");
|
||||
exmpCd.attr("name", exmpCd.attr("name").replace(/[0-9]/gi, rowLen));
|
||||
exmpCn.attr("name", exmpCn.attr("name").replace(/[0-9]/gi, rowLen));
|
||||
obj.after(cloneObj);
|
||||
}
|
||||
|
||||
function fncRowDel(){
|
||||
var rowLen = $(".addTb > table > tbody > tr").length;
|
||||
if(rowLen == 1){
|
||||
alert("더이상 삭제할 수 없습니다.");
|
||||
return false;
|
||||
}
|
||||
$(".addTb > table > tbody > tr:last").remove();
|
||||
}
|
||||
|
||||
// function fncSave(){
|
||||
// var exmpCcTy = "<c:out value='${mgrInfo.exmpCcTy}' />";
|
||||
// if(exmpCcTy != ''){
|
||||
// saveProcess();
|
||||
// }else{
|
||||
// $.ajax({
|
||||
// type: "POST",
|
||||
// url: "/kccadr/adjPgrMgr/exmp/existsExmpManagerDataCheck.do",
|
||||
// data: JSON.stringify({exmpCcTy : 0
|
||||
// ,codeId : $('#codeId').val()}),
|
||||
// dataType:'json',
|
||||
// async: false,
|
||||
// processData: false,
|
||||
// contentType: "application/json",
|
||||
// cache: false,
|
||||
// success: function (data) {
|
||||
// if(data.status == "OK"){
|
||||
// saveProcess();
|
||||
// }else{
|
||||
// alert(data.message);
|
||||
// return false;
|
||||
// }
|
||||
// },
|
||||
// error: function (e) { alert("저장에 실패하였습니다."); console.log("ERROR : ", e); }
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
|
||||
function saveProcess(){
|
||||
if(!validation()){
|
||||
@ -115,7 +59,7 @@ function saveProcess(){
|
||||
success:function(returnData){
|
||||
alert(returnData.data);
|
||||
if(data.status == "OK"){
|
||||
fncDetail();
|
||||
fncGoList();
|
||||
}
|
||||
},
|
||||
error:function(request , status, error){
|
||||
@ -138,52 +82,31 @@ function validation(){
|
||||
return flag = false;
|
||||
}
|
||||
|
||||
var cn = $('#exmpCn').val();
|
||||
|
||||
var validArr = [];
|
||||
$.each(obj , function(idx, elm){
|
||||
var cn = $(this).find("textarea[name*=exmpCn]").val();
|
||||
|
||||
var textLen = conByteLeng(cn); //예문 입력 내용 Byte 계산 처리
|
||||
|
||||
if(cn == ''){
|
||||
alert("예문내용을 입력해주세요.");
|
||||
return flag = false;
|
||||
}
|
||||
var textLen = conByteLeng(cn);
|
||||
|
||||
if(cn == ''){
|
||||
alert("예문내용을 입력해주세요.["+(idx+1)+"]");
|
||||
return flag = false;
|
||||
}
|
||||
if(Number(textLen) > 2000){
|
||||
|
||||
if(Number(textLen) > 2000){
|
||||
|
||||
alert("예문 내용의 길이는 2000자를 넘을 수 없습니다.");
|
||||
return flag = false;
|
||||
|
||||
}
|
||||
alert("예문 내용의 길이는 2000자를 넘을 수 없습니다.");
|
||||
return flag = false;
|
||||
|
||||
});
|
||||
var checkObj = validArr.reduce((accu, curr) => {
|
||||
accu[curr] = (accu[curr] || 0)+1;
|
||||
return accu;
|
||||
}, {});
|
||||
|
||||
$.each(checkObj, function(key, value){
|
||||
if(parseInt(value) > 1){
|
||||
alert("동일한 항목을 중복으로 등록하실 수 없습니다.");
|
||||
return flag = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return flag;
|
||||
}
|
||||
|
||||
|
||||
function fncGoList(){
|
||||
var varFrom = document.getElementById("createForm");
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpOpinionManagerList.do'/>";
|
||||
varFrom.submit();
|
||||
}
|
||||
|
||||
function fncDetail(){
|
||||
var varFrom = document.getElementById("createForm");
|
||||
varFrom.action = "<c:url value='/kccadr/adjPgrMgr/exmp/exmpOpinionManagerDetail.do'/>";
|
||||
varFrom.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
<style>
|
||||
@ -197,7 +120,7 @@ function fncDetail(){
|
||||
<input type="hidden" name="searchCondition" value="<c:out value='${exmpManageVO.searchCondition}'/>"/>
|
||||
<input type="hidden" name="searchKeyword" value="<c:out value='${exmpManageVO.searchKeyword}'/>"/>
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpManageVO.pageIndex}'/>"/>
|
||||
<input type="hidden" name="codeId" id="codeId" value="<c:out value="${exmpManageVO.codeId}" />" />
|
||||
<input type="hidden" name="exmpCd" value="<c:out value="${exmpManageVO.exmpCd}" />" />
|
||||
<input type="hidden" name="exmpCcTy" id="exmpCcTy" value="" />
|
||||
<!-- <input type="hidden" name="exmpTit" value="답변서예문" /> -->
|
||||
|
||||
@ -207,18 +130,17 @@ function fncDetail(){
|
||||
<div class="box">
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>의견예문등록</h2>
|
||||
<h2>의견관리 등록</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li><p>조정진행관리</p></li>
|
||||
<li><p>의견예문관리</p></li>
|
||||
<li><span class="cur_nav">의견예문등록</span></li>
|
||||
<li><span class="cur_nav">의견관리 등록</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
|
||||
<div class="cont">
|
||||
<p class="tb_tit">의견</p>
|
||||
<p class="tb_tit">기본 정보</p>
|
||||
<div class="tbType02">
|
||||
<table>
|
||||
<colgroup>
|
||||
@ -322,7 +244,7 @@ function fncDetail(){
|
||||
</div>
|
||||
<!-- //list_상세 -->
|
||||
<div class="tb_tit">
|
||||
<p>예문내용</p>
|
||||
<p>의견</p>
|
||||
<!-- <div class="btn_wrap"> -->
|
||||
<!-- <button type="button" class="btn_plus" onclick="fncRowAdd(); return false;"><i></i></button> -->
|
||||
<!-- <button type="button" class="btn_minus" onclick="fncRowDel(); return false;"><i></i></button> -->
|
||||
@ -331,40 +253,19 @@ function fncDetail(){
|
||||
<div class="list tbType01 addTb">
|
||||
<table>
|
||||
<colgroup>
|
||||
<%-- <col style="width: 27%"> --%>
|
||||
<col style="width: auto">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<!-- <th>항목</th> -->
|
||||
<th>예문내용</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:choose>
|
||||
<c:when test="${fn:length(list) eq 0}">
|
||||
<tr>
|
||||
<!-- <td> -->
|
||||
<%-- <kc:select codeId="CC040" name="exmpList[0].exmpCd" id="test" defaultText="선택" defaultValue="" selectedValue="" css="style='width:200px; height:38px;'"/> --%>
|
||||
<!-- </td> -->
|
||||
<td>
|
||||
<textarea name="exmpList[0].exmpCn" placeholder="예문을 입력해주세요." style="resize: none; width:96%; margin: 10px 0;"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr>
|
||||
<!-- <td> -->
|
||||
<%-- <kc:select codeId="CC040" name="exmpList[${status.index}].exmpCd" defaultText="선택" defaultValue="" selectedValue="${list.exmpCd}" css="style='width:200px; height:38px;'"/> --%>
|
||||
<!-- </td> -->
|
||||
<td>
|
||||
<textarea name="exmpList[<c:out value='${status.index}' />].exmpCn" placeholder="예문을 입력해주세요." style="resize: none; width:96%; margin: 10px 0;"><c:out value='${list.exmpCn}' /></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea name="exmpCn" id="exmpCn" placeholder="예문을 입력해주세요." style="resize: none; height: 250px; width:96%; margin: 10px 0;"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@ -53,25 +53,24 @@
|
||||
<input type="hidden" name="searchCondition" value="<c:out value='${exmpManageVO.searchCondition}'/>"/>
|
||||
<input type="hidden" name="searchKeyword" value="<c:out value='${exmpManageVO.searchKeyword}'/>"/>
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpManageVO.pageIndex}'/>"/>
|
||||
<input type="hidden" name="codeId" value="<c:out value="${exmpManageVO.codeId}" />" />
|
||||
<input type="hidden" name="exmpCd" value="<c:out value="${exmpManageVO.exmpCd}" />" />
|
||||
<input type="hidden" name="exmpMgrId" value="<c:out value="${exmpManageVO.exmpMgrId}" />" />
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>의견예문상세</h2>
|
||||
<h2>의견관리 상세</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li><p>조정진행관리</p></li>
|
||||
<li><p>의견예문관리</p></li>
|
||||
<li><span class="cur_nav">의견예문상세</span></li>
|
||||
<li><span class="cur_nav">의견관리 상세</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
|
||||
<div class="cont">
|
||||
<p class="tb_tit">의견</p>
|
||||
<p class="tb_tit">기본정보</p>
|
||||
<div class="tbType02">
|
||||
<table>
|
||||
<colgroup>
|
||||
@ -106,7 +105,7 @@
|
||||
</div>
|
||||
<!-- //list_상세 -->
|
||||
<div class="tb_tit">
|
||||
<p>예문</p>
|
||||
<p>의견</p>
|
||||
<%--<div class="btn_wrap">
|
||||
<button type="button" class="btn_plus" onclick="fncRowAdd(); return false;"><i></i></button>
|
||||
<button type="button" class="btn_minus" onclick="fncRowDel(); return false;"><i></i></button>
|
||||
@ -115,6 +114,7 @@
|
||||
<div class="list tbType01 addTb">
|
||||
<table>
|
||||
<colgroup>
|
||||
<%-- <col style="width: 20%"> --%>
|
||||
<col style="width: auto">
|
||||
</colgroup>
|
||||
<thead>
|
||||
@ -123,13 +123,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr>
|
||||
<td style="text-align: left; line-height: 30px; padding: 10px;">
|
||||
<c:out value="${fn:replace(list.exmpCn, crlf , '<br/>')}" escapeXml="false" />
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<tr>
|
||||
<td style="text-align: left; line-height: 30px; padding: 10px;">
|
||||
<c:out value="${fn:replace(mgrInfo.exmpCn, crlf , '<br/>')}" escapeXml="false" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@ -11,15 +11,15 @@
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
|
||||
<%
|
||||
/**
|
||||
* @Class Name : AdjustDeptManagerList.jsp
|
||||
* @Description : 조정부관리
|
||||
* @Class Name : exmpOpinionManagerList.jsp
|
||||
* @Description : 의견 예문 관리
|
||||
* @Modification Information
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------- -------- ---------------------------
|
||||
* @ 2021.08.09 김봉호 최초 생성
|
||||
* @author 김봉호
|
||||
* @since 2021.08.21
|
||||
* @ 2022.10.12 이호영 최초 생성
|
||||
* @author 이호영
|
||||
* @since 2021.10.12
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
@ -51,20 +51,6 @@
|
||||
|
||||
|
||||
|
||||
function fn_egov_checkAll(){
|
||||
var FLength = document.getElementsByName("memSeqArr").length;
|
||||
var checkAllValue = document.getElementById('checkAll').checked;
|
||||
|
||||
//undefined
|
||||
if( FLength == 1){
|
||||
document.getElementById("memSeqArr0").checked = checkAllValue;
|
||||
} else {
|
||||
for(var i=0; i < FLength; i++) {
|
||||
document.getElementsByName("memSeqArr")[i].checked = checkAllValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function fncDetailPage(exmpMgrId){
|
||||
var listForm = document.listForm ;
|
||||
@ -81,7 +67,7 @@
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpManageVO.pageIndex}' default='1' />"/>
|
||||
<input type="hidden" name="searchSortCnd" value="<c:out value="${exmpManageVO.searchSortCnd}" />" />
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${exmpManageVO.searchSortOrd}" />" />
|
||||
<input type="hidden" name="codeId" value="<c:out value="${exmpManageVO.codeId}" />" />
|
||||
<input type="hidden" name="exmpCd" value="<c:out value="${exmpManageVO.exmpCd}" />" />
|
||||
<input type="hidden" name="exmpMgrId" value="0" />
|
||||
|
||||
<div class="cont_wrap">
|
||||
@ -89,13 +75,13 @@
|
||||
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>의견예문관리</h2>
|
||||
<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>
|
||||
<li><span class="cur_nav">의견관리 목록</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
|
||||
@ -64,32 +64,6 @@
|
||||
$(".addTb > table > tbody > tr:last").remove();
|
||||
}
|
||||
|
||||
function fn_modifyBtn(){
|
||||
var exmpCcTy = "<c:out value='${mgrInfo.exmpCcTy}' />";
|
||||
if(exmpCcTy != ''){
|
||||
saveProcess();
|
||||
}else{
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/kccadr/adjPgrMgr/exmp/existsExmpManagerDataCheck.do",
|
||||
data: JSON.stringify({exmpCcTy : $("#exmpCcTy").val()}),
|
||||
dataType:'json',
|
||||
async: false,
|
||||
processData: false,
|
||||
contentType: "application/json",
|
||||
cache: false,
|
||||
success: function (returnData) {
|
||||
if(returnData.status == "OK"){
|
||||
saveProcess();
|
||||
}else{
|
||||
alert(returnData.data);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (e) { alert("저장에 실패하였습니다."); console.log("ERROR : ", e); }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function fn_modifyBtn(){
|
||||
if(!validation()){
|
||||
@ -110,7 +84,8 @@
|
||||
contentType: false,
|
||||
cache: false,
|
||||
success:function(returnData){
|
||||
if(returnData.status == "OK"){
|
||||
console.log('returnData : ', returnData);
|
||||
if(returnData.result == "SUCCESS"){
|
||||
alert("정상적으로 등록되었습니다.");
|
||||
fncDetail();
|
||||
}
|
||||
@ -133,11 +108,6 @@
|
||||
return flag = false;
|
||||
}
|
||||
|
||||
if($("#exmpCcTy").val() == ''){
|
||||
alert("저작물을 선택해주세요.");
|
||||
return flag = false;
|
||||
}
|
||||
|
||||
var validArr = [];
|
||||
$.each(obj , function(idx, elm){
|
||||
var cd = $(this).find("select[name*=exmpCd]").val();
|
||||
@ -204,19 +174,18 @@
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${exmpManageVO.pageIndex}'/>"/>
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${exmpManageVO.searchSortOrd}" />"/>
|
||||
<input type="hidden" name="exmpMgrId" value="<c:out value='${mgrInfo.exmpMgrId}' />">
|
||||
<input type="hidden" name="codeId" id="codeId" value="<c:out value='${mgrInfo.codeId}' />">
|
||||
<input type="hidden" name="exmpCd" value="<c:out value="${exmpManageVO.exmpCd}" />" />
|
||||
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>의견예문수정</h2>
|
||||
<h2>의견관리 수정</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li><p>조정진행관리</p></li>
|
||||
<li><p>의견예문관리</p></li>
|
||||
<li><span class="cur_nav">의견예문수정</span></li>
|
||||
<li><span class="cur_nav">의견관리 수정</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
@ -328,14 +297,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr>
|
||||
<input type="hidden" name="exmpList[${status.index}].exmpDtlId" value="<c:out value='${list.exmpDtlId}' />">
|
||||
<td>
|
||||
<textarea name="exmpList[<c:out value='${status.index}' />].exmpCn" placeholder="예문을 입력해주세요." style="resize: none; width:96%; margin: 10px 0;"><c:out value='${list.exmpCn}' /></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<tr>
|
||||
<td style="text-align: left; line-height: 30px; padding: 10px;">
|
||||
<textarea name="exmpCn" placeholder="예문을 입력해주세요." style="resize: none; height: 250px; width:96%; margin: 10px 0;"><c:out value='${mgrInfo.exmpCn}' /></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@ -41,9 +41,9 @@ $(document).ready(function(){
|
||||
<p>조정신청 예문</p> <button class="btn_popup_close tooltip-close" data-focus="fee_info_popup_close" title="팝업 닫기"><i></i></button>
|
||||
</div>
|
||||
<div class="popup_cont">
|
||||
<c:if test="${not empty expm.expmCd}">
|
||||
<c:if test="${not empty exmp.exmpCd}">
|
||||
<div class="cont_tit03">
|
||||
* <kc:code codeId="CC040" code="${expm.expmCd}"/>
|
||||
* <kc:code codeId="CC040" code="${exmp.exmpCd}"/>
|
||||
</div>
|
||||
</c:if>
|
||||
<table class="popup_tbType01 t_center">
|
||||
@ -55,8 +55,8 @@ $(document).ready(function(){
|
||||
<tr>
|
||||
<td colspan="2" style="line-height: 30px; text-align: left;">
|
||||
<c:choose>
|
||||
<c:when test="${not empty expm.expmCn}">
|
||||
<c:out value="${fn:replace(expm.expmCn, crlf , '<br/>')}" escapeXml="false" />
|
||||
<c:when test="${not empty exmp.exmpCn}">
|
||||
<c:out value="${fn:replace(exmp.exmpCn, crlf , '<br/>')}" escapeXml="false" />
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
등록된 내용이 없습니다.
|
||||
|
||||
@ -61,7 +61,6 @@
|
||||
* B :진행
|
||||
* C :종결
|
||||
*/
|
||||
alert(type);
|
||||
var listForm = document.listForm ;
|
||||
listForm.action = "<c:url value='/web/kccadr/adjstExpDetail/adjstIncidentDetail.do'/>";
|
||||
if(type == undefined)
|
||||
|
||||
@ -41,9 +41,9 @@ $(document).ready(function(){
|
||||
<p>조정신청 예문</p> <button class="btn_popup_close tooltip-close" data-focus="fee_info_popup_close" title="팝업 닫기"><i></i></button>
|
||||
</div>
|
||||
<div class="popup_cont">
|
||||
<c:if test="${not empty expm.expmCd}">
|
||||
<c:if test="${not empty exmp.exmpCd}">
|
||||
<div class="cont_tit03">
|
||||
* <kc:code codeId="CC040" code="${expm.expmCd}"/>
|
||||
* <kc:code codeId="CC040" code="${exmp.exmpCd}"/>
|
||||
</div>
|
||||
</c:if>
|
||||
<table class="popup_tbType01 t_center">
|
||||
@ -55,8 +55,8 @@ $(document).ready(function(){
|
||||
<tr>
|
||||
<td colspan="2" style="line-height: 30px; text-align: left;">
|
||||
<c:choose>
|
||||
<c:when test="${not empty expm.expmCn}">
|
||||
<c:out value="${fn:replace(expm.expmCn, crlf , '<br/>')}" escapeXml="false" />
|
||||
<c:when test="${not empty exmp.exmpCn}">
|
||||
<c:out value="${fn:replace(exmp.exmpCn, crlf , '<br/>')}" escapeXml="false" />
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
등록된 내용이 없습니다.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user