|
|
|
|
using Aucma.Scada.Model.domain;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace HighWayIot.Repository.service
|
|
|
|
|
{
|
|
|
|
|
public interface IExecutePlanInfoService
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 通过产线工位获取执行计划
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="productLineCode"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
List<ExecutePlanInfo> GetExecutePlanInfosByProductLineCode(string productLineCode);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 通过产线工位获取执行状态为1或2的计划
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="productLineCode"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
List<ExecutePlanInfo> GetExecutePlanInfosByProductLineCode(string productLineCode, bool flag);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 通过生产计划编号获取执行计划
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="productPlanCode"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
List<ExecutePlanInfo> GetExecutePlanInfosByProductPlanCode(string productPlanCode);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 通过执行计划编号获取执行计划
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="executePlanCode"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
ExecutePlanInfo GetExecutePlanInfoByPlanCode(string executePlanCode);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 通过产线工位获取执行顺序(默认+1)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="productLineCode"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
int GetExecuteOrderByProductLineCode(string productLineCode);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 新增执行计划
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="executePlanInfo"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
bool InsertExecutePlanInfo(ExecutePlanInfo executePlanInfo);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 修改执行计划
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="executePlanInfo"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
bool UpdateExecutePlanInfo(ExecutePlanInfo executePlanInfo);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 批量修改执行计划
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="executePlanInfos"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
bool UpdateRangeExecutePlanInfo(List<ExecutePlanInfo> executePlanInfos);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据执行计划编号删除执行计划
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="executePlanCode"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
bool DeleteExecutePlanInfoByPlanCode(string executePlanCode);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取工位小时产量
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="stationCode"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
List<dynamic> GetStationHourAmount(string stationCode);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取物料型号统计
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="stationCode"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
List<dynamic> GetStationMaterialStats(string stationCode);
|
|
|
|
|
}
|
|
|
|
|
}
|