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);
 }
示例#2
0
 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);
 }
示例#3
0
 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);
 }
示例#4
0
 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);
 }
示例#5
0
 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);
 }
示例#6
0
 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);
 }
示例#7
0
 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);
 }
示例#12
0
 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);
 }
示例#16
0
 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);
 }
示例#18
0
 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);
 }