提交代码

This commit is contained in:
2024-01-29 16:57:52 +08:00
parent bf1ede67fd
commit 38a0dc2263
19 changed files with 1320 additions and 4 deletions
@@ -97,6 +97,20 @@ namespace FineUIPro.Web.TestRun.DriverPrepare
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
}
}
protected void btnDel_Click(object sender, EventArgs e)
{
var plan = (from x in Funs.DB.DriverPrepare_SchemePlan where x.ProjectId == this.CurrUser.LoginProjectId select x).FirstOrDefault();
if (plan == null)
{
Alert.ShowInTop("项目无记录,无需删除!", MessageBoxIcon.Warning);
return;
}
BLL.DriverPrepareSchemePlanItemService.DeleteSchemePlanItemByschemePlanId(plan.SchemePlanId);
BLL.DriverPrepareSchemePlanService.DeleteDriverPlan(plan.SchemePlanId);
BindGrid();
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
}
#endregion
#region
@@ -119,6 +133,7 @@ namespace FineUIPro.Web.TestRun.DriverPrepare
}
if (buttonList.Contains(BLL.Const.BtnDelete))
{
this.btnDel.Hidden = false;
this.btnMenuDel.Hidden = false;
}
}