username@email.com
2025-05-14 99ddfbcecf0fa2881eb3a91028257eef87dab6de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CY.BLL;
using CY.Model;
using CY.Infrastructure.Query;
using CY.Infrastructure.Common;
using CY.BLL.Sys;
using System.Data;
 
namespace CY.WebForm.Pages.InfoManage
{
    //吴辉
    //广告位置管理
    public partial class AdDetail : BasePage
    {
        Sys_DictionaryBLL bll_Sys_DictionaryBLL = null;
        Info_AdBLL bll_Info_AdBLL = null;
        Info_AdLoctionBLL bll_Info_AdLoctionBLL = null;
        //初始化
        public AdDetail()
        {
            bll_Sys_DictionaryBLL = new Sys_DictionaryBLL();
            bll_Info_AdBLL = new Info_AdBLL();
            bll_Info_AdLoctionBLL = new Info_AdLoctionBLL();
        }
 
        //页面加载
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindList();
            }
        }
 
        //绑定数据
        private void BindList()
        {
            Info_Ad m_Info_Ad = bll_Info_AdBLL.SelectModelByKeyId(Request["Keyid"].ToInt32());
            if (m_Info_Ad != null)
            {
                Info_AdLoction m_Info_AdLoction = bll_Info_AdLoctionBLL.SelectModelByKeyId(m_Info_Ad.AdLocationId);
                string ImgHtml = "<a href='" + m_Info_Ad.A_Url + "' " +( m_Info_Ad.A_IsTarget ? " target='_blank'" : "" )+ " title='" + m_Info_Ad.A_Title + "'><img width='" + m_Info_AdLoction.AP_WidePixels + "' height='" + m_Info_AdLoction.AP_HighPixels + "' alt='" + m_Info_Ad.A_Title + "' src='" + m_Info_Ad.A_Pic + "'/></a>";
                this.divAdHtml.InnerHtml = ImgHtml;
            }
        }
    }
}