示例#1
0
        /// <summary>
        /// 添加数据
        /// </summary>
        /// <param name="database"></param>
        public void Add(table.StoreDataBase database)
        {
            if (null == database || database.storeId != MallId)
            {
                return;
            }
            int tag = (int)database.tag;

            if (!m_dic_mallDatas.ContainsKey(tag))
            {
                m_dic_mallDatas.Add(tag, MallTagData.Create(MallId, tag, database.tagName));
            }
            m_dic_mallDatas[tag].Add(database.mallItemId, (int)database.sortId);
        }
示例#2
0
 /// <summary>
 /// 构建日程信息
 /// </summary>
 public void StructScheduleInfo()
 {
     scheduleInfos.Clear();
     table.StoreDataBase store = LocalMall;
     if (null != store && !string.IsNullOrEmpty(store.ScheduleId))
     {
         string[] scheduleIdArray = store.ScheduleId.Split(new char[] { '_' });
         if (null != scheduleIdArray)
         {
             ScheduleDefine.ScheduleLocalData scheduleTemp = null;
             for (int i = 0; i < scheduleIdArray.Length; i++)
             {
                 if (string.IsNullOrEmpty(scheduleIdArray[i]))
                 {
                     continue;
                 }
                 scheduleTemp = new ScheduleDefine.ScheduleLocalData(uint.Parse(scheduleIdArray[i].Trim()));
                 scheduleInfos.Add(scheduleTemp);
             }
         }
     }
 }