コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         SiteSettings        siteSettings = HiContext.Current.SiteSettings;
         AdminStatisticsInfo statistics   = SalesHelper.GetStatistics(siteSettings.MemberBirthDaySetting);
         this.BindStatistics(statistics);
         if (!siteSettings.OpenPcShop)
         {
             this.liMessage.Visible = false;
         }
         if (!siteSettings.OpenSupplier)
         {
             this.liSupplierDrawRequest.Visible = false;
             this.liSupplierProduct.Visible     = false;
             this.liSupplierApply1.Visible      = false;
             this.liSupplierApply2.Visible      = false;
         }
         if (!siteSettings.OpenPcShop && siteSettings.OpenWap == 0 && siteSettings.OpenVstore == 0 && siteSettings.OpenAliho == 0 && siteSettings.OpenMobbile == 0)
         {
             this.liUserBalance.Visible  = false;
             this.liUserDraw.Visible     = false;
             this.divGroupbuy.Visible    = false;
             this.divUserBalance.Visible = false;
         }
     }
 }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     grdOrders.RowDataBound         += new GridViewRowEventHandler(grdOrders_RowDataBound);
     grdPurchaseOrders.RowDataBound += new GridViewRowEventHandler(grdPurchaseOrders_RowDataBound);
     btnEditOrder.Click             += new EventHandler(btnEditOrder_Click);
     if (!Page.IsPostBack)
     {
         int num;
         if (int.TryParse(base.Request.QueryString["Status"], out num))
         {
             hidStatus.Value = num.ToString();
         }
         AdminStatisticsInfo statistics = SalesHelper.GetStatistics();
         BindStatistics(statistics);
         BindPurchaseOrders();
         BindOrders();
     }
     if ((Page.Request["action"] == "EditPurchaseOrder") && (Page.Request["PurchaseId"] != null))
     {
         PurchaseOrderInfo purchaseOrder = SalesHelper.GetPurchaseOrder(Page.Request["PurchaseId"].ToString());
         StringBuilder     builder       = new StringBuilder();
         if (purchaseOrder != null)
         {
             builder.Append("{");
             builder.Append("\"PurchaseTotal\":\"" + purchaseOrder.GetPurchaseTotal().ToString("F", CultureInfo.InvariantCulture) + "\"");
             builder.Append("}");
             Page.Response.ContentType = "text/plain";
             base.Response.Write(builder.ToString());
             base.Response.End();
         }
     }
 }
