refactoring
This commit is contained in:
@ -4,7 +4,7 @@ using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace yavscModel.Admin
|
||||
namespace Yavsc.Model.Admin
|
||||
{
|
||||
public class DataAccess {
|
||||
private string host = "localhost";
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace yavscModel.Admin
|
||||
namespace Yavsc.Model.Admin
|
||||
{
|
||||
public class RestoreQuery: DataAccess
|
||||
{
|
||||
|
@ -3,7 +3,7 @@ using System.Configuration;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace yavscModel.Blogs
|
||||
namespace Yavsc.Model.Blogs
|
||||
{
|
||||
public class Blog
|
||||
{
|
||||
|
@ -2,7 +2,7 @@ using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace yavscModel.Blogs
|
||||
namespace Yavsc.Model.Blogs
|
||||
{
|
||||
public class BlogEditCommentModel:Comment
|
||||
{
|
||||
|
@ -2,7 +2,7 @@ using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace yavscModel.Blogs
|
||||
namespace Yavsc.Model.Blogs
|
||||
{
|
||||
public class BlogEditEntryModel:BlogEntry
|
||||
{
|
||||
|
@ -3,7 +3,7 @@ using System.Configuration;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace yavscModel.Blogs
|
||||
namespace Yavsc.Model.Blogs
|
||||
{
|
||||
public class BlogEntry {
|
||||
long id;
|
||||
|
@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using System.Configuration;
|
||||
using System.Collections.Generic;
|
||||
using yavscModel.Blogs;
|
||||
using Yavsc.Model.Blogs;
|
||||
|
||||
namespace yavscModel.Blogs
|
||||
namespace Yavsc.Model.Blogs
|
||||
{
|
||||
public class BlogEntryCollection : List<BlogEntry>
|
||||
{
|
||||
|
@ -3,7 +3,7 @@ using System.Configuration;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace yavscModel.Blogs
|
||||
namespace Yavsc.Model.Blogs
|
||||
{
|
||||
public class Comment
|
||||
{
|
||||
|
@ -2,7 +2,7 @@ using System;
|
||||
using System.Configuration;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace yavscModel.Blogs
|
||||
namespace Yavsc.Model.Blogs
|
||||
{
|
||||
|
||||
public enum FindBlogEntryFlags : byte {
|
||||
|
@ -2,7 +2,7 @@ using System;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace FileSystem
|
||||
namespace Yavsc.Model.FileSystem
|
||||
{
|
||||
public class FileInfoCollection: List<FileInfo>
|
||||
{
|
||||
|
@ -2,7 +2,7 @@
|
||||
using System.Configuration;
|
||||
using System.Collections.Specialized;
|
||||
|
||||
namespace yavscModel
|
||||
namespace Yavsc.Model
|
||||
{
|
||||
public interface IModule
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace yavscModel.RolesAndMembers
|
||||
namespace Yavsc.Model.RolesAndMembers
|
||||
{
|
||||
public class ChangePasswordModel
|
||||
{
|
||||
|
@ -2,7 +2,7 @@ using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace yavscModel.RolesAndMembers
|
||||
namespace Yavsc.Model.RolesAndMembers
|
||||
{
|
||||
public class LoginModel
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace yavscModel.RolesAndMembers
|
||||
namespace Yavsc.Model.RolesAndMembers
|
||||
{
|
||||
public class NewAdminModel
|
||||
{
|
||||
|
@ -2,7 +2,7 @@ using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace yavscModel.RolesAndMembers
|
||||
namespace Yavsc.Model.RolesAndMembers
|
||||
{
|
||||
public class NewRoleModel
|
||||
{
|
||||
|
@ -3,7 +3,7 @@ using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Profile;
|
||||
|
||||
namespace yavscModel.RolesAndMembers
|
||||
namespace Yavsc.Model.RolesAndMembers
|
||||
{
|
||||
public class Profile
|
||||
{
|
||||
|
@ -2,7 +2,7 @@ using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace yavscModel.RolesAndMembers
|
||||
namespace Yavsc.Model.RolesAndMembers
|
||||
{
|
||||
public class RegisterViewModel
|
||||
{
|
||||
|
16
yavscModel/WorkFlow/BasketImpact.cs
Normal file
16
yavscModel/WorkFlow/BasketImpact.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace Yavsc.Model.WorkFlow
|
||||
{
|
||||
|
||||
public class BasketImpact
|
||||
{
|
||||
public string ProductRef { get; set; }
|
||||
public int Count { get; set; }
|
||||
public string Message { get; set; }
|
||||
}
|
||||
|
||||
}
|
17
yavscModel/WorkFlow/Commande.cs
Normal file
17
yavscModel/WorkFlow/Commande.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using Yavsc;
|
||||
using SalesCatalog;
|
||||
using SalesCatalog.Model;
|
||||
using System.Collections.Specialized;
|
||||
|
||||
namespace Yavsc.Model.WorkFlow
|
||||
{
|
||||
public class Commande
|
||||
{
|
||||
public Commande(NameValueCollection collection)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace yavscModel.WorkFlow
|
||||
namespace Yavsc.Model.WorkFlow
|
||||
{
|
||||
public class Estimate
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace yavscModel.WorkFlow
|
||||
namespace Yavsc.Model.WorkFlow
|
||||
{
|
||||
public interface IContent
|
||||
{
|
||||
|
@ -2,7 +2,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace yavscModel.WorkFlow
|
||||
namespace Yavsc.Model.WorkFlow
|
||||
{
|
||||
|
||||
public interface IContentProvider : IModule, IDisposable
|
||||
|
@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using yavscModel.WorkFlow;
|
||||
using Yavsc.Model.WorkFlow;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace yavscModel.WorkFlow
|
||||
namespace Yavsc.Model.WorkFlow
|
||||
{
|
||||
public interface IWFModule
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace yavscModel.WorkFlow
|
||||
namespace Yavsc.Model.WorkFlow
|
||||
{
|
||||
public interface IWFOrder
|
||||
{
|
||||
|
@ -2,7 +2,7 @@ using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace yavscModel.WorkFlow
|
||||
namespace Yavsc.Model.WorkFlow
|
||||
{
|
||||
[Obsolete("This should be define in an IT specific module")]
|
||||
public class NewProjectModel
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace yavscModel.WorkFlow
|
||||
namespace Yavsc.Model.WorkFlow
|
||||
{
|
||||
public class OrderStatusChangedEventArgs: EventArgs
|
||||
{
|
||||
|
@ -2,7 +2,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace yavscModel.WorkFlow
|
||||
namespace Yavsc.Model.WorkFlow
|
||||
{
|
||||
public class StatusChange {
|
||||
public int Status { get; set;}
|
||||
|
@ -1,8 +1,7 @@
|
||||
using System;
|
||||
using SalesCatalog.Model;
|
||||
using yavscModel.WorkFlow;
|
||||
|
||||
namespace yavscModel.WorkFlow
|
||||
namespace Yavsc.Model.WorkFlow
|
||||
{
|
||||
public class WFOrder : IWFOrder
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace yavscModel.WorkFlow
|
||||
namespace Yavsc.Model.WorkFlow
|
||||
{
|
||||
public class Writting
|
||||
{
|
||||
|
@ -65,6 +65,8 @@
|
||||
<Compile Include="Blogs\FindBlogEntryFlags.cs" />
|
||||
<Compile Include="WorkFlow\StatusChange.cs" />
|
||||
<Compile Include="IModule.cs" />
|
||||
<Compile Include="WorkFlow\BasketImpact.cs" />
|
||||
<Compile Include="WorkFlow\Commande.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
Reference in New Issue
Block a user