Piscal Client improvements

This commit is contained in:
2016-02-14 23:12:31 -05:00
parent be89837a27
commit 5057d9b577
10 changed files with 143 additions and 22 deletions
+7 -1
View File
@@ -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()}";
}
}