2017-02-23 03:10:30 +01:00
|
|
|
|
|
2017-02-27 19:28:32 +01:00
|
|
|
|
using System;
|
2017-02-13 01:32:03 +01:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
using Yavsc.Models.Billing;
|
2017-02-27 19:28:32 +01:00
|
|
|
|
using Yavsc.Models.Relationship;
|
2017-02-13 01:32:03 +01:00
|
|
|
|
|
|
|
|
|
|
namespace Yavsc.Models.Haircut
|
|
|
|
|
|
{
|
2017-04-08 00:32:23 +02:00
|
|
|
|
public class HairCutQuery : NominativeServiceCommand
|
2017-02-13 01:32:03 +01:00
|
|
|
|
{
|
2017-05-05 23:37:07 +02:00
|
|
|
|
// Bill description
|
|
|
|
|
|
public override string Description
|
|
|
|
|
|
{
|
|
|
|
|
|
get;
|
|
|
|
|
|
|
|
|
|
|
|
set;
|
|
|
|
|
|
} = "Prestation en coiffure à domicile";
|
|
|
|
|
|
|
2017-02-13 01:32:03 +01:00
|
|
|
|
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
2017-05-05 23:37:07 +02:00
|
|
|
|
override public long Id { get; set; }
|
2017-03-02 13:25:20 +01:00
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
public long PrestationId { get; set; }
|
|
|
|
|
|
|
2017-04-08 09:17:15 +02:00
|
|
|
|
[ForeignKey("PrestationId"),Required,Display(Name="Préstation")]
|
2017-03-02 13:25:20 +01:00
|
|
|
|
public virtual HairPrestation Prestation { get; set; }
|
|
|
|
|
|
|
2017-04-01 02:14:10 +02:00
|
|
|
|
[ForeignKey("LocationId")]
|
2017-04-08 09:17:15 +02:00
|
|
|
|
[Display(Name="Lieu du rendez-vous")]
|
2017-04-08 17:51:31 +02:00
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = true, NullDisplayText = "[Pas de lieu spécifié]")]
|
2017-04-01 02:14:10 +02:00
|
|
|
|
public virtual Location Location { get; set; }
|
2017-02-27 19:28:32 +01:00
|
|
|
|
|
2017-04-08 09:17:15 +02:00
|
|
|
|
[Display(Name="Date et heure")]
|
2017-04-08 17:51:31 +02:00
|
|
|
|
[DisplayFormat(NullDisplayText = "[Pas de date ni heure]",ApplyFormatInEditMode=true, DataFormatString = "{0:d}")]
|
|
|
|
|
|
public DateTime? EventDate
|
2017-02-27 19:28:32 +01:00
|
|
|
|
{
|
|
|
|
|
|
get;
|
|
|
|
|
|
set;
|
|
|
|
|
|
}
|
2017-03-23 00:44:27 +01:00
|
|
|
|
|
2017-04-01 02:14:10 +02:00
|
|
|
|
public long? LocationId
|
2017-03-23 00:44:27 +01:00
|
|
|
|
{
|
|
|
|
|
|
get;
|
|
|
|
|
|
|
|
|
|
|
|
set;
|
|
|
|
|
|
}
|
2017-04-08 09:17:15 +02:00
|
|
|
|
|
|
|
|
|
|
[Display(Name="Informations complémentaires"),
|
|
|
|
|
|
StringLengthAttribute(512)]
|
2017-04-08 17:51:31 +02:00
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = true, NullDisplayText = "[pas d'informations complémentaires]")]
|
2017-04-08 09:17:15 +02:00
|
|
|
|
public string AdditionalInfo { get; set; }
|
2017-02-13 01:32:03 +01:00
|
|
|
|
}
|
2017-03-23 00:44:27 +01:00
|
|
|
|
}
|