yavsc/Yavsc.Server/Models/HairCut/HairMultiCutQuery.cs

58 lines
1.6 KiB
C#
Raw Normal View History

2017-02-27 19:28:32 +01:00
using System;
2017-04-01 02:14:10 +02:00
using System.Collections.Generic;
2017-02-27 19:28:32 +01:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Billing;
using Yavsc.Models.Relationship;
2017-05-27 16:22:58 +02:00
using Yavsc.Billing;
2017-02-27 19:28:32 +01:00
namespace Yavsc.Models.Haircut
{
2017-04-01 02:14:10 +02:00
public class HairPrestationCollectionItem {
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
public long PrestationId { get; set; }
[ForeignKeyAttribute("PrestationId")]
public virtual HairPrestation Prestation { get; set; }
public long QueryId { get; set; }
[ForeignKeyAttribute("QueryId")]
public virtual HairMultiCutQuery Query { get; set; }
}
2017-02-27 19:28:32 +01:00
public class HairMultiCutQuery : NominativeServiceCommand
{
2017-05-30 23:42:04 +02:00
// Bill description
2018-08-01 10:55:52 +02:00
string _customDescription = null;
public override string Description
{
get {
return _customDescription ?? "Prestation en coiffure à domicile [commande groupée]" ;
}
set {
_customDescription = value;
}
}
2017-05-05 23:37:07 +02:00
2017-02-27 19:28:32 +01:00
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
2017-05-05 23:37:07 +02:00
override public long Id { get; set; }
2017-04-01 02:14:10 +02:00
[InversePropertyAttribute("Query")]
public virtual List<HairPrestationCollectionItem> Prestations { get; set; }
2017-02-27 19:28:32 +01:00
public Location Location { get; set; }
public DateTime EventDate
{
get;
set;
}
2017-05-12 12:15:57 +02:00
public override List<IBillItem> GetBillItems()
{
throw new NotImplementedException();
}
2017-02-27 19:28:32 +01:00
}
2017-04-01 02:14:10 +02:00
}