2026-08-06 15:33:11 +08:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace BLL
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 焊接日报待审核接口服务适配层。
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static class APIWeldReportService
|
|
|
|
|
{
|
|
|
|
|
public static List<Model.WeldingDailyTempDetailItem> GetPendingWeldingDailyTempDetailList(
|
|
|
|
|
string projectId, string unitWorkId, string weldingDate, string pipelineCode, string welderCode)
|
|
|
|
|
{
|
|
|
|
|
return WeldingDailyService.GetWeldingDailyTempDetailList(projectId, unitWorkId,
|
|
|
|
|
ParseWeldingDate(weldingDate), pipelineCode, welderCode);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static Model.WeldingDailyTempDetailItem GetPendingWeldingDailyTempDetail(string tempDetailId)
|
|
|
|
|
{
|
|
|
|
|
return WeldingDailyService.GetWeldingDailyTempDetailById(tempDetailId);
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-19 17:13:33 +08:00
|
|
|
public static string TeamAuditPendingWeldingDailyTempDetails(string[] tempDetailIds, string auditMan)
|
|
|
|
|
{
|
|
|
|
|
return WeldingDailyService.TeamAuditWeldingDailyTempDetails(tempDetailIds, auditMan);
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-06 15:33:11 +08:00
|
|
|
public static string AuditPendingWeldingDailyTempDetails(string[] tempDetailIds, string auditMan)
|
|
|
|
|
{
|
|
|
|
|
return WeldingDailyService.AuditWeldingDailyTempDetails(tempDetailIds, auditMan);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static string DeletePendingWeldingDailyTempDetails(string[] tempDetailIds)
|
|
|
|
|
{
|
|
|
|
|
return WeldingDailyService.DeleteWeldingDailyTempDetails(tempDetailIds);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static DateTime? ParseWeldingDate(string weldingDate)
|
|
|
|
|
{
|
2026-08-19 17:13:33 +08:00
|
|
|
if (string.IsNullOrWhiteSpace(weldingDate)) return null;
|
2026-08-06 15:33:11 +08:00
|
|
|
|
|
|
|
|
DateTime parsedDate;
|
|
|
|
|
if (!DateTime.TryParse(weldingDate, out parsedDate))
|
|
|
|
|
{
|
|
|
|
|
throw new ArgumentException("焊接日期格式不正确");
|
|
|
|
|
}
|
|
|
|
|
return parsedDate.Date;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|