2023-04-25-001
This commit is contained in:
@@ -351,6 +351,7 @@
|
||||
/// 无损检测工岗位Id
|
||||
/// </summary>
|
||||
public static string WorkPost_Checker = "595999E9-75A8-4064-9BD1-9EE02F236297";
|
||||
|
||||
#endregion
|
||||
|
||||
#region 系统环境设置常量
|
||||
@@ -413,6 +414,19 @@
|
||||
/// 系统管理员
|
||||
/// </summary>
|
||||
public const string SystemManager = "4001f8c8-7f55-4660-822a-6b129ecf0342";
|
||||
/// <summary>
|
||||
/// 赛鼎施工管理部合同管理(能看到所有信息)
|
||||
/// </summary>
|
||||
public const string SedinHTGLManager = "58994640-5469-4cb0-b725-b6bec4e710ae";
|
||||
/// <summary>
|
||||
/// 赛鼎其他部门合同管理(只能看见本部门)
|
||||
/// </summary>
|
||||
public const string SedinHTGLDepartManager = "46e1ec69-4bae-4972-b278-a40185986876";
|
||||
/// <summary>
|
||||
/// 分子公司合同管理(只能看见要公司信息)
|
||||
/// </summary>
|
||||
public const string OtherHTGLManager = "65073269-0a14-4655-8f9e-981104b37de9";
|
||||
|
||||
#endregion
|
||||
|
||||
#region 内置项目角色定义
|
||||
|
||||
@@ -28,6 +28,8 @@ namespace BLL
|
||||
{
|
||||
var q = from x in db.PHTGL_BidDocumentsStandingBook
|
||||
where
|
||||
(string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
|
||||
(string.IsNullOrEmpty(table.DepartId) || x.DepartId.Contains(table.DepartId)) &&
|
||||
(string.IsNullOrEmpty(table.BidDocumentsStandingBookId) || x.BidDocumentsStandingBookId.Contains(table.BidDocumentsStandingBookId)) &&
|
||||
(string.IsNullOrEmpty(table.EPCCode) || x.EPCCode.Contains(table.EPCCode)) &&
|
||||
(string.IsNullOrEmpty(table.ProjectShortName) || x.ProjectShortName.Contains(table.ProjectShortName)) &&
|
||||
@@ -70,6 +72,8 @@ namespace BLL
|
||||
select new
|
||||
{
|
||||
x.BidDocumentsStandingBookId,
|
||||
x.UnitId,
|
||||
x.DepartId,
|
||||
x.EPCCode,
|
||||
x.ProjectShortName,
|
||||
x.ProjectCode,
|
||||
@@ -106,6 +110,8 @@ namespace BLL
|
||||
Model.PHTGL_BidDocumentsStandingBook table = new Model.PHTGL_BidDocumentsStandingBook
|
||||
{
|
||||
BidDocumentsStandingBookId = newtable.BidDocumentsStandingBookId,
|
||||
UnitId= newtable.UnitId,
|
||||
DepartId= newtable.DepartId,
|
||||
EPCCode = newtable.EPCCode,
|
||||
ProjectShortName = newtable.ProjectShortName,
|
||||
ProjectCode = newtable.ProjectCode,
|
||||
@@ -145,6 +151,8 @@ namespace BLL
|
||||
if (table != null)
|
||||
{
|
||||
table.BidDocumentsStandingBookId = newtable.BidDocumentsStandingBookId;
|
||||
table.UnitId= newtable.UnitId;
|
||||
table.DepartId= newtable.DepartId;
|
||||
table.EPCCode = newtable.EPCCode;
|
||||
table.ProjectShortName = newtable.ProjectShortName;
|
||||
table.ProjectCode = newtable.ProjectCode;
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace BLL
|
||||
where
|
||||
(string.IsNullOrEmpty(table.ContractId) || x.ContractId.Contains(table.ContractId)) &&
|
||||
(string.IsNullOrEmpty(table.ProjectId) || x.ProjectId.Contains(table.ProjectId)) &&
|
||||
(string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
|
||||
(string.IsNullOrEmpty(table.ContractName) || x.ContractName.Contains(table.ContractName)) &&
|
||||
(string.IsNullOrEmpty(table.ContractNum) || x.ContractNum.Contains(table.ContractNum)) &&
|
||||
(string.IsNullOrEmpty(table.Parties) || x.Parties.Contains(table.Parties)) &&
|
||||
@@ -98,6 +99,7 @@ namespace BLL
|
||||
{
|
||||
x.ContractId,
|
||||
x.ProjectId,
|
||||
x.UnitId,
|
||||
x.ContractName,
|
||||
x.ContractNum,
|
||||
x.Parties,
|
||||
@@ -216,6 +218,7 @@ namespace BLL
|
||||
{
|
||||
ContractId = newtable.ContractId,
|
||||
ProjectId = newtable.ProjectId,
|
||||
UnitId=newtable.UnitId,
|
||||
ProjectName= newtable.ProjectName,
|
||||
ProjectCode= newtable.ProjectCode,
|
||||
ContractName = newtable.ContractName,
|
||||
@@ -283,6 +286,7 @@ namespace BLL
|
||||
if (newContract != null)
|
||||
{
|
||||
newContract.ProjectId = contract.ProjectId;
|
||||
newContract.UnitId= contract.UnitId;
|
||||
newContract.ProjectName=contract.ProjectName;
|
||||
newContract.ProjectCode=contract.ProjectCode;
|
||||
newContract.ContractCode = contract.ContractCode;
|
||||
|
||||
@@ -92,7 +92,20 @@ namespace BLL
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
public static string getDepartNameById(object departId)
|
||||
{
|
||||
string name = string.Empty;
|
||||
if (departId!=null&& !string.IsNullOrEmpty(departId.ToString()))
|
||||
{
|
||||
var dep = Funs.DB.Base_Depart.FirstOrDefault(e => e.DepartId == departId.ToString());
|
||||
if (dep != null)
|
||||
{
|
||||
name = dep.DepartName;
|
||||
}
|
||||
}
|
||||
|
||||
return name;
|
||||
}
|
||||
#region 表下拉框
|
||||
/// <summary>
|
||||
/// 表下拉框
|
||||
|
||||
Reference in New Issue
Block a user