0110-gaofei

This commit is contained in:
gaofei 2022-01-10 10:55:18 +08:00
parent 93996822ec
commit d02cd7ff74
9 changed files with 673 additions and 68 deletions

View File

@ -29,24 +29,30 @@ namespace BLL
/// </summary> /// </summary>
/// <param name="unitProjectId">专业Id</param> /// <param name="unitProjectId">专业Id</param>
/// <returns></returns> /// <returns></returns>
public static string GetCnProfessionIdByInstallationIdAndOldId(string installationId, string oldId) public static List<string> GetCnProfessionIdsByInstallationIdAndOldId(string installationId, string oldId)
{ {
string cnProfessionId = string.Empty; List<string> cnProfessionIds = new List<string>();
Model.SGGLDB db = Funs.DB; Model.SGGLDB db = Funs.DB;
var ins = db.Project_Installation.FirstOrDefault(x => x.InstallationId == installationId); var ins = db.Project_Installation.FirstOrDefault(x => x.InstallationId == installationId);
if (ins.IsEnd == true) var childInss = from x in db.Project_Installation where x.SuperInstallationId == installationId select x;
if (childInss.Count() == 0)
{ {
var cn = db.WBS_CnProfession.FirstOrDefault(x => x.InstallationId == ins.InstallationId && x.OldId.ToString() == oldId); var cn = db.WBS_CnProfession.FirstOrDefault(x => x.InstallationId == ins.InstallationId && x.OldId.ToString() == oldId);
cnProfessionId = cn.CnProfessionId; if (cn != null)
{
cnProfessionIds.Add(cn.CnProfessionId);
}
} }
else else
{ {
var childIns = db.Project_Installation.FirstOrDefault(x => x.SuperInstallationId == installationId); var childIns = from x in db.Project_Installation where x.SuperInstallationId == installationId select x;
cnProfessionId = GetCnProfessionIdByInstallationIdAndOldId(childIns.InstallationId, oldId); foreach (var childIn in childIns)
{
cnProfessionIds.AddRange(GetCnProfessionIdsByInstallationIdAndOldId(childIn.InstallationId,oldId));
} }
return cnProfessionId;
} }
return cnProfessionIds;
}
/// <summary> /// <summary>
/// 增加专业 /// 增加专业

View File

@ -74,20 +74,30 @@ namespace BLL
/// <returns></returns> /// <returns></returns>
public static List<string> GetUnitProjectIdByInstallationIdAndCNCodeAndUnitProjectCode(string installationId, string cnCode, string unitProjectCode) public static List<string> GetUnitProjectIdByInstallationIdAndCNCodeAndUnitProjectCode(string installationId, string cnCode, string unitProjectCode)
{ {
List<string> ids = new List<string>();
Model.SGGLDB db = Funs.DB; Model.SGGLDB db = Funs.DB;
string inId = string.Empty; string inId = string.Empty;
Model.Project_Installation ins = db.Project_Installation.FirstOrDefault(x => x.InstallationId == installationId); Model.Project_Installation ins = db.Project_Installation.FirstOrDefault(x => x.InstallationId == installationId);
if (ins.IsEnd == true) var childInss = from x in db.Project_Installation where x.SuperInstallationId == installationId select x;
if (childInss.Count() == 0)
{ {
inId = installationId; inId = installationId;
var cn = (from x in db.WBS_CnProfession where x.InstallationId == inId && x.OldId.ToString() == cnCode select x).FirstOrDefault();
if (cn != null)
{
ids.AddRange((from x in db.Wbs_UnitProject where x.CnProfessionId == cn.CnProfessionId && x.UnitProjectCode == unitProjectCode select x.UnitProjectId).ToList());
}
} }
else else
{ {
inId = Project_InstallationService.GetEndInstallationId(installationId); var childIns = from x in db.Project_Installation where x.SuperInstallationId == installationId select x;
foreach (var childIn in childIns)
{
ids.AddRange(GetUnitProjectIdByInstallationIdAndCNCodeAndUnitProjectCode(childIn.InstallationId, cnCode, unitProjectCode));
} }
var cn = (from x in db.WBS_CnProfession where x.InstallationId == inId && x.OldId.ToString() == cnCode select x).FirstOrDefault(); }
var list = (from x in db.Wbs_UnitProject where x.CnProfessionId == cn.CnProfessionId && x.UnitProjectCode == unitProjectCode select x.UnitProjectId).ToList();
return list; return ids;
} }
/// <summary> /// <summary>

View File

