Submit all LeafInputFiles together
This commit is contained in:
@@ -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}";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
@@ -2,9 +2,9 @@ namespace LeafWeb.Core.Entities
|
||||
{
|
||||
public enum LeafInputStatusType
|
||||
{
|
||||
Queued,
|
||||
Running,
|
||||
Complete,
|
||||
Error
|
||||
Pending = 0,
|
||||
Running = 1,
|
||||
Complete = 2,
|
||||
Error = 3
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user