桌面端新增密炼计划获取

This commit is contained in:
2026-06-17 17:52:31 +08:00
parent 816af5df6e
commit 372dc10be2
23 changed files with 1335 additions and 92 deletions

View File

@@ -0,0 +1,11 @@
using Prism.Events;
namespace YY.Admin.Core.Events;
public class MixingProductionPlanChangedPayload
{
public string Action { get; set; } = string.Empty;
public string? MixingProductionPlanId { get; set; }
}
public class MixingProductionPlanChangedEvent : PubSubEvent<MixingProductionPlanChangedPayload> { }

View File

@@ -0,0 +1,28 @@
using YY.Admin.Core.Entity;
namespace YY.Admin.Core.Services;
/// <summary>密炼生产计划MES 只读同步)</summary>
public interface IMixingProductionPlanService
{
Task<MixingProductionPlanPageResult> PageAsync(
int pageNo, int pageSize,
DateTime? planDateFrom = null,
DateTime? planDateTo = null,
string? machineName = null,
int? shiftFlag = null,
string? planNo = null,
string? materialName = null,
CancellationToken ct = default);
Task<List<MesXslMixingProductionPlan>> GetAllCachedAsync(CancellationToken ct = default);
/// <returns>本地缓存是否有变更(有差异才写入)</returns>
Task<bool> SyncFromRemoteAsync(CancellationToken ct = default);
}
public record MixingProductionPlanPageResult(
List<MesXslMixingProductionPlan> Records,
long Total,
int PageNo,
int PageSize);

View File

@@ -14,7 +14,8 @@ public interface IRubberQuickTestStdService
Task<MesXslRubberQuickTestStd?> GetByIdAsync(string id, CancellationToken ct = default);
Task SyncFromRemoteAsync(CancellationToken ct = default);
/// <returns>本地缓存是否有变更(有差异才写入)</returns>
Task<bool> SyncFromRemoteAsync(CancellationToken ct = default);
}
public record RubberQuickTestStdPageResult(