コード例 #3
0
 private void BindStatistics(AdminStatisticsInfo statistics)
 {
     Users.GetUser(HiContext.Current.User.UserId);
     if (statistics.OrderNumbWaitConsignment > 0)
     {
         this.ltrWaitSendOrdersNumber.NavigateUrl = "javascript:ShowSecondMenuLeft('订 单','sales/manageorder.aspx','" + Globals.ApplicationPath + "/Admin/sales/ManageOrder.aspx?orderStatus=2')";
     }
     this.ltrWaitSendOrdersNumber.Text = ((statistics.OrderNumbWaitConsignment > 0) ? (statistics.OrderNumbWaitConsignment.ToString() + "条") : "<font style=\"color:#2d2d2d\">0条</font>");
     this.hpkLiuYan.Text                  = ((statistics.LeaveComments > 0) ? (statistics.LeaveComments.ToString() + "条") : "<font style=\"color:#2d2d2d\">0条</font>");
     this.hpkZiXun.Text                   = ((statistics.ProductConsultations > 0) ? (statistics.ProductConsultations.ToString() + "条") : "<font style=\"color:#2d2d2d\">0条</font>");
     this.hpkMessages.Text                = ((statistics.Messages > 0) ? (statistics.Messages.ToString() + "条") : "<font style=\"color:#2d2d2d\">0条</font>");
     this.hpkLiuYan.NavigateUrl           = "javascript:ShowSecondMenuLeft('CRM管理','comment/manageleavecomments.aspx','" + Globals.ApplicationPath + "/Admin/comment/ManageLeaveComments.aspx?MessageStatus=3')";
     this.hpkZiXun.NavigateUrl            = "javascript:ShowSecondMenuLeft('CRM管理','comment/productconsultations.aspx',null)";
     this.hpkMessages.NavigateUrl         = "javascript:ShowSecondMenuLeft('CRM管理','comment/receivedmessages.aspx','" + Globals.ApplicationPath + "/Admin/comment/ReceivedMessages.aspx?IsRead=0')";
     this.lblTodayOrderAmout.Text         = ((statistics.OrderPriceToday > 0m) ? ("¥" + Globals.FormatMoney(statistics.OrderPriceToday)) : string.Empty);
     this.ltrTodayAddMemberNumber.Text    = ((statistics.UserNewAddToday > 0) ? statistics.UserNewAddToday.ToString() : string.Empty);
     this.lblMembersBalanceTotal.Text     = "¥" + Globals.FormatMoney(statistics.MembersBalance);
     this.lblMemberBlancedrawRequest.Text = ((statistics.MemberBlancedrawRequest > 0) ? ("<a href=\"javascript:ShowSecondMenuLeft('财务管理','member/balancedrawrequest.aspx','member/balancedrawrequest.aspx')\">" + statistics.MemberBlancedrawRequest.ToString() + "条</a>") : string.Empty);
     this.lblTodayFinishOrder.Text        = ((statistics.TodayFinishOrder > 0) ? statistics.TodayFinishOrder.ToString() : string.Empty);
     this.lblYesterdayFinishOrder.Text    = ((statistics.YesterdayFinishOrder > 0) ? statistics.YesterdayFinishOrder.ToString() : string.Empty);
     this.lblOrderPriceYesterDay.Text     = ((statistics.OrderPriceYesterDay > 0m) ? ("¥" + statistics.OrderPriceYesterDay.ToString("F2")) : string.Empty);
     this.lblUserNewAddYesterToday.Text   = ((statistics.UserNewAddYesterToday > 0) ? (statistics.UserNewAddYesterToday.ToString() + "位") : string.Empty);
     this.lblTotalMembers.Text            = ((statistics.TotalMembers > 0) ? (statistics.TotalMembers.ToString() + "位") : string.Empty);
     this.lblTotalProducts.Text           = ((statistics.TotalProducts > 0) ? (statistics.TotalProducts.ToString() + "条") : string.Empty);
     this.lblOrderPriceMonth.Text         = ((statistics.OrderPriceMonth > 0m) ? ("¥" + statistics.OrderPriceMonth.ToString("F2")) : string.Empty);
 }
