修改oa跳转

This commit is contained in:
2023-07-04 14:47:19 +08:00
parent 01616cc059
commit 87799090e3
2 changed files with 51 additions and 49 deletions
+28 -27
View File
@@ -292,7 +292,33 @@ namespace FineUIPro.Web
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
{
if (!string.IsNullOrEmpty(Request.Params["PHTUrl"]))
{
this.drpProject.SelectedValue = Request.Params["projectId"];
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;
}
}
btnPHTGL_Click(null, null);
PageContext.RegisterStartupScript(mainTabStrip.GetAddTabReference("dynamic_tab4", Request.Params["PHTUrl"], "审批", IconHelper.GetIconUrl(Icon.ApplicationAdd), true));
}
else
{
this.MenuSwitchMethod(Request.Params["menuType"]);
}
this.drpProject.DataValueField = "ProjectId";
this.drpProject.DataTextField = "ShortName";
var projectlist =ProjectService.GetSortIndexProjectByUserIdDropDownList(this.CurrUser.PersonId);
@@ -328,32 +354,7 @@ namespace FineUIPro.Web
this.drpProject.SelectedValue = this.CurrUser.LoginProjectId;
}
if (!string.IsNullOrEmpty(Request.Params["PHTUrl"]))
{
this.drpProject.SelectedValue = Request.Params["projectId"];
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;
}
}
btnPHTGL_Click(null, null);
PageContext.RegisterStartupScript(mainTabStrip.GetAddTabReference("dynamic_tab4", Request.Params["PHTUrl"], "审批", IconHelper.GetIconUrl(Icon.ApplicationAdd), true));
}
else
{
this.MenuSwitchMethod(Request.Params["menuType"]);
}
this.InitMenuStyleButton();
this.InitMenuModeButton();
this.InitLangMenuButton();