提交代码
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user