초기소스

This commit is contained in:
jazz
2025-10-29 17:08:05 +09:00
parent e531aa9540
commit 439a379a02
7551 changed files with 1234427 additions and 3 deletions

View File

@@ -0,0 +1,150 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.Date" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui"%>
<%@ taglib prefix="f" uri="/WEB-INF/tlds/f.tld"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
Class Name : CmnuseInfoFormR.jsp
Description : 반품교환정보 상세 화면
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2024-02-10 유재현 최초 생성(퍼블리싱 적용)
--%>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GC ONE 관리자</title>
<%@ include file="/WEB-INF/views/comm/mngr/Include.jsp"%>
<script>
/* ********************************************************
* 시작 화면 조작 함수
******************************************************** */
$(document).ready(function(){
fn_init_display();
let urlParams = new URLSearchParams(window.location.search);
});
const fn_init_display = function() {
// Ck에디터 생성
const sopmalCd = $("#sopmalCd").val();
fn_create_ckeditor('#infoCn', sopmalCd);
}
/**********************************************
* 수정
***********************************************/
const fn_update_cmnuseInfor = function() {
let url = '<c:url value="/mngr/goods/cmnuse/updateCmnuseInfoDtl"/>';
let saveForm = $('#cmnuseInfoUpdForm');
let formData = new FormData();
formData.append('infoCn', fn_get_editor_data('#infoCn'));
let input = $('#fileInputC')[0];
if(input !== undefined){
formData.append('file', input.files[0]);
}
saveForm.serializeArray().forEach(function(item) {
formData.append(item.name, item.value);
});
if(confirm('반품교환정보를 <spring:message code="confirm.common.update"/>')) {
$.ajax({
type : 'post',
url : url,
data : formData,
processData: false,
contentType: false,
success : function(result) {
if (JSON.parse(result.resBody.result).message === 1) {
alert('<spring:message code="success.common.update"/>');
location.reload()
} else {
alert('<spring:message code="fail.common.update"/>');
}
}
});
}
}
/**********************************************
* 등록 화면 이동
***********************************************/
const fn_move_list = function() {
location.replace('/mngr/goods/cmnuse/selectCmnuseInfoList');
};
</script>
</head>
<body>
<%@ include file="/WEB-INF/views/comm/mngr/Header.jsp"%>
<main class="main">
<%@ include file="/WEB-INF/views/comm/mngr/Left.jsp"%>
<div class="content">
<div class="content__inner">
<button class="side-nav__fold"><span class="visually-hidden">좌측메뉴 펼치기/닫기</span></button>
<div class="page-title">
<h2 class="page-title__title">반품교환정보 수정</h2>
<div class="page-title__btn-container">
<button class="btn outline" onclick="fn_move_list();"><spring:message code="button.list"/></button>
<button class="btn primary" onclick="fn_update_cmnuseInfor(${resultMap.cmnuseInfoInnb});"><spring:message code="button.update"/></button>
</div>
</div>
<form id="cmnuseInfoUpdForm" name="cmnuseInfoUpdForm">
<section class="content-section">
<h3 class="content-section__inner-title">반품교환정보</h3>
<div class="table-wrapper">
<table class="table">
<caption>반품교환정보명</caption>
<colgroup>
<col style="width: 12%;">
<col>
</colgroup>
<tbody>
<tr>
<th>반품교환정보명</th>
<td>
<div class="td-inner">
<div class="word-limit-input">
<input type="hidden" name="cmnuseInfoInnb" id="cmnuseInfoInnb" value="<c:out value="${resultMap.cmnuseInfoInnb}"/>">
<input type="hidden" name="sopmalCd" id="sopmalCd" value="<c:out value="${resultMap.sopmalCd}"/>">
<input type="text" class="input-text word-limit" name="cmnuseInfoSj" maxlength="30" size="60" title="공용 정보명" placeholder="공용 정보명을 입력해 주세요." value="<c:out value="${resultMap.cmnuseInfoSj}"/>"/>
</div>
</div>
</td>
</tr>
<tr>
<th>설명</th>
<td colspan="3">
<div class="td-inner">
<textarea class="textarea" title="에디터 입력" rows="10" id="infoCn"> <c:out value="${resultMap.infoCn}"/> </textarea>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</section>
</form>
</div>
</div>
</main>
</body>
</html>

