M182轴承端盖外观缺陷AOI
kingno
2025-09-18 1894ccc4014d813ea60cf276ac066e5870a82566
src/Bro.M141.Process/M141Config.cs
@@ -31,29 +31,13 @@
        [Category("通道数配置")]
        [Description("通道数")]
        [DisplayName("通道数")]
        public int channelva { get; set; } = 3;
        [Category("点检配置")]
        [Description("点检开关")]
        [DisplayName("点检开关")]
        public bool PointState { get; set; } = false;
        [Category("读码数据")]
        [Description("读码数据")]
        [DisplayName("读码数据")]
        public string TmpPath { get; set; }
        [Category("读码数据")]
        [Description("读码数据")]
        [DisplayName("读码数据")]
        [TypeConverter(typeof(SimpleCollectionConvert<string>))]
        [Editor(typeof(SimpleCollectionEditor<string>), typeof(UITypeEditor))]
        [EditorBrowsable]
        public List<string> BarcodeDataList { get; set; } = new List<string>();
        [Category("工位信息")]
        [Description("工位信息配置集合")]
@@ -81,15 +65,7 @@
        [DisplayName("检测超时时间")]
        public int DetectTimeout { get; set; } = 1000;
        [Category("数据库设置")]
        [Description("数据库数据保存天数,超过该天数的数据会被自动删除。设置为0时不执行删除操作")]
        [DisplayName("数据保存天数")]
        public int DBDataTimeLimit { get; set; } = 3;
        [Category("数据库设置")]
        [Description("初始化数据库时的缓存队列数量")]
        [DisplayName("初始缓存数量")]
        public int DBBufferListCount { get; set; } = 10;
        [Category("检测异常指示")]
        [Description("选择某个Spec,其表示检测过程中异常")]
@@ -98,13 +74,7 @@
        public string CheckErrorSpecCode { get; set; } = "";
        //[Category("调试使用设置")]
        //[Description("是否允许临时产品启用,使用于不完整流程中临时接收检测数据")]
        //[DisplayName("临时产品开关")]
        //public bool IsAllowTempProduct { get; set; } = false;
        [Category("位置度/轮廓度设置")]
        [Description("产品测量点位集合")]
