20250125 质量月报

This commit is contained in:
2025-01-24 14:29:31 +08:00
parent 02c2410b2f
commit 85bd05b848
11 changed files with 331 additions and 135 deletions
@@ -64,11 +64,11 @@ namespace BLL.CQMS.ManageReport.ReportNew
}
}
public static bool Delete(string newId)
public static bool Delete(string newId, string reType)
{
try
{
var result = Funs.DB.Report_Construction_Plan.Where(a => a.ReportId == newId).ToList();
var result = Funs.DB.Report_Construction_Plan.Where(a => a.ReportId == newId && a.ReType == reType).ToList();
if (result.Count > 0)
{
Funs.DB.Report_Construction_Plan.DeleteAllOnSubmit(result);
@@ -39,7 +39,17 @@ namespace BLL
/// 根据月报id删除相关明细信息
/// </summary>
/// <param name="reportId"></param>
public static void DeleteReportItemByReportId(string reportId)
public static void DeleteReportItemByReportId(string reportId,string reType)
{
var q = (from x in Funs.DB.Report_CQMS_MonthReportItem where x.ReportId == reportId && x.ReType==reType select x).ToList();
if (q.Count > 0)
{
Funs.DB.Report_CQMS_MonthReportItem.DeleteAllOnSubmit(q);
Funs.DB.SubmitChanges();
}
}
public static void DeleteReportItem(string reportId)
{
var q = (from x in Funs.DB.Report_CQMS_MonthReportItem where x.ReportId == reportId select x).ToList();
if (q.Count > 0)