20240322 质量月报
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 15.质量巡检情况
|
||||
/// 16.质量专项检查情况
|
||||
/// 17.质量文件上报情况
|
||||
/// </summary>
|
||||
public class Report_CQMS_MonthReportItemService
|
||||
{
|
||||
/// <summary>
|
||||
/// 添加
|
||||
/// </summary>
|
||||
/// <param name="item"></param>
|
||||
public static void AddReportItem(Model.Report_CQMS_MonthReportItem item)
|
||||
{
|
||||
Model.Report_CQMS_MonthReportItem newItem = new Model.Report_CQMS_MonthReportItem
|
||||
{
|
||||
Id = item.Id,
|
||||
ReportId = item.ReportId,
|
||||
ReType = item.ReType,
|
||||
ContentName = item.ContentName,
|
||||
MonthsCount = item.MonthsCount,
|
||||
ProjectCount = item.ProjectCount,
|
||||
RectificationRate = item.RectificationRate,
|
||||
MonthsBackCount = item.MonthsBackCount,
|
||||
TotalNoBackCount = item.TotalNoBackCount
|
||||
};
|
||||
Funs.DB.Report_CQMS_MonthReportItem.InsertOnSubmit(newItem);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据月报id删除相关明细信息
|
||||
/// </summary>
|
||||
/// <param name="reportId"></param>
|
||||
public static void DeleteReportItemByReportId(string reportId)
|
||||
{
|
||||
var q = (from x in Funs.DB.Report_CQMS_MonthReportItem where x.ReportId == reportId select x).ToList();
|
||||
if (q.Count > 0)
|
||||
{
|
||||
Funs.DB.Report_CQMS_MonthReportItem.DeleteAllOnSubmit(q);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user