Class InfoProductWindow

java.lang.Object
org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
All Implemented Interfaces:
Serializable, Cloneable, ValueChangeListener, WTableModelListener, ISupportMask, IHelpContext, org.zkoss.zk.ui.Component, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>, org.zkoss.zk.ui.ext.Scope, org.zkoss.zk.ui.IdSpace, org.zkoss.zk.ui.sys.ComponentCtrl, org.zkoss.zul.ext.Framable, org.zkoss.zul.ext.Sortable<Object>

public class InfoProductWindow extends InfoWindow
Info window for M_Product
Author:
hengsin
See Also:
  • Field Details

    • tabbedPane

      protected Tabbox tabbedPane
    • warehouseTbl

      protected WListbox warehouseTbl
      Storage by warehouse
    • m_sqlWarehouse

      protected String m_sqlWarehouse
    • substituteTbl

      protected WListbox substituteTbl
      Substitute products
    • m_sqlSubstitute

      protected String m_sqlSubstitute
    • relatedTbl

      protected WListbox relatedTbl
      Related products
    • m_sqlRelated

      protected String m_sqlRelated
    • m_tableAtp

      protected WListbox m_tableAtp
      Available to Promise Tab
    • chbShowDetailAtp

      protected Checkbox chbShowDetailAtp
      true to sum ATP quantities by product attributes, warehouse and locator
    • productpriceTbl

      protected WListbox productpriceTbl
      Product price
    • 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
      Product Attribute Set Instance Button
    • m_M_Locator_ID

      protected int m_M_Locator_ID
  • Constructor Details

    • 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, GridField field)
      Parameters:
      WindowNo -
      tableName -
      keyColumn -
      queryValue -
      multipleSelection -
      whereClause -
      AD_InfoWindow_ID -
      lookup -
      field -
    • InfoProductWindow

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

      public InfoProductWindow(int WindowNo, String tableName, String keyColumn, String queryValue, boolean multipleSelection, String whereClause, int AD_InfoWindow_ID, boolean lookup, GridField field, String predefinedContextVariables, Lookup lookupModel)
      Parameters:
      WindowNo -
      tableName -
      keyColumn -
      queryValue -
      multipleSelection -
      whereClause -
      AD_InfoWindow_ID -
      lookup -
      field -
      predefinedContextVariables -
      lookupModel -
  • Method Details

    • getSQLWhere

      protected String getSQLWhere()
      Description copied from class: InfoPanel
      Get dynamic WHERE part of SQL.
      When override this method, please take isQueryByUser and prevWhereClause into consideration.
      Overrides:
      getSQLWhere in class InfoWindow
      Returns:
      WHERE clause
    • renderWindow

      protected void renderWindow()
      Description copied from class: InfoWindow
      layout window UI elements
      Overrides:
      renderWindow in class InfoWindow
    • renderContentPane

      protected void renderContentPane(org.zkoss.zul.Center center)
      Description copied from class: InfoWindow
      layout center content pane
      Overrides:
      renderContentPane in class InfoWindow
    • onPAttributeClick

      protected void onPAttributeClick()
      handle on click event for product attribute
    • getSelectedWarehouseLabel

      protected String getSelectedWarehouseLabel()
      Returns:
      label for selected warehouse parameter
    • getSelectedPriceListVersionId

      protected int getSelectedPriceListVersionId()
      Returns:
      id for selected price list version parameter
    • getSelectedWarehouseId

      protected int getSelectedWarehouseId()
      Returns:
      id for selected warehouse parameter
    • initParameters

      protected void initParameters()
      Call after loading of parameter panel to set initial value. Can call to reset parameters.
      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
      Parameters:
      M_Warehouse_ID -
      M_PriceList_Version_ID -
    • initAtpTab

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

      public boolean isShowDetailATP()
      Returns:
      true if show detail of ATP
    • showHistory

      protected void showHistory()
      Description copied from class: InfoPanel
      Show history dialog
      Overrides:
      showHistory in class InfoPanel
    • hasHistory

      protected boolean hasHistory()
      Description copied from class: InfoPanel
      Has History (default false). Override this and InfoPanel.showHistory() method to add history dialog support.
      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
    • prepareTable

      protected void prepareTable(ColumnInfo[] layout, String from, String where, String orderBy)
      Description copied from class: InfoPanel
      set up list box and construct sql clause
      Overrides:
      prepareTable in class InfoWindow
    • executeQuery

      protected void executeQuery()
      Description copied from class: InfoPanel
      Execute Query
      Overrides:
      executeQuery in class InfoWindow
    • updateSubcontent

      protected void updateSubcontent()
      Description copied from class: InfoPanel
      Update related info when selection in InfoPanel.contentPanel change.
      Overrides:
      updateSubcontent in class InfoPanel