Subversion Repositories SmartDukaan

Rev

Rev 26131 | Rev 27770 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.common.model;

public class CatalogListingModel {
        private int stockInHand;
        private int inTransitQuantity;
        private int toBeOrdered;
        private int allocatedQuantity;
        private int catalogId;
        private String itemDescription;
        private int recommendedQty;
        private int minimumQty;
        private float dp;
        private float mop;
        private Integer last15DaysSale;
        private Integer lastMonthSaleMap;
        private String brand;
        private String modelName;
        private String modelNumber;
        private int remaining;

        public int getRemaining() {
                return remaining;
        }

        public void setRemaining(int remaining) {
                this.remaining = remaining;
        }

        public Integer getLastMonthSaleMap() {
                return lastMonthSaleMap;
        }

        public void setLastMonthSaleMap(Integer lastMonthSaleMap) {
                this.lastMonthSaleMap = lastMonthSaleMap;
        }

        public void setLast15DaysSale(Integer last15DaysSale) {
                this.last15DaysSale = last15DaysSale;
        }

        public int getRecommendedQty() {
                return recommendedQty;
        }

        public int getLast15DaysSale() {
                return last15DaysSale;
        }

        public void setLast15DaysSale(int last15DaysSale) {
                this.last15DaysSale = last15DaysSale;
        }

        public void setRecommendedQty(int recommendedQty) {
                this.recommendedQty = recommendedQty;
        }

        public int getMinimumQty() {
                return minimumQty;
        }

        public void setMinimumQty(int minimumQty) {
                this.minimumQty = minimumQty;
        }

        public String getModelName() {
                return modelName;
        }

        public void setModelName(String modelName) {
                this.modelName = modelName;
        }

        public String getModelNumber() {
                return modelNumber;
        }

        public void setModelNumber(String modelNumber) {
                this.modelNumber = modelNumber;
        }

        // Optional
        private int fofoId;

        public int getFofoId() {
                return fofoId;
        }

        public void setFofoId(int fofoId) {
                this.fofoId = fofoId;
        }

        public String getBrand() {
                return brand;
        }

        public void setBrand(String brand) {
                this.brand = brand;
        }

        private int last30DaysSale;

        public int getLast30DaysSale() {
                return last30DaysSale;
        }

        public void setLast30DaysSale(int last30DaysSale) {
                this.last30DaysSale = last30DaysSale;
        }

        public int getCategoryId() {
                return categoryId;
        }

        public void setCategoryId(int categoryId) {
                this.categoryId = categoryId;
        }

        private int categoryId;

        @Override
        public String toString() {
                return "CatalogListingModel [stockInHand=" + stockInHand + ", inTransitQuantity=" + inTransitQuantity
                                + ", toBeOrdered=" + toBeOrdered + ", allocatedQuantity=" + allocatedQuantity + ", catalogId="
                                + catalogId + ", itemDescription=" + itemDescription + ", dp=" + dp + ", mop=" + mop + ", brand="
                                + brand + ", modelName=" + modelName + ", modelNumber=" + modelNumber + ", fofoId=" + fofoId
                                + ", last30DaysSale=" + last30DaysSale + ", categoryId=" + categoryId + "]";
        }

        public int getStockInHand() {
                return stockInHand;
        }

        public void setStockInHand(int stockInHand) {
                this.stockInHand = stockInHand;
        }

        public int getInTransitQuantity() {
                return inTransitQuantity;
        }

        public void setInTransitQuantity(int inTransitQuantity) {
                this.inTransitQuantity = inTransitQuantity;
        }

        public int getToBeOrdered() {
                return toBeOrdered;
        }

        public void setToBeOrdered(int toBeOrdered) {
                this.toBeOrdered = toBeOrdered;
        }

        public int getAllocatedQuantity() {
                return allocatedQuantity;
        }

        public void setAllocatedQuantity(int allocatedQuantity) {
                this.allocatedQuantity = allocatedQuantity;
        }

        public int getCatalogId() {
                return catalogId;
        }

        public void setCatalogId(int catalogId) {
                this.catalogId = catalogId;
        }

        public String getItemDescription() {
                return itemDescription;
        }

        public void setItemDescription(String itemDescription) {
                this.itemDescription = itemDescription;
        }

        public float getDp() {
                return dp;
        }

        public void setDp(float dp) {
                this.dp = dp;
        }

        public float getMop() {
                return mop;
        }

        public void setMop(float mop) {
                this.mop = mop;
        }

        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + allocatedQuantity;
                result = prime * result + ((brand == null) ? 0 : brand.hashCode());
                result = prime * result + catalogId;
                result = prime * result + categoryId;
                result = prime * result + Float.floatToIntBits(dp);
                result = prime * result + fofoId;
                result = prime * result + inTransitQuantity;
                result = prime * result + ((itemDescription == null) ? 0 : itemDescription.hashCode());
                result = prime * result + last15DaysSale;
                result = prime * result + last30DaysSale;
                result = prime * result + minimumQty;
                result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
                result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());
                result = prime * result + Float.floatToIntBits(mop);
                result = prime * result + recommendedQty;
                result = prime * result + stockInHand;
                result = prime * result + toBeOrdered;
                return result;
        }

        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                CatalogListingModel other = (CatalogListingModel) obj;
                if (allocatedQuantity != other.allocatedQuantity)
                        return false;
                if (brand == null) {
                        if (other.brand != null)
                                return false;
                } else if (!brand.equals(other.brand))
                        return false;
                if (catalogId != other.catalogId)
                        return false;
                if (categoryId != other.categoryId)
                        return false;
                if (Float.floatToIntBits(dp) != Float.floatToIntBits(other.dp))
                        return false;
                if (fofoId != other.fofoId)
                        return false;
                if (inTransitQuantity != other.inTransitQuantity)
                        return false;
                if (itemDescription == null) {
                        if (other.itemDescription != null)
                                return false;
                } else if (!itemDescription.equals(other.itemDescription))
                        return false;
                if (last15DaysSale != other.last15DaysSale)
                        return false;
                if (last30DaysSale != other.last30DaysSale)
                        return false;
                if (minimumQty != other.minimumQty)
                        return false;
                if (modelName == null) {
                        if (other.modelName != null)
                                return false;
                } else if (!modelName.equals(other.modelName))
                        return false;
                if (modelNumber == null) {
                        if (other.modelNumber != null)
                                return false;
                } else if (!modelNumber.equals(other.modelNumber))
                        return false;
                if (Float.floatToIntBits(mop) != Float.floatToIntBits(other.mop))
                        return false;
                if (recommendedQty != other.recommendedQty)
                        return false;
                if (stockInHand != other.stockInHand)
                        return false;
                if (toBeOrdered != other.toBeOrdered)
                        return false;
                return true;
        }

}