C# Класс Cats.Helpers.DateHelpers

Показать файл Открыть проект

Открытые методы

Метод Описание
CTSPreferedDateLabel ( this label ) : string
FormatDateFromString ( this helper, string dateAsString ) : string
GetPreferedRation ( this amount ) : decimal
GetPreferedRation1 ( this amount ) : float
ToCTSPreferedDateFormat ( this date, string lang ) : string
ToMetricTone ( this amountInQuintal ) : decimal
ToPreferedWeightMeasurment ( this quantity, string weightMeasurment ) : Decimal
ToPreferedWeightUnit ( this amount, string unit = "MT" ) : decimal
ToPreferedWeightUnitForInsert ( this amount, string unit = "MT" ) : decimal
ToQuintal ( this amountInMT ) : decimal

Описание методов

CTSPreferedDateLabel() публичный статический Метод

public static CTSPreferedDateLabel ( this label ) : string
label this
Результат string

FormatDateFromString() публичный статический Метод

public static FormatDateFromString ( this helper, string dateAsString ) : string
helper this
dateAsString string
Результат string

GetPreferedRation() публичный статический Метод

public static GetPreferedRation ( this amount ) : decimal
amount this
Результат decimal

GetPreferedRation1() публичный статический Метод

public static GetPreferedRation1 ( this amount ) : float
amount this
Результат float

ToCTSPreferedDateFormat() публичный статический Метод

public static ToCTSPreferedDateFormat ( this date, string lang ) : string
date this
lang string
Результат string

ToMetricTone() публичный статический Метод

public static ToMetricTone ( this amountInQuintal ) : decimal
amountInQuintal this
Результат decimal

ToPreferedWeightMeasurment() публичный статический Метод

public static ToPreferedWeightMeasurment ( this quantity, string weightMeasurment ) : Decimal
quantity this
weightMeasurment string
Результат Decimal

ToPreferedWeightUnit() публичный статический Метод

public static ToPreferedWeightUnit ( this amount, string unit = "MT" ) : decimal
amount this
unit string
Результат decimal

ToPreferedWeightUnitForInsert() публичный статический Метод

public static ToPreferedWeightUnitForInsert ( this amount, string unit = "MT" ) : decimal
amount this
unit string
Результат decimal

ToQuintal() публичный статический Метод

public static ToQuintal ( this amountInMT ) : decimal
amountInMT this
Результат decimal