Version OScar

This commit is contained in:
Jorge Luis caudillo esparza
2026-04-24 07:54:31 -07:00
parent 8e3df951b3
commit 83acc6b4f1
3780 changed files with 7042960 additions and 0 deletions

View File

@@ -0,0 +1,170 @@
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Threading.Tasks;
namespace SIGAPI.Models.Sistema
{
public class Empresa
{
public long CveEmpresa { get; set; }
public string NombreEmpresa { get; set; }
public string NombreCorto { get; set; }
public string Direccion { get; set; }
public string NoExt { get; set; }
public string NoInt { get; set; }
public string Colonia { get; set; }
public string Ciudad { get; set; }
public string Estado { get; set; }
public long CP { get; set; }
public string RFC { get; set; }
public string CURP { get; set; }
public string RegistroPatronal { get; set; }
public string Telefono { get; set; }
public string Contacto { get; set; }
public string Mail { get; set; }
public string TipoFacturacion { get; set; }
public string ContraseñaKey { get; set; }
public string ArchivoKey { get; set; }
public string ArchivoCer { get; set; }
public string ArchivoPfx { get; set; }
public string BIUsuario { get; set; }
public string BIContraseña { get; set; }
public string Banner { get; set; }
public bool FacturaProduccion { get; set; }
public DateTime FechaIng { get; set; }
public long CveUsuario { get; set; }
public string SendMail { get; set; }
public string SendMailPassword { get; set; }
public string SendMailServer { get; set; }
public int SendMailPuerto { get; set; }
public bool SendMailSSL { get; set; }
public string Usuario { get; set; }
public string MostrarRetIVA { get; set; }
public long EjercicioActual { get; set; }
public long PeriodoActual { get; set; }
public bool GralSoloProyecto { get; set; }
public long MetodoOC { get; set; }
public long CveMetodoInventario { get; set; }
public string RequiereCentroCostos { get; set; }
public string EmpresaEncabezado { get; set; }
public long GrupoEmpresa { get; set; }
public string Extension { get; set; }
public bool EsComercializadora { get; set; }
public string BaseDatosNombre { get; set; } = "Ventas";
public string AreaGeografica { get; set; }
public long CvePAC { get; set; }
public long CveRegimenFiscal { get; set; }
public long Tipo_CentroCosto { get; set; }
public string MostrarRetISR { get; set; }
public string Regimen { get; set; }
public string CIEC { get; set; }
public string Localidad { get; set; }
public long IdCuentaOtrosIngresos { get; set; }
public long RegistroCompleto { get; set; }
public decimal Importe { get; set; }
public long CveMetodoPago { get; set; }
public string CodigoRegimenFiscal { get; set; }
public string EstatusFacturacion { get; set; }
public string Estatus { get; set; }
public string UsaContabilidad { get; set; }
public string UsaContabilidadSIG { get; set; }
public string UsaBancos { get; set; }
public string UsaVentas { get; set; }
public string UsaCompras { get; set; }
public string UsaCxC { get; set; }
public string UsaInventarios { get; set; }
public string UsaRH { get; set; }
public string UsaNomina { get; set; }
public string UsaOS { get; set; }
public string UsaAC { get; set; }
public string UsaAF { get; set; }
public string UsaArmonizacion { get; set; }
public string BDContPAQi { get; set; }
public string ServerContPAQi { get; set; }
public string UsrContPAQi { get; set; }
public string PwdContPAQi { get; set; }
public string Buzon_Mail { get; set; }
public string Buzon_Server { get; set; }
public long Buzon_Puerto { get; set; }
public bool Buzon_SSL { get; set; }
public string Buzon_USR { get; set; }
public string Buzon_PWD { get; set; }
public string Buzon_Tipo { get; set; }
public string Soporte_Mail { get; set; }
public string Soporte_Server { get; set; }
public long Soporte_Puerto { get; set; }
public bool Soporte_SSL { get; set; }
public string Soporte_USR { get; set; }
public string Soporte_PWD { get; set; }
public string Soporte_Tipo { get; set; }
public long Timbres { get; set; }
public long IdCuentaIVAxTrasladar { get; set; }
public long IdCuentaIVATrasladado { get; set; }
public long IdCuentaPerdidaCambiaria { get; set; }
public long IdCuentaGananciaCambiaria { get; set; }
public long CveCuentaIVAxTrasladar { get; set; }
public long CveCuentaIVATrasladado { get; set; }
public long CveCuentaPerdidaCambiaria { get; set; }
public long CveCuentaGananciaCambiaria { get; set; }
public long ContaContabilizacionNC { get; set; }
public long PV_TerminalTipo { get; set; }
public string PlantillaMailVenta { get; set; }
public string AsuntoPlantillaMailVenta { get; set; }
public long IdCuentaIVAxAcreditar { get; set; }
public long IdCuentaIVAAcreditable { get; set; }
public long IdCuentaRetIVACirculacion { get; set; }
public long IdCuentaRetISRCirculacion { get; set; }
public long IdCuentaDSV { get; set; }
public long IdCuentaImpuestosLocales { get; set; }
public long IdCtaProveedor { get; set; }
public long IdCtaCliente { get; set; }
public long IdCtaDeudores { get; set; }
public long IdCtaAcreedores { get; set; }
public long IdCtaDocXPagar { get; set; }
public long IdCtaAnticipoCliente { get; set; }
public long IdCtaAnticipoProveedores { get; set; }
public long CveCuentaIVAxAcreditar { get; set; }
public long CveCuentaIVAAcreditable { get; set; }
public long CveCuentaRetIVACirculacion { get; set; }
public long CveCuentaRetISRCirculacion { get; set; }
public long CveCuentaDSV { get; set; }
public long CveCuentaImpuestosLocales { get; set; }
public long CveCuentaIEPSxAcreditar { get; set; }
public long CveCuentaIEPSAcreditable { get; set; }
public long CveCuentaIEPSxTrasladar { get; set; }
public long CveCuentaIEPSTrasladado { get; set; }
public long IdCuentaIEPSxAcreditar { get; set; }
public long IdCuentaIEPSAcreditable { get; set; }
public long IdCuentaIEPSxTrasladar { get; set; }
public long IdCuentaIEPSTrasladado { get; set; }
public decimal PorDepreciacion { get; set; }
public long CvePlataforma { get; set; }
public long CveDistribuidor { get; set; }
public long DiasPermitidos { get; set; }
public bool AsientoContableComprasContado { get; set; }
public long TipoContabilizacion { get; set; }
public long TipoContabilidad { get; set; }
public bool DefaultAsistencias { get; set; }
public long FormatoImpresion { get; set; }
public long EsPersonaFisica { get; set; }
public bool UsaCRM { get; set; }
public bool AplicaDatosTecnicosCRM { get; set; }
public long CveEncuestaCRM { get; set; }
public string FielPassword { get; set; }
public string FielPFX { get; set; }
private HybridDictionary Funcionalidades;
// HybridDictionary, no se puede serializar, por eso no es propiedad, y se utilizar el setfuncionalidad, para asignarle valor
public void SetFuncionalidades(HybridDictionary HD)
{
Funcionalidades = HD;
}
public string Funcionalidad(int CveFuncionalidad)
{
return Funcionalidades != null && Funcionalidades[CveFuncionalidad] != null ? Funcionalidades[CveFuncionalidad].ToString() : "";
}
}
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SIGAPI.Models.Sistema
{
public class EmpresaFuncionalidad
{
public long CveEmpresa { get; set; }
public long CveFuncionalidad { get; set; }
public string Valor { get; set; }
public string Descripción { get; set; }
public string Funcionalidad { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SIGAPI.Models.Sistema
{
public class Funcionalidad
{
public int CveFuncionalidad { get; set; }
public string Valor { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SIGAPI.Models.Sistema.Request
{
public class RequestCambiarEmpresa
{
public long CveEmpresa { get; set; }
public long CveToken { get; set; }
public long CveUsuario { get; set; }
public long CvePlataforma { get; set; }
}
}

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SIGAPI.Models.RH.Request
{
public class RequestCultivoCuadroDetalle
{
#region Propiedades
public int cveCultivoCuadro { get; set; }
public int cveTemporada { get; set; }
public int cveCiclo { get; set; }
public int cveSubProyecto { get; set; }
public int cveCultivo { get; set; }
public int cveCuadro { get; set; }
public int cveEmpresa { get; set; }
#endregion
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SIGAPI.Models.Sistema.Request
{
public class RequestEmpresa
{
public long CveEmpresa { get; set; }
public string Empresa { get; set; }
public string RFC { get; set; }
public string Telefono { get; set; }
public string Contacto { get; set; }
}
}

View File

@@ -0,0 +1,20 @@
using Newtonsoft.Json;
using System;
namespace SIGAPI
{
public class RequestLogin
{
public string UserName { get; set; }
public string Password { get; set; }
public int CveEmpresa { get; set; }
public int CvePlataforma { get; set; }
public RequestLogin()
{
CveEmpresa = -1;
CvePlataforma = 4;
}
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SIGAPI.Models.Sistema.Request
{
public class RequestRefreshToken
{
public long CveToken { get; set; }
public string AccessToken { get; set; }
public string RefreshToken { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SIGAPI.Models.Sistema.Response
{
public class ResponseCambiarEmpresa
{
public long CveToken { get; set; }
public string AccessToken { get; set; }
public string RefreshToken { get; set; }
public List<UsuarioModulo> UsuarioModulos { get; set; }
public List<UsuarioEmpresa> UsuarioEmpresas { get; set; }
public List<EmpresaFuncionalidad> EmpresaFuncionalidades { get; set; }
}
}

View File

@@ -0,0 +1,31 @@
using Newtonsoft.Json;
using SIGAPI.Models.Sistema;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Threading.Tasks;
namespace SIGAPI.Models.Request
{
public class ResponseLogin
{
public long CveUsuario { get; set; }
public string Usuario { get; set; }
public string Nombre { get; set; }
public string Correo { get; set; }
public long CveEmpresa { get; set; }
public string Empresa { get; set; }
public long CvePlataforma { get; set; }
public bool Estatus { get; set; }
public long CveRol { get; set; }
public string Rol { get; set; }
public long CveToken { get; set; }
public string AccessToken { get; set; }
public string RefreshToken { get; set; }
public List<UsuarioModulo> UsuarioModulos { get; set; }
public List<UsuarioEmpresa> UsuarioEmpresas { get; set; }
public List<EmpresaFuncionalidad> EmpresaFuncionalidades { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SIGAPI.Models.Sistema.Response
{
public class ResponseRefreshToken
{
public string RefreshToken { get; set; }
public string AccessToken { get; set; }
}
}

View File

@@ -0,0 +1,126 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SIGAPI.Models.Sistema.Response
{
public class UserModuloModel
{
public UserModuloModel()
{
this.cveModulo = -1;
}
private int cveModulo;
public int CveModulo
{
get { return cveModulo; }
set { cveModulo = value; }
}
private string modulo;
public string Modulo
{
get { return modulo; }
set { modulo = value; }
}
private string liga;
public string Liga
{
get { return liga; }
set { liga = value; }
}
private int orden;
public int Orden
{
get { return orden; }
set { orden = value; }
}
private string estilo;
public string Estilo
{
get { return estilo; }
set { estilo = value; }
}
private int cveModuloPadre;
public int CveModuloPadre
{
get { return cveModuloPadre; }
set { cveModuloPadre = value; }
}
private int isAngular;
public int IsAngular
{
get { return isAngular; }
set { isAngular = value; }
}
}
public class Menu
{
private List<ItemMenu> items;
public List<ItemMenu> Items
{
get { return items; }
set { items = value; }
}
}
public class ItemMenu
{
private string title;
public string Title
{
get { return title; }
set { title = value; }
}
private string page;
public string Page
{
get { return page; }
set { page = value; }
}
private string icon;
public string Icon
{
get { return icon; }
set { icon = value; }
}
private int isAngular;
public int IsAngular
{
get { return isAngular; }
set { isAngular = value; }
}
private List<ItemMenu> submenu;
public List<ItemMenu> Submenu
{
get { return submenu; }
set { submenu = value; }
}
// cosas que no estan en db pero se pueden usar en el front
private bool root;
public bool Root
{
get { return root; }
set { root = value; }
}
private string bullet;
public string Bullet
{
get { return bullet; }
set { bullet = value; }
}
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SIGAPI.Models.Sistema.Response
{
public class UsuarioComboModel
{
public int cveUsuario { get; set; }
public string nombre { get; set; }
}
}

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SIGAPI.Models.Sistema
{
public class Token
{
public long CveToken { get; set; }
public long CveUsuario { get; set; }
public long CveEmpresa { get; set; }
public long CvePlataforma { get; set; }
public string Usuario { get; set; }
public string Refreshtoken { get; set; }
public string AccessToken { get; set; }
}
}

View File

@@ -0,0 +1,40 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SIGAPI.Models.Sistema
{
public class UsuarioEmpresa
{
public long Tipo_CentroCosto { get; set; }
public long CveEmpresa { get; set; }
public string Empresa { get; set; }
public long CveUsuario { get; set; }
public string Usuario { get; set; }
public string Contraseña { get; set; }
public long CveCliente { get; set; }
public string Cliente { get; set; }
public long CveProveedor { get; set; }
public string Proveedor { get; set; }
public DateTime FechaUltimoAcceso { get; set; }
public string Nombre { get; set; }
public long CveRol { get; set; }
public string Rol { get; set; }
public string Telefono { get; set; }
public string Correo { get; set; }
public bool Estatus { get; set; }
public DateTime FechaIng { get; set; }
public bool EsSupervisorRH { get; set; }
public long CveSupervisa { get; set; }
public long CveAutoriza { get; set; }
public long CvePersonal { get; set; }
public long CveVendedor { get; set; }
public long CvePlataforma { get; set; }
public long ComprasProgramadas { get; set; }
public long ProveedoresResponsables { get; set; }
public long CveSubProyecto { get; set; }
public long CveUsuarioIng { get; set; }
public long CveEncuestaCRM { get; set; }
}
}

View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SIGAPI.Models.Sistema
{
public class UsuarioModulo
{
public long CveModulo { get; set; }
public string Modulo { get; set; }
public long CveUsuario { get; set; }
public string Agrupacion { get; set; }
public string Descripcion { get; set; }
public string Liga { get; set; }
public long CveModuloAcceso { get; set; }
public long CveProcesoAcceso { get; set; }
public long Permitir { get; set; }
public string Estilo { get; set; }
public string Padre { get; set; }
public long CvePadre { get; set; }
public string Usuario { get; set; }
public long CveRol { get; set; }
public string Rol { get; set; }
public long CvePlataforma { get; set; }
public string Parametros { get; set; }
}
}