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.

172 lines
3.6 KiB

using GummingCommon;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
namespace GummingEntity
{
public enum ActionType
{
Delay = 1,
DoAction = 2
}
public enum PositionType
{
Delay = 1,
ZhuzhouMove = 2,
XikouxianStart =3,
XikouxianEnd = 4,
PingdaoOpen =5,
PingdaoClose =6,
ShangyaxianStart =7,
ShangyaxianEnd = 8,
FanzhuanRelease = 9,
SongxiandiancitieStart = 10,
SongxiandiancitieEnd = 11,
DanmianStart = 13,
DanmianClose = 14,
}
public class PositionAction : ViewModelBase
{
private string _RecId;
public string RecId
{
get
{
return _RecId;
}
set
{
_RecId = value;
OnPropertyChanged("RecId");
}
}
private string _PositionName;
public string PositionName
{
get
{
return _PositionName;
}
set
{
_PositionName = value;
OnPropertyChanged("PositionName");
}
}
private ActionType _PositionCode;
public ActionType PositionCode
{
get
{
return _PositionCode;
}
set
{
_PositionCode = value;
OnPropertyChanged("PositionCode");
}
}
private PositionType _PositionType;
public PositionType PositionType
{
get
{
return _PositionType;
}
set
{
_PositionType = value;
OnPropertyChanged("PositionType");
}
}
}
public class CutPositionEntity : ViewModelBase
{
public string RecId { get; set; }
private PositionAction _SelecedAction;
public PositionAction SelecedAction
{
get
{
return _SelecedAction;
}
set
{
_SelecedAction = value;
OnPropertyChanged("SelecedAction");
}
}
private ObservableCollection<PositionAction> _Actions;
public ObservableCollection<PositionAction> Actions
{
get
{
return _Actions;
}
set
{
_Actions = value;
OnPropertyChanged("Actions");
}
}
public int Index { get; set; }
private int _PositionDist;
public int PositionDist
{
get
{
return _PositionDist;
}
set
{
_PositionDist = value;
OnPropertyChanged("PositionDist");
}
}
private int _PositionAbs;
public int PositionAbs
{
get
{
return _PositionAbs;
}
set
{
_PositionAbs = value;
OnPropertyChanged("PositionAbs");
}
}
private int _MoveSpeed;
public int MoveSpeed
{
get
{
return _MoveSpeed;
}
set
{
_MoveSpeed = value;
OnPropertyChanged("MoveSpeed");
}
}
}
}