From d446addb3df1f893673b718f5049476c459111b6 Mon Sep 17 00:00:00 2001 From: gaofei <181547018@qq.com> Date: Mon, 3 Jul 2023 14:09:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=AC=E5=8F=B8=E7=BA=A7?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=B7=B3=E8=BD=ACOA=E5=BE=85=E5=8A=9E?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/FineUIPro.Web/index.aspx.cs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) 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) {