1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace JLHHJSvr.Com.Model
- {
- public sealed class CalCulationFormula
- {
- /// <summary>
- /// 公式id
- /// </summary>
- public int formula_id { get; set; }
- /// <summary>
- /// 公式名
- /// </summary>
- public string formula_name { get; set; }
- /// <summary>
- /// 公式
- /// </summary>
- public string formula { get; set; }
- /// <summary>
- /// 转换后公式
- /// </summary>
- public string formula_transform { get; set; }
- /// <summary>
- /// 计算后值
- /// </summary>
- public object value { get; set; }
- public override bool Equals(object o)
- {
- if (this == o)
- {
- return true;
- }
- //内存地址不相等,就得比属性
- if (o is CalCulationFormula)
- {
- CalCulationFormula item = (CalCulationFormula)o;
- return formula_id == item.formula_id &&
- formula_name.Equals(item.formula_name);
- }
- return false;
- }
- public override int GetHashCode()
- {
- int hash = 17;
- hash = hash * 23 + formula_id.GetHashCode();
- hash = hash * 23 + formula_name.GetHashCode();
- return hash;
- }
- }
- }
|