Class ImportPendingView
java.lang.Object
org.bgerp.plugin.inventoru.sync1c.service.ImportPendingView
"Pending incoming" as the screen shows it: proposals grouped by store and position, each with
what posting it would do, filtered by store and by kind.
A first load of a serial tracked position is hundreds of rows "+ serial" of one position on one
store; listed flat, they would be clicked through one by one. Grouped, a position on a store is
one line — "+37", "−2", conflicts — posted at once, with its units opened when needed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProposals of one position on one store. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringFilter by kind: everything.static final StringFilter by kind: only rows that cannot be posted as they are.static final StringFilter by kind: quantity proposals of positions without serial numbers.Every kind the screen offers; anything else is read asKIND_ALL. -
Constructor Summary
ConstructorsConstructorDescriptionImportPendingView(Connection con, List<ImportPending> list, int storeId, String kind) -
Method Summary
Modifier and TypeMethodDescriptiongetKind()The kind the screen is filtered by, one ofKINDS— what the screen puts back into its own links.intintThe warehouse the screen is filtered by, 0 — all of them.Stores having proposals, for the filter — regardless of the filter itself.static List<ImportPending> select(Connection con, List<ImportPending> list, int storeId, int itemId, String kind) Proposals the bulk posting takes: of the store (0 — all), the position (0 — all) and the kind shown on the screen — posting everything of a store while only its conflicts are shown would post rows nobody looked at.
-
Field Details
-
KIND_ALL
-
KIND_CONFLICT
Filter by kind: only rows that cannot be posted as they are.- See Also:
-
KIND_QUANTITY
Filter by kind: quantity proposals of positions without serial numbers.- See Also:
-
KINDS
-
-
Constructor Details
-
ImportPendingView
public ImportPendingView(Connection con, List<ImportPending> list, int storeId, String kind) throws SQLException - Parameters:
list- proposals, ordered by store, position, kind, serial (as the DAO returns them)storeId- only this store, 0 — allkind- anImportPendingaction,KIND_CONFLICT, orKIND_ALL- Throws:
SQLException
-
-
Method Details
-
select
public static List<ImportPending> select(Connection con, List<ImportPending> list, int storeId, int itemId, String kind) throws SQLException Proposals the bulk posting takes: of the store (0 — all), the position (0 — all) and the kind shown on the screen — posting everything of a store while only its conflicts are shown would post rows nobody looked at.- Throws:
SQLException
-
getStoreId
public int getStoreId()The warehouse the screen is filtered by, 0 — all of them. -
getKind
-
getGroups
-
getStores
-
getRowCount
public int getRowCount()
-