public PrecioABMViewModel() { Precio = null; CrearObraCommand = new DelegateCommand(Nuevo); CancelarCommand = new DelegateCommand(Cancelar); EditarObraCommand = new DelegateCommand(Editar, () => ObjetoNull.IsNull(Precio)).ObservesProperty(() => Precio); EliminarObraCommand = new DelegateCommand(Eliminar, () => ObjetoNull.IsNull(Precio)).ObservesProperty(() => Precio); }
public PersonaABMViewModel() { Persona = null; Buscar = new DelegateCommand(Buscando); CrearObraCommand = new DelegateCommand(Nuevo); CancelarCommand = new DelegateCommand(Cancelar); EditarObraCommand = new DelegateCommand(Editar, () => ObjetoNull.IsNull(Persona)).ObservesProperty(() => Persona); EliminarObraCommand = new DelegateCommand(Eliminar, () => ObjetoNull.IsNull(Persona)).ObservesProperty(() => Persona); }
public MaterialABMViewModel() { Material = null; BuscarImagenCommand = new DelegateCommand(BuscarImagen); CancelarCommand = new DelegateCommand(Cancelar); CrearObraCommand = new DelegateCommand(Nuevo); EditarObraCommand = new DelegateCommand(Editar, () => ObjetoNull.IsNull(Material)).ObservesProperty(() => Material); EliminarObraCommand = new DelegateCommand(Eliminar, () => ObjetoNull.IsNull(Material)).ObservesProperty(() => Material); }
public UsuarioViewModel() { Usuario = null; Buscar = new DelegateCommand(Buscando); CrearObraCommand = new DelegateCommand(Nuevo); CancelarCommand = new DelegateCommand(Cancelar); EditarObraCommand = new DelegateCommand(Editar, () => ObjetoNull.IsNull(Usuario)).ObservesProperty(() => Usuario); EliminarObraCommand = new DelegateCommand(Eliminar, () => ObjetoNull.IsNull(Usuario)).ObservesProperty(() => Usuario); }
public DescripcionTareaDtoABMViewModel() { Buscar = new DelegateCommand(Buscando); DescripcionTarea = null; CrearObraCommand = new DelegateCommand(Nuevo); CancelarCommand = new DelegateCommand(Cancelar); EditarObraCommand = new DelegateCommand(Editar, () => ObjetoNull.IsNull(DescripcionTarea)).ObservesProperty(() => DescripcionTarea); EliminarObraCommand = new DelegateCommand(Eliminar, () => ObjetoNull.IsNull(DescripcionTarea)).ObservesProperty(() => DescripcionTarea); }
public EmpleadoABMViewModel() { Buscar = new DelegateCommand(Buscando); Empleado = null; CrearObraCommand = new DelegateCommand(Nuevo); CancelarCommand = new DelegateCommand(Cancelar); EditarObraCommand = new DelegateCommand(Editar, () => ObjetoNull.IsNull(Empleado)).ObservesProperty(() => Empleado); EliminarObraCommand = new DelegateCommand(Eliminar, () => ObjetoNull.IsNull(Empleado)).ObservesProperty(() => Empleado); }
public StockABMViewModel() { Stock = null; Buscar = new DelegateCommand(Buscando); CrearObraCommand = new DelegateCommand(Nuevo); CancelarCommand = new DelegateCommand(Cancelar); EditarObraCommand = new DelegateCommand(Editar, () => ObjetoNull.IsNull(Stock)).ObservesProperty(() => Stock); EliminarObraCommand = new DelegateCommand(Eliminar, () => ObjetoNull.IsNull(Stock)).ObservesProperty(() => Stock); }
public TipoGastoABMViewModel() { TipoGasto = null; Buscar = new DelegateCommand(Buscando); CrearObraCommand = new DelegateCommand(Nuevo); CancelarCommand = new DelegateCommand(Cancelar); EditarObraCommand = new DelegateCommand(Editar, () => ObjetoNull.IsNull(TipoGasto)).ObservesProperty(() => TipoGasto); EliminarObraCommand = new DelegateCommand(Eliminar, () => ObjetoNull.IsNull(TipoGasto)).ObservesProperty(() => TipoGasto); }
public SalidaMaterialViewModel(IEventAggregator eventAggregator) { this.eventAggregator = eventAggregator; eventAggregator.GetEvent <ObraAgreggator>().Subscribe(ObtenerObra); eventAggregator.GetEvent <SalidaMaterialAgreggator>().Subscribe(ObtenerIngreso); CrearObraCommand = new DelegateCommand(Nuevo); CancelarCommand = new DelegateCommand(Cancelar); EditarObraCommand = new DelegateCommand(Editar, () => ObjetoNull.IsNull(SalidaMaterial)).ObservesProperty(() => SalidaMaterial); EliminarObraCommand = new DelegateCommand(Eliminar, () => ObjetoNull.IsNull(SalidaMaterial)).ObservesProperty(() => SalidaMaterial); }
public ContratistaABMViewModel() { Contratista = null; Buscar = new DelegateCommand(Buscando); BuscarImagenCommand = new DelegateCommand(BuscarImagen); CrearObraCommand = new DelegateCommand(Nuevo); CancelarCommand = new DelegateCommand(Cancelar); EditarObraCommand = new DelegateCommand(Editar, () => ObjetoNull.IsNull(Contratista)).ObservesProperty(() => Contratista); EliminarObraCommand = new DelegateCommand(Eliminar, () => ObjetoNull.IsNull(Contratista)).ObservesProperty(() => Contratista); }
public BancoABMViewModel() { Banco = null; Buscar = new DelegateCommand(Buscando); CrearObraCommand = new DelegateCommand(Nuevo); CancelarCommand = new DelegateCommand(Cancelar); EditarObraCommand = new DelegateCommand(Editar, () => ObjetoNull.IsNull(Banco)).ObservesProperty(() => Banco); EliminarObraCommand = new DelegateCommand(Eliminar, () => ObjetoNull.IsNull(Banco)).ObservesProperty(() => Banco); BuscarImagenCommand = new DelegateCommand(BuscarImagen); }
public EmpleadoObraViewModel(IEventAggregator eventAggregator) { this.eventAggregator = eventAggregator; eventAggregator.GetEvent <ObraAgreggator>().Subscribe(ObtenerObra); CrearObraCommand = new DelegateCommand(Nuevo); CancelarCommand = new DelegateCommand(Cancelar); eventAggregator.GetEvent <PubSubEvent <Visibility> >().Subscribe(Ocultar); eventAggregator.GetEvent <PubSubEvent <ObraEmpleadoDto> >().Subscribe(ObtenerEmpleado); EliminarObraCommand = new DelegateCommand(Eliminar, () => ObjetoNull.IsNull(Empleado)).ObservesProperty(() => Empleado); }
public PresupuestoInicioViewModel() { Presupuesto = null; CrearObraCommand = new DelegateCommand(Nuevo); CancelarCommand = new DelegateCommand(Cancelar); EditarObraCommand = new DelegateCommand(Editar, () => ObjetoNull.IsNull(Presupuesto)).ObservesProperty(() => Presupuesto); EliminarObraCommand = new DelegateCommand(Eliminar, () => ObjetoNull.IsNull(Presupuesto)).ObservesProperty(() => Presupuesto); CancelarPresupuesto = new DelegateCommand <PresupuestoDto>(CancelarPres); AprobarPresupuesto = new DelegateCommand(AprobarPres); PendientePrespuesto = new DelegateCommand <PresupuestoDto>(PendientePres); }
public JornalViewModel(IEventAggregator eventAggregator, IRegionManager regionManager) { this.regionManager = regionManager; this.eventAggregator = eventAggregator; eventAggregator.GetEvent <ObraAgreggator>().Subscribe(ObtenerObra); CrearObraCommand = new DelegateCommand(Nuevo); CancelarCommand = new DelegateCommand(Cancelar); DoubleClickCommand = new DelegateCommand <JornalDto>(Prueba); eventAggregator.GetEvent <PubSubEvent <Visibility> >().Subscribe(Ocultar); eventAggregator.GetEvent <PubSubEvent <JornalDto> >().Subscribe(ObtenerJornal); EditarObraCommand = new DelegateCommand(Editar, () => ObjetoNull.IsNull(Jornal)).ObservesProperty(() => Jornal); EliminarObraCommand = new DelegateCommand(Eliminar, () => ObjetoNull.IsNull(Jornal)).ObservesProperty(() => Jornal); }
public CompraInsumosViewModel(IRegionManager regionManager) { this.regionManager = regionManager; Disminuir = new DelegateCommand(DisminuirMaterial); Buscar = new DelegateCommand(Buscando); Salir = new DelegateCommand(SalirCompra); CrearCommand = new DelegateCommand(GenerarComprobante); Agregar = new DelegateCommand(AgregarProducto, () => ObjetoNull.IsNull(Material)).ObservesProperty(() => Material); Comprar = new DelegateCommand(ComprarProducto); DetallesComprobante = new ObservableCollection <DetalleComprobanteDto>(); Material = null; Comprobante = new ComprobanteCompraDto(); QuitarProducto = new DelegateCommand(Quitar); }
public TareasViewModel(IEventAggregator eventAggregator) { this.eventAggregator = eventAggregator; eventAggregator.GetEvent <ObraAgreggator>().Subscribe(ObtenerObra); CrearObraCommand = new DelegateCommand(Nuevo); CancelarCommand = new DelegateCommand(Cancelar); eventAggregator.GetEvent <PubSubEvent <Visibility> >().Subscribe(Ocultar); eventAggregator.GetEvent <PubSubEvent <TareaDto> >().Subscribe(ObtenerTarea); eventAggregator.GetEvent <PubSubEvent <TimeSpan> >().Subscribe(FinalizarTareaPut); EditarObraCommand = new DelegateCommand(Editar, () => ObjetoNull.IsNull(Tarea)).ObservesProperty(() => Tarea); EliminarObraCommand = new DelegateCommand(Eliminar, () => ObjetoNull.IsNull(Tarea)).ObservesProperty(() => Tarea); EjecutarTareaCommand = new DelegateCommand(EjecutarTarea, () => ObjetoNull.IsNull(Tarea)).ObservesProperty(() => Tarea); PendienteTareaCommand = new DelegateCommand(PendienteTarea, () => ObjetoNull.IsNull(Tarea)).ObservesProperty(() => Tarea); FinalizarTareaCommand = new DelegateCommand(FinalizarTarea, () => ObjetoNull.IsNull(Tarea)).ObservesProperty(() => Tarea); }
public PresupuestoDetalleViewModel(IEventAggregator eventAggregator) { this.eventAggregator = eventAggregator; Gasto = null; TextChanged = new DelegateCommand <string>(PasandoTexto); ImpuestoChanged = new DelegateCommand <string>(ImpuestoAlMando); BeneficioChanged = new DelegateCommand <string>(BeneficioTexto); CrearObraCommand = new DelegateCommand(Nuevo); CargarPresupusto = new DelegateCommand(PresupuestoPut); CancelarCommand = new DelegateCommand(Cancelar); EditarObraCommand = new DelegateCommand(Editar, () => ObjetoNull.IsNull(Gasto)).ObservesProperty(() => Gasto); EliminarObraCommand = new DelegateCommand(Eliminar, () => ObjetoNull.IsNull(Gasto)).ObservesProperty(() => Gasto); AprobarPresupuesto = new DelegateCommand(Aprobar); PendientePresupuesto = new DelegateCommand(Pendiente); CancelarPresupuesto = new DelegateCommand(CancelarPresu); }
public JornalDetalleViewModel() { Asistencia = null; JornalMaterial = null; EditarContratistaCommand = new DelegateCommand(EditarContratista, () => ObjetoNull.IsNull(AsistenciaContratista)).ObservesProperty(() => AsistenciaContratista); CrearContratistaCommand = new DelegateCommand(CrearContratista); CrearContratistaNuevo = new DelegateCommand(AbrirPopUpContratista); CancelarContratistaCommand = new DelegateCommand(CancelarContratista); EliminarContratistaCommand = new DelegateCommand(EliminarContratista, () => ObjetoNull.IsNull(AsistenciaContratista)).ObservesProperty(() => AsistenciaContratista); EditarAsistenciaCommand = new DelegateCommand(EditarAsistencia, () => ObjetoNull.IsNull(Asistencia)).ObservesProperty(() => Asistencia); EliminarAsistenciaCommand = new DelegateCommand(EliminarAsistencia, () => ObjetoNull.IsNull(Asistencia)).ObservesProperty(() => Asistencia); CancelarAsistenciaCommand = new DelegateCommand(CancelarAsistencia); CrearCommando = new DelegateCommand(NuevoAsistencia); CrearAsistenciaCommand = new DelegateCommand(CrearAsistencia); CrearObraCommand = new DelegateCommand(Nuevo); CancelarCommand = new DelegateCommand(Cancelar); EditarObraCommand = new DelegateCommand(Editar, () => ObjetoNull.IsNull(JornalMaterial)).ObservesProperty(() => JornalMaterial); EliminarObraCommand = new DelegateCommand(Eliminar, () => ObjetoNull.IsNull(JornalMaterial)).ObservesProperty(() => JornalMaterial); }