refactoring
This commit is contained in:
@ -10,8 +10,8 @@ using System.Threading;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
using Relationship;
|
||||
using Forms;
|
||||
using Relationship;
|
||||
using Forms;
|
||||
using YavscLib;
|
||||
using Auth;
|
||||
using Billing;
|
||||
@ -24,6 +24,7 @@ namespace Yavsc.Models
|
||||
using Messaging;
|
||||
using Access;
|
||||
using Booking.Profiles;
|
||||
using Yavsc.Models.Workflow.Profiles;
|
||||
|
||||
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
|
||||
{
|
||||
|
@ -8,8 +8,7 @@ using System.Linq;
|
||||
namespace Yavsc.Models.Billing
|
||||
{
|
||||
using Interfaces;
|
||||
using Models.Booking;
|
||||
using Yavsc.Models.Workflow;
|
||||
using Models.Workflow;
|
||||
|
||||
public partial class Estimate : IEstimate
|
||||
{
|
||||
|
@ -20,11 +20,11 @@
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
using Yavsc.Models.Booking;
|
||||
using Yavsc.Models.Messaging;
|
||||
|
||||
namespace Yavsc.Models.Calendar
|
||||
{
|
||||
using Models.Workflow;
|
||||
using Models.Messaging;
|
||||
/// <summary>
|
||||
/// I calendar manager.
|
||||
/// </summary>
|
||||
|
@ -3,12 +3,11 @@ using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Yavsc.Models.Booking
|
||||
namespace Yavsc.Models.Workflow
|
||||
{
|
||||
using YavscLib;
|
||||
using Yavsc.Models.Billing;
|
||||
using Yavsc.Models.Relationship;
|
||||
using Yavsc.Models.Workflow;
|
||||
/// <summary>
|
||||
/// Query, for a date, with a given perfomer, at this given place.
|
||||
/// </summary>
|
@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Yavsc.Models.Booking.Profiles
|
||||
namespace Yavsc.Models.Workflow.Profiles
|
||||
{
|
||||
using Models.Workflow;
|
||||
using YavscLib;
|
@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Market;
|
||||
|
||||
namespace Yavsc.Models.Booking
|
||||
namespace Yavsc.Models.Workflow
|
||||
{
|
||||
using Models.Relationship;
|
||||
/// <summary>
|
9
Yavsc/Models/haircut/HairCutGenders.cs
Normal file
9
Yavsc/Models/haircut/HairCutGenders.cs
Normal file
@ -0,0 +1,9 @@
|
||||
namespace Yavsc.Models.haircut
|
||||
{
|
||||
public enum HairCutGenders : int
|
||||
{
|
||||
Kid = 1,
|
||||
Man,
|
||||
Women
|
||||
}
|
||||
}
|
31
Yavsc/Models/haircut/HairCutQueryEvent.cs
Normal file
31
Yavsc/Models/haircut/HairCutQueryEvent.cs
Normal file
@ -0,0 +1,31 @@
|
||||
namespace Yavsc.Models.Messaging
|
||||
{
|
||||
public class HairCutQueryEvent : BookQueryProviderInfo, IEvent
|
||||
{
|
||||
public HairCutQueryEvent()
|
||||
{
|
||||
Topic = "HairCutQuery";
|
||||
}
|
||||
|
||||
public string Message
|
||||
{
|
||||
get;
|
||||
|
||||
set;
|
||||
}
|
||||
|
||||
public string Sender
|
||||
{
|
||||
get;
|
||||
|
||||
set;
|
||||
}
|
||||
|
||||
public string Topic
|
||||
{
|
||||
get;
|
||||
|
||||
set;
|
||||
}
|
||||
}
|
||||
}
|
7
Yavsc/Models/haircut/HairDressings.cs
Normal file
7
Yavsc/Models/haircut/HairDressings.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace Yavsc.Models.haircut
|
||||
{
|
||||
public enum HairDressings {
|
||||
Brushing,
|
||||
Folding
|
||||
}
|
||||
}
|
9
Yavsc/Models/haircut/HairLength.cs
Normal file
9
Yavsc/Models/haircut/HairLength.cs
Normal file
@ -0,0 +1,9 @@
|
||||
namespace Yavsc.Models.haircut
|
||||
{
|
||||
public enum HairLength : int
|
||||
{
|
||||
Short = 1,
|
||||
HalfLong,
|
||||
Long
|
||||
}
|
||||
}
|
22
Yavsc/Models/haircut/HairPrestation.cs
Normal file
22
Yavsc/Models/haircut/HairPrestation.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Yavsc.Models.haircut
|
||||
{
|
||||
public class HairPrestation
|
||||
{
|
||||
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public long Id { get; set;}
|
||||
|
||||
public HairLength Length { get; set; }
|
||||
public HairCutGenders Gender { get; set; }
|
||||
public bool Cut { get; set; }
|
||||
|
||||
public HairDressings Dressing { get; set; }
|
||||
public HairTechnos Tech { get; set; }
|
||||
public bool Shampoo { get; set; }
|
||||
public HairTaint[] Taints { get; set; }
|
||||
public bool Cares { get; set; }
|
||||
|
||||
}
|
||||
}
|
16
Yavsc/Models/haircut/HairTaint.cs
Normal file
16
Yavsc/Models/haircut/HairTaint.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Drawing;
|
||||
|
||||
namespace Yavsc.Models.haircut
|
||||
{
|
||||
public class HairTaint
|
||||
{
|
||||
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public long Id { get; set;}
|
||||
|
||||
public long Name { get; set; }
|
||||
|
||||
public Color Color {get; set;}
|
||||
}
|
||||
}
|
13
Yavsc/Models/haircut/HairTechnos.cs
Normal file
13
Yavsc/Models/haircut/HairTechnos.cs
Normal file
@ -0,0 +1,13 @@
|
||||
namespace Yavsc.Models.haircut
|
||||
{
|
||||
|
||||
public enum HairTechnos
|
||||
{
|
||||
Color,
|
||||
Permanent,
|
||||
Defris,
|
||||
Mech,
|
||||
Balayage,
|
||||
TyAndDie
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user