This commit is contained in:
2026-11-27 17:24:22 +08:00
parent 93a48943a1
commit b8393ebd33
13 changed files with 147 additions and 56 deletions
@@ -47,6 +47,11 @@ namespace FineUIPro.Web.HSSE.Examine
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
var thisProjectId = Request.Params["ProjectId"];
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
{
this.ProjectId = Request.Params["projectId"];
}
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
this.InitDropDownList();
@@ -67,6 +72,7 @@ namespace FineUIPro.Web.HSSE.Examine
if (!string.IsNullOrEmpty(model.UserId))
{
this.drpUser.SelectedValue = model.UserId;
this.drpUser.Readonly = true;
}
this.drpLevel.SelectedValue = model.Level;
this.txtScore.Text = model.Score.ToString();
@@ -78,7 +84,7 @@ namespace FineUIPro.Web.HSSE.Examine
else
{
////自动生成编码
this.txtCode.Text = SQLHelper.RunProcNewId2("SpGetNewCode3ByProjectId", "dbo.Examine_MinusScoreSituation", "Code", CurrUser.LoginProjectId);
this.txtCode.Text = SQLHelper.RunProcNewId2("SpGetNewCode3ByProjectId", "dbo.Examine_MinusScoreSituation", "Code", this.ProjectId);
//////自动生成编码
//this.txtCode.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.MinusScoreSituationMenuId, this.ProjectId, this.CurrUser.UnitId);
this.drpUser.SelectedValue = this.CurrUser.UserId;
@@ -92,7 +98,8 @@ namespace FineUIPro.Web.HSSE.Examine
/// </summary>
private void InitDropDownList()
{
BLL.UserService.InitUserDropDownList(this.drpUser, this.ProjectId, false);
//BLL.UserService.InitUserDropDownList(this.drpUser, this.ProjectId, false);
PersonService.InitPersonByProjectUnitDropDownList(this.drpUser, this.ProjectId, null, true);
}
/// <summary>