yavsc/Yavsc/Model/Billing/NominatvieCommand.cs

51 lines
1.2 KiB
C#
Raw Normal View History

2016-05-17 18:22:18 +02:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
2016-06-14 03:37:57 +02:00
using Yavsc.Models.Market;
using Yavsc.Models.Workflow;
2016-05-17 18:22:18 +02:00
2016-06-14 03:37:57 +02:00
namespace Yavsc.Models.Billing
2016-05-17 18:22:18 +02:00
{
2016-06-14 03:37:57 +02:00
public class NominativeServiceCommand : Command<Service> {
2016-05-17 18:22:18 +02:00
public string ClientId { get; set; }
/// <summary>
/// The client
/// </summary>
[Required,ForeignKey("ClientId")]
public ApplicationUser Client { get; set; }
[Required]
public string PerformerId { get; set; }
/// <summary>
/// The performer identifier
/// </summary>
[ForeignKey("PerformerId")]
public PerformerProfile PerformerProfile { get; set; }
public DateTime? ValidationDate {get; set;}
/// <summary>
/// Command creation Date & time
/// </summary>
/// <returns></returns>
public DateTime CreationDate {get; set;}
public decimal? Previsional { get; set; }
2016-06-14 03:37:57 +02:00
/// <summary>
/// The bill
/// </summary>
/// <returns></returns>
2016-09-05 19:01:43 +02:00
public List<Service> Bill { get; set; } = new List<Service>();
2016-05-17 18:22:18 +02:00
///<summary>
/// Time span in seconds in which
/// Validation will be considered as definitive
///</summary>
public int Lag { get; set; }
}
}