...
This commit is contained in:
@@ -31,6 +31,12 @@
|
||||
<div>صورتحساب</div>
|
||||
</NavLink>
|
||||
</li>
|
||||
<li class="menu-item @cssActionItem[9]" @onclick="() => onClickcssActionItem(9)">
|
||||
<NavLink href="Warehouse" class="menu-link">
|
||||
<i class="menu-icon tf-icons bx bx-compass"></i>
|
||||
<div>انبارداری</div>
|
||||
</NavLink>
|
||||
</li>
|
||||
<li class="menu-item @cssActionItem[4]" @onclick="() => onClickcssActionItem(4)">
|
||||
<NavLink href="TaxPayer" class="menu-link">
|
||||
<i class="menu-icon tf-icons bx bx-copy"></i>
|
||||
@@ -64,10 +70,11 @@
|
||||
<div >سفارشات</div>
|
||||
</NavLink>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
@code{
|
||||
string[] cssActionItem = { "active", "", "", "", "", "", "", "", "" };
|
||||
string[] cssActionItem = { "active", "", "", "", "", "", "", "", "", "" };
|
||||
|
||||
}
|
||||
@functions{
|
||||
|
@@ -371,7 +371,74 @@
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
@if (fv.dashBoard != null && fv.dashBoard.AlistofServices.Any(w => w.PermissionID == 18))
|
||||
{
|
||||
<div class="col-6 mb-4">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="card-title d-flex align-items-start justify-content-between">
|
||||
<div class="avatar flex-shrink-0">
|
||||
<img src="assets/img/icons/unicons/cc-warning.png" alt="chart success" class="rounded">
|
||||
</div>
|
||||
<div class="dropdown">
|
||||
<button class="btn p-0" type="button" id="cardOpt3" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="bx bx-dots-vertical-rounded"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-end customStyle new-style-15" aria-labelledby="cardOpt3">
|
||||
<NavLink class="dropdown-item" href="Orders">تمدید</NavLink>
|
||||
<NavLink class="dropdown-item" href="Warehouse">انبارداری</NavLink>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="fw-semibold d-block">انبارداری <br /> (کل @fv.dashBoard.AlistofServices.Where(w => w.PermissionID == 18 && w.CalTypeID == 1).Select(s => s.Total).First())</span>
|
||||
<h3 class="card-title mb-1"><span style="font-size: 14px">مانده</span></h3>
|
||||
@if (fv.dashBoard.AlistofServices.Any(w => w.PermissionID == 18 && w.CalTypeID == 1))
|
||||
{
|
||||
@if (fv.dashBoard.AlistofServices.Where(w => w.PermissionID == 18 && w.CalTypeID == 1).Select(s => s.Remaining).First() > 0)
|
||||
{
|
||||
<small class="text-success fw-semibold">
|
||||
<i class='bx'></i>
|
||||
@fv.dashBoard.AlistofServices.Where(w => w.PermissionID == 18 && w.CalTypeID == 1).Select(s => s.Remaining).First() آیتم
|
||||
</small>
|
||||
}
|
||||
else
|
||||
{
|
||||
<small class="text-danger fw-semibold">
|
||||
<i class='bx'></i>
|
||||
@fv.dashBoard.AlistofServices.Where(w => w.PermissionID == 18 && w.CalTypeID == 1).Select(s => s.Remaining).First() آیتم
|
||||
</small>
|
||||
}
|
||||
|
||||
}
|
||||
else if (fv.dashBoard.AlistofServices.Any(w => w.PermissionID == 18 && w.CalTypeID == 2))
|
||||
{
|
||||
<small class="text-success fw-semibold">
|
||||
<i class='bx'></i>
|
||||
نامحدود
|
||||
</small>
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@if (Convert.ToInt32(fv.dashBoard.Datenow) <= fv.dashBoard.AlistofServices.Where(w => w.PermissionID == 18 && w.CalTypeID == 1).Select(s => s.Remaining).First())
|
||||
{
|
||||
<small class="text-success fw-semibold">
|
||||
<i class='bx'></i>
|
||||
تا تاریخ @fv.dashBoard.AlistofServices.Where(w => w.PermissionID == 18 && w.CalTypeID == 1).Select(s => s.Remaining).First().ToString().ShamciToFormatShamciinFront()
|
||||
</small>
|
||||
}
|
||||
else
|
||||
{
|
||||
<small class="text-danger fw-semibold">
|
||||
<i class='bx'></i>
|
||||
تا تاریخ @fv.dashBoard.AlistofServices.Where(w => w.PermissionID == 18 && w.CalTypeID == 1).Select(s => s.Remaining).First().ToString().ShamciToFormatShamciinFront()
|
||||
</small>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
<!-- </div>
|
||||
<div class="row"> -->
|
||||
|
||||
|
8
TaxPayerFull/Pages/UserPanel/Warehouse.razor
Normal file
8
TaxPayerFull/Pages/UserPanel/Warehouse.razor
Normal file
@@ -0,0 +1,8 @@
|
||||
<PageTitle>انبارداری</PageTitle>
|
||||
@page "/Warehouse"
|
||||
@layout PanelLayout
|
||||
|
||||
|
||||
@code {
|
||||
|
||||
}
|
@@ -34,10 +34,10 @@ builder.Services.AddScoped(sp => new UserAuthenticationDTO()
|
||||
|
||||
// Server
|
||||
//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://195.88.208.142:7075/api/") });
|
||||
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://moadiran.ir:444/api/") });
|
||||
//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://moadiran.ir:444/api/") });
|
||||
|
||||
//Home
|
||||
//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/") });
|
||||
|
||||
//farzan
|
||||
//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://localhost:5271/api/") });
|
||||
|
Reference in New Issue
Block a user