提交代码

This commit is contained in:
2024-09-24 11:28:27 +08:00
parent 24de50cd30
commit 0865c7e41e
54 changed files with 5535 additions and 784 deletions
+24
View File
@@ -388,6 +388,30 @@ namespace BLL
}
#endregion
#region Id判断是否为本单位用户或管理员
/// <summary>
/// 根据用户UnitId判断是否为本单位用户或管理员
/// </summary>
/// <returns></returns>
public static bool IsMainUnitOrAdmin2(string userId)
{
bool result = false;
if (userId == Const.sysglyId || userId == Const.hfnbdId)
{
result = true;
}
else
{
var user = Person_PersonsService.GetPerson_PersonsById(userId);
if (user != null && (user.UnitId == Const.UnitId_SEDIN || user.UnitId == Const.UnitId_SEDINNB))
{
result = true;
}
}
return result;
}
#endregion
#region ID判断是否
/// <summary>
/// 根据用户UnitId判断是否为本单位用户或管理员
+37
View File
@@ -200,6 +200,10 @@ namespace BLL
/// </summary>
public const string UnitId_SEDIN = "d72a27c9-4ba9-41c5-ab0b-c010409f20f2";
/// <summary>
/// 赛鼎宁波单位id
/// </summary>
public const string UnitId_SEDINNB = "274fc39e-66e2-4bb9-8080-acb808499e82";
/// <summary>
/// 集团公司单位id
/// </summary>
public const string UnitId_CNCEC = "722090d1-b5de-4c3c-a4f7-14f308161a3b";
@@ -5048,5 +5052,38 @@ namespace BLL
/// </summary>
public const string UpState_4 = "4";
#endregion
#region
/// <summary>
/// 重新编制
/// </summary>
public const string ConstructionRisk_ReCompile = "0";
/// <summary>
/// 总包专业工程师编制
/// </summary>
public const string ConstructionRisk_Compile = "1";
/// <summary>
/// 总包施工经理审核
/// </summary>
public static string ConstructionRisk_Audit1 = "2";//总包
/// <summary>
/// 总包安全经理审核
/// </summary>
public static string ConstructionRisk_Audit2 = "3";//总包
/// <summary>
/// 审批完成(实施中)
/// </summary>
public static string ConstructionRisk_Audit3 = "4";
/// <summary>
/// 完成
/// </summary>
public const string ConstructionRisk_Complete = "5";//分包
#endregion
}
}