Class MLot

    • Constructor Detail

      • MLot

        public MLot​(Properties ctx,
                    int M_Lot_ID,
                    String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        M_Lot_ID - ID
        trxName - transaction
      • MLot

        public MLot​(Properties ctx,
                    ResultSet rs,
                    String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set
        trxName - transaction
      • MLot

        public MLot​(MLotCtl ctl,
                    int M_Product_ID,
                    String Name)
        Parent Constructor
        Parameters:
        ctl - lot control
        M_Product_ID - product
        Name - name
    • Method Detail

      • getProductLots

        public static MLot[] getProductLots​(Properties ctx,
                                            int M_Product_ID,
                                            String trxName)
        Get Lots for Product
        Parameters:
        ctx - context
        M_Product_ID - product
        trxName - transaction
        Returns:
        Array of Lots for Product
      • getProductLot

        public static MLot getProductLot​(Properties ctx,
                                         int M_Product_ID,
                                         String lot,
                                         String trxName)
        Get Lot for Product
        Parameters:
        ctx - context
        M_Product_ID - product
        lot -
        trxName - transaction
        Returns:
        Last Lot for Product
      • getProductLotPairs

        public static KeyNamePair[] getProductLotPairs​(int M_Product_ID,
                                                       String trxName)
        Get Lot Key Name Pairs for Product
        Parameters:
        M_Product_ID - product
        trxName - transaction
        Returns:
        Array of Lot Key Name Pairs for Product
      • toString

        public String toString()
        String Representation
        Overrides:
        toString in class X_M_Lot
        Returns:
        info