panel
This commit is contained in:
@@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Service">
|
<Reference Include="Service">
|
||||||
<HintPath>..\..\..\LocalGit\TaxPayerTools\Service\bin\Debug\Service.dll</HintPath>
|
<HintPath>..\..\Dlls\Service.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
@@ -206,8 +206,8 @@ namespace Back.Services
|
|||||||
CalTypeID = item.CalculationTypeID,
|
CalTypeID = item.CalculationTypeID,
|
||||||
CalTypeTitle = item.CalculationType.Title,
|
CalTypeTitle = item.CalculationType.Title,
|
||||||
Total = item.CalculationTypeID == 1 ? item.TotalAmount.ToString() : "",
|
Total = item.CalculationTypeID == 1 ? item.TotalAmount.ToString() : "",
|
||||||
Remaining = item.CalculationTypeID == 1 ? item.RemainingAmount.ToString()
|
Remaining = item.CalculationTypeID == 1 ? item.RemainingAmount
|
||||||
: item.CalculationTypeID == 2 ? "" : item.RemainingAmount.ToString().ShamciToFormatShamci()
|
: item.CalculationTypeID == 2 ? 0 : item.RemainingAmount
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
request.LastLoginDate = _RepoUser.Get(w => w.ID == UserID).Select(s => s.DateLastLogin).FirstOrDefault();
|
request.LastLoginDate = _RepoUser.Get(w => w.ID == UserID).Select(s => s.DateLastLogin).FirstOrDefault();
|
||||||
|
@@ -24,6 +24,6 @@ namespace Shared.DTOs
|
|||||||
public int CalTypeID { get; set; }
|
public int CalTypeID { get; set; }
|
||||||
public string CalTypeTitle { get; set; }
|
public string CalTypeTitle { get; set; }
|
||||||
public string Total { get; set; }
|
public string Total { get; set; }
|
||||||
public string Remaining { get; set; }
|
public int Remaining { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
@page "/Panel"
|
@page "/Panel"
|
||||||
@using Front.Services
|
@using Front.Services
|
||||||
|
@using Shared
|
||||||
@using Shared.DTOs
|
@using Shared.DTOs
|
||||||
@inject localService localserv;
|
@inject localService localserv;
|
||||||
@inject NavigationManager nav
|
@inject NavigationManager nav
|
||||||
@@ -52,7 +53,7 @@
|
|||||||
<h3 class="card-title mb-1"><span style="font-size: 14px">مانده</span></h3>
|
<h3 class="card-title mb-1"><span style="font-size: 14px">مانده</span></h3>
|
||||||
@if (dashBoard.AlistofServices.Any(w => w.PermissionID == 3 && w.CalTypeID == 1))
|
@if (dashBoard.AlistofServices.Any(w => w.PermissionID == 3 && w.CalTypeID == 1))
|
||||||
{
|
{
|
||||||
@if (!dashBoard.AlistofServices.Where(w => w.PermissionID == 3 && w.CalTypeID == 1).Select(s => s.Remaining).First().Equals("-"))
|
@if (dashBoard.AlistofServices.Where(w => w.PermissionID == 3 && w.CalTypeID == 1).Select(s => s.Remaining).First()>0)
|
||||||
{
|
{
|
||||||
|
|
||||||
<small class="text-success fw-semibold">
|
<small class="text-success fw-semibold">
|
||||||
@@ -79,18 +80,18 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@if (Convert.ToInt32(dashBoard.Datenow) <= Convert.ToInt32(@dashBoard.AlistofServices.Where(w => w.PermissionID == 3 && w.CalTypeID == 1).Select(s => s.Remaining).First().Replace("/","")))
|
@if (Convert.ToInt32(dashBoard.Datenow) <= dashBoard.AlistofServices.Where(w => w.PermissionID == 3 && w.CalTypeID == 1).Select(s => s.Remaining).First())
|
||||||
{
|
{
|
||||||
<small class="text-success fw-semibold">
|
<small class="text-success fw-semibold">
|
||||||
<i class='bx'></i>
|
<i class='bx'></i>
|
||||||
تا تاریخ @dashBoard.AlistofServices.Where(w => w.PermissionID == 3 && w.CalTypeID == 1).Select(s => s.Remaining).First()
|
تا تاریخ @dashBoard.AlistofServices.Where(w => w.PermissionID == 3 && w.CalTypeID == 1).Select(s => s.Remaining).First().ToString().ShamciToFormatShamciinFront()
|
||||||
</small>
|
</small>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<small class="text-danger fw-semibold">
|
<small class="text-danger fw-semibold">
|
||||||
<i class='bx'></i>
|
<i class='bx'></i>
|
||||||
تا تاریخ @dashBoard.AlistofServices.Where(w => w.PermissionID == 3 && w.CalTypeID == 1).Select(s => s.Remaining).First()
|
تا تاریخ @dashBoard.AlistofServices.Where(w => w.PermissionID == 3 && w.CalTypeID == 1).Select(s => s.Remaining).First().ToString().ShamciToFormatShamciinFront()
|
||||||
</small>
|
</small>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -121,7 +122,7 @@
|
|||||||
<h3 class="card-title mb-1"><span style="font-size: 14px">مانده</span></h3>
|
<h3 class="card-title mb-1"><span style="font-size: 14px">مانده</span></h3>
|
||||||
@if (dashBoard.AlistofServices.Any(w => w.PermissionID == 4 && w.CalTypeID == 1))
|
@if (dashBoard.AlistofServices.Any(w => w.PermissionID == 4 && w.CalTypeID == 1))
|
||||||
{
|
{
|
||||||
@if (!dashBoard.AlistofServices.Where(w => w.PermissionID == 4 && w.CalTypeID == 1).Select(s => s.Remaining).First().Equals("-"))
|
@if (dashBoard.AlistofServices.Where(w => w.PermissionID == 4 && w.CalTypeID == 1).Select(s => s.Remaining).First()>0)
|
||||||
{
|
{
|
||||||
<small class="text-success fw-semibold">
|
<small class="text-success fw-semibold">
|
||||||
<i class='bx'></i>
|
<i class='bx'></i>
|
||||||
@@ -147,18 +148,18 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@if (Convert.ToInt32(dashBoard.Datenow) <= Convert.ToInt32(@dashBoard.AlistofServices.Where(w => w.PermissionID == 4 && w.CalTypeID == 1).Select(s => s.Remaining).First().Replace("/", "")))
|
@if (Convert.ToInt32(dashBoard.Datenow) <= dashBoard.AlistofServices.Where(w => w.PermissionID == 4 && w.CalTypeID == 1).Select(s => s.Remaining).First())
|
||||||
{
|
{
|
||||||
<small class="text-success fw-semibold">
|
<small class="text-success fw-semibold">
|
||||||
<i class='bx'></i>
|
<i class='bx'></i>
|
||||||
تا تاریخ @dashBoard.AlistofServices.Where(w => w.PermissionID == 4 && w.CalTypeID == 1).Select(s => s.Remaining).First()
|
تا تاریخ @dashBoard.AlistofServices.Where(w => w.PermissionID == 4 && w.CalTypeID == 1).Select(s => s.Remaining).First().ToString().ShamciToFormatShamciinFront()
|
||||||
</small>
|
</small>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<small class="text-danger fw-semibold">
|
<small class="text-danger fw-semibold">
|
||||||
<i class='bx'></i>
|
<i class='bx'></i>
|
||||||
تا تاریخ @dashBoard.AlistofServices.Where(w => w.PermissionID == 4 && w.CalTypeID == 1).Select(s => s.Remaining).First()
|
تا تاریخ @dashBoard.AlistofServices.Where(w => w.PermissionID == 4 && w.CalTypeID == 1).Select(s => s.Remaining).First().ToString().ShamciToFormatShamciinFront()
|
||||||
</small>
|
</small>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -244,7 +245,7 @@
|
|||||||
<h3 class="card-title mb-1"><span style="font-size: 14px">مانده</span></h3>
|
<h3 class="card-title mb-1"><span style="font-size: 14px">مانده</span></h3>
|
||||||
@if (dashBoard.AlistofServices.Any(w => w.PermissionID == 5 && w.CalTypeID == 1))
|
@if (dashBoard.AlistofServices.Any(w => w.PermissionID == 5 && w.CalTypeID == 1))
|
||||||
{
|
{
|
||||||
@if (!dashBoard.AlistofServices.Where(w => w.PermissionID == 5 && w.CalTypeID == 1).Select(s => s.Remaining).First().Equals("-"))
|
@if (dashBoard.AlistofServices.Where(w => w.PermissionID == 5 && w.CalTypeID == 1).Select(s => s.Remaining).First()>0)
|
||||||
{
|
{
|
||||||
|
|
||||||
<small class="text-success fw-semibold">
|
<small class="text-success fw-semibold">
|
||||||
@@ -271,18 +272,18 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@if (Convert.ToInt32(dashBoard.Datenow) <= Convert.ToInt32(@dashBoard.AlistofServices.Where(w => w.PermissionID == 5 && w.CalTypeID == 1).Select(s => s.Remaining).First().Replace("/", "")))
|
@if (Convert.ToInt32(dashBoard.Datenow) <= dashBoard.AlistofServices.Where(w => w.PermissionID == 5 && w.CalTypeID == 1).Select(s => s.Remaining).First())
|
||||||
{
|
{
|
||||||
<small class="text-success fw-semibold">
|
<small class="text-success fw-semibold">
|
||||||
<i class='bx'></i>
|
<i class='bx'></i>
|
||||||
تا تاریخ @dashBoard.AlistofServices.Where(w => w.PermissionID == 5 && w.CalTypeID == 1).Select(s => s.Remaining).First()
|
تا تاریخ @dashBoard.AlistofServices.Where(w => w.PermissionID == 5 && w.CalTypeID == 1).Select(s => s.Remaining).First().ToString().ShamciToFormatShamciinFront()
|
||||||
</small>
|
</small>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<small class="text-danger fw-semibold">
|
<small class="text-danger fw-semibold">
|
||||||
<i class='bx'></i>
|
<i class='bx'></i>
|
||||||
تا تاریخ @dashBoard.AlistofServices.Where(w => w.PermissionID == 5 && w.CalTypeID == 1).Select(s => s.Remaining).First()
|
تا تاریخ @dashBoard.AlistofServices.Where(w => w.PermissionID == 5 && w.CalTypeID == 1).Select(s => s.Remaining).First().ToString().ShamciToFormatShamciinFront()
|
||||||
</small>
|
</small>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -313,7 +314,7 @@
|
|||||||
<h3 class="card-title mb-1"><span style="font-size: 14px">مانده</span></h3>
|
<h3 class="card-title mb-1"><span style="font-size: 14px">مانده</span></h3>
|
||||||
@if (dashBoard.AlistofServices.Any(w => w.PermissionID == 16 && w.CalTypeID == 1))
|
@if (dashBoard.AlistofServices.Any(w => w.PermissionID == 16 && w.CalTypeID == 1))
|
||||||
{
|
{
|
||||||
@if (!dashBoard.AlistofServices.Where(w => w.PermissionID == 16 && w.CalTypeID == 1).Select(s => s.Remaining).First().Equals("-"))
|
@if (dashBoard.AlistofServices.Where(w => w.PermissionID == 16 && w.CalTypeID == 1).Select(s => s.Remaining).First()>0)
|
||||||
{
|
{
|
||||||
<small class="text-success fw-semibold">
|
<small class="text-success fw-semibold">
|
||||||
<i class='bx'></i>
|
<i class='bx'></i>
|
||||||
@@ -339,18 +340,18 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@if (Convert.ToInt32(dashBoard.Datenow) <= Convert.ToInt32(@dashBoard.AlistofServices.Where(w => w.PermissionID == 16 && w.CalTypeID == 1).Select(s => s.Remaining).First().Replace("/", "")))
|
@if (Convert.ToInt32(dashBoard.Datenow) <= dashBoard.AlistofServices.Where(w => w.PermissionID == 16 && w.CalTypeID == 1).Select(s => s.Remaining).First())
|
||||||
{
|
{
|
||||||
<small class="text-success fw-semibold">
|
<small class="text-success fw-semibold">
|
||||||
<i class='bx'></i>
|
<i class='bx'></i>
|
||||||
تا تاریخ @dashBoard.AlistofServices.Where(w => w.PermissionID == 16 && w.CalTypeID == 1).Select(s => s.Remaining).First()
|
تا تاریخ @dashBoard.AlistofServices.Where(w => w.PermissionID == 16 && w.CalTypeID == 1).Select(s => s.Remaining).First().ToString().ShamciToFormatShamciinFront()
|
||||||
</small>
|
</small>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<small class="text-danger fw-semibold">
|
<small class="text-danger fw-semibold">
|
||||||
<i class='bx'></i>
|
<i class='bx'></i>
|
||||||
تا تاریخ @dashBoard.AlistofServices.Where(w => w.PermissionID == 16 && w.CalTypeID == 1).Select(s => s.Remaining).First()
|
تا تاریخ @dashBoard.AlistofServices.Where(w => w.PermissionID == 16 && w.CalTypeID == 1).Select(s => s.Remaining).First().ToString().ShamciToFormatShamciinFront()
|
||||||
</small>
|
</small>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -34,9 +34,9 @@ builder.Services.AddScoped(sp => new UserAuthenticationDTO()
|
|||||||
}) ;
|
}) ;
|
||||||
|
|
||||||
|
|
||||||
//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://localhost:7075/api/") });
|
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://localhost:7075/api/") });
|
||||||
|
|
||||||
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://localhost:5271/api/") });
|
//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://localhost:5271/api/") });
|
||||||
|
|
||||||
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("fa-Ir");
|
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("fa-Ir");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user