View File

@@ -0,0 +1,147 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.Date" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui"%>
<%@ taglib prefix="f" uri="/WEB-INF/tlds/f.tld"%>
<%--
Class Name : CmnuseInfoFormR.jsp
Description : 반품교환정보 등록 화면
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2024-02-10 유재현 최초 생성(퍼블리싱 적용)
--%>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GC ONE 관리자</title>
<%@ include file="/WEB-INF/views/comm/mngr/Include.jsp"%>
<script>
/* ********************************************************
* 시작 화면 조작 함수
******************************************************** */
$(document).ready(function(){
fn_init_display();
let urlParams = new URLSearchParams(window.location.search);
});
const fn_init_display = function() {
// Ck에디터 생성
fn_create_ckeditor('#infoCn');
}
/**********************************************
* 등록
***********************************************/
const fn_regist_cmnuseInfor = function() {
let url = '<c:url value="/mngr/goods/cmnuse/insertCmnuseInfo"/>';
let saveForm = $('#cmnuseInfoRegForm');
let formData = new FormData();
formData.append('infoCn', fn_get_editor_data('#infoCn'));
let input = $('#fileInputC')[0];
if(input !== undefined){
formData.append('file', input.files[0]);
}
saveForm.serializeArray().forEach(function(item) {
formData.append(item.name, item.value);
});
if(confirm('반품교환정보를 <spring:message code="confirm.common.insert"/>')) {
$.ajax({
type : 'post',
url : url,
data : formData,
processData: false,
contentType: false,
success : function(result) {
result = JSON.parse(result.resBody.result);
if (result.message === 1) {
alert('<spring:message code="success.common.insert"/>');
//수정화면으로 이동
location.href = "/mngr/goods/cmnuse/selectCmnuseInfoDtlForm?cmnuseInfoInnb="+result.cmnuseInfoInnb;
} else {
alert('<spring:message code="fail.common.insert"/>');
}
}
});
}
}
/**********************************************
* 등록 화면 이동
***********************************************/
const fn_move_list = function() {
location.replace('/mngr/goods/cmnuse/selectCmnuseInfoList');
};
</script>
</head>
<body>
<%@ include file="/WEB-INF/views/comm/mngr/Header.jsp"%>
<main class="main">
<%@ include file="/WEB-INF/views/comm/mngr/Left.jsp"%>
<div class="content">
<div class="content__inner">
<button class="side-nav__fold"><span class="visually-hidden">좌측메뉴 펼치기/닫기</span></button>
<div class="page-title">
<h2 class="page-title__title">반품교환정보 등록</h2>
<div class="page-title__btn-container">
<button class="btn outline" onclick="fn_move_list();"><spring:message code="button.list"/></button>
<button class="btn primary" onclick="fn_regist_cmnuseInfor();"><spring:message code="button.insert"/></button>
</div>
</div>
<form id="cmnuseInfoRegForm" name="cmnuseInfoRegForm">
<section class="content-section">
<h3 class="content-section__inner-title">반품교환정보</h3>
<div class="table-wrapper">
<table class="table">
<caption>반품교환정보명</caption>
<colgroup>
<col style="width: 12%;">
<col>
</colgroup>
<tbody>
<tr>
<th>반품교환정보명</th>
<td>
<div class="td-inner">
<div class="word-limit-input">
<input type="text" class="input-text word-limit" name="cmnuseInfoSj" maxlength="30" size="60" title="공용 정보명" placeholder="공용 정보명을 입력해 주세요.">
</div>
</div>
</td>
</tr>
<tr>
<th>설명</th>
<td colspan="3">
<div class="td-inner">
<textarea class="textarea" title="에디터 입력" rows="10" id="infoCn"></textarea>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</section>
</form>
</div>
</div>
</main>
</body>
</html>

View File

@@ -0,0 +1,170 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui"%>
<%@ taglib prefix="f" uri="/WEB-INF/tlds/f.tld"%>
<%--
Class Name : GoodsInfoFormR.jsp
Description : 반품교환정보 목록 화면
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2024-02-10 유재현 최초 생성
--%>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GC ONE 관리자</title>
<%@ include file="/WEB-INF/views/comm/mngr/Include.jsp"%>
<script>
$(document).ready(function(){
let urlParams = new URLSearchParams(window.location.search);
});
/**********************************************
* 등록 화면 이동
***********************************************/
const fn_move_inforRegist = function() {
location.href = '/mngr/goods/cmnuse/selectCmnuseInfoForm';
};
/**********************************************
* 상세 화면 이동
***********************************************/
const fn_move_dtl_uptpage = function(cmnuseInfoInnb) {
location.href = '/mngr/goods/cmnuse/selectCmnuseInfoDtlForm?cmnuseInfoInnb='+cmnuseInfoInnb
}
/**********************************************
* 삭제
***********************************************/
const fn_delete_cmnuseInfo = function(cmnuseInfoInnb, linkgoods) {
if(parseInt(linkgoods) > 0){
alert('연결 상품이 있어 삭제가 불가능 합니다.')
return false;
}
if (confirm('반품교환정보를 <spring:message code="confirm.common.delete"/>')) {
$.ajax({
type : 'post',
url : '<c:url value="/mngr/goods/cmnuse/deleteCmnuseInfo"/>',
data : {'cmnuseInfoInnb': cmnuseInfoInnb},
success : function(data) {
let result = JSON.parse(data.resBody.result).message;
if (result === 'success') {
alert('<spring:message code="success.common.delete"/>');
location.reload()
} else {
alert('<spring:message code="fail.common.delete"/>');
}
},
error : function(request, status, error) {
console.log(error)
}
})
}
}
</script>
</head>
<body>
<%@ include file="/WEB-INF/views/comm/mngr/Header.jsp"%>
<main class="main">
<%@ include file="/WEB-INF/views/comm/mngr/Left.jsp"%>
<div class="content">
<div class="content__inner">
<button class="side-nav__fold"><span class="visually-hidden">좌측메뉴 펼치기/닫기</span></button>
<div class="page-title">
<h2 class="page-title__title">반품교환정보 목록</h2>
<div class="page-title__btn-container">
<button class="btn primary" onclick="fn_move_inforRegist();">등록</button>
</div>
</div>
<form id="listForm" name="listForm" >
<%-- 리스트 출력 섹션 START --%>
<section class="content-section">
<hr class="spacing">
<div class="table-wrapper">
<table class="table vertical">
<caption>해당 테이블에 대한 설명</caption>
<!-- 각 열 width 설정 -->
<colgroup>
<col style="width: 4%;">
<col style="width: auto;">
<col style="width: 20%;">
<col style="width: 15%;">
<col style="width: 15%;">
</colgroup>
<thead>
<tr>
<th>번호</th>
<th>제목</th>
<th>생성일</th>
<th>연결 상품</th>
<th>관리</th>
</tr>
</thead>
<%-- 리스트 BODY START --%>
<tbody>
<c:choose>
<c:when test="${ not empty resultMap.infoList }">
<c:forEach var="info" items="${resultMap.infoList }" varStatus="status">
<tr>
<td>
<c:out value="${ info.rnum }"/>
</td>
<td>
<c:out value="${ info.cmnuseInfoSj }"/>
</td>
<td>
<span><c:out value="${info.registDt}"/></span>
</td>
<td>
<span>
<c:choose>
<c:when test="${not empty info.linkgoods && 0 != info.linkgoods}">
<c:out value="${info.linkgoods}"/>
</c:when>
<c:otherwise>
<c:out value="0"/>
</c:otherwise>
</c:choose>
</span>
</td>
<td>
<div class="manage-btn-container re">
<button class="btn xsm dark" type="button" onclick="fn_delete_cmnuseInfo('<c:out value="${info.cmnuseInfoInnb}"/>', '<c:out value="${info.linkgoods}"/> '); return false;"><spring:message code="button.delete"/></button>
<button class="btn xsm primary outline" type="button" onclick="fn_move_dtl_uptpage('<c:out value="${info.cmnuseInfoInnb}"/>')"><spring:message code="button.update"/></button>
</div>
</td>
</tr>
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="100%" ><spring:message code="common.nodata"/></td>
</tr>
</c:otherwise>
</c:choose>
</tbody>
</table>
</div>
<%-- 리스트 BODY END --%>
</section>
</form>
</div>
</div>
</main>
</body>
</html>