public EntityEmpleado Update(EntityEmpleado oEntityEmployee) { try { return(EmployeeApp.Update(oEntityEmployee)); } catch (Exception) { throw new FaultException("Error al actualizar empleados"); } }
public EntityEmpleado Delete(EntityEmpleado oEntityEmployee) { try { return(EmployeeApp.Delete(oEntityEmployee)); } catch (Exception) { throw new FaultException("Error al eliminar empleados"); } }
public IList <EntityEmpleado> Select(EntityEmpleado oEntityEmployee) { try { return(EmployeeApp.Select(oEntityEmployee)); } catch (Exception) { throw new FaultException("Error al seleccionar empleados"); } }
public EntityEmpleado Insert(EntityEmpleado oEntityEmployee) { try { return(EmployeeApp.Insert(oEntityEmployee)); } catch (Exception) { throw new FaultException("Error al insertar empleados"); } }
public EntityEmpleado Update(EntityEmpleado oEntityEmpleado) { try { return(EmpleadoService.Update(oEntityEmpleado)); } catch (Exception ex) { throw ex; } }
public EntityEmpleado Insert(EntityEmpleado oEntityEmpleado) { try { return(EmpleadoService.Insert(oEntityEmpleado)); } catch (Exception ex) { throw ex; } }
public IList <EntityEmpleado> Select(EntityEmpleado oEntityEmpleado) { try { return(EmpleadoService.Select(oEntityEmpleado)); } catch (Exception ex) { throw ex; } }
public EntityEmpleado Insert(EntityEmpleado oEntityEmployee) { try { CTransaction oCTransaction = CTransaction.Empty; return(Repo.Insert(oEntityEmployee, oCTransaction)); } catch (Exception ex) { throw ex; } }
public IList <EntityEmpleado> Select(EntityEmpleado oEntityEmployee) { try { CTransaction oCTransaction = CTransaction.Empty; return(Repo.Select(oEntityEmployee, oCTransaction)); } catch (Exception ex) { throw ex; } }
public IList <EntityEmpleado> Select(EntityEmpleado oEntityEmployee, CTransaction oCTransaction) { try { DataEmpleadoRepository data = new DataEmpleadoRepository(oEntityEmployee, "empleado"); return(data.Select(oCTransaction)); } catch (Exception ex) { throw ex; } }
public EntityEmpleado Delete(EntityEmpleado entity, CTransaction transaction) { try { DataEmpleadoRepository data = new DataEmpleadoRepository(entity, "empleado"); entity = data.Delete(transaction); return(entity); } catch (Exception ex) { throw ex; } }
public EntityEmpleado Insert(EntityEmpleado entity, CTransaction transaction) { try { DataEmpleadoRepository data = new DataEmpleadoRepository(entity, "empleado"); entity = data.Insert(transaction); KeyEmpleado key = new KeyEmpleado(DataCreator.CreateInt32(data.CollectionParams.GetParameter("IDEmpleado").Value)); entity.Key = key; return(entity); } catch (Exception ex) { throw ex; } }
public ActionResult Edit(KeyEmpleado oKey) { EmpleadoServicesController oServices = new EmpleadoServicesController(); UsuarioServicesController oUsuarioServices = new UsuarioServicesController(); CargoServicesController oCargoServices = new CargoServicesController(); TiendaServicesController oTiendaServices = new TiendaServicesController(); EmpleadoViewModel oEmpleadoViewModel = new EmpleadoViewModel(); EntityEmpleado oEntityEmpleado = oServices.SelectByKey(oKey); oEmpleadoViewModel.ListCargo = oCargoServices.Select (new EntityCargo { Key = new KeyCargo { IDCargo = -1 }, Estado = Constantes.Activo }); oEmpleadoViewModel.ListTienda = oTiendaServices.Select (new EntityTienda { Key = new KeyTienda { CodTienda = Constantes.CadenaVacio }, Estado = Constantes.Activo }); oEmpleadoViewModel.EntityEmpleado = oEntityEmpleado; KeyUsuario oKeyUsuario = new KeyUsuario { IDUsuario = oEntityEmpleado.Key.IDEmpleado }; oEmpleadoViewModel.EntityUsuarioEmpleado = oUsuarioServices.SelectByKey(oKeyUsuario); return(PartialView(Constantes.EmpleadoUsuarioEditPV, oEmpleadoViewModel)); }