fix:专检
This commit is contained in:
@@ -64,14 +64,10 @@ namespace BLL.OfficeCheck.Inspect
|
||||
RectificationResults = InspectionItem.RectificationResults,
|
||||
States = InspectionItem.States,
|
||||
CompileMan = InspectionItem.CompileMan,
|
||||
CompileTime = InspectionItem.CompileTime,
|
||||
|
||||
CompileTime = DateTime.Now,
|
||||
};
|
||||
db.Inspect_InspectionItem.InsertOnSubmit(newInspectionItem);
|
||||
db.SubmitChanges();
|
||||
// ////增加一条编码记录
|
||||
// BLL.CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(BLL.Const.ProjectSafetyInspectionMenuId,
|
||||
// InspectionItem.ProjectId, null, InspectionItem.InspectionItemId, new DateTime());
|
||||
}
|
||||
|
||||
|
||||
@@ -114,12 +110,26 @@ namespace BLL.OfficeCheck.Inspect
|
||||
newInspection.InspectTime = Inspection.InspectTime;
|
||||
newInspection.Description = Inspection.Description;
|
||||
newInspection.States = Inspection.States;
|
||||
newInspection.InspectMan = Inspection.InspectMan;
|
||||
newInspection.InspectType = Inspection.InspectType;
|
||||
newInspection.InspectItemSetId = Inspection.InspectItemSetId;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改安全专项检查状态信息
|
||||
/// </summary>
|
||||
/// <param name="Inspection"></param>
|
||||
public static void UpdateInspectionStates(string InspectionId, string States)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.Inspect_Inspection newInspection =
|
||||
db.Inspect_Inspection.FirstOrDefault(e => e.InspectionId == InspectionId);
|
||||
if (newInspection != null)
|
||||
{
|
||||
newInspection.States = States;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改安全专项检查明细
|
||||
/// </summary>
|
||||
@@ -306,6 +316,7 @@ namespace BLL.OfficeCheck.Inspect
|
||||
{
|
||||
var list = (from x in Funs.DB.Inspect_InspectionItem
|
||||
where x.InspectionId == InspectionId
|
||||
orderby x.CompileTime descending
|
||||
select x).ToList();
|
||||
return list;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user