You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
534 lines
12 KiB
534 lines
12 KiB
using GummingCommon;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace GummingEntity
|
|
{
|
|
public class ControlConfiguration : ViewModelBase
|
|
{
|
|
private double _ManualOffsetX;
|
|
public double ManualOffsetX
|
|
{
|
|
get
|
|
{
|
|
return _ManualOffsetX;
|
|
}
|
|
set
|
|
{
|
|
_ManualOffsetX = Math.Round(value, 1);
|
|
OnPropertyChanged("ManualOffsetX");
|
|
}
|
|
}
|
|
private double _ManualOffsetY;
|
|
public double ManualOffsetY
|
|
{
|
|
get
|
|
{
|
|
return _ManualOffsetY;
|
|
}
|
|
set
|
|
{
|
|
_ManualOffsetY = Math.Round(value, 1);
|
|
OnPropertyChanged("ManualOffsetY");
|
|
}
|
|
}
|
|
//断 线 检 测
|
|
private string _ThreadBreakText;
|
|
public string ThreadBreakText
|
|
{
|
|
get
|
|
{
|
|
return _ThreadBreakText;
|
|
}
|
|
set
|
|
{
|
|
_ThreadBreakText = value;
|
|
OnPropertyChanged("ThreadBreakText");
|
|
}
|
|
}
|
|
//主 轴 开 停
|
|
private string _PrincipalAxisCheckText;
|
|
public string PrincipalAxisCheckText
|
|
{
|
|
get
|
|
{
|
|
return _PrincipalAxisCheckText;
|
|
}
|
|
set
|
|
{
|
|
_PrincipalAxisCheckText = value;
|
|
OnPropertyChanged("PrincipalAxisCheckText");
|
|
}
|
|
}
|
|
|
|
//设置滑动范围
|
|
private int _m_sliderRange;
|
|
public int m_sliderRange
|
|
{
|
|
get
|
|
{
|
|
return _m_sliderRange;
|
|
}
|
|
set
|
|
{
|
|
_m_sliderRange = value;
|
|
OnPropertyChanged("m_sliderRange");
|
|
}
|
|
}
|
|
//每1个单位画一刻度
|
|
private int _m_sliderTicFreq;
|
|
public int m_sliderTicFreq
|
|
{
|
|
get
|
|
{
|
|
return _m_sliderTicFreq;
|
|
}
|
|
set
|
|
{
|
|
_m_sliderTicFreq = value;
|
|
OnPropertyChanged("m_sliderTicFreq");
|
|
}
|
|
}
|
|
//设置滑块初始位置
|
|
private int _m_sliderPos;
|
|
public int m_sliderPos
|
|
{
|
|
get
|
|
{
|
|
return _m_sliderPos;
|
|
}
|
|
set
|
|
{
|
|
_m_sliderPos = value;
|
|
OnPropertyChanged("m_sliderPos");
|
|
}
|
|
}
|
|
//设置滑动范围
|
|
private int _m_slider2Range;
|
|
public int m_slider2Range
|
|
{
|
|
get
|
|
{
|
|
return _m_slider2Range;
|
|
}
|
|
set
|
|
{
|
|
_m_slider2Range = value;
|
|
OnPropertyChanged("m_slider2Range");
|
|
}
|
|
}
|
|
//每1个单位画一刻度
|
|
private int _m_slider2TicFreq;
|
|
public int m_slider2TicFreq
|
|
{
|
|
get
|
|
{
|
|
return _m_slider2TicFreq;
|
|
}
|
|
set
|
|
{
|
|
_m_slider2TicFreq = value;
|
|
OnPropertyChanged("m_slider2TicFreq");
|
|
}
|
|
}
|
|
//设置滑块初始位置
|
|
private int _m_slider2Pos;
|
|
public int m_slider2Pos
|
|
{
|
|
get
|
|
{
|
|
return _m_slider2Pos;
|
|
}
|
|
set
|
|
{
|
|
_m_slider2Pos = value;
|
|
CurrentPosition = string.Format("当前位置: {0} ; {1}", _m_slider2Pos, m_slider2Range);
|
|
m_sliderPercent = String.Format("{0:N1}", _m_slider2Pos * 100.0 / m_slider2Range) + "%";
|
|
OnPropertyChanged("m_slider2Pos");
|
|
}
|
|
}
|
|
|
|
private string _m_sliderPercent;
|
|
public string m_sliderPercent
|
|
{
|
|
get
|
|
{
|
|
return _m_sliderPercent;
|
|
}
|
|
set
|
|
{
|
|
_m_sliderPercent = value;
|
|
OnPropertyChanged("m_sliderPercent");
|
|
}
|
|
}
|
|
|
|
private string _CurrentPosition;
|
|
public string CurrentPosition
|
|
{
|
|
get
|
|
{
|
|
return _CurrentPosition;
|
|
}
|
|
set
|
|
{
|
|
_CurrentPosition = value;
|
|
OnPropertyChanged("CurrentPosition");
|
|
}
|
|
}
|
|
|
|
private string _IDC_FORWARD;
|
|
public string IDC_FORWARD
|
|
{
|
|
get
|
|
{
|
|
return _IDC_FORWARD;
|
|
}
|
|
set
|
|
{
|
|
_IDC_FORWARD = value;
|
|
OnPropertyChanged("IDC_FORWARD");
|
|
}
|
|
}
|
|
|
|
private string _IDC_BACKWARD;
|
|
public string IDC_BACKWARD
|
|
{
|
|
get
|
|
{
|
|
return _IDC_BACKWARD;
|
|
}
|
|
set
|
|
{
|
|
_IDC_BACKWARD = value;
|
|
OnPropertyChanged("IDC_BACKWARD");
|
|
}
|
|
}
|
|
|
|
private int _ActuallyNeedleSpeed;
|
|
public int ActuallyNeedleSpeed
|
|
{
|
|
get
|
|
{
|
|
return _ActuallyNeedleSpeed;
|
|
}
|
|
set
|
|
{
|
|
_ActuallyNeedleSpeed = value;
|
|
OnPropertyChanged("ActuallyNeedleSpeed");
|
|
}
|
|
}
|
|
|
|
private int _SpendMintus;
|
|
public int SpendMintus
|
|
{
|
|
get
|
|
{
|
|
return _SpendMintus;
|
|
}
|
|
set
|
|
{
|
|
_SpendMintus = value;
|
|
OnPropertyChanged("SpendMintus");
|
|
}
|
|
}
|
|
|
|
private int _SpendSeconds;
|
|
public int SpendSeconds
|
|
{
|
|
get
|
|
{
|
|
return _SpendSeconds;
|
|
}
|
|
set
|
|
{
|
|
_SpendSeconds = value;
|
|
OnPropertyChanged("SpendSeconds");
|
|
}
|
|
}
|
|
private string _PathSearchText;
|
|
public string PathSearchText
|
|
{
|
|
get
|
|
{
|
|
return _PathSearchText;
|
|
}
|
|
set
|
|
{
|
|
_PathSearchText = value;
|
|
OnPropertyChanged("PathSearchText");
|
|
}
|
|
}
|
|
|
|
private double _NeedleSpace;
|
|
public double NeedleSpace
|
|
{
|
|
get
|
|
{
|
|
return _NeedleSpace;
|
|
}
|
|
set
|
|
{
|
|
_NeedleSpace = value;
|
|
OnPropertyChanged("NeedleSpace");
|
|
}
|
|
}
|
|
private double _HardNeedleSpace;
|
|
public double HardNeedleSpace
|
|
{
|
|
get
|
|
{
|
|
return _HardNeedleSpace;
|
|
}
|
|
set
|
|
{
|
|
_HardNeedleSpace = value;
|
|
OnPropertyChanged("HardNeedleSpace");
|
|
}
|
|
}
|
|
private double _HardNeedleLength;
|
|
public double HardNeedleLength
|
|
{
|
|
get
|
|
{
|
|
return _HardNeedleLength;
|
|
}
|
|
set
|
|
{
|
|
_HardNeedleLength = value;
|
|
OnPropertyChanged("HardNeedleLength");
|
|
}
|
|
}
|
|
|
|
private double _NumNeedle;
|
|
public double NumNeedle
|
|
{
|
|
get
|
|
{
|
|
return _NumNeedle;
|
|
}
|
|
set
|
|
{
|
|
_NumNeedle = value;
|
|
OnPropertyChanged("NumNeedle");
|
|
}
|
|
}
|
|
private double _NeedleSpeed;
|
|
public double NeedleSpeed
|
|
{
|
|
get
|
|
{
|
|
return _NeedleSpeed;
|
|
}
|
|
set
|
|
{
|
|
_NeedleSpeed = value;
|
|
OnPropertyChanged("NeedleSpeed");
|
|
}
|
|
}
|
|
private double _WidthScale;
|
|
public double WidthScale
|
|
{
|
|
get
|
|
{
|
|
return _WidthScale;
|
|
}
|
|
set
|
|
{
|
|
_WidthScale = value;
|
|
OnPropertyChanged("WidthScale");
|
|
}
|
|
}
|
|
private double _HeightScale;
|
|
public double HeightScale
|
|
{
|
|
get
|
|
{
|
|
return _HeightScale;
|
|
}
|
|
set
|
|
{
|
|
_HeightScale = value;
|
|
OnPropertyChanged("HeightScale");
|
|
}
|
|
}
|
|
private double _PatternWidth;
|
|
public double PatternWidth
|
|
{
|
|
get
|
|
{
|
|
return _PatternWidth;
|
|
}
|
|
set
|
|
{
|
|
_PatternWidth = value;
|
|
OnPropertyChanged("PatternWidth");
|
|
}
|
|
}
|
|
private double _PatternHeight;
|
|
public double PatternHeight
|
|
{
|
|
get
|
|
{
|
|
return _PatternHeight;
|
|
}
|
|
set
|
|
{
|
|
_PatternHeight = value;
|
|
OnPropertyChanged("PatternHeight");
|
|
}
|
|
}
|
|
|
|
private double _NeedleSpace2;
|
|
public double NeedleSpace2
|
|
{
|
|
get
|
|
{
|
|
return _NeedleSpace2;
|
|
}
|
|
set
|
|
{
|
|
_NeedleSpace2 = value;
|
|
OnPropertyChanged("NeedleSpace2");
|
|
}
|
|
}
|
|
private string _PatternName;
|
|
public string PatternName
|
|
{
|
|
get
|
|
{
|
|
return _PatternName;
|
|
}
|
|
set
|
|
{
|
|
_PatternName = value;
|
|
OnPropertyChanged("PatternName");
|
|
}
|
|
}
|
|
private double _IDC_EDIT21;
|
|
public double IDC_EDIT21
|
|
{
|
|
get
|
|
{
|
|
return _IDC_EDIT21;
|
|
}
|
|
set
|
|
{
|
|
_IDC_EDIT21 = value;
|
|
OnPropertyChanged("IDC_EDIT21");
|
|
}
|
|
}
|
|
private string _NeedleDirectionText;
|
|
public string NeedleDirectionText
|
|
{
|
|
get
|
|
{
|
|
return _NeedleDirectionText;
|
|
}
|
|
set
|
|
{
|
|
_NeedleDirectionText = value;
|
|
OnPropertyChanged("NeedleDirectionText");
|
|
}
|
|
}
|
|
private string _ManualShuttleText;
|
|
public string ManualShuttleText
|
|
{
|
|
get
|
|
{
|
|
return _ManualShuttleText;
|
|
}
|
|
set
|
|
{
|
|
_ManualShuttleText = value;
|
|
OnPropertyChanged("ManualShuttleText");
|
|
}
|
|
}
|
|
|
|
private string _SpendTimes;
|
|
public string SpendTimes
|
|
{
|
|
get
|
|
{
|
|
return _SpendTimes;
|
|
}
|
|
set
|
|
{
|
|
_SpendTimes = value;
|
|
OnPropertyChanged("SpendTimes");
|
|
}
|
|
}
|
|
|
|
private string _ActuallySpendTimes;
|
|
public string ActuallySpendTimes
|
|
{
|
|
get
|
|
{
|
|
return _ActuallySpendTimes;
|
|
}
|
|
set
|
|
{
|
|
_ActuallySpendTimes = value;
|
|
OnPropertyChanged("ActuallySpendTimes");
|
|
}
|
|
}
|
|
private int _TodayProduction;
|
|
public int TodayProduction
|
|
{
|
|
get
|
|
{
|
|
return _TodayProduction;
|
|
}
|
|
set
|
|
{
|
|
_TodayProduction = value;
|
|
OnPropertyChanged("TodayProduction");
|
|
}
|
|
}
|
|
|
|
private int _TotalProduction;
|
|
public int TotalProduction
|
|
{
|
|
get
|
|
{
|
|
return _TotalProduction;
|
|
}
|
|
set
|
|
{
|
|
_TotalProduction = value;
|
|
OnPropertyChanged("TotalProduction");
|
|
}
|
|
}
|
|
|
|
private int _SegmentWay;
|
|
public int SegmentWay
|
|
{
|
|
get
|
|
{
|
|
return _SegmentWay;
|
|
}
|
|
set
|
|
{
|
|
_SegmentWay = value;
|
|
OnPropertyChanged("SegmentWay");
|
|
}
|
|
}
|
|
|
|
private int _SegmentInputWay;
|
|
public int SegmentInputWay
|
|
{
|
|
get
|
|
{
|
|
return _SegmentInputWay;
|
|
}
|
|
set
|
|
{
|
|
_SegmentInputWay = value;
|
|
OnPropertyChanged("SegmentInputWay");
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|