2024-08-30 14:30 분쟁조정 사례 작업

This commit is contained in:
user 2024-08-30 14:30:58 +09:00
parent cfaa184fd8
commit 021124da57
11 changed files with 1477 additions and 0 deletions

View File

@ -0,0 +1,15 @@
package seed.com.gtm.dao;
import java.util.List;
import java.util.Map;
public interface ExamBoardDao {
public void boardInsert(Map<String,Object> paramMap);
public List<Map<String,Object>> boardList(Map<String,Object> paramMap);
public int boardListCnt(Map<String, Object> paramMap);
public Map<String,Object> boardView(Map<String, Object> paramMap);
public void boardDel(Map<String, Object> paramMap);
public void boardUpdate(Map<String, Object> paramMap);
public int boardNo(Map<String, Object> paramMap);
public void cntUpdate(Map<String, Object> paramMap);
}

View File

@ -0,0 +1,58 @@
package seed.com.gtm.dao;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
@Repository
public class ExamBoardDaoImpl implements ExamBoardDao {
@Autowired
private SqlSession sqlSession;
@Override
public void boardInsert(Map<String, Object> paramMap) {
sqlSession.insert("exam.insert", paramMap);
}
@Override
public List<Map<String, Object>> boardList(Map<String, Object> paramMap) {
return sqlSession.selectList("exam.select", paramMap);
}
@Override
public int boardListCnt(Map<String, Object> paramMap) {
return sqlSession.selectOne("exam.selectCnt", paramMap);
}
@Override
public Map<String, Object> boardView(Map<String, Object> paramMap) {
return sqlSession.selectOne("exam.selectOne", paramMap);
}
@Override
public void boardDel(Map<String, Object> paramMap) {
sqlSession.update("exam.delete", paramMap);
}
@Override
public void boardUpdate(Map<String, Object> paramMap) {
sqlSession.update("exam.update", paramMap);
}
@Override
public int boardNo(Map<String, Object> paramMap) {
return sqlSession.selectOne("exam.selectNo", paramMap);
}
@Override
public void cntUpdate(Map<String, Object> paramMap) {
sqlSession.update("exam.cntUpdate", paramMap);
}
}

View File

@ -0,0 +1,185 @@
package seed.com.gtm.exam;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import seed.com.gtm.seedfile.SeedFileService;
import seed.com.gtm.util.PageMaker;
import seed.com.gtm.util.SeedCriteria;
import seed.utils.SeedDbUtilsSupport;
@Controller
@RequestMapping("/gtm/case")
public class ExamBoardController {
@Autowired
private ExamBoardService service;
@Autowired
private SeedFileService fileService;
public void setSessionMessageRemove(HttpSession session){
session.removeAttribute("url");
session.removeAttribute("message");
session.removeAttribute("opener");
session.removeAttribute("append");
session.removeAttribute("self");
}
@RequestMapping(value="/exam/{boardIdx}/write.do", method=RequestMethod.GET)
public String examWrite(ModelMap model, @RequestParam Map<String,Object> paramMap, @PathVariable(value="boardIdx") String boardIdx){
model.addAttribute("boardIdx", boardIdx);
return "/seed/_extra/gtm/exam/write";
}
@RequestMapping(value="/exam/{boardIdx}/write.do", method=RequestMethod.POST)
public String examWrite(HttpServletRequest request ,HttpSession session, @RequestParam Map<String,Object> paramMap, @PathVariable(value="boardIdx") String boardIdx, Map<String, Object> map){
paramMap.put("memberName", session.getAttribute("memberName"));
paramMap.put("memberId", session.getAttribute("memberId"));
paramMap.put("boardIdx", boardIdx);
/*paramMap.put("mediationBigType", boardIdx);
paramMap.put("mediationSmallType", boardIdx);
paramMap.put("examType", boardIdx);*/
service.boardInsert(paramMap);
//현제 등록된 게시글의 시퀀스 불러와 맵에 저장
paramMap.put("dataIdx", paramMap.get("seq"));
fileService.fileInsert(paramMap, request, session);
map.put("message", "common.message.reg");
map.put("url", "/gtm/case/exam/"+boardIdx+"/list.do");
return "/seed/_common/jsp/message";
}
@RequestMapping("exam/{boardIdx}/list.do")
public String examList(ModelMap model, HttpSession session, SeedCriteria cri,@RequestParam Map<String,Object> paramMap, @PathVariable(value="boardIdx") String boardIdx){
//로그인페이지로 튕겨나가지 않게 우선은 임시방편
session.setAttribute("siteIdx", "case");
String menuName = "";
if(boardIdx.equals("402")){
menuName = "공정거래";
}else if(boardIdx.equals("403")){
menuName = "가맹사업거래";
}else if(boardIdx.equals("404")){
menuName = "하도급거래";
}else if(boardIdx.equals("405")){
menuName = "대규모유통업거래";
}else if(boardIdx.equals("406")){
menuName = "불공정약관";
}else if(boardIdx.equals("407")){
menuName = "대리점거래";
}
session.setAttribute("menuName", menuName);
//페이징 관련
paramMap.put("pageStart", cri.getPageStart());
paramMap.put("perPageNum", cri.getPerPageNum());
paramMap.put("boardIdx", boardIdx);
List<Map<String,Object>> bbsList = service.boardList(paramMap);
PageMaker pageMaker = new PageMaker();
pageMaker.setCri(cri);
pageMaker.setTotalCount(service.boardListCnt(paramMap));
model.addAttribute("boardIdx", boardIdx);
model.addAttribute("bbsList", bbsList);
model.addAttribute("pageMaker", pageMaker);
return "/seed/_extra/gtm/exam/list";
}
@RequestMapping("exam/{boardIdx}/view.do")
public String examView(ModelMap model, @RequestParam Map<String,Object> paramMap, @PathVariable(value="boardIdx") String boardIdx){
SeedDbUtilsSupport seeDbUtilsSupport = new SeedDbUtilsSupport();
paramMap.put("dataIdx", paramMap.get("examNo"));
Map<String, Object> bbsInfoView = service.boardView(paramMap);
bbsInfoView.put("EXAM_CONT", seeDbUtilsSupport.clobToString(bbsInfoView.get("EXAM_CONT")));
bbsInfoView.put("EXAM_CONT2", seeDbUtilsSupport.clobToString(bbsInfoView.get("EXAM_CONT2")));
bbsInfoView.put("EXAM_CONT3", seeDbUtilsSupport.clobToString(bbsInfoView.get("EXAM_CONT3")));
bbsInfoView.put("EXAM_CONT4", seeDbUtilsSupport.clobToString(bbsInfoView.get("EXAM_CONT4")));
model.addAttribute("bbsView", bbsInfoView);
model.addAttribute("boardIdx", boardIdx);
model.addAttribute("fileList", fileService.fileList(paramMap));
return "/seed/_extra/gtm/exam/view";
}
@RequestMapping("exam/{boardIdx}/bbsDel.do")
public String examDel(HttpSession session, @RequestParam Map<String,Object> paramMap, @PathVariable(value="boardIdx") String boardIdx, Map<String, Object> map){
paramMap.put("dataIdx", paramMap.get("examNo"));
service.boardDel(paramMap);
fileService.fileDelAll(paramMap);
this.setSessionMessageRemove(session);
map.put("message", "common.message.del");
map.put("url", "/gtm/case/exam/"+boardIdx+"/list.do?searchType=" + paramMap.get("searchType") +
"&searchTilte=" + paramMap.get("searchTilte") + "&page=" + paramMap.get("page")
);
return "/seed/_common/jsp/message";
}
@RequestMapping(value="/exam/{boardIdx}/edit.do", method=RequestMethod.GET)
public String examEdit(ModelMap model, @RequestParam Map<String,Object> paramMap, @PathVariable(value="boardIdx") String boardIdx){
SeedDbUtilsSupport seeDbUtilsSupport = new SeedDbUtilsSupport();
paramMap.put("dataIdx", paramMap.get("examNo"));
Map<String, Object> bbsInfoView = service.boardView(paramMap);
bbsInfoView.put("EXAM_CONT", seeDbUtilsSupport.clobToString(bbsInfoView.get("EXAM_CONT")));
bbsInfoView.put("EXAM_CONT2", seeDbUtilsSupport.clobToString(bbsInfoView.get("EXAM_CONT2")));
bbsInfoView.put("EXAM_CONT3", seeDbUtilsSupport.clobToString(bbsInfoView.get("EXAM_CONT3")));
bbsInfoView.put("EXAM_CONT4", seeDbUtilsSupport.clobToString(bbsInfoView.get("EXAM_CONT4")));
List<Map<String, Object>> fileList = fileService.fileList(paramMap);
model.addAttribute("bbsView", bbsInfoView);
model.addAttribute("boardIdx", boardIdx);
model.addAttribute("fileList", fileList);
model.addAttribute("fileListSize", fileList.size());
return "/seed/_extra/gtm/exam/edit";
}
@RequestMapping(value="/exam/{boardIdx}/edit.do", method=RequestMethod.POST)
public String examEdit(HttpSession session, HttpServletRequest request, @RequestParam Map<String,Object> paramMap, @PathVariable(value="boardIdx") String boardIdx, Map<String, Object> map){
paramMap.put("memberId", session.getAttribute("memberId"));
paramMap.put("dataIdx", paramMap.get("examNo"));//fileInsert에서 필요
service.boardUpdate(paramMap);
fileService.fileInsert(paramMap, request, session);
fileService.fileDel(paramMap);
this.setSessionMessageRemove(session);
map.put("message", "common.message.mod");
map.put("url", "/gtm/case/exam/"+boardIdx+"/view.do?examNo=" + paramMap.get("examNo") +
"&searchType=" + paramMap.get("searchType") + "&searchTilte=" + paramMap.get("searchTilte") + "&page=" + paramMap.get("page")+
"&fileFuncType=" + paramMap.get("fileFuncType")
);
return "/seed/_common/jsp/message";
}
}

