Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                base.CheckAdminPower("ReadProduct", PowerCheckType.Single);
                foreach (ProductClassInfo info in ProductClassBLL.ReadProductClassNamedList())
                {
                    this.ClassID.Items.Add(new ListItem(info.ClassName, "|" + info.ID + "|"));
                }
                this.ClassID.Items.Insert(0, new ListItem("所有分类", string.Empty));
                //this.BrandID.DataSource = ProductBrandBLL.ReadProductBrandCacheList();
                //this.BrandID.DataTextField = "Name";
                //this.BrandID.DataValueField = "ID";
                //this.BrandID.DataBind();
                //this.BrandID.Items.Insert(0, new ListItem("所有品牌", string.Empty));
                //this.ClassID.Text = RequestHelper.GetQueryString<string>("ClassID");
                //this.BrandID.Text = RequestHelper.GetQueryString<string>("BrandID");
                //this.Key.Text = RequestHelper.GetQueryString<string>("Key");
                //this.StartAddDate.Text = RequestHelper.GetQueryString<string>("StartAddDate");
                //this.EndAddDate.Text = RequestHelper.GetQueryString<string>("EndAddDate");
                ProductSearchInfo product = new ProductSearchInfo();
                product.Key          = RequestHelper.GetQueryString <string>("Key");
                product.ClassID      = RequestHelper.GetQueryString <string>("ClassID");
                product.InBrandID    = RequestHelper.GetQueryString <string>("BrandID");
                product.IsSale       = 0;
                product.StartAddDate = RequestHelper.GetQueryString <DateTime>("StartAddDate");
                product.EndAddDate   = ShopCommon.SearchEndDate(RequestHelper.GetQueryString <DateTime>("EndAddDate"));

                base.PageSize = 10;
                List <ProductInfo> dataSource = ProductBLL.SearchProductList(base.CurrentPage, base.PageSize, product, ref this.Count);
                base.BindControl(dataSource, this.RecordList, this.MyPager);
            }
        }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         base.CheckAdminPower("StatisticsProduct", PowerCheckType.Single);
         foreach (ProductClassInfo info in ProductClassBLL.ReadProductClassNamedList())
         {
             this.ClassID.Items.Add(new ListItem(info.ClassName, "|" + info.ID + "|"));
         }
         this.ClassID.Items.Insert(0, new ListItem("所有分类", string.Empty));
         this.BrandID.DataSource     = ProductBrandBLL.ReadProductBrandCacheList();
         this.BrandID.DataTextField  = "Name";
         this.BrandID.DataValueField = "ID";
         this.BrandID.DataBind();
         this.BrandID.Items.Insert(0, new ListItem("所有品牌", string.Empty));
         ProductSearchInfo productSearch = new ProductSearchInfo();
         productSearch.IsSale    = 1;
         productSearch.Name      = RequestHelper.GetQueryString <string>("Name");
         productSearch.ClassID   = RequestHelper.GetQueryString <string>("ClassID");
         productSearch.InBrandID = RequestHelper.GetQueryString <string>("BrandID");
         string queryString = RequestHelper.GetQueryString <string>("ProductOrderType");
         queryString = (queryString == string.Empty) ? "SellCount" : queryString;
         productSearch.ProductOrderType = queryString;
         this.ClassID.Text          = RequestHelper.GetQueryString <string>("ClassID");
         this.BrandID.Text          = RequestHelper.GetQueryString <string>("BrandID");
         this.Name.Text             = RequestHelper.GetQueryString <string>("Name");
         this.StartDate.Text        = RequestHelper.GetQueryString <string>("StartDate");
         this.EndDate.Text          = RequestHelper.GetQueryString <string>("EndDate");
         this.ProductOrderType.Text = queryString;
         DateTime startDate = RequestHelper.GetQueryString <DateTime>("StartDate");
         DateTime endDate   = ShopCommon.SearchEndDate(RequestHelper.GetQueryString <DateTime>("EndDate"));
         base.BindControl(ProductBLL.StatisticsProductSale(base.CurrentPage, base.PageSize, productSearch, ref this.Count, startDate, endDate), this.RecordList, this.MyPager);
     }
 }
Ejemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         base.CheckAdminPower("StatisticsSale", PowerCheckType.Single);
         foreach (ProductClassInfo info in ProductClassBLL.ReadProductClassNamedList())
         {
             this.ClassID.Items.Add(new ListItem(info.ClassName, "|" + info.ID + "|"));
         }
         this.ClassID.Items.Insert(0, new ListItem("所有分类", string.Empty));
         this.BrandID.DataSource     = ProductBrandBLL.ReadProductBrandCacheList();
         this.BrandID.DataTextField  = "Name";
         this.BrandID.DataValueField = "ID";
         this.BrandID.DataBind();
         this.BrandID.Items.Insert(0, new ListItem("所有品牌", string.Empty));
         this.ClassID.Text = RequestHelper.GetQueryString <string>("ClassID");
         this.BrandID.Text = RequestHelper.GetQueryString <string>("BrandID");
         this.Name.Text    = RequestHelper.GetQueryString <string>("Name");
         ProductSearchInfo product = new ProductSearchInfo();
         product.IsSale    = 1;
         product.Name      = RequestHelper.GetQueryString <string>("Name");
         product.ClassID   = RequestHelper.GetQueryString <string>("ClassID");
         product.InBrandID = RequestHelper.GetQueryString <string>("BrandID");
         this.productList  = ProductBLL.SearchProductList(base.CurrentPage, base.PageSize, product, ref this.Count);
         this.dt           = this.StatisticsSaleStop(this.productList);
         base.BindControl(this.MyPager);
     }
 }
Ejemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         base.CheckAdminPower("ProductBatchEdit", PowerCheckType.Single);
         foreach (ProductClassInfo info in ProductClassBLL.ReadProductClassNamedList())
         {
             this.ClassID.Items.Add(new ListItem(info.ClassName, "|" + info.ID + "|"));
         }
         this.ClassID.Items.Insert(0, new ListItem("所有分类", string.Empty));
         this.BrandID.DataSource     = ProductBrandBLL.ReadProductBrandCacheList();
         this.BrandID.DataTextField  = "Name";
         this.BrandID.DataValueField = "ID";
         this.BrandID.DataBind();
         this.BrandID.Items.Insert(0, new ListItem("所有品牌", string.Empty));
         string queryString = RequestHelper.GetQueryString <string>("Action");
         if (queryString != null)
         {
             if (!(queryString == "UnionEdit"))
             {
                 if (queryString == "search")
                 {
                     ProductSearchInfo productSearch = new ProductSearchInfo();
                     productSearch.Name         = RequestHelper.GetQueryString <string>("Name");
                     productSearch.ClassID      = RequestHelper.GetQueryString <string>("ClassID");
                     productSearch.InBrandID    = RequestHelper.GetQueryString <string>("BrandID");
                     productSearch.StartAddDate = RequestHelper.GetQueryString <DateTime>("StartAddDate");
                     productSearch.EndAddDate   = ShopCommon.SearchEndDate(RequestHelper.GetQueryString <DateTime>("EndAddDate"));
                     this.ClassID.Text          = RequestHelper.GetQueryString <string>("ClassID");
                     this.BrandID.Text          = RequestHelper.GetQueryString <string>("BrandID");
                     this.Name.Text             = RequestHelper.GetQueryString <string>("Name");
                     this.StartAddDate.Text     = RequestHelper.GetQueryString <string>("StartAddDate");
                     this.EndAddDate.Text       = RequestHelper.GetQueryString <string>("EndAddDate");
                     base.BindControl(ProductBLL.SearchProductList(productSearch), this.RecordList);
                 }
             }
             else
             {
                 this.UnionEdit();
             }
         }
         this.userGradeList = UserGradeBLL.ReadUserGradeCacheList();
         foreach (UserGradeInfo info3 in this.userGradeList)
         {
             if (this.userGradeIDList == string.Empty)
             {
                 this.userGradeIDList   = info3.ID.ToString();
                 this.userGradeNameList = info3.Name;
             }
             else
             {
                 this.userGradeIDList   = this.userGradeIDList + "," + info3.ID.ToString();
                 this.userGradeNameList = this.userGradeNameList + "," + info3.Name;
             }
         }
     }
 }