コード例 #4
0
        public AdminStatisticsInfo GetStatistics(int memberBrithDaySetting = 0)
        {
            Database database = base.database;

            object[] obj = new object[9]
            {
                "SELECT  (SELECT COUNT(OrderId) FROM Hishop_Orders WHERE (OrderStatus = 2  OR (OrderStatus = 1 AND Gateway = 'hishop.plugins.payment.podrequest')) and ShippingModeId!=-2 and ParentOrderId<>'-1' AND SupplierId=0 AND OrderType<>6) AS orderNumbWaitConsignment,(select Count(ConsultationId) from Hishop_ProductConsultations where ReplyUserId is null) as productConsultations,(select Count(*) from Hishop_ManagerMessageBox where IsRead=0 and Accepter='admin' and Sernder in (select UserName from aspnet_Members)) as messages, isnull((select sum(PaymentAmount-RefundAmount) from Hishop_OrderDailyStatistics where StatisticalDate='",
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null
            };
            DateTime now = DateTime.Now;

            obj[1] = DataHelper.GetSafeDateTimeFormat(now.Date);
            obj[2] = "'),0) as orderPriceToday, isnull((select sum(OrderProfit) from Hishop_Orders where  (OrderStatus<>1 AND OrderStatus<>4 AND OrderStatus<>9 AND ParentOrderId<>'-1')  and OrderDate>='";
            now    = DateTime.Now;
            obj[3] = DataHelper.GetSafeDateTimeFormat(now.Date);
            obj[4] = "'),0) as orderProfitToday, (select count(*) from aspnet_Members where CreateDate>='";
            now    = DateTime.Now;
            obj[5] = DataHelper.GetSafeDateTimeFormat(now.Date);
            obj[6] = "' ) as userNewAddToday, isnull((select sum(balance) from aspnet_Members),0) as memberBalance,(select count(*) from Hishop_BalanceDrawRequest WHERE ISPASS IS NULL) as memberBlancedraw,(select count(*) from Hishop_Orders where datediff(dd,getdate(),OrderDate)=0 and ParentOrderId<>'-1' AND (OrderStatus<>1 AND OrderStatus<>4 AND OrderStatus<>9)) as todayFinishOrder,(select count(*) from Hishop_Orders where datediff(dd,getdate()-1,OrderDate)=0 and ParentOrderId<>'-1' AND (OrderStatus<>1 AND OrderStatus<>4 AND OrderStatus<>9)) as yesterdayFinishOrder, isnull((select sum(OrderTotal)-isnull(sum(RefundAmount),0) from hishop_orders where (OrderStatus<>1 AND OrderStatus<>4 AND OrderStatus<>9 AND ParentOrderId<>'-1')   and datediff(dd,getdate()-1,OrderDate)=0),0) as orderPriceYesterDay,(select count(*) from aspnet_Members where datediff(dd,getdate()-1,CreateDate)=0) as userNewAddYesterToday,(select count(*) from aspnet_Members) as TotalMembers,(select count(*) from Hishop_Products where SaleStatus!=0) as TotalProducts, isnull((select sum(PaymentAmount-RefundAmount) from Hishop_OrderDailyStatistics where datediff(dd,StatisticalDate,getdate())<=30),0) as orderPriceMonth,(select count(*) from Hishop_Products where SupplierId>0 and AuditStatus=1 and SaleStatus=3) as SupplierProducts4Audit,(select count(*) from Hishop_Products where SupplierId>0 and AuditStatus=2) as SupplierTotalProducts,(select count(*) from Hishop_SupplierBalanceDrawRequest WHERE ISPASS IS NULL) as SupplierBlancedrawRequestNum,(select isnull(sum(Expenses),0) from Hishop_SupplierBalanceDetails) as SupplierBlancedrawTotal,(select count(*)  from aspnet_Members where dateadd(year,year(getdate())-year(BirthDate),BirthDate) between DATEADD(DD,-1,getdate()) and dateadd(day,";
            obj[7] = memberBrithDaySetting;
            obj[8] = ",getdate())) as MemberBirthdayNum";
            DbCommand           sqlStringCommand    = database.GetSqlStringCommand(string.Concat(obj));
            AdminStatisticsInfo adminStatisticsInfo = new AdminStatisticsInfo();

            using (IDataReader dataReader = base.database.ExecuteReader(sqlStringCommand))
            {
                if (dataReader.Read())
                {
                    adminStatisticsInfo.OrderNumbWaitConsignment = (int)((IDataRecord)dataReader)["orderNumbWaitConsignment"];
                    adminStatisticsInfo.ProductConsultations     = (int)((IDataRecord)dataReader)["ProductConsultations"];
                    adminStatisticsInfo.Messages                     = (int)((IDataRecord)dataReader)["Messages"];
                    adminStatisticsInfo.OrderProfitToday             = (decimal)((IDataRecord)dataReader)["orderProfitToday"];
                    adminStatisticsInfo.UserNewAddToday              = (int)((IDataRecord)dataReader)["userNewAddToday"];
                    adminStatisticsInfo.MembersBalance               = (decimal)((IDataRecord)dataReader)["memberBalance"];
                    adminStatisticsInfo.OrderPriceToday              = (decimal)((IDataRecord)dataReader)["orderPriceToday"];
                    adminStatisticsInfo.MemberBlancedrawRequest      = (int)((IDataRecord)dataReader)["memberBlancedraw"];
                    adminStatisticsInfo.TodayFinishOrder             = (int)((IDataRecord)dataReader)["todayFinishOrder"];
                    adminStatisticsInfo.YesterdayFinishOrder         = (int)((IDataRecord)dataReader)["yesterdayFinishOrder"];
                    adminStatisticsInfo.OrderPriceYesterDay          = (decimal)((IDataRecord)dataReader)["orderPriceYesterDay"];
                    adminStatisticsInfo.UserNewAddYesterToday        = (int)((IDataRecord)dataReader)["userNewAddYesterToday"];
                    adminStatisticsInfo.TotalMembers                 = (int)((IDataRecord)dataReader)["TotalMembers"];
                    adminStatisticsInfo.TotalProducts                = (int)((IDataRecord)dataReader)["TotalProducts"];
                    adminStatisticsInfo.OrderPriceMonth              = (decimal)((IDataRecord)dataReader)["OrderPriceMonth"];
                    adminStatisticsInfo.SupplierProducts4Audit       = (int)((IDataRecord)dataReader)["SupplierProducts4Audit"];
                    adminStatisticsInfo.SupplierBlancedrawRequestNum = (int)((IDataRecord)dataReader)["SupplierBlancedrawRequestNum"];
                    adminStatisticsInfo.SupplierTotalProducts        = (int)((IDataRecord)dataReader)["SupplierTotalProducts"];
                    adminStatisticsInfo.SupplierBlancedrawTotal      = (decimal)((IDataRecord)dataReader)["SupplierBlancedrawTotal"];
                    adminStatisticsInfo.MemberBirthdayNum            = (int)((IDataRecord)dataReader)["MemberBirthdayNum"];
                }
            }
            return(adminStatisticsInfo);
        }
