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++;
     }
 }
示例#2
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");
                this.MemberQty   = base.GetFieldValue(dataRow, "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 drOne in dataTable.Rows)
            {
                this.MemberGradeList = this.MemberGradeList + "'" + base.GetFieldValue(drOne, "Name") + "'";
                this.QtyList_Grade   = this.QtyList_Grade + "{" + string.Format("value:{0}, name:'{1}'", base.GetFieldValue(drOne, "Total"), base.GetFieldValue(drOne, "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 drOne2 in dataTable2.Rows)
            {
                if (num >= 9)
                {
                    break;
                }
                this.RegionNameList = this.RegionNameList + "'" + base.GetFieldValue(drOne2, "RegionName") + "'";
                this.RegionQtyList += base.GetFieldValue(drOne2, "Total");
                if (num < num2 - 1)
                {
                    this.RegionNameList += ",";
                    this.RegionQtyList  += ",";
                }
                num++;
            }
        }