using HH.WCS.Hexafluo.process; using HH.WCS.Hexafluo.wms; using HH.WCS.SJML.api; using System.Collections.Generic; using static HH.WCS.SJML.api.ApiModel; namespace HH.WCS.Hexafluo.api { /// /// api接口辅助类 /// public class ApiHelper { static ApiHelper() { } internal static SimpleResult NoticeComplete() { //人工给信号出库完成时候,我们查询一下当前的出库单,查到了出库单,找到出库单相关的任务,是否全部完成,如果是修改中间表状态 return new SimpleResult { }; } internal static void AddTask(AddTaskModel model) { if (!TaskHelper.CheckExist(model.No)) { if (LocationHelper.CheckExist(model.From) && LocationHelper.CheckExist(model.To)) { TaskHelper.CreateTask(model.No, model.From, model.To, "搬运", 99, ""); } } } public class AddTaskModel { public string From { get; set; } public string To { get; set; } public string No { get; set; } } public class LocationModel { public string location { get; set; } } internal static SimpleResult OperateCameraInfo(List models) { DeviceProcess.SetCameraInfo(models); return null; } } }