BlowingFixProfileParam.cs 2.24 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5
using Misc;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
6
using System.Reflection;
潘栩锋's avatar
潘栩锋 committed
7 8 9 10
using System.Text;

namespace FLY.Thick.Blowing.Common
{
11 12 13
    /// <summary>
    /// 
    /// </summary>
14
    public class BlowingFixProfileParam : INotifyPropertyChanged,Misc.ICopiable,ICloneable
潘栩锋's avatar
潘栩锋 committed
15 16 17 18 19 20
    {

        #region 正常运行参数
        /// <summary>
        /// 产品名称
        /// </summary>
21 22 23 24 25 26 27 28 29
        public string PName { get; set; }= "pname";
        /// <summary>
        /// 订单号
        /// </summary>
        public string OrderNo { get; set; } = "00000001";
        /// <summary>
        /// 卷号
        /// </summary>
        public string Number { get; set; } = "1";
潘栩锋's avatar
潘栩锋 committed
30 31 32
        /// <summary>
        /// 目标值
        /// </summary>
33
        public double Target { get; set; } = 100;
潘栩锋's avatar
潘栩锋 committed
34 35

        /// <summary>
36
        /// 公差%
潘栩锋's avatar
潘栩锋 committed
37
        /// </summary>
38
        public double TolerancePercent { get; set; } = 0.03;
潘栩锋's avatar
潘栩锋 committed
39 40 41 42

        /// <summary>
        /// 斜率补偿
        /// </summary>
43
        public double K { get; set; } = 1;
潘栩锋's avatar
潘栩锋 committed
44 45 46 47 48


        #endregion
        #region 吹膜定点解方程用
        /// <summary>
49
        /// 测量模式
潘栩锋's avatar
潘栩锋 committed
50
        /// </summary>
51
        public MeasureMode MMode { get; set; } = MeasureMode.Edge; 
潘栩锋's avatar
潘栩锋 committed
52 53

        /// <summary>
54
        /// 膜宽 单位 mm, 收卷时,切膜前,测量的宽度
潘栩锋's avatar
潘栩锋 committed
55
        /// </summary>
56
        public int FilmWidth { get; set; } = 1180;
潘栩锋's avatar
潘栩锋 committed
57 58 59 60 61 62 63

        /// <summary>
        /// 探头所在膜的横向位置 单位 mm
        /// </summary>
        public int FilmPosH { get; set; } = 70;

        #endregion
64
        public event PropertyChangedEventHandler PropertyChanged;
潘栩锋's avatar
潘栩锋 committed
65

66 67 68 69 70 71 72 73 74 75 76
        public object Clone()
        {
            BlowingFixProfileParam p = new BlowingFixProfileParam();
            p.Copy(this);
            return p;
        }

        public void Copy(object src)
        {
            Misc.PropertiesManager.CopyTo(src, this);
        }
潘栩锋's avatar
潘栩锋 committed
77
    }
78 79 80 81 82 83 84 85 86 87 88 89 90

    /// <summary>
    /// 测量模式
    /// </summary>
    public enum MeasureMode
    {
        /// <summary>
        /// 不解方程,探头距离膜边 0mm
        /// </summary>
        Edge,
        /// <summary>
        /// 一般模型,探头测双层
        /// </summary>
91
        Normal
92
    }
潘栩锋's avatar
潘栩锋 committed
93
}