Ejemplo n.º 1
0
    protected string navigation = ""; //导航

    #endregion Fields

    #region Methods

    protected void Page_Load(object sender, EventArgs e)
    {
        preUrl = WebHelper.GetAppPath();
        int aid = Common.GetReqIntValue("aid") ;
        string id = Common.GetReqStrValue("id");
        //导航
        WEC_CATEBANNER condner = new WEC_CATEBANNER();
        condner.STATUS = 0;
        condner.AID = aid;
        condner.OrderBy(WEC_CATEBANNER.Attribute.SORT_ID);
        List<WEC_CATEBANNER> list = BLLTable<WEC_CATEBANNER>.Select(new WEC_CATEBANNER(), condner);
        if (list.Count != 0)
        {
            foreach (WEC_CATEBANNER wr in list)
            {
                navigation = string.Format("{0} <li><a onclick=\"return false;\"><img src=\"{1}\" alt=\"{2}\" style=\"width:100%;\" /></a></li>", navigation, wr.PIC_URL, wr.NAME);
            }
        }
        //主内容
        WEC_COLUMN cond = new WEC_COLUMN();
        cond.STATUS = 0;
        cond.UP_FLAG = 1;
        cond.PID = id;
        cond.AID = aid;
        cond.OrderBy(WEC_COLUMN.Attribute.SORT_ID);
        List<WEC_COLUMN> list1 = BLLTable<WEC_COLUMN>.Select(new WEC_COLUMN(), cond);
        foreach (WEC_COLUMN wc in list1)
        {
            mainvalue = string.Format("{0}<li style=\"background:#dadada;\"><a href=\"{1}\"><div><span class=\"icon-smile\"></span></div><div><p>{2}</p></div></a></li>", mainvalue, !string.IsNullOrEmpty(wc.OUT_URL) ? wc.OUT_URL : "list.aspx?id=" + wc.ID + "&aid=" + aid, wc.COLUMN_NAME);
        }
    }
Ejemplo n.º 2
0
    protected string mainvalue  = ""; //主内容
    protected void Page_Load(object sender, EventArgs e)
    {
        preUrl = WebHelper.GetAppPath();
        int    aid = Common.GetReqIntValue("aid");
        string id  = Common.GetReqStrValue("id");
        //导航
        WEC_CATEBANNER condner = new WEC_CATEBANNER();

        condner.STATUS = 0;
        condner.AID    = aid;
        condner.OrderBy(WEC_CATEBANNER.Attribute.SORT_ID);
        List <WEC_CATEBANNER> list = BLLTable <WEC_CATEBANNER> .Select(new WEC_CATEBANNER(), condner);

        if (list.Count != 0)
        {
            foreach (WEC_CATEBANNER wr in list)
            {
                navigation = string.Format("{0} <li><a onclick=\"return false;\"><img src=\"{1}\" alt=\"{2}\" style=\"width:100%;\" /></a></li>", navigation, wr.PIC_URL, wr.NAME);
            }
        }
        //主内容
        WEC_COLUMN cond = new WEC_COLUMN();

        cond.STATUS  = 0;
        cond.UP_FLAG = 1;
        cond.PID     = id;
        cond.AID     = aid;
        cond.OrderBy(WEC_COLUMN.Attribute.SORT_ID);
        List <WEC_COLUMN> list1 = BLLTable <WEC_COLUMN> .Select(new WEC_COLUMN(), cond);

        foreach (WEC_COLUMN wc in list1)
        {
            mainvalue = string.Format("{0<a href=\"{1}\" class=\"shengyt-list-item\"><div class=\"shengyt-list-item-bg\"><div class=\"shengyt-list-item-image\" style=\"background-image:url({2})\"></div><div class=\"shengyt-list-item-box\"><div class=\"shengyt-list-item-line\"><div class=\"shengyt-list-item-title\">{3}</div><div class=\"shengyt-list-item-summary\">{4}</div></div></div></div></a>", mainvalue, !string.IsNullOrEmpty(wc.OUT_URL) ? wc.OUT_URL : "list.aspx?id=" + wc.ID + "&aid=" + aid, wc.PIC_URL, wc.COLUMN_NAME, wc.COLUMN_DES);
        }
    }
