Esempio n. 1
0
 public EntityCargo(
     Keys.KeyCargo okey,
     String oNombreCargo,
     String oDescripcion,
     Int32 oEstado)
 {
     this.key         = okey;
     this.nombreCargo = oNombreCargo;
     this.descripcion = oDescripcion;
     this.estado      = oEstado;
 }
Esempio n. 2
0
 public EntityCargo SelectByKey(KeyCargo oKeyCargo)
 {
     try
     {
         return(CargoService.SelectByKey(oKeyCargo));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 3
0
 public EntityCargo SelectByKey(KeyCargo oKeyCargo)
 {
     try
     {
         return(CargoApp.SelectByKey(oKeyCargo));
     }
     catch (Exception)
     {
         throw new FaultException("Error al seleccionar Cargos");
     }
 }
Esempio n. 4
0
 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;
     }
 }
Esempio n. 5
0
 public EntityCargo SelectByKey(KeyCargo oKeyCargo)
 {
     try
     {
         CTransaction oCTransaction = CTransaction.Empty;
         return(Repo.SelectByKey(oKeyCargo, oCTransaction));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 6
0
        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));
        }
Esempio n. 7
0
        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);
        }
Esempio n. 8
0
 public ActionResult InnerEdit(KeyCargo key)
 {
     return(Edit(key));
 }