Class ImportPendingView

java.lang.Object
org.bgerp.plugin.inventoru.sync1c.service.ImportPendingView

public class ImportPendingView extends Object
"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.
  • Field Details

    • KIND_ALL

      public static final String KIND_ALL
      Filter by kind: everything.
      See Also:
    • KIND_CONFLICT

      public static final String KIND_CONFLICT
      Filter by kind: only rows that cannot be posted as they are.
      See Also:
    • KIND_QUANTITY

      public static final String KIND_QUANTITY
      Filter by kind: quantity proposals of positions without serial numbers.
      See Also:
    • KINDS

      public static final Set<String> KINDS
      Every kind the screen offers; anything else is read as KIND_ALL.
  • Constructor Details

  • 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

      public String getKind()
      The kind the screen is filtered by, one of KINDS — what the screen puts back into its own links. Taken from the request as it came, it was whatever the link said, and the links of this screen are built as text.
    • getGroups

      public List<ImportPendingView.Group> getGroups()
    • getStores

      public Map<Integer,String> getStores()
      Stores having proposals, for the filter — regardless of the filter itself.
    • getRowCount

      public int getRowCount()