From 421110ea6a706e340672c254096bbef7bf1281b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A3=BC=EC=88=98=ED=98=84?= Date: Thu, 17 Jul 2025 15:30:16 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B8=88=EC=9D=BC=20=EB=93=B1=EB=A1=9D=20?= =?UTF-8?q?=EC=97=86=EC=9D=8C=20=EC=B2=B4=ED=81=AC=20=EB=B0=95=EC=8A=A4=20?= =?UTF-8?q?=ED=81=B4=EB=A6=AD=EC=8B=9C=20alert=EC=B0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/record/expense/index.html | 20 +++++++++++++++++- .../templates/record/farming/index.html | 20 +++++++++++++++++- .../templates/record/forestry/index.html | 20 +++++++++++++++++- .../templates/record/income/index.html | 21 +++++++++++++++++-- .../templates/record/power/index.html | 20 +++++++++++++++++- .../templates/record/work/index.html | 20 +++++++++++++++++- 6 files changed, 114 insertions(+), 7 deletions(-) diff --git a/front/src/main/resources/templates/record/expense/index.html b/front/src/main/resources/templates/record/expense/index.html index dc795d01..84f6a4b5 100644 --- a/front/src/main/resources/templates/record/expense/index.html +++ b/front/src/main/resources/templates/record/expense/index.html @@ -36,7 +36,8 @@ + th:checked="${#strings.equals(dailyRecord.expenseStatus, T(app.module.core.config.application.enums.DailyTargetStatus).TODAY_NONE)}" + onchange="modalControl.showTodayNoneAlert(this)"> 금일 등록내용 없음 @@ -466,6 +467,23 @@ ajaxUtil._hideWaiting(); }, + showTodayNoneAlert(checkbox){ + if (checkbox.checked) { + etUI.dialog.alert({ + message: '금일 등록내용 없음을 선택하셨습니다.', + type: 'alert', + callback: function () { + }, + }); + }else{ + etUI.dialog.alert({ + message: '등록을 선택하셨습니다.', + type: 'alert', + callback: function () { + }, + }); + } + }, }; diff --git a/front/src/main/resources/templates/record/farming/index.html b/front/src/main/resources/templates/record/farming/index.html index b9ed6a39..775fee32 100644 --- a/front/src/main/resources/templates/record/farming/index.html +++ b/front/src/main/resources/templates/record/farming/index.html @@ -36,7 +36,8 @@ + th:checked="${#strings.equals(dailyRecord.farmingStatus, T(app.module.core.config.application.enums.DailyTargetStatus).TODAY_NONE)}" + onchange="modalControl.showTodayNoneAlert(this)"> 금일 등록내용 없음 @@ -216,6 +217,23 @@ }, ); }, + showTodayNoneAlert(checkbox){ + if (checkbox.checked) { + etUI.dialog.alert({ + message: '금일 등록내용 없음을 선택하셨습니다.', + type: 'alert', + callback: function () { + }, + }); + }else{ + etUI.dialog.alert({ + message: '등록을 선택하셨습니다.', + type: 'alert', + callback: function () { + }, + }); + } + }, }; diff --git a/front/src/main/resources/templates/record/forestry/index.html b/front/src/main/resources/templates/record/forestry/index.html index 8324c0ba..ae4a60d0 100644 --- a/front/src/main/resources/templates/record/forestry/index.html +++ b/front/src/main/resources/templates/record/forestry/index.html @@ -36,7 +36,8 @@ + th:checked="${#strings.equals(dailyRecord.forestryStatus, T(app.module.core.config.application.enums.DailyTargetStatus).TODAY_NONE)}" + onchange="modalControl.showTodayNoneAlert(this)"> 금일 등록내용 없음 @@ -204,6 +205,23 @@ }, ); }, + showTodayNoneAlert(checkbox){ + if (checkbox.checked) { + etUI.dialog.alert({ + message: '금일 등록내용 없음을 선택하셨습니다.', + type: 'alert', + callback: function () { + }, + }); + }else{ + etUI.dialog.alert({ + message: '등록을 선택하셨습니다.', + type: 'alert', + callback: function () { + }, + }); + } + }, }; diff --git a/front/src/main/resources/templates/record/income/index.html b/front/src/main/resources/templates/record/income/index.html index 98e2792b..4baa9800 100644 --- a/front/src/main/resources/templates/record/income/index.html +++ b/front/src/main/resources/templates/record/income/index.html @@ -45,7 +45,8 @@ + th:checked="${#strings.equals(dailyRecord.incomeStatus, T(app.module.core.config.application.enums.DailyTargetStatus).TODAY_NONE)}" + onchange="modalControl.showTodayNoneAlert(this)"> 금일 등록내용 없음 @@ -525,7 +526,23 @@ ajaxUtil._hideWaiting(); }, - + showTodayNoneAlert(checkbox){ + if (checkbox.checked) { + etUI.dialog.alert({ + message: '금일 등록내용 없음을 선택하셨습니다.', + type: 'alert', + callback: function () { + }, + }); + }else{ + etUI.dialog.alert({ + message: '등록을 선택하셨습니다.', + type: 'alert', + callback: function () { + }, + }); + } + }, }; diff --git a/front/src/main/resources/templates/record/power/index.html b/front/src/main/resources/templates/record/power/index.html index bd07d638..58c293d5 100644 --- a/front/src/main/resources/templates/record/power/index.html +++ b/front/src/main/resources/templates/record/power/index.html @@ -36,7 +36,8 @@ + th:checked="${#strings.equals(dailyRecord.powerStatus, T(app.module.core.config.application.enums.DailyTargetStatus).TODAY_NONE)}" + onchange="modalControl.showTodayNoneAlert(this)"> 금일 등록내용 없음 @@ -205,6 +206,23 @@ }, ); }, + showTodayNoneAlert(checkbox){ + if (checkbox.checked) { + etUI.dialog.alert({ + message: '금일 등록내용 없음을 선택하셨습니다.', + type: 'alert', + callback: function () { + }, + }); + }else{ + etUI.dialog.alert({ + message: '등록을 선택하셨습니다.', + type: 'alert', + callback: function () { + }, + }); + } + }, }; diff --git a/front/src/main/resources/templates/record/work/index.html b/front/src/main/resources/templates/record/work/index.html index cb20f194..cbe70a52 100644 --- a/front/src/main/resources/templates/record/work/index.html +++ b/front/src/main/resources/templates/record/work/index.html @@ -36,7 +36,8 @@ + th:checked="${#strings.equals(dailyRecord.workStatus, T(app.module.core.config.application.enums.DailyTargetStatus).TODAY_NONE)}" + onchange="modalControl.showTodayNoneAlert(this)"> 금일 등록내용 없음 @@ -266,6 +267,23 @@ } ); }, + showTodayNoneAlert(checkbox){ + if (checkbox.checked) { + etUI.dialog.alert({ + message: '금일 등록내용 없음을 선택하셨습니다.', + type: 'alert', + callback: function () { + }, + }); + }else{ + etUI.dialog.alert({ + message: '등록을 선택하셨습니다.', + type: 'alert', + callback: function () { + }, + }); + } + }, };