Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        TypeId = DNTRequest.GetQueryInt("TypeId", 10149);

        ModelBaseType = PageCommon.GetModelType(TypeId);


        ucNewsList1.TypeId   = TypeId.ToString();
        ucNewsList1.PageSize = 6;

        string ObjIDPath = ModelBaseType.IDPath;

        TopNavigation1.ObjIDPath = ObjIDPath;

        MBaseType = PageCommon.GetModelType(int.Parse(ObjIDPath.Split(',')[0].ToString()));

        _ucheader1.ParentID = ObjIDPath.Split(',')[0].ToString();
        _ucheader1.TypeId   = ModelBaseType.ID.ToString();
        if (ObjIDPath.Split(',').Length > 1)
        {
            ucLeft1.TypeId = ObjIDPath.Split(',')[1].ToString();
        }
        else
        {
            ucLeft1.TypeId = ObjIDPath.Split(',')[0].ToString();
        }
        ucLeft1.ParentId = ObjIDPath.Split(',')[0].ToString();


        //string strWhere = "  ParentID =" + ObjIDPath.Split(',')[1].ToString() + " and State=1 AND WebSiteID=" + PageCommon.LanguageID;
        //BaseTypeList = bll_BaseType.GetModelList(strWhere + " ORDER BY OrderBy DESC,ID asc");
    }
Пример #2
0
    public String GetTypePath()
    {
        String strHref = String.Empty;

        string[] arrIDPath = ObjIDPath.ToString().Split(',');
        WebSite.BLL.Bll_BaseType   GetInfo   = new WebSite.BLL.Bll_BaseType();
        WebSite.Model.Mod_BaseType ModelInfo = new WebSite.Model.Mod_BaseType();
        for (int i = 0; i < arrIDPath.Length; i++)
        {
            ModelInfo = PageCommon.GetModelType(Convert.ToInt32(arrIDPath[i]));
            string strLink = string.Empty;


            //if (ModelInfo.Link!= "")
            //{
            //    strLink = ModelInfo.Link;
            //}
            //else
            //{
            //    switch (ModelInfo.Model)
            //    {
            //        case "ZL": strLink = "ExhibitionList.aspx?TypeId=" + ModelInfo.ID;
            //            break;
            //        case "BNTB": strLink = "AnniversaryList.aspx?TypeId=" + ModelInfo.ID;
            //            break;
            //        case "YJ":
            //        case "HD": strLink = "News.aspx?TypeId=" + ModelInfo.ID;
            //            break;
            //        case "DC": strLink = "collection.aspx?TypeId=" + ModelInfo.ID;
            //            break;
            //        default: strLink = "about.aspx?TypeId=" + ModelInfo.ID;
            //            break;
            //    }
            //}



            if ((i + 1) == arrIDPath.Length)
            {
                LeftHtml += " > " + ModelInfo.Title + " ";
            }
            else
            {
                LeftHtml += " > " + ModelInfo.Title + " ";
            }
        }

        return(strHref);
    }
Пример #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        TypeId = DNTRequest.GetQueryInt("TypeId", 10141);

        ModelBaseType      = PageCommon.GetModelType(TypeId);
        uchistory1.TypeId  = TypeId.ToString();
        uchistory1.ShowTop = int.MaxValue;

        string ObjIDPath = ModelBaseType.IDPath;

        TopNavigation1.ObjIDPath = ObjIDPath;

        ucLeft1.TypeId   = ObjIDPath.Split(',')[1].ToString();
        ucLeft1.ParentId = ObjIDPath.Split(',')[0].ToString();


        MBaseType           = PageCommon.GetModelType(int.Parse(ObjIDPath.Split(',')[0].ToString()));
        _ucheader1.ParentID = ObjIDPath.Split(',')[0].ToString();
    }
Пример #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        TypeId = DNTRequest.GetQueryInt("TypeId", 10158);



        ModelBaseType = PageCommon.GetModelType(TypeId);

        string ObjIDPath = ModelBaseType.IDPath;

        TopNavigation1.ObjIDPath = ObjIDPath;

        MBaseType = PageCommon.GetModelType(int.Parse(ObjIDPath.Split(',')[0].ToString()));


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

        XMJSModelInfo = PageCommon.GetModelByTypeID(10159);

        string strWhere = "  WebSiteID=" + PageCommon.LanguageID + " and State='1'  and TypeID=10160";

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

        WMDYSModelInfo = PageCommon.GetModelByTypeID(10161);

        DZLCModelInfo = PageCommon.GetModelByTypeID(10162);

        CSHHRModelInfo = PageCommon.GetModelByTypeID(10169);

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


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

        strWhere      = "  WebSiteID=" + PageCommon.LanguageID + " and State='1'  and TypeID=10165";
        ModelListDZXW = GetInfo.GetModelList(int.MaxValue, strWhere + " ORDER BY OrderBy desc,AddDate desc");
        PageInit();
    }
Пример #5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        TypeId    = DNTRequest.GetQueryInt("TypeId", 10140);
        ModelInfo = PageCommon.GetModelByTypeID(TypeId);
        if (ModelInfo == null)
        {
            ModelInfo = new WebSite.Model.Mod_Information();
        }
        ModelBaseType = PageCommon.GetModelType(TypeId);

        string ObjIDPath = ModelBaseType.IDPath;

        TopNavigation1.ObjIDPath = ObjIDPath;

        MBaseType = PageCommon.GetModelType(int.Parse(ObjIDPath.Split(',')[0].ToString()));


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

        ucLeft1.TypeId   = ObjIDPath.Split(',')[1].ToString();
        ucLeft1.ParentId = ObjIDPath.Split(',')[0].ToString();
    }
Пример #6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        NewBind();

        ModBaseType = PageCommon.GetModelType(ParentId);
    }