コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int    storeId = HiContext.Current.Manager.StoreId;
            string storeSlideImagesByStoreId = DepotHelper.GetStoreSlideImagesByStoreId(storeId);

            this.hidOldImages.Value = storeSlideImagesByStoreId;
            IList <StoreFloorInfo> storeFloorList = StoresHelper.GetStoreFloorList(storeId, FloorClientType.O2OApplet);
            int           pageIndex       = 1;
            int           pageSize        = 1000000000;
            DbQueryResult showProductList = WeChartAppletHelper.GetShowProductList(0, pageIndex, pageSize, storeId, ProductType.ServiceProduct);
            DataTable     data            = showProductList.Data;
            StringBuilder stringBuilder   = new StringBuilder();

            for (int i = 0; i < data.Rows.Count; i++)
            {
                if (stringBuilder.Length > 0)
                {
                    stringBuilder.Insert(0, data.Rows[i]["ProductId"] + "|||" + data.Rows[i]["ProductName"] + ",,,");
                }
                else
                {
                    stringBuilder.Append(data.Rows[i]["ProductId"] + "|||" + data.Rows[i]["ProductName"]);
                }
            }
            this.hidSelectProducts.Value  = stringBuilder.ToString();
            this.lkbAddAppletFloor.Click += this.lkbAddAppletFloor_Click;
        }