This commit is contained in:
2024-10-28 14:20:56 +08:00
parent abb15b53fc
commit 379b8ede4d
5 changed files with 52 additions and 92 deletions
@@ -235,11 +235,11 @@ namespace FineUIPro.Web.CQMS.WBS.Control
}
else
{
var sub = BLL.SubProjectsService.GetSubProjectsById(this.ParentId);
if (sub.DivisionLevel == 1)
{
//var sub = BLL.SubProjectsService.GetSubProjectsById(this.ParentId);
//if (sub.DivisionLevel == 1)
//{
newSubProjects.DivisionLevel = 2;
}
//}
newSubProjects.ProEngineeringName = this.txtProEngineeringName.Text.Trim();
newSubProjects.DivisionId = SQLHelper.GetNewID(typeof(Model.Division_SubProjects));
this.DivisionId = newSubProjects.DivisionId;
@@ -264,15 +264,15 @@ namespace FineUIPro.Web.CQMS.WBS.Control
}
else
{
var sub = BLL.SubProjectsService.GetSubProjectsById(this.ParentId);
if (sub.DivisionLevel == 1)
{
newSubProjects.DivisionLevel = 2;
}
else if (sub.DivisionLevel==2)
{
//var sub = BLL.SubProjectsService.GetSubProjectsById(this.ParentId);
//if (sub.DivisionLevel == 1)
//{
// newSubProjects.DivisionLevel = 2;
//}
//else if (sub.DivisionLevel==2)
//{
newSubProjects.DivisionLevel = 3;
}
//}
newSubProjects.DivisionId = SQLHelper.GetNewID(typeof(Model.Division_SubProjects));
this.DivisionId = newSubProjects.DivisionId;
BLL.SubProjectsService.AddSubProjects(newSubProjects);