gestione cambio prezzo solo quando possibile
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>WebDoorCreator - Egalware</i>
|
||||
<h4>Version: 0.9.2306.2711</h4>
|
||||
<h4>Version: 0.9.2306.2712</h4>
|
||||
<br /> Release note:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
0.9.2306.2711
|
||||
0.9.2306.2712
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>0.9.2306.2711</version>
|
||||
<version>0.9.2306.2712</version>
|
||||
<url>http://nexus.steamware.net/repository/SWS/WDC/stable/WDC.UI.zip</url>
|
||||
<changelog>http://nexus.steamware.net/repository/SWS/WDC/stable/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
else if (OrderStatus == 20 && WDCUService.userRole == "DcaAdmin")
|
||||
{
|
||||
<div class="mb-3">
|
||||
<div class="input-group small">
|
||||
@@ -75,6 +75,33 @@
|
||||
<button class="btn btn-success" type="button" @onclick="()=>UpdateDoor(true)">Update <i class="fa-solid fa-check"></i></button>
|
||||
}
|
||||
}
|
||||
else if (WDCUService.userRole == "SuperAdmin")
|
||||
{
|
||||
<div class="mb-3">
|
||||
<div class="input-group small">
|
||||
<label class="form-label">Add or Remove door</label>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<button class="btn btn-outline-danger" type="button" @onclick="()=>modDoorQty(false)">-1</button>
|
||||
<input type="number" @bind="@DoorQty" class="form-control text-center">
|
||||
<button class="btn btn-outline-success" type="button" @onclick="()=>modDoorQty(true)">+1</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<div class="input-group small">
|
||||
<label class="form-label">Door unit cost</label>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="number" @bind="@CurrDoor.UnitCost" class="form-control text-center">
|
||||
</div>
|
||||
</div>
|
||||
@if (CurrDoor.UnitCost != CurrDoorClone.UnitCost)
|
||||
{
|
||||
<button class="btn btn-secondary" type="button" @onclick="()=>ReloadData()">Cancel <i class="fa-solid fa-rotate-left"></i></button>
|
||||
<button class="btn btn-success" type="button" @onclick="()=>UpdateDoor(true)">Update <i class="fa-solid fa-check"></i></button>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
@if (WDCUService.userRole == "CompAdmin" || WDCUService.userRole == "CompUser")
|
||||
{
|
||||
|
||||
@@ -33,6 +33,9 @@ namespace WebDoorCreator.UI.Components.DoorMan
|
||||
[Parameter]
|
||||
public string UserName { get; set; } = "";
|
||||
|
||||
[CascadingParameter]
|
||||
public int OrderStatus { get; set; } = 10;
|
||||
|
||||
protected int DoorQty
|
||||
{
|
||||
get => CurrDoor.Quantity;
|
||||
|
||||
@@ -163,7 +163,9 @@
|
||||
|
||||
@if (currDoorModal != null && currDoorModal.DoorId != 0)
|
||||
{
|
||||
<DoorModal UserName="@userId" E_DoorClose="@SetCurrDoorModal" OrderId="@currDoorModal.OrderId" CurrDoorId="@currDoorModal.DoorId"></DoorModal>
|
||||
<CascadingValue Value="@(ord2Show?.OrderStatus)">
|
||||
<DoorModal UserName="@userId" E_DoorClose="@SetCurrDoorModal" OrderId="@currDoorModal.OrderId" CurrDoorId="@currDoorModal.DoorId"></DoorModal>
|
||||
</CascadingValue>
|
||||
}
|
||||
@if (newOrdReq)
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>0.9.2306.2711</Version>
|
||||
<Version>0.9.2306.2712</Version>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<UserSecretsId>aspnet-WebDoorCreator.UI-dfe95fed-1398-4144-bd43-8b3a765d6608</UserSecretsId>
|
||||
</PropertyGroup>
|
||||
|
||||
Reference in New Issue
Block a user