This repository was archived by the owner on Oct 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Export/dev VP-255 use export in do export in pricing #521
Open
AliveMen
wants to merge
22
commits into
export/dev
Choose a base branch
from
export/dev_255_Use_export_in_DoExport_in_Pricing
base: export/dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
6b442a6
add PricingFullPagedDataSource
AliveMen 0e9fe31
Merge branch 'export/dev' into export/dev_255_Use_export_in_DoExport_…
AliveMen 37633ee
add PricingFullPagedDataSource
AliveMen 3df4244
add PricingFullPagedDataSource
AliveMen 9798cea
add PricingFullPagedDataSource
AliveMen 2f43cb8
Merge branch 'export/dev' into export/dev_255_Use_export_in_DoExport_…
AliveMen 68062d9
Merge branch 'export/dev' into export/dev_255_Use_export_in_DoExport_…
AliveMen 3e086cb
update metadata getters
AliveMen 2092f40
remove baseMemberName
AliveMen b3288f9
get rid of IF
AliveMen b3c2548
rid of GetNextTake method.
AliveMen 329f261
refactoring portion calculation
AliveMen e4bdf14
change "== null" to "IsNullOrEmpty"
AliveMen 70cecb6
use AbstractTypeFactory
AliveMen 0e476b0
revert
AliveMen 6160009
Merge branch 'export/dev' into export/dev_255_Use_export_in_DoExport_…
AliveMen a21da01
revert
AliveMen dc1d03a
revert
AliveMen e081832
FetchNextPage refactoring
AliveMen 38b22e6
Merge branch 'export/dev' into export/dev_255_Use_export_in_DoExport_…
AliveMen 3a95562
FetchNextPage refactoring
AliveMen 7eabdc9
ExportablePricelist -> Pricelist
AliveMen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...vc-module-pricing/VirtoCommerce.PricingModule.Data/ExportImport2/ExportablePricingFull.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| using System.Collections.Generic; | ||
| using System.Linq; | ||
| using VirtoCommerce.ExportModule.Core.Model; | ||
|
|
||
| namespace VirtoCommerce.PricingModule.Data.ExportImport | ||
| { | ||
| public class ExportablePricingFull : IExportable | ||
| { | ||
| public string Name { get; set; } | ||
| public string Code { get; set; } | ||
| public string ImageUrl { get; set; } | ||
| public string Parent { get; set; } | ||
| public string Type { get; set; } | ||
|
|
||
| public ICollection<ExportablePricelist> Pricelists { get; set; } | ||
| public ICollection<ExportablePrice> Prices { get; set; } | ||
| public ICollection<ExportablePricelistAssignment> Assignments { get; set; } | ||
|
|
||
|
|
||
| public object Clone() | ||
| { | ||
| var result = MemberwiseClone() as ExportablePricingFull; | ||
| if (Pricelists != null) | ||
| { | ||
| result.Pricelists = new List<ExportablePricelist>(Pricelists.Select(x => x.Clone() as ExportablePricelist)); | ||
| } | ||
| if (Prices != null) | ||
| { | ||
| result.Prices = new List<ExportablePrice>(Prices.Select(x => x.Clone() as ExportablePrice)); | ||
| } | ||
| if (Assignments != null) | ||
| { | ||
| result.Assignments = new List<ExportablePricelistAssignment>(Assignments.Select(x => x.Clone() as ExportablePricelistAssignment)); | ||
| } | ||
| return result; | ||
|
|
||
| } | ||
|
|
||
| } | ||
| } | ||
9 changes: 9 additions & 0 deletions
9
...dule-pricing/VirtoCommerce.PricingModule.Data/ExportImport2/PricingFullExportDataQuery.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| using VirtoCommerce.ExportModule.Core.Model; | ||
|
|
||
| namespace VirtoCommerce.PricingModule.Data.ExportImport | ||
| { | ||
| public class PricingFullExportDataQuery : ExportDataQuery | ||
| { | ||
|
|
||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.