modifiche a importi
This commit is contained in:
parent
ff00de3342
commit
08e300b577
@ -1,5 +1,7 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using DocumentFormat.OpenXml.Presentation;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Globalization;
|
||||
|
||||
namespace VirtualTask.Models
|
||||
{
|
||||
@ -65,5 +67,18 @@ namespace VirtualTask.Models
|
||||
public string? Desc_sup { get; set; }
|
||||
public DateTime? DataObso { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public string LiPrezzo_input
|
||||
{
|
||||
get => LiPrezzo?.ToString(CultureInfo.InvariantCulture);
|
||||
set
|
||||
{
|
||||
if (decimal.TryParse(value, NumberStyles.Any, CultureInfo.InvariantCulture, out var result))
|
||||
LiPrezzo = result;
|
||||
else
|
||||
LiPrezzo = null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Globalization;
|
||||
|
||||
namespace VirtualTask.Models
|
||||
{
|
||||
@ -48,5 +49,20 @@ namespace VirtualTask.Models
|
||||
|
||||
public DateTime? tcdatobs { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public string tccoor_input
|
||||
{
|
||||
get => tccoor?.ToString(CultureInfo.InvariantCulture);
|
||||
set
|
||||
{
|
||||
if (decimal.TryParse(value, NumberStyles.Any, CultureInfo.InvariantCulture, out var result))
|
||||
tccoor = result;
|
||||
else
|
||||
tccoor = null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -40,7 +40,7 @@
|
||||
<div class="col-lg-6 col-md-6 col-sm-12 col-12"> </div>
|
||||
<div class="form-group">
|
||||
<h5><label asp-for="LiPrezzo" class="control-label"></label></h5>
|
||||
<input asp-for="LiPrezzo" class="form-control" value="0"/>
|
||||
<input asp-for="LiPrezzo_input" class="form-control" value="0" />
|
||||
<span asp-validation-for="LiPrezzo" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="col-lg-6 col-md-6 col-sm-12 col-12"> </div>
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
<div class="col-lg-6 col-md-6 col-sm-12 col-12"> </div>
|
||||
<div class="form-group">
|
||||
<h5><label asp-for="LiPrezzo" class="agy-client-quote"></label></h5>
|
||||
<input asp-for="LiPrezzo" class="agy-form-field require" class="form-control" />
|
||||
<input asp-for="LiPrezzo_input" class="agy-form-field require" class="form-control" />
|
||||
<span asp-validation-for="LiPrezzo" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="col-lg-6 col-md-6 col-sm-12 col-12"> </div>
|
||||
|
||||
@ -45,7 +45,7 @@
|
||||
<div class="col-lg-6 col-md-6 col-sm-12 col-12"> </div>
|
||||
<div class="form-group">
|
||||
<h5><label asp-for="tccoor" class="agy-client-quote"></label></h5>
|
||||
<input asp-for="tccoor" class="agy-form-field require" placeholder="Costo orario" />
|
||||
<input asp-for="tccoor_input" class="agy-form-field require" placeholder="Costo orario" />
|
||||
<span asp-validation-for="tccoor" class="text-danger"></span>
|
||||
</div>
|
||||
@* <div class="col-lg-6 col-md-6 col-sm-12 col-12"> </div>
|
||||
|
||||
@ -47,7 +47,7 @@
|
||||
<div class="col-lg-6 col-md-6 col-sm-12 col-12"> </div>
|
||||
<div class="form-group">
|
||||
<h5><label asp-for="tccoor" class="agy-client-quote"></label></h5>
|
||||
<input asp-for="tccoor" class="agy-form-field require" placeholder="Costo ordinario" />
|
||||
<input asp-for="tccoor_input" class="agy-form-field require" placeholder="Costo ordinario" />
|
||||
<span asp-validation-for="tccoor" class="text-danger"></span>
|
||||
</div>
|
||||
@* <div class="col-lg-6 col-md-6 col-sm-12 col-12"> </div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user