* 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

@ -0,0 +1,43 @@
using System;
namespace Yavsc.Model.FrontOffice.Billing
{
/// <summary>
/// Price.
/// </summary>
public class Price: Scalar
{
decimal quantity;
#region implemented abstract members of SalesCatalog.Value
/// <summary>
/// Gets or sets the quantity.
/// </summary>
/// <value>The quantity.</value>
public override object Quantity {
get {
return quantity;
}
set {
quantity = (decimal) value;
}
}
Currency curr;
/// <summary>
/// Gets or sets the unit.
/// </summary>
/// <value>The unit.</value>
public override Unit Unit {
get {
return curr;
}
set {
curr = (Currency)value;
}
}
#endregion
}
}

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