Exemplo n.º 1
0
        public override void DataBind()
        {
            this.Items.Clear();
            IList <StoresInfo> allStoresNoCondition = StoresHelper.GetAllStoresNoCondition();

            this.Items.Add(new ListItem("请选择门店", "-2"));
            if (this.ShowPlatform)
            {
                this.Items.Add(new ListItem("平台", "0"));
            }
            allStoresNoCondition.ForEach(delegate(StoresInfo x)
            {
                this.Items.Add(new ListItem(x.StoreName, x.StoreId.ToString()));
            });
        }