@ -141,7 +141,7 @@ namespace BLL
{ {
if (cnProfessionId != Const.ACCNProfessionalId.ToString() && cnProfessionId != Const.GECNProfessionalId.ToString() && cnProfessionId != Const.UPCNProfessionalId.ToString() && cnProfessionId != Const.TFCNProfessionalId.ToString() && cnProfessionId != Const.GLCNProfessionalId.ToString()) if (cnProfessionId != Const.ACCNProfessionalId.ToString() && cnProfessionId != Const.GECNProfessionalId.ToString() && cnProfessionId != Const.UPCNProfessionalId.ToString() && cnProfessionId != Const.TFCNProfessionalId.ToString() && cnProfessionId != Const.GLCNProfessionalId.ToString())
{ {
newList = (from x in newList where (x.WBSType == "Installation" && x.Name != "防腐绝热" && x.Name != "地勘" && x.Name != "全厂地下主管网" && x.Name != "临时设施" && x.Name != "总图") || (x.WBSType != "Installation" && x.OldCnProfessionId.ToString() == cnProfessionId) select x).ToList(); newList = (from x in newList where (x.WBSType == "Installation" && !x.Name.Contains("防腐绝热") && !x.Name.Contains("地勘") && !x.Name.Contains("全厂地下主管网") && !x.Name.Contains("临时设施") && !x.Name.Contains("总图")) || (x.WBSType != "Installation" && x.OldCnProfessionId.ToString() == cnProfessionId) select x).ToList();
var cn = cnProfessionInits.FirstOrDefault(x => x.CnProfessionId.ToString() == cnProfessionId); var cn = cnProfessionInits.FirstOrDefault(x => x.CnProfessionId.ToString() == cnProfessionId);
parentRow = table.NewRow(); parentRow = table.NewRow();
parentRow[0] = cn.CnProfessionId.ToString(); parentRow[0] = cn.CnProfessionId.ToString();
@ -196,6 +196,7 @@ namespace BLL
row[3] = item.ProjectId; row[3] = item.ProjectId;
if (item.WBSType == "Installation") if (item.WBSType == "Installation")
{ {
decimal ind10 = 0, ind11 = 0, ind12 = 0, ind15 = 0, ind16 = 0, ind17 = 0;
if (item.SupId == "0") if (item.SupId == "0")
{ {
row[1] = cn.CnProfessionId.ToString(); row[1] = cn.CnProfessionId.ToString();
@ -204,25 +205,52 @@ namespace BLL
{ {
row[1] = item.SupId; row[1] = item.SupId;
} }
string cnId = BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(item.Id, cnProfessionId); List<string> cnIds = BLL.CnProfessionService.GetCnProfessionIdsByInstallationIdAndOldId(item.Id, cnProfessionId);
foreach (var cnId in cnIds)
{
Model.View_WBS_CostControlParentDetail parentDetail = parentDetails.FirstOrDefault(x => x.ParentId == cnId && x.Months == months); Model.View_WBS_CostControlParentDetail parentDetail = parentDetails.FirstOrDefault(x => x.ParentId == cnId && x.Months == months);
if (parentDetail != null) if (parentDetail != null)
{ {
row[10] = decimal.Round(Convert.ToDecimal(parentDetail.ThisRealCost), 2);//本月实际成本 ind10 += decimal.Round(Convert.ToDecimal(parentDetail.ThisRealCost), 2);
row[11] = decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanValue), 2);//本月计划完成预算 ind11 += decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanValue), 2);
row[12] = decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanCost), 2);//本月完成预算 ind12 += decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanCost), 2);
row[15] = decimal.Round(Convert.ToDecimal(parentDetail.TotalRealCost), 2);//累计完成成本 ind15 += decimal.Round(Convert.ToDecimal(parentDetail.TotalRealCost), 2);
row[16] = decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanValue), 2);//累计计划完成预算 ind16 += decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanValue), 2);
row[17] = decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanCost), 2);//累计完成预算 ind17 += decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanCost), 2);
} }
else else
{ {
Model.View_WBS_CostControlParentDetail parentLastDetail = parentDetails.OrderByDescending(x => x.Months).FirstOrDefault(x => x.ParentId == cnId); Model.View_WBS_CostControlParentDetail parentLastDetail = parentDetails.OrderByDescending(x => x.Months).FirstOrDefault(x => x.ParentId == cnId);
if (parentLastDetail != null && parentLastDetail.Months <= months) if (parentLastDetail != null && parentLastDetail.Months <= months)
{ {
row[15] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalRealCost), 2);//累计完成成本 ind15 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalRealCost), 2);
row[16] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanValue), 2);//累计计划完成预算 ind16 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanValue), 2);
row[17] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanCost), 2);//累计完成预算 ind17 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanCost), 2);
}
}
}
if (ind10 != 0)
{
row[10] = decimal.Round(ind10, 2);//本月实际成本
row[11] = decimal.Round(ind11, 2);//本月计划完成预算
row[12] = decimal.Round(ind12, 2);//本月完成预算
row[15] = decimal.Round(ind15, 2);//累计完成成本
row[16] = decimal.Round(ind16, 2);//累计计划完成预算
row[17] = decimal.Round(ind17, 2);//累计完成预算
}
else
{
if (ind15 > 0)
{
row[15] = decimal.Round(ind15, 2);//累计完成成本
}
if (ind16 > 0)
{
row[16] = decimal.Round(ind16, 2);//累计计划完成预算
}
if (ind17 > 0)
{
row[17] = decimal.Round(ind17, 2);//累计完成预算
} }
} }
} }
@ -491,7 +519,7 @@ namespace BLL
{ {
if (cnProfessionId != Const.ACCNProfessionalId.ToString() && cnProfessionId != Const.GECNProfessionalId.ToString() && cnProfessionId != Const.UPCNProfessionalId.ToString() && cnProfessionId != Const.TFCNProfessionalId.ToString() && cnProfessionId != Const.GLCNProfessionalId.ToString()) if (cnProfessionId != Const.ACCNProfessionalId.ToString() && cnProfessionId != Const.GECNProfessionalId.ToString() && cnProfessionId != Const.UPCNProfessionalId.ToString() && cnProfessionId != Const.TFCNProfessionalId.ToString() && cnProfessionId != Const.GLCNProfessionalId.ToString())
{ {
newList = (from x in newList where (x.WBSType == "Installation" && x.Name != "防腐绝热" && x.Name != "地勘" && x.Name != "全厂地下主管网" && x.Name != "临时设施" && x.Name != "总图") || (x.WBSType == "CnProfession" && x.OldCnProfessionId.ToString() == cnProfessionId) || (x.WBSType != "Installation" && x.WBSType != "CnProfession" && x.OldCnProfessionId.ToString() == cnProfessionId && x.OldUnitProjectCode == unitProjectCode) select x).ToList(); newList = (from x in newList where (x.WBSType == "Installation" && !x.Name.Contains("防腐绝热") && !x.Name.Contains("地勘") && !x.Name.Contains("全厂地下主管网") && !x.Name.Contains("临时设施") && !x.Name.Contains("总图")) || (x.WBSType == "CnProfession" && x.OldCnProfessionId.ToString() == cnProfessionId) || (x.WBSType != "Installation" && x.WBSType != "CnProfession" && x.OldCnProfessionId.ToString() == cnProfessionId && x.OldUnitProjectCode == unitProjectCode) select x).ToList();
var up = unitProjectInits.FirstOrDefault(x => x.UnitProjectCode == unitProjectCode); var up = unitProjectInits.FirstOrDefault(x => x.UnitProjectCode == unitProjectCode);
parentRow = table.NewRow(); parentRow = table.NewRow();
parentRow[0] = up.UnitProjectCode; parentRow[0] = up.UnitProjectCode;
@ -858,7 +886,7 @@ namespace BLL
{ {
if (cnProfessionId != Const.ACCNProfessionalId.ToString() && cnProfessionId != Const.GECNProfessionalId.ToString() && cnProfessionId != Const.UPCNProfessionalId.ToString() && cnProfessionId != Const.TFCNProfessionalId.ToString() && cnProfessionId != Const.GLCNProfessionalId.ToString()) if (cnProfessionId != Const.ACCNProfessionalId.ToString() && cnProfessionId != Const.GECNProfessionalId.ToString() && cnProfessionId != Const.UPCNProfessionalId.ToString() && cnProfessionId != Const.TFCNProfessionalId.ToString() && cnProfessionId != Const.GLCNProfessionalId.ToString())
{ {
newList = (from x in newList where (x.WBSType == "Installation" && x.Name != "防腐绝热" && x.Name != "地勘" && x.Name != "全厂地下主管网" && x.Name != "临时设施" && x.Name != "总图") || (x.WBSType == "CnProfession" && x.OldCnProfessionId.ToString() == cnProfessionId) || (x.WBSType == "UnitProject" && x.OldCnProfessionId.ToString() == cnProfessionId && x.OldUnitProjectCode == unitProjectCode) || (x.WBSType != "Installation" && x.WBSType != "CnProfession" && x.WBSType != "UnitProject" && x.OldCnProfessionId.ToString() == cnProfessionId && x.OldUnitProjectCode == unitProjectCode && x.OldWbsSetCode == wbsSetCode) select x).ToList(); newList = (from x in newList where (x.WBSType == "Installation" && !x.Name.Contains("防腐绝热") && !x.Name.Contains("地勘") && !x.Name.Contains("全厂地下主管网") && !x.Name.Contains("临时设施") && !x.Name.Contains("总图")) || (x.WBSType == "CnProfession" && x.OldCnProfessionId.ToString() == cnProfessionId) || (x.WBSType == "UnitProject" && x.OldCnProfessionId.ToString() == cnProfessionId && x.OldUnitProjectCode == unitProjectCode) || (x.WBSType != "Installation" && x.WBSType != "CnProfession" && x.WBSType != "UnitProject" && x.OldCnProfessionId.ToString() == cnProfessionId && x.OldUnitProjectCode == unitProjectCode && x.OldWbsSetCode == wbsSetCode) select x).ToList();
var wb = wbsSetInits.FirstOrDefault(x => x.WbsSetCode == wbsSetCode); var wb = wbsSetInits.FirstOrDefault(x => x.WbsSetCode == wbsSetCode);
parentRow = table.NewRow(); parentRow = table.NewRow();
parentRow[0] = wb.WbsSetCode; parentRow[0] = wb.WbsSetCode;
@ -1349,7 +1377,7 @@ namespace BLL
{ {
if (cnProfessionId != Const.ACCNProfessionalId.ToString() && cnProfessionId != Const.GECNProfessionalId.ToString() && cnProfessionId != Const.UPCNProfessionalId.ToString() && cnProfessionId != Const.TFCNProfessionalId.ToString() && cnProfessionId != Const.GLCNProfessionalId.ToString()) if (cnProfessionId != Const.ACCNProfessionalId.ToString() && cnProfessionId != Const.GECNProfessionalId.ToString() && cnProfessionId != Const.UPCNProfessionalId.ToString() && cnProfessionId != Const.TFCNProfessionalId.ToString() && cnProfessionId != Const.GLCNProfessionalId.ToString())
{ {
newList = (from x in newList where (x.WBSType == "Installation" && x.Name != "防腐绝热" && x.Name != "地勘" && x.Name != "全厂地下主管网" && x.Name != "临时设施" && x.Name != "总图") || (x.WBSType != "Installation" && x.OldCnProfessionId.ToString() == cnProfessionId) select x).ToList(); newList = (from x in newList where (x.WBSType == "Installation" && !x.Name.Contains("防腐绝热") && !x.Name.Contains("地勘") && !x.Name.Contains("全厂地下主管网") && !x.Name.Contains("临时设施") && !x.Name.Contains("总图")) || (x.WBSType != "Installation" && x.OldCnProfessionId.ToString() == cnProfessionId) select x).ToList();
var cn = cnProfessionInits.FirstOrDefault(x => x.CnProfessionId.ToString() == cnProfessionId); var cn = cnProfessionInits.FirstOrDefault(x => x.CnProfessionId.ToString() == cnProfessionId);
parentRow = table.NewRow(); parentRow = table.NewRow();
parentRow[0] = cn.CnProfessionId.ToString(); parentRow[0] = cn.CnProfessionId.ToString();
@ -1404,6 +1432,7 @@ namespace BLL
row[3] = item.ProjectId; row[3] = item.ProjectId;
if (item.WBSType == "Installation") if (item.WBSType == "Installation")
{ {
decimal ind10 = 0, ind11 = 0, ind12 = 0, ind15 = 0, ind16 = 0, ind17 = 0;
if (item.SupId == "0") if (item.SupId == "0")
{ {
row[1] = cn.CnProfessionId.ToString(); row[1] = cn.CnProfessionId.ToString();
@ -1412,25 +1441,52 @@ namespace BLL
{ {
row[1] = item.SupId; row[1] = item.SupId;
} }
string cnId = BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(item.Id, cnProfessionId); List<string> cnIds = BLL.CnProfessionService.GetCnProfessionIdsByInstallationIdAndOldId(item.Id, cnProfessionId);
foreach (var cnId in cnIds)
{
Model.View_WBS_CostControlParentDetail parentDetail = parentDetails.FirstOrDefault(x => x.ParentId == cnId && x.Months == months && x.StartDate == start); Model.View_WBS_CostControlParentDetail parentDetail = parentDetails.FirstOrDefault(x => x.ParentId == cnId && x.Months == months && x.StartDate == start);
if (parentDetail != null) if (parentDetail != null)
{ {
row[10] = decimal.Round(Convert.ToDecimal(parentDetail.ThisWeekRealCost), 2);//本周实际成本 ind10 += decimal.Round(Convert.ToDecimal(parentDetail.ThisRealCost), 2);
row[11] = decimal.Round(Convert.ToDecimal(parentDetail.ThisWeekPlanValue), 2);//本周计划完成预算 ind11 += decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanValue), 2);
row[12] = decimal.Round(Convert.ToDecimal(parentDetail.ThisWeekPlanCost), 2);//本周完成预算 ind12 += decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanCost), 2);
row[15] = decimal.Round(Convert.ToDecimal(parentDetail.TotalWeekRealCost), 2);//累计完成成本 ind15 += decimal.Round(Convert.ToDecimal(parentDetail.TotalRealCost), 2);
row[16] = decimal.Round(Convert.ToDecimal(parentDetail.TotalWeekPlanValue), 2);//累计计划完成预算 ind16 += decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanValue), 2);
row[17] = decimal.Round(Convert.ToDecimal(parentDetail.TotalWeekPlanCost), 2);//累计完成预算 ind17 += decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanCost), 2);
} }
else else
{ {
Model.View_WBS_CostControlParentDetail parentLastDetail = parentDetails.OrderByDescending(x => x.Months).OrderByDescending(x => x.StartDate).FirstOrDefault(x => x.ParentId == cnId); Model.View_WBS_CostControlParentDetail parentLastDetail = parentDetails.OrderByDescending(x => x.Months).OrderByDescending(x => x.StartDate).FirstOrDefault(x => x.ParentId == cnId);
if (parentLastDetail != null && parentLastDetail.Months <= months) if (parentLastDetail != null && parentLastDetail.Months <= months)
{ {
row[15] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalWeekRealCost), 2);//累计完成成本 ind15 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalRealCost), 2);
row[16] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalWeekPlanValue), 2);//累计计划完成预算 ind16 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanValue), 2);
row[17] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalWeekPlanCost), 2);//累计完成预算 ind17 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanCost), 2);
}
}
}
if (ind10 != 0)
{
row[10] = decimal.Round(ind10, 2);//本月实际成本
row[11] = decimal.Round(ind11, 2);//本月计划完成预算
row[12] = decimal.Round(ind12, 2);//本月完成预算
row[15] = decimal.Round(ind15, 2);//累计完成成本
row[16] = decimal.Round(ind16, 2);//累计计划完成预算
row[17] = decimal.Round(ind17, 2);//累计完成预算
}
else
{
if (ind15 > 0)
{
row[15] = decimal.Round(ind15, 2);//累计完成成本
}
if (ind16 > 0)
{
row[16] = decimal.Round(ind16, 2);//累计计划完成预算
}
if (ind17 > 0)
{
row[17] = decimal.Round(ind17, 2);//累计完成预算
} }
} }
} }
@ -1699,7 +1755,7 @@ namespace BLL
{ {
if (cnProfessionId != Const.ACCNProfessionalId.ToString() && cnProfessionId != Const.GECNProfessionalId.ToString() && cnProfessionId != Const.UPCNProfessionalId.ToString() && cnProfessionId != Const.TFCNProfessionalId.ToString() && cnProfessionId != Const.GLCNProfessionalId.ToString()) if (cnProfessionId != Const.ACCNProfessionalId.ToString() && cnProfessionId != Const.GECNProfessionalId.ToString() && cnProfessionId != Const.UPCNProfessionalId.ToString() && cnProfessionId != Const.TFCNProfessionalId.ToString() && cnProfessionId != Const.GLCNProfessionalId.ToString())
{ {
newList = (from x in newList where (x.WBSType == "Installation" && x.Name != "防腐绝热" && x.Name != "地勘" && x.Name != "全厂地下主管网" && x.Name != "临时设施" && x.Name != "总图") || (x.WBSType == "CnProfession" && x.OldCnProfessionId.ToString() == cnProfessionId) || (x.WBSType != "Installation" && x.WBSType != "CnProfession" && x.OldCnProfessionId.ToString() == cnProfessionId && x.OldUnitProjectCode == unitProjectCode) select x).ToList(); newList = (from x in newList where (x.WBSType == "Installation" && !x.Name.Contains("防腐绝热") && !x.Name.Contains("地勘") && !x.Name.Contains("全厂地下主管网") && !x.Name.Contains("临时设施") && !x.Name.Contains("总图")) || (x.WBSType == "CnProfession" && x.OldCnProfessionId.ToString() == cnProfessionId) || (x.WBSType != "Installation" && x.WBSType != "CnProfession" && x.OldCnProfessionId.ToString() == cnProfessionId && x.OldUnitProjectCode == unitProjectCode) select x).ToList();
var up = unitProjectInits.FirstOrDefault(x => x.UnitProjectCode == unitProjectCode); var up = unitProjectInits.FirstOrDefault(x => x.UnitProjectCode == unitProjectCode);
parentRow = table.NewRow(); parentRow = table.NewRow();
parentRow[0] = up.UnitProjectCode; parentRow[0] = up.UnitProjectCode;
@ -2066,7 +2122,7 @@ namespace BLL
{ {
if (cnProfessionId != Const.ACCNProfessionalId.ToString() && cnProfessionId != Const.GECNProfessionalId.ToString() && cnProfessionId != Const.UPCNProfessionalId.ToString() && cnProfessionId != Const.TFCNProfessionalId.ToString() && cnProfessionId != Const.GLCNProfessionalId.ToString()) if (cnProfessionId != Const.ACCNProfessionalId.ToString() && cnProfessionId != Const.GECNProfessionalId.ToString() && cnProfessionId != Const.UPCNProfessionalId.ToString() && cnProfessionId != Const.TFCNProfessionalId.ToString() && cnProfessionId != Const.GLCNProfessionalId.ToString())
{ {
newList = (from x in newList where (x.WBSType == "Installation" && x.Name != "防腐绝热" && x.Name != "地勘" && x.Name != "全厂地下主管网" && x.Name != "临时设施" && x.Name != "总图") || (x.WBSType == "CnProfession" && x.OldCnProfessionId.ToString() == cnProfessionId) || (x.WBSType == "UnitProject" && x.OldCnProfessionId.ToString() == cnProfessionId && x.OldUnitProjectCode == unitProjectCode) || (x.WBSType != "Installation" && x.WBSType != "CnProfession" && x.WBSType != "UnitProject" && x.OldCnProfessionId.ToString() == cnProfessionId && x.OldUnitProjectCode == unitProjectCode && x.OldWbsSetCode == wbsSetCode) select x).ToList(); newList = (from x in newList where (x.WBSType == "Installation" && !x.Name.Contains("防腐绝热") && !x.Name.Contains("地勘") && !x.Name.Contains("全厂地下主管网") && !x.Name.Contains("临时设施") && !x.Name.Contains("总图")) || (x.WBSType == "CnProfession" && x.OldCnProfessionId.ToString() == cnProfessionId) || (x.WBSType == "UnitProject" && x.OldCnProfessionId.ToString() == cnProfessionId && x.OldUnitProjectCode == unitProjectCode) || (x.WBSType != "Installation" && x.WBSType != "CnProfession" && x.WBSType != "UnitProject" && x.OldCnProfessionId.ToString() == cnProfessionId && x.OldUnitProjectCode == unitProjectCode && x.OldWbsSetCode == wbsSetCode) select x).ToList();
var wb = wbsSetInits.FirstOrDefault(x => x.WbsSetCode == wbsSetCode); var wb = wbsSetInits.FirstOrDefault(x => x.WbsSetCode == wbsSetCode);
parentRow = table.NewRow(); parentRow = table.NewRow();
parentRow[0] = wb.WbsSetCode; parentRow[0] = wb.WbsSetCode;

View File

@ -0,0 +1,465 @@
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 41
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.WorkloadStatisticsService.GetTreeDataTable(String projectId, DateTime months, String startDate, String cnProfessionId, String unitProjectCode, String wbsSetCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\WorkloadStatisticsService.cs:行号 207
在 FineUIPro.Web.JDGL.WBS.WorkloadStatistics.btnSearch_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\WorkloadStatistics.aspx.cs:行号 87
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/06/2022 16:31:14
出错文件:http://localhost:8118/JDGL/WBS/WorkloadStatistics.aspx
IP地址:::1
操作人员:JT
出错时间:01/06/2022 16:31:14
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 41
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.WorkloadStatisticsService.GetTreeDataTable(String projectId, DateTime months, String startDate, String cnProfessionId, String unitProjectCode, String wbsSetCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\WorkloadStatisticsService.cs:行号 207
在 FineUIPro.Web.JDGL.WBS.WorkloadStatistics.btnSearch_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\WorkloadStatistics.aspx.cs:行号 87
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/06/2022 16:35:57
出错文件:http://localhost:8118/JDGL/WBS/WorkloadStatistics.aspx
IP地址:::1
操作人员:JT
出错时间:01/06/2022 16:35:57
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 41
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.WorkloadStatisticsService.GetTreeDataTable(String projectId, DateTime months, String startDate, String cnProfessionId, String unitProjectCode, String wbsSetCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\WorkloadStatisticsService.cs:行号 207
在 FineUIPro.Web.JDGL.WBS.WorkloadStatistics.btnSearch_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\WorkloadStatistics.aspx.cs:行号 87
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/06/2022 16:36:52
出错文件:http://localhost:8118/JDGL/WBS/WorkloadStatistics.aspx
IP地址:::1
操作人员:JT
出错时间:01/06/2022 16:36:52
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 41
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.WorkloadStatisticsService.GetTreeDataTable(String projectId, DateTime months, String startDate, String cnProfessionId, String unitProjectCode, String wbsSetCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\WorkloadStatisticsService.cs:行号 207
在 FineUIPro.Web.JDGL.WBS.WorkloadStatistics.btnSearch_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\WorkloadStatistics.aspx.cs:行号 87
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/06/2022 16:39:23
出错文件:http://localhost:8118/JDGL/WBS/WorkloadStatistics.aspx
IP地址:::1
操作人员:JT
出错时间:01/06/2022 16:39:24
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 41
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.WorkloadStatisticsService.GetTreeDataTable(String projectId, DateTime months, String startDate, String cnProfessionId, String unitProjectCode, String wbsSetCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\WorkloadStatisticsService.cs:行号 207
在 FineUIPro.Web.JDGL.WBS.WorkloadStatistics.btnSearch_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\WorkloadStatistics.aspx.cs:行号 87
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/06/2022 16:40:00
出错文件:http://localhost:8118/JDGL/WBS/WorkloadStatistics.aspx
IP地址:::1
操作人员:JT
出错时间:01/06/2022 16:40:00
错误信息开始=====>
错误类型:ChangeConflictException
错误信息:找不到行或行已更改。
错误堆栈:
在 System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode)
在 System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode)
在 System.Data.Linq.DataContext.SubmitChanges()
在 BLL.CostControlService.UpdateCostControl(WBS_CostControl costControl) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CostControlService.cs:行号 89
在 FineUIPro.Web.JDGL.WBS.WBSSetAudit.btnSave_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\WBSSetAudit.aspx.cs:行号 1419
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/06/2022 16:45:21
出错文件:http://localhost:8118/JDGL/WBS/WBSSetAudit.aspx
IP地址:::1
操作人员:JT
出错时间:01/06/2022 16:45:21
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 120
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.UnitProjectService.GetUnitProjectIdByInstallationIdAndCNCodeAndUnitProjectCode(String installationId, String cnCode, String unitProjectCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\UnitProjectService.cs:行号 86
在 BLL.WorkloadStatisticsService.GetTreeDataTable(String projectId, DateTime months, String startDate, String cnProfessionId, String unitProjectCode, String wbsSetCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\WorkloadStatisticsService.cs:行号 546
在 FineUIPro.Web.JDGL.WBS.WorkloadStatistics.btnSearch_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\WorkloadStatistics.aspx.cs:行号 87
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/07/2022 10:31:27
出错文件:http://localhost:8118/JDGL/WBS/WorkloadStatistics.aspx
IP地址:::1
操作人员:JT
出错时间:01/07/2022 10:31:27
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 120
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.UnitProjectService.GetUnitProjectIdByInstallationIdAndCNCodeAndUnitProjectCode(String installationId, String cnCode, String unitProjectCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\UnitProjectService.cs:行号 86
在 BLL.WorkloadStatisticsService.GetTreeDataTable(String projectId, DateTime months, String startDate, String cnProfessionId, String unitProjectCode, String wbsSetCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\WorkloadStatisticsService.cs:行号 546
在 FineUIPro.Web.JDGL.WBS.WorkloadStatistics.btnSearch_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\WorkloadStatistics.aspx.cs:行号 87
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/07/2022 10:31:34
出错文件:http://localhost:8118/JDGL/WBS/WorkloadStatistics.aspx
IP地址:::1
操作人员:JT
出错时间:01/07/2022 10:31:34
错误信息开始=====>
错误类型:SqlException
错误信息:执行超时已过期。完成操作之前已超时或服务器未响应。
错误堆栈:
在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
在 System.Data.SqlClient.SqlDataReader.get_MetaData()
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
在 System.Data.Common.DbCommand.ExecuteReader()
在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression)
在 System.Linq.Queryable.Count[TSource](IQueryable`1 source)
在 BLL.GetDataService.CorrectingPersonInOutNumber(String projectId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\OpenService\GetDataService.cs:行号 139
在 BLL.MonitorService.DoSynchData() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\OpenService\MonitorService.cs:行号 2180
在 BLL.MonitorService.ColligateFormConfirmProcessEve(Object sender, ElapsedEventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\OpenService\MonitorService.cs:行号 112
----错误类型:Win32Exception
----错误信息:
----等待的操作过时。
----错误堆栈:
出错时间:01/07/2022 10:43:01
出错时间:01/07/2022 10:43:01
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke)
在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node)
在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp)
在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b)
在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node)
在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp)
在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b)
在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node)
在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp)
在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate)
在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc)
在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc)
在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node)
在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector)
在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc)
在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc)
在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node)
在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node)
在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations)
在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
在 System.Data.Linq.DataQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
在 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
在 System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
在 BLL.UnitProjectService.GetUnitProjectIdByInstallationIdAndCNCodeAndUnitProjectCode(String installationId, String cnCode, String unitProjectCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\UnitProjectService.cs:行号 86
在 BLL.UnitProjectService.GetUnitProjectIdByInstallationIdAndCNCodeAndUnitProjectCode(String installationId, String cnCode, String unitProjectCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\UnitProjectService.cs:行号 93
在 BLL.UnitProjectService.GetUnitProjectIdByInstallationIdAndCNCodeAndUnitProjectCode(String installationId, String cnCode, String unitProjectCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\UnitProjectService.cs:行号 93
在 BLL.UnitProjectService.GetUnitProjectIdByInstallationIdAndCNCodeAndUnitProjectCode(String installationId, String cnCode, String unitProjectCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\UnitProjectService.cs:行号 93
在 BLL.UnitProjectService.GetUnitProjectIdByInstallationIdAndCNCodeAndUnitProjectCode(String installationId, String cnCode, String unitProjectCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\UnitProjectService.cs:行号 93
在 BLL.WorkloadStatisticsService.GetTreeDataTable(String projectId, DateTime months, String startDate, String cnProfessionId, String unitProjectCode, String wbsSetCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\WorkloadStatisticsService.cs:行号 546
在 FineUIPro.Web.JDGL.WBS.WorkloadStatistics.btnSearch_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\WorkloadStatistics.aspx.cs:行号 87
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/07/2022 11:05:16
出错文件:http://localhost:8118/JDGL/WBS/WorkloadStatistics.aspx
IP地址:::1
操作人员:JT
出错时间:01/07/2022 11:05:16
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 120
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.WbsSetService.GetWbsSetIdByInstallationIdAndCNCodeAndUnitProjectCodeAndWbsSetCode(String installationId, String cnCode, String unitProjectCode, String wbsSetCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\WbsSetService.cs:行号 356
在 BLL.WorkloadStatisticsService.GetTreeDataTable(String projectId, DateTime months, String startDate, String cnProfessionId, String unitProjectCode, String wbsSetCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\WorkloadStatisticsService.cs:行号 913
在 FineUIPro.Web.JDGL.WBS.WorkloadStatistics.btnSearch_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\WorkloadStatistics.aspx.cs:行号 87
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/07/2022 11:18:53
出错文件:http://localhost:8118/JDGL/WBS/WorkloadStatistics.aspx
IP地址:::1
操作人员:JT
出错时间:01/07/2022 11:18:54
错误信息开始=====>
错误类型:SqlException
错误信息:执行超时已过期。完成操作之前已超时或服务器未响应。
错误堆栈:
在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
在 System.Data.SqlClient.SqlDataReader.get_MetaData()
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
在 System.Data.Common.DbCommand.ExecuteReader()
在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression)
在 System.Linq.Queryable.Count[TSource](IQueryable`1 source)
在 BLL.GetDataService.CorrectingPersonInOutNumber(String projectId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\OpenService\GetDataService.cs:行号 139
在 BLL.MonitorService.DoSynchData() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\OpenService\MonitorService.cs:行号 2180
在 BLL.MonitorService.ColligateFormConfirmProcessEve(Object sender, ElapsedEventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\OpenService\MonitorService.cs:行号 112
----错误类型:Win32Exception
----错误信息:
----等待的操作过时。
----错误堆栈:
出错时间:01/07/2022 11:21:52
出错时间:01/07/2022 11:21:52
错误信息开始=====>
错误类型:SqlException
错误信息:执行超时已过期。完成操作之前已超时或服务器未响应。
错误堆栈:
在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
在 System.Data.SqlClient.SqlDataReader.get_MetaData()
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
在 System.Data.Common.DbCommand.ExecuteReader()
在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression)
在 System.Linq.Queryable.Count[TSource](IQueryable`1 source)
在 BLL.GetDataService.CorrectingPersonInOutNumber(String projectId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\OpenService\GetDataService.cs:行号 139
在 BLL.MonitorService.DoSynchData() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\OpenService\MonitorService.cs:行号 2180
在 BLL.MonitorService.ColligateFormConfirmProcessEve(Object sender, ElapsedEventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\OpenService\MonitorService.cs:行号 112
----错误类型:Win32Exception
----错误信息:
----等待的操作过时。
----错误堆栈:
出错时间:01/07/2022 11:26:34
出错时间:01/07/2022 11:26:34
错误信息开始=====>
错误类型:SqlException
错误信息:执行超时已过期。完成操作之前已超时或服务器未响应。
错误堆栈:
在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
在 System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
在 System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()
在 System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()
在 System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()
在 System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
在 System.Data.SqlClient.SqlDataReader.get_MetaData()
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
在 System.Data.Common.DbCommand.ExecuteReader()
在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression)
在 System.Linq.Queryable.Count[TSource](IQueryable`1 source)
在 BLL.PersonInOutService.DeletePersonInOutByPersonId(String personId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\HSSE\SitePerson\PersonInOutService.cs:行号 114
在 BLL.PersonService.DeletePerson(String personId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\HSSE\SitePerson\PersonService.cs:行号 604
在 FineUIPro.Web.HSSE.SitePerson.PersonList.DeleteData() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\HSSE\SitePerson\PersonList.aspx.cs:行号 364
在 FineUIPro.Web.HSSE.SitePerson.PersonList.btnMenuDelete_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\HSSE\SitePerson\PersonList.aspx.cs:行号 343
在 FineUIPro.MenuButton.OnClick(EventArgs e)
在 (MenuButton , EventArgs )
在 FineUIPro.MenuButton.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
----错误类型:Win32Exception
----错误信息:
----等待的操作过时。
----错误堆栈:
出错时间:01/10/2022 10:46:47
出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx
IP地址:::1
操作人员:JT
出错时间:01/10/2022 10:46:47
错误信息开始=====>
错误类型:SqlException
错误信息:执行超时已过期。完成操作之前已超时或服务器未响应。
错误堆栈:
在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
在 System.Data.SqlClient.SqlDataReader.get_MetaData()
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
在 System.Data.Common.DbCommand.ExecuteReader()
在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression)
在 System.Linq.Queryable.Count[TSource](IQueryable`1 source)
在 BLL.PersonInOutService.DeletePersonInOutByPersonId(String personId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\HSSE\SitePerson\PersonInOutService.cs:行号 114
在 BLL.PersonService.DeletePerson(String personId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\HSSE\SitePerson\PersonService.cs:行号 604
在 FineUIPro.Web.HSSE.SitePerson.PersonList.DeleteData() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\HSSE\SitePerson\PersonList.aspx.cs:行号 364
在 FineUIPro.Web.HSSE.SitePerson.PersonList.btnMenuDelete_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\HSSE\SitePerson\PersonList.aspx.cs:行号 343
在 FineUIPro.MenuButton.OnClick(EventArgs e)
在 (MenuButton , EventArgs )
在 FineUIPro.MenuButton.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
----错误类型:Win32Exception
----错误信息:
----等待的操作过时。
----错误堆栈:
出错时间:01/10/2022 10:47:58
出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx
IP地址:::1
操作人员:JT
出错时间:01/10/2022 10:47:59

View File

@ -494,8 +494,6 @@ namespace FineUIPro.Web.HSSE.SitePerson
{ {
person.Birthday = Convert.ToDateTime(this.txtBirthday.Text.Trim()); person.Birthday = Convert.ToDateTime(this.txtBirthday.Text.Trim());
} }
if (string.IsNullOrEmpty(this.txtOutTime.Text.Trim()))
{
if (!string.IsNullOrEmpty(imgPhoto.ImageUrl) && imgPhoto.ImageUrl != "~/res/images/blank_150.png") if (!string.IsNullOrEmpty(imgPhoto.ImageUrl) && imgPhoto.ImageUrl != "~/res/images/blank_150.png")
{ {
person.PhotoUrl = imgPhoto.ImageUrl.Replace("~/", ""); person.PhotoUrl = imgPhoto.ImageUrl.Replace("~/", "");
@ -506,7 +504,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
person.PhotoUrl = null; person.PhotoUrl = null;
person.HeadImage = null; person.HeadImage = null;
} }
}
if (!string.IsNullOrEmpty(this.txtAuditorDate.Text)) if (!string.IsNullOrEmpty(this.txtAuditorDate.Text))
{ {

View File

@ -36,6 +36,12 @@
LabelAlign="Right"> LabelAlign="Right">
</f:Label> </f:Label>
<f:ToolbarFill runat="server"></f:ToolbarFill> <f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnAdd" Icon="Add" runat="server" ToolTip="计划增加一个月"
OnClick="btnAdd_Click">
</f:Button>
<f:Button ID="btnDel" Icon="Delete" runat="server" ToolTip="计划减少一个月"
OnClick="btnDel_Click">
</f:Button>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" <f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存"
OnClick="btnSave_Click"> OnClick="btnSave_Click">
</f:Button> </f:Button>

View File

@ -286,6 +286,40 @@ namespace FineUIPro.Web.JDGL.WBS
} }
} }
/// <summary>
/// 增加计划月份
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnAdd_Click(object sender, EventArgs e)
{
Save();
Model.Wbs_WbsSet wbsSet1 = BLL.WbsSetService.GetWbsSetByWbsSetId(Id);
if (wbsSet1.EndDate != null)
{
wbsSet1.EndDate = wbsSet1.EndDate.Value.AddMonths(1);
BLL.WbsSetService.UpdateWbsSet(wbsSet1);
}
PageContext.RegisterStartupScript(String.Format("window.location.reload();"));
}
/// <summary>
/// 减少计划月份
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnDel_Click(object sender, EventArgs e)
{
Save();
Model.Wbs_WbsSet wbsSet1 = BLL.WbsSetService.GetWbsSetByWbsSetId(Id);
if (wbsSet1.EndDate != null)
{
wbsSet1.EndDate = wbsSet1.EndDate.Value.AddMonths(-1);
BLL.WbsSetService.UpdateWbsSet(wbsSet1);
}
PageContext.RegisterStartupScript(String.Format("window.location.reload();"));
}
#region #region
/// <summary> /// <summary>
/// 保存按钮 /// 保存按钮
@ -293,6 +327,13 @@ namespace FineUIPro.Web.JDGL.WBS
/// <param name="sender"></param> /// <param name="sender"></param>
/// <param name="e"></param> /// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e) protected void btnSave_Click(object sender, EventArgs e)
{
Save();
ShowNotify("保存成功!", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHideReference());
}
private void Save()
{ {
Model.Wbs_WbsSet wbsSet1 = BLL.WbsSetService.GetWbsSetByWbsSetId(Id); Model.Wbs_WbsSet wbsSet1 = BLL.WbsSetService.GetWbsSetByWbsSetId(Id);
DateTime startDate, endDate, startMonth, endMonth; DateTime startDate, endDate, startMonth, endMonth;
@ -418,8 +459,6 @@ namespace FineUIPro.Web.JDGL.WBS
} }
} }
} }
ShowNotify("保存成功!", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHideReference());
} }
#region #region

View File

@ -66,6 +66,24 @@ namespace FineUIPro.Web.JDGL.WBS {
/// </remarks> /// </remarks>
protected global::FineUIPro.Label txtCostControlName; protected global::FineUIPro.Label txtCostControlName;
/// <summary>
/// btnAdd 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnAdd;
/// <summary>
/// btnDel 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnDel;
/// <summary> /// <summary>
/// btnSave 控件。 /// btnSave 控件。
/// </summary> /// </summary>

View File

@ -241,8 +241,15 @@ namespace FineUIPro.Web.ProjectData
{ {
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectInstallationMenuId, BLL.Const.BtnAdd)) if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectInstallationMenuId, BLL.Const.BtnAdd))
{ {
Model.Project_Installation installation1 = BLL.Project_InstallationService.GetProjectInstallationByProjectId(this.CurrUser.LoginProjectId);
if (installation1 != null)
{
ShowNotify("项目已存在装置,无法抽取!", MessageBoxIcon.Warning);
return;
}
Model.Base_Project project = BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId);
string contenttype = "application/json;charset=utf-8"; string contenttype = "application/json;charset=utf-8";
var returndata = BLL.APIGetHttpService.ControlHttp(Funs.ControlApiUrl + "/Projects/GetConstructionWbsList?ProjId=" + 2370, "GET", contenttype, null, null); var returndata = BLL.APIGetHttpService.ControlHttp(Funs.ControlApiUrl + "/Projects/GetConstructionWbsList?ProjId=" + project.KZProjectCode, "GET", contenttype, null, null);
if (!string.IsNullOrEmpty(returndata)) if (!string.IsNullOrEmpty(returndata))
{ {
JObject obj = JObject.Parse(returndata); JObject obj = JObject.Parse(returndata);