refactoring

This commit is contained in:
2017-02-11 15:46:26 +01:00
parent c333659891
commit 44c26d099a
21 changed files with 135 additions and 29 deletions

View File

@ -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>
{

View File

@ -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
{

View File

@ -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>

View File

@ -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>

View File

@ -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;

View File

@ -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>

View File

@ -0,0 +1,9 @@
namespace Yavsc.Models.haircut
{
public enum HairCutGenders : int
{
Kid = 1,
Man,
Women
}
}

View 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;
}
}
}

View File

@ -0,0 +1,7 @@
namespace Yavsc.Models.haircut
{
public enum HairDressings {
Brushing,
Folding
}
}

View File

@ -0,0 +1,9 @@
namespace Yavsc.Models.haircut
{
public enum HairLength : int
{
Short = 1,
HalfLong,
Long
}
}

View 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; }
}
}

View 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;}
}
}

View File

@ -0,0 +1,13 @@
namespace Yavsc.Models.haircut
{
public enum HairTechnos
{
Color,
Permanent,
Defris,
Mech,
Balayage,
TyAndDie
}
}