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.
AUCMA_SCADA/Admin.Core.IService/IService_New/IExecutePlanInfoServices.cs

116 lines
3.8 KiB
C#

1 year ago
using Admin.Core.Model;
1 year ago
using System.Collections.Generic;
1 year ago
using System.Threading.Tasks;
namespace Admin.Core.IService
{
/// <summary>
/// IExecutePlanInfoServices
/// </summary>
public interface IExecutePlanInfoServices : IBaseServices<ExecutePlanInfo>
{
1 year ago
/// <summary>
/// 计划上移
/// </summary>
/// <param name="id"></param>
/// <param name="station"></param>
/// <returns></returns>
1 year ago
Task<bool> PlanMoveUp(string id,string station);
1 year ago
/// <summary>
/// 计划下移
/// </summary>
/// <param name="id"></param>
/// <param name="station"></param>
/// <returns></returns>
1 year ago
Task<bool> PlanMoveDown(string id, string station);
1 year ago
/// <summary>
/// 删除计划
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
1 year ago
Task<bool> ExecPlanDelete(string id);
1 year ago
/// <summary>
/// 下发计划
/// </summary>
/// <param name="sm"></param>
/// <returns></returns>
1 year ago
Task<ExecutePlanInfo> PlanNextPass(ExecutePlanInfo sm);
1 year ago
#region 出入库操作
/// <summary>
/// 通过产线工位获取执行计划
/// </summary>
/// <param name="productLineCode"></param>
/// <returns></returns>
Task<List<ExecutePlanInfo>> GetExecutePlanInfosByProductLineCode(string productLineCode);
/// <summary>
/// 通过生产计划编号获取执行计划
/// </summary>
/// <param name="productPlanCode"></param>
/// <returns></returns>
Task<List<ExecutePlanInfo>> GetExecutePlanInfosByProductPlanCode(string productPlanCode);
/// <summary>
/// 通过执行计划编号获取执行计划
/// </summary>
/// <param name="executePlanCode"></param>
/// <returns></returns>
Task<ExecutePlanInfo> GetExecutePlanInfoByPlanCode(string executePlanCode);
/// <summary>
/// 通过产线工位获取执行顺序(默认+1
/// </summary>
/// <param name="productLineCode"></param>
/// <returns></returns>
Task<int> GetExecuteOrderByProductLineCode(string productLineCode);
/// <summary>
/// 新增执行计划
/// </summary>
/// <param name="executePlanInfo"></param>
/// <returns></returns>
Task<bool> InsertExecutePlanInfo(ExecutePlanInfo executePlanInfo);
/// <summary>
/// 修改执行计划
/// </summary>
/// <param name="executePlanInfo"></param>
/// <returns></returns>
Task<bool> UpdateExecutePlanInfo(ExecutePlanInfo executePlanInfo);
/// <summary>
/// 批量修改执行计划
/// </summary>
/// <param name="executePlanInfos"></param>
/// <returns></returns>
Task<bool> UpdateRangeExecutePlanInfo(List<ExecutePlanInfo> executePlanInfos);
/// <summary>
/// 根据执行计划编号删除执行计划
/// </summary>
/// <param name="executePlanCode"></param>
/// <returns></returns>
Task<bool> DeleteExecutePlanInfoByPlanCode(string executePlanCode);
/// <summary>
/// 获取工位小时产量
/// </summary>
/// <param name="stationCode"></param>
/// <returns></returns>
Task<List<dynamic>> GetStationHourAmount(string stationCode);
/// <summary>
/// 获取物料型号统计
/// </summary>
/// <param name="stationCode"></param>
/// <returns></returns>
Task<List<dynamic>> GetStationMaterialStats(string stationCode);
Task<List<dynamic>> GetStationSheetMetalHourAmountAsync(string stationCode);
1 year ago
List<dynamic> GetStationSheetMetalStats(string stationCode);
1 year ago
#endregion
}
}