--- src/main/java/itn/let/mjo/msgsent/service/MjonMsgDetailSentVO.java
+++ src/main/java/itn/let/mjo/msgsent/service/MjonMsgDetailSentVO.java
... | ... | @@ -16,8 +16,10 @@ |
| 16 | 16 |
|
| 17 | 17 |
private String msgGroupId; |
| 18 | 18 |
private String reqDate; |
| 19 |
+ private String regDate; |
|
| 19 | 20 |
private String msgGroupCnt; |
| 20 | 21 |
private String reserveYn; |
| 22 |
+ private String reserveCYn; |
|
| 21 | 23 |
private String callFrom; |
| 22 | 24 |
private String userId; |
| 23 | 25 |
private String smsTxt; |
... | ... | @@ -25,6 +27,7 @@ |
| 25 | 27 |
private String msgType; |
| 26 | 28 |
private String fileCnt; |
| 27 | 29 |
private String msgKind; |
| 30 |
+ private String eachPrice; |
|
| 28 | 31 |
private String sentDate; |
| 29 | 32 |
private String filePath1; |
| 30 | 33 |
private String filePath2; |
... | ... | @@ -33,6 +36,24 @@ |
| 33 | 36 |
private String callTo; |
| 34 | 37 |
private String statusTxt; |
| 35 | 38 |
private String addrNm; |
| 39 |
+ |
|
| 40 |
+ |
|
| 41 |
+ private String resultSValue; |
|
| 42 |
+ private String resultFValue; |
|
| 43 |
+ private String resultWValue; |
|
| 44 |
+ |
|
| 45 |
+ private String successPct; |
|
| 46 |
+ private String failedPct; |
|
| 47 |
+ private String waitingPct; |
|
| 48 |
+ |
|
| 49 |
+ |
|
| 50 |
+ |
|
| 51 |
+ |
|
| 52 |
+ |
|
| 53 |
+ private String statusCd; // 진행상태 코드 |
|
| 54 |
+ private String divideYN; |
|
| 55 |
+ private int diffMin; |
|
| 56 |
+ private String totPrice; |
|
| 36 | 57 |
|
| 37 | 58 |
|
| 38 | 59 |
// FileInfo 리스트 필드 추가 |
--- src/main/java/itn/let/mjo/msgsent/service/MjonMsgSentVO.java
+++ src/main/java/itn/let/mjo/msgsent/service/MjonMsgSentVO.java
... | ... | @@ -4,11 +4,17 @@ |
| 4 | 4 |
import java.util.List; |
| 5 | 5 |
|
| 6 | 6 |
import itn.let.uss.umt.service.UserDefaultVO; |
| 7 |
+import lombok.AllArgsConstructor; |
|
| 8 |
+import lombok.Builder; |
|
| 7 | 9 |
import lombok.Getter; |
| 10 |
+import lombok.NoArgsConstructor; |
|
| 8 | 11 |
import lombok.Setter; |
| 9 | 12 |
|
| 10 | 13 |
@Getter |
| 11 | 14 |
@Setter |
| 15 |
+@Builder |
|
| 16 |
+@NoArgsConstructor |
|
| 17 |
+@AllArgsConstructor |
|
| 12 | 18 |
public class MjonMsgSentVO extends UserDefaultVO{
|
| 13 | 19 |
|
| 14 | 20 |
private static final long serialVersionUID = 1L; |
--- src/main/java/itn/let/mjo/msgsent/service/impl/MjonMsgSentServiceImpl.java
+++ src/main/java/itn/let/mjo/msgsent/service/impl/MjonMsgSentServiceImpl.java
... | ... | @@ -127,7 +127,6 @@ |
| 127 | 127 |
Map<String, Object> resultMap = new HashMap<String, Object>(); |
| 128 | 128 |
|
| 129 | 129 |
System.out.println("mjonMsgSentVO.getSearchConditionSite() :: "+ mjonMsgSentVO.getSearchConditionSite());
|
| 130 |
- |
|
| 131 | 130 |
// 목록 |
| 132 | 131 |
List<MjonMsgSentVO> resultList = mjonMsgSentDAO.selectAllMsgSentList_advc(mjonMsgSentVO); |
| 133 | 132 |
|
... | ... | @@ -136,36 +135,11 @@ |
| 136 | 135 |
|
| 137 | 136 |
resultList = makeDetailFunction(resultList); |
| 138 | 137 |
|
| 139 |
- // 공통코드 ITN057에 대한 코드화 진행 |
|
| 140 | 138 |
/* |
| 141 |
- * CODE_ID CODE CODE_NM CODE_DC |
|
| 142 |
- * ITN057 01 진행중 진행중 |
|
| 143 |
- * ITN057 02 완료 완료출해야함 |
|
| 144 |
- * ITN057 03 예약대기 예약대기(발송전) 버튼으로 노출해야함 |
|
| 145 |
- * ITN057 04 - 예약취소 ( - 으로 노출 ) |
|
| 139 |
+ * 진행상태 코드화 |
|
| 146 | 140 |
* */ |
| 147 | 141 |
resultList.stream().forEach(t->{
|
| 148 |
- |
|
| 149 |
- String code; |
|
| 150 |
- |
|
| 151 |
- log.info(" + t.getDiffMin() :: [{}]", t.getDiffMin());
|
|
| 152 |
- log.info(" + t.getDiffMin() :: [{}]", t.getDiffMin() > -5);
|
|
| 153 |
- if ("Y".equals(t.getReserveCYn())) {
|
|
| 154 |
- code = "04"; // 예약취소 코드 |
|
| 155 |
- } else if ( |
|
| 156 |
- "Y".equals(t.getReserveYn()) |
|
| 157 |
- && "N".equals(t.getReserveCYn()) |
|
| 158 |
- && t.getMsgGroupCnt().equals(t.getResultWValue()) |
|
| 159 |
- && t.getDiffMin() < -5 // 예약 시간이 5분 이상인 것들만 |
|
| 160 |
- ) {
|
|
| 161 |
- code = "03"; // 예약대기 코드 ( 예약취소 버튼 노출 ) |
|
| 162 |
- } else if (t.getMsgGroupCnt().equals(t.getResultSValue()) || t.getMsgGroupCnt().equals(t.getResultFValue())) {
|
|
| 163 |
- code = "02"; // 완료 코드 |
|
| 164 |
- } else {
|
|
| 165 |
- code = "01"; // 진행중 코드 |
|
| 166 |
- } |
|
| 167 |
- |
|
| 168 |
- |
|
| 142 |
+ String code = getStatusCode(t); |
|
| 169 | 143 |
t.setStatusCd(code); |
| 170 | 144 |
}); |
| 171 | 145 |
|
... | ... | @@ -187,25 +161,61 @@ |
| 187 | 161 |
Map<String, Object> resultMap = new HashMap<String, Object>(); |
| 188 | 162 |
|
| 189 | 163 |
// 목록 |
| 190 |
- MjonMsgDetailSentVO result = mjonMsgSentDAO.selectAllMsgSentDetailView(mjonMsgDetailSentVO); |
|
| 164 |
+ MjonMsgDetailSentVO resultVO = mjonMsgSentDAO.selectAllMsgSentDetailView(mjonMsgDetailSentVO); |
|
| 165 |
+ |
|
| 166 |
+ |
|
| 167 |
+ // 성공 대기 실패 발송금액 분할여부 |
|
| 168 |
+ MjonMsgSentVO updatedVO = getDetailFunction(resultVO.getMsgGroupId(), resultVO.getEachPrice()); |
|
| 169 |
+ resultVO.setResultSValue(updatedVO.getResultSValue()); // 성공건수 |
|
| 170 |
+ resultVO.setResultWValue(updatedVO.getResultWValue()); // 대기건수 |
|
| 171 |
+ resultVO.setResultFValue(updatedVO.getResultFValue()); // 실패건수 |
|
| 172 |
+ resultVO.setTotPrice(updatedVO.getTotPrice()); |
|
| 173 |
+ resultVO.setDivideYN(updatedVO.getDivideYN()); |
|
| 174 |
+ |
|
| 175 |
+ |
|
| 176 |
+ // 퍼센트 계산 실행 |
|
| 177 |
+ Map<String, String> returnMap = calculatePercentages(resultVO); |
|
| 178 |
+ resultVO.setSuccessPct(returnMap.get("successPct"));
|
|
| 179 |
+ resultVO.setWaitingPct(returnMap.get("waitingPct"));
|
|
| 180 |
+ resultVO.setFailedPct(returnMap.get("failedPct"));
|
|
| 181 |
+ |
|
| 182 |
+ |
|
| 183 |
+ // 진행상태 코드화 |
|
| 184 |
+ String statusCode = getStatusCode(MjonMsgSentVO.builder() |
|
| 185 |
+ .reserveCYn(resultVO.getReserveCYn()) |
|
| 186 |
+ .reserveYn(resultVO.getReserveYn()) |
|
| 187 |
+ .msgGroupCnt(resultVO.getMsgGroupCnt()) |
|
| 188 |
+ .resultSValue(resultVO.getResultSValue()) |
|
| 189 |
+ .resultWValue(resultVO.getResultWValue()) |
|
| 190 |
+ .resultFValue(resultVO.getResultFValue()) |
|
| 191 |
+ .diffMin(resultVO.getDiffMin()) |
|
| 192 |
+ .build()); |
|
| 193 |
+ log.info(" ++ statusCode :: [{}]" ,statusCode);
|
|
| 194 |
+ resultVO.setStatusCd(statusCode); |
|
| 195 |
+ |
|
| 196 |
+ // 결과 출력 |
|
| 197 |
+ System.out.println("성공률: " + returnMap.get("successPct"));
|
|
| 198 |
+ System.out.println("대기율: " + returnMap.get("waitingPct"));
|
|
| 199 |
+ System.out.println("실패율: " + returnMap.get("failedPct"));
|
|
| 200 |
+ |
|
| 191 | 201 |
|
| 192 | 202 |
// 광고일떄 (광고)와 줄바꿈+무료거부 0808800858 삭제 |
| 193 |
- if("A".equals(result.getMsgKind())) {
|
|
| 194 |
- result.setSmsTxt(result.getSmsTxt().replace("(광고)", "")
|
|
| 203 |
+ if("A".equals(resultVO.getMsgKind())) {
|
|
| 204 |
+ resultVO.setSmsTxt(resultVO.getSmsTxt().replace("(광고)", "")
|
|
| 195 | 205 |
.replaceAll("\\s*무료거부 0808800858", ""));
|
| 196 | 206 |
} |
| 197 | 207 |
|
| 198 |
- if(StringUtils.isNotEmpty(result.getFileCnt()) && Integer.parseInt(result.getFileCnt()) > 0) |
|
| 208 |
+ if(StringUtils.isNotEmpty(resultVO.getFileCnt()) && Integer.parseInt(resultVO.getFileCnt()) > 0) |
|
| 199 | 209 |
{
|
| 200 | 210 |
|
| 201 |
- List<FileInfoVO> fileInfos = getFileInfo(result); |
|
| 202 |
- result.setFileInfos(fileInfos); |
|
| 211 |
+ List<FileInfoVO> fileInfos = getFileInfo(resultVO); |
|
| 212 |
+ resultVO.setFileInfos(fileInfos); |
|
| 203 | 213 |
} |
| 204 | 214 |
|
| 205 | 215 |
|
| 206 | 216 |
|
| 207 | 217 |
|
| 208 |
- resultMap.put("result", result);
|
|
| 218 |
+ resultMap.put("result", resultVO);
|
|
| 209 | 219 |
|
| 210 | 220 |
return resultMap; |
| 211 | 221 |
} |
... | ... | @@ -428,11 +438,11 @@ |
| 428 | 438 |
//예약 관리 리스트 불러오기 |
| 429 | 439 |
List<MjonMsgSentVO> resultAllSentList = mjonMsgSentDAO.selectAllMsgSentList_advc(mjonMsgSentVO); |
| 430 | 440 |
|
| 431 |
- long startTime = System.nanoTime(); // 시작 시간 측정 |
|
| 441 |
+// long startTime = System.nanoTime(); // 시작 시간 측정 |
|
| 432 | 442 |
resultAllSentList = makeDetailFunction(resultAllSentList); |
| 433 |
- long endTime = System.nanoTime(); // 끝난 시간 측정 |
|
| 434 |
- double executionTimeInSeconds = (endTime - startTime) / 1_000_000_000.0; |
|
| 435 |
- System.out.println("Execution time: " + executionTimeInSeconds + " seconds");
|
|
| 443 |
+// long endTime = System.nanoTime(); // 끝난 시간 측정 |
|
| 444 |
+// double executionTimeInSeconds = (endTime - startTime) / 1_000_000_000.0; |
|
| 445 |
+// System.out.println("Execution time: " + executionTimeInSeconds + " seconds");
|
|
| 436 | 446 |
|
| 437 | 447 |
SXSSFWorkbook workbook = null; // SXSSFWorkbook 변수 선언 |
| 438 | 448 |
try{
|
... | ... | @@ -658,41 +668,122 @@ |
| 658 | 668 |
} |
| 659 | 669 |
|
| 660 | 670 |
|
| 671 |
+ /** |
|
| 672 |
+ * @methodName : makeDetailFunction |
|
| 673 |
+ * @author : 이호영 |
|
| 674 |
+ * @date : 2025.02.04 |
|
| 675 |
+ * @description : 발송결과 성공건수, 실패건수, 대기건수, 분할발송여부, 총 발송금액 구하기 |
|
| 676 |
+ * @param resultList |
|
| 677 |
+ * @return |
|
| 678 |
+ */ |
|
| 661 | 679 |
private List<MjonMsgSentVO> makeDetailFunction(List<MjonMsgSentVO> resultList) {
|
| 662 | 680 |
resultList.stream().forEach(t->{
|
| 663 |
- MjonMsgSWFDTO mjonMsgSWFDTO = mjonMsgSentDAO.findBySWF(t.getMsgGroupId()); |
|
| 664 |
- t.setResultSValue(String.valueOf(mjonMsgSWFDTO.getResultSValue())); // 성공건수 |
|
| 665 |
- t.setResultFValue(String.valueOf(mjonMsgSWFDTO.getResultFValue())); // 실패건수 |
|
| 666 |
- t.setResultWValue(String.valueOf(mjonMsgSWFDTO.getResultWValue())); // 대기건수 |
|
| 667 |
- t.setDivideYN(mjonMsgSWFDTO.getDivideYN()); |
|
| 668 |
- |
|
| 669 |
- |
|
| 670 |
- // TotPrice : 성공건수에 대한 금액 곱하기 |
|
| 671 |
- BigDecimal eachPrice = new BigDecimal(t.getEachPrice()); |
|
| 672 |
- BigDecimal resultSValue = new BigDecimal(mjonMsgSWFDTO.getResultSValue()); |
|
| 673 |
- BigDecimal totalPrice = eachPrice.multiply(resultSValue); |
|
| 674 |
- // 소수점 한 자리로 설정 (반올림)// totalPrice 값을 소수점 한 자리까지 반올림하여 roundedTotalPrice에 저장 |
|
| 675 |
- // RoundingMode.HALF_UP: 반올림 방식으로, 소수점 기준 5 이상이면 올림, 그렇지 않으면 내림 |
|
| 676 |
- BigDecimal roundedTotalPrice = totalPrice.setScale(1, RoundingMode.HALF_UP); |
|
| 681 |
+ MjonMsgSentVO updatedVO = getDetailFunction(t.getMsgGroupId(), t.getEachPrice()); |
|
| 677 | 682 |
|
| 678 |
- // roundedTotalPrice가 0인지 확인 |
|
| 679 |
- // BigDecimal.compareTo(BigDecimal.ZERO)는 값을 비교하는 메서드 |
|
| 680 |
- // 결과: |
|
| 681 |
- // - 반환 값이 0이면 두 값이 같음 |
|
| 682 |
- // - 반환 값이 음수이면 roundedTotalPrice가 0보다 작음 |
|
| 683 |
- // - 반환 값이 양수이면 roundedTotalPrice가 0보다 큼 |
|
| 684 |
- if (roundedTotalPrice.compareTo(BigDecimal.ZERO) == 0) {
|
|
| 685 |
- // roundedTotalPrice 값이 0이면, "-" 문자열을 totPrice에 설정 |
|
| 686 |
- t.setTotPrice("-");
|
|
| 687 |
- } else {
|
|
| 688 |
- // roundedTotalPrice 값이 0이 아닌 경우 |
|
| 689 |
- // 반올림된 BigDecimal 값을 toPlainString()을 사용하여 문자열로 변환 후 totPrice에 설정 |
|
| 690 |
- // toPlainString(): 지수 표기법 없이 일반적인 문자열 형태로 반환 |
|
| 691 |
- t.setTotPrice(roundedTotalPrice.toPlainString()); |
|
| 692 |
- } |
|
| 683 |
+ t.setResultSValue(updatedVO.getResultSValue()); |
|
| 684 |
+ t.setResultFValue(updatedVO.getResultFValue()); |
|
| 685 |
+ t.setResultWValue(updatedVO.getResultWValue()); |
|
| 686 |
+ t.setDivideYN(updatedVO.getDivideYN()); |
|
| 687 |
+ t.setTotPrice(updatedVO.getTotPrice()); |
|
| 693 | 688 |
}); |
| 694 | 689 |
return resultList; |
| 695 | 690 |
} |
| 696 | 691 |
|
| 697 | 692 |
|
| 693 |
+ private MjonMsgSentVO getDetailFunction(String p_msgGroupId, String p_eachPrice) {
|
|
| 694 |
+ |
|
| 695 |
+ |
|
| 696 |
+ MjonMsgSentVO returnVO = new MjonMsgSentVO(); |
|
| 697 |
+ |
|
| 698 |
+ MjonMsgSWFDTO mjonMsgSWFDTO = mjonMsgSentDAO.findBySWF(p_msgGroupId); |
|
| 699 |
+ returnVO.setResultSValue(String.valueOf(mjonMsgSWFDTO.getResultSValue())); // 성공건수 |
|
| 700 |
+ returnVO.setResultFValue(String.valueOf(mjonMsgSWFDTO.getResultFValue())); // 실패건수 |
|
| 701 |
+ returnVO.setResultWValue(String.valueOf(mjonMsgSWFDTO.getResultWValue())); // 대기건수 |
|
| 702 |
+ returnVO.setDivideYN(mjonMsgSWFDTO.getDivideYN()); |
|
| 703 |
+ |
|
| 704 |
+ |
|
| 705 |
+ // TotPrice : 성공건수에 대한 금액 곱하기 |
|
| 706 |
+ BigDecimal eachPrice = new BigDecimal(p_eachPrice); |
|
| 707 |
+ BigDecimal resultSValue = new BigDecimal(mjonMsgSWFDTO.getResultSValue()); |
|
| 708 |
+ BigDecimal totalPrice = eachPrice.multiply(resultSValue); |
|
| 709 |
+ // 소수점 한 자리로 설정 (반올림)// totalPrice 값을 소수점 한 자리까지 반올림하여 roundedTotalPrice에 저장 |
|
| 710 |
+ // RoundingMode.HALF_UP: 반올림 방식으로, 소수점 기준 5 이상이면 올림, 그렇지 않으면 내림 |
|
| 711 |
+ BigDecimal roundedTotalPrice = totalPrice.setScale(1, RoundingMode.HALF_UP); |
|
| 712 |
+ |
|
| 713 |
+ // roundedTotalPrice가 0인지 확인 |
|
| 714 |
+ // BigDecimal.compareTo(BigDecimal.ZERO)는 값을 비교하는 메서드 |
|
| 715 |
+ // 결과: |
|
| 716 |
+ // - 반환 값이 0이면 두 값이 같음 |
|
| 717 |
+ // - 반환 값이 음수이면 roundedTotalPrice가 0보다 작음 |
|
| 718 |
+ // - 반환 값이 양수이면 roundedTotalPrice가 0보다 큼 |
|
| 719 |
+ if (roundedTotalPrice.compareTo(BigDecimal.ZERO) == 0) {
|
|
| 720 |
+ // roundedTotalPrice 값이 0이면, "-" 문자열을 totPrice에 설정 |
|
| 721 |
+ returnVO.setTotPrice("-");
|
|
| 722 |
+ } else {
|
|
| 723 |
+ // roundedTotalPrice 값이 0이 아닌 경우 |
|
| 724 |
+ // 반올림된 BigDecimal 값을 toPlainString()을 사용하여 문자열로 변환 후 totPrice에 설정 |
|
| 725 |
+ // toPlainString(): 지수 표기법 없이 일반적인 문자열 형태로 반환 |
|
| 726 |
+ returnVO.setTotPrice(roundedTotalPrice.toPlainString()); |
|
| 727 |
+ } |
|
| 728 |
+ log.info(" + returnVO.getTotPrice() :: [{}]", returnVO.getTotPrice());
|
|
| 729 |
+ return returnVO; |
|
| 730 |
+ |
|
| 731 |
+ |
|
| 732 |
+ } |
|
| 733 |
+ |
|
| 734 |
+ |
|
| 735 |
+ |
|
| 736 |
+ private Map<String, String> calculatePercentages(MjonMsgDetailSentVO result) {
|
|
| 737 |
+ int total = Integer.parseInt(result.getMsgGroupCnt()); // 전체 건수 |
|
| 738 |
+ int success = Integer.parseInt(result.getResultSValue()); // 성공 건수 |
|
| 739 |
+ int waiting = Integer.parseInt(result.getResultWValue()); // 대기 건수 |
|
| 740 |
+ int failed = Integer.parseInt(result.getResultFValue()); // 실패 건수 |
|
| 741 |
+ |
|
| 742 |
+ // 퍼센트 계산 (0으로 나누는 경우 대비) |
|
| 743 |
+ String successPct = total > 0 ? String.format("%.1f%%", (success / (double) total) * 100) : "0.0%";
|
|
| 744 |
+ String waitingPct = total > 0 ? String.format("%.1f%%", (waiting / (double) total) * 100) : "0.0%";
|
|
| 745 |
+ String failedPct = total > 0 ? String.format("%.1f%%", (failed / (double) total) * 100) : "0.0%";
|
|
| 746 |
+ |
|
| 747 |
+ // 결과 맵에 저장 |
|
| 748 |
+ Map<String, String> percentages = new HashMap<>(); |
|
| 749 |
+ percentages.put("successPct", successPct);
|
|
| 750 |
+ percentages.put("waitingPct", waitingPct);
|
|
| 751 |
+ percentages.put("failedPct", failedPct);
|
|
| 752 |
+ |
|
| 753 |
+ return percentages; |
|
| 754 |
+ |
|
| 755 |
+ } |
|
| 756 |
+ |
|
| 757 |
+ // 공통코드 ITN057에 대한 코드화 진행 |
|
| 758 |
+ /* |
|
| 759 |
+ * CODE_ID CODE CODE_NM CODE_DC |
|
| 760 |
+ * ITN057 01 진행중 진행중 |
|
| 761 |
+ * ITN057 02 완료 완료출해야함 |
|
| 762 |
+ * ITN057 03 예약대기 예약대기(발송전) 버튼으로 노출해야함 |
|
| 763 |
+ * ITN057 04 - 예약취소 ( - 으로 노출 ) |
|
| 764 |
+ * */ |
|
| 765 |
+ private String getStatusCode(MjonMsgSentVO result) {
|
|
| 766 |
+ |
|
| 767 |
+ String returnCode; |
|
| 768 |
+ |
|
| 769 |
+ if ("Y".equals(result.getReserveCYn())) {
|
|
| 770 |
+ returnCode = "04"; // 예약취소 코드 |
|
| 771 |
+ } else if ( |
|
| 772 |
+ "Y".equals(result.getReserveYn()) |
|
| 773 |
+ && "N".equals(result.getReserveCYn()) |
|
| 774 |
+ && result.getMsgGroupCnt().equals(result.getResultWValue()) |
|
| 775 |
+ && result.getDiffMin() < -5 // 예약 시간이 5분 이상인 것들만 |
|
| 776 |
+ ) {
|
|
| 777 |
+ returnCode = "03"; // 예약대기 코드 ( 예약취소 버튼 노출 ) |
|
| 778 |
+ } else if (result.getMsgGroupCnt().equals(result.getResultSValue()) |
|
| 779 |
+ || result.getMsgGroupCnt().equals(result.getResultFValue())) {
|
|
| 780 |
+ returnCode = "02"; // 완료 코드 |
|
| 781 |
+ } else {
|
|
| 782 |
+ returnCode = "01"; // 진행중 코드 |
|
| 783 |
+ } |
|
| 784 |
+ |
|
| 785 |
+ |
|
| 786 |
+ return returnCode; |
|
| 787 |
+ |
|
| 788 |
+ } |
|
| 698 | 789 |
} |
--- src/main/java/itn/let/mjo/msgsent/web/MjonMsgSentController.java
+++ src/main/java/itn/let/mjo/msgsent/web/MjonMsgSentController.java
... | ... | @@ -164,13 +164,21 @@ |
| 164 | 164 |
/** |
| 165 | 165 |
* 발송관리 화면 |
| 166 | 166 |
* @param searchVO |
| 167 |
- * @param model |
|
| 167 |
+ * @param model/web/user/login/login.do |
|
| 168 | 168 |
* @return "/web/mjon/msgtxt/selectMsgTxtView.do" |
| 169 | 169 |
* @throws Exception |
| 170 | 170 |
*/ |
| 171 | 171 |
@RequestMapping(value= {"/web/mjon/msgsent/msgSentDetailView.do"})
|
| 172 |
- public String selectMsgSentDetailView(@ModelAttribute("searchVO") MjonMsgDetailSentVO mjonMsgDetailSentVO,
|
|
| 173 |
- RedirectAttributes redirectAttributes, ModelMap model) throws Exception{
|
|
| 172 |
+ public String selectMsgSentDetailView(@ModelAttribute("searchVO") MjonMsgDetailSentVO mjonMsgDetailSentVO
|
|
| 173 |
+ , ModelMap model) throws Exception{
|
|
| 174 |
+ |
|
| 175 |
+ |
|
| 176 |
+ //로그인 권한정보 불러오기 |
|
| 177 |
+ LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null; |
|
| 178 |
+ String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId()); |
|
| 179 |
+ if(loginVO == null) {
|
|
| 180 |
+ return "redirect:/web/user/login/login.do"; |
|
| 181 |
+ } |
|
| 174 | 182 |
|
| 175 | 183 |
Map<String, Object> resultMap = mjonMsgSentService.selectAllMsgSentDetailView(mjonMsgDetailSentVO); |
| 176 | 184 |
model.addAttribute("result", resultMap.get("result"));
|
--- src/main/resources/egovframework/sqlmap/let/msg/MjonMsgSent_SQL_mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/msg/MjonMsgSent_SQL_mysql.xml
... | ... | @@ -354,18 +354,22 @@ |
| 354 | 354 |
MGD.MSG_GROUP_ID as msgGroupId |
| 355 | 355 |
, MGD.MSG_GROUP_CNT as msgGroupCnt |
| 356 | 356 |
, MGD.RESERVE_YN as reserveYn |
| 357 |
+ , MGD.RESERVE_C_YN as reserveCYn |
|
| 357 | 358 |
, MGD.CALL_FROM as callFrom |
| 358 | 359 |
, MGD.USER_ID as userId |
| 359 | 360 |
, MGD.SMS_TXT as smsTxt |
| 360 | 361 |
, MGD.SUBJECT as subject |
| 361 |
- , MGD.REQ_DATE as reqdate |
|
| 362 |
+ , DATE_FORMAT(MGD.REQ_DATE, '%Y-%m-%d %H:%i') as reqDate |
|
| 363 |
+ , DATE_FORMAT(MGD.REGDATE, '%Y-%m-%d %H:%i') as regDate |
|
| 362 | 364 |
, MGD.MSG_TYPE as msgType |
| 363 | 365 |
, MGD.MSG_KIND as msgKind |
| 364 |
- , MD.SENT_DATE as sentDate |
|
| 366 |
+ , MGD.EACH_PRICE as eachPrice |
|
| 367 |
+ , DATE_FORMAT(MD.SENT_DATE, '%Y-%m-%d %H:%i') as sentDate |
|
| 365 | 368 |
, MD.FILE_CNT as fileCnt |
| 366 | 369 |
, MD.FILE_PATH1 as filePath1 |
| 367 | 370 |
, MD.FILE_PATH2 as filePath2 |
| 368 | 371 |
, MD.FILE_PATH3 as filePath3 |
| 372 |
+ , TIMESTAMPDIFF(minute, DATE_FORMAT(MGD.REQ_DATE, '%Y-%m-%d %T'), DATE_FORMAT(NOW(), '%Y-%m-%d %T')) as diffMin |
|
| 369 | 373 |
from |
| 370 | 374 |
MJ_MSG_GROUP_DATA MGD |
| 371 | 375 |
inner join MJ_MSG_DATA MD on |
--- src/main/webapp/WEB-INF/jsp/web/msgsent/MsgSentDetailView.jsp
+++ src/main/webapp/WEB-INF/jsp/web/msgsent/MsgSentDetailView.jsp
... | ... | @@ -3,8 +3,24 @@ |
| 3 | 3 |
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> |
| 4 | 4 |
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> |
| 5 | 5 |
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
| 6 |
+<%@ taglib prefix="ec" uri="/WEB-INF/tld/ecnet_tld.tld"%> |
|
| 6 | 7 |
<%@ page import="itn.com.cmm.LoginVO" %> |
| 7 | 8 |
|
| 9 |
+ |
|
| 10 |
+ |
|
| 11 |
+<style> |
|
| 12 |
+/* Tabulator Placeholder 기본 스타일 유지 */ |
|
| 13 |
+.tabulator-placeholder {
|
|
| 14 |
+ font-size: 22px !important; /* 기존 폰트 크기 유지 */ |
|
| 15 |
+ color: #e2d6d6 !important; /* 기존 색상 유지 */ |
|
| 16 |
+ font-weight: normal !important; /* 기본 폰트 두께 유지 */ |
|
| 17 |
+ display: flex; |
|
| 18 |
+ justify-content: center; |
|
| 19 |
+ align-items: center; |
|
| 20 |
+ height: 100%; |
|
| 21 |
+} |
|
| 22 |
+ |
|
| 23 |
+</style> |
|
| 8 | 24 |
|
| 9 | 25 |
<script type="text/javascript"> |
| 10 | 26 |
|
... | ... | @@ -16,36 +32,31 @@ |
| 16 | 32 |
$tbDtailList = new Tabulator("#detailPopup", {
|
| 17 | 33 |
height: "255px", |
| 18 | 34 |
width: "20%", |
| 19 |
- layout: "fitDataStretch", // 데이터가 너비에 맞게 늘어나도록 설정 |
|
| 35 |
+ // layout: "fitDataStretch", // 데이터가 너비에 맞게 늘어나도록 설정 |
|
| 36 |
+ layout: "fitColumns", // fitDataStretch 대신 fitColumns 사용 |
|
| 20 | 37 |
autoColumns: false, |
| 21 | 38 |
headerHozAlign: "center", |
| 22 | 39 |
validationMode: "highlight", |
| 23 | 40 |
clipboard: false, |
| 24 | 41 |
clipboardCopySelector: "table", |
| 25 | 42 |
clipboardPasteAction: "insert", // insert, update, replace |
| 26 |
- columns: [ |
|
| 27 |
- {
|
|
| 28 |
- title: "이름", |
|
| 29 |
- field: "addrNm", |
|
| 30 |
- hozAlign: "center", |
|
| 31 |
- headerHozAlign: "center", |
|
| 32 |
- width: 140 |
|
| 33 |
- }, |
|
| 34 |
- {
|
|
| 35 |
- title: "휴대폰", |
|
| 36 |
- field: "phone", |
|
| 37 |
- hozAlign: "center", |
|
| 38 |
- headerHozAlign: "center", |
|
| 39 |
- width: 200 |
|
| 40 |
- }, |
|
| 41 |
- {
|
|
| 42 |
- title: "상세결과", |
|
| 43 |
- field: "result", |
|
| 44 |
- hozAlign: "center", |
|
| 45 |
- headerHozAlign: "center", |
|
| 46 |
- width: 180 |
|
| 47 |
- } |
|
| 48 |
- ] |
|
| 43 |
+ placeholder:"데이터를 불러오고 있습니다...", |
|
| 44 |
+ columns: [ |
|
| 45 |
+ {
|
|
| 46 |
+ title: "휴대폰", |
|
| 47 |
+ field: "phone", |
|
| 48 |
+ hozAlign: "center", |
|
| 49 |
+ headerHozAlign: "center", |
|
| 50 |
+ widthGrow: 1 |
|
| 51 |
+ }, |
|
| 52 |
+ {
|
|
| 53 |
+ title: "상세결과", |
|
| 54 |
+ field: "result", |
|
| 55 |
+ hozAlign: "center", |
|
| 56 |
+ headerHozAlign: "center", |
|
| 57 |
+ widthGrow: 1 |
|
| 58 |
+ } |
|
| 59 |
+ ] |
|
| 49 | 60 |
}); |
| 50 | 61 |
|
| 51 | 62 |
fn_getDetailList(); |
... | ... | @@ -56,11 +67,42 @@ |
| 56 | 67 |
$("#goList").submit();
|
| 57 | 68 |
}); |
| 58 | 69 |
|
| 70 |
+ |
|
| 71 |
+ // 검색 버튼 클릭 시 실행 |
|
| 72 |
+ $("#searchBtn").on("click", function () {
|
|
| 73 |
+ searchTable(); |
|
| 74 |
+ }); |
|
| 75 |
+ |
|
| 76 |
+ // Enter 키 입력 시 실행 |
|
| 77 |
+ $("#searchInput").on("keyup", function (event) {
|
|
| 78 |
+ if (event.key === "Enter") {
|
|
| 79 |
+ searchTable(); |
|
| 80 |
+ } |
|
| 81 |
+ }); |
|
| 59 | 82 |
|
| 60 | 83 |
|
| 61 | 84 |
|
| 62 |
- |
|
| 63 |
- |
|
| 85 |
+ // 탭 버튼 클릭 이벤트 |
|
| 86 |
+ $(".tabType3 .tab button").on("click", function () {
|
|
| 87 |
+ console.log('.tabType3 .tab button');
|
|
| 88 |
+ // 모든 탭의 active 클래스 제거 |
|
| 89 |
+ $(".tabType3 .tab").removeClass("active");
|
|
| 90 |
+ |
|
| 91 |
+ // 클릭한 버튼의 부모 요소(li)에 active 클래스 추가 |
|
| 92 |
+ $(this).parent().addClass("active");
|
|
| 93 |
+ |
|
| 94 |
+ // 기존 버튼들의 title 속성 초기화 |
|
| 95 |
+ $(".tabType3 .tab button").removeAttr("title");
|
|
| 96 |
+ |
|
| 97 |
+ // 선택된 버튼의 title 속성을 "선택됨"으로 변경 |
|
| 98 |
+ $(this).attr("title", "선택됨");
|
|
| 99 |
+ |
|
| 100 |
+ |
|
| 101 |
+ // 클릭한 버튼의 텍스트 가져오기 |
|
| 102 |
+ let resultText = $(this).text().trim(); |
|
| 103 |
+ fn_tabTable('result', resultText);
|
|
| 104 |
+ |
|
| 105 |
+ }); |
|
| 64 | 106 |
|
| 65 | 107 |
}); |
| 66 | 108 |
|
... | ... | @@ -91,11 +133,12 @@ |
| 91 | 133 |
} |
| 92 | 134 |
|
| 93 | 135 |
|
| 136 |
+/** |
|
| 137 |
+ * @Description: 데이터 설정 |
|
| 138 |
+ */ |
|
| 94 | 139 |
function fn_setData(data){
|
| 95 |
- console.log('data : ', data);
|
|
| 96 |
- |
|
| 97 |
- |
|
| 98 |
- // $tbDtailList.clearData(); |
|
| 140 |
+// console.log('data : ', data);
|
|
| 141 |
+// $tbDtailList.clearData(); |
|
| 99 | 142 |
|
| 100 | 143 |
const resultData = []; // 오류 데이터를 저장할 배열 |
| 101 | 144 |
|
... | ... | @@ -115,7 +158,70 @@ |
| 115 | 158 |
|
| 116 | 159 |
}; |
| 117 | 160 |
|
| 161 |
+/** |
|
| 162 |
+ * @Description: 검색 기능 |
|
| 163 |
+ */ |
|
| 164 |
+function searchTable() {
|
|
| 165 |
+ let column = $("#searchColumn").val(); // 선택한 컬럼
|
|
| 166 |
+ let keyword = $("#searchInput").val(); // 검색어
|
|
| 118 | 167 |
|
| 168 |
+ // 검색어가 3자 이상일 때만 필터 적용 |
|
| 169 |
+// if (keyword.length >= 3) {
|
|
| 170 |
+ $tbDtailList.setFilter(column, "like", keyword); |
|
| 171 |
+ fn_setPlaceholder("검색 결과가 없습니다.");
|
|
| 172 |
+// } else {
|
|
| 173 |
+// $tbDtailList.clearFilter(); // 검색어가 짧으면 필터 제거 |
|
| 174 |
+// } |
|
| 175 |
+} |
|
| 176 |
+ |
|
| 177 |
+/** |
|
| 178 |
+ * @Description: 탭 검색 기능 |
|
| 179 |
+ */ |
|
| 180 |
+function fn_tabTable(column, keyword) {
|
|
| 181 |
+ |
|
| 182 |
+ if(keyword == '전체'){
|
|
| 183 |
+ $tbDtailList.clearFilter(); |
|
| 184 |
+ }else{
|
|
| 185 |
+ $tbDtailList.setFilter(column, "like", keyword); |
|
| 186 |
+ } |
|
| 187 |
+ |
|
| 188 |
+ fn_setPlaceholder("검색 결과가 없습니다.");
|
|
| 189 |
+} |
|
| 190 |
+ |
|
| 191 |
+/** |
|
| 192 |
+ * @Description: 타블레이서 설명 수정 |
|
| 193 |
+ */ |
|
| 194 |
+function fn_setPlaceholder(msg){
|
|
| 195 |
+ |
|
| 196 |
+ // 검색 후 데이터가 있는지 확인 후 placeholder 변경 |
|
| 197 |
+ setTimeout(() => {
|
|
| 198 |
+ let filteredRows = $tbDtailList.getRows('active').length; // 필터링된 행 개수 가져오기
|
|
| 199 |
+ if (filteredRows === 0) {
|
|
| 200 |
+ // 기존 데이터 유지하면서 빈 데이터 추가하여 placeholder 변경 |
|
| 201 |
+ $(".tabulator-placeholder").text(msg); // placeholder 메시지 변경
|
|
| 202 |
+ } |
|
| 203 |
+ }, 300); // 필터 적용 후 반영되도록 약간의 딜레이 추가 |
|
| 204 |
+} |
|
| 205 |
+ |
|
| 206 |
+ |
|
| 207 |
+/** |
|
| 208 |
+ * @Description: 필터링된 데이터만 다운로드 |
|
| 209 |
+ */ |
|
| 210 |
+function fn_downloadFilteredExcel() {
|
|
| 211 |
+ let filteredData = $tbDtailList.getData("active"); // 필터링된 데이터 가져오기
|
|
| 212 |
+ |
|
| 213 |
+ if (filteredData.length === 0) {
|
|
| 214 |
+ alert("다운로드할 데이터가 없습니다.");
|
|
| 215 |
+ return; |
|
| 216 |
+ } |
|
| 217 |
+ |
|
| 218 |
+// console.log("엑셀 다운로드 - 필터링된 데이터:", filteredData);
|
|
| 219 |
+ |
|
| 220 |
+ $tbDtailList.download("xlsx", "filtered_data.xlsx", {
|
|
| 221 |
+ sheetName: "Filtered Data", |
|
| 222 |
+ data: filteredData // 필터링된 데이터만 다운로드 |
|
| 223 |
+ }); |
|
| 224 |
+} |
|
| 119 | 225 |
|
| 120 | 226 |
</script> |
| 121 | 227 |
<div class="inner"> |
... | ... | @@ -144,95 +250,136 @@ |
| 144 | 250 |
<div class="send_general"> |
| 145 | 251 |
<!-- 발송결과 상세 정보 --> |
| 146 | 252 |
<div class="resultcont_left"> |
| 147 |
- <!--발송정보--> |
|
| 148 |
- <div class="res_info"> |
|
| 149 |
- <div class="res_info_in"> |
|
| 150 |
- <div class="res_info_top clearfix"> |
|
| 151 |
- <p>발송정보</p> |
|
| 152 |
- <p><button type="button" class="btnType btnType3">재전송</button></p> |
|
| 253 |
+ <!--발송정보--> |
|
| 254 |
+ <div class="res_info"> |
|
| 255 |
+ <div class="res_info_in"> |
|
| 256 |
+ <div class="res_info_top clearfix"> |
|
| 257 |
+ <p>발송정보</p> |
|
| 258 |
+ <p><button type="button" class="btnType btnType3">재전송</button></p> |
|
| 259 |
+ </div> |
|
| 260 |
+ <div class="res_info_btm"> |
|
| 261 |
+ <dl> |
|
| 262 |
+ <dt>발송일시</dt> |
|
| 263 |
+ <dd> |
|
| 264 |
+ ${result.reqDate}
|
|
| 265 |
+ </dd> |
|
| 266 |
+ </dl> |
|
| 267 |
+ <c:if test="${result.reserveYn eq 'Y' }">
|
|
| 268 |
+ <dl><!-- 예약 시 --> |
|
| 269 |
+ <dt>등록일시</dt> |
|
| 270 |
+ <dd>${result.regDate }</dd>
|
|
| 271 |
+ </dl> |
|
| 272 |
+ </c:if> |
|
| 273 |
+ <dl> |
|
| 274 |
+ <dt>제목</dt> |
|
| 275 |
+ <dd>${result.subject }</dd>
|
|
| 276 |
+ </dl> |
|
| 277 |
+ <dl> |
|
| 278 |
+ <dt>형태</dt> |
|
| 279 |
+ <dd> |
|
| 280 |
+ ${result.msgType == '4'
|
|
| 281 |
+ ? '단문' |
|
| 282 |
+ : (result.fileCnt == '0' |
|
| 283 |
+ ? '장문' |
|
| 284 |
+ : '그림')} |
|
| 285 |
+ </dd> |
|
| 286 |
+ </dl> |
|
| 287 |
+ <dl> |
|
| 288 |
+ <dt>발송건수</dt> |
|
| 289 |
+ <dd><span class="c_222"><fmt:formatNumber value="${result.msgGroupCnt}" type="number" groupingUsed="true" /></span>건</dd>
|
|
| 290 |
+ </dl> |
|
| 291 |
+ <dl> |
|
| 292 |
+ <dt>발신번호</dt> |
|
| 293 |
+ <dd>${result.callFrom }</dd>
|
|
| 294 |
+ </dl> |
|
| 295 |
+ <dl> |
|
| 296 |
+ <dt>진행상황 |
|
| 297 |
+ <!-- 예약인 경우 --> |
|
| 298 |
+ <c:if test="${result.reserveYn eq 'Y'}">
|
|
| 299 |
+ <div class="icon_wrap"> |
|
| 300 |
+ <div class="re">예약</div> |
|
| 301 |
+ <!-- 예약일때만 분할이 있음 --> |
|
| 302 |
+ <c:if test="${result.divideYN eq 'Y'}">
|
|
| 303 |
+ <div class="di_info"> |
|
| 304 |
+ <button class="di">분할</button> |
|
| 305 |
+ <div class="di_hover_layer"> |
|
| 306 |
+ <strong>100,000건</strong>씩 <strong>35분</strong> 간격 |
|
| 307 |
+ </div> |
|
| 308 |
+ </div> |
|
| 309 |
+ </c:if> |
|
| 310 |
+ </div> |
|
| 311 |
+ </c:if> |
|
| 312 |
+ <!--// 예약인 경우 --> |
|
| 313 |
+ </dt> |
|
| 314 |
+ <!--<dd>진행중</dd>--> |
|
| 315 |
+ <!--<dd>완료</dd>--> |
|
| 316 |
+ <dd> |
|
| 317 |
+ |
|
| 318 |
+ <c:choose> |
|
| 319 |
+ <c:when test="${result.statusCd ne '03' }">
|
|
| 320 |
+ <ec:code codeId="ITN057" code="${result.statusCd }" />
|
|
| 321 |
+ </c:when> |
|
| 322 |
+ <c:otherwise> |
|
| 323 |
+ <p><button class="btnType btnType20" onClick="javascript:fnReservCancel('${result.msgGroupId}'); return false;">예약취소</button></p>
|
|
| 324 |
+ </c:otherwise> |
|
| 325 |
+ </c:choose> |
|
| 326 |
+ |
|
| 327 |
+ <!-- --> |
|
| 328 |
+<!-- <button class="btnType btnType20">예약취소</button> --> |
|
| 329 |
+ </dd> |
|
| 330 |
+ <!--<dd>예약취소 2024-07-16 15:07</dd>--><!-- 예역취소 후 버튼 대신 취소 일시 노출 --> |
|
| 331 |
+ </dl> |
|
| 332 |
+ </div> |
|
| 333 |
+ <div class="res_info_btm"> |
|
| 334 |
+ <dl> |
|
| 335 |
+ <dt class="btm_charge">발송요금</dt> |
|
| 336 |
+ <dd><span class="stcharge">78,100</span>원</dd> |
|
| 337 |
+ <!--<dd><span class="stcharge">-</span>원</dd>--><!-- 예역취소 후 금액은 하이픈 처리--> |
|
| 338 |
+ </dl> |
|
| 339 |
+ </div> |
|
| 340 |
+ </div> |
|
| 153 | 341 |
</div> |
| 154 |
- <div class="res_info_btm"> |
|
| 155 |
- <dl> |
|
| 156 |
- <dt>발송일시</dt> |
|
| 157 |
- <dd>2024-07-18 15:25</dd> |
|
| 158 |
- </dl> |
|
| 159 |
- <dl> |
|
| 160 |
- <dt>형태</dt> |
|
| 161 |
- <dd>그림</dd> |
|
| 162 |
- </dl> |
|
| 163 |
- <dl> |
|
| 164 |
- <dt>발송건수</dt> |
|
| 165 |
- <dd><span class="c_222">100</span>건</dd> |
|
| 166 |
- </dl> |
|
| 167 |
- <dl> |
|
| 168 |
- <dt>발신번호</dt> |
|
| 169 |
- <dd>010-1234-5678</dd> |
|
| 170 |
- </dl> |
|
| 171 |
- <dl> |
|
| 172 |
- <dt>예약관리</dt> |
|
| 173 |
- <!--<dd>-</dd>--><!-- 예약건이 아닌 경우는 하이픈 처리--> |
|
| 174 |
- <dd><button class="btnType btnType25">예약취소</button></dd> |
|
| 175 |
- <!--<dd>예약취소 2024-07-16 15:07</dd>--><!-- 예역취소 후 버튼 대신 취소 일시 노출 --> |
|
| 176 |
- </dl> |
|
| 342 |
+ <!--// 발송정보--> |
|
| 343 |
+ <!--상세결과--> |
|
| 344 |
+ <div class="res_info"> |
|
| 345 |
+ <div class="res_info_in"> |
|
| 346 |
+ <div class="res_info_top clearfix" style="padding:0 0 10px 0;"> |
|
| 347 |
+ <p>상세결과</p> |
|
| 348 |
+ <p></p> |
|
| 349 |
+ </div> |
|
| 350 |
+ <div class="res_num"> |
|
| 351 |
+ <div class="res_info_btm1"> |
|
| 352 |
+ <dl> |
|
| 353 |
+ <dt>전체건수</dt> |
|
| 354 |
+ <dd><a href="#" data-tooltip="rev_popup04"><span class="c_222_g"><fmt:formatNumber value="${result.msgGroupCnt}" type="number" groupingUsed="true" /></span>건</a></dd>
|
|
| 355 |
+ </dl> |
|
| 356 |
+ </div> |
|
| 357 |
+ <div class="res_info_btm1"> |
|
| 358 |
+ <dl> |
|
| 359 |
+ <dt>성공건수</dt> |
|
| 360 |
+ <dd><span class="c_002c9a_g"><fmt:formatNumber value="${result.resultSValue}" type="number" groupingUsed="true" /></span>건(${result.successPct})</dd>
|
|
| 361 |
+ </dl> |
|
| 362 |
+ </div> |
|
| 363 |
+ </div> |
|
| 364 |
+ <div class="res_num"> |
|
| 365 |
+ <div class="res_info_btm1"> |
|
| 366 |
+ <dl> |
|
| 367 |
+ <dt>대기건수</dt> |
|
| 368 |
+ <dd><span class="c_666_g"><fmt:formatNumber value="${result.resultWValue}" type="number" groupingUsed="true" /></span>건(${result.waitingPct})</dd>
|
|
| 369 |
+ </dl> |
|
| 370 |
+ </div> |
|
| 371 |
+ <div class="res_info_btm1"> |
|
| 372 |
+ <dl> |
|
| 373 |
+ <dt>실패건수</dt> |
|
| 374 |
+ <dd><span class="c_e40000_g"><fmt:formatNumber value="${result.resultFValue}" type="number" groupingUsed="true" /></span>건(${result.failedPct})</dd>
|
|
| 375 |
+ </dl> |
|
| 376 |
+ </div> |
|
| 377 |
+ </div> |
|
| 378 |
+ <p class="table_bottom_txt">* 전체건수를 클릭하면 받는 사람 상세정보를 확인하실 수 있습니다.</p> |
|
| 379 |
+ </div> |
|
| 177 | 380 |
</div> |
| 178 |
- <div class="res_info_btm"> |
|
| 179 |
- <dl> |
|
| 180 |
- <dt class="btm_charge">발송요금</dt> |
|
| 181 |
- <dd><span class="stcharge">100</span>원</dd> |
|
| 182 |
- <!--<dd><span class="stcharge">-</span>원</dd>--><!-- 예역취소 후 금액은 하이픈 처리--> |
|
| 183 |
- </dl> |
|
| 184 |
- </div> |
|
| 185 |
- </div> |
|
| 186 |
- </div> |
|
| 187 |
- <!--// 발송정보--> |
|
| 188 |
- <!--상세결과--> |
|
| 189 |
- <div class="res_info"> |
|
| 190 |
- <div class="res_info_in"> |
|
| 191 |
- <div class="res_info_top clearfix" style="padding:0 0 10px 0;"> |
|
| 192 |
- <p>상세결과</p> |
|
| 193 |
- <p><button type="button" class="refresh_btn btnType"><i class="refresh_img"></i>새로고침</button></p> |
|
| 194 |
- </div> |
|
| 195 |
- <div class="res_num"> |
|
| 196 |
- <div class="res_info_btm1"> |
|
| 197 |
- <dl> |
|
| 198 |
- <dt>전체건수</dt> |
|
| 199 |
- <dd><a href="#" data-tooltip="rev_popup04"><span class="c_222_g">101</span>건(100%)</a></dd> |
|
| 200 |
- </dl> |
|
| 201 |
- </div> |
|
| 202 |
- <div class="res_info_btm1"> |
|
| 203 |
- <dl> |
|
| 204 |
- <dt>성공건수</dt> |
|
| 205 |
- <dd><span class="c_002c9a_g">100</span>건(100%)</dd> |
|
| 206 |
- </dl> |
|
| 207 |
- </div> |
|
| 208 |
- </div> |
|
| 209 |
- <div class="res_num"> |
|
| 210 |
- <div class="res_info_btm1"> |
|
| 211 |
- <dl> |
|
| 212 |
- <dt>대기건수</dt> |
|
| 213 |
- <dd><span class="c_666_g">0</span>건(0%)</dd> |
|
| 214 |
- </dl> |
|
| 215 |
- </div> |
|
| 216 |
- <div class="res_info_btm1"> |
|
| 217 |
- <dl> |
|
| 218 |
- <dt>실패건수</dt> |
|
| 219 |
- <dd><span class="c_e40000_g">1</span>건(100%)</dd> |
|
| 220 |
- </dl> |
|
| 221 |
- </div> |
|
| 222 |
- </div> |
|
| 223 |
- </div> |
|
| 224 |
- </div> |
|
| 225 |
- <!--// 발송결과--> |
|
| 381 |
+ <!--// 발송결과--> |
|
| 226 | 382 |
|
| 227 |
- <div class="table_btn clearfix"> |
|
| 228 |
- <div class="table_btn_left"> |
|
| 229 |
- <button type="button" data-tooltip="rev_popup02" class="btnType btnType14"><i class="add_img"></i>주소록 등록</button> |
|
| 230 |
- <button type="button" class="excel_btn btnType"><i class="downroad"></i>엑셀 다운로드</button> |
|
| 231 |
- </div> |
|
| 232 |
- <div class="table_btn_right"> |
|
| 233 |
- <p class="table_btn_right_txt">* 전체 건수를 클릭하면 받는 사람 상세정보를 확인하실 수 있습니다.</p> |
|
| 234 |
- </div> |
|
| 235 |
- </div> |
|
| 236 | 383 |
</div> |
| 237 | 384 |
<!--// 발송결과 상세 정보 --> |
| 238 | 385 |
|
... | ... | @@ -294,12 +441,12 @@ |
| 294 | 441 |
</div> |
| 295 | 442 |
<div class="preview_auto"> |
| 296 | 443 |
<c:if test="${result.msgKind eq 'A' }" >
|
| 297 |
- <p class="ad_tit">(광고)</p> |
|
| 444 |
+ <p class="ad_tit">(광고)</p> |
|
| 298 | 445 |
</c:if> |
| 299 | 446 |
<p class="none_txt"><c:out value="${result.smsTxt }" /></p>
|
| 300 | 447 |
<p class="realtime"></p> |
| 301 | 448 |
<c:if test="${result.msgKind eq 'A' }" >
|
| 302 |
- <p class="deny_receipt">무료 거부 080-0000-0000</p> |
|
| 449 |
+ <p class="deny_receipt">무료 거부 080-0000-0000</p> |
|
| 303 | 450 |
</c:if> |
| 304 | 451 |
</div> |
| 305 | 452 |
</div> |
... | ... | @@ -327,7 +474,7 @@ |
| 327 | 474 |
|
| 328 | 475 |
<!-- 발송대상리스트 팝업 --> |
| 329 | 476 |
<div class="tooltip-wrap"> |
| 330 |
- <div class="popup-com ad_layer rev_popup04" tabindex="0" data-tooltip-con="rev_popup04" data-focus="rev_popup04" data-focus-prev="rev_popup04-close" style="width:595px;"> |
|
| 477 |
+ <div class="popup-com ad_layer rev_popup04" tabindex="0" data-tooltip-con="rev_popup04" data-focus="rev_popup04" data-focus-prev="rev_popup04-close" style="width:530px;"> |
|
| 331 | 478 |
<div class="popup_heading"> |
| 332 | 479 |
<p>발송대상 리스트</p> |
| 333 | 480 |
<button type="button" class="tooltip-close" data-focus="rev_popup04-close"><img src="/publish/images/content/layerPopup_close.png" alt="팝업 닫기"></button> |
... | ... | @@ -343,113 +490,35 @@ |
| 343 | 490 |
|
| 344 | 491 |
<div class="popup_search_type1"> |
| 345 | 492 |
<label for="" class="label">검색종류 선택</label> |
| 346 |
- <select id="" class="selType2 select_btn"> |
|
| 347 |
- <option value="1">수신번호</option> |
|
| 348 |
- <option value="2">이름</option> |
|
| 349 |
- <option value="3">상세결과</option> |
|
| 493 |
+ <select id="searchColumn" class="selType1 select_btn"> |
|
| 494 |
+ <option value="phone">수신번호</option> |
|
| 495 |
+ <option value="result">상세결과</option> |
|
| 350 | 496 |
</select> |
| 351 | 497 |
<label for="" class="label">검색어입력</label> |
| 352 |
- <input type="text" class="send_text" id="" name="" value="" placeholder="3자 이상 입력하세요." onfocus="this.placeholder=''" onblur="this.placeholder='3자 이상 입력하세요.'"> |
|
| 353 |
- <button type="button" class="btnType btnType2" style="width:63px; margin:0;">검색</button> |
|
| 498 |
+ <input type="text" class="send_text" id="searchInput" name="" value="" placeholder="3자 이상 입력하세요." onfocus="this.placeholder=''" onblur="this.placeholder='3자 이상 입력하세요.'"> |
|
| 499 |
+ <button type="button" id="searchBtn" class="btnType btnType2" style="width:63px; margin:0;">검색</button> |
|
| 354 | 500 |
</div> |
| 355 | 501 |
|
| 502 |
+ <div class="list_tab_wrap2 type4"> |
|
| 503 |
+ <ul class="tabType3" id="tabType" name="tabType"> |
|
| 504 |
+ <li class="tab active"><button type="button" title="선택됨">전체</button></li> |
|
| 505 |
+ <li class="tab"><button type="button">대기</button></li> |
|
| 506 |
+ <li class="tab"><button type="button">성공</button></li> |
|
| 507 |
+ <li class="tab"><button type="button">실패</button></li> |
|
| 508 |
+ </ul> |
|
| 509 |
+ </div> |
|
| 510 |
+ |
|
| 356 | 511 |
<div class="tb_wrap" id="detailPopup" style="min-height:200px;"> |
| 357 |
- <%-- <table class="tType4"> |
|
| 358 |
- <colgroup> |
|
| 359 |
- <col style="width: 30%;"> |
|
| 360 |
- <col style="width: 40%;"> |
|
| 361 |
- <col style="width: 30%;"> |
|
| 362 |
- </colgroup> |
|
| 363 |
- <thead> |
|
| 364 |
- <tr> |
|
| 365 |
- <th>이름 |
|
| 366 |
- <div class="sort_wrap"> |
|
| 367 |
- <input type="button" class="sort sortBtn"> |
|
| 368 |
- </div> |
|
| 369 |
- </th> |
|
| 370 |
- <th>수신번호 |
|
| 371 |
- <div class="sort_wrap"> |
|
| 372 |
- <input type="button" class="sort sortBtn"> |
|
| 373 |
- </div> |
|
| 374 |
- </th> |
|
| 375 |
- <th>상세결과 |
|
| 376 |
- <div class="sort_wrap"> |
|
| 377 |
- <input type="button" class="sort sortBtn"> |
|
| 378 |
- </div> |
|
| 379 |
- </th> |
|
| 380 |
- </tr> |
|
| 381 |
- </thead> |
|
| 382 |
- <tbody> |
|
| 383 |
- <tr> |
|
| 384 |
- <td>홍길동</td> |
|
| 385 |
- <td>010-1234-5678</td> |
|
| 386 |
- <td>성공</td> |
|
| 387 |
- </tr> |
|
| 388 |
- <tr> |
|
| 389 |
- <td>홍길동</td> |
|
| 390 |
- <td>010-1234-5678</td> |
|
| 391 |
- <td>성공</td> |
|
| 392 |
- </tr> |
|
| 393 |
- <tr> |
|
| 394 |
- <td>홍길동</td> |
|
| 395 |
- <td>010-1234-5678</td> |
|
| 396 |
- <td>성공</td> |
|
| 397 |
- </tr> |
|
| 398 |
- <tr> |
|
| 399 |
- <td>홍길동</td> |
|
| 400 |
- <td>010-1234-5678</td> |
|
| 401 |
- <td>성공</td> |
|
| 402 |
- </tr> |
|
| 403 |
- <tr> |
|
| 404 |
- <td>홍길동</td> |
|
| 405 |
- <td>010-1234-5678</td> |
|
| 406 |
- <td>성공</td> |
|
| 407 |
- </tr> |
|
| 408 |
- <tr> |
|
| 409 |
- <td>홍길동</td> |
|
| 410 |
- <td>010-1234-5678</td> |
|
| 411 |
- <td>성공</td> |
|
| 412 |
- </tr> |
|
| 413 |
- <tr> |
|
| 414 |
- <td>홍길동</td> |
|
| 415 |
- <td>010-1234-5678</td> |
|
| 416 |
- <td>성공</td> |
|
| 417 |
- </tr> |
|
| 418 |
- </tbody> |
|
| 419 |
- </table> |
|
| 420 |
- --%> |
|
| 512 |
+ <!-- 타블레이터 영역 --> |
|
| 421 | 513 |
</div> |
| 422 | 514 |
|
| 423 | 515 |
<div class="table_btn clearfix"> |
| 424 |
- <div class="table_btn_left"></div> |
|
| 425 |
- <div class="table_btn_right"> |
|
| 516 |
+ <div class="table_btn_left"> |
|
| 517 |
+ <button type="button" onclick="fn_downloadFilteredExcel()" class="excel_btn btnType"><i class="downroad"></i>엑셀 다운로드</button> |
|
| 426 | 518 |
<button type="button" data-tooltip="rev_popup02" class="btnType btnType14"><i class="add_img"></i>주소록 등록</button> |
| 427 |
- <button type="button" class="excel_btn btnType"><i class="downroad"></i>엑셀 다운로드</button> |
|
| 519 |
+ <button type="button" class="btnType btnType15"><i class="remove_img"></i>주소록에서 번호 삭제</button> |
|
| 428 | 520 |
</div> |
| 429 | 521 |
</div> |
| 430 |
- <!-- |
|
| 431 |
- pagination |
|
| 432 |
- <ul class="pagination"> |
|
| 433 |
- <li class="page_first"><button><img src="/publish/images/content/page_first.png" |
|
| 434 |
- alt=""></button></li> |
|
| 435 |
- <li class="page_prev"><button><img src="/publish/images/content/page_prev.png" |
|
| 436 |
- alt=""></button></li> |
|
| 437 |
- <li class="on"><button>1</button></li> |
|
| 438 |
- <li><button>2</button></li> |
|
| 439 |
- <li><button>3</button></li> |
|
| 440 |
- <li><button>4</button></li> |
|
| 441 |
- <li><button>5</button></li> |
|
| 442 |
- <li><button>6</button></li> |
|
| 443 |
- <li><button>7</button></li> |
|
| 444 |
- <li><button>8</button></li> |
|
| 445 |
- <li><button>9</button></li> |
|
| 446 |
- <li><button>10</button></li> |
|
| 447 |
- <li class="page_next"><button><img src="/publish/images/content/page_next.png" |
|
| 448 |
- alt=""></button></li> |
|
| 449 |
- <li class="page_last"><button><img src="/publish/images/content/page_last.png" |
|
| 450 |
- alt=""></button></li> |
|
| 451 |
- </ul>pagination |
|
| 452 |
- --> |
|
| 453 | 522 |
</div> |
| 454 | 523 |
<div class="popup_btn_wrap2" style="margin: -40px auto 30px auto;"> |
| 455 | 524 |
<button type="button" class="tooltip-close" data-focus="adr_popup01-close" data-focus-next="popup02">닫기</button> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?