yavsc/Yavsc/Models/Workflow/RdvQuery.cs

57 lines
1.2 KiB
C#

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
8 years ago
namespace Yavsc.Models.Workflow
{
using Yavsc.Models.Billing;
using Yavsc.Models.Relationship;
/// <summary>
/// Query, for a date, with a given perfomer, at this given place.
/// </summary>
8 years ago
public class RdvQuery : NominativeServiceCommand
8 years ago
{
/// <summary>
/// The command identifier
/// </summary>
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
8 years ago
8 years ago
[Display(Name = "Event date")]
public DateTime EventDate
{
get;
set;
8 years ago
}
public Location Location
{
get;
set;
8 years ago
}
public LocationType LocationType
{
set;
get;
}
8 years ago
[Display(Name="GiveAnExplicitReason")]
8 years ago
public string Reason { get; set; }
8 years ago
public RdvQuery()
{
}
8 years ago
public RdvQuery(string activityCode, Location eventLocation, DateTime eventDate)
8 years ago
{
Location = eventLocation;
EventDate = eventDate;
ActivityCode = activityCode;
}
}
}