Piscal Client improvements
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using LeafWeb.Core.Utility;
|
||||
|
||||
namespace LeafWeb.Core.Entities
|
||||
{
|
||||
@@ -20,7 +21,7 @@ namespace LeafWeb.Core.Entities
|
||||
[Required(ErrorMessage = "A unique identifier is required")]
|
||||
public string Identifier { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "")]
|
||||
[Required(ErrorMessage = "Site Id required")]
|
||||
public string SiteId { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "PhotosynthesisType required")]
|
||||
@@ -32,5 +33,10 @@ namespace LeafWeb.Core.Entities
|
||||
|
||||
[DataType(DataType.Date)]
|
||||
public DateTime? Processed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// An cleaned up identifier to be used for file naming, etc
|
||||
/// </summary>
|
||||
public string CombinedIdentifier => $"{Name.FilterAlphaNumeric()}_{Identifier.FilterAlphaNumeric()}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user