Example #1
0
 //  分配SeasonType任务
 public void SeasonTypeAssignTask(BRBaseParam param, Dictionary <string, List <string> > taskDic)
 {
     //  更新SeasonType任务,除了21类型,将在后面添加,因为需要tableId参数
     foreach (var kv in taskDic)
     {
         if (kv.Key == "add")
         {
             kv.Value.ForEach(o =>
             {
                 SeasonTypeParam st = param.CopyCreateParam <SeasonTypeParam>();
                 st.SeasonTypeId    = o;
                 if (o != "21")
                 {
                     LeagueManager.AddOrUpdateParam(st);
                 }
             });
         }
         else
         {
             kv.Value.ForEach(o =>
             {
                 SeasonTypeParam st = param.CopyCreateParam <SeasonTypeParam>();
                 st.SeasonTypeId    = o;
                 LeagueManager.RemoveParam(st);
             });
         }
     }
 }
Example #2
0
        public void Process(ITakerReptile.Dto.BaseData data)
        {
            BRData          bd    = data as BRData;
            SeasonTypeParam param = bd.Param as SeasonTypeParam;

            CheckSetHistoryParam(param);

            string txt;

            if (!HtmlDecode(bd.Html, out txt))
            {
                return;
            }

            var xml       = new XmlHelper(txt);
            var cdataFlag = "//c";
            var cdata     = xml.GetValues(cdataFlag);
        }