コード例 #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         AdminStatisticsInfo statistics = SalesHelper.GetStatistics();
         this.BindStatistics(statistics);
     }
 }
コード例 #6
0
        public AdminStatisticsInfo GetStatistics()
        {
            DbCommand sqlStringCommand = this.database.GetSqlStringCommand(string.Concat(new string[]
            {
                "SELECT  (SELECT COUNT(OrderId) FROM Ecshop_Orders WHERE OrderStatus = 2  OR (OrderStatus = 1 AND Gateway = 'ecdev.plugins.payment.podrequest')) AS orderNumbWaitConsignment,(select Count(LeaveId) from Ecshop_LeaveComments l where (select count(replyId) from Ecshop_LeaveCommentReplys where leaveId =l.leaveId)=0) as leaveComments,(select Count(ConsultationId) from Ecshop_ProductConsultations where ReplyUserId is null) as productConsultations,(select Count(*) from Ecshop_ManagerMessageBox where IsRead=0 and Accepter='admin' and Sernder in (select UserName from vw_aspnet_Members)) as messages, isnull((select sum(OrderTotal)-isnull(sum(RefundAmount),0) from Ecshop_orders where (OrderStatus<>1 AND OrderStatus<>4 AND OrderStatus<>9)   and OrderDate>='",
                DataHelper.GetSafeDateTimeFormat(DateTime.Now.Date),
                "'),0) as orderPriceToday, isnull((select sum(OrderProfit) from Ecshop_Orders where  (OrderStatus<>1 AND OrderStatus<>4 AND OrderStatus<>9)  and OrderDate>='",
                DataHelper.GetSafeDateTimeFormat(DateTime.Now.Date),
                "'),0) as orderProfitToday, (select count(*) from vw_aspnet_Members where CreateDate>='",
                DataHelper.GetSafeDateTimeFormat(DateTime.Now.Date),
                "' ) as userNewAddToday, isnull((select sum(balance) from vw_aspnet_Members),0) as memberBalance,(select count(*) from Ecshop_BalanceDrawRequest) as memberBlancedraw,(select count(*) from Ecshop_Orders where datediff(dd,getdate(),OrderDate)=0 and (OrderStatus<>1 AND OrderStatus<>4 AND OrderStatus<>9)) as todayFinishOrder,(select count(*) from Ecshop_Orders where datediff(dd,getdate()-1,OrderDate)=0 and (OrderStatus<>1 AND OrderStatus<>4 AND OrderStatus<>9)) as yesterdayFinishOrder, isnull((select sum(OrderTotal)-isnull(sum(RefundAmount),0) from Ecshop_orders where (OrderStatus<>1 AND OrderStatus<>4 AND OrderStatus<>9)   and datediff(dd,getdate()-1,OrderDate)=0),0) as orderPriceYesterDay,(select count(*) from vw_aspnet_Members where datediff(dd,getdate()-1,CreateDate)=0) as userNewAddYesterToday,(select count(*) from vw_aspnet_Members) as TotalMembers,(select count(*) from Ecshop_Products where SaleStatus!=0) as TotalProducts, isnull((select sum(OrderTotal)-isnull(sum(RefundAmount),0) from Ecshop_orders where (OrderStatus<>1 AND OrderStatus<>4 AND OrderStatus<>9)   and datediff(dd,OrderDate,getdate())<=30),0) as orderPriceMonth"
            }));
            AdminStatisticsInfo adminStatisticsInfo = new AdminStatisticsInfo();

            using (IDataReader dataReader = this.database.ExecuteReader(sqlStringCommand))
            {
                if (dataReader.Read())
                {
                    adminStatisticsInfo.OrderNumbWaitConsignment = (int)dataReader["orderNumbWaitConsignment"];
                    adminStatisticsInfo.LeaveComments            = (int)dataReader["LeaveComments"];
                    adminStatisticsInfo.ProductConsultations     = (int)dataReader["ProductConsultations"];
                    adminStatisticsInfo.Messages                = (int)dataReader["Messages"];
                    adminStatisticsInfo.OrderProfitToday        = (decimal)dataReader["orderProfitToday"];
                    adminStatisticsInfo.UserNewAddToday         = (int)dataReader["userNewAddToday"];
                    adminStatisticsInfo.MembersBalance          = (decimal)dataReader["memberBalance"];
                    adminStatisticsInfo.OrderPriceToday         = (decimal)dataReader["orderPriceToday"];
                    adminStatisticsInfo.MemberBlancedrawRequest = (int)dataReader["memberBlancedraw"];
                    adminStatisticsInfo.TodayFinishOrder        = (int)dataReader["todayFinishOrder"];
                    adminStatisticsInfo.YesterdayFinishOrder    = (int)dataReader["yesterdayFinishOrder"];
                    adminStatisticsInfo.OrderPriceYesterDay     = (decimal)dataReader["orderPriceYesterDay"];
                    adminStatisticsInfo.UserNewAddYesterToday   = (int)dataReader["userNewAddYesterToday"];
                    adminStatisticsInfo.TotalMembers            = (int)dataReader["TotalMembers"];
                    adminStatisticsInfo.TotalProducts           = (int)dataReader["TotalProducts"];
                    adminStatisticsInfo.OrderPriceMonth         = (decimal)dataReader["OrderPriceMonth"];
                }
            }
            return(adminStatisticsInfo);
        }
