⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 presentshow.aspx.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
namespace PowerEasy.WebSite.Admin.Shop
{
    using PowerEasy.Components;
    using PowerEasy.Controls;
    using PowerEasy.Model.Shop;
    using PowerEasy.Web.UI;
    using System;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public class PresentShow : AdminPage
    {
        protected Button Button1;
        protected DropDownList DropSearchField;
        protected ExtendedGridView Egv;
        protected HtmlForm form1;
        protected HiddenField HdnKeyword;
        protected HiddenField HdnSearch;
        private string m_UpdateDir;
        protected ObjectDataSource OdsPresentList;
        protected TextBox TxtKeyword;

        protected void BtnSearch_Click(object sender, EventArgs e)
        {
            this.HdnSearch.Value = this.DropSearchField.SelectedValue;
            this.HdnKeyword.Value = this.TxtKeyword.Text;
            this.Egv.PageIndex = 0;
        }

        protected void Egv_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                PresentInfo dataItem = (PresentInfo) e.Row.DataItem;
                Label label = e.Row.FindControl("LblPresentName") as Label;
                Label label2 = e.Row.FindControl("LblPresentPrice") as Label;
                string s = ("市场参考价:" + dataItem.PriceMarket.ToString("0.00")) + "
当前零售价:" + dataItem.Price.ToString("0.00");
                label2.ToolTip = base.Server.HtmlDecode(s);
                label2.Text = dataItem.Price.ToString("0.00");
                label.Text = "<span onclick='ReturnValue(\"" + dataItem.PresentId.ToString() + "\",\"" + dataItem.PresentName + "\")'  onmouseover=\"ShowADPreview('<img src=\\'" + this.GetPresentPic(dataItem.PresentPic) + "\\' width=\\'150\\'  border=\\'0\\' />')\" onmouseout=\"hideTooltip('dHTMLADPreview')\">" + dataItem.PresentName + "</span>";
            }
        }

        private string GetPresentPic(string presentPic)
        {
            if (string.IsNullOrEmpty(presentPic))
            {
                return (base.BasePath + "Images/nopic.gif");
            }
            return (base.BasePath + this.m_UpdateDir + "/" + presentPic);
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            this.m_UpdateDir = SiteConfig.SiteOption.UploadDir;
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -