
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FWindSoft.Data;

namespace Com.FirmLib.UI.Maintainer.Mode
{
    /// <summary>
    /// 维修商资产信息维护
    /// </summary>
    public class MaintainerAssetShowItem:BasePropertyChanged
    {
        /// <summary>
        /// 项目id
        /// </summary>
        public string ProjectId { get; set; }
        /// <summary>
        /// 类别信息
        /// </summary>
        public string Category { get; set; }

        private string m_AssetNo;
        /// <summary>
        /// 资产Id
        /// </summary>
        public string AssetNo
        {
            get { return this.m_AssetNo; }
            set
            {
                this.m_AssetNo = value;
                RaisePropertyChanged(() => this.AssetNo);
            }
        }
        private BaseAssetItem m_AssetItem;
        /// <summary>
        /// 资产信息
        /// </summary>
        public BaseAssetItem AssetItem
        {
            get { return this.m_AssetItem; }
            set
            {
                this.m_AssetItem = value;
                RaisePropertyChanged(() => this.AssetItem);
            }
        }


        private string m_EndDate;
        /// <summary>
        /// 截止日期
        /// </summary>
        public string EndDate
        {
            get { return this.m_EndDate; }
            set
            {
                this.m_EndDate = value;
                RaisePropertyChanged(() => this.EndDate);
            }
        }

        private int m_MaintenancePeriod;
        /// <summary>
        /// 保养周期
        /// </summary>
        public int MaintenancePeriod
        {
            get { return this.m_MaintenancePeriod; }
            set
            {
                this.m_MaintenancePeriod = value;
                RaisePropertyChanged(() => this.MaintenancePeriod);
            }
        }


        private bool m_HasOtherMaintainer;
        /// <summary>
        /// 是否有其他维修商
        /// </summary>
        public bool HasOtherMaintainer
        {
            get { return this.m_HasOtherMaintainer; }
            set
            {
                this.m_HasOtherMaintainer = value;
                RaisePropertyChanged(() => this.HasOtherMaintainer);
            }
        }
    }
}