Ejemplo n.º 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         foreach (ProductClassInfo info in ProductClassBLL.ReadProductClassNamedList())
         {
             this.RelationClassID.Items.Add(new ListItem(info.ClassName, "|" + info.ID + "|"));
         }
         this.RelationClassID.Items.Insert(0, new ListItem("所有分类", string.Empty));
         List <ProductBrandInfo> list = ProductBrandBLL.ReadProductBrandCacheList();
         this.RelationBrandID.DataSource     = list;
         this.RelationBrandID.DataTextField  = "Name";
         this.RelationBrandID.DataValueField = "ID";
         this.RelationBrandID.DataBind();
         this.RelationBrandID.Items.Insert(0, new ListItem("选择品牌", string.Empty));
     }
 }
Ejemplo n.º 6
0
        protected void BindClassBrandAttributeClassStandardType()
        {
            List <ProductBrandInfo> list = ProductBrandBLL.ReadProductBrandCacheList();

            this.BrandID.DataSource     = list;
            this.BrandID.DataTextField  = "Name";
            this.BrandID.DataValueField = "ID";
            this.BrandID.DataBind();
            this.BrandID.Items.Insert(0, new ListItem("选择品牌", "0"));
            this.RelationBrandID.DataSource     = list;
            this.RelationBrandID.DataTextField  = "Name";
            this.RelationBrandID.DataValueField = "ID";
            this.RelationBrandID.DataBind();
            this.RelationBrandID.Items.Insert(0, new ListItem("所有品牌", string.Empty));
            this.AccessoryBrandID.DataSource     = list;
            this.AccessoryBrandID.DataTextField  = "Name";
            this.AccessoryBrandID.DataValueField = "ID";
            this.AccessoryBrandID.DataBind();
            this.AccessoryBrandID.Items.Insert(0, new ListItem("所有品牌", string.Empty));
            List <ProductClassInfo> list2 = ProductClassBLL.ReadProductClassNamedList();

            foreach (ProductClassInfo info in list2)
            {
                this.RelationClassID.Items.Add(new ListItem(info.ClassName, "|" + info.ID + "|"));
            }
            this.RelationClassID.Items.Insert(0, new ListItem("所有分类", string.Empty));
            foreach (ProductClassInfo info in list2)
            {
                this.AccessoryClassID.Items.Add(new ListItem(info.ClassName, "|" + info.ID + "|"));
            }
            this.AccessoryClassID.Items.Insert(0, new ListItem("所有分类", string.Empty));
            this.AttributeClassID.DataSource     = AttributeClassBLL.ReadAttributeClassCacheList();
            this.AttributeClassID.DataTextField  = "Name";
            this.AttributeClassID.DataValueField = "ID";
            this.AttributeClassID.DataBind();
            this.AttributeClassID.Items.Insert(0, new ListItem("请选择", "0"));
            foreach (ArticleClassInfo info2 in ArticleClassBLL.ReadArticleClassChildList(3))
            {
                this.ArticleClassID.Items.Add(new ListItem(info2.ClassName, "|" + info2.ID + "|"));
            }
            this.ArticleClassID.Items.Insert(0, new ListItem(ArticleClassBLL.ReadArticleClassCache(3).ClassName, "|" + 3 + "|"));
            this.StandardType.DataSource     = EnumHelper.ReadEnumList <ProductStandardType>();
            this.StandardType.DataTextField  = "ChineseName";
            this.StandardType.DataValueField = "Value";
            this.StandardType.DataBind();
        }
