检查关联培训

This commit is contained in:
2026-11-19 16:31:11 +08:00
parent 461bca785b
commit 8490311e94
22 changed files with 442 additions and 132 deletions
@@ -109,6 +109,11 @@ namespace FineUIPro.Web.Check.QMS
/// </summary>
public static List<Sys_User> users = new List<Sys_User>();
/// <summary>
/// 项目人员
/// </summary>
public static List<SitePerson_Person> persons = new List<SitePerson_Person>();
#endregion
protected void Page_Load(object sender, EventArgs e)
@@ -118,6 +123,8 @@ namespace FineUIPro.Web.Check.QMS
//users = BLL.ProjectUserService.GetProjectUserByProjectId(this.ProjectId,null,null);
//获取所有在岗用户
users = BLL.UserService.GetProjectUserListByProjectId(null);
//获取所有项目人员
persons = BLL.PersonService.GetPersonLitsByProjectIdUnitId(null, null);
classifys = QualityProblemClassifyService.GetClassify();
classifyItems = QualityProblemClassifyItemService.GetClassifyItemList("");
@@ -465,10 +472,12 @@ namespace FineUIPro.Web.Check.QMS
}
if (!string.IsNullOrEmpty(rData9))
{
var user = users.Where(x => x.UserName == rData9).FirstOrDefault();
var user = persons.Where(x => (x.ProjectId == ProjectId || ProjectId == null) && x.PersonName == rData9).FirstOrDefault();
//var user = users.Where(x => x.UserName == rData9).FirstOrDefault();
if (user != null)
{
RectificationUserId = user.UserId;
RectificationUserId = user.PersonName;
//RectificationUserId = user.UserId;
RectificationUserName = rData9;
}
else