-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
112 changed files
with
5,982 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Farmer.Core.Domain | ||
{ | ||
/// <summary> | ||
/// Represents a country | ||
/// </summary> | ||
public partial class Country : BaseEntity, ILocalizedEntity, IStoreMappingSupported | ||
{ | ||
private ICollection<StateProvince> _stateProvinces; | ||
private ICollection<ShippingMethod> _restrictedShippingMethods; | ||
|
||
|
||
/// <summary> | ||
/// Gets or sets the name | ||
/// </summary> | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
///ÔÊÐíÕ˵¥ | ||
/// </summary> | ||
public bool AllowsBilling { get; set; } | ||
|
||
/// <summary> | ||
/// ÔÊÐíÅäËÍ | ||
/// </summary> | ||
public bool AllowsShipping { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the two letter ISO code | ||
/// </summary> | ||
public string TwoLetterIsoCode { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the three letter ISO code | ||
/// </summary> | ||
public string ThreeLetterIsoCode { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the numeric ISO code | ||
/// </summary> | ||
public int NumericIsoCode { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether customers in this country must be charged EU VAT | ||
/// </summary> | ||
public bool SubjectToVat { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether the entity is published | ||
/// </summary> | ||
public bool Published { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the display order | ||
/// </summary> | ||
public int DisplayOrder { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether the entity is limited/restricted to certain stores | ||
/// </summary> | ||
public bool LimitedToStores { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the state/provinces | ||
/// </summary> | ||
public virtual ICollection<StateProvince> StateProvinces | ||
{ | ||
get { return _stateProvinces ?? (_stateProvinces = new List<StateProvince>()); } | ||
protected set { _stateProvinces = value; } | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the restricted shipping methods | ||
/// </summary> | ||
public virtual ICollection<ShippingMethod> RestrictedShippingMethods | ||
{ | ||
get { return _restrictedShippingMethods ?? (_restrictedShippingMethods = new List<ShippingMethod>()); } | ||
protected set { _restrictedShippingMethods = value; } | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
using System; | ||
namespace Farmer.Core.Domain | ||
{ | ||
/// <summary> | ||
/// Represents a currency | ||
/// </summary> | ||
public partial class Currency : BaseEntity, ILocalizedEntity, IStoreMappingSupported | ||
{ | ||
/// <summary> | ||
/// Gets or sets the name | ||
/// </summary> | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// 当前代码 | ||
/// </summary> | ||
public string CurrencyCode { get; set; } | ||
|
||
/// <summary> | ||
///汇率 | ||
/// </summary> | ||
public decimal Rate { get; set; } | ||
|
||
/// <summary> | ||
/// 本地显示 | ||
/// </summary> | ||
public string DisplayLocale { get; set; } | ||
|
||
/// <summary> | ||
/// 自定义格式 | ||
/// </summary> | ||
public string CustomFormatting { get; set; } | ||
|
||
/// <summary> | ||
/// 是否店铺限制 | ||
/// </summary> | ||
public bool LimitedToStores { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether the entity is published | ||
/// </summary> | ||
public bool Published { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the display order | ||
/// </summary> | ||
public int DisplayOrder { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the date and time of instance update | ||
/// </summary> | ||
public DateTime UpdatedOn { get; set; } | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
| ||
namespace Farmer.Core.Domain | ||
{ | ||
public class CurrencySettings : ISettings | ||
{ | ||
public bool DisplayCurrencyLabel { get; set; } | ||
public int PrimaryStoreCurrencyId { get; set; } | ||
public int PrimaryExchangeRateCurrencyId { get; set; } | ||
public string ActiveExchangeRateProviderSystemName { get; set; } | ||
public bool AutoUpdateEnabled { get; set; } | ||
public long LastUpdateTime { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using System; | ||
|
||
namespace Nop.Core.Domain.Directory | ||
{ | ||
/// <summary> | ||
/// ½»Ò×»ãÂÊ | ||
/// </summary> | ||
public partial class ExchangeRate | ||
{ | ||
/// <summary> | ||
/// Creates a new instance of the ExchangeRate class | ||
/// </summary> | ||
public ExchangeRate() | ||
{ | ||
CurrencyCode = string.Empty; | ||
Rate = 1.0m; | ||
} | ||
|
||
/// <summary> | ||
/// The three letter ISO code for the Exchange Rate, e.g. USD | ||
/// </summary> | ||
public string CurrencyCode { get; set; } | ||
|
||
/// <summary> | ||
/// The conversion rate of this currency from the base currency | ||
/// </summary> | ||
public decimal Rate { get; set; } | ||
|
||
/// <summary> | ||
/// When was this exchange rate updated from the data source (the internet data xml feed) | ||
/// </summary> | ||
public DateTime UpdatedOn { get; set; } | ||
|
||
|
||
/// <summary> | ||
/// Format the rate into a string with the currency code, e.g. "USD 0.72543" | ||
/// </summary> | ||
/// <returns></returns> | ||
public override string ToString() | ||
{ | ||
return string.Format("{0} {1}", this.CurrencyCode, this.Rate); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
namespace Farmer.Core.Domain | ||
{ | ||
/// <summary> | ||
/// 测量规格 | ||
/// </summary> | ||
public partial class MeasureDimension : BaseEntity | ||
{ | ||
/// <summary> | ||
/// Gets or sets the name | ||
/// </summary> | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
///系统官架子 | ||
/// </summary> | ||
public string SystemKeyword { get; set; } | ||
|
||
/// <summary> | ||
/// 比率 | ||
/// </summary> | ||
public decimal Ratio { get; set; } | ||
|
||
/// <summary> | ||
/// 显示排序 | ||
/// </summary> | ||
public int DisplayOrder { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
| ||
using System; | ||
|
||
namespace Farmer.Core.Domain | ||
{ | ||
/// <summary> | ||
/// 测量设定 | ||
/// </summary> | ||
public class MeasureSettings : ISettings | ||
{ | ||
public Guid BaseDimensionId { get; set; } | ||
public Guid BaseWeightId { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
namespace Farmer.Core.Domain | ||
{ | ||
/// <summary> | ||
/// ²âÁ¿ÖØÁ¿ | ||
/// </summary> | ||
public partial class MeasureWeight : BaseEntity | ||
{ | ||
/// <summary> | ||
/// Gets or sets the name | ||
/// </summary> | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the system keyword | ||
/// </summary> | ||
public string SystemKeyword { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the ratio | ||
/// </summary> | ||
public decimal Ratio { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the display order | ||
/// </summary> | ||
public int DisplayOrder { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
using System; | ||
|
||
namespace Farmer.Core.Domain | ||
{ | ||
/// <summary> | ||
/// Represents a state/province | ||
/// </summary> | ||
public partial class StateProvince : BaseEntity, ILocalizedEntity | ||
{ | ||
/// <summary> | ||
/// Gets or sets the country identifier | ||
/// </summary> | ||
public Guid CountryId { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the name | ||
/// </summary> | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the abbreviation | ||
/// </summary> | ||
public string Abbreviation { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether the entity is published | ||
/// </summary> | ||
public bool Published { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the display order | ||
/// </summary> | ||
public int DisplayOrder { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the country | ||
/// </summary> | ||
public virtual Country Country { get; set; } | ||
} | ||
|
||
} |
Oops, something went wrong.