2022-10-11 焊接修改及接口新增

This commit is contained in:
2022-10-11 17:12:13 +08:00
parent e4052c419f
commit 6b0db8cd74
15 changed files with 1209 additions and 27 deletions
+26
View File
@@ -192,6 +192,32 @@ namespace BLL
}
#endregion
/// <summary>
/// 根据主键,项目id判断当前人单位是否是总包单位
/// </summary>
/// <param name="PersonId"></param>
/// <param name="ProjectId"></param>
/// <returns></returns>
public static bool IsGeneralUnitByPersonId(string PersonId,string ProjectId)
{
bool result = false;
var PersonEntity = GetPerson_PersonsById(PersonId);
if (PersonEntity!=null)
{
var pUnit = Funs.DB.Project_ProjectUnit.FirstOrDefault(e => e.ProjectId == ProjectId && e.UnitId == PersonEntity.UnitId);
if (pUnit != null)
{
if (pUnit.UnitType == Const.ProjectUnitType_1 )
{
result = true;
}
}
}
return result;
}
#region
/// <summary>
/// 根据身份证号码获取人员信息