Ejemplo n.º 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        preUrl = WebHelper.GetAppPath();

        //导航
        WEC_CATEBANNER condner = new WEC_CATEBANNER();

        condner.STATUS = 0;
        condner.AID    = aid;
        condner.OrderBy(WEC_CATEBANNER.Attribute.SORT_ID);
        list = BLLTable <WEC_CATEBANNER> .Select(new WEC_CATEBANNER(), condner);

        if (list.Count != 0)
        {
            foreach (WEC_CATEBANNER wr in list)
            {
                navigation = string.Format("{0}<li style=\"width: 640px; display: table-cell; vertical-align: top;\"><a onclick=\"{1};\"><img src={2} alt={3} style=\"width:100%;\"></a></li>", navigation, wr.OUT_URL == ""?"return false":wr.OUT_URL, wr.PIC_URL, wr.NAME);
            }
        }
        //主内容
        WEC_COLUMN cond = new WEC_COLUMN();

        cond.STATUS  = 0;
        cond.UP_FLAG = 1;
        cond.PID     = "0";
        cond.AID     = aid;
        cond.OrderBy(WEC_COLUMN.Attribute.SORT_ID);
        list1 = BLLTable <WEC_COLUMN> .Select(new WEC_COLUMN(), cond);
    }
Ejemplo n.º 4
0
    protected string navigation = ""; //导航

    #endregion Fields

    #region Methods

    protected void Page_Load(object sender, EventArgs e)
    {
        preUrl = WebHelper.GetAppPath();

        //导航
        WEC_CATEBANNER condner = new WEC_CATEBANNER();
        condner.STATUS = 0;
        condner.AID = aid;
        condner.OrderBy(WEC_CATEBANNER.Attribute.SORT_ID);
         list = BLLTable<WEC_CATEBANNER>.Select(new WEC_CATEBANNER(), condner);
        if (list.Count != 0)
        {
            foreach (WEC_CATEBANNER wr in list)
            {
                navigation = string.Format("{0}<li style=\"width: 640px; display: table-cell; vertical-align: top;\"><a onclick=\"{1};\"><img src={2} alt={3} style=\"width:100%;\"></a></li>", navigation, wr.OUT_URL==""?"return false":wr.OUT_URL ,wr.PIC_URL, wr.NAME);
            }
        }
        //主内容
        WEC_COLUMN cond = new WEC_COLUMN();
        cond.STATUS = 0;
        cond.UP_FLAG = 1;
        cond.PID = "0";
        cond.AID = aid;
        cond.OrderBy(WEC_COLUMN.Attribute.SORT_ID);
        list1 = BLLTable<WEC_COLUMN>.Select(new WEC_COLUMN(), cond);
    }
Ejemplo n.º 5
0
    protected string mainvalue  = ""; //主内容
    protected void Page_Load(object sender, EventArgs e)
    {
        preUrl = WebHelper.GetAppPath();
        int aid = Common.GetReqIntValue("aid") == 0 ? 1 : Common.GetReqIntValue("aid");
        //导航
        WEC_CATEBANNER condner = new WEC_CATEBANNER();

        condner.STATUS = 0;
        condner.AID    = aid;
        condner.OrderBy(WEC_CATEBANNER.Attribute.SORT_ID);
        List <WEC_CATEBANNER> list = BLLTable <WEC_CATEBANNER> .Select(new WEC_CATEBANNER(), condner);

        if (list.Count != 0)
        {
            foreach (WEC_CATEBANNER wr in list)
            {
                navigation = string.Format("{0} <li><a onclick=\"return false;\"><img src=\"{1}\" alt=\"{2}\" style=\"width:100%;\" /></a></li>", navigation, wr.PIC_URL, wr.NAME);
            }
        }
        //主内容
        WEC_COLUMN cond = new WEC_COLUMN();

        cond.STATUS  = 0;
        cond.UP_FLAG = 1;
        cond.PID     = "0";
        cond.AID     = aid;
        cond.OrderBy(WEC_COLUMN.Attribute.SORT_ID);
        List <WEC_COLUMN> list1 = BLLTable <WEC_COLUMN> .Select(new WEC_COLUMN(), cond);

        int a = 0;

        mainvalue = "<li>";
        foreach (WEC_COLUMN wc in list1)
        {
            a = a + 1;
            if (a == 5)
            {
                a         = 1;
                mainvalue = mainvalue + "</li><li>";
            }
            WEC_COLUMN wn = new WEC_COLUMN();
            wn.PID = wc.ID;
            string path = "";
            if (!BLLTable <WEC_COLUMN> .Exists(wn))
            {
                path = "list.aspx?id=" + wc.ID + "&aid=" + aid;
            }
            else
            {
                path = "channel.aspx?id=" + wc.ID + "&aid=" + aid;
            }
            mainvalue = string.Format("{0}<a href=\"{1}\" class=\"shengyt-list-item\"> <img src=\"{2}\" alt=\"{3}\" /> <div>{3}</div> </a>", mainvalue, !string.IsNullOrEmpty(wc.OUT_URL) ? wc.OUT_URL : path, wc.PIC_URL, wc.COLUMN_NAME);
        }
        mainvalue = mainvalue + "</li>";
    }
