提交代码

This commit is contained in:
2023-07-24 17:41:50 +08:00
parent cdf073a097
commit 055a8a1e40
10 changed files with 674 additions and 26 deletions
@@ -373,5 +373,21 @@ namespace BLL
{
return Funs.DB.View_InspectionManagement.FirstOrDefault(e => e.InspectionId == inspectionManagementId);
}
/// <summary>
/// 根据id修改验收日期和是否一次合格
/// </summary>
public static void UpdateByInspectionManagementId(Model.ProcessControl_InspectionManagement inspectionManagement) {
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.ProcessControl_InspectionManagement newInspectionManagement = db.ProcessControl_InspectionManagement.FirstOrDefault(e => e.InspectionId == inspectionManagement.InspectionId);
if (newInspectionManagement != null)
{
newInspectionManagement.InspectionDate = inspectionManagement.InspectionDate;
newInspectionManagement.IsOnceQualified = inspectionManagement.IsOnceQualified;
db.SubmitChanges();
}
}
}
}
}