private void LoadData()
 {
     DataRow drOne = ShopStatisticHelper.MemberGlobal_GetCountInfo();
     if (drOne != null)
     {
         this.ActiveUserQty = base.GetFieldValue(drOne, "ActiveUserQty");
         this.SleepUserQty = base.GetFieldValue(drOne, "SleepUserQty");
         this.SuccessTradeUserQty = base.GetFieldValue(drOne, "SuccessTradeUserQty");
         this.SuccessTradeUserQty_Yesterday = base.GetFieldValue(drOne, "SuccessTradeUserQty_Yesterday");
         this.PotentialUserQty = base.GetFieldValue(drOne, "PotentialUserQty");
         this.PotentialUserQty_Yesterday = base.GetFieldValue(drOne, "PotentialUserQty_Yesterday");
         this.CollectUserQty = base.GetFieldValue(drOne, "CollectUserQty");
         this.CartUserQty = base.GetFieldValue(drOne, "CartUserQty");
         DataRow row2 = ShopStatisticHelper.ShopGlobal_GetMemberCount();
         this.MemberQty = base.GetFieldValue(row2, "MemberQty");
     }
     DataTable table = ShopStatisticHelper.MemberGlobal_GetStatisticList(1);
     DataTable table2 = ShopStatisticHelper.MemberGlobal_GetStatisticList(2);
     this.MemberGradeList = "";
     int num = 0;
     int count = table.Rows.Count;
     foreach (DataRow row3 in table.Rows)
     {
         this.MemberGradeList = this.MemberGradeList + "'" + base.GetFieldValue(row3, "Name") + "'";
         this.QtyList_Grade = this.QtyList_Grade + "{" + string.Format("value:{0}, name:'{1}'", base.GetFieldValue(row3, "Total"), base.GetFieldValue(row3, "Name")) + "}";
         if (num < (count - 1))
         {
             this.MemberGradeList = this.MemberGradeList + ",";
             this.QtyList_Grade = this.QtyList_Grade + ",";
         }
         this.QtyList_Grade = this.QtyList_Grade + "\n";
         num++;
     }
     DataView defaultView = table2.DefaultView;
     defaultView.Sort = "Total Desc";
     table2 = defaultView.ToTable();
     this.RegionNameList = "";
     this.RegionQtyList = "";
     num = 0;
     count = table2.Rows.Count;
     if (count > 9)
     {
         count = 9;
     }
     foreach (DataRow row4 in table2.Rows)
     {
         if (num >= 9)
         {
             break;
         }
         this.RegionNameList = this.RegionNameList + "'" + base.GetFieldValue(row4, "RegionName") + "'";
         this.RegionQtyList = this.RegionQtyList + base.GetFieldValue(row4, "Total");
         if (num < (count - 1))
         {
             this.RegionNameList = this.RegionNameList + ",";
             this.RegionQtyList = this.RegionQtyList + ",";
         }
         num++;
     }
 }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DateTime today     = DateTime.Today;
            DateTime beginDate = today.AddDays(-6.0);



            if (!base.IsPostBack)
            {
                SiteSettings masterSettings = SettingsManager.GetMasterSettings(false);
                this.lbShopName.Text = masterSettings.SiteName;
                if (this.imgLogo != null)
                {
                    this.imgLogo.Src = masterSettings.DistributorLogoPic;
                    if (!File.Exists(base.Server.MapPath(masterSettings.DistributorLogoPic)))
                    {
                        this.imgLogo.Src = "/Admin/Shop/Public/images/80x80.png";
                    }
                }

                int    port = base.Request.Url.Port;
                string text = (port == 80) ? "" : (":" + port.ToString());
                this.showUrl = string.Concat(new string[]
                {
                    "http://",
                    base.Request.Url.Host,
                    text,
                    Globals.ApplicationPath,
                    "/default.aspx"
                });
                DataRow drOne  = ShopStatisticHelper.ShopGlobal_GetMemberCount();
                DataRow drOne2 = ShopStatisticHelper.ShopGlobal_GetOrderCountByDate(today);
                DataRow drOne3 = ShopStatisticHelper.ShopGlobal_GetOrderCountByDate(today.AddDays(-1.0));
                this.WaitSendOrderQty         = base.GetFieldValue(drOne, "WaitSendOrderQty");
                this.OrderQty_Today           = base.GetFieldValue(drOne2, "OrderQty");
                this.OrderQty_Yesterday       = base.GetFieldValue(drOne3, "OrderQty");
                this.OrderAmountFee_Today     = base.GetFieldDecimalValue(drOne2, "OrderAmountFee").ToString("N2");
                this.OrderAmountFee_Yesterday = base.GetFieldDecimalValue(drOne3, "OrderAmountFee").ToString("N2");
                this.ServiceOrderQty          = base.GetFieldValue(drOne, "ServiceOrderQty");
                this.lbServiceOrderQty.Text   = this.ServiceOrderQty;
                if (this.ServiceOrderQty == "0")
                {
                    this.lbServiceOrderQty.ForeColor = Color.Green;
                }
                else
                {
                    this.lbServiceOrderQty.ForeColor = Color.Red;
                }
                this.GoodsQty       = base.GetFieldValue(drOne, "GoodsQty");
                this.MemberQty      = base.GetFieldValue(drOne, "MemberQty");
                this.DistributorQty = base.GetFieldValue(drOne, "DistributorQty");
                //this.LoadTradeDataList(beginDate, 7);
                this.rptDistributor.DataSource = ShopStatisticHelper.ShopGlobal_GetSortList_Distributor(beginDate, 8);
                this.rptDistributor.DataBind();
                this.rptMember.DataSource = ShopStatisticHelper.ShopGlobal_GetSortList_Member(beginDate, 8);
                this.rptMember.DataBind();
            }
        }