View File

@ -0,0 +1,48 @@
package seed.com.gtm.exam;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import seed.com.gtm.dao.ExamBoardDao;
@Service
public class ExamBoardService {
@Autowired
private ExamBoardDao dao;
public void boardInsert(Map<String,Object> paramMap){
dao.boardInsert(paramMap);
}
public List<Map<String, Object>> boardList(Map<String,Object> paramMap){
return dao.boardList(paramMap);
}
public int boardListCnt(Map<String, Object> paramMap){
return dao.boardListCnt(paramMap);
}
public Map<String, Object> boardView(Map<String, Object> paramMap){
return dao.boardView(paramMap);
}
public void boardDel(Map<String, Object> paramMap){
dao.boardDel(paramMap);
}
public void boardUpdate(Map<String, Object> paramMap){
dao.boardUpdate(paramMap);
}
public int boardNo(Map<String, Object> paramMap){
return dao.boardNo(paramMap);
}
public void cntUpdate(Map<String, Object> paramMap){
dao.cntUpdate(paramMap);
}
}

View File

@ -0,0 +1,196 @@
package seed.utils;
import java.io.IOException;
import java.io.Reader;
import java.math.BigDecimal;
import java.sql.SQLException;
import org.apache.log4j.Logger;
import com.tmax.tibero.jdbc.TbNClob;
import oracle.sql.CLOB;
public class SeedDbUtilsSupport {
private Logger log = Logger.getLogger(this.getClass());
public String sqlQueryPagingProcess(String strSql, int page, int row){
SeedProperties seedProperties = new SeedProperties();
String dbType = seedProperties.getConfigValue("database").toUpperCase();
//String dbVersion = seedProperties.getConfigValue("database.version").toUpperCase();
int firstPage = (page - 1) * row;
if(strSql!=null && !"".equals(strSql)){
if(dbType.equals("ORACLE") || dbType.equals("CUBRID")){
strSql = " SELECT * FROM " +
" ( " +
" SELECT ROW_.*, ROWNUM AS RNUM FROM " +
" ( " + strSql + " ) ROW_" +
" ) " +
" WHERE RNUM > " + firstPage + " AND ROWNUM <= " + row;
}else if(dbType.equals("MSSQL")){
String strOrder = strSql.substring(strSql.lastIndexOf("ORDER BY")+8);
strSql = " SELECT TOP " + row + " * FROM " +
" ( " +
" SELECT ROW_.*, ROW_NUMBER() OVER(ORDER BY " + strOrder +
" ) AS RNUM " +
" FROM (" + strSql.substring(0, strSql.lastIndexOf("ORDER BY")) + ") AS ROW_ ) AS ROW1_ " +
" WHERE RNUM > " + firstPage;
}else if(dbType.equals("MYSQL")){
strSql = strSql + " LIMIT " + firstPage + " , " + row;
}else if(dbType.equals("DB2")) {
strSql = " SELECT * FROM " +
" ( " +
" SELECT ROW_.*, ROWNUM AS RNUM " +
" FROM (" + strSql + ") ROW_ " +
" ) " +
" WHERE RNUM > " + firstPage +
" AND ROWNUM <= " + row;
}
}
return strSql;
}
public String sqlQueryPagingProcess(String strSql, int page, int row, String dbType){
int firstPage = (page - 1) * row;
if(strSql!=null && !"".equals(strSql)){
if(dbType.equals("ORACLE") || dbType.equals("CUBRID")){
strSql = " SELECT * FROM " +
" ( " +
" SELECT ROW_.*, ROWNUM AS RNUM FROM " +
" ( " + strSql + " ) ROW_" +
" ) " +
" WHERE RNUM > " + firstPage + " AND ROWNUM <= " + row;
}else if(dbType.equals("MSSQL")){
String strOrder = strSql.substring(strSql.lastIndexOf("ORDER BY")+8);
strSql = " SELECT TOP " + row + " * FROM " +
" ( " +
" SELECT ROW_.*, ROW_NUMBER() OVER(ORDER BY " + strOrder +
" ) AS RNUM " +
" FROM (" + strSql.substring(0, strSql.lastIndexOf("ORDER BY")) + ") AS ROW_ ) AS ROW1_ " +
" WHERE RNUM > " + firstPage;
}else if(dbType.equals("MYSQL")){
strSql = strSql + " LIMIT " + firstPage + " , " + row;
}else if(dbType.equals("DB2")) {
strSql = " SELECT * FROM " +
" ( " +
" SELECT ROW_.*, ROWNUM AS RNUM " +
" FROM (" + strSql + ") ROW_ " +
" ) " +
" WHERE RNUM > " + firstPage +
" AND ROWNUM <= " + row;
}
}
return strSql;
}
public String clobToString(Object convertData){
if(convertData!=null){
CLOB clobData = (CLOB)convertData;
StringBuffer returnStr = new StringBuffer();
try {
Reader reader = clobData.getCharacterStream();
char[] buff = new char[1024];
int nchars = 0;
while ((nchars = reader.read(buff)) > 0) {
returnStr.append(buff, 0, nchars);
}
}catch (SQLException e) {
log.error("CHECK ERROR:",e);
}catch (IOException e) {
log.error("CHECK ERROR:",e);
}
return returnStr.toString();
}else{
return "";
}
}
public String tbNclobToString(Object convertData){
if(convertData!=null){
TbNClob clobData = (TbNClob)convertData;
StringBuffer returnStr = new StringBuffer();
try {
Reader reader = clobData.getCharacterStream();
char[] buff = new char[1024];
int nchars = 0;
while ((nchars = reader.read(buff)) > 0) {
returnStr.append(buff, 0, nchars);
}
}catch (SQLException e) {
log.error("CHECK ERROR:",e);
}catch (IOException e) {
log.error("CHECK ERROR:",e);
}
return returnStr.toString();
}else{
return "";
}
}
public String dbMoveClobToString(Object convertData, String dbType){
if(convertData!=null){
if(dbType.equals("ORACLE")){
CLOB clobData = (CLOB)convertData;
StringBuffer returnStr = new StringBuffer();
try {
Reader reader = clobData.getCharacterStream();
char[] buff = new char[1024];
int nchars = 0;
while ((nchars = reader.read(buff)) > 0) {
returnStr.append(buff, 0, nchars);
}
}catch (SQLException e) {
log.error("CHECK ERROR:",e);
}catch (IOException e) {
log.error("CHECK ERROR:",e);
}
return returnStr.toString();
}else if(dbType.equals("TIBERO")){
TbNClob clobData = (TbNClob)convertData;
StringBuffer returnStr = new StringBuffer();
try {
Reader reader = clobData.getCharacterStream();
char[] buff = new char[1024];
int nchars = 0;
while ((nchars = reader.read(buff)) > 0) {
returnStr.append(buff, 0, nchars);
}
}catch (SQLException e) {
log.error("CHECK ERROR:",e);
}catch (IOException e) {
log.error("CHECK ERROR:",e);
}catch (Exception e) {
log.error("CHECK ERROR:",e);
}
return returnStr.toString();
}else{
return "";
}
}else{
return "";
}
}
public int countDataToInt(Object countData){
SeedProperties seedProperties = new SeedProperties();
String dbType = seedProperties.getConfigValue("database").toUpperCase();
if(countData!=null){
if(dbType.equals("ORACLE")){
return ((BigDecimal)countData).intValue();
}else if(dbType.equals("MSSQL") || dbType.equals("MYSQL") || dbType.equals("CUBRID")){
return SeedUtils.safeLongToInt((Long)countData);
}
}
return 0;
}
}