@@ -113,94 +83,7 @@
        [Editor(typeof(ComplexCollectionEditor<ContourPoint>), typeof(UITypeEditor))]
        public List<ContourPoint> MeasurePointCollection { get; set; } = new List<ContourPoint>();
        [Category("位置度/轮廓度设置")]
        [Description("检测项配置集合,设置包含组合点位的检测项")]
        [DisplayName("检测项配置集合")]
        [TypeConverter(typeof(CollectionCountConvert))]
        [Editor(typeof(ComplexCollectionEditor<MeasureItemBind>), typeof(UITypeEditor))]
        public List<MeasureItemBind> MeasureItemBinds { get; set; } = new List<MeasureItemBind>();
        [Category("位置度/轮廓度设置")]
        [DisplayName("轮廓点计算偏移")]
        [Description("计算轮廓点位置时的点位偏移大小,单位mm")]
        public float CountLineShift { get; set; } = 0.5f;
        [Category("位置度/轮廓度设置")]
        [DisplayName("测量点补偿值设置")]
        [Description("针对各工位对应产品的各检测项点,做单点补偿处理")]
        [TypeConverter(typeof(CollectionCountConvert))]
        [Editor(typeof(ComplexCollectionEditor<Product_CheckPointsOffsetList>), typeof(UITypeEditor))]
        public List<Product_CheckPointsOffsetList> Product_PointsOffsetList { get; set; } = new List<Product_CheckPointsOffsetList>();
        [Category("MES配置")]
        [Description("MES上传URL地址")]
        [DisplayName("MES上传URL地址")]
        public string MESUploadURL { get; set; }
        [Category("MES配置")]
        [Description("true:启用MES上传 false:未启用MES上传")]
        [DisplayName("MES上传开关")]
        public bool IsEnabelMESUpload { get; set; } = false;
        [Category("MES配置")]
        [Description("MES上传项目代码,代表Project")]
        [DisplayName("MES站点代码")]
        public string MESProjectCode { get; set; } = "";
        [Category("MES配置")]
        [Description("MES上传机器号,代表MachineNumber")]
        [DisplayName("MES机器号")]
        public string MESMachineNum { get; set; } = "";
        [Category("MES配置")]
        [Description("MES上传代码和检测项代码的映射关系")]
        [DisplayName("MES上传代码映射关系")]
        [TypeConverter(typeof(CollectionCountConvert))]
        [Editor(typeof(ComplexCollectionEditor<MESCodeMapping>), typeof(UITypeEditor))]
        public List<MESCodeMapping> MESCodeMappingCollection { get; set; } = new List<MESCodeMapping>();
        [Category("MES配置-OEE上传")]
        [Description("OEE数据上传URL地址")]
        [DisplayName("OEE URL")]
        public string OEEDataUploadURL { get; set; } = "";
        [Category("MES配置-OEE上传")]
        [Description("true: 启用OEE数据上传 false:禁用OEE数据上传")]
        [DisplayName("OEE数据上传启用标记")]
        public bool IsEnableOEEDataUpload { get; set; } = false;
        [Category("MES配置-OEE上传")]
        [Description("OEE配置WorkPlace信息")]
        [DisplayName("OEE_WorkPlace")]
        public string OEEConfig_WorkPlace { get; set; } = "";
        [Category("图片显示设置")]
        [Description("背景图片文件路径")]
        [DisplayName("背景图片")]
        [Editor(typeof(FileDialogEditor), typeof(UITypeEditor))]
        public string BackgroundImageFilePath { get; set; }
        [Category("图片显示设置")]
        [DisplayName("检测缺陷显示布局")]
        [Description("检测界面缺陷显示布局")]
        [TypeConverter(typeof(CollectionCountConvert))]
        [Editor(typeof(DefectRectangleIndicatorEditor), typeof(UITypeEditor))]
        public List<DefectRectangleIndicator> DefectIndicatorCollection { get; set; } = new List<DefectRectangleIndicator>();
        [Category("表格显示设置")]
        [Description("表格显示产品数据的方式,按行或列显示一个产品的所有数据")]
        [DisplayName("表格显示")]
        public RefreshMode RefreshModeSelect { get; set; } = RefreshMode.行;
        [Category("表格显示设置")]
        [Description("表格显示产品数据数量")]
        [DisplayName("表格显示产品数据数量")]
        public int DataViewCount { get; set; } = 100;
        [Category("表格显示设置")]
        [Description("表格产品数据刷新的频率,单位us")]
        [DisplayName("表格产品数据刷新频率")]
        public int DataViewRefreshTime { get; set; } = 1000;
        [Category("NG和OK图片保存配置")]
        [Description("图片保存目录")]
@@ -270,8 +153,6 @@
        [ResCategory("压缩图片保存配置")]
        [ResDescription("图片压缩率")]
        [ResDisplayName("图片压缩率")]
@@ -279,29 +160,7 @@
        public zipZip SavezipZip { get; set; } = zipZip.zip;
        [Category("实时数据回传设置")]
        [Description("选择回传实时数据的本地socket服务端")]
        [DisplayName("回传服务端")]
        [TypeConverter(typeof(DeviceIdSelectorConverter<TcpListenerWrap>))]
        public string RealTimeDataServer { get; set; }
        [Category("实时数据回传设置")]
        [Description("回传数据的格式和内容设置")]
        [DisplayName("回传数据设置集合")]
        [TypeConverter(typeof(CollectionCountConvert))]
        [Editor(typeof(ComplexCollectionEditor<RealTimeAdjustDataModel>), typeof(UITypeEditor))]
        public List<RealTimeAdjustDataModel> RealTimeDataModels { get; set; } = new List<RealTimeAdjustDataModel>();
        [Category("产品设置")]
        [DisplayName("产品展示数量上限")]
        [Description("产品展示数量上限,超过该数量的检测记录自动移除")]
        public int MaxProductListAmount { get; set; } = 20;
        [Category("心跳配置")]
        [DisplayName("心跳返回值")]
        [Description("心跳返回值")]
        public string Heartstr { get; set; } = "";
        [Category("算法预热设置")]
@@ -317,19 +176,6 @@
        public List<WarmUpOne> WarmUpList { get; set; } = new List<WarmUpOne>();
        //[Category("检测相关")]
        //[Description("流程及设备检测标准集合")]
        //[DisplayName("检测标准集合2")]
        //[TypeConverter(typeof(GlobalSpecCollectionCountConverter))]
        //[Editor(typeof(GlobalSpecCollectionEditor), typeof(UITypeEditor))]
        //public List<ISpec> sss { get; set; } = new List<ISpec>();
        [Category("统计汇总配置")]
        [Description("汇总界面产品列表最大数量")]
        [DisplayName("产品列表最大数量")]
        public int MaxProductNumForStatistic { get; set; } = 200;
    }