Ejemplo n.º 7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                base.CheckAdminPower("ReadProduct", PowerCheckType.Single);

                if (isSale < 0)
                {
                    isSale = 1;            //默认为上架课程
                }
                foreach (ProductClassInfo info in ProductClassBLL.ReadProductClassNamedList())
                {
                    this.ClassID.Items.Add(new ListItem(info.ClassName, "|" + info.ID + "|"));
                }
                this.ClassID.Items.Insert(0, new ListItem("所有分类", string.Empty));
                //this.BrandID.DataSource = ProductBrandBLL.ReadProductBrandCacheList();
                //this.BrandID.DataTextField = "Name";
                //this.BrandID.DataValueField = "ID";
                //this.BrandID.DataBind();
                //this.BrandID.Items.Insert(0, new ListItem("所有品牌", string.Empty));
                //this.BrandID.Text = RequestHelper.GetQueryString<string>("BrandID");
                this.ClassID.Text   = RequestHelper.GetQueryString <string>("ClassID");
                this.Key.Text       = RequestHelper.GetQueryString <string>("Key");
                this.IsSpecial.Text = RequestHelper.GetQueryString <string>("IsSpecial");
                this.IsNew.Text     = RequestHelper.GetQueryString <string>("IsNew");
                this.IsHot.Text     = RequestHelper.GetQueryString <string>("IsHot");
                this.IsTop.Text     = RequestHelper.GetQueryString <string>("IsTop");
                ProductSearchInfo product = new ProductSearchInfo();
                product.Key                  = RequestHelper.GetQueryString <string>("Key");
                product.ClassID              = RequestHelper.GetQueryString <string>("ClassID");
                product.InBrandID            = RequestHelper.GetQueryString <string>("BrandID");
                product.IsSpecial            = RequestHelper.GetQueryString <int>("IsSpecial");
                product.IsNew                = RequestHelper.GetQueryString <int>("IsNew");
                product.IsHot                = RequestHelper.GetQueryString <int>("IsHot");
                product.IsSale               = isSale;
                product.IsTop                = RequestHelper.GetQueryString <int>("IsTop");
                product.StartAddDate         = RequestHelper.GetQueryString <DateTime>("StartAddDate");
                product.EndAddDate           = ShopCommon.SearchEndDate(RequestHelper.GetQueryString <DateTime>("EndAddDate"));
                product.IsSpecialTestSetting = RequestHelper.GetQueryString <int>("IsSpecialTestSetting");
                //product.IsComplete = RequestHelper.GetQueryString<int>("IsComplete");
                List <ProductInfo> dataSource = ProductBLL.SearchProductList(base.CurrentPage, base.PageSize, product, ref this.Count);
                //把列表中的产品的更新时间属性都读取出来
                attributeRecordList = AttributeRecordBLL.ReadList("3", ProductBLL.ReadProductIdStr(dataSource));
                base.BindControl(dataSource, this.RecordList, this.MyPager);
            }
        }
Ejemplo n.º 8
0
        protected void BindClassBrandAttributeClassStandardType()
        {
            //List<ProductBrandInfo> list = ProductBrandBLL.ReadProductBrandCacheList();
            //this.RelationBrandID.DataSource = list;
            //this.RelationBrandID.DataTextField = "Name";
            //this.RelationBrandID.DataValueField = "ID";
            //this.RelationBrandID.DataBind();
            //this.RelationBrandID.Items.Insert(0, new ListItem("所有品牌", string.Empty));

            List <ProductClassInfo> list2 = ProductClassBLL.ReadProductClassNamedList();

            foreach (ProductClassInfo info in list2)
            {
                this.RelationClassID.Items.Add(new ListItem(info.ClassName, "|" + info.ID + "|"));
            }
            this.RelationClassID.Items.Insert(0, new ListItem("所有分类", string.Empty));

            CourseCateInfo CourseCateModel = new CourseCateInfo();

            CourseCateModel.Condition = CompanyBLL.SystemCompanyId.ToString();
            List <CourseCateInfo> courseCateList = CourseCateBLL.ReadCourseCateNamedList(CourseCateModel);

            foreach (CourseCateInfo info in courseCateList)
            {
                this.AccessoryClassID.Items.Add(new ListItem(info.CateName, info.CateId.ToString()));
            }
            this.AccessoryClassID.Items.Insert(0, new ListItem("所有分类", string.Empty));

            this.AttributeClassID.DataSource     = AttributeClassBLL.ReadAttributeClassCacheList();
            this.AttributeClassID.DataTextField  = "Name";
            this.AttributeClassID.DataValueField = "ID";
            this.AttributeClassID.DataBind();
            this.AttributeClassID.Items.Insert(0, new ListItem("请选择", "0"));
            foreach (ArticleClassInfo info2 in ArticleClassBLL.ReadArticleClassChildList(3))
            {
                this.ArticleClassID.Items.Add(new ListItem(info2.ClassName, "|" + info2.ID + "|"));
            }
            this.ArticleClassID.Items.Insert(0, new ListItem(ArticleClassBLL.ReadArticleClassCache(3).ClassName, "|" + 3 + "|"));
            this.StandardType.DataSource     = EnumHelper.ReadEnumList <ProductStandardType>();
            this.StandardType.DataTextField  = "ChineseName";
            this.StandardType.DataValueField = "Value";
            this.StandardType.DataBind();
        }
