Submit all LeafInputFiles together

This commit is contained in:
2016-03-28 10:20:50 -04:00
parent 4b2757b19a
commit 9e86b92f08
29 changed files with 353 additions and 268 deletions
+10 -1
View File
@@ -8,7 +8,11 @@ namespace LeafWeb.Core.Entities
{
public int Id { get; set; }
public virtual ICollection<LeafInputFile> Files { get; set; }
public virtual ICollection<LeafInputFile> InputFiles { get; set; }
public virtual ICollection<LeafOutputFile> OutputFiles { get; set; }
public LeafInputStatusType CurrentStatus { get; set; }
public virtual ICollection<LeafInputStatus> StatusHistory { get; set; }
[Required(ErrorMessage = "Name required")]
public string Name { get; set; }
@@ -28,5 +32,10 @@ namespace LeafWeb.Core.Entities
[DataType(DataType.Date)]
[Required]
public DateTime Added { get; set; }
public override string ToString()
{
return $"{Id}_{Identifier}";
}
}
}
-9
View File
@@ -7,10 +7,6 @@ namespace LeafWeb.Core.Entities
public int Id { get; set; }
public virtual LeafInput LeafInput { get; set; }
public virtual ICollection<LeafOutputFile> LeafOutputFiles { get; set; }
public LeafInputStatusType CurrentStatus { get; set; }
public virtual ICollection<LeafInputFileStatus> StatusHistory { get; set; }
/// <summary>
/// Parsed values from the LeafInput used in LeafWeb for filtering/searching
@@ -20,10 +16,5 @@ namespace LeafWeb.Core.Entities
public string Filename { get; set; }
public byte[] Contents { get; set; }
public override string ToString()
{
return $"{Id}_{Filename}";
}
}
}
@@ -5,10 +5,10 @@ namespace LeafWeb.Core.Entities
/// <summary>
/// Status of processing LeafInput
/// </summary>
public class LeafInputFileStatus
public class LeafInputStatus
{
public int Id { get; set; }
public virtual LeafInputFile LeafInputFile { get; set; }
public virtual LeafInput LeafInput { get; set; }
public LeafInputStatusType Status { get; set; }
public string Description { get; set; }
public DateTime DateTime { get; set; }
+4 -4
View File
@@ -2,9 +2,9 @@ namespace LeafWeb.Core.Entities
{
public enum LeafInputStatusType
{
Queued,
Running,
Complete,
Error
Pending = 0,
Running = 1,
Complete = 2,
Error = 3
}
}
+1 -1
View File
@@ -5,7 +5,7 @@ namespace LeafWeb.Core.Entities
{
public int Id { get; set; }
public virtual LeafInputFile LeafInputFile { get; set; }
public virtual LeafInput LeafInput { get; set; }
public string Filename { get; set; }