| | |
| | | public List<Printer> Printers { get; set; } = new List<Printer>(); |
| | | |
| | | |
| | | [Category("打印机配置")] |
| | | [Description("是否打印封装码")] |
| | | [DisplayName("是否打印封装码")] |
| | | public bool Isprint { get; set; } = false; |
| | | |
| | | |
| | | |
| | | [Category("产品显示界面配置")] |
| | | [Description("字体大小")] |
| | |
| | | [TypeConverter(typeof(CollectionCountConvert))] |
| | | [Editor(typeof(ComplexCollectionEditor<MeasureBind>), typeof(UITypeEditor))] |
| | | public List<MeasureBind> MeasureBindCollection { get; set; } = new List<MeasureBind>(); |
| | | |
| | | |
| | | [Category("点检配置")] |
| | | [Description("点检配置集合,配置检测的工位,图片索引,相机和检测调用项关系")] |
| | | [DisplayName("点检配置集合")] |
| | | [TypeConverter(typeof(CollectionCountConvert))] |
| | | [Editor(typeof(ComplexCollectionEditor<MeasureBind>), typeof(UITypeEditor))] |
| | | public List<MeasureBind> MeasureBindCollection_Check { get; set; } = new List<MeasureBind>(); |
| | | |
| | | |
| | | |
| | |
| | | public List<PlcAndBasketcode> PlcAndBasketcodes { get; set; } = new List<PlcAndBasketcode>(); |
| | | |
| | | |
| | | [Category("MES配置")] |
| | | [Description("产品ID集合")] |
| | | [DisplayName("产品ID集合")] |
| | | [TypeConverter(typeof(CollectionCountConvert))] |
| | | [Editor(typeof(ComplexCollectionEditor<ProductionID>), typeof(UITypeEditor))] |
| | | public List<ProductionID> Productioncode { get; set; } = new List<ProductionID>(); |
| | | |
| | | [Category("MES配置")] |
| | | [Description("条码集合")] |
| | | [DisplayName("条码集合")] |
| | | [TypeConverter(typeof(CollectionCountConvert))] |
| | | [Editor(typeof(ComplexCollectionEditor<MES_code>), typeof(UITypeEditor))] |
| | | public List<MES_code> MES_codes { get; set; } = new List<MES_code>(); |
| | | |
| | | |
| | | } |
| | | public class MES_code: IComplexDisplay |
| | | { |
| | | [Category("配置")] |
| | | [Description("MES下发的条码")] |
| | | [DisplayName("条码")] |
| | | public string Printers_code { get; set; } |
| | | public string GetDisplayText() |
| | | { |
| | | return $"{Printers_code}"; |
| | | } |
| | | } |
| | | |
| | | |
| | | public class ProductionID : IComplexDisplay |
| | | { |
| | | [Category("配置")] |
| | | [Description("序号")] |
| | | [DisplayName("序号")] |
| | | public int Uptomesid { get; set; } = 0; |
| | | |
| | | [Category("配置")] |
| | | [Description("条码")] |
| | | [DisplayName("PID")] |
| | | public string PID { get; set; } |
| | | |
| | | [Category("配置")] |
| | | [Description("条码")] |
| | | [DisplayName("SEQUENCE")] |
| | | public string SEQUENCE { get; set; } |
| | | |
| | | [Category("配置")] |
| | | [Description("条码")] |
| | | [DisplayName("BasketCode")] |
| | | public string BasketCode { get; set; } |
| | | |
| | | [Category("配置")] |
| | | [Description("条码")] |
| | | [DisplayName("Zword")] |
| | | public string Zword { get; set; } |
| | | |
| | | [Category("配置")] |
| | | [Description("条码")] |
| | | [DisplayName("SN")] |
| | | public string SN { get; set; } |
| | | |
| | | public string GetDisplayText() |
| | | { |
| | | return $"产品{PID}上传批次序号{Uptomesid}"; |
| | | } |
| | | } |
| | | |
| | | public class WorkPositionSet : IComplexDisplay |
| | | { |
| | |
| | | public string code { get; set; } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | public class MeasureBind : IComplexDisplay, IHalconToolPath |
| | | { |
| | | [Category("索引配置")] |
| | |
| | | [Editor(typeof(FoldDialogEditor), typeof(UITypeEditor))] |
| | | public string ImageFolder { get; set; } |
| | | |
| | | |
| | | |
| | | [Category("检测功能")] |
| | | [Description("图片在批量测试过程中最终图片结果会存储较慢需要设置延时确保图片不被资源自动释放")] |
| | | [DisplayName("图片存图延时")] |
| | | public int SaveImageTime { get; set; } = 0; |
| | | |
| | | |
| | | |
| | | [Category("检测功能")] |
| | | [Description("true:启动OK测试 false:启动NG测试")] |