コード例 #7
0
        private void BindStatistics(AdminStatisticsInfo statistics)
        {
            IUser user = Users.GetUser(HiContext.Current.User.UserId);

            ltrAdminName.Text                    = user.Username;
            lblTime.Time                         = user.LastLoginDate;
            ltrWaitSendOrdersNumber.Text         = (statistics.OrderNumbWaitConsignment > 0) ? statistics.OrderNumbWaitConsignment.ToString() : string.Empty;
            ltrWaitSendPurchaseOrdersNumber.Text = (statistics.PurchaseOrderNumbWaitConsignment > 0) ? statistics.PurchaseOrderNumbWaitConsignment.ToString() : string.Empty;
            hpkLiuYan.Text                       = (statistics.LeaveComments > 0) ? statistics.LeaveComments.ToString() : "0";
            hpkZiXun.Text                        = (statistics.ProductConsultations > 0) ? statistics.ProductConsultations.ToString() : "0";
            hpkMessages.Text                     = (statistics.Messages > 0) ? statistics.Messages.ToString() : "0";
            hpkLiuYan.NavigateUrl                = Globals.ApplicationPath + "/Admin/comment/ManageLeaveComments.aspx?MessageStatus=3";
            hpkZiXun.NavigateUrl                 = Globals.ApplicationPath + "/Admin/comment/ProductConsultations.aspx";
            hpkMessages.NavigateUrl              = Globals.ApplicationPath + "/Admin/comment/ReceivedMessages.aspx?IsRead=0";
            lblTodayOrderAmout.Text              = (statistics.OrderPriceToday > 0M) ? Globals.FormatMoney(statistics.OrderPriceToday) : string.Empty;
            lblTodaySalesProfile.Text            = (statistics.ProfitTotal != 0M) ? Globals.FormatMoney(statistics.ProfitTotal) : string.Empty;
            ltrTodayAddMemberNumber.Text         = (statistics.UserNewAddToday > 0) ? statistics.UserNewAddToday.ToString() : string.Empty;
            ltrTodayAddDistroNumber.Text         = (statistics.DistroButorsNewAddToday > 0) ? statistics.DistroButorsNewAddToday.ToString() : string.Empty;
            lblMembersBalanceTotal.Text          = Globals.FormatMoney(statistics.MembersBalance);
            lblDistrosBalanceTotal.Text          = Globals.FormatMoney(statistics.DistrosBalance);
            lblAllBalanceTotal.Text              = Globals.FormatMoney(statistics.BalanceTotal);
            lblProductCountTotal.Text            = (statistics.ProductAlert > 0) ? ("<a href='" + Globals.ApplicationPath + "/Admin/product/ProductAlert.aspx'>" + statistics.ProductAlert.ToString() + "</a>") : "0";
        }