View File

@ -0,0 +1,181 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="exam">
<insert id="insert" parameterType="java.util.HashMap">
<selectKey keyProperty="seq" resultType="int" order="BEFORE">
select SEQ_EXAMBBS.NEXTVAL FROM DUAL
</selectKey>
INSERT INTO C_EXAMBBS(
EXAM_NO,
EXAM_ID,
EXAM_SUBJ,
EXAM_CONT,
EXAM_CONT2,
EXAM_CONT3,
EXAM_CONT4,
EXAM_CNT,
EXAM_REGMEM_ID,
EXAM_REGMEM_NM,
EXAM_REGDATE,
EXAM_MODMEM_ID,
EXAM_MODDATE,
DEL_YN,
EXAM_TYPE,
EXAM_RESULT1,
EXAM_RESULT2
) VALUES (
${seq},
#{boardIdx},
#{examSubj},
#{editorParam_examCont},
#{editorParam_examCont2},
#{editorParam_examCont3},
#{editorParam_examCont4},
0,
#{memberId},
#{memberName},
SYSDATE,
#{memberId},
SYSDATE,
'N',
#{examType},
#{medBig2},
#{medSmall2}
)
</insert>
<select id="select" parameterType="java.util.HashMap" resultType="java.util.HashMap">
SELECT * FROM
(
SELECT ROW_.*, ROWNUM AS RNUM FROM
(
SELECT EXAM_NO,
EXAM_SUBJ,
EXAM_CONT,
EXAM_CNT,
EXAM_REGMEM_NM,
EXAM_REGDATE,
NVL(EXAM_TYPE, '-') AS EXAM_TYPE,
NVL(EXAM_RESULT1, '-') AS EXAM_RESULT1,
NVL(EXAM_RESULT2, '-') AS EXAM_RESULT2
FROM C_EXAMBBS
WHERE DEL_YN = 'N'
<!-- 20190902 테스트 추가..... -->
<if test="boardIdx != null">
AND EXAM_ID = #{boardIdx}
</if>
<if test="searchMenu != 'ALL' and searchMenu != null">
AND EXAM_TYPE LIKE '%' || #{titleName} || '%'
</if>
<if test="searchTilte != null and searchTilte != ''">
<choose>
<when test="searchType == 'title'">AND EXAM_SUBJ LIKE '%' || #{searchTilte} || '%'</when>
<when test="searchType == 'content'">AND EXAM_CONT LIKE '%' || #{searchTilte} || '%'</when>
</choose>
</if>
ORDER BY EXAM_REGDATE DESC
) ROW_
)
WHERE RNUM > #{pageStart} AND #{perPageNum} >= ROWNUM
</select>
<select id="selectCnt" parameterType="java.util.HashMap" resultType="int">
SELECT COUNT(*)
FROM C_EXAMBBS
WHERE 1=1
AND DEL_YN = 'N'
<!-- 20190902 테스트 추가..... -->
<if test="boardIdx != null">
AND EXAM_ID = #{boardIdx}
</if>
<if test="searchMenu != 'ALL'">
<choose>
<when test="searchMenu == 'search2'">AND EXAM_ID = '402'</when>
<when test="searchMenu == 'search3'">AND EXAM_ID = '403'</when>
<when test="searchMenu == 'search4'">AND EXAM_ID = '404'</when>
<when test="searchMenu == 'search5'">AND EXAM_ID = '405'</when>
<when test="searchMenu == 'search6'">AND EXAM_ID = '406'</when>
</choose>
</if>
<if test="searchTilte != null and searchTilte != ''">
<choose>
<when test="searchType == 'title'">AND EXAM_SUBJ LIKE '%' || #{searchTilte} || '%'</when>
<when test="searchType == 'content'">AND EXAM_CONT LIKE '%' || #{searchTilte} || '%'</when>
</choose>
</if>
</select>
<select id="selectOne" parameterType="java.util.HashMap" resultType="java.util.HashMap">
SELECT EXAM_SUBJ,
EXAM_REGMEM_NM,
NVL(EXAM_CONT, '') AS EXAM_CONT,
NVL(EXAM_CONT2, '') AS EXAM_CONT2,
NVL(EXAM_CONT3, '') AS EXAM_CONT3,
NVL(EXAM_CONT4, '') AS EXAM_CONT4,
NVL(EXAM_TYPE, '사건 유형 미정') AS EXAM_TYPE,
NVL(EXAM_RESULT1, '대분류 미정') AS EXAM_RESULT1,
NVL(EXAM_RESULT2, '소분류 미정') AS EXAM_RESULT2,
EXAM_REGDATE,
EXAM_ID,
EXAM_CNT
FROM C_EXAMBBS
WHERE EXAM_NO = #{examNo}
</select>
<update id="update">
UPDATE C_EXAMBBS
SET EXAM_SUBJ = #{examSubj},
EXAM_CONT = #{editorParam_examCont},
EXAM_CONT2 = #{editorParam_examCont2},
EXAM_CONT3 = #{editorParam_examCont3},
EXAM_CONT4 = #{editorParam_examCont4},
EXAM_MODMEM_ID = #{memberId},
EXAM_MODDATE = SYSDATE,
EXAM_TYPE = #{examType},
EXAM_RESULT1 = #{medBig2},
EXAM_RESULT2 = #{medSmall2}
WHERE EXAM_NO = #{examNo}
</update>
<delete id="delete">
UPDATE C_EXAMBBS
SET DEL_YN = 'Y'
WHERE EXAM_NO = #{examNo}
</delete>
<select id="selectNo" parameterType="java.util.HashMap" resultType="int">
SELECT NVL(MAX(EXAM_NO), 0)
FROM C_EXAMBBS
</select>
<delete id="cntUpdate">
UPDATE C_EXAMBBS
SET EXAM_CNT = EXAM_CNT+1
WHERE EXAM_NO = #{examNo}
</delete>
<!-- 201909 추가 -->
<select id="ExamBBsInfo" parameterType="egovMap" resultType="egovMap">
SELECT
CODE_NAME AS value,
CODE_IDXS AS code
FROM C_CODE
WHERE CODE_PARENT_IDX =
CASE
WHEN #{boardIdxx} = '402' THEN '1101000000'
WHEN #{boardIdxx} = '403' THEN '1102000000'
WHEN #{boardIdxx} = '404' THEN '1103000000'
WHEN #{boardIdxx} = '405' THEN '1104000000'
WHEN #{boardIdxx} = '406' THEN '1105000000'
WHEN #{boardIdxx} = '407' THEN '1106000000'
END
AND CODE_STATUS = 'U'
</select>
</mapper>

