20250125 质量月报
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user