Ejemplo n.º 6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        #region//默认隐藏的列
        //hideTableColumnList = new List<AttributeItem>();
        //hideTableColumnList.Add(WEC_CATEBANNER.Attribute.EXP1);
        //hideTableColumnList.Add(WEC_CATEBANNER.Attribute.EXP2);
        //hideTableColumnList.Add(WEC_CATEBANNER.Attribute.EXP3);
        //valObj.LoadAllAttributes(true);//暂时加此代码,以后框架更新将不需要
        //valObj.Remove(hideTableColumnList);

        //hideFindColumnList = new List<AttributeItem>();
        //hideFindColumnList.Add(WEC_CATEBANNER.Attribute.EXP1);
        //hideFindColumnList.Add(WEC_CATEBANNER.Attribute.EXP2);
        //hideFindColumnList.Add(WEC_CATEBANNER.Attribute.EXP3);
        #endregion
        condObj.OrderBy(WEC_CATEBANNER.Attribute.ID, Order.Desc);

        if (!IsPostBack)
        {
            btnFind.Text              = LanguageService.GetLanguageString("btnFind", "查询");
            aspPager.PageSize         = 10;
            aspPager.CurrentPageIndex = 1;

            if (!string.IsNullOrEmpty(Request["ids"]))
            {
                WEC_CATEBANNER roleOld = new WEC_CATEBANNER();
                roleOld.Where(WEC_CATEBANNER.Attribute.ID, Request["ids"].ToString());
                listObj = BLLTable <WEC_CATEBANNER> .Select(valObj, roleOld);

                for (int i = 0; i < listObj.Count; i++)
                {
                    if (i > 0)
                    {
                        hidOld.Value     += ",";
                        hidInitIDS.Value += ",";
                    }
                    hidOld.Value     += "{ID:'" + listObj[i].ID + "',Name:'" + listObj[i].ID + "'}";//这里的Name用于显示在列表中,请自行重定义。
                    hidInitIDS.Value += listObj[i].ID;
                }
            }
            try
            {
                listObj = BLLTable <WEC_CATEBANNER> .SelectByPage(valObj, condObj, aspPager.PageSize, 1, ref recount);

                repList.DataSource = listObj;
                repList.DataBind();
                aspPager.RecordCount = recount;
            }
            catch (Exception ex)
            {
                litWarn.Text = ex.Message;
            }
        }
    }
Ejemplo n.º 7
0
    protected string navigation = ""; //导航

    #endregion Fields

    #region Methods

    protected void Page_Load(object sender, EventArgs e)
    {
        preUrl = WebHelper.GetAppPath();
        int aid = Common.GetReqIntValue("aid") == 0 ? 1 : Common.GetReqIntValue("aid");
        //导航
        WEC_CATEBANNER condner = new WEC_CATEBANNER();
        condner.STATUS = 0;
        condner.AID = aid;
        condner.OrderBy(WEC_CATEBANNER.Attribute.SORT_ID);
        List<WEC_CATEBANNER> list = BLLTable<WEC_CATEBANNER>.Select(new WEC_CATEBANNER(), condner);
        if (list.Count != 0)
        {
            foreach (WEC_CATEBANNER wr in list)
            {

                navigation = string.Format("{0} <li><a onclick=\"return false;\"><img src=\"{1}\" alt=\"{2}\" style=\"width:100%;\" /></a></li>", navigation, wr.PIC_URL, wr.NAME);
            }
        }
        //主内容
        WEC_COLUMN cond = new WEC_COLUMN();
        cond.STATUS = 0;
        cond.UP_FLAG = 1;
        cond.PID = "0";
        cond.AID = aid;
        cond.OrderBy(WEC_COLUMN.Attribute.SORT_ID);
        List<WEC_COLUMN> list1 = BLLTable<WEC_COLUMN>.Select(new WEC_COLUMN(), cond);
        int a=0;
        mainvalue = "<li>";
        foreach (WEC_COLUMN wc in list1)
        {
            a=a+1;
            if(a==5)
            {
                a = 1;
                mainvalue = mainvalue + "</li><li>";
            }
            WEC_COLUMN wn = new WEC_COLUMN();
            wn.PID = wc.ID;
            string path = "";
            if (!BLLTable<WEC_COLUMN>.Exists(wn))
            {
                path = "list.aspx?id=" + wc.ID + "&aid=" + aid;
            }
            else
            {
                path = "channel.aspx?id=" + wc.ID + "&aid=" + aid;
            }
            mainvalue = string.Format("{0}<a href=\"{1}\" class=\"shengyt-list-item\"> <img src=\"{2}\" alt=\"{3}\" /> <div>{3}</div> </a>", mainvalue, !string.IsNullOrEmpty(wc.OUT_URL) ? wc.OUT_URL : path, wc.PIC_URL, wc.COLUMN_NAME);
        }
            mainvalue = mainvalue + "</li>";
    }