View File

@ -0,0 +1,259 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!doctype html>
<html lang="ko">
<head>
<title>정보 관리</title>
<link href='/css/space.css' rel='stylesheet' type='text/css'/>
<link href='/css/seed.contents.css' rel='stylesheet' type='text/css'/>
<link href='/css/seed.mediaquery.css' rel='styleGsheet' type='text/css'/>
<link href='/site/ntcc/css/gtmCustom.css' rel='stylesheet' type='text/css'/>
<script src="/editor/webnote.js"></script>
</head>
<body>
<div class="page-title-wrap clear">
<div class="page-title-inner">
<h3 class="page-title">분쟁조정 사례(${menuName})</h3>
<div class="tooltipBox type01">
<button type="button" class="page-tip">페이지안내</button>
<div class="tooltipText">
<p>분쟁조정 사례(${menuName})를 수정 할 수 있는 페이지 입니다.</p>
</div>
</div>
</div>
</div>
<form:form name="frm" id="frm" action="" method="post">
<input type="hidden" name="boardIdxx" id="boardIdxx" value="">
<input type="hidden" name="medBig" id="medBig" value="">
</form:form>
<form:form name="writeFrm" id="writeFrm" action="/gtm/case/exam/${boardIdx}/edit.do" method="post">
<input type="hidden" name="examNo" value="${param.examNo}">
<input type="hidden" name="searchType" value="${param.searchType}">
<input type="hidden" name="searchTilte" value="${param.searchTilte}">
<input type="hidden" name="page" id="page" value="${param.page}">
<input type="hidden" name="medBig2" id="medBig2" value="">
<input type="hidden" name="medSmall2" id="medSmall2" value="">
<input type="hidden" name="examType" id="examType" value="">
<fieldset>
<div class="bbs-view-layout">
<div class="bbs-view-item">
<p class="item-title">제목</p>
<div class="item-box">
<input type="text" name="examSubj" id="examSubj" maxlength="250" value="${bbsView.EXAM_SUBJ}">
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">작성자</p>
<div class="item-box">
${memberName}
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">첨부자료</p>
<div class="item-box">
<div class="temp-file-area">
<label for="upFile" class="temp-file-button">첨부파일</label>
</div>
<ul class="upFileHtml" id="upFileHtml">
<c:forEach items="${fileList}" var="list" varStatus="status">
<li id="fileUploadP${status.count}" class="bbsFileHtml">
<img src="/img/user/bbs/icon_file.gif" alt="gif">&nbsp;&nbsp;<span>${list.EXTRA_FILE_NAME}</span>
<a href="javascript:;" onclick="javascript:jf_delete_file('${status.count}', '${list.EXTRA_FILE_SIZE}');" class="del ml7"><img src="/img/user/bbs/btn_file_del.png" alt="삭제"></a>
<input type="hidden" name="fileIdx" value="${list.EXTRA_FILE_IDX}" class="fileIdxClass"/>
</li>
</c:forEach>
</ul>
<input type="hidden" name="fileFuncType" value="exam" />
<input type="hidden" name="uploadFileCnt" value="${fileListSize}" id="uploadFileCntId" />
<input type="hidden" name="deleteFileData" value="" id="deleteFileDataId" />
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">사건 유형 및 분류 선택</p>
<div class="item-box">
<select name="examTypeSell" id="examTypeSell" class="sel_default">
</select>
<span> / </span>
<!-- <select name="mediationBigType" id="mediationBigType" class="sch-select" onchange="mediationSmall()"> -->
<select name="mediationBigType" id="mediationBigType" class="sch-select">
<option value="">대분류 선택</option>
<option value="big1" >불성립</option>
<option value="big2" >성립</option>
<option value="big4" >심의</option>
<option value="big5" >종결</option>
<option value="big3" >중지</option>
</select>
<!-- <span> / </span>
<select name="mediationSmallType" id="mediationSmallType" class="sch-select">
<option value="">소분류 선택</option>
</select> -->
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">사건의 개요</p>
<div class="item-box">
<textarea class="bg_essential " name="editorParam_examCont" id="content" title="내용을 입력하세요" style="width:99%; height:300px;" editor="webnote" tools="deny:images,emoticon,special_chars">${bbsView.EXAM_CONT}</textarea>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">분쟁사실 및 당사자 주장</p>
<div class="item-box">
<textarea class="bg_essential " name="editorParam_examCont2" id="content" title="내용을 입력하세요" style="width:99%; height:300px;" editor="webnote" tools="deny:images,emoticon,special_chars">${bbsView.EXAM_CONT2}</textarea>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">검토</p>
<div class="item-box">
<textarea class="bg_essential " name="editorParam_examCont3" id="content" title="내용을 입력하세요" style="width:99%; height:300px;" editor="webnote" tools="deny:images,emoticon,special_chars">${bbsView.EXAM_CONT3}</textarea>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">조정결과</p>
<div class="item-box">
<textarea class="bg_essential " name="editorParam_examCont4" id="content" title="내용을 입력하세요" style="width:99%; height:300px;" editor="webnote" tools="deny:images,emoticon,special_chars">${bbsView.EXAM_CONT4}</textarea>
</div>
</div>
</div>
<div class="btn-area">
<button type="submit" class="btn-normal violet mb10">저장</button>
<a href="javascript:goList()" class="btn-normal lightgray">목록</a>
</div>
</fieldset>
</form:form>
<!-- 파일 입시저장을 위한 폼 -->
<form id="fileTempUpFrm" action="/seed/extra/temp/file.do" method="post" enctype="multipart/form-data">
<input type="hidden" name="fileFuncType" value="exam" />
<div class="temp-file-area">
<input type="file" name="upFile" id="upFile" class="essential temp-file-hideen" onchange="fileTempUp();" required title="첨부파일" value="" style="ime-mode: disabled;" >
</div>
</form>
<form name="paramFrm" id="paramFrm" action="/gtm/case/exam/${boardIdx}/list.do" method="get">
<input type="hidden" name="searchType" value="${param.searchType}">
<input type="hidden" name="searchTilte" value="${param.searchTilte}">
<input type="hidden" name="page" id="page" value="${param.page}">
</form>
<script type="text/javascript">
webnote.setConfig({
auto_start: true, //페이지로딩시 페이지에 웹노트 에디터를 자동으로 생성할것인지(true: 자동생성, false: 생성안함)
lang: "ko", //언어셋(lang 디렉토리내에 언어셋.txt 파일이 있어야 함(ex: ko.txt)
base_dir: "/editor", //웹노트 설치디렉토리를 직접 지정
css_url: "/editor/webnote.css", //기본 css 파일을 직접 지정
icon_dir: "/editor/icon", //기본 아이콘 디렉토리를 직접 지정
emoticon_dir: "/editor/emoticon", //기본 이모티콘 디렉토리를 직접 지정
attach_proc: "/common/proc/case/editor/editorFileReg.do", //에디터에 이미지 즉시 업로드를 처리하는 서버스크립트를 직접 지정
delete_proc: "/common/proc/case/editor/editorFileDel.do", //에디터에 즉시 업로드된 이미지 삭제를 처리하는 서버스크립트를 직접 지정(attach_proc 과 같을경우 설정 불필요)
use_blind: true, //팝업메뉴 출력 시 반투명 배경 스크린 사용여부(true:사용(기본), false: 미사용)
allow_dndupload: false, //드래그&드롭을 통한 이미지 파일 업로드 허용 여부
allow_dndresize: false, //드래그&드롭을 통한 에디터 사이즈(높이) 조절 허용 여부
//fonts: ["굴림체","궁서체"], //선택할 수 있는 폰트종류를 직접 정의
//fontsizes: ["9pt","10pt"], //선택할 수 있는 폰트사이즈를 직접 정의(단위포함)
lineheights: ["120%","150%","180%"], //선택할 수 있는 줄간격을 직접 정의(단위포함)
//emoticons: ["Nerd"], //선택할 수 있는 이모티콘들을 직접 정의(png파일은 확장자 생략 가능하며, 그외에는 확장자까지 입력 : PNG, GIF, JPG 만 가능)
//specialchars: ["§","☆"], //선택할 수 있는 특수문자를 직접 정의
code_highlight: true,
fade_popup: true, //팝업 열리기/닫히기 시 fade in/out 기능 적용 여부(사용pc 사용이 낮은경우 false로 )
attach_list_view: false
});
$(window).load(function(){
$("#idx_toolbar_webnote_content_imagecenter").hide();
$("#idx_toolbarcontainer_webnote_content img").each(function(index, item) {
if($(item).attr("class") != "webnote_seperator"){
var event = $(item).attr("onclick");
$(item).wrap("<a href='javascript:;' onclick="+event+">");
$(item).attr("onclick", "");
}
});
});
$(document).ready(function(){
loadexamGubun();
var medBiglist = $("#mediationBigType option");
for(var i = 0; i < medBiglist.size(); i++){
if(medBiglist[i].text == '${bbsView.EXAM_RESULT1}'){
$(medBiglist[i]).attr("selected", true);
}
}
$("#writeFrm").submit(function(){
if($("#examSubj").val().trim() == ""){
alert("제목을 입력해 주세요.");
$("#examSubj").focus();
return false;
}
/* if($("#regMberNm").val().trim() == ""){
alert("작성자를 입력해 주세요.");
$("#regMberNm").focus();
return false;
} */
/* if($("#content").val() == ""){
alert("내용을 입력해 주세요.");
$("#content").focus();
return false;
} */
$("#examType").val($("#examTypeSell option:selected").text());
$("#medBig2").val($("#mediationBigType option:selected").text());
});
});
function goList(){
$("#paramFrm").submit();
}
function loadexamGubun(){
var url = "";
$("#type").val("L");
$("#boardIdxx").val(${boardIdx});
var param = jQuery('#frm').serialize();
url = "/user/case/Exam/ajax/BBsInfo.do";
XHR2(url, param, function(r){
var html2 = "";
if(r.data.length != 0){
$("#examTypeSell").empty();
$.each(r.data, function(k,v){
if(v.value == '${bbsView.EXAM_TYPE}'){
html2 += '<option name=search value='+v.value+' selected>'+v.value+'</option>';
}else{
html2 += '<option name=search value='+v.value+'>'+v.value+'</option>';
}
})
$("#examTypeSell").append(html2);
}
})
}
</script>
<script src="/js/jquery.form.js"></script>
<script src="/js/seedFileUtil.js"></script>
</body>
</html>