Ejemplo n.º 9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         this.FatherID.DataSource     = ProductClassBLL.ReadProductClassNamedList();
         this.FatherID.DataTextField  = "ClassName";
         this.FatherID.DataValueField = "ID";
         this.FatherID.DataBind();
         this.FatherID.Items.Insert(0, new ListItem("作为最大类", "0"));
         int queryString = RequestHelper.GetQueryString <int>("ID");
         if (queryString != -2147483648)
         {
             base.CheckAdminPower("ReadProductClass", PowerCheckType.Single);
             ProductClassInfo info = ProductClassBLL.ReadProductClassCache(queryString);
             this.FatherID.Text    = info.FatherID.ToString();
             this.OrderID.Text     = info.OrderID.ToString();
             this.ClassName.Text   = info.ClassName;
             this.Keywords.Text    = info.Keywords;
             this.Description.Text = info.Description;
             this.IsDownload.Text  = info.IsDownload.ToString();
         }
     }
 }
Ejemplo n.º 10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                PostInfo post = PostBLL.ReadPost(postID);
                List <ProductClassInfo> productClassList = ProductClassBLL.ReadProductClassNamedList();
                foreach (ProductClassInfo info in productClassList)
                {
                    this.RelationClassID.Items.Add(new ListItem(info.ClassName, "|" + info.ID + "|"));
                }
                this.RelationClassID.Items.Insert(0, new ListItem("ËùÓзÖÀà", string.Empty));

                if (!string.IsNullOrEmpty(post.PostPlan))
                {
                    ProductSearchInfo productSearch = new ProductSearchInfo();
                    productSearch.InProductID   = post.PostPlan;
                    this.Product.DataSource     = ProductBLL.SearchProductList(productSearch);
                    this.Product.DataTextField  = "Name";
                    this.Product.DataValueField = "ID";
                    this.Product.DataBind();
                }
            }
        }
Ejemplo n.º 11
0
        /// <summary>
        /// 页面加载方法
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            ClearCache();

            if (!Page.IsPostBack)
            {
                string action = RequestHelper.GetQueryString <string>("Action");
                if (action == "SearchProduct")
                {
                    SearchProduct();
                }

                CheckAdminPower("ReadExchangeAward", PowerCheckType.Single);
                Name.Text    = ExchangeAwardBLL.ReadConfigInfo().Name;
                Content.Text = ExchangeAwardBLL.ReadConfigInfo().Content;
                string strProductID = ExchangeAwardBLL.ReadConfigInfo().PorudctIDList;
                string pointList    = ExchangeAwardBLL.ReadConfigInfo().PointList;
                if (strProductID != string.Empty && pointList != string.Empty)
                {
                    string[] productArray = strProductID.Split(',');
                    string[] pointArray   = pointList.Split(',');
                    for (int i = 0; i < productArray.Length; i++)
                    {
                        awardDic.Add(Convert.ToInt32(productArray[i]), Convert.ToInt32(pointArray[i]));
                    }
                    ProductSearchInfo productSearch = new ProductSearchInfo();
                    productSearch.InProductID = strProductID;
                    productList = ProductBLL.SearchProductList(productSearch);
                }
                foreach (ProductClassInfo productClass in ProductClassBLL.ReadProductClassNamedList())
                {
                    ClassID.Items.Add(new ListItem(productClass.ClassName, "|" + productClass.ID + "|"));
                }
                ClassID.Items.Insert(0, new ListItem("所有分类", string.Empty));
                downFile = StringHelper.Encode(ShopConfig.ReadConfigInfo().SecureKey, ShopConfig.ReadConfigInfo().SecureKey) + ".txt";
            }
        }
