agregado procesos y bd clases
This commit is contained in:
70
bdAsegasa/Extensiones/expedientessiniestros_eiac.cs
Normal file
70
bdAsegasa/Extensiones/expedientessiniestros_eiac.cs
Normal file
@@ -0,0 +1,70 @@
|
||||
using System;
|
||||
|
||||
namespace bdAsegasa.db
|
||||
{
|
||||
public partial class expedientessiniestros_eiac
|
||||
{
|
||||
public static int ObtieneEstadoExpedienteV6(claves_estadoexpediente clave)
|
||||
{
|
||||
try
|
||||
{
|
||||
switch (clave)
|
||||
{
|
||||
case claves_estadoexpediente.DE:
|
||||
return (int)ClavesEstadoExpedienteEnum.DECLARADO;
|
||||
case claves_estadoexpediente.LI:
|
||||
return (int)ClavesEstadoExpedienteEnum.LIQUIDADO;
|
||||
case claves_estadoexpediente.PE:
|
||||
return (int)ClavesEstadoExpedienteEnum.PENDIENTE;
|
||||
case claves_estadoexpediente.RE:
|
||||
return (int)ClavesEstadoExpedienteEnum.REAPERTURA;
|
||||
case claves_estadoexpediente.TE:
|
||||
return (int)ClavesEstadoExpedienteEnum.TERMINADO;
|
||||
default:
|
||||
return (int)ClavesEstadoExpedienteEnum.DESCONOCIDA;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
return (int)ClavesEstadoExpedienteEnum.DESCONOCIDA;
|
||||
}
|
||||
}
|
||||
|
||||
public enum ClavesEstadoExpedienteEnum : int
|
||||
{
|
||||
DECLARADO = 1,
|
||||
LIQUIDADO = 2,
|
||||
PENDIENTE = 3,
|
||||
REAPERTURA = 4,
|
||||
TERMINADO = 5,
|
||||
DESCONOCIDA = 99
|
||||
}
|
||||
|
||||
public enum claves_estadoexpediente
|
||||
{
|
||||
|
||||
/// <remarks/>
|
||||
DE,
|
||||
|
||||
/// <remarks/>
|
||||
LI,
|
||||
|
||||
/// <remarks/>
|
||||
PE,
|
||||
|
||||
/// <remarks/>
|
||||
RE,
|
||||
|
||||
/// <remarks/>
|
||||
TE
|
||||
}
|
||||
|
||||
public string DescripcionEstadoExpediente
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((ClavesEstadoExpedienteEnum)EstadoExpediente).ToString().Replace("_", " ");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user