コード例 #1
0
 /// <summary>
 /// Ejecuta la acción del command
 /// </summary>
 /// <param name="catalogItemStatusViewModel"></param>
 public AddTransporteViewModel(CatalogTransporteViewModel catalogTransporteViewModel)
 {
     this._addTransporte = new InsertTransporteModel(new TransporteDataMapper(), catalogTransporteViewModel.ActualUser);
     this._catalogTransporteViewModel = catalogTransporteViewModel;
     try
     {
         this._catalogTipoEmpresaModel = new CatalogTipoEmpresaModel(new TipoEmpresaDataMapper());
     }
     catch (ArgumentException ae)
     {
         ;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #2
0
 /// <summary>
 /// Ejecuta la acción del command
 /// </summary>
 /// <param name="catalogItemStatusViewModel"></param>
 public ModifyTransporteViewModel(CatalogTransporteViewModel catalogTransporteViewModel, InsertTransporteModel selectedTransporteModel)
 {
     this._transporte = new InsertTransporteModel(new TransporteDataMapper(), catalogTransporteViewModel.ActualUser);
     this._catalogTransporteViewModel = catalogTransporteViewModel;
     this._transporte.UnidTransporte  = selectedTransporteModel.UnidTransporte;
     this._transporte.TransporteName  = selectedTransporteModel.TransporteName;
     this._transporte.TipoEmpresa     = selectedTransporteModel.TipoEmpresa;
     try
     {
         this._catalogTipoEmpresaModel = new CatalogTipoEmpresaModel(new TipoEmpresaDataMapper());
     }
     catch (ArgumentException ae)
     {
         ;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #3
0
 /// <summary>
 /// Ejecuta la acción del command
 /// </summary>
 /// <param name="catalogItemStatusViewModel"></param>
 public InsertTransporteViewModel(CatalogTransporteViewModel catalogTransporteViewModel)
 {
     this._addTransporte = new TransporteModel(new TransporteDataMapper());
     this._catalogTransporteViewModel = catalogTransporteViewModel;
     this._catalogTipoEmpresaModel    = new CatalogTipoEmpresaModel(new TipoEmpresaDataMapper());
 }