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();
@@ -68,6 +73,7 @@ namespace FineUIPro.Web.HSSE.Examine
if (!string.IsNullOrEmpty(model.PersonId))
{
this.drpPerson.SelectedValue = model.PersonId;
this.drpPerson.Readonly = true;
}
if (!string.IsNullOrEmpty(model.BonusScoreTypeId))
{
@@ -82,8 +88,7 @@ namespace FineUIPro.Web.HSSE.Examine
else
{
////自动生成编码
this.txtCode.Text = SQLHelper.RunProcNewId2("SpGetNewCode3ByProjectId", "dbo.Examine_BonusScoreSelfManagement", "Code", CurrUser.LoginProjectId);
//////自动生成编码
this.txtCode.Text = SQLHelper.RunProcNewId2("SpGetNewCode3ByProjectId", "dbo.Examine_BonusScoreSelfManagement", "Code", this.ProjectId);
//this.txtCode.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.BonusScoreSelfManagementMenuId, this.ProjectId, this.CurrUser.UnitId);
//this.drpPerson.SelectedValue = this.CurrUser.UserId;
//this.txtDateTime.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
@@ -97,7 +102,7 @@ namespace FineUIPro.Web.HSSE.Examine
private void InitDropDownList()
{
BonusScoreTypeService.InitBonusScoreTypeDropDownList(this.drpBonusScoreType, false);
PersonService.InitPersonByProjectUnitDropDownList(this.drpPerson, this.CurrUser.LoginProjectId, "", false);
PersonService.InitPersonByProjectUnitDropDownList(this.drpPerson, this.ProjectId, "", false);
}
/// <summary>