You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
2.1 KiB
C#
49 lines
2.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using CncModels.Dto;
|
|
using CncModels.Dto.Production;
|
|
|
|
namespace CncService.Interface
|
|
{
|
|
/// <summary>
|
|
/// 产量管理服务接口
|
|
/// </summary>
|
|
public interface IProductionService
|
|
{
|
|
/// <summary>分页查询产量记录</summary>
|
|
PagedResult<DailyProductionListItem> GetList(ProductionQuery query);
|
|
|
|
/// <summary>获取日汇总统计</summary>
|
|
DailySummaryResponse GetSummary(DateTime? startDate, DateTime? endDate, int? workshopId, int? machineId, int? workerId);
|
|
|
|
/// <summary>获取日期范围总产量</summary>
|
|
decimal GetTotalByDateRange(DateTime startDate, DateTime endDate, int? workshopId);
|
|
|
|
/// <summary>产量修正</summary>
|
|
bool Adjust(ProductionAdjustRequest request);
|
|
|
|
/// <summary>
|
|
/// 获取某条产量记录的修正历史
|
|
/// </summary>
|
|
List<AdjustmentHistoryItem> GetAdjustmentHistory(int recordId);
|
|
|
|
/// <summary>获取设备产量汇总(按日期范围)</summary>
|
|
MachineProductionSummaryResponse GetMachineSummary(DateTime? startDate, DateTime? endDate, int? workshopId);
|
|
|
|
/// <summary>获取设备产量明细列表(按日期范围)</summary>
|
|
List<MachineProductionListItem> GetMachineList(DateTime? startDate, DateTime? endDate, int? workshopId, string machineIds);
|
|
|
|
/// <summary>获取员工产量汇总(按日期范围)</summary>
|
|
WorkerProductionSummaryResponse GetWorkerSummary(DateTime? startDate, DateTime? endDate);
|
|
|
|
/// <summary>获取员工产量明细列表(按日期范围)</summary>
|
|
List<WorkerProductionListItem> GetWorkerList(DateTime? startDate, DateTime? endDate, int? workerId);
|
|
|
|
/// <summary>获取程序产量汇总(按日期范围)</summary>
|
|
ProgramProductionSummaryResponse GetProgramSummary(DateTime? startDate, DateTime? endDate, int? workshopId);
|
|
|
|
/// <summary>获取程序产量明细列表(按日期范围)</summary>
|
|
List<ProgramProductionListItem> GetProgramList(DateTime? startDate, DateTime? endDate, string programNames);
|
|
}
|
|
}
|