2023-09-12

This commit is contained in:
2023-09-12 14:39:54 +08:00
parent 79c5a301c5
commit bd91182101
8 changed files with 213 additions and 97 deletions
@@ -304,11 +304,36 @@ namespace FineUIPro.Web.CQMS.Solution
if (CommonService.GetAllButtonPowerList(CurrUser.LoginProjectId, CurrUser.UserId, Const.CQMSConstructSolutionMenuId, Const.BtnDelete))
{
var constructSolution = CQMSConstructSolutionService.GetConstructSolutionByConstructSolutionId(id);
CQMSConstructSolutionApproveService.DeleteConstructSolutionApprovesByConstructSolutionId(id);
CQMSConstructSolutionService.DeleteConstructSolution(id);
LogService.AddSys_Log(CurrUser, constructSolution.Code, id, Const.CQMSConstructSolutionMenuId, "删除方案审查");
BindGrid();
Alert.ShowInTop("删除成功!", MessageBoxIcon.Success);
if (constructSolution.State== Const.CQMSConstructSolution_ReCompile|| constructSolution.State == Const.CQMSConstructSolution_Compile)
{
if (constructSolution.CompileMan==this.CurrUser.UserId|| this.CurrUser.UserId == Const.hfnbdId || this.CurrUser.UserId == Const.sysglyId)
{
CQMSConstructSolutionApproveService.DeleteConstructSolutionApprovesByConstructSolutionId(id);
CQMSConstructSolutionService.DeleteConstructSolution(id);
LogService.AddSys_Log(CurrUser, constructSolution.Code, id, Const.CQMSConstructSolutionMenuId, "删除方案审查");
BindGrid();
Alert.ShowInTop("删除成功!", MessageBoxIcon.Success);
}
else
{
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Success);
}
}
else
{
if (this.CurrUser.UserId==Const.hfnbdId|| this.CurrUser.UserId==Const.sysglyId)
{
CQMSConstructSolutionApproveService.DeleteConstructSolutionApprovesByConstructSolutionId(id);
CQMSConstructSolutionService.DeleteConstructSolution(id);
LogService.AddSys_Log(CurrUser, constructSolution.Code, id, Const.CQMSConstructSolutionMenuId, "删除方案审查");
BindGrid();
Alert.ShowInTop("删除成功!", MessageBoxIcon.Success);
return;
}
Alert.ShowInTop("删除失败,方案正在审批中!", MessageBoxIcon.Success);
}
}
else