Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Bll_Link BLink    = new Bll_Link();
        string   strWhere = string.Format(" Model='{0}' and State=1 and WebSiteID={1} ", "Banner_CN", PageCommon.LanguageID);
        string   txtOrder = " IsTop Desc, OrderBy Desc, AddDate ASC ";

        AdbannerList = BLink.GetModelList(int.MaxValue, strWhere, txtOrder);


        strWhere          = string.Format(" Model='{0}' and State=1 and WebSiteID={1} ", "Banner_INDEX", PageCommon.LanguageID);
        txtOrder          = " IsTop Desc, OrderBy Desc, AddDate ASC ";
        AdbannerIndexList = BLink.GetModelList(int.MaxValue, strWhere, txtOrder);
    }
Пример #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        modWebSite = OperateHelper.GetWebSite(int.Parse(PageCommon.LanguageID));

        Bll_Link BLink    = new Bll_Link();
        string   strWhere = string.Format(" Model='{0}' and State=1 and WebSiteID={1} ", "QTLJ", PageCommon.LanguageID);
        string   txtOrder = " IsTop Desc, OrderBy Desc, AddDate ASC ";

        AdbannerList = BLink.GetModelList(int.MaxValue, strWhere, txtOrder);
    }
Пример #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        modWebSite = OperateHelper.GetWebSite(int.Parse(PageCommon.LanguageID));

        TypeId = DNTRequest.GetQueryInt("TypeId", 10147);

        ModelBaseType = PageCommon.GetModelType(TypeId);

        string ObjIDPath = ModelBaseType.IDPath;

        TopNavigation1.ObjIDPath = ObjIDPath;
        MBaseType        = PageCommon.GetModelType(int.Parse(ObjIDPath.Split(',')[0].ToString()));
        ucLeft1.TypeId   = ObjIDPath.Split(',')[1].ToString();
        ucLeft1.ParentId = ObjIDPath.Split(',')[0].ToString();

        _ucheader1.ParentID = ObjIDPath.Split(',')[0].ToString();



        string strWhere = "WebSiteID=" + PageCommon.LanguageID + " and State='1' and  IDPath like '%" + TypeId + "%'";

        ModelList = BInformation.GetModelList(int.MaxValue, strWhere + " ORDER BY OrderBy desc,AddDate desc");

        foreach (var item in ModelList)
        {
            trackPoints += "new google.maps.LatLng(" + item.Author + ")";


            trackAddress += "\"" + item.Title + "\"";
            if ((ModelList.IndexOf(item) + 1) != ModelList.Count)
            {
                trackAddress += ",";
                trackPoints  += ",";
            }
            if (ModelList.IndexOf(item) == 0)
            {
                myOptions = item.Author;
            }
        }


        Bll_Link BLink = new Bll_Link();

        strWhere = string.Format(" Model='{0}' and State=1 and WebSiteID={1} ", "QTLJ", PageCommon.LanguageID);
        string txtOrder = " IsTop Desc, OrderBy Desc, AddDate ASC ";

        AdbannerList = BLink.GetModelList(int.MaxValue, strWhere, txtOrder);
    }
Пример #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        modWebSite      = OperateHelper.GetWebSite(int.Parse(PageCommon.LanguageID));
        this.Page.Title = modWebSite.Title;
        AddMetaTag("keywords", modWebSite.Keywords);
        AddMetaTag("description", modWebSite.Description);

        Bll_Link BLink    = new Bll_Link();
        string   strWhere = string.Format(" Model='{0}' and State=1 and WebSiteID={1} ", "LINK", PageCommon.LanguageID);
        string   txtOrder = " IsTop Desc, OrderBy Desc, AddDate ASC ";

        AdbannerList = BLink.GetModelList(int.MaxValue, strWhere, txtOrder);


        strWhere      = "  WebSiteID=" + PageCommon.LanguageID + " and State='1'  and TypeID=10147";
        ModelListLXWM = GetInfo.GetModelList(int.MaxValue, strWhere + " ORDER BY OrderBy desc,AddDate DESC");
    }