53 lines
2.0 KiB
C#
53 lines
2.0 KiB
C#
using Sarand.Net.Standard.Base.Core;
|
|
using Sarand.Net.Standard.Base.Bus;
|
|
using Sarand.Net.Standard.Base.Dbas;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Sarand.Net.Standard.Base.ReferenceData
|
|
{
|
|
//=======================================================================
|
|
// Reference Data Console - Currencies.
|
|
//=======================================================================
|
|
partial class SaReferenceDataConsole
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Utilities.
|
|
public static String GetDefaultCurrencyCode()
|
|
{
|
|
return GetCurrencyCode(SaCurrencyCode.Sterling);
|
|
}
|
|
public static String GetCurrencyCode(SaCurrencyCode currencyCode)
|
|
{
|
|
switch (currencyCode)
|
|
{
|
|
case SaCurrencyCode.Sterling: return "GBP";
|
|
case SaCurrencyCode.Euro: return "EUR";
|
|
}
|
|
return "";
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Properties.
|
|
public abstract short CurrencyItemType { get; }
|
|
public abstract String TableName_Currency { get; }
|
|
public abstract bool DatabaseIsValid_Currency { get; }
|
|
|
|
//-------------------------------------------------------------------
|
|
// Retrieve Currency.
|
|
public abstract SaCurrency GetCurrency(SaCurrency.Params prmCurrency);
|
|
|
|
// Currency list.
|
|
public abstract ColumnDfn GetCurrencyColumnDfn(SaCurrency.Column columnId, String caption = "", int width = 0);
|
|
public abstract List<String> GetCurrencyQueryFilter(SaCurrency.Params prm);
|
|
public abstract long GetCurrencyCount(SaCurrency.Params prmCurrency);
|
|
public abstract List<SaCurrency> GetCurrencyList(SaCurrency.Params prmCurrency);
|
|
public abstract DbResultSet ExecuteCurrencyQuery(List<ColumnDfn> columns, SaCurrency.Params prm);
|
|
public abstract DataValue GetCurrencyDataValue(ColumnDfn column, NamedValue.Map values);
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|