using DataEntity;
using HxEnum;
using System.ComponentModel;
namespace XImagingXhandler.XDAL
{
///
/// 变量计算实体类
///
public class MethodVarCalc : MethodBase
{
#region
///
/// 计算结果变量
///
public string calcResult { get; set; } = string.Empty;
///
/// 计算值1
///
public string calcValue1 { get; set; } = string.Empty;
///
/// 计算值1
///
public string calcValue2 { get; set; } = string.Empty;
///
/// 计算表达式: CalcOperatorTypeEnum
///
public int calcOperator { get; set; } = EnumManagement.GetEnumValue(CalcOperatorTypeEnum.Add);
#endregion
#region 深拷贝
public override object DeepCopy()
{
MethodVarCalc method = DeepCopyBase(this);
return method;
}
#endregion
}
#region 变量计算类型:0:+, 1:-, 2:*, 3:/, 4:%
///
/// 变量计算类型:0:+, 1:-, 2:*, 3:/, 4:%
///
public enum CalcOperatorTypeEnum
{
///
/// 加
///
[Description("+")]
Add = 0,
///
/// 减
///
[Description("-")]
Minus = 1,
///
/// 乘
///
[Description("*")]
Time = 2,
///
/// 除
///
[Description("/")]
Pide = 3,
///
/// 取模
///
[Description("%")]
Mod = 4,
/////
///// 除法向上取整
/////
//[Description("ExactDivisionUp")]
//ExactDivisionUp = 5,
/////
///// 赋值
/////
//[Description("Equal")]
//Equal = 6,
}
#endregion
}