小程序接口修改

This commit is contained in:
2023-07-11 16:32:16 +08:00
parent ca5c3fe9a7
commit 4449a7754f
68 changed files with 4634 additions and 2984 deletions
@@ -37,24 +37,26 @@ namespace BLL
public static void DeleteConstructSolution(string constructSolutionId)
{
Model.SGGLDB db = Funs.DB;
Model.Solution_HSSEConstructSolution constructSolution = db.Solution_HSSEConstructSolution.First(e => e.ConstructSolutionId == constructSolutionId);
Model.Solution_HSSEConstructSolution constructSolution = db.Solution_HSSEConstructSolution.FirstOrDefault(e => e.ConstructSolutionId == constructSolutionId);
db.Solution_HSSEConstructSolution.DeleteOnSubmit(constructSolution);
db.SubmitChanges();
}
/// <summary>
/// 根据方案审查Id删除一个方案审查信息
/// </summary>
/// <param name="constructSolutionCode">方案审查Id</param>
public static void DeleteConstructSolutionByCQMSConstructSolutionId(string CQMSConstructSolutionId)
{
Model.SGGLDB db = Funs.DB;
Model.Solution_HSSEConstructSolution constructSolution = db.Solution_HSSEConstructSolution.First(e => e.CQMSConstructSolutionId == CQMSConstructSolutionId);
db.Solution_HSSEConstructSolution.DeleteOnSubmit(constructSolution);
db.SubmitChanges();
}
/// <summary>
/// 根据方案审查Id删除一个方案审查信息
/// </summary>
/// <param name="constructSolutionCode">方案审查Id</param>
public static void DeleteConstructSolutionByCQMSConstructSolutionId(string CQMSConstructSolutionId)
{
Model.SGGLDB db = Funs.DB;
Model.Solution_HSSEConstructSolution constructSolution = db.Solution_HSSEConstructSolution.FirstOrDefault(e => e.CQMSConstructSolutionId == CQMSConstructSolutionId);
if (constructSolution != null)
{
db.Solution_HSSEConstructSolution.DeleteOnSubmit(constructSolution);
db.SubmitChanges();
}
}
/// <summary>
/// 增加方案审查信息