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;
 }
예제 #2
0
        /// <summary>
        /// 初始化控件部分属性值
        /// </summary>
        private void InitControls()
        {
            HeadControl1.Channel1.PeriodCheck = false;
            HeadControl1.MySupportSoft        = AvailableSofts;
            //让弹出的渠道商下拉控件也支持不区分平台
            HeadControl1.Channel1.IsHasNoPlat = true;
            HeadControl1.IsHasNoPlat          = true;
            HeadControl1.IsSoftSingle         = false;
            HeadControl1.IsPlatSingle         = false;
            HeadControl1.ShowCheckBox         = true;
            HeadControl1.HiddenCompareTime    = false;
            HeadControl1.CheckBoxText         = "仅老用户";
            HeadControl1.CheckboxWidth        = "8%";
            HeadControl1.PlatWidth            = "12%";

            //设置周期及默认周期
            PeriodSelector1.AddPeriods(
                new net91com.Stat.Core.PeriodOptions[] {
                net91com.Stat.Core.PeriodOptions.NaturalMonth,
                net91com.Stat.Core.PeriodOptions.Of2Weeks,
                net91com.Stat.Core.PeriodOptions.Weekly,
                net91com.Stat.Core.PeriodOptions.Daily,
                net91com.Stat.Core.PeriodOptions.Hours,
            },
                net91com.Stat.Core.PeriodOptions.Daily);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            loginService.HaveUrlRight();
            HeadControl1.MySupportSoft           = AvailableSofts;
            HeadControl1.IsSoftSingle            = true;
            HeadControl1.IsPlatSingle            = true;
            HeadControl1.HiddenTime              = false;
            HeadControl1.IsHasNoPlat             = false;
            HeadControl1.Channel1.MaxCheckNumber = 1;
            HeadControl1.Channel1.IsHasNoPlat    = false;
            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.LatestOneWeek,
                net91com.Stat.Core.PeriodOptions.LatestTwoWeeks,
                net91com.Stat.Core.PeriodOptions.LatestOneMonth,
                net91com.Stat.Core.PeriodOptions.LatestThreeMonths
            },
                net91com.Stat.Core.PeriodOptions.LatestOneMonth);
            Period = PeriodSelector1.SelectedPeriod;

            GetQueryString();
            BindData();
        }
예제 #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            loginService.HaveUrlRight();

            HeadControl1.MySupportSoft     = AvailableSofts;
            HeadControl1.IsHasNoPlat       = false;
            HeadControl1.IsSoftSingle      = true;
            HeadControl1.IsPlatSingle      = true;
            HeadControl1.IsVersionSingle   = false;
            HeadControl1.HiddenCompareTime = true;
            HeadControl1.HiddenVersion     = false;
            HeadControl1.IsHasNoVersion    = false;
            HeadControl1.NewVersionInfo    = true;
            if (HeadControl1.IsFirstLoad)
            {
                GetVersionDict();
                HeadControl1.VersionID = DefaultVersion.Version;
            }
            //让弹出的渠道商下拉控件也支持不区分平台
            HeadControl1.Channel1.IsHasNoPlat = false;
            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;
            GetQueryString();
            SetStandardTime();
            BindData();
        }
예제 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            loginService.HaveUrlRight();

            HeadControl1.MySupportSoft = AvailableSofts;
            HeadControl1.IsHasNoPlat   = true;
            HeadControl1.IsSoftSingle  = true;
            HeadControl1.IsPlatSingle  = false;
            //让弹出的渠道商下拉控件也支持不区分平台
            HeadControl1.Channel1.IsHasNoPlat = true;
            PeriodSelector1.AddPeriods(
                new net91com.Stat.Core.PeriodOptions[]
            {
                net91com.Stat.Core.PeriodOptions.NaturalMonth,
                net91com.Stat.Core.PeriodOptions.Of2Weeks,
                net91com.Stat.Core.PeriodOptions.Weekly,
                net91com.Stat.Core.PeriodOptions.Daily,
                net91com.Stat.Core.PeriodOptions.Hours,
                net91com.Stat.Core.PeriodOptions.TimeOfDay
            },
                net91com.Stat.Core.PeriodOptions.Daily);
            Period = PeriodSelector1.SelectedPeriod;
            GetQueryString();
            SetCompareTime();
            SetStandardTime();
            IsSuperPeriod = (Period == net91com.Stat.Core.PeriodOptions.Hours || Period == net91com.Stat.Core.PeriodOptions.TimeOfDay);
            BindData();
        }
 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;
 }
예제 #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            loginService.HaveUrlRight();


            HeadControl1.CustomTypeSource     = GetAreaDict();
            HeadControl1.IsCustomTypeSingle   = false;
            HeadControl1.HiddenCustomType     = false;
            HeadControl1.MySupportSoft        = AvailableSofts;
            HeadControl1.IsHasNoPlat          = true;
            HeadControl1.IsSoftSingle         = true;
            HeadControl1.IsPlatSingle         = true;
            HeadControl1.HiddenCompareTime    = true;
            HeadControl1.Channel1.IsHasNoPlat = true;
            if (HeadControl1.IsFirstLoad)
            {
                HeadControl1.CustomType = !string.IsNullOrEmpty(Request["area"]) ? Request["area"] : DefaultArea.EnShortName;
            }
            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;
            GetQueryString();
            SetStandardTime();
            BindData();
        }
