//设置分类数据
 private void setEquipListData(int type)
 {
     isClickAllEquipBtn = isClickRecommenBtn = false;
     filterEquipList    = new List <SysEquipVo>();
     filterEquipList    = EquipIndentificationUtil.getEquipListData(type, allEquipList);
     setCurrentPageNum(filterEquipList);
     setCurrentPageData(filterEquipList, curentPageNum, totalPageNum);
 }
 private void setRecommendBtnClick()
 {
     isClickAllEquipBtn = false;
     isClickRecommenBtn = true;
     recommenEquipList  = EquipIndentificationUtil.getRecommendEquipData(allEquipList);
     setCurrentPageNum(recommenEquipList);
     setCurrentPageData(recommenEquipList, curentPageNum, totalPageNum);
 }
        //点击装备
        private void equipItemOnClick(GameObject go)
        {
            ItemContainer currentClickEquipItem = go.GetComponent <ItemContainer>();

            currentClickEquipVo = BaseDataMgr.instance.GetDataById <SysEquipVo>(currentClickEquipItem.Id);
            int[] lvl         = StringUtils.GetStringToInt(currentClickEquipVo.lvl);
            int   canUseLevel = lvl[0] - EquipIdentificationConst.POOR_GRADES_10;

            if (EquipIndentificationUtil.getCurrentEquipIsGreaterTen(lvl[0]))
            {
                string tips = LanguageManager.GetWord("EquipIdentificationView.isGreaterTen", string.Empty + canUseLevel);
                MessageManager.Show(tips);
                return;
            }
            Singleton <TipsManager> .Instance.OpenTipsByGoodsId((uint)currentClickEquipVo.id, onGetEquipWayHandler,
                                                                null, LanguageManager.GetWord("EquipIdentificationWayTipsView.way"),
                                                                string.Empty, TipsType.DELEGATENOCLOSE);
        }
        //设置图标
        private void setEveryIcon(Transform item, SysEquipVo equipVo,
                                  ItemContainer equipItemContainer, UILabel equipItemName)
        {
            int[] lvl = StringUtils.GetStringToInt(equipVo.lvl);
            if (EquipIndentificationUtil.getCurrentEquipIsGreaterTen(lvl[0]))
            {
                item.FindChild("icon").GetComponent <UISprite>().atlas = Singleton <AtlasManager> .Instance.GetAtlas("common");

                item.FindChild("icon").GetComponent <UISprite>().spriteName  = "suo23";
                item.FindChild("background").GetComponent <UISprite>().atlas = Singleton <AtlasManager> .Instance.GetAtlas("common");

                item.FindChild("background").GetComponent <UISprite>().spriteName = "epz_" + equipVo.color;
            }
            else
            {
                Singleton <ItemManager> .Instance.InitItem(item.gameObject,
                                                           (uint)equipVo.id, ItemType.Equip);
            }
            equipItemContainer.Id = (uint)equipVo.id;
            equipItemName.text    = "Lv." + lvl[0] + "  " + equipVo.name;
        }
        //设置当前页数据
        private void setCurrentPageData(List <SysEquipVo> dataList, int curNum, int totalNum)
        {
            if (dataList.Count == 0)
            {
                return;
            }
            List <SysEquipVo> curPageDataList = new List <SysEquipVo>();

            if (curNum == totalNum)
            {
                curPageDataList = EquipIndentificationUtil.getBetweenData(
                    dataList, (curNum - 1) * EquipIdentificationConst.EQUIPMAX_12, (dataList.Count));
            }
            else
            {
                curPageDataList = EquipIndentificationUtil.getBetweenData(
                    dataList, (curNum - 1) * EquipIdentificationConst.EQUIPMAX_12, (curNum * EquipIdentificationConst.EQUIPMAX_12));
            }
            setCurrentPageView(curPageDataList, curNum, totalNum);
            pageNumberLabel.text = curentPageNum + "/" + totalPageNum;
        }
 private void initFilterAllEquipData()
 {
     allEquipList = new List <SysEquipVo>();
     allEquipList = EquipIndentificationUtil.getFilterAllEquipData();
     allEquipList.Sort(EquipIndentificationUtil.setSortCompareList);
 }