* Price.cs:

* Service.cs:
* Price.cs:
* PhysicalProduct.cs: Billing

* SetPrice.cs: Billing


* MyClass.cs:
* ResultPages.cs:
* NpgsqlRoleProvider.cs:
* NpgsqlProfileProvider.cs:
* NpgsqlMembershipProvider.cs: xml doc

* SalesCatalog.csproj: cleanning

* YavscModel.csproj: coding policies
This commit is contained in:
Paul Schneider 2015-02-18 17:34:26 +01:00
commit 7b0dd0c1e2
11 changed files with 457 additions and 54 deletions

View file

@ -1,19 +1,12 @@
using System;
namespace Yavsc.Model.FrontOffice
namespace Yavsc.Model.FrontOffice.Billing
{
/// <summary>
/// Price.
/// </summary>
public class Price: Scalar
{
/// <summary>
/// Initializes a new instance of the <see cref="Yavsc.Model.FrontOffice.Price"/> class.
/// </summary>
public Price ()
{
}
decimal quantity;
#region implemented abstract members of SalesCatalog.Value

View file

@ -0,0 +1,40 @@
//
// ServiceForfait.cs
//
// Author:
// Paul Schneider <paulschneider@free.fr>
//
// Copyright (c) 2015 Paul Schneider
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using System;
using System.ComponentModel.DataAnnotations;
namespace Yavsc.Model.FrontOffice.Billing
{
/// <summary>
/// A set price.
/// </summary>
public class SetPrice: Price
{
/// <summary>
/// Gets or sets the minimum count.
/// </summary>
/// <value>The minimum count.</value>
[Range(0,int.MaxValue)]
public int MinCount { get; set; }
}
}

View file

@ -1,4 +1,5 @@
using System;
using Yavsc.Model.FrontOffice.Billing;
namespace Yavsc.Model.FrontOffice
{

View file

@ -1,4 +1,5 @@
using System;
using Yavsc.Model.FrontOffice.Billing;
namespace Yavsc.Model.FrontOffice
{
@ -19,6 +20,11 @@ namespace Yavsc.Model.FrontOffice
/// </summary>
/// <value>The hour price.</value>
public Price HourPrice { get; set; }
/// <summary>
/// Gets or sets the set prices.
/// </summary>
/// <value>The set prices.</value>
public SetPrice[] SetPrices { get; set; }
#region implemented abstract members of Product
/// <summary>

View file

@ -110,7 +110,6 @@
<Compile Include="FrontOffice\Catalog\Option.cs" />
<Compile Include="FrontOffice\Catalog\Period.cs" />
<Compile Include="FrontOffice\Catalog\PhysicalProduct.cs" />
<Compile Include="FrontOffice\Catalog\Price.cs" />
<Compile Include="FrontOffice\Catalog\Product.cs" />
<Compile Include="FrontOffice\Catalog\ProductCategory.cs" />
<Compile Include="FrontOffice\Catalog\ProductImage.cs" />
@ -137,6 +136,8 @@
<Compile Include="Google\CalendarEntryList.cs" />
<Compile Include="FrontOffice\CommandStatus.cs" />
<Compile Include="FrontOffice\CommandSet.cs" />
<Compile Include="FrontOffice\Catalog\Billing\SetPrice.cs" />
<Compile Include="FrontOffice\Catalog\Billing\Price.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
@ -148,12 +149,13 @@
<Folder Include="Google\" />
<Folder Include="FrontOffice\" />
<Folder Include="FrontOffice\Catalog\" />
<Folder Include="FrontOffice\Catalog\Billing\" />
</ItemGroup>
<ProjectExtensions>
<MonoDevelop>
<Properties>
<Policies>
<DotNetNamingPolicy DirectoryNamespaceAssociation="PrefixedFlat" ResourceNamePolicy="FileFormatDefault" />
<DotNetNamingPolicy DirectoryNamespaceAssociation="PrefixedHierarchical" ResourceNamePolicy="FileFormatDefault" />
</Policies>
</Properties>
</MonoDevelop>