public EntityTiendaPaginacion (KeyTienda oKey, String oNombreTienda, String oDireccion, String oIdDistrito, String oIdProvincia, String oIdRegion, String oNombreDistrito, String oNombreProvincia, String oNombreDepartamento, String oReferencia, Int32 oEstado, String oEstadoNombre, EntityPaginacion oEntityPaginacion) : base(oKey, oNombreTienda, oDireccion, oIdDistrito, oIdProvincia, oIdRegion, oReferencia, oEstado) { this.entityPaginacion = oEntityPaginacion; this.nombreDistrito = oNombreDistrito; this.nombreProvincia = oNombreProvincia; this.nombreDepartamento = oNombreDepartamento; }
public EntityTienda SelectByKey(KeyTienda oKeyTienda) { try { return(TiendaApp.SelectByKey(oKeyTienda)); } catch (Exception) { throw new FaultException("Error al seleccionar Tiendas"); } }
public EntityTienda SelectByKey(KeyTienda oKeyTienda) { try { return(TiendaService.SelectByKey(oKeyTienda)); } catch (Exception ex) { throw ex; } }
public EntityTienda SelectByKey(KeyTienda oKeyTienda) { try { CTransaction oCTransaction = CTransaction.Empty; return(Repo.SelectByKey(oKeyTienda, oCTransaction)); } catch (Exception ex) { throw ex; } }
public EntityTienda SelectByKey(KeyTienda okey, CTransaction oCTransaction) { try { DataTiendaRepository data = new DataTiendaRepository(EntityTienda.Empty, "tienda"); return(data.SelectByKey(okey, oCTransaction)); } catch (Exception ex) { throw ex; } }
public EntityTienda SelectByKey(KeyTienda okey, CTransaction oCTransaction) { DataProcedure run = new DataProcedure(); run.CollectionParams.AddInputParameter("CodTienda", okey.CodTienda); using (IDataReader reader = run.ExecuteReader(oCTransaction, Procedimientos.Tienda_Select)) { if (reader.Read()) { return(EntityTienda.Create(reader)); } } return(EntityTienda.Empty); }
public EntityTienda (KeyTienda oKey, String oNombreTienda, String oDireccion, String oIdDistrito, String oIdProvincia, String oIdRegion, String oReferencia, Int32 oEstado ) { this.key = oKey; this.nombreTienda = oNombreTienda; this.direccion = oDireccion; this.idDistrito = oIdDistrito; this.idProvincia = oIdProvincia; this.idRegion = oIdRegion; this.referencia = oReferencia; this.estado = oEstado; }
public ActionResult Edit(KeyTienda oKey) { TiendaServicesController oServices = new TiendaServicesController(); UbigeoServicesController oUbigeoServices = new UbigeoServicesController(); UsuarioServicesController oUsuarioServices = new UsuarioServicesController(); TiendaViewModel oTiendaViewModel = new TiendaViewModel(); EntityTienda oEntityTienda = oServices.SelectByKey(oKey); oTiendaViewModel.EntityTienda = oEntityTienda; if (String.IsNullOrEmpty(oEntityTienda.Key.CodTienda)) { oTiendaViewModel.ListDepartamento = oUbigeoServices.SelectDepartamento (new EntityDepartamento { Key = new KeyDepartamento { IdDepartamento = Constantes.CadenaVacio }, Estado = Constantes.Activo }); oTiendaViewModel.ListProvincia = oUbigeoServices.SelectProvincia (new EntityProvincia { Key = new KeyProvincia { IdDepartamento = Constantes.CadenaVacio, IdProvincia = Constantes.CadenaSeleccione }, Estado = Constantes.Activo }); oTiendaViewModel.ListDistrito = oUbigeoServices.SelectDistrito (new EntityDistrito { Key = new KeyDistrito { IdDepartamento = Constantes.CadenaVacio, IdProvincia = Constantes.CadenaSeleccione, IdDistrito = Constantes.CadenaSeleccione }, Estado = Constantes.Activo }); } else { oTiendaViewModel.ListDepartamento = oUbigeoServices.SelectDepartamento (new EntityDepartamento { Key = new KeyDepartamento { IdDepartamento = oTiendaViewModel.EntityTienda.IdRegion }, Estado = Constantes.Activo }); oTiendaViewModel.ListProvincia = oUbigeoServices.SelectProvincia (new EntityProvincia { Key = new KeyProvincia { IdDepartamento = oTiendaViewModel.EntityTienda.IdRegion, IdProvincia = oTiendaViewModel.EntityTienda.IdProvincia }, Estado = Constantes.Activo }); oTiendaViewModel.ListDistrito = oUbigeoServices.SelectDistrito (new EntityDistrito { Key = new KeyDistrito { IdDepartamento = oTiendaViewModel.EntityTienda.IdRegion, IdProvincia = oTiendaViewModel.EntityTienda.IdProvincia, IdDistrito = oTiendaViewModel.EntityTienda.IdDistrito }, Estado = Constantes.Activo }); } return(PartialView(Constantes.TiendaEdit, oTiendaViewModel)); }
public ActionResult InnerEdit(KeyTienda key) { return(Edit(key)); }