20241028
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user