public Spartane.Core.Classes.Ubicaciones_Eventos_Empresa.Ubicaciones_Eventos_EmpresaPagingModel ListaSelAll(int startRowIndex, int maximumRows, string Where, string Order)
        {
            var padstartRowIndex = _dataProvider.GetParameter();

            padstartRowIndex.ParameterName = "startRowIndex";
            padstartRowIndex.DbType        = DbType.Int32;
            padstartRowIndex.Value         = startRowIndex;

            var padmaximumRows = _dataProvider.GetParameter();

            padmaximumRows.ParameterName = "maximumRows";
            padmaximumRows.DbType        = DbType.Int32;
            padmaximumRows.Value         = maximumRows;

            var padWhere = _dataProvider.GetParameter();

            padWhere.ParameterName = "Where";
            padWhere.DbType        = DbType.String;
            padWhere.Value         = Where;

            var padOrder = _dataProvider.GetParameter();

            padOrder.ParameterName = "Order";
            padOrder.DbType        = DbType.String;
            padOrder.Value         = Order;

            var data = _dbContext.ExecuteStoredProcedureList <Spartane.Core.Classes.StoredProcedure.SpListSelAllUbicaciones_Eventos_Empresa>("sp_ListSelAll_Ubicaciones_Eventos_Empresa", padWhere, padOrder, padstartRowIndex, padmaximumRows);

            Ubicaciones_Eventos_EmpresaPagingModel result = null;

            if (data != null)
            {
                result = new Ubicaciones_Eventos_EmpresaPagingModel
                {
                    Ubicaciones_Eventos_Empresas =
                        data.Select(m => new Spartane.Core.Classes.Ubicaciones_Eventos_Empresa.Ubicaciones_Eventos_Empresa
                    {
                        Folio = m.Ubicaciones_Eventos_Empresa_Folio
                        , Fecha_de_Registro    = m.Ubicaciones_Eventos_Empresa_Fecha_de_Registro
                        , Hora_de_Registro     = m.Ubicaciones_Eventos_Empresa_Hora_de_Registro
                        , Usuario_que_Registra = m.Ubicaciones_Eventos_Empresa_Usuario_que_Registra
                        , Usuario_que_Registra_Spartan_User = new Core.Classes.Spartan_User.Spartan_User()
                        {
                            Id_User = m.Ubicaciones_Eventos_Empresa_Usuario_que_Registra.GetValueOrDefault(), Name = m.Ubicaciones_Eventos_Empresa_Usuario_que_Registra_Name
                        }
                        , Nombre            = m.Ubicaciones_Eventos_Empresa_Nombre
                        , Descripcion       = m.Ubicaciones_Eventos_Empresa_Descripcion
                        , Cupo              = m.Ubicaciones_Eventos_Empresa_Cupo
                        , Ubicacion_externa = m.Ubicaciones_Eventos_Empresa_Ubicacion_externa
                        , Ubicacion_externa_Respuesta_Logica = new Core.Classes.Respuesta_Logica.Respuesta_Logica()
                        {
                            Clave = m.Ubicaciones_Eventos_Empresa_Ubicacion_externa.GetValueOrDefault(), Descripcion = m.Ubicaciones_Eventos_Empresa_Ubicacion_externa_Descripcion
                        }
                        , Nombre_del_Lugar = m.Ubicaciones_Eventos_Empresa_Nombre_del_Lugar
                        , Empresa          = m.Ubicaciones_Eventos_Empresa_Empresa
                        , Empresa_Empresas = new Core.Classes.Empresas.Empresas()
                        {
                            Folio = m.Ubicaciones_Eventos_Empresa_Empresa.GetValueOrDefault(), Nombre_de_la_Empresa = m.Ubicaciones_Eventos_Empresa_Empresa_Nombre_de_la_Empresa
                        }
                        , Estatus         = m.Ubicaciones_Eventos_Empresa_Estatus
                        , Estatus_Estatus = new Core.Classes.Estatus.Estatus()
                        {
                            Clave = m.Ubicaciones_Eventos_Empresa_Estatus.GetValueOrDefault(), Descripcion = m.Ubicaciones_Eventos_Empresa_Estatus_Descripcion
                        }

                        //,Id = m.Id
                    }).ToList()
                };
            }
            return(result);
        }
Example #2
0
        public Spartane.Core.Domain.Ubicaciones_Eventos_Empresa.Ubicaciones_Eventos_EmpresaPagingModel ListaSelAll(int startRowIndex, int maximumRows, string Where, string Order)
        {
            Ubicaciones_Eventos_EmpresaPagingModel result = null;

            return(result);
        }