نوبت اول
diff --git a/ServiceHost/Areas/Client/Pages/Shared/_ClientLayout.cshtml b/ServiceHost/Areas/Client/Pages/Shared/_ClientLayout.cshtml
index 2a443eca..ccd0e369 100644
--- a/ServiceHost/Areas/Client/Pages/Shared/_ClientLayout.cshtml
+++ b/ServiceHost/Areas/Client/Pages/Shared/_ClientLayout.cshtml
@@ -110,6 +110,11 @@
var ajaxServiceLayout = new AjaxService(antiForgeryTokenLayout);
$(document).ready(function () {
+ statusCameraAccountAndWorkshopSetting();
+ });
+
+ function statusCameraAccountAndWorkshopSetting()
+ {
ajaxServiceLayout.get(statusCameraAccountAndWorkshopSettingUrl)
.then(response => {
const disableIds = [
@@ -137,7 +142,7 @@
$('#RollCallSubMenu').addClass('disable');
}
});
- });
+ }
$('#MainModal').on('hidden.bs.modal', function () {
$("#ModalContent").html("");
diff --git a/ServiceHost/wwwroot/AssetsClient/pages/Loan/js/Index.js b/ServiceHost/wwwroot/AssetsClient/pages/Loan/js/Index.js
index 217d4958..812e2dae 100644
--- a/ServiceHost/wwwroot/AssetsClient/pages/Loan/js/Index.js
+++ b/ServiceHost/wwwroot/AssetsClient/pages/Loan/js/Index.js
@@ -41,70 +41,70 @@ $(document).ready(function () {
element.val(value);
});
- new Cleave(this', {
+ new Cleave(this, {
delimiters: ['/', '/'],
blocks: [4, 2, 2],
numericOnly: true
});
- // new Cleave(this, {
- // date: true,
- // delimiter: '/',
- // datePattern: ['Y', 'm', 'd']
- // });
- });
+ // new Cleave(this, {
+ // date: true,
+ // delimiter: '/',
+ // datePattern: ['Y', 'm', 'd']
+ // });
+});
- //******************** انتخاب همه ی چک باکس ها ********************
- $(".checkAll").change(function () {
- //let dataValYear = $('#year').val();
- //let dataValMonth = $('#month').val();
- //let dataValPersonel = Number($('#employeeId').val());
+//******************** انتخاب همه ی چک باکس ها ********************
+$(".checkAll").change(function () {
+ //let dataValYear = $('#year').val();
+ //let dataValMonth = $('#month').val();
+ //let dataValPersonel = Number($('#employeeId').val());
- //if ((dataValYear == '' || dataValMonth == '') && dataValPersonel == 0) {
- //$('#dropdown-year').addClass("errored");
- //$('#dropdown-month').addClass("errored");
+ //if ((dataValYear == '' || dataValMonth == '') && dataValPersonel == 0) {
+ //$('#dropdown-year').addClass("errored");
+ //$('#dropdown-month').addClass("errored");
- //$(this).prop('checked', false);
- //$('.alert-msg').show();
- //$('.alert-msg p').text('جهت انتخاب گروهی قراردادها ابتدا میبایست سال و ماه مورد نظر را انتخاب نمائید.');
- //setTimeout(function () {
- // $('.alert-msg').hide();
- // $('.alert-msg p').text('');
- // $('#dropdown-year').removeClass("errored");
- // $('#dropdown-month').removeClass("errored");
- //},
- //3500);
- //} else {
- //loadAllToPrint();
- $('input:checkbox').not(this).not("#group, #list").prop('checked', this.checked);
+ //$(this).prop('checked', false);
+ //$('.alert-msg').show();
+ //$('.alert-msg p').text('جهت انتخاب گروهی قراردادها ابتدا میبایست سال و ماه مورد نظر را انتخاب نمائید.');
+ //setTimeout(function () {
+ // $('.alert-msg').hide();
+ // $('.alert-msg p').text('');
+ // $('#dropdown-year').removeClass("errored");
+ // $('#dropdown-month').removeClass("errored");
+ //},
+ //3500);
+ //} else {
+ //loadAllToPrint();
+ $('input:checkbox').not(this).not("#group, #list").prop('checked', this.checked);
- //}
- });
+ //}
+});
- $("input:checkbox").not("#group,#list,.checkAll").change(function () {
- if ($("input:checkbox").not("#group,#list,.checkAll").filter(":not(:checked)").length) {
- $(".checkAll").prop("checked", false);
- } else {
- $(".checkAll").prop("checked", true);
- }
- });
- //******************** انتخاب همه ی چک باکس ها ********************
+$("input:checkbox").not("#group,#list,.checkAll").change(function () {
+ if ($("input:checkbox").not("#group,#list,.checkAll").filter(":not(:checked)").length) {
+ $(".checkAll").prop("checked", false);
+ } else {
+ $(".checkAll").prop("checked", true);
+ }
+});
+//******************** انتخاب همه ی چک باکس ها ********************
- //*********************ستون نام پرسنل در حالتی که فقط اسم پرسنل هست باید هاید بشه************************
- $("#searchJustName").hide();
+//*********************ستون نام پرسنل در حالتی که فقط اسم پرسنل هست باید هاید بشه************************
+$("#searchJustName").hide();
- //************تنظیم چک باکس تایپ لیست*******************
- $('#group, #groupMobile').change(function () {
- if ($(this).is(':checked')) {
- $('#list , #listMobile').prop('checked', false);
- }
- });
+//************تنظیم چک باکس تایپ لیست*******************
+$('#group, #groupMobile').change(function () {
+ if ($(this).is(':checked')) {
+ $('#list , #listMobile').prop('checked', false);
+ }
+});
- $('#list, #listMobile').change(function () {
- if ($(this).is(':checked')) {
- $('#group , #groupMobile').prop('checked', false);
- }
- });
+$('#list, #listMobile').change(function () {
+ if ($(this).is(':checked')) {
+ $('#group , #groupMobile').prop('checked', false);
+ }
+});
//************تنظیم چک باکس تایپ لیست*******************
});
@@ -393,8 +393,8 @@ function htmlLoadSimpleListData(loadLoanListData) {
${detailsPermission
- ?
- `