| | |
| | | LoadFullTray = 3, |
| | | [Description("卸载满Tray地点")] |
| | | UnloadFullTray = 4, |
| | | [Description("充电地点")] |
| | | Charge = 5, |
| | | } |
| | | |
| | | public class PathPosition : IComplexDisplay |
| | |
| | | [Description("该位置标准点位信息")] |
| | | [TypeConverter(typeof(ComplexObjectConvert))] |
| | | [Editor(typeof(PropertyObjectEditor), typeof(UITypeEditor))] |
| | | public CustomizedPoint StandardPoint { get; set; } = new CustomizedPoint(); |
| | | public CustomizedPointWithAngle StandardPoint { get; set; } = new CustomizedPointWithAngle(); |
| | | |
| | | [Category("视觉配置")] |
| | | [Description("该位置拍摄配置")] |
| | |
| | | |
| | | config.PositionCollection.ForEach(p => |
| | | { |
| | | _hash[p.PositionCode] = $"{p.PositionCode}-{p.Description.GetEnumDescription()}"; |
| | | _hash[p.PositionCode] = $"{p.PositionCode}-{p.PositionNo}-{p.Description.GetEnumDescription()}"; |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | |
| | | public class PositionNoConverter : ComboBoxItemTypeConvert |
| | | { |
| | | public override void GetConvertHash() |
| | | { |
| | | using (var scope = GlobalVar.Container.BeginLifetimeScope()) |
| | | { |
| | | var config = scope.Resolve<ProcessConfig>(); |
| | | |
| | | config.PositionCollection.ForEach(p => |
| | | { |
| | | _hash[p.PositionNo] = $"{p.PositionNo}-{p.PositionCode}-{p.Description.GetEnumDescription()}"; |
| | | }); |
| | | } |
| | | } |