private void Bind() { DN.WeiAd.Business.Entity.Analysis.FlowInfo flow = new DN.WeiAd.Business.Entity.Analysis.FlowInfo(); flow.AdId = int.Parse(hidAdId.Value); flow.FlowUserId = int.Parse(hidFlowUserId.Value); flow.Time = DateTime.Now; var chart = AnalysisFlowBLL.Instance.GetHistoryMonthDays(flow); hidDataJson.Value = DN.Framework.Utility.Serializer.SerializeObject(chart); }
private void Bind(int pageIndex = 1) { AdUserPagePara cip = new AdUserPagePara(); cip.PageIndex = pageIndex - 1; cip.PageSize = 10; cip.AdPageId = int.Parse(hidAdId.Value); cip.OrderBy = " id desc "; var list = AdUserPageBLL.Instance.GetModels(ref cip); rptTable.DataSource = list; rptTable.DataBind(); DN.WeiAd.Business.Entity.Analysis.FlowInfo finfo = new DN.WeiAd.Business.Entity.Analysis.FlowInfo(); finfo.AdId = int.Parse(hidAdId.Value); finfo.Time = DateTime.Now; //var table = AnalysisAdBLL.Instance.GetAdFlowDetail(finfo); for (int i = 0; i < rptTable.Items.Count; i++) { Literal ltPv = (Literal)rptTable.Items[i].FindControl("ltPv"); Literal ltUv = (Literal)rptTable.Items[i].FindControl("ltUv"); Literal ltIp = (Literal)rptTable.Items[i].FindControl("ltIp"); HiddenField hidFlowUserId = (HiddenField)rptTable.Items[i].FindControl("hidFlowUserId"); //var row = table.Select(string.Format("FlowUserId={0}", hidFlowUserId.Value)); //if(row!= null && row.Length >=1) //{ // ltPv.Text = row[0]["pvcount"].ToString(); // ltUv.Text = row[0]["uvcount"].ToString(); // ltIp.Text = row[0]["ipcount"].ToString(); //} } apPager.RecordCount = cip.Recount.Value; apPager.PageSize = cip.PageSize.Value; }