금일 등록 없음 체크 박스 클릭시 alert창
This commit is contained in:
@@ -36,7 +36,8 @@
|
||||
<input type="checkbox" name="todayNone"
|
||||
data-type="EXPENSE"
|
||||
th:disabled="${not btnActive}"
|
||||
th:checked="${#strings.equals(dailyRecord.expenseStatus, T(app.module.core.config.application.enums.DailyTargetStatus).TODAY_NONE)}">
|
||||
th:checked="${#strings.equals(dailyRecord.expenseStatus, T(app.module.core.config.application.enums.DailyTargetStatus).TODAY_NONE)}"
|
||||
onchange="modalControl.showTodayNoneAlert(this)">
|
||||
<span class="checkbox-item">
|
||||
<span class="checkbox-txt">금일 등록내용 없음</span>
|
||||
</span>
|
||||
@@ -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 () {
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
</section>
|
||||
|
||||
@@ -36,7 +36,8 @@
|
||||
<input type="checkbox" name="todayNone"
|
||||
data-type="FARMING"
|
||||
th:disabled="${not btnActive}"
|
||||
th:checked="${#strings.equals(dailyRecord.farmingStatus, T(app.module.core.config.application.enums.DailyTargetStatus).TODAY_NONE)}">
|
||||
th:checked="${#strings.equals(dailyRecord.farmingStatus, T(app.module.core.config.application.enums.DailyTargetStatus).TODAY_NONE)}"
|
||||
onchange="modalControl.showTodayNoneAlert(this)">
|
||||
<span class="checkbox-item">
|
||||
<span class="checkbox-txt">금일 등록내용 없음</span>
|
||||
</span>
|
||||
@@ -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 () {
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
</section>
|
||||
|
||||
@@ -36,7 +36,8 @@
|
||||
<input type="checkbox" name="todayNone"
|
||||
data-type="FORESTRY"
|
||||
th:disabled="${not btnActive}"
|
||||
th:checked="${#strings.equals(dailyRecord.forestryStatus, T(app.module.core.config.application.enums.DailyTargetStatus).TODAY_NONE)}">
|
||||
th:checked="${#strings.equals(dailyRecord.forestryStatus, T(app.module.core.config.application.enums.DailyTargetStatus).TODAY_NONE)}"
|
||||
onchange="modalControl.showTodayNoneAlert(this)">
|
||||
<span class="checkbox-item">
|
||||
<span class="checkbox-txt">금일 등록내용 없음</span>
|
||||
</span>
|
||||
@@ -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 () {
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
</section>
|
||||
|
||||
@@ -45,7 +45,8 @@
|
||||
<input type="checkbox" name="todayNone"
|
||||
data-type="INCOME"
|
||||
th:disabled="${not btnActive}"
|
||||
th:checked="${#strings.equals(dailyRecord.incomeStatus, T(app.module.core.config.application.enums.DailyTargetStatus).TODAY_NONE)}">
|
||||
th:checked="${#strings.equals(dailyRecord.incomeStatus, T(app.module.core.config.application.enums.DailyTargetStatus).TODAY_NONE)}"
|
||||
onchange="modalControl.showTodayNoneAlert(this)">
|
||||
<span class="checkbox-item">
|
||||
<span class="checkbox-txt">금일 등록내용 없음</span>
|
||||
</span>
|
||||
@@ -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 () {
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
</section>
|
||||
|
||||
@@ -36,7 +36,8 @@
|
||||
<input type="checkbox" name="todayNone"
|
||||
data-type="POWER"
|
||||
th:disabled="${not btnActive}"
|
||||
th:checked="${#strings.equals(dailyRecord.powerStatus, T(app.module.core.config.application.enums.DailyTargetStatus).TODAY_NONE)}">
|
||||
th:checked="${#strings.equals(dailyRecord.powerStatus, T(app.module.core.config.application.enums.DailyTargetStatus).TODAY_NONE)}"
|
||||
onchange="modalControl.showTodayNoneAlert(this)">
|
||||
<span class="checkbox-item">
|
||||
<span class="checkbox-txt">금일 등록내용 없음</span>
|
||||
</span>
|
||||
@@ -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 () {
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
</section>
|
||||
|
||||
@@ -36,7 +36,8 @@
|
||||
<input type="checkbox" name="todayNone"
|
||||
data-type="WORK"
|
||||
th:disabled="${not btnActive}"
|
||||
th:checked="${#strings.equals(dailyRecord.workStatus, T(app.module.core.config.application.enums.DailyTargetStatus).TODAY_NONE)}">
|
||||
th:checked="${#strings.equals(dailyRecord.workStatus, T(app.module.core.config.application.enums.DailyTargetStatus).TODAY_NONE)}"
|
||||
onchange="modalControl.showTodayNoneAlert(this)">
|
||||
<span class="checkbox-item">
|
||||
<span class="checkbox-txt">금일 등록내용 없음</span>
|
||||
</span>
|
||||
@@ -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 () {
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user