public ModifyItemViewModel()
 {
     try
     {
         this._itemModel           = new AgregarItemModel();
         this._ItemModelCollection = new ObservableCollection <AgregarItemModel>();
         this._Factura             = new FacturaCompraModel();
         this._FacturaCollection   = new ObservableCollection <FacturaCompraModel>();
         //this._articuloModel = new CatalogArticuloModel(new ArticuloDataMapper());
         //this._categoriaModel = new CatalogCategoriaModel(new CategoriaDataMapper());
         this._catalogStatus    = new CatalogItemStatusModel(new ItemStatusDataMapper());
         this._ultimoMovimiento = new ObservableCollection <UltimoMovimientoModel>();
         this._catalogPropiedad = new CatalogPropiedadModel(new PropiedadDataMapper());
     }
     catch (ArgumentException ae)
     {
         throw;
     }
 }
Exemplo n.º 2
0
        public AgregarItemViewModel(USUARIO u)
        {
            try
            {
                this.FillWithItemDetallesAnterior = true;
                this._itemModel        = new AgregarItemModel();
                this._catalogProveedor = new CatalogProveedorModel(new ProveedorDataMapper());
                if (this._catalogProveedor != null && this._catalogProveedor.Proveedor.Count > 1)
                {
                    this._itemModel.Proveedor = this._catalogProveedor.Proveedor[1];
                }

                this._catalogStatus    = new CatalogItemStatusModel(new ItemStatusDataMapper());
                this._ultimoMovimiento = new ObservableCollection <UltimoMovimientoModel>();
                this._catalogPropiedad = new CatalogPropiedadModel(new PropiedadDataMapper());
                this.ActualUser        = u;
            }
            catch (ArgumentException ae)
            {
                throw;
            }
        }