This commit is contained in:
2025-05-03 22:24:51 +08:00
parent 2c1bb29be6
commit 6ece9688b4
3 changed files with 51 additions and 14 deletions
+24 -11
View File
@@ -289,7 +289,7 @@ namespace FineUIPro.Web
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
var getDataList = Funs.DB.Sp_Main_GetToDoItems(this.CurrUser.UserId, CurrUser.LoginProjectId).ToList();
if (getDataList.Count == 0)
{
@@ -353,7 +353,7 @@ namespace FineUIPro.Web
this.hfMonitorPW.Text = "";
}
}
}
@@ -549,7 +549,7 @@ namespace FineUIPro.Web
{
this.Tab1.RefreshIFrame();
this.CurrUser.LoginProjectId = this.drpProject.SelectedValue;
PageContext.RegisterStartupScript("parent.removeActiveTab();");
MenuSwitchMethod(this.CurrUser.LastMenuType);
@@ -577,7 +577,7 @@ namespace FineUIPro.Web
this.hfMonitorPW.Text = "";
}
}
}
@@ -592,11 +592,23 @@ namespace FineUIPro.Web
this.XmlDataSource1.DataFile = "common/Menu_Personal.xml";
this.leftPanel.Hidden = true;
this.Tab1.IFrameUrl = "~/common/mainProject.aspx";
//根据身份证号判断当前登录账号是否在项目人员表里
var identityCard = !string.IsNullOrWhiteSpace(this.CurrUser.IdentityCard) ? this.CurrUser.IdentityCard.Trim() : string.Empty;
if (!string.IsNullOrWhiteSpace(identityCard))
{
var person = PersonService.GetPersonCountByIdentityCard(identityCard, this.CurrUser.LoginProjectId);
if (person != null)
{
this.Tab1.IFrameUrl = $"~/HSSE/EduTrain/Trainingrecords.aspx?personId={person.PersonId}";
}
}
this.CurrUser.LastProjectId = null;
if (!string.IsNullOrEmpty(type))
{
this.CurrUser.LastProjectId = this.CurrUser.LoginProjectId;
if (CommonService.IsHaveSystemPower(this.CurrUser.UserId, type, this.CurrUser.LoginProjectId) || type == Const.Menu_Personal|| type == Const.Menu_ToDo) //
if (CommonService.IsHaveSystemPower(this.CurrUser.UserId, type, this.CurrUser.LoginProjectId) || type == Const.Menu_Personal || type == Const.Menu_ToDo) //
{
this.XmlDataSource1.DataFile = "common/" + type + ".xml";
this.leftPanel.Hidden = false;
@@ -647,7 +659,7 @@ namespace FineUIPro.Web
else
{
//this.MenuSwitchMethod(string.Empty);
PageContext.Redirect("~/indexProject.aspx?projectId="+ this.CurrUser.LoginProjectId, "_top");
PageContext.Redirect("~/indexProject.aspx?projectId=" + this.CurrUser.LoginProjectId, "_top");
}
}
protected void btnCQMS_Click(object sender, EventArgs e)
@@ -698,7 +710,8 @@ namespace FineUIPro.Web
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void butFiveStars_Click(object sender, EventArgs e) {
protected void butFiveStars_Click(object sender, EventArgs e)
{
this.MenuSwitchMethod(Const.Menu_FiveStarts);
}
@@ -718,7 +731,7 @@ namespace FineUIPro.Web
string url = ConfigurationManager.AppSettings["Video_URL"] + "#/screen";
Response.Write("<script>window.open(" + url + "'',''_blank'')</script>");
// this.MenuSwitchMethod(Const.Menu_DigitalSite);
}
}
}
protected string VideoURL
@@ -739,9 +752,9 @@ namespace FineUIPro.Web
}
}
}
protected void btnPDigData_Click(object sender, EventArgs e)
{
this.MenuSwitchMethod(Const.Menu_PDigData);