protected void GetQueryString()
 {
     //初次加载一些参数设置成默认值
     ReportTitle   = "活跃用户留存率(国家,海外)";
     AxisJsonStr   = "{}";
     SeriesJsonStr = "[]";
     //设置周期及默认周期
     PeriodSelector1.AddPeriods(
         new net91com.Stat.Core.PeriodOptions[] {
         net91com.Stat.Core.PeriodOptions.Daily
     },
         net91com.Stat.Core.PeriodOptions.Daily);
     Period = PeriodSelector1.SelectedPeriod;
     if (HeadControl1.IsFirstLoad)
     {
         //获取默认时间
         EndTime                        = DateTime.Now.Date.AddDays(-1);
         BeginTime                      = EndTime.AddDays(-50);
         HeadControl1.PlatID            = CookiePlatid.ToString();
         HeadControl1.SoftID            = CookieSoftid.ToString();
         HeadControl1.BeginTime         = BeginTime;
         HeadControl1.EndTime           = EndTime;
         HeadControl1.Channel1.SoftId   = HeadControl1.SoftID.ToString();
         HeadControl1.Channel1.Platform = HeadControl1.PlatID.ToString();
     }
     else //用户选择模式
     {
         BeginTime = HeadControl1.BeginTime;
         EndTime   = HeadControl1.EndTime;
         SetRequestCookie(Convert.ToInt32(HeadControl1.SoftID), Convert.ToInt32(HeadControl1.PlatID));
     }
     HeadControl1.Channel1.PeriodCheck = false;
 }
 protected void GetQueryString()
 {
     //初次加载一些参数设置成默认值
     ReportTitle   = "新增用户留存率(版本)";
     AxisJsonStr   = "{}";
     SeriesJsonStr = "[]";
     //设置周期及默认周期
     PeriodSelector1.AddPeriods(
         new net91com.Stat.Core.PeriodOptions[] {
         net91com.Stat.Core.PeriodOptions.NaturalMonth,
         net91com.Stat.Core.PeriodOptions.Weekly,
         net91com.Stat.Core.PeriodOptions.Daily
     },
         net91com.Stat.Core.PeriodOptions.Daily);
     Period = PeriodSelector1.SelectedPeriod;
     if (HeadControl1.IsFirstLoad)
     {
         //获取默认时间
         EndTime                        = DateTime.Now.Date.AddDays(-1); //ds.GetMaxTimeCache(Period, ReportType.UserRetained,Core.CacheTimeOption.TenMinutes);
         BeginTime                      = EndTime.AddDays(-50);
         HeadControl1.PlatID            = CookiePlatid.ToString();
         HeadControl1.SoftID            = CookieSoftid.ToString();
         HeadControl1.BeginTime         = BeginTime;
         HeadControl1.EndTime           = EndTime;
         HeadControl1.Channel1.SoftId   = HeadControl1.SoftID.ToString();
         HeadControl1.Channel1.Platform = HeadControl1.PlatID.ToString();
     }
     else //用户选择模式
     {
         BeginTime = HeadControl1.BeginTime;
         EndTime   = HeadControl1.EndTime;
         SetRequestCookie(Convert.ToInt32(HeadControl1.SoftID), Convert.ToInt32(HeadControl1.PlatID));
     }
     HeadControl1.Channel1.PeriodCheck = false;
 }
Exemple #3
0
        protected void GetQueryString()
        {
            if (HeadControl1.IsFirstLoad)
            {
                EndTime   = DateTime.Now.Date.AddDays(-1);
                BeginTime = EndTime.AddDays(-30);

                HeadControl1.PlatID = CookiePlatid.ToString();
                HeadControl1.SoftID = CookieSoftid.ToString();

                inputzhouqi.Value              = Period.GetDescription();
                HeadControl1.BeginTime         = BeginTime;
                HeadControl1.EndTime           = EndTime;
                HeadControl1.Channel1.SoftId   = HeadControl1.SoftID.ToString();
                HeadControl1.Channel1.Platform = HeadControl1.PlatID.ToString();
            }
            else
            {
                BeginTime = HeadControl1.BeginTime;
                EndTime   = HeadControl1.EndTime;

                SetRequestCookie(Convert.ToInt32(HeadControl1.SoftID), Convert.ToInt32(HeadControl1.PlatID));
            }
            HeadControl1.Channel1.PeriodCheck = false;
        }
 protected void GetQueryString()
 {
     if (HeadControl1.IsFirstLoad)
     {
         EndTime                = DateTime.Now.Date.AddDays(-1);
         BeginTime              = EndTime.AddDays(-30);
         HeadControl1.PlatID    = CookiePlatid.ToString();
         HeadControl1.SoftID    = CookieSoftid.ToString();
         HeadControl1.BeginTime = BeginTime;
         HeadControl1.EndTime   = EndTime;
     }
     else
     {
         BeginTime = HeadControl1.BeginTime;
         EndTime   = HeadControl1.EndTime;
         SetRequestCookie(Convert.ToInt32(HeadControl1.SoftID), Convert.ToInt32(HeadControl1.PlatID));
     }
 }