Ejemplo n.º 8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        preUrl = WebHelper.GetAppPath();
        aid    = Common.GetReqIntValue("aid");
        //导航
        WEC_CATEBANNER condner = new WEC_CATEBANNER();

        condner.STATUS = 0;
        condner.AID    = aid;
        condner.OrderBy(WEC_CATEBANNER.Attribute.SORT_ID);
        List <WEC_CATEBANNER> list = BLLTable <WEC_CATEBANNER> .Select(new WEC_CATEBANNER(), condner);

        if (list.Count != 0)
        {
            foreach (WEC_CATEBANNER wr in list)
            {
                navigation = string.Format("{0} <li><a onclick=\"{1};\"><img src=\"{2}\" alt=\"{3}\" style=\"width:100%;\" /></a></li>", navigation, wr.OUT_URL == "" ? "return false" : wr.OUT_URL, wr.PIC_URL, wr.NAME);
            }
        }
        //主内容
        WEC_COLUMN cond = new WEC_COLUMN();

        cond.STATUS  = 0;
        cond.UP_FLAG = 1;
        cond.PID     = "0";
        cond.AID     = aid;
        cond.OrderBy(WEC_COLUMN.Attribute.SORT_ID);
        list1 = BLLTable <WEC_COLUMN> .Select(new WEC_COLUMN(), cond);

        foreach (WEC_COLUMN wc in list1)
        {
            //int a = 0;

            //a++;

            //mainvalue = string.Format("{0} <a class=\"list-item _C{1}_L0\" href=\"{2}\"><div class=\"item-title\"><div class=\"title-text\">{3}</div></div><div class=\"item-image\" style=\"background-image: url(<%=wc.PIC_URL%>)">div class="item_title2"><%=wc.COLUMN_DES %></div></div></a>"
            //, mainvalue,a, !string.IsNullOrEmpty(wc.OUT_URL) ? wc.OUT_URL : "list.aspx?id=" + wc.ID + "&aid=" + aid,wc.COLUMN_NAME, wc.SMALL_PIC != "" ? wc.SMALL_PIC : "return false", wc.COLUMN_NAME, wc.COLUMN_DES);
        }
    }
Ejemplo n.º 9
0
    protected string navigation = ""; //导航

    #endregion Fields

    #region Methods

    protected void Page_Load(object sender, EventArgs e)
    {
        preUrl = WebHelper.GetAppPath();
        aid = Common.GetReqIntValue("aid");
        //导航
        WEC_CATEBANNER condner = new WEC_CATEBANNER();
        condner.STATUS = 0;
        condner.AID = aid;
        condner.OrderBy(WEC_CATEBANNER.Attribute.SORT_ID);
        List<WEC_CATEBANNER> list = BLLTable<WEC_CATEBANNER>.Select(new WEC_CATEBANNER(), condner);
        if (list.Count != 0)
        {
            foreach (WEC_CATEBANNER wr in list)
            {
                navigation = string.Format("{0} <li><a onclick=\"{1};\"><img src=\"{2}\" alt=\"{3}\" style=\"width:100%;\" /></a></li>", navigation, wr.OUT_URL == "" ? "return false" : wr.OUT_URL, wr.PIC_URL, wr.NAME);
            }
        }
        //主内容
        WEC_COLUMN cond = new WEC_COLUMN();
        cond.STATUS = 0;
        cond.UP_FLAG = 1;
        cond.PID = "0";
        cond.AID = aid;
        cond.OrderBy(WEC_COLUMN.Attribute.SORT_ID);
        list1 = BLLTable<WEC_COLUMN>.Select(new WEC_COLUMN(), cond);
        foreach (WEC_COLUMN wc in list1)
        {

            //int a = 0;

            //a++;

            //mainvalue = string.Format("{0} <a class=\"list-item _C{1}_L0\" href=\"{2}\"><div class=\"item-title\"><div class=\"title-text\">{3}</div></div><div class=\"item-image\" style=\"background-image: url(<%=wc.PIC_URL%>)">div class="item_title2"><%=wc.COLUMN_DES %></div></div></a>"
            //, mainvalue,a, !string.IsNullOrEmpty(wc.OUT_URL) ? wc.OUT_URL : "list.aspx?id=" + wc.ID + "&aid=" + aid,wc.COLUMN_NAME, wc.SMALL_PIC != "" ? wc.SMALL_PIC : "return false", wc.COLUMN_NAME, wc.COLUMN_DES);

        }
    }