Esempio n. 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DateTime today     = DateTime.Today;
            DateTime beginDate = today.AddDays(-7.0);

            wid = GetCurWebId();
            if (string.IsNullOrEmpty(wid))
            {
                return;
            }

            if (!base.IsPostBack)
            {
                //SiteSettings masterSettings = SettingsManager.GetMasterSettings(false);
                //this.lbShopName.Text = masterSettings.SiteName;
                //this.imgLogo.Src = masterSettings.DistributorLogoPic;

                Chenduo.BLL.sf_website   bll     = new Chenduo.BLL.sf_website();
                Chenduo.Model.sf_website website = bll.GetModelByWid(wid);
                this.lbShopName.Text = website.sitename;
                this.imgLogo.Src     = website.logo;
                if (!File.Exists(base.Server.MapPath(website.logo /*masterSettings.DistributorLogoPic*/)))
                {
                    this.imgLogo.Src = "http://fpoimg.com/80x80";
                }
                int    port = base.Request.Url.Port;
                string str  = (port == 80) ? "" : (":" + port.ToString());
                this.showUrl = "http://" + base.Request.Url.Host + str + Globals.ApplicationPath + "/default.aspx?wid=" + this.wid;
                DataRow drOne = ShopStatisticHelper.ShopGlobal_GetMemberCount(this.wid);
                DataRow row2  = ShopStatisticHelper.ShopGlobal_GetOrderCountByDate(today, this.wid);
                DataRow row3  = ShopStatisticHelper.ShopGlobal_GetOrderCountByDate(today.AddDays(-1.0), this.wid);
                this.WaitSendOrderQty         = base.GetFieldValue(drOne, "WaitSendOrderQty");
                this.OrderQty_Today           = base.GetFieldValue(row2, "OrderQty");
                this.OrderQty_Yesterday       = base.GetFieldValue(row3, "OrderQty");
                this.OrderAmountFee_Today     = base.GetFieldDecimalValue(row2, "OrderAmountFee").ToString("N2");
                this.OrderAmountFee_Yesterday = base.GetFieldDecimalValue(row3, "OrderAmountFee").ToString("N2");
                this.ServiceOrderQty          = base.GetFieldValue(drOne, "ServiceOrderQty");
                this.lbServiceOrderQty.Text   = this.ServiceOrderQty;
                if (this.ServiceOrderQty == "0")
                {
                    this.lbServiceOrderQty.ForeColor = Color.Green;
                }
                else
                {
                    this.lbServiceOrderQty.ForeColor = Color.Red;
                }
                this.GoodsQty       = base.GetFieldValue(drOne, "GoodsQty");
                this.MemberQty      = base.GetFieldValue(drOne, "MemberQty");
                this.DistributorQty = base.GetFieldValue(drOne, "DistributorQty");
                this.LoadTradeDataList(beginDate, 7);
                this.rptDistributor.DataSource = ShopStatisticHelper.ShopGlobal_GetSortList_Distributor(beginDate, 8, this.wid);
                this.rptDistributor.DataBind();
                this.rptMember.DataSource = ShopStatisticHelper.ShopGlobal_GetSortList_Member(beginDate, 8, this.wid);
                this.rptMember.DataBind();
            }
        }
