update test run

This commit is contained in:
2024-01-25 16:16:18 +08:00
parent 9b01a40341
commit 78fc801b71
7 changed files with 240 additions and 73 deletions
@@ -21,8 +21,21 @@ namespace FineUIPro.Web.TestRun.DriverPrepare
if (item != null)
{
this.txtSolutionName.Text = item.SolutionName;
this.txtSolutionType.Text = item.SolutionType;
}
}
var solutionType = (from x in Funs.DB.DriverPrepare_SchemePlan
join y in Funs.DB.DriverPrepare_SchemePlanItem on x.SchemePlanId equals y.SchemePlanId
where y.SolutionType != null && x.ProjectId == this.CurrUser.LoginProjectId
select y).FirstOrDefault();
if (solutionType != null)
{
this.txtSolutionType.Hidden = false;
}
else
{
this.txtSolutionType.Hidden = true;
}
}
}
@@ -54,13 +67,25 @@ namespace FineUIPro.Web.TestRun.DriverPrepare
newItem.SchemePlanId = newData.SchemePlanId;
}
newItem.SortIndex = sortIndex;
var solutionType = (from x in Funs.DB.DriverPrepare_SchemePlan
join y in Funs.DB.DriverPrepare_SchemePlanItem on x.SchemePlanId equals y.SchemePlanId
where y.SolutionType != null && x.ProjectId == this.CurrUser.LoginProjectId
select y).FirstOrDefault();
if (solutionType != null)
{
newItem.SolutionType = this.txtSolutionType.Text.Trim();
}
else
{
}
if (string.IsNullOrEmpty(SchemePlanItemId))
{
newItem.SchemePlanItemId = SQLHelper.GetNewID();
BLL.DriverPrepareSchemePlanItemService.AddSchemePlanItem(newItem);
BLL.LogService.AddSys_Log(this.CurrUser, newItem.SolutionName, newItem.SolutionName, BLL.Const.ControlItemInitSetMenuId, "增加开车方案!");
}
if (Request.Params["type"] == "modify")
else
{
newItem.SchemePlanItemId = SchemePlanItemId;
BLL.DriverPrepareSchemePlanItemService.UpdateSchemePlanItem(newItem);