Formats Class

Class of methods for formatting data.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public class Formats
Inheritance
Object    Formats

Constructors

FormatsInitializes a new instance of the Formats class

Methods

AccountingAccount(String, Int32, Boolean) Converts a count to the set format, with the maximum number of digits.
AccountingAccount(Int32, Object, Object, Int32, Char) Format the account based on the configuration digits.
AccountingAccountPropertySuffix Format an account with third party termination.
CheckAccountDigits Verify that the accounting account only has digits and has the indicated digits.
CheckDateTimePattern(String) Evaluates date and time formats and returns the pattern with 2 minimum digits for days, months, days, hours and seconds and 4 for years.
CheckDateTimePattern(String, CultureInfo) Evaluates date and time formats and returns the pattern with 2 minimum digits for days, months, days, hours and seconds and 4 for years.
CheckDateTimeStandardPattern(String) Evaluates standard date and time formats and returns the corresponding format pattern.
CheckDateTimeStandardPattern(String, CultureInfo) Evaluates standard date and time formats and returns the corresponding format pattern.
CheckDotInAccountingAccount Indicates that it is a valid account format pattern.
CheckNumberStandardPattern Evaluate the standard number formats and returns the corresponding format pattern.
CodeAndName Get a string formed by the union of a code and a description.
CodeAndNameInMessage Get the format of the code and name for messages.
CodeInMessage Get the code format for messages.
Date(Object) Get the date with date format.
Date(Object, CultureInfo) Get the date formatted for the indicated culture.
Date(Object, String) Get the date with date format.
DateExtraShort Get the date format corresponding to the string yyMMdd.
DatePattern Get the date formatting pattern, based on the current computer culture.
DatePattern(CultureInfo) Get the date formatting pattern, based on the current computer culture.
DateTime(Object, CultureInfo) Get the date and time formatted for the indicated culture.
DateTime(Object, TimeSpan, CultureInfo) Get the date and time with the indicated timeoffset and formatted for the indicated culture.
DateTimeOffsetPattern Gets the date and time offset formatting pattern.
DateTimeOffsetPattern(CultureInfo) Gets the date and time offset formatting pattern.
DateTimePattern Gets the date and time formatting pattern.
DateTimePattern(CultureInfo) Gets the date and time formatting pattern.
DateTimeShortPattern Get the short date and time formatting pattern.
DateTimeShortPattern(CultureInfo) Get the short date and time formatting pattern
InvoiceDocument(Object, Object, String) Returns the document formatted with series, number and credit suffix (if it exists) based on the indicated mask.
InvoiceDocument(Object, Object, String, CultureInfo) Get the document formatted with series, number and credit suffix (if it exists) based on the indicated mask.
InvoiceDocument(Object, Object, Boolean, String, String) Returns the document formatted with series, number and credit suffix (if it exists) based on the indicated mask.
Obsolete.
InvoiceDocument(Object, Object, Boolean, String, String, CultureInfo) Get the document formatted with series, number and credit suffix (if it exists) based on the indicated mask.
Obsolete.
IsPredefinedFieldName Indicates whether the field name corresponds to a predefined name.
IsPredefinedName Indicates whether the name corresponds to a predefined name.
IsPredefinedTableName Indicates whether the table corresponds to a predefined name.
NameInMessage Get the name format for messages.
NoteDocument(Object, Object, Object, String) Get the document formatted with series, number and version based on the indicated mask.
NoteDocument(Object, Object, Object, String, CultureInfo) Get the document formatted with series, number and version based on the indicated mask
Number(Object, String) Format a number with the indicated format.
Number(Object, Int32, String, NullableChar, Boolean, Boolean, Boolean) Formats a number to a string based on the indicated parameters.
NumberDecimal Formats a decimal number based on the number of decimals it contains or even the maximum number of decimals indicated.
NumberDecimalStandardPattern Gets the standard formatting pattern based on the given decimals.
NumberIntegerStandardPattern Gets the standard formatting pattern for an integer field.
NumberPattern Gets the formatting pattern to represent numeric value based on the indicated parameters.
SerialAndNumberReturns the formatted document with series, number and version
SerialAndNumberCertification Get the document formatted with series, number and certification number.
SerialAndNumberOfManufacturing Get the document formatted with series, number and manufacturing.
StandardExerciseName(DateTime) Formats the name of the fiscal year according to the indicated dates, assuming that the fiscal years are 12 months.
StandardExerciseName(DateTime, DateTime) Format the fiscal year name according to the indicated dates.
String Gets a formatted text string.
Time(Object) Get the time in text with default formatting.
Time(Object, CultureInfo) Get the time formatted for the indicated culture.
Time(Object, String) Get the time in formatted text.
TimePattern Get the time formatting pattern, by internal default: HH:mm:ss.
TimeShort Get the time in HH:mm format.
TimeShortPattern Get the short time formatting pattern, by internal default: HH:mm.
TimeSpan(Object) Get the time with the default format.
TimeSpan(Object, String) Get the time in formatted text.
TimeSpanPattern You get the full time formatting pattern.
TimeSpanShort Get the time in text format HH:mm.
TimeSpanShortPattern Get the short time formatting pattern.

Fields

ACCOUNT_MAX_DIGITS Maximum number of accounting digits.
ACCOUNT_MIN_DIGITS Minimum number of accounting digits.
ACCOUNT_REFERENCE_BANK Bank account reference.
ACCOUNT_REFERENCE_PROPERTY Third party account reference.
ALIQUO_PROTOCOL Aliquo protocol constant.
PREFIX_NOT_PREDEFINED Non-predefined name prefix.

Extension Methods

GetAttributeFromT Get attribute from a class.
(Defined by ObjectExtensions)
ValidateDataAnnotations Validate class with validator of DataAnnotations.
(Defined by ObjectExtensions)

See Also