public AddReciboViewModel(CatalogReciboViewModel catalogReciboViewModel, USUARIO u) { this.ContB = true; this._CatalogReciboViewModel = catalogReciboViewModel; try { this._catalogItemStatusModel = new CatalogItemStatusModel(new ItemStatusDataMapper()); this.ActualUser = u; } catch (ArgumentException ae) { ; } this.init(); }
public CatalogItemStatusViewModel() { try { IDataMapper dataMapper = new ItemStatusDataMapper(); this._catalogItemStatusModel = new CatalogItemStatusModel(dataMapper); } catch (ArgumentException a) { ; } catch (Exception ex) { throw ex; } }
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; } }
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; } }
public void CatalogItemStatusModelConstructorTest() { IDataMapper dataMapper = null; // TODO: Inicializar en un valor adecuado CatalogItemStatusModel target = new CatalogItemStatusModel(dataMapper); }