Ejemplo n.º 12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            base.CheckAdminPower("ReadProductClass", PowerCheckType.Single);
            string queryString = RequestHelper.GetQueryString <string>("Action");
            int    id          = RequestHelper.GetQueryString <int>("ID");

            if ((queryString != string.Empty) && (id != -2147483648))
            {
                string str2 = queryString;
                if (str2 != null)
                {
                    if (!(str2 == "Up"))
                    {
                        if (str2 == "Down")
                        {
                            base.CheckAdminPower("UpdateProductClass", PowerCheckType.Single);
                            ProductClassBLL.MoveDownProductClass(id);
                            AdminLogBLL.AddAdminLog(ShopLanguage.ReadLanguage("MoveRecord"), ShopLanguage.ReadLanguage("ProductClass"), id);
                        }
                        else if (str2 == "Delete")
                        {
                            base.CheckAdminPower("DeleteProductClass", PowerCheckType.Single);
                            ProductClassBLL.DeleteProductClass(id);
                            AdminLogBLL.AddAdminLog(ShopLanguage.ReadLanguage("DeleteRecord"), ShopLanguage.ReadLanguage("ProductClass"), id);
                        }
                    }
                    else
                    {
                        base.CheckAdminPower("UpdateProductClass", PowerCheckType.Single);
                        ProductClassBLL.MoveUpProductClass(id);
                        AdminLogBLL.AddAdminLog(ShopLanguage.ReadLanguage("MoveRecord"), ShopLanguage.ReadLanguage("ProductClass"), id);
                    }
                }
            }
            base.BindControl(ProductClassBLL.ReadProductClassNamedList(), this.RecordList);
        }
Ejemplo n.º 13
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         base.CheckAdminPower("StatisticsSale", PowerCheckType.Single);
         foreach (ProductClassInfo info in ProductClassBLL.ReadProductClassNamedList())
         {
             this.ClassID.Items.Add(new ListItem(info.ClassName, "|" + info.ID + "|"));
         }
         this.ClassID.Items.Insert(0, new ListItem("所有分类", string.Empty));
         this.BrandID.DataSource     = ProductBrandBLL.ReadProductBrandCacheList();
         this.BrandID.DataTextField  = "Name";
         this.BrandID.DataValueField = "ID";
         this.BrandID.DataBind();
         this.BrandID.Items.Insert(0, new ListItem("所有品牌", string.Empty));
         this.ClassID.Text      = RequestHelper.GetQueryString <string>("ClassID");
         this.BrandID.Text      = RequestHelper.GetQueryString <string>("BrandID");
         this.Name.Text         = RequestHelper.GetQueryString <string>("Name");
         this.StartAddDate.Text = RequestHelper.GetQueryString <string>("StartAddDate");
         this.EndAddDate.Text   = RequestHelper.GetQueryString <string>("EndAddDate");
         this.UserName.Text     = RequestHelper.GetQueryString <string>("UserName");
         this.OrderNumber.Text  = RequestHelper.GetQueryString <string>("OrderNumber");
         ProductSearchInfo productSearch = new ProductSearchInfo();
         OrderSearchInfo   orderSearch   = new OrderSearchInfo();
         productSearch.IsSale      = 1;
         productSearch.Name        = RequestHelper.GetQueryString <string>("Name");
         productSearch.ClassID     = RequestHelper.GetQueryString <string>("ClassID");
         productSearch.InBrandID   = RequestHelper.GetQueryString <string>("BrandID");
         productSearch.InProductID = RequestHelper.GetQueryString <string>("ProductID");
         orderSearch.StartAddDate  = RequestHelper.GetQueryString <DateTime>("StartAddDate");
         orderSearch.EndAddDate    = ShopCommon.SearchEndDate(RequestHelper.GetQueryString <DateTime>("EndAddDate"));
         orderSearch.UserName      = RequestHelper.GetQueryString <string>("UserName");
         orderSearch.OrderNumber   = RequestHelper.GetQueryString <string>("OrderNumber");
         base.BindControl(OrderDetailBLL.StatisticsSaleDetail(base.CurrentPage, base.PageSize, orderSearch, productSearch, ref this.Count), this.RecordList, this.MyPager);
     }
 }
