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

namespace Com.FirmLib.UI.Manufacturer.Model
{
    /// <summary>
    /// 产品信息显示
    /// </summary>
    public class ProductShowItem: EditableItem
    {
        public ProductShowItem()
        {
            IsListenEditing = true;
        }

        /// <summary>
        /// 厂商库Id
        /// </summary>
        public string VenderId { get; set; }
        /// <summary>
        /// 品牌Id
        /// </summary>
        public string BrandId { get; set; }

        private string m_ProductId;
        /// <summary>
        /// 产品的ID
        /// </summary>
        public string ProductId
        {
            get { return this.m_ProductId; }
            set
            {
                this.m_ProductId = value;
                RaisePropertyChanged(() => this.ProductId);
            }
        }


        private string m_ProductName;
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName
        {
            get { return this.m_ProductName; }
            set
            {
                this.m_ProductName = value;
                RaisePropertyChanged(() => this.ProductName);
            }
        }

        private string m_OwnerFamily;
        /// <summary>
        /// 所属于的设备族
        /// </summary>
        public string OwnerFamily
        {
            get { return this.m_OwnerFamily; }
            set
            {
                this.m_OwnerFamily = value;
                RaisePropertyChanged(() => this.OwnerFamily);
            }
        }


        private string m_ComonError;
        /// <summary>
        /// 常见故障
        /// </summary>
        public string ComonError
        {
            get { return this.m_ComonError; }
            set
            {
                this.m_ComonError = value;
                RaisePropertyChanged(() => this.ComonError);
            }
        }


        private List<string> m_ContainTypes;
        /// <summary>
        /// 包含的相关型号
        /// </summary>
        public List<string> ContainTypes
        {
            get { return this.m_ContainTypes; }
            set
            {
                this.m_ContainTypes = value;
                RaisePropertyChanged(() => this.ContainTypes);
            }
        }
    }
}
