| package com.matrix.system.hive.pojo; | 
|   | 
| import com.matrix.system.constance.Dictionary; | 
| import com.matrix.system.hive.bean.ShoppingGoodsAssemble; | 
|   | 
|   | 
| public class SysProjUserVo { | 
|   | 
|     /** | 
|      * | 
|      */ | 
|     private static final long serialVersionUID = 1L; | 
|   | 
|     /*vo对象*****************************/ | 
|     /** | 
|      * 当剩余次数大于10000时返回不限 | 
|      */ | 
|     private String surplusCountName; | 
|   | 
|     /** | 
|      * 套餐来源,转让,购买 | 
|      * 来源包含赠送时,返回是 | 
|      * 不包含返回否 | 
|      */ | 
|     private String sourceName; | 
|   | 
|     /** | 
|      * 如果是项目,则显示销售项目名称 | 
|      * 如果是套餐,则显示销售套餐名[项目名] | 
|      **/ | 
|     private String shoppingName; | 
|     /*vo对象*****************************/ | 
|   | 
|   | 
|     /** | 
|      * 套餐来源,转让,购买 | 
|      */ | 
|     private String source; | 
|     /** | 
|      * 剩余次数 | 
|      */ | 
|     private Integer surplusCount; | 
|     /** | 
|      * 组合产品销售sku信息 | 
|      */ | 
|     private ShoppingGoodsAssemble shoppingGoodsAssemble; | 
|   | 
|     /** | 
|      * 项目使用情况类型 | 
|      * 项目,套餐,套餐卡 | 
|      */ | 
|     private String type; | 
|   | 
|     public String getSurplusCountName() { | 
|         if (getSurplusCount() == null) { | 
|             return ""; | 
|         } | 
|         if (getSurplusCount() > 10000) { | 
|             surplusCountName = Dictionary.MAX_USE_STRING; | 
|             return surplusCountName; | 
|         } | 
|         return this.getSurplusCount().toString(); | 
|     } | 
|   | 
|     public String getSourceName() { | 
|         if (getSource() == null) { | 
|             return ""; | 
|         } | 
|         if (getSource().contains(Dictionary.TAOCAN_SOURCE_ZS)) { | 
|             sourceName = Dictionary.FLAG_YES; | 
|         } else { | 
|             sourceName = Dictionary.FLAG_NO; | 
|             ; | 
|         } | 
|         return sourceName; | 
|     } | 
|   | 
|     public void setSourceName(String sourceName) { | 
|         this.sourceName = sourceName; | 
|     } | 
|   | 
|     public void setSurplusCountName(String surplusCountName) { | 
|         this.surplusCountName = surplusCountName; | 
|     } | 
|   | 
|   | 
|     public String getType() { | 
|         return type; | 
|     } | 
|   | 
|   | 
|     public void setType(String type) { | 
|         this.type = type; | 
|     } | 
|   | 
|     public String getShoppingName() { | 
|       /*  if (getShoppingGoodsAssemble() == null) { | 
|             return ""; | 
|         } | 
|         //如果项目使用情况来源于项目或者套餐卡,则只需要显示商品名称 | 
|   | 
|         if (Dictionary.SHOPPING_GOODS_TYPE_XM.equals(getShoppingGoodsAssemble().getShoppingGoods().getGoodType()) | 
|                 || Dictionary.SHOPPING_GOODS_TYPE_TCK.equals(getShoppingGoodsAssemble().getShoppingGoods().getGoodType()) | 
|         ) { | 
|             shoppingName = getShoppingGoodsAssemble().getShoppingGoods().getName(); | 
|         } else { | 
|             shoppingName = getShoppingGoodsAssemble().getShoppingGoods().getName() + "[" + getShoppingGoodsAssemble().getProjInfo().getProjName() + "]"; | 
|         }*/ | 
|         return shoppingName; | 
|     } | 
|   | 
|     public void setShoppingName(String shoppingName) { | 
|         this.shoppingName = shoppingName; | 
|     } | 
|   | 
|     public Integer getSurplusCount() { | 
|         return surplusCount; | 
|     } | 
|   | 
|     public void setSurplusCount(Integer surplusCount) { | 
|         this.surplusCount = surplusCount; | 
|     } | 
|   | 
|     public ShoppingGoodsAssemble getShoppingGoodsAssemble() { | 
|         return shoppingGoodsAssemble; | 
|     } | 
|   | 
|     public void setShoppingGoodsAssemble(ShoppingGoodsAssemble shoppingGoodsAssemble) { | 
|         this.shoppingGoodsAssemble = shoppingGoodsAssemble; | 
|     } | 
|   | 
|     public String getSource() { | 
|         return source; | 
|     } | 
|   | 
|     public void setSource(String source) { | 
|         this.source = source; | 
|     } | 
|   | 
|   | 
| } |