예제 #8
0
 /// <summary>
 /// 初始化控件部分属性值
 /// </summary>
 private void InitControls()
 {
     HeadControl1.MySupportSoft = AvailableSofts;
     HeadControl1.IsHasNoPlat   = true;
     HeadControl1.IsSoftSingle  = false;
     HeadControl1.IsPlatSingle  = false;
     HeadControl1.PlatWidth     = "12%";
     //设置周期及默认周期
     PeriodSelector1.AddPeriods(
         new net91com.Stat.Core.PeriodOptions[] {
         net91com.Stat.Core.PeriodOptions.NaturalMonth,
         net91com.Stat.Core.PeriodOptions.Weekly
     },
         net91com.Stat.Core.PeriodOptions.Weekly);
 }
예제 #9
0
        //public List<AreaRankInfo> ranks ;
        protected void Page_Load(object sender, EventArgs e)
        {
            //权限验证
            loginService.HaveUrlRight();

            //设置周期及默认周期
            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);

            HeadControl1.IsPlatSingle  = true;
            HeadControl1.IsHasNoPlat   = false;
            HeadControl1.IsSoftSingle  = true;
            HeadControl1.HiddenTime    = false;
            HeadControl1.MySupportSoft = AvailableSofts;
            GetQueryString();
            GetUrl();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            loginService.HaveUrlRight();

            //设置周期及默认周期
            PeriodSelector1.AddPeriods(
                new net91com.Stat.Core.PeriodOptions[] {
                net91com.Stat.Core.PeriodOptions.Daily,
                net91com.Stat.Core.PeriodOptions.Hours,
                net91com.Stat.Core.PeriodOptions.TimeOfDay
            },
                net91com.Stat.Core.PeriodOptions.Daily);

            Period            = PeriodSelector1.SelectedPeriod;
            inputzhouqi.Value = Period.GetDescription();
            //var list = new Monitor_DataLogsServer(true).GetLogNameAndServerIpCache(CacheTimeOption.TenMinutes).Select(p => p.DataLogName).Distinct().ToList();
            //Dictionary<string, string> dic = new Dictionary<string, string>();
            //list.ForEach(p => dic.Add(p, p));
            Dictionary <string, string> dic = Monitor_DataLogsServer.GetDataLogNameDirt();

            HeadControl1.LogNameSource   = dic;
            HeadControl1.IsHasNoServerIp = true;
            ReportTitle   = "日志曲线图";
            AxisJsonStr   = "{}";
            SeriesJsonStr = "[]";
            allList       = new List <List <Monitor_DataLogs> >();
            if (HeadControl1.IsFirstLoad)
            {
                HeadControl1.LogName = "sjqd";
                if (HeadControl1.IsHasNoServerIp)
                {
                    HeadControl1.ServerIp = "0";
                }
            }
            BindData();
        }
예제 #11
0
        /// <summary>
        /// 初始化控件
        /// </summary>
        private void InitControls()
        {
            //初始化控件的部分属性
            HeadControl1.Channel1.PeriodCheck = false;
            HeadControl1.MySupportSoft        = AvailableSofts;
            //让弹出的渠道商下拉控件也支持不区分平台
            HeadControl1.Channel1.IsHasNoPlat = true;
            HeadControl1.IsHasNoPlat          = true;
            HeadControl1.IsSoftSingle         = false;
            HeadControl1.IsPlatSingle         = false;
            HeadControl1.HiddenCompareTime    = false;

            //设置周期及默认周期
            PeriodSelector1.AddPeriods(
                new net91com.Stat.Core.PeriodOptions[] {
                net91com.Stat.Core.PeriodOptions.NaturalMonth,
                net91com.Stat.Core.PeriodOptions.Of2Weeks,
                net91com.Stat.Core.PeriodOptions.Weekly,
                net91com.Stat.Core.PeriodOptions.Daily,
                net91com.Stat.Core.PeriodOptions.Hours,
                net91com.Stat.Core.PeriodOptions.TimeOfDay,
            },
                net91com.Stat.Core.PeriodOptions.Daily);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            loginService.HaveUrlRight("Reports/SoftVersionSjqd.aspx");

            //设置周期及默认周期
            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 (!string.IsNullOrEmpty(Request["Channelid"]) && !string.IsNullOrEmpty(Request["Channeltype"]))
            {
                ChannelID.Value   = Request["Channelid"];
                ChannelType.Value = Request["Channeltype"];
            }

            channelId  = Convert.ToInt32(ChannelID.Value);
            customType = Convert.ToInt32(ChannelType.Value);
            //所有产品
            mySupportSoft = AvailableSofts;

            if (customType == (int)ChannelTypeOptions.Category)
            {
                var node = new CfgChannelService().GetChannelCategory(channelId);
                softsid        = node.SoftID;
                Name.InnerHtml = node.Name;
            }
            else
            {
                var node = new CfgChannelService().GetChannelCustomer(channelId);
                softsid        = node.SoftID;
                Name.InnerHtml = node.Name;
            }
            //没有权限
            var softinfo = mySupportSoft.Find(p => p.ID == softsid);

            if (softinfo == null)
            {
                RedirectNoright();
            }
            MySupportPlat = softinfo.Platforms;

            if (fromtime.Value == "" || totime.Value == "")
            {
                endtime        = ds.GetMaxTimeCache(net91com.Stat.Core.PeriodOptions.Daily, ReportType.UserUseNewActivity, CacheTimeOption.TenMinutes);
                endtime        = endtime.Date;
                begintime      = endtime.AddDays(-30);
                fromtime.Value = begintime.ToString("yyyy-MM-dd");
                totime.Value   = endtime.ToString("yyyy-MM-dd");
            }
            else
            {
                begintime = Convert.ToDateTime(fromtime.Value);
                endtime   = Convert.ToDateTime(totime.Value);
            }


            //绑定数据
            BindData();
        }