DefectData.cs 1.28 KB
namespace OS.Spin.ViewModle.Models
{
    /// <summary>
    /// 记录瑕疵种类的实体类
    /// </summary>
    public class DefectData
    {
        private string _defectType;     //瑕疵类别
        private int _status;    //该瑕疵的状态(选中或未选中:如果0标识未选中1标识已选中)
        private int _score;     //该瑕疵的扣分规则
        
        public DefectData() { }

        public DefectData(string _defectType, int _status, int _score)
        {
            this._defectType = _defectType;
            this._status = _status;
            this._score = _score;
        }
        
        public string defectType
        {
            get { return _defectType; }
            set
            {
                _defectType = value;
            }
        }

        public int status
        {
            get { return _status; }
            set
            {
                _status = value;
            }
        }

        public int score
        {
            get { return _score; }
            set
            {
                _score = value;
            }
        }

        public override string ToString()
        {
            return string.Format("_defectType:{0},_status:{1},_score:{2}", this._defectType, this._status, this._score);
        }
    }
}