示例#1
0
        void BindData()
        {
            try
            {
                var zone      = AdminMgr.GetSelectZoneIdInt(HttpContext.Current, ddlZone);
                var startTime = DateTime.Today.AddDays(-15);
                var endTime   = DateTime.Today;
                var list      = StatisticKpiMgr.GetbyDate(zone, startTime, endTime);
                for (int i = 0; i < list.Count; i++)
                {
                    list[i].RetentionPercent2  = list[i].Retention2.ToString() + "  " + GetPercent(list[i].Retention2, i, list);
                    list[i].RetentionPercent3  = list[i].Retention3.ToString() + "  " + GetPercent(list[i].Retention3, i, list);
                    list[i].RetentionPercent4  = list[i].Retention4.ToString() + "  " + GetPercent(list[i].Retention4, i, list);
                    list[i].RetentionPercent5  = list[i].Retention5.ToString() + "  " + GetPercent(list[i].Retention5, i, list);
                    list[i].RetentionPercent6  = list[i].Retention6.ToString() + "  " + GetPercent(list[i].Retention6, i, list);
                    list[i].RetentionPercent7  = list[i].Retention7.ToString() + "  " + GetPercent(list[i].Retention7, i, list);
                    list[i].RetentionPercent15 = list[i].Retention15.ToString() + "  " + GetPercent(list[i].Retention7, i, list);
                    list[i].RetentionPercent30 = list[i].Retention30.ToString() + "  " + GetPercent(list[i].Retention7, i, list);
                }
                datagrid2.DataSource = list;

                datagrid2.DataBind();
                lblInviteNumber.Text = FriendinviteMgr.GetAllNumber(ddlZone.SelectedValue).ToString();
            }
            catch (Exception ex)
            {
                LogHelper.Insert(ex);
            }
        }
示例#2
0
 public void Testw1()
 {
     try
     {
         var list = StatisticKpiMgr.GetbyDate(0, DateTime.Now.AddDays(-5), DateTime.Now);
         var r    = list;
         var rr   = r;
     }
     catch (Exception e)
     {
         var r  = e;
         var ee = r;
     }
 }
示例#3
0
 void BindDetail(DateTime recordDate)
 {
     try
     {
         var list = StatisticKpiMgr.GetbyDate(1, recordDate, recordDate);
         datagrid3.DataSource = list;
         datagrid3.DataBind();
         ltlMessage.Text = "";
     }
     catch (Exception ex)
     {
         LogHelper.Insert(ex);
         ShowMessage(ex.Message);
     }
 }
示例#4
0
 protected void btnSearch_Click(object sender, EventArgs e)
 {
     try
     {
         var zone     = AdminMgr.GetSelectZoneIdInt(HttpContext.Current, ddlZone);
         var starTime = Convert.ToDateTime(txtStartTime.Value);
         var endTime  = Convert.ToDateTime(txtEndTime.Value);
         var list     = StatisticKpiMgr.GetbyDate(zone, starTime, endTime);
         if (list != null && list.Count > 0)
         {
             for (int i = 0; i < list.Count; i++)
             {
                 list[i].RetentionPercent2  = list[i].Retention2.ToString() + "  " + GetPercent(list[i].Retention2, i, list);
                 list[i].RetentionPercent3  = list[i].Retention3.ToString() + "  " + GetPercent(list[i].Retention3, i, list);
                 list[i].RetentionPercent4  = list[i].Retention4.ToString() + "  " + GetPercent(list[i].Retention4, i, list);
                 list[i].RetentionPercent5  = list[i].Retention5.ToString() + "  " + GetPercent(list[i].Retention5, i, list);
                 list[i].RetentionPercent6  = list[i].Retention6.ToString() + "  " + GetPercent(list[i].Retention6, i, list);
                 list[i].RetentionPercent7  = list[i].Retention7.ToString() + "  " + GetPercent(list[i].Retention7, i, list);
                 list[i].RetentionPercent15 = list[i].Retention15.ToString() + "  " + GetPercent(list[i].Retention7, i, list);
                 list[i].RetentionPercent30 = list[i].Retention30.ToString() + "  " + GetPercent(list[i].Retention7, i, list);
             }
             var total = new StatisticKpiEntity();
             total.RecordDateStr = "合计";
             foreach (var entity in list)
             {
                 total.Dau            += entity.Dau;
                 total.DNewUser       += entity.DNewUser;
                 total.DNewManager    += entity.DNewManager;
                 total.PayTotal       += entity.PayTotal;
                 total.Pcu            += entity.Pcu;
                 total.Acu            += entity.Acu;
                 total.PointRemain    += entity.PointRemain;
                 total.PointConsume   += entity.PointConsume;
                 total.PointCirculate += entity.PointCirculate;
                 total.RecordDate      = DateTime.MinValue;
             }
             list.Add(total);
         }
         datagrid2.DataSource = list;
         datagrid2.DataBind();
         ltlMessage.Text = "";
     }
     catch (Exception ex)
     {
         LogHelper.Insert(ex);
         ShowMessage(ex.Message);
     }
 }
示例#5
0
 void BindData()
 {
     try
     {
         var zone      = AdminMgr.GetSelectZoneIdInt(HttpContext.Current, ddlZone);
         var startTime = DateTime.Today.AddDays(-5);
         var endTime   = DateTime.Today;
         var list      = StatisticKpiMgr.GetbyDate(zone, startTime, endTime);
         datagrid1.DataSource = list;
         datagrid1.DataBind();
     }
     catch (Exception ex)
     {
         LogHelper.Insert(ex);
     }
 }
示例#6
0
 public void OpenGamble()
 {
     try
     {
         var time1    = DateTime.ParseExact("20160601", "yyyyMMdd", null);
         var time2    = DateTime.ParseExact("20160611", "yyyyMMdd", null);
         var starTime = Convert.ToDateTime(time1);
         var endTime  = Convert.ToDateTime(time2);
         var list     = StatisticKpiMgr.GetbyDate(1, starTime, endTime);
         foreach (var VARIABLE in list)
         {
         }
     }
     catch (Exception ex)
     {
     }
 }
示例#7
0
 void BindData()
 {
     try
     {
         var zone     = AdminMgr.GetSelectZoneIdInt(HttpContext.Current, ddlZone);
         var starTime = Convert.ToDateTime(txtStartTime.Value);
         var endTime  = Convert.ToDateTime(txtEndTime.Value);
         var list     = StatisticKpiMgr.GetbyDate(zone, starTime, endTime);
         for (int i = 0; i < list.Count; i++)
         {
             var c = list[i].CoinConsume;
             list[i].CoinConsume = c * -1;
         }
         datagrid2.DataSource = list;
         datagrid2.DataBind();
     }
     catch (Exception ex)
     {
         LogHelper.Insert(ex);
     }
 }
示例#8
0
 protected void btnSearch_Click(object sender, EventArgs e)
 {
     try
     {
         var zone     = AdminMgr.GetSelectZoneIdInt(HttpContext.Current, ddlZone);
         var starTime = Convert.ToDateTime(txtStartTime.Value);
         var endTime  = Convert.ToDateTime(txtEndTime.Value);
         var list     = StatisticKpiMgr.GetbyDate(zone, starTime, endTime);
         if (list != null && list.Count > 0)
         {
             var total = new StatisticKpiEntity();
             total.RecordDateStr = "合计";
             foreach (var entity in list)
             {
                 total.Dau            += entity.Dau;
                 total.DNewUser       += entity.DNewUser;
                 total.DNewManager    += entity.DNewManager;
                 total.PayTotal       += entity.PayTotal;
                 total.Pcu            += entity.Pcu;
                 total.Acu            += entity.Acu;
                 total.PointRemain    += entity.PointRemain;
                 total.PointConsume   += entity.PointConsume;
                 total.PointCirculate += entity.PointCirculate;
                 total.RecordDate      = DateTime.MinValue;
             }
             list.Add(total);
         }
         datagridzone.DataSource = list;
         datagridzone.DataBind();
         ltlMessage.Text = "";
     }
     catch (Exception ex)
     {
         LogHelper.Insert(ex);
         ShowMessage(ex.Message);
     }
 }