コード例 #8
0
        private void BindStatistics(AdminStatisticsInfo statistics)
        {
            ManagerInfo manager = HiContext.Current.Manager;

            if (statistics.OrderNumbWaitConsignment > 0)
            {
                this.ltrWaitSendOrdersNumber.NavigateUrl = "javascript:ShowSecondMenuLeft('订 单','sales/manageorder.aspx','/Admin/sales/ManageOrder.aspx?orderStatus=2')";
            }
            HyperLink hyperLink = this.ltrWaitSendOrdersNumber;
            object    text;
            int       num;

            if (statistics.OrderNumbWaitConsignment <= 0)
            {
                text = "<font style=\"color:#2d2d2d\">0条</font>";
            }
            else
            {
                num  = statistics.OrderNumbWaitConsignment;
                text = num.ToString() + "条";
            }
            hyperLink.Text = (string)text;
            HyperLink hyperLink2 = this.hpkZiXun;
            object    text2;

            if (statistics.ProductConsultations <= 0)
            {
                text2 = "<font style=\"color:#2d2d2d\">0条</font>";
            }
            else
            {
                num   = statistics.ProductConsultations;
                text2 = num.ToString() + "条";
            }
            hyperLink2.Text = (string)text2;
            HyperLink hyperLink3 = this.hpkMessages;
            object    text3;

            if (statistics.Messages <= 0)
            {
                text3 = "<font style=\"color:#2d2d2d\">0条</font>";
            }
            else
            {
                num   = statistics.Messages;
                text3 = num.ToString() + "条";
            }
            hyperLink3.Text                       = (string)text3;
            this.hpkZiXun.NavigateUrl             = "javascript:ShowSecondMenuLeft('会员','comment/productconsultations.aspx',null)";
            this.hpkMessages.NavigateUrl          = "javascript:ShowSecondMenuLeft('会员','comment/receivedmessages.aspx','/Admin/comment/ReceivedMessages.aspx?MessageStatus=3')";
            this.hpkIsWarningStockNum.NavigateUrl = "javascript:ShowSecondMenuLeft('商 品','product/productonsales.aspx','/Admin/product/ProductOnSales.aspx?isWarningStock=1')";
            this.hpkIsWarningStockNum.Text        = ProductHelper.GetProductIsWarningStockNum() + "件";
            this.lblTodayOrderAmout.Text          = ((statistics.OrderPriceToday > decimal.Zero) ? ("¥" + Globals.FormatMoney(statistics.OrderPriceToday)) : string.Empty);
            ClassShowOnDataLitl classShowOnDataLitl = this.ltrTodayAddMemberNumber;
            object text4;

            if (statistics.UserNewAddToday <= 0)
            {
                text4 = string.Empty;
            }
            else
            {
                num   = statistics.UserNewAddToday;
                text4 = num.ToString();
            }
            classShowOnDataLitl.Text         = (string)text4;
            this.lblMembersBalanceTotal.Text = "¥" + Globals.FormatMoney(statistics.MembersBalance);
            ClassShowOnDataLitl classShowOnDataLitl2 = this.lblMemberBlancedrawRequest;
            object text5;

            if (statistics.MemberBlancedrawRequest <= 0)
            {
                text5 = string.Empty;
            }
            else
            {
                num   = statistics.MemberBlancedrawRequest;
                text5 = "<a href=\"javascript:ShowSecondMenuLeft('会员','member/balancedrawrequest.aspx','member/balancedrawrequest.aspx')\">" + num.ToString() + "条</a>";
            }
            classShowOnDataLitl2.Text = (string)text5;
            ClassShowOnDataLitl classShowOnDataLitl3 = this.lblTodayFinishOrder;
            object text6;

            if (statistics.TodayFinishOrder <= 0)
            {
                text6 = string.Empty;
            }
            else
            {
                num   = statistics.TodayFinishOrder;
                text6 = num.ToString();
            }
            classShowOnDataLitl3.Text = (string)text6;
            ClassShowOnDataLitl classShowOnDataLitl4 = this.lblTotalMembers;
            object text7;

            if (statistics.TotalMembers <= 0)
            {
                text7 = string.Empty;
            }
            else
            {
                num   = statistics.TotalMembers;
                text7 = num.ToString() + "位";
            }
            classShowOnDataLitl4.Text = (string)text7;
            ClassShowOnDataLitl classShowOnDataLitl5 = this.lblTotalProducts;
            object text8;

            if (statistics.TotalProducts <= 0)
            {
                text8 = string.Empty;
            }
            else
            {
                num   = statistics.TotalProducts;
                text8 = num.ToString() + "条";
            }
            classShowOnDataLitl5.Text              = (string)text8;
            this.lblOrderPriceMonth.Text           = ((statistics.OrderPriceMonth > decimal.Zero) ? ("¥" + statistics.OrderPriceMonth.F2ToString("f2")) : string.Empty);
            this.hpkSupplierPdAuditNum.Text        = statistics.SupplierProducts4Audit + "件";
            this.hpkSupplierPdAuditNum.NavigateUrl = "javascript:ShowSecondMenuLeft('供应商','Supplier/Product/AuditProductList.aspx','/Admin/Supplier/Product/AuditProductList.aspx')";
            this.hpkSupplierDrawNum.Text           = statistics.SupplierBlancedrawRequestNum + "条";
            this.hpkSupplierDrawNum.NavigateUrl    = "javascript:ShowSecondMenuLeft('供应商','Supplier/Balance/DrawRequest.aspx','/Admin/Supplier/Balance/DrawRequest.aspx')";
            this.hpkBirthdayNum.Text        = statistics.MemberBirthdayNum + "个";
            this.hpkBirthdayNum.NavigateUrl = "javascript:ShowSecondMenuLeft('会员','member/managemembers.aspx','member/managemembers.aspx?orderBy=orderbrithDay')";
            this.lblSupplierProductNum.Text = statistics.SupplierTotalProducts + "件";
            this.lblSupplierDrawTotal.Text  = ((statistics.SupplierBlancedrawTotal > decimal.Zero) ? ("¥" + statistics.SupplierBlancedrawTotal.F2ToString("f2")) : string.Empty);
        }