Ejemplo n.º 14
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         base.CheckAdminPower("ProductBatchEdit", PowerCheckType.Single);
         if (RequestHelper.GetQueryString <string>("Action") == "SingleEdit")
         {
             this.SingleEdit();
         }
         foreach (ProductClassInfo info in ProductClassBLL.ReadProductClassNamedList())
         {
             this.ClassID.Items.Add(new ListItem(info.ClassName, "|" + info.ID + "|"));
         }
         this.ClassID.Items.Insert(0, new ListItem("所有分类", string.Empty));
         this.BrandID.DataSource     = ProductBrandBLL.ReadProductBrandCacheList();
         this.BrandID.DataTextField  = "Name";
         this.BrandID.DataValueField = "ID";
         this.BrandID.DataBind();
         this.BrandID.Items.Insert(0, new ListItem("所有品牌", string.Empty));
         ProductSearchInfo product = new ProductSearchInfo();
         product.Name           = RequestHelper.GetQueryString <string>("Name");
         product.ClassID        = RequestHelper.GetQueryString <string>("ClassID");
         product.InBrandID      = RequestHelper.GetQueryString <string>("BrandID");
         product.StartAddDate   = RequestHelper.GetQueryString <DateTime>("StartAddDate");
         product.EndAddDate     = ShopCommon.SearchEndDate(RequestHelper.GetQueryString <DateTime>("EndAddDate"));
         this.ClassID.Text      = RequestHelper.GetQueryString <string>("ClassID");
         this.BrandID.Text      = RequestHelper.GetQueryString <string>("BrandID");
         this.Name.Text         = RequestHelper.GetQueryString <string>("Name");
         this.StartAddDate.Text = RequestHelper.GetQueryString <string>("StartAddDate");
         this.EndAddDate.Text   = RequestHelper.GetQueryString <string>("EndAddDate");
         this.productList       = ProductBLL.SearchProductList(base.CurrentPage, base.PageSize, product, ref this.Count);
         base.BindControl(this.MyPager);
         string strProductID = string.Empty;
         foreach (ProductInfo info3 in this.productList)
         {
             if (strProductID == string.Empty)
             {
                 strProductID = info3.ID.ToString();
             }
             else
             {
                 strProductID = strProductID + "," + info3.ID.ToString();
             }
         }
         this.userGradeList   = UserGradeBLL.ReadUserGradeCacheList();
         this.memberPriceList = MemberPriceBLL.ReadMemberPriceByProduct(strProductID);
         foreach (UserGradeInfo info4 in this.userGradeList)
         {
             if (this.userGradeIDList == string.Empty)
             {
                 this.userGradeIDList   = info4.ID.ToString();
                 this.userGradeNameList = info4.Name;
             }
             else
             {
                 this.userGradeIDList   = this.userGradeIDList + "," + info4.ID.ToString();
                 this.userGradeNameList = this.userGradeNameList + "," + info4.Name;
             }
         }
     }
 }
Ejemplo n.º 15
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.allProductClassList = ProductClassBLL.ReadProductClassNamedList();
     this.hotKeyword          = ShopConfig.ReadConfigInfo().HotKeyword;
 }