View File

@ -0,0 +1,159 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!doctype html>
<html lang="ko">
<head>
<title>정보 관리</title>
<link href='/css/space.css' rel='stylesheet' type='text/css'/>
<link href='/css/seed.contents.css' rel='stylesheet' type='text/css'/>
<link href='/css/seed.mediaquery.css' rel='styleGsheet' type='text/css'/>
<link href='/site/ntcc/css/gtmCustom.css' rel='stylesheet' type='text/css'/>
<script src="/editor/webnote.js"></script>
</head>
<body>
<div class="page-title-wrap clear">
<div class="page-title-inner">
<h3 class="page-title">분쟁조정 사례(${menuName})</h3>
<div class="tooltipBox type01">
<button type="button" class="page-tip">페이지안내</button>
<div class="tooltipText">
<p>분쟁조정 사례(${menuName})에 대한 목록 화면 입니다.</p>
</div>
</div>
</div>
<div class="sch-content-wrap clear">
<form name="searchFrm" id="searchFrm" action="" method="get">
<input type="hidden" name="examNo" id="examNo" value="">
<input type="hidden" name="page" id="page" value="${pageMaker.cri.page}">
<input type="hidden" name="fileFuncType" id="fileFuncType" value="exam">
<fieldset>
<select name="searchType" id="searchType" class="sch-select" title="자료유형 선택">
<option value="title" <c:if test="${param.searchType == 'title'}">selected="selected"</c:if>>제목</option>
<option value="content" <c:if test="${param.searchType == 'content'}">selected="selected"</c:if>>내용</option>
</select>
<input type="text" name="searchTilte" value="${param.searchTilte}" class="sch-text" title="제목검색">
<button type="button" class="btn-page-sch" title="검색 완료 버튼" onclick="goPage('search', '')">검색</button>
</fieldset>
</form>
</div>
</div>
<div class="form-wrap">
<div class="table-layout br-none">
<table>
<caption>분쟁조정 사례 테이블입니다.</caption>
<colgroup>
<col class="item-mobile-hidden" style="width:5%">
<col class="item-mobile-hidden" style="width:15%">
<col class="title">
<col class="item-mobile-hidden" style="width:10%">
<col class="item-mobile-hidden" style="width:10%">
<col class="item-mobile-hidden" style="width:5%">
</colgroup>
<thead>
<tr>
<th scope="col" class="item-mobile-hidden">번호</th>
<th scope="col" class="item-mobile-hidden">유형</th>
<th scope="col">제목</th>
<th scope="col" class="item-mobile-hidden">대분류</th>
<!-- <th scope="col" class="item-mobile-hidden">소분류</th>
-->
<th scope="col" class="item-mobile-hidden">조회수</th>
</tr>
</thead>
<tbody>
<c:forEach items="${bbsList}" var="list" varStatus="status">
<tr>
<td class="item-mobile-hidden">${(pageMaker.totalCount - ((pageMaker.cri.page-1)*pageMaker.cri.perPageNum)) - status.index}</td>
<td class="item-mobile-hidden">${list.EXAM_TYPE}</td>
<td><a href="javascript:goPage('view', '${list.EXAM_NO}');">${list.EXAM_SUBJ}</a></td>
<td class="item-mobile-hidden">${list.EXAM_RESULT1}</td>
<%-- <td class="item-mobile-hidden">${list.EXAM_RESULT2}</td>
--%>
<td class="item-mobile-hidden">${list.EXAM_CNT}</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div class="change-state-area" style="overflow: hidden;">
<div align="right">
<button type="button" onclick="goPage('write','')" class="btn-change-state" style="background-color: #5e66ab;">글쓰기</button>
</div>
</div>
</div>
<!-- 페이징 -->
<div class="pagination-container">
<div class="pagination-inner clear">
<div class='pagination-control prev clear'>
<a class='first-btn' href="javascript:goPage('paging', '1')" title="첫페이지"></a>
<c:choose>
<c:when test="${pageMaker.prev}">
<a class='prev-btn' href="javascript:goPage('paging', '${pageMaker.cri.page - 1}')" title="이전페이지"><img src="/img/common/list_navi2.gif" alt="이전 목록으로 이동" /></a>
</c:when>
<c:otherwise>
<a class='prev-btn' href="javascript:goPage('paging', '${pageMaker.cri.page}')" title="이전페이지"><img src="/img/common/list_navi2.gif" alt="이전 목록으로 이동" /></a>
</c:otherwise>
</c:choose>
</div>
<ul class='pagination clear'>
<c:forEach begin="${pageMaker.startPage}" end="${pageMaker.endPage }" var="idx">
<c:choose>
<c:when test="${idx == pageMaker.cri.page }">
<li><a class='on' href="javascript:goPage('paging', '${idx}')" title="현재페이지">${idx}</a></li>
</c:when>
<c:otherwise>
<li><a href="javascript:goPage('paging', '${idx}')" title="${idx}페이지">${idx}</a></li>
</c:otherwise>
</c:choose>
</c:forEach>
</ul>
<div class='pagination-control next clear'>
<c:choose>
<c:when test="${pageMaker.next}">
<a class='next-btn' href="javascript:goPage('paging', '${pageMaker.cri.page + 1}')" title="다음페이지"><img src="/img/common/list_navi3.gif" alt="다음 목록으로 이동" /></a>
</c:when>
<c:otherwise>
<a class='next-btn' href="javascript:goPage('paging', '${pageMaker.cri.page}')" title="다음페이지"><img src="/img/common/list_navi3.gif" alt="다음 목록으로 이동" /></a>
</c:otherwise>
</c:choose>
<a class='last-btn' href="javascript:goPage('paging', '${pageMaker.endPage}')" title="마지막페이지"><img src="/img/common/list_navi4.gif" alt="마지막 목록으로 이동" /></a>
</div>
</div>
</div>
<!-- 페이징 END -->
<script type="text/javascript">
function goPage(type, param){
if(type == 'write'){
$("#examNo").remove();
$("#fileFuncType").remove();
$("#searchFrm").attr("action","/gtm/case/exam/${boardIdx}/write.do");
$("#searchFrm").submit();
}else if(type == 'search'){
$("#examNo").remove();
$("#fileFuncType").remove();
$("#page").val("1");
$("#searchFrm").attr("action","/gtm/case/exam/${boardIdx}/list.do");
$("#searchFrm").submit();
}else if(type == 'view'){
$("#examNo").val(param);
$("#searchFrm").attr("action","/gtm/case/exam/${boardIdx}/view.do");
$("#searchFrm").submit();
}else if(type == 'paging'){
$("#examNo").remove();
$("#fileFuncType").remove();
$("#page").val(param);
$("#searchFrm").attr("action","/gtm/case/exam/${boardIdx}/list.do");
$("#searchFrm").submit();
}
}
</script>
</body>
</html>

