45 lines
1.0 KiB
C#
45 lines
1.0 KiB
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace bdAsegasa.db
|
|
{
|
|
public partial class seriesfacturas
|
|
{
|
|
private static List<string> _ListadoSeries;
|
|
|
|
public static List<string> ListadoSeries
|
|
{
|
|
get
|
|
{
|
|
if (_ListadoSeries == null)
|
|
{
|
|
var bd = tscgestionasegasa.NuevoContexto();
|
|
_ListadoSeries = bd.seriesfacturas.Select(x => x.Serie).ToList();
|
|
}
|
|
return _ListadoSeries;
|
|
}
|
|
}
|
|
|
|
public string SerieDescripcion
|
|
{
|
|
get
|
|
{
|
|
return this.Serie + " - " + this.Descripcion;
|
|
}
|
|
}
|
|
|
|
public string DescripcionClase
|
|
{
|
|
get
|
|
{
|
|
return ((ClaseFacturaEnum)(this.Clase)).ToString().Replace("_", " ");
|
|
}
|
|
}
|
|
|
|
public enum ClaseFacturaEnum : int
|
|
{
|
|
LIQUIDACIONES_A_AGENTES = 0
|
|
}
|
|
}
|
|
}
|