change smsSettings

This commit is contained in:
SamSys
2025-12-14 17:58:27 +03:30
parent 49d401856f
commit 998759e2dc
2 changed files with 16 additions and 105 deletions

View File

@@ -74,6 +74,17 @@
<span> پیامک اقدام قضائی </span>
</a>
</li>
<li class="li-wizard step" id="institutionContractConfirmTab" data-url="/Admin/Company/SmsResult/SmsSettings?handler=InstitutionContractConfirmTab">
<a class="nav-link">
<div class="success-icon" id="success-icon2" style="display:none;">
<svg width="11" height="8" viewBox="0 0 11 8" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M1.25 4L4.14393 6.89393C4.20251 6.95251 4.29749 6.95251 4.35607 6.89393L10.25 1" stroke="#222222" stroke-width="1.2" />
</svg>
</div>
<span> پیامک اقدام قضائی </span>
</a>
</li>
</ul>
@@ -103,111 +114,6 @@
var antiforgeryToken = $('@Html.AntiForgeryToken()').val();
// $(document).ready(function () {
// $('.time-input').mask('00:00', {
// translation: {
// '0': { pattern: /[0-9]/ },
// // برای اولین رقم ساعت فقط 0-2
// 'H': { pattern: /[0-2]/ },
// // اگر اولین رقم 2 باشد دومین رقم فقط 0-3
// 'h': { pattern: /[0-3]/ },
// // برای دقیقه
// 'M': { pattern: /[0-5]/ },
// 'm': { pattern: /[0-9]/ },
// }
// });
// // پیش‌فرض: لود تب اول با workshopId
// loadPartial("/Admin/Company/SmsResult/SmsSettings?handler=InstitutionContractDebtReminderTab");
// $("#institutionContractDebtReminderTab").addClass("active");
// // کلیک روی تب‌ها
// $("#institutionContractDebtReminderTab, #blockContractingPartyTab, #legalActionTab, #warningTab").click(function (e) {
// e.preventDefault();
// let url = $(this).data("url");
// switch (this.id) {
// case "institutionContractDebtReminderTab":
// loadPartial(url);
// $("#institutionContractDebtReminderTab, #blockContractingPartyTab, #legalActionTab, #warningTab").removeClass("active");
// $(this).addClass("active");
// break;
// case "blockContractingPartyTab":
// loadPartial(url);
// $("#institutionContractDebtReminderTab, #blockContractingPartyTab, #legalActionTab, #warningTab").removeClass("active");
// $(this).addClass("active");
// break;
// case "legalActionTab":
// loadPartial(url);
// $("#institutionContractDebtReminderTab, #blockContractingPartyTab, #legalActionTab, #warningTab").removeClass("active");
// $(this).addClass("active");
// break;
// case "warningTab":
// loadPartial(url);
// $("#institutionContractDebtReminderTab, #blockContractingPartyTab, #legalActionTab, #warningTab").removeClass("active");
// $(this).addClass("active");
// break;
// }
// });
// function loadPartial(url) {
// $.get(url, function (data) {
// $("#partialContainer").html(data);
// });
// }
// });
// function remove(id) {
// $.ajax({
// dataType: 'json',
// type: 'GET',
// url: urlAjaxToRemove,
// headers: { "RequestVerificationToken": antiforgeryToken },
// data: { id: id },
// success: function (response) {
// if (response.isSuccess) {
// $.Notification.autoHideNotify('success', 'top center', 'پیام سیستم ', response.message);
// setTimeout(function () {
// $(".li-wizard.step.active").trigger("click");
// }, 500);
// } else {
// $.Notification.autoHideNotify('error', 'top center', 'پیام سیستم ', response.message);
// }
// },
// failure: function (response) {
// //console.log(5, response);
// }
// });
// }
</script>
<script src="~/AssetsAdmin/page/SmsSettings/js/SmsSettings.js?ver=@adminVersion"></script>

View File

@@ -54,6 +54,11 @@
$("#institutionContractDebtReminderTab, #blockContractingPartyTab, #legalActionTab, #warningTab").removeClass("active");
$(this).addClass("active");
break;
case "warningTab":
loadPartial(url);
$("#institutionContractDebtReminderTab, #blockContractingPartyTab, #legalActionTab, #warningTab").removeClass("active");
$(this).addClass("active");
break;
}