diff --git a/SGGL/FineUIPro.Web/index.aspx.cs b/SGGL/FineUIPro.Web/index.aspx.cs index 63e17661..393ec45f 100644 --- a/SGGL/FineUIPro.Web/index.aspx.cs +++ b/SGGL/FineUIPro.Web/index.aspx.cs @@ -1,5 +1,6 @@ using BLL; using System; +using System.Linq; using System.Web; using System.Web.UI.WebControls; using System.Xml; @@ -305,6 +306,30 @@ namespace FineUIPro.Web this.Tab1.IFrameUrl = "~/common/main2.aspx"; this.hdHomePage.Text = "2"; } + if (!string.IsNullOrEmpty(Request.Params["PHTUrl"])) + { + mainTabStrip.ShowTabHeader = true; + PageContext.RegisterStartupScript("parent.removeActiveTab();"); + //btnPHTGL_Click(null, null); + if (!string.IsNullOrEmpty(Request.Params["PHTUserid"])) + { + var model_user = BLL.Person_PersonsService.GetPerson_PersonsById(Request.Params["PHTUserid"]); + var q = BLL.Funs.DB.Person_Persons.FirstOrDefault(x => x.Account == model_user.Account && x.Password == model_user.Password); + if (q != null) + { + Session["CurrUser"] = q; + Session["u"] = model_user.Account; + Session["p"] = model_user.Password; + } + } + btnZHGL_Click(null, null); + PageContext.RegisterStartupScript(mainTabStrip.GetAddTabReference("dynamic_tab4", Request.Params["PHTUrl"], "审批", IconHelper.GetIconUrl(Icon.ApplicationAdd), true)); + } + else + { + this.MenuSwitchMethod(Request.Params["menuType"]); + + } var getW = WeatherService.GetWeather(null); if (getW != null) {