Class InfoProductWindow

    • Field Detail

      • tabbedPane

        protected Tabbox tabbedPane
      • warehouseTbl

        protected WListbox warehouseTbl
      • m_sqlWarehouse

        protected String m_sqlWarehouse
      • substituteTbl

        protected WListbox substituteTbl
      • m_sqlSubstitute

        protected String m_sqlSubstitute
      • relatedTbl

        protected WListbox relatedTbl
      • m_sqlRelated

        protected String m_sqlRelated
      • m_tableAtp

        protected WListbox m_tableAtp
      • chbShowDetailAtp

        protected Checkbox chbShowDetailAtp
      • productpriceTbl

        protected WListbox productpriceTbl
      • m_sqlProductprice

        protected String m_sqlProductprice
      • fieldDescription

        protected Textbox fieldDescription
      • m_M_AttributeSetInstance_ID

        protected int m_M_AttributeSetInstance_ID
        ASI
      • contentBorderLayout

        protected Borderlayout contentBorderLayout
      • m_PAttributeButton

        protected Button m_PAttributeButton
        Instance Button
      • m_M_Locator_ID

        protected int m_M_Locator_ID
    • Constructor Detail

      • InfoProductWindow

        public InfoProductWindow​(int WindowNo,
                                 String tableName,
                                 String keyColumn,
                                 String queryValue,
                                 boolean multipleSelection,
                                 String whereClause,
                                 int AD_InfoWindow_ID)
        Parameters:
        WindowNo -
        tableName -
        keyColumn -
        queryValue -
        multipleSelection -
        whereClause -
        AD_InfoWindow_ID -
      • InfoProductWindow

        public InfoProductWindow​(int WindowNo,
                                 String tableName,
                                 String keyColumn,
                                 String queryValue,
                                 boolean multipleSelection,
                                 String whereClause,
                                 int AD_InfoWindow_ID,
                                 boolean lookup)
        Parameters:
        WindowNo -
        tableName -
        keyColumn -
        queryValue -
        multipleSelection -
        whereClause -
        AD_InfoWindow_ID -
        lookup -
      • InfoProductWindow

        public InfoProductWindow​(int WindowNo,
                                 String tableName,
                                 String keyColumn,
                                 String queryValue,
                                 boolean multipleSelection,
                                 String whereClause,
                                 int AD_InfoWindow_ID,
                                 boolean lookup,
                                 String predefinedContextVariables)
        Parameters:
        WindowNo -
        tableName -
        keyColumn -
        queryValue -
        multipleSelection -
        whereClause -
        AD_InfoWindow_ID -
        lookup -
        predefinedContextVariables -
    • Method Detail

      • getSQLWhere

        protected String getSQLWhere()
        Description copied from class: InfoPanel
        Get dynamic WHERE part of SQL To be overwritten by concrete classes When override this method, please consider isQueryByUser and prevWhereClause
        Overrides:
        getSQLWhere in class InfoWindow
        Returns:
        WHERE clause
      • renderContentPane

        protected void renderContentPane​(org.zkoss.zul.Center center)
        Overrides:
        renderContentPane in class InfoWindow
      • onPAttributeClick

        protected void onPAttributeClick()
      • getSelectedWarehouseLabel

        protected String getSelectedWarehouseLabel()
      • getSelectedPriceListVersionId

        protected int getSelectedPriceListVersionId()
      • getSelectedWarehouseId

        protected int getSelectedWarehouseId()
      • initParameters

        protected void initParameters()
        Call after load parameter panel to set init value can call when reset parameter implement this method at inheritance class with each parameter, remember call Env.setContext to set new value to env
        Overrides:
        initParameters in class InfoPanel
      • findPLV

        protected int findPLV​(int M_PriceList_ID)
        Find Price List Version and update context
        Parameters:
        M_PriceList_ID - price list
        Returns:
        M_PriceList_Version_ID price list version
      • setWarehouse

        protected void setWarehouse​(int M_Warehouse_ID)
        Set Warehouse
        Parameters:
        M_Warehouse_ID - warehouse
      • setPriceListVersion

        protected void setPriceListVersion​(int M_PriceList_Version_ID)
        Set PriceList
        Parameters:
        M_PriceList_Version_ID - price list
      • refresh

        protected void refresh​(int M_Warehouse_ID,
                               int M_PriceList_Version_ID)
        Refresh Query
      • initAtpTab

        protected void initAtpTab​(int m_M_Warehouse_ID,
                                  int m_M_Product_ID)
        Query ATP
        Parameters:
        m_M_Warehouse_ID -
        m_M_Product_ID -
      • isShowDetailATP

        public boolean isShowDetailATP()
      • showHistory

        protected void showHistory()
        Description copied from class: InfoPanel
        notify to search editor of a value change in the selection info
        Overrides:
        showHistory in class InfoPanel
      • hasHistory

        protected boolean hasHistory()
        Description copied from class: InfoPanel
        Has History (false) To be overwritten by concrete classes
        Overrides:
        hasHistory in class InfoPanel
        Returns:
        true if it has history (default false)
      • saveSelectionDetail

        protected void saveSelectionDetail()
        Description copied from class: InfoWindow
        Save Selection Details Get Location/Partner Info
        Overrides:
        saveSelectionDetail in class InfoWindow
      • updateSubcontent

        protected void updateSubcontent()
        Description copied from class: InfoPanel
        Update relate info when selection in main info change
        Overrides:
        updateSubcontent in class InfoPanel