2016-05-17 18:22:18 +02:00
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
2017-02-11 15:46:26 +01:00
|
|
|
namespace Yavsc.Models.Workflow
|
2016-05-17 18:22:18 +02:00
|
|
|
{
|
2017-05-12 12:15:57 +02:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Yavsc.Models.Billing;
|
|
|
|
|
using Yavsc.Models.Relationship;
|
2017-05-27 16:22:58 +02:00
|
|
|
using Yavsc.Billing;
|
2017-05-12 12:15:57 +02:00
|
|
|
|
2016-05-17 18:22:18 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Query, for a date, with a given perfomer, at this given place.
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
2017-02-27 19:28:32 +01:00
|
|
|
public class RdvQuery : NominativeServiceCommand
|
2017-01-16 01:20:39 +01:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The command identifier
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
2017-05-05 23:37:07 +02:00
|
|
|
override public long Id { get; set; }
|
2016-07-27 13:06:00 +02:00
|
|
|
|
2017-01-16 01:20:39 +01:00
|
|
|
[Display(Name = "Event date")]
|
|
|
|
|
public DateTime EventDate
|
|
|
|
|
{
|
2016-09-17 03:36:34 +02:00
|
|
|
get;
|
|
|
|
|
set;
|
2017-01-16 01:20:39 +01:00
|
|
|
}
|
|
|
|
|
public Location Location
|
|
|
|
|
{
|
2016-09-17 03:36:34 +02:00
|
|
|
get;
|
|
|
|
|
set;
|
2017-01-16 01:20:39 +01:00
|
|
|
}
|
|
|
|
|
|
2018-05-04 17:04:19 +02:00
|
|
|
public LocationKind LocationType
|
2017-01-16 01:20:39 +01:00
|
|
|
{
|
|
|
|
|
set;
|
2017-01-13 16:31:40 +01:00
|
|
|
get;
|
|
|
|
|
}
|
2017-03-13 16:44:07 +01:00
|
|
|
|
|
|
|
|
[Display(Name="GiveAnExplicitReason")]
|
2017-01-16 01:20:39 +01:00
|
|
|
public string Reason { get; set; }
|
|
|
|
|
|
2018-08-01 03:12:08 +02:00
|
|
|
public override string Description => "Rendez-vous";
|
2017-05-05 23:37:07 +02:00
|
|
|
|
2017-02-27 19:28:32 +01:00
|
|
|
public RdvQuery()
|
2016-06-14 03:37:57 +02:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2017-02-27 19:28:32 +01:00
|
|
|
public RdvQuery(string activityCode, Location eventLocation, DateTime eventDate)
|
2017-01-16 01:20:39 +01:00
|
|
|
{
|
|
|
|
|
Location = eventLocation;
|
|
|
|
|
EventDate = eventDate;
|
|
|
|
|
ActivityCode = activityCode;
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-12 12:15:57 +02:00
|
|
|
public override List<IBillItem> GetBillItems()
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
2016-05-17 18:22:18 +02:00
|
|
|
}
|
2017-02-07 15:04:58 +01:00
|
|
|
}
|