public MovimientoGridSalidaOfficeViewModel(USUARIO u) { try { IDataMapper dataMapper = new SolicitanteDataMapper(); IDataMapper dataMapper2 = new AlmacenDataMapper(); IDataMapper dataMapper3 = new ProveedorDataMapper(); IDataMapper dataMapper4 = new ClienteDataMapper(); IDataMapper dataMapper5 = new TipoPedimentoDataMapper(); this._catalogSolicitanteModel = new CatalogSolicitanteModel(dataMapper); this._catalogMovimientoModel = new CatalogMovimientoModel(new MovimientoDataMapper(), "Entregado"); TIPO_MOVIMIENTO mov = new TIPO_MOVIMIENTO(); //mov.UNID_TIPO_MOVIMIENTO = 1; //this._movimientoGridModel.TipoMovimiento = mov; this._itemModel = new CatalogItemModel(new ItemDataMapper()); this._catalogAlmacenModel = new CatalogAlmacenModel(dataMapper2); this._catalogAlmacenProcedenciaModel = new CatalogAlmacenModel(dataMapper2); this._catalogProveedorProcedenciaModel = new CatalogProveedorModel(dataMapper3); this._catalogClienteProcedenciaModel = new CatalogClienteModel(dataMapper4); this._catalogTipoPedimentoModel = new CatalogTipoPedimentoModel(dataMapper5); this.ActualUser = u; } catch (ArgumentException a) { ; } catch (Exception ex) { throw ex; } }
public AgregarItemDestinoViewModel(AgregarItemViewModel agregarItemViewModel) { this._agregarItemDestinoModel = new AgregarItemDestinoModel(); this._agregarItemViewModel = agregarItemViewModel; this._catalogAlmacenModel = new CatalogAlmacenModel(new AlmacenDataMapper()); this._catalogProveedorModel = new CatalogProveedorModel(new ProveedorDataMapper()); this._catalogClienteModel = new CatalogClienteModel(new ClienteDataMapper()); }
public SalidaCorrectivoViewModel(MovimientoGridSalidaCorrectivoViewModel salida) { try { IDataMapper dataMapper = new SolicitanteDataMapper(); IDataMapper dataMapper2 = new AlmacenDataMapper(); IDataMapper dataMapper3 = new ProveedorDataMapper(); IDataMapper dataMapper4 = new ClienteDataMapper(); IDataMapper dataMapper5 = new ServicioDataMapper(); IDataMapper dataMapper6 = new TipoPedimentoDataMapper(); IDataMapper dataMapper7 = new TransporteDataMapper(); IDataMapper dataMapper8 = new TecnicoDataMapper(); IDataMapper datamapper11 = new EmpresaDataMapper(); this._catalogEmpresaModel = new CatalogEmpresaModel(datamapper11); this._catalogSolicitanteModel = new CatalogSolicitanteModel(dataMapper); this._movimientoModel = new MovimientoSalidasModel(new MovimientoDataMapper(), salida.ActualUser); TIPO_MOVIMIENTO mov = new TIPO_MOVIMIENTO(); mov.UNID_TIPO_MOVIMIENTO = 14; this._movimientoSalida = salida; this._movimientoModel.TipoMovimiento = mov; this._movimientoModel.PropertyChanged += OnPropertyChanged2; this._itemModel = new CatalogItemModel(new ItemDataMapper()); this._catalogAlmacenDestinoModel = new CatalogAlmacenModel(dataMapper2); this._catalogAlmacenProcedenciaModel = new CatalogAlmacenModel(dataMapper2); this._catalogProveedorDestinoModel = new CatalogProveedorModel(dataMapper3); this._catalogClienteDestinoModel = new CatalogClienteModel(dataMapper4); this._catalogServicioModel = new CatalogServicioModel(dataMapper5); this._catalogTipoPedimentoModel = new CatalogTipoPedimentoModel(dataMapper6); this._catalogTransporteModel = new CatalogTransporteModel(dataMapper7); this._catalogClienteModel = new CatalogClienteModel(dataMapper4); this._catalogTecnicoModel = new CatalogTecnicoModel(dataMapper8); //Asignaciones especiales para los combos this._movimientoModel.Empresa = _catalogEmpresaModel.Empresa[0]; this._movimientoModel.Solicitante = _catalogSolicitanteModel.Solicitante[0]; //this._movimientoModel.Servicio = _catalogServicioModel.Servicio[0]; //this._movimientoModel.Cliente = _catalogClienteModel.Cliente[0]; this._movimientoModel.AlmacenProcedencia = _catalogAlmacenProcedenciaModel.Almacen[0]; this._movimientoModel.Tecnico = _movimientoModel.Tecnicos[0]; this._movimientoModel.AlmacenDestino = _catalogAlmacenDestinoModel.Almacen[0]; this._movimientoModel.ClienteDestino = _catalogClienteDestinoModel.Cliente[0]; this._movimientoModel.ProveedorDestino = _catalogProveedorDestinoModel.Proveedor[0]; this._movimientoModel.Transporte = _catalogTransporteModel.Transporte[0]; this._IsEnabled = true; } catch (ArgumentException a) { ; } catch (Exception ex) { throw ex; } }
public EntradaDesinstalacionViewModel(InventoryApp.ViewModel.GridMovimientos.MovimientoGridEntradasDesinstalacionViewModel entradas) { try { IDataMapper dataMapper = new SolicitanteDataMapper(); IDataMapper dataMapper2 = new AlmacenDataMapper(); IDataMapper dataMapper3 = new ProveedorDataMapper(); IDataMapper dataMapper4 = new ClienteDataMapper(); IDataMapper dataMapper5 = new TransporteDataMapper(); IDataMapper dataMapper6 = new TecnicoDataMapper(); IDataMapper datamapper5 = new EmpresaDataMapper(); IDataMapper dataMapper7 = new MovimientoDataMapper(); this._catalogMovimientoModel = new CatalogMovimientoModel(dataMapper7); this._catalogEmpresaModel = new CatalogEmpresaModel(datamapper5); this._movimientoEntradas = entradas; this._catalogSolicitanteModel = new CatalogSolicitanteModel(dataMapper); this._movimientoModel = new MovimientoModel(new MovimientoDataMapper()); this._movimientoModel.PropertyChanged += OnPropertyChanged2; TIPO_MOVIMIENTO mov = new TIPO_MOVIMIENTO(); mov.UNID_TIPO_MOVIMIENTO = 4; this._movimientoModel.TipoMovimiento = mov; this._itemModel = new CatalogItemModel(new ItemDataMapper()); this._catalogAlmacenModel = new CatalogAlmacenModel(dataMapper2); this._catalogAlmacenProcedenciaModel = new CatalogAlmacenModel(dataMapper2); this._catalogProveedorProcedenciaModel = new CatalogProveedorModel(dataMapper3); this._catalogClienteProcedenciaModel = new CatalogClienteModel(dataMapper4); this._catalogTransporteModel = new CatalogTransporteModel(dataMapper5); this._catalogTecnicoModel = new CatalogTecnicoModel(dataMapper6); //Asignaciones especiales para los combos this._movimientoModel.Transporte = _catalogTransporteModel.Transporte[0]; this._movimientoModel.AlmacenProcedencia = _catalogAlmacenProcedenciaModel.Almacen[0]; this._movimientoModel.ClienteProcedencia = _catalogClienteProcedenciaModel.Cliente[0]; //this._movimientoModel.ProveedorProcedencia = _catalogProveedorProcedenciaModel.Proveedor[0]; this._movimientoModel.AlmacenDestino = _catalogAlmacenModel.Almacen[0]; this._movimientoModel.Tecnico = _movimientoModel.Tecnicos[0]; this._movimientoModel.Empresa = _catalogEmpresaModel.Empresa[0]; this._movimientoModel.Solicitante = _catalogSolicitanteModel.Solicitante[0]; this._movimientoModel.ActualUser = entradas.ActualUser; //this._movimientoModel.Cliente = _catalogClienteProcedenciaModel.Cliente[0]; this._IsEnabled = true; } catch (ArgumentException a) { ; } catch (Exception ex) { throw ex; } }
public TraspasoStockViewModel(MovimientoGridTraspasoStockViewModel traspaso) { try { IDataMapper dataMapper = new SolicitanteDataMapper(); IDataMapper dataMapper2 = new AlmacenDataMapper(); IDataMapper dataMapper3 = new ProveedorDataMapper(); IDataMapper dataMapper4 = new ClienteDataMapper(); IDataMapper dataMapper5 = new TransporteDataMapper(); IDataMapper dataMapper6 = new ServicioDataMapper(); IDataMapper datamapper11 = new EmpresaDataMapper(); IDataMapper dataMapper7 = new MovimientoDataMapper(); this._catalogEmpresaModel = new CatalogEmpresaModel(datamapper11); this._catalogSolicitanteModel = new CatalogSolicitanteModel(dataMapper); this._movimientoModel = new MovimientoSalidasModel(new MovimientoDataMapper(), traspaso.ActualUser); TIPO_MOVIMIENTO mov = new TIPO_MOVIMIENTO(); mov.UNID_TIPO_MOVIMIENTO = 17; this._movimientoModel.TipoMovimiento = mov; this._movimientoTraspaso = traspaso; this._itemModel = new CatalogItemModel(new ItemDataMapper()); this._catalogAlmacenProcedenciaModel = new CatalogAlmacenModel(dataMapper2); this._catalogAlmacenDestinoModel = new CatalogAlmacenModel(dataMapper2); this._catalogProveedorDestinoModel = new CatalogProveedorModel(dataMapper3); this._catalogClienteDestinoModel = new CatalogClienteModel(dataMapper4); this._catalogTransporteModel = new CatalogTransporteModel(dataMapper5); this._catalogServicioModel = new CatalogServicioModel(dataMapper6); this._catalogMovimientoModel = new CatalogMovimientoModel(dataMapper7); //Asignaciones especiales para los combos this._movimientoModel.Empresa = _catalogEmpresaModel.Empresa[0]; this._movimientoModel.Solicitante = _catalogSolicitanteModel.Solicitante[0]; this._movimientoModel.AlmacenProcedencia = _catalogAlmacenProcedenciaModel.Almacen[0]; this._movimientoModel.Tecnico = _movimientoModel.Tecnicos[0]; this._movimientoModel.AlmacenDestino = _catalogAlmacenProcedenciaModel.Almacen[0]; this._movimientoModel.Transporte = _catalogTransporteModel.Transporte[0]; this._IsEnabled = true; } catch (ArgumentException a) { ; } catch (Exception ex) { throw ex; } }
public CatalogClienteViewModel() { try { IDataMapper dataMapper = new ClienteDataMapper(); this._catalogClienteModel = new CatalogClienteModel(dataMapper); } catch (ArgumentException a) { ; } catch (Exception ex) { throw ex; } }