Esempio n. 4
0
        private void LoadData()
        {
            System.Data.DataRow dataRow = ShopStatisticHelper.MemberGlobal_GetCountInfo();
            if (dataRow != null)
            {
                this.ActiveUserQty                 = base.GetFieldValue(dataRow, "ActiveUserQty");
                this.SleepUserQty                  = base.GetFieldValue(dataRow, "SleepUserQty");
                this.SuccessTradeUserQty           = base.GetFieldValue(dataRow, "SuccessTradeUserQty");
                this.SuccessTradeUserQty_Yesterday = base.GetFieldValue(dataRow, "SuccessTradeUserQty_Yesterday");
                this.PotentialUserQty              = base.GetFieldValue(dataRow, "PotentialUserQty");
                this.PotentialUserQty_Yesterday    = base.GetFieldValue(dataRow, "PotentialUserQty_Yesterday");
                this.CollectUserQty                = base.GetFieldValue(dataRow, "CollectUserQty");
                this.CartUserQty = base.GetFieldValue(dataRow, "CartUserQty");
                System.Data.DataRow drOne = ShopStatisticHelper.ShopGlobal_GetMemberCount();
                this.MemberQty = base.GetFieldValue(drOne, "MemberQty");
            }
            System.Data.DataTable dataTable  = ShopStatisticHelper.MemberGlobal_GetStatisticList(1);
            System.Data.DataTable dataTable2 = ShopStatisticHelper.MemberGlobal_GetStatisticList(2);
            this.MemberGradeList = "";
            int num  = 0;
            int num2 = dataTable.Rows.Count;

            foreach (System.Data.DataRow drOne2 in dataTable.Rows)
            {
                this.MemberGradeList = this.MemberGradeList + "'" + base.GetFieldValue(drOne2, "Name") + "'";
                this.QtyList_Grade   = this.QtyList_Grade + "{" + string.Format("value:{0}, name:'{1}'", base.GetFieldValue(drOne2, "Total"), base.GetFieldValue(drOne2, "Name")) + "}";
                if (num < num2 - 1)
                {
                    this.MemberGradeList += ",";
                    this.QtyList_Grade   += ",";
                }
                this.QtyList_Grade += "\n";
                num++;
            }
            System.Data.DataView defaultView = dataTable2.DefaultView;
            defaultView.Sort    = "Total Desc";
            dataTable2          = defaultView.ToTable();
            this.RegionNameList = "";
            this.RegionQtyList  = "";
            num  = 0;
            num2 = dataTable2.Rows.Count;
            if (num2 > 9)
            {
                num2 = 9;
            }
            foreach (System.Data.DataRow drOne3 in dataTable2.Rows)
            {
                if (num >= 9)
                {
                    break;
                }
                this.RegionNameList = this.RegionNameList + "'" + base.GetFieldValue(drOne3, "RegionName") + "'";
                this.RegionQtyList += base.GetFieldValue(drOne3, "Total");
                if (num < num2 - 1)
                {
                    this.RegionNameList += ",";
                    this.RegionQtyList  += ",";
                }
                num++;
            }
        }