View File

@ -0,0 +1,142 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!doctype html>
<html lang="ko">
<head>
<title>정보 관리</title>
<link href='/css/space.css' rel='stylesheet' type='text/css'/>
<link href='/css/seed.contents.css' rel='stylesheet' type='text/css'/>
<link href='/css/seed.mediaquery.css' rel='styleGsheet' type='text/css'/>
<link href='/site/ntcc/css/gtmCustom.css' rel='stylesheet' type='text/css'/>
<script src="/editor/webnote.js"></script>
</head>
<body>
<div class="page-title-wrap clear">
<div class="page-title-inner">
<h3 class="page-title">분쟁조정 사례(${menuName})</h3>
<div class="tooltipBox type01">
<button type="button" class="page-tip">페이지안내</button>
<div class="tooltipText">
<p>분쟁조정 사례(${menuName}) 상세 페이지 입니다.</p>
</div>
</div>
</div>
</div>
<div class="bbs-view-layout">
<div class="bbs-view-item">
<p class="item-title">제목</p>
<div class="item-box">
${bbsView.EXAM_SUBJ}
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">작성자</p>
<div class="item-box">
${bbsView.EXAM_REGMEM_NM}
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">작성일</p>
<div class="item-box">
${bbsView.EXAM_REGDATE}
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">조회수</p>
<div class="item-box">
${bbsView.EXAM_CNT}
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">사건 유형</p>
<div class="item-box">
${bbsView.EXAM_TYPE}
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">결과 대분류</p>
<div class="item-box">
${bbsView.EXAM_RESULT1}<%-- / ${bbsView.EXAM_RESULT2} --%>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">첨부자료</p>
<div class="item-box">
<c:forEach items="${fileList}" var="list" varStatus="status">
<div style="margin-top:10px">
<img src="/img/user/bbs/icon_file.gif" alt="gif">&nbsp;&nbsp;<a href="/seed/extra/down/file.do?dataIdx=${list.EXTRA_FILE_IDX}&funcType=${list.EXTRA_FUNC_TYPE}&pathKey1=${siteIdx}">${list.EXTRA_FILE_NAME}</a>
</div>
</c:forEach>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">사건의 개요</p>
<div class="item-box">
<%-- ${bbsView.EXAM_CONT} --%>
<c:out escapeXml='false' value="${bbsView.EXAM_CONT }"></c:out>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">분쟁사실 및 당사자 주장</p>
<div class="item-box">
<%-- ${bbsView.EXAM_CONT} --%>
<c:out escapeXml='false' value="${bbsView.EXAM_CONT2 }"></c:out>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">검토</p>
<div class="item-box">
<%-- ${bbsView.EXAM_CONT} --%>
<c:out escapeXml='false' value="${bbsView.EXAM_CONT3 }"></c:out>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">조정결과</p>
<div class="item-box">
<%-- ${bbsView.EXAM_CONT} --%>
<c:out escapeXml='false' value="${bbsView.EXAM_CONT4 }"></c:out>
</div>
</div>
</div>
<div class="btn-area">
<button type="button" class="btn-normal violet mb10" onclick="moveFunc('del')">삭제</button>
<button type="button" class="btn-normal violet mb10" onclick="moveFunc('edit')">수정</button>
<a href="javascript:moveFunc('list')" class="btn-normal lightgray">목록</a>
</div>
<form action="" method="get" id="moveFrm">
<input type="hidden" name="examNo" id="examNo" value="${param.examNo}">
<input type="hidden" name="searchType" value="${param.searchType }">
<input type="hidden" name="searchTilte" value="${param.searchTilte }">
<input type="hidden" name="page" id="page" value="${param.page }">
<input type="hidden" name="fileFuncType" id="fileFuncType" value="exam">
</form>
<script type="text/javascript">
function moveFunc(type){
if(type == "edit"){
$("#moveFrm").attr("action", "/gtm/case/exam/${boardIdx}/edit.do");
$("#moveFrm").submit();
}else if(type == "list"){
$("#examNo").remove();
$("#fileFuncType").remove();
$("#moveFrm").attr("action", "/gtm/case/exam/${boardIdx}/list.do");
$("#moveFrm").submit();
}else if(type == "del"){
if(confirm("정말 삭제 하시겠습니까?")){
$("#moveFrm").attr("action", "/gtm/case/exam/${boardIdx}/bbsDel.do");
$("#moveFrm").submit();
}
}
}
</script>
</body>
</html>

