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