agregado procesos y bd clases
This commit is contained in:
44
bdAsegasa/Extensiones/seriesfacturas.cs
Normal file
44
bdAsegasa/Extensiones/seriesfacturas.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user