View File

@ -0,0 +1,234 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!doctype html>
<html lang="ko">
<head>
<title>정보 관리</title>
<link href='/css/space.css' rel='stylesheet' type='text/css'/>
<link href='/css/seed.contents.css' rel='stylesheet' type='text/css'/>
<link href='/css/seed.mediaquery.css' rel='styleGsheet' type='text/css'/>
<link href='/site/ntcc/css/gtmCustom.css' rel='stylesheet' type='text/css'/>
<script src="/editor/webnote.js"></script>
</head>
<body>
<div class="page-title-wrap clear">
<div class="page-title-inner">
<h3 class="page-title">분쟁조정 사례(${menuName})</h3>
<div class="tooltipBox type01">
<button type="button" class="page-tip">페이지안내</button>
<div class="tooltipText">
<p>분쟁조정 사례(${menuName})를 작성 할 수 있는 페이지 입니다.</p>
</div>
</div>
</div>
</div>
<form:form name="frm" id="frm" action="" method="post">
<input type="hidden" name="boardIdxx" id="boardIdxx" value="">
<input type="hidden" name="medBig" id="medBig" value="">
</form:form>
<%-- <form:form name="writeFrm" id="writeFrm" action="${pageType}/${siteIdx}/${boardIdx}/write.do" method="post"> --%>
<form:form name="writeFrm" id="writeFrm" action="/gtm/case/exam/${boardIdx}/write.do" method="post">
<fieldset>
<div class="bbs-view-layout">
<div class="bbs-view-item">
<p class="item-title">제목</p>
<div class="item-box">
<input type="text" name="examSubj" id="examSubj" maxlength="250">
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">작성자</p>
<div class="item-box">
${memberName}
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">첨부자료</p>
<div class="item-box">
<div class="temp-file-area">
<label for="upFile" class="temp-file-button">첨부파일</label>
</div>
<ul class="upFileHtml" id="upFileHtml">
</ul>
<input type="hidden" name="fileFuncType" value="exam" />
<input type="hidden" name="uploadFileCnt" value="0" id="uploadFileCntId" />
<input type="hidden" name="deleteFileData" value="" id="deleteFileDataId" />
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">사건 유형 및 분류 선택</p>
<div class="item-box">
<select name="examTypeSell" id="examTypeSell" class="sel_default">
</select>
<span> / </span>
<select name="mediationBigType" id="mediationBigType" class="sch-select" onchange="mediationSmall()">
<option value="">대분류 선택</option>
<option value="big1" >불성립</option>
<option value="big2" >성립</option>
<option value="big4" >심의</option>
<option value="big5" >종결</option>
<option value="big3" >중지</option>
</select>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">사건의 개요</p>
<div class="item-box">
<textarea class="bg_essential " name="editorParam_examCont" id="content" title="내용을 입력하세요" style="width:99%; height:300px;" editor="webnote" tools="deny:images,emoticon,special_chars">
</textarea>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">분쟁사실 및 당사자 주장</p>
<div class="item-box">
<textarea class="bg_essential " name="editorParam_examCont2" id="content" title="내용을 입력하세요" style="width:99%; height:300px;" editor="webnote" tools="deny:images,emoticon,special_chars">
</textarea>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">검토</p>
<div class="item-box">
<textarea class="bg_essential " name="editorParam_examCont3" id="content" title="내용을 입력하세요" style="width:99%; height:300px;" editor="webnote" tools="deny:images,emoticon,special_chars">
</textarea>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">조정결과</p>
<div class="item-box">
<textarea class="bg_essential " name="editorParam_examCont4" id="content" title="내용을 입력하세요" style="width:99%; height:300px;" editor="webnote" tools="deny:images,emoticon,special_chars">
</textarea>
</div>
</div>
</div>
<input type="hidden" name="medBig2" id="medBig2" value="">
<input type="hidden" name="medSmall2" id="medSmall2" value="">
<input type="hidden" name="examType" id="examType" value="">
<div class="btn-area">
<button type="submit" class="btn-normal violet mb10">저장</button>
<a href="javascript:goList()" class="btn-normal lightgray">목록</a>
</div>
</fieldset>
</form:form>
<!-- 파일 입시저장을 위한 폼 -->
<form id="fileTempUpFrm" action="/seed/extra/temp/file.do" method="post" enctype="multipart/form-data">
<input type="hidden" name="fileFuncType" value="exam" />
<div class="temp-file-area">
<input type="file" name="upFile" id="upFile" class="essential temp-file-hideen" onchange="fileTempUp();" required title="첨부파일" value="" style="ime-mode: disabled;" >
</div>
</form>
<form name="paramFrm" id="paramFrm" action="/gtm/case/exam/${boardIdx}/list.do" method="get">
<input type="hidden" name="searchType" value="${param.searchType}">
<input type="hidden" name="searchTilte" value="${param.searchTilte}">
<input type="hidden" name="page" id="page" value="${param.page}">
</form>
<%-- <form:form name="frm" id="frm" action="" method="post">
<input type="hidden" name="medBig" id="medBig" value="">
</form:form> --%>
<script type="text/javascript">
webnote.setConfig({
auto_start: true, //페이지로딩시 페이지에 웹노트 에디터를 자동으로 생성할것인지(true: 자동생성, false: 생성안함)
lang: "UTF-8", //언어셋(lang 디렉토리내에 언어셋.txt 파일이 있어야 함(ex: ko.txt)
base_dir: "/editor", //웹노트 설치디렉토리를 직접 지정
css_url: "/editor/webnote.css", //기본 css 파일을 직접 지정
icon_dir: "/editor/icon", //기본 아이콘 디렉토리를 직접 지정
emoticon_dir: "/editor/emoticon", //기본 이모티콘 디렉토리를 직접 지정
attach_proc: "/common/proc/case/editor/editorFileReg.do", //에디터에 이미지 즉시 업로드를 처리하는 서버스크립트를 직접 지정
delete_proc: "/common/proc/case/editor/editorFileDel.do", //에디터에 즉시 업로드된 이미지 삭제를 처리하는 서버스크립트를 직접 지정(attach_proc 과 같을경우 설정 불필요)
use_blind: true, //팝업메뉴 출력 시 반투명 배경 스크린 사용여부(true:사용(기본), false: 미사용)
allow_dndupload: false, //드래그&드롭을 통한 이미지 파일 업로드 허용 여부
allow_dndresize: false, //드래그&드롭을 통한 에디터 사이즈(높이) 조절 허용 여부
//fonts: ["굴림체","궁서체"], //선택할 수 있는 폰트종류를 직접 정의
//fontsizes: ["9pt","10pt"], //선택할 수 있는 폰트사이즈를 직접 정의(단위포함)
lineheights: ["120%","150%","180%"], //선택할 수 있는 줄간격을 직접 정의(단위포함)
//emoticons: ["Nerd"], //선택할 수 있는 이모티콘들을 직접 정의(png파일은 확장자 생략 가능하며, 그외에는 확장자까지 입력 : PNG, GIF, JPG 만 가능)
//specialchars: ["§","☆"], //선택할 수 있는 특수문자를 직접 정의
code_highlight: true,
fade_popup: true, //팝업 열리기/닫히기 시 fade in/out 기능 적용 여부(사용pc 사용이 낮은경우 false로 )
attach_list_view: false
});
$(window).load(function(){
$("#idx_toolbar_webnote_content_imagecenter").hide();
$("#idx_toolbarcontainer_webnote_content img").each(function(index, item) {
if($(item).attr("class") != "webnote_seperator"){
var event = $(item).attr("onclick");
$(item).wrap("<a href='javascript:;' onclick="+event+">");
$(item).attr("onclick", "");
}
});
});
$(document).ready(function(){
loadexamGubun();
$("#writeFrm").submit(function(){
if($("#examSubj").val().trim() == ""){
alert("제목을 입력해 주세요.");
$("#examSubj").focus();
return false;
}
$("#examType").val($("#examTypeSell option:selected").text());
$("#medBig2").val($("#mediationBigType option:selected").text());
$("#medSmall2").val($("#mediationSmallType option:selected").text());
/* if($("#regMberNm").val().trim() == ""){
alert("작성자를 입력해 주세요.");
$("#regMberNm").focus();
return false;
} */
/* if($("#content").val() == ""){
alert("내용을 입력해 주세요.");
$("#content").focus();
return false;
} */
});
});
function goList(){
$("#paramFrm").submit();
}
function loadexamGubun(){
var url = "";
$("#type").val("L");
$("#boardIdxx").val(${boardIdx});
var param = jQuery('#frm').serialize();
url = "/user/case/Exam/ajax/BBsInfo.do";
XHR2(url, param, function(r){
var html2 = "";
if(r.data.length != 0){
$("#examTypeSell").empty();
$.each(r.data, function(k,v){
html2 += '<option name=search value='+v.value+'>'+v.value+'</option>';
})
$("#examTypeSell").append(html2);
}
})
}
</script>
<script src="/js/jquery.form.js"></script>
<script src="/js/seedFileUtil.js"></script>
</body>
</html>

Binary file not shown.