yavsc/Yavsc.Server/Models/Workflow/RdvQuery.cs

76 lines
1.8 KiB
C#

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
8 years ago
namespace Yavsc.Models.Workflow
{
7 years ago
using System.Collections.Generic;
using Yavsc.Models.Billing;
using Yavsc.Models.Relationship;
using Yavsc.Billing;
7 years ago
/// <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)]
override 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 LocationKind LocationType
8 years ago
{
set;
get;
}
8 years ago
[Display(Name="GiveAnExplicitReason")]
8 years ago
public string Reason { get; set; }
string _description = "Rendez-vous";
public override string Description
{
get
{
string type = ResourcesHelpers.GlobalLocalizer[this.GetType().Name];
return $"{_description} {type}";
}
set
{
_description = value;
}
}
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;
}
7 years ago
public override List<IBillItem> GetBillItems()
{
throw new NotImplementedException();
}
}
}