Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        bool Interna = true;

        if (!IsPostBack)
        {
            currentTime = DateTime.Now.ToString("yyyy-MM-dd");
            if (!string.IsNullOrEmpty(this.Session["PublicUser"].ToString()))
            {
                realName = ((MD_UserEntity)this.Session["PublicUser"]).User.AU_Name;
            }
            CRMTree.BLL.BL_TabLinkList TabLink = new CRMTree.BLL.BL_TabLinkList();
            if (Language.GetLang2() == CRMTree.Model.Common.EM_Language.en_us)
            {
                Interna   = true;
                Languages = "2";
            }
            else
            {
                Interna   = false;
                Languages = "1";
            }
            strNav = TabLink.getTabLinkList(UserID, Interna);
        }
    }
Ejemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!string.IsNullOrEmpty(Request.UrlReferrer.PathAndQuery))
        {
            pagePath = Request.UrlReferrer.PathAndQuery;
        }

        bool Interna = true;

        if (!IsPostBack)
        {
            if (this.Session["PublicUser"] != null && !string.IsNullOrEmpty(this.Session["PublicUser"].ToString()))
            {
                au_Code = ((MD_UserEntity)this.Session["PublicUser"]).User.AU_Code;
                MD_UserEntity User = (MD_UserEntity)this.Session["PublicUser"];
            }
            CRMTree.BLL.BL_TabLinkList TabLink = new CRMTree.BLL.BL_TabLinkList();
            if (Language.GetLang2() == EM_Language.en_us)
            {
                Interna   = true;
                Languages = "2";
            }
            else
            {
                Interna   = false;
                Languages = "1";
            }
            pageStr = TabLink.getTabLinkListForHelpSystem(au_Code, Interna, pagePath, out pageOnLoad);
        }
    }
Ejemplo n.º 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        bool Interna = false;

        if (!IsPostBack)
        {
            currentTime = DateTime.Now.ToString("yyyy-MM-dd");
            if (this.Session["PublicUser"] != null && !string.IsNullOrEmpty(this.Session["PublicUser"].ToString()))
            {
                realName = ((MD_UserEntity)this.Session["PublicUser"]).User.AU_Name;
                MD_UserEntity User = (MD_UserEntity)this.Session["PublicUser"];
                if (User.User.UG_UType == 1)
                {
                    Logo = User.Dealer.AD_logo_file_M;
                }
                else if (User.User.UG_UType == 2)
                {
                    Logo = User.DealerGroup.DG_Logo_file_M;
                }
                else if (User.User.UG_UType == 3)
                {
                    Logo = User.OEM.OM_Logo_file_M;
                }
            }
            CRMTree.BLL.BL_TabLinkList TabLink = new CRMTree.BLL.BL_TabLinkList();
            if (Language.GetLang2() == EM_Language.en_us)
            {
                Interna   = true;
                Languages = "2";
            }
            else
            {
                Interna   = false;
                Languages = "1";
            }
            strNav = TabLink.getTabLinkList(UserID, Interna);
        }
    }