public EntityCargo( Keys.KeyCargo okey, String oNombreCargo, String oDescripcion, Int32 oEstado) { this.key = okey; this.nombreCargo = oNombreCargo; this.descripcion = oDescripcion; this.estado = oEstado; }
public EntityCargo SelectByKey(KeyCargo oKeyCargo) { try { return(CargoService.SelectByKey(oKeyCargo)); } catch (Exception ex) { throw ex; } }
public EntityCargo SelectByKey(KeyCargo oKeyCargo) { try { return(CargoApp.SelectByKey(oKeyCargo)); } catch (Exception) { throw new FaultException("Error al seleccionar Cargos"); } }
public EntityCargo SelectByKey(KeyCargo okey, CTransaction oCTransaction) { try { DataCargoRepository data = new DataCargoRepository(EntityCargo.Empty, "cargo"); return(data.SelectByKey(okey, oCTransaction)); } catch (Exception ex) { throw ex; } }
public EntityCargo SelectByKey(KeyCargo oKeyCargo) { try { CTransaction oCTransaction = CTransaction.Empty; return(Repo.SelectByKey(oKeyCargo, oCTransaction)); } catch (Exception ex) { throw ex; } }
public ActionResult Edit(KeyCargo oKey) { CargoServicesController oServices = new CargoServicesController(); UsuarioServicesController oUsuarioServices = new UsuarioServicesController(); CargoViewModel oCargoViewModel = new CargoViewModel(); EntityCargo oEntityCargo = oServices.SelectByKey(oKey); oCargoViewModel.EntityCargo = oEntityCargo; return(PartialView(Constantes.CargoEdit, oCargoViewModel)); }
public EntityCargo SelectByKey(KeyCargo okey, CTransaction oCTransaction) { DataProcedure run = new DataProcedure(); run.CollectionParams.AddInputParameter("IDCargo", okey.IDCargo); using (IDataReader reader = run.ExecuteReader(oCTransaction, Procedimientos.Cargo_Select)) { if (reader.Read()) { return(EntityCargo.Create(reader)); } } return(EntityCargo.Empty); }
public ActionResult InnerEdit(KeyCargo key) { return(Edit(key)); }