qol: formatting
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
|
||||
namespace Disco.Models.Repository
|
||||
{
|
||||
|
||||
@@ -41,6 +41,6 @@ namespace Disco.Models.Repository
|
||||
public virtual User TechUser { get; set; }
|
||||
|
||||
[ForeignKey("DocumentTemplateId")]
|
||||
public virtual DocumentTemplate DocumentTemplate { get; set; }
|
||||
public virtual DocumentTemplate DocumentTemplate { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,10 +14,10 @@ namespace Disco.Models.Repository
|
||||
[StringLength(500)]
|
||||
public string Description { get; set; }
|
||||
public decimal Cost { get; set; }
|
||||
|
||||
|
||||
[ForeignKey("JobId")]
|
||||
public virtual Job Job { get; set; }
|
||||
|
||||
|
||||
[ForeignKey("TechUserId")]
|
||||
public virtual User TechUser { get; set; }
|
||||
}
|
||||
|
||||
@@ -15,10 +15,10 @@ namespace Disco.Models.Repository
|
||||
public DateTime Timestamp { get; set; }
|
||||
[Required]
|
||||
public string Comments { get; set; }
|
||||
|
||||
|
||||
[ForeignKey("JobId")]
|
||||
public Job Job { get; set; }
|
||||
|
||||
|
||||
[ForeignKey("TechUserId")]
|
||||
public User TechUser { get; set; }
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace Disco.Models.Repository
|
||||
public string Insurer { get; set; }
|
||||
[StringLength(200)]
|
||||
public string InsurerReference { get; set; }
|
||||
|
||||
|
||||
[Required, ForeignKey("JobId")]
|
||||
public virtual Job Job { get; set; }
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace Disco.Models.Repository
|
||||
public string ExternalReference { get; set; }
|
||||
[DisplayFormat(ApplyFormatInEditMode = true, ConvertEmptyStringToNull = true, DataFormatString = "{0:yyyy/MM/dd hh:mm tt}", HtmlEncode = false)]
|
||||
public DateTime? ExternalCompletedDate { get; set; }
|
||||
|
||||
|
||||
[ForeignKey("JobId"), Required]
|
||||
public virtual Job Job { get; set; }
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Disco.Models.Repository
|
||||
public string Id { get; set; }
|
||||
[StringLength(100)]
|
||||
public string Description { get; set; }
|
||||
|
||||
|
||||
public virtual IList<JobSubType> JobSubTypes { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
|
||||
@@ -12,13 +12,13 @@ namespace Disco.Models.Repository
|
||||
public int JobQueueId { get; set; }
|
||||
[Required]
|
||||
public int JobId { get; set; }
|
||||
|
||||
|
||||
[Required]
|
||||
public DateTime AddedDate { get; set; }
|
||||
[Required]
|
||||
public string AddedUserId { get; set; }
|
||||
public string AddedComment { get; set; }
|
||||
|
||||
|
||||
public DateTime? RemovedDate { get; set; }
|
||||
public string RemovedUserId { get; set; }
|
||||
public string RemovedComment { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user