Class InfoProduct

    • Constructor Detail

      • InfoProduct

        public InfoProduct​(Frame frame,
                           boolean modal,
                           int WindowNo,
                           int M_Warehouse_ID,
                           int M_PriceList_ID,
                           String value,
                           boolean multiSelection,
                           String whereClause)
        Standard Constructor
        Parameters:
        frame - frame
        modal - modal
        WindowNo - window no
        M_Warehouse_ID - warehouse
        M_PriceList_ID - price list
        value - Query Value or Name if enclosed in @
        multiSelection - multiple selections
        whereClause - where clause
      • InfoProduct

        public InfoProduct​(Frame frame,
                           boolean modal,
                           int WindowNo,
                           int M_Warehouse_ID,
                           int M_PriceList_ID,
                           String value,
                           boolean multiSelection,
                           String whereClause,
                           boolean lookup)
        Standard Constructor
        Parameters:
        frame - frame
        modal - modal
        WindowNo - window no
        M_Warehouse_ID - warehouse
        M_PriceList_ID - price list
        value - Query Value or Name if enclosed in @
        multiSelection - multiple selections
        whereClause - where clause
    • Method Detail

      • getSQLWhere

        protected String getSQLWhere()
        Construct SQL Where Clause and define parameters (setParameters needs to set parameters) Includes first AND
        Specified by:
        getSQLWhere in class Info
        Returns:
        SQL WHERE clause
      • setParameters

        protected void setParameters​(PreparedStatement pstmt,
                                     boolean forCount)
                              throws SQLException
        Set Parameters for Query (as defined in getSQLWhere)
        Specified by:
        setParameters in class Info
        Parameters:
        pstmt - pstmt
        forCount - for counting records
        Throws:
        SQLException
      • enableButtons

        protected void enableButtons()
        Enable PAttribute if row selected/changed
        Overrides:
        enableButtons in class Info
      • showHistory

        protected void showHistory()
        Show History
        Overrides:
        showHistory in class Info
      • hasHistory

        protected boolean hasHistory()
        Has History
        Overrides:
        hasHistory in class Info
        Returns:
        true (has history)
      • zoom

        protected void zoom()
        Zoom
        Overrides:
        zoom in class Info
      • hasZoom

        protected boolean hasZoom()
        Has Zoom
        Overrides:
        hasZoom in class Info
        Returns:
        (has zoom)
      • customize

        protected void customize()
        Customize
        Overrides:
        customize in class Info
      • hasCustomize

        protected boolean hasCustomize()
        Has Customize
        Overrides:
        hasCustomize in class Info
        Returns:
        false (no customize)
      • saveSelectionDetail

        protected void saveSelectionDetail()
        Save Selection Settings for PriceList
        Overrides:
        saveSelectionDetail in class Info
      • getProductLayout

        protected Info_Column[] getProductLayout()
        Get Product Layout
        Returns:
        array of Column_Info
      • getM_Product_Category_ID

        public int getM_Product_Category_ID()
        Returns:
        selected product category ID
      • getM_AttributeSet_ID

        public int getM_AttributeSet_ID()
        Returns:
        selected Attribute Set ID
      • isResetValue

        public boolean isResetValue()
        Overrides:
        isResetValue in class Info