3.0.1.3 Requirements
This commit is contained in:
@@ -202,6 +202,19 @@ namespace Sarand.BusinessMgr.Net.Core.Web.Components
|
||||
return value.Format("d-MMM-yy HH:mm", SessionCulture).TrimAll();
|
||||
}
|
||||
|
||||
// Display data - Numeric.
|
||||
public string FormatNumberForDisplay(decimal value, ushort decimals)
|
||||
{
|
||||
return value.ToString($"N{decimals}", SessionCulture);
|
||||
}
|
||||
|
||||
// Display data - Money.
|
||||
public string FormatMoneyForDisplay(decimal? value, ushort decimals)
|
||||
{
|
||||
if (value == null) return "";
|
||||
return ((decimal)value).ToString($"N{decimals}", SessionCulture);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Form data - Dates.
|
||||
// Format may depend on locale, but as long as these methods are used consistently,
|
||||
|
||||
Reference in New Issue
Block a user