초기소스

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,89 @@
<%@ 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" %>
<%--
Class Name : PopupListR.jsp
Description : 팝업관리 목록조회 화면
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2024-02-07 리브가 최초생성
--%>
<!DOCTYPE html>
<html lang="ko">
<head>
<%-- 공통 include --%>
<%@include file ="/WEB-INF/views/comm/mngr/Include.jsp" %>
</head>
<script>
$(document).ready(function () {
$("#shopCdGroup").change(function(){
var selectedValue = $(this).val();
console.log("선택된 값:", selectedValue);
fn_select_list(selectedValue);
});
var today = new Date();
today.setMonth(today.getMonth() - 1);
var prevMonth = today.getMonth() + 1;
$('.page-title__title').text(prevMonth + '월 문자 정산 내역');
fn_select_list("SL");
});
const fn_select_list = function (shopCd) {
$.ajax({
type: "get",
url: "/mngr/sms//select/sms-billingR?shopCd="+shopCd,
success: function (resultMap) {
$('#pageDiv').html(resultMap);
}
});
};
</script>
<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>
<section class="content-section">
<div class="form-control-container">
<div class="center">
</div>
<div class="right">
<div class="select-box">
<select id="shopCdGroup" name="shopCdGroup" title="법인목록">
<option id="shopCd" name="shopCd" value="SL" selected>에스엘바이오텍</option>
<option id="shopCd" name="shopCd" value="GC">지씨바이오</option>
<option id="shopCd" name="shopCd" value="TB">트레디스바이오</option>
<option id="shopCd" name="shopCd" value="DB">디바인바이오</option>
<option id="shopCd" name="shopCd" value="NP">네이처풀</option>
<option id="shopCd" name="shopCd" value="CN">코스네이처</option>
<option id="shopCd" name="shopCd" value="IS">아이엔에스소프트</option>
<option id="shopCd" name="shopCd" value="FN">피드네이처</option>
</select>
</div>
</div>
</div>
<div id="pageDiv">
</div>
</section>
<button class="scroll-to-top"><span class="visually-hidden">위로가기</span></button>
</div>
</div>
</main>
</body>
</html>

View File

@@ -0,0 +1,148 @@
<%@ 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" %>
<script>
$(document).ready(function(){
function sumColumn(className, targetId, unit) {
let total = 0;
$("." + className).each(function() {
let num = $(this).text().replace(/,/g, "").replace(/[^0-9]/g, "");
total += parseInt(num, 10) || 0;
});
$("#" + targetId).text(total.toLocaleString() + " " + unit);
}
sumColumn("sms", "smsTotal", "건");
sumColumn("lms", "lmsTotal", "건");
sumColumn("mms", "mmsTotal", "건");
sumColumn("at", "atTotal", "건");
sumColumn("ft", "ftTotal", "건");
sumColumn("fti", "ftiTotal", "건");
sumColumn("price", "priceTotal", "원");
var priceToal = $('#priceTotal').text();
$('#allTotal').text('사용요금 ('+priceToal+')');
var price = $('#priceTotal').text().replace(/,/g, "").replace(/[^0-9]/g, "")
var vat = Math.floor(price/10);
$('#vat').text('부가세 ('+ vat.toLocaleString() +'원)');
var priceTotals = parseInt($('#priceTotal').text().replace(/,/g, "").replace(/[^0-9]/g, ""), 10) || 0;
var vatTotal = parseInt($('#vat').text().replace(/,/g, "").replace(/[^0-9]/g, ""), 10) || 0;
var priceSum = priceTotals + vatTotal;
$('#priceSum').text(priceSum.toLocaleString() + '원');
});
</script>
<%--
Class Name : GoodsListR.jsp
Description : 상품 목록 조회 리스트
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2024-03-20 리브가 최초 생성
--%>
<section class="content-section">
<div class="form-control-container">
<div class="center">
</div>
</div>
<hr class="horizontal-line">
<div class="form-control-container">
<div class="center">
</div>
</div>
<hr class="spacing">
<div class="table-wrapper">
<table class="table vertical">
<colgroup>
<col style="width: 5%;">
<col style="width: 10%;">
<col style="width: 16%;">
<col style="width: 10%;">
<col style="width: 10%">
<col style="width: 15%">
<col style="width: 6%;">
<col style="width: 15%;">
<col style="width: 6%;">
<col style="width: 25%;">
</colgroup>
<thead>
<tr>
<th>No</th>
<th>년월</th>
<th>매장</th>
<th>SMS(단문)</th>
<th>LMS(장문)</th>
<th>MMS(LSM+IMG)</th>
<th>알림톡</th>
<th>친구톡(TXT)</th>
<th>친구톡(TXT+IMG)</th>
<th>금액</th>
</tr>
</thead>
<tbody>
<c:choose>
<c:when test="${ not empty resultMap.list }">
<c:forEach items="${ resultMap.list }" var="list" varStatus="status">
<tr>
<td>${status.index + 1}</td>
<td>${list.yearMonth}</td>
<td>${list.storeName}</td>
<td class="sms"><fmt:formatNumber value="${list.sms}" pattern="#,###"/> 건</td>
<td class="lms"><fmt:formatNumber value="${list.lms}" pattern="#,###"/> 건</td>
<td class="mms"><fmt:formatNumber value="${list.mms}" pattern="#,###"/> 건</td>
<td class="at"><fmt:formatNumber value="${list.allimTalk}" pattern="#,###"/> 건</td>
<td class="ft"><fmt:formatNumber value="${list.friendTalk}" pattern="#,###"/> 건</td>
<td class="fti"><fmt:formatNumber value="${list.friendTalkImg}" pattern="#,###"/> 건</td>
<td class="price"><fmt:formatNumber value="${list.price}" pattern="#,###"/> 원</td>
</tr>
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="100%"><spring:message code="common.nodata"/></td>
</tr>
</c:otherwise>
</c:choose>
<tr>
<td></td>
<td></td>
<td>합계 : </td>
<td id="smsTotal">0 건</td>
<td id="lmsTotal">0 건</td>
<td id="mmsTotal">0 건</td>
<td id="atTotal">0 건</td>
<td id="ftTotal">0 건</td>
<td id="ftiTotal">0 건</td>
<td id="priceTotal">0 원</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td>요금 합계 : </td>
<td id="allTotal"> </td>
<td> + </td>
<td id="vat"></td>
<td> = </td>
<td id="priceSum"> 원</td>
</tr>
</tbody>
</table>
</div>
</section>