0326-001-gaofei
This commit is contained in:
parent
b46c3f0cf8
commit
39dd9da9a8
|
@ -116,6 +116,15 @@ namespace BLL
|
||||||
return Funs.DB.BS_Welder.FirstOrDefault(e => e.WED_ID == WED_ID);
|
return Funs.DB.BS_Welder.FirstOrDefault(e => e.WED_ID == WED_ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 根据id查询人员信息
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="groupId"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static Model.BS_Welder GetBSWelderByProjectIdUnitIdAndWED_Code(string projectId,string unitId,string WED_Code)
|
||||||
|
{
|
||||||
|
return Funs.DB.BS_Welder.FirstOrDefault(e => e.ProjectId == projectId && e.WED_Unit== unitId && e.WED_Code== WED_Code);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 添加人员信息
|
/// 添加人员信息
|
||||||
|
|
|
@ -213,6 +213,17 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||||
{
|
{
|
||||||
inspectionPerson.InspectionPersonId = this.InspectionPersonId;
|
inspectionPerson.InspectionPersonId = this.InspectionPersonId;
|
||||||
BLL.InspectionPersonService.UpdateInspectionPerson(inspectionPerson);
|
BLL.InspectionPersonService.UpdateInspectionPerson(inspectionPerson);
|
||||||
|
// 焊工部分
|
||||||
|
var oldWelder = BLL.PersonManageService.GetBSWelderByProjectIdUnitIdAndWED_Code(welder.ProjectId, welder.WED_Unit, welder.WED_Code);
|
||||||
|
if (oldWelder != null)
|
||||||
|
{
|
||||||
|
welder.WED_ID = oldWelder.WED_ID;
|
||||||
|
BLL.PersonManageService.UpdateBSWelder(welder);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
BLL.PersonManageService.AddBSWelder(welder);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||||
|
|
Loading…
Reference in New Issue