Beispiel #1
0
        private void PageInit()
        {
            ddl_type.DataSource     = new ShopTypeBLL().GetList();
            ddl_type.DataValueField = "Id";
            ddl_type.DataTextField  = "TypeName";
            ddl_type.DataBind();
            ddl_type.Items.Insert(0, new ListItem("-请选择-", "0"));

            Shop ShopItem = bll.GetShopItem(ShopId);

            if (ShopItem != null)
            {
                ddl_type.SelectedValue = ShopItem.ShopType.ToString();
                txtShopName.Value      = ShopItem.ShopName;
                txtPhone.Value         = ShopItem.Phone;
                txtAddress.Value       = ShopItem.Address;
                txtOpenTime.Value      = ShopItem.OpenTime;
                txtSendTime.Value      = ShopItem.SendTime.ToString();
                txtSendPrice.Value     = ShopItem.SendPrice.ToString();
                txtLimit.Value         = ShopItem.LimitPrice.ToString();
                txtIntro.Value         = ShopItem.Intro;
                txtShopPic.Value       = ShopItem.ShopPic;
                txtzk.Value            = ShopItem.zk.ToString();
                ShopPic.ImageUrl       = "~/" + ShopItem.ShopPic;
                string[] ordertime = ShopItem.OrderTime.Split('|');
                txtamtime.Value = ordertime[0];
                txtpmtime.Value = ordertime[1];
            }
        }
Beispiel #2
0
        private void PageInit()
        {
            hidden_shopid.Value = shopid.ToString();

            item = bll.GetShopItem(shopid);
            bll.UpdateShopHit(shopid);

            rpt_typelist.DataSource = new ProductTypeBLL().GetListByShopId(shopid);
            rpt_typelist.DataBind();

            rpt_tyleprolist.DataSource = rpt_typelist.DataSource;
            rpt_tyleprolist.DataBind();
        }