|
|
|
|
@ -1,13 +1,12 @@
|
|
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using Yavsc.Models.Booking;
|
|
|
|
|
|
|
|
|
|
namespace Yavsc.Models.Billing
|
|
|
|
|
{
|
|
|
|
|
public partial class Estimate
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using Yavsc.Interfaces;
|
|
|
|
|
using Yavsc.Models.Booking;
|
|
|
|
|
public partial class Estimate : IEstimate
|
|
|
|
|
{
|
|
|
|
|
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
@ -35,7 +34,8 @@ namespace Yavsc.Models.Billing
|
|
|
|
|
[NotMapped]
|
|
|
|
|
public List<string> AttachedGraphics { get; set; }
|
|
|
|
|
|
|
|
|
|
public string AttachedGraphicsString {
|
|
|
|
|
public string AttachedGraphicsString
|
|
|
|
|
{
|
|
|
|
|
get { return string.Join(":", AttachedGraphics); }
|
|
|
|
|
set { AttachedGraphics = value.Split(':').ToList(); }
|
|
|
|
|
}
|
|
|
|
|
@ -48,7 +48,8 @@ namespace Yavsc.Models.Billing
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[NotMapped]
|
|
|
|
|
public List<string> AttachedFiles { get; set; }
|
|
|
|
|
public string AttachedFilesString {
|
|
|
|
|
public string AttachedFilesString
|
|
|
|
|
{
|
|
|
|
|
get { return string.Join(":", AttachedFiles); }
|
|
|
|
|
set { AttachedFiles = value.Split(':').ToList(); }
|
|
|
|
|
}
|
|
|
|
|
@ -58,5 +59,10 @@ namespace Yavsc.Models.Billing
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
public string ClientId { get; set; }
|
|
|
|
|
|
|
|
|
|
public string CommandType
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|