123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- /* ==============================================================================
- * 功能描述:PEPCodeTb
- * 创 建 者:Garrett
- * 创建日期:2018/4/8 11:11:50
- * ==============================================================================*/
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.ComponentModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using SAGA.DotNetUtils.WPF;
- using SAGA.DotNetUtils.WPF.UserControl.ComboboxTreeView;
- using SAGA.MBI.DataArrange;
- using SAGA.MBI.JsonConvert;
- namespace SAGA.MBI.Model
- {
- public class PropertyDefineTb
- {
- public PropertyDefineTb(string code)
- {
- Code = code;
- PropertyDefineItems = new List<PropertyDefineItem>();
- }
- private string m_Code;
- public string Code
- {
- get { return m_Code; }
- set { m_Code = value; }
- }
- private List<PropertyDefineItem> m_PropertyDefineItems;
- public List<PropertyDefineItem> PropertyDefineItems
- {
- get { return m_PropertyDefineItems; }
- set { m_PropertyDefineItems = value; }
- }
- }
- /// <summary>
- /// PEPCodeTb
- /// </summary>
- public class PropertyDefineItem:BaseViewModelStub
- {
- public PropertyDefineItem()
- { }
- #region Model
- private int _id;
- private string _owner;
- private string _architecture;
- private string _category;
- private string _subcategory;
- private string _name;
- private string _codename;
- private string _unit;
- private string _type;
- private string _inputtype;
- private string _enumsource;
- private string _remark;
- /// <summary>
- ///
- /// </summary>
- public int ID
- {
- set { _id = value; }
- get { return _id; }
- }
- /// <summary>
- ///
- /// </summary>
- public string Owner
- {
- set { _owner = value; }
- get { return _owner; }
- }
- /// <summary>
- ///
- /// </summary>
- public string Architecture
- {
- set { _architecture = value; }
- get { return _architecture; }
- }
- /// <summary>
- ///
- /// </summary>
- public string Category
- {
- set { _category = value; }
- get { return _category; }
- }
- /// <summary>
- ///
- /// </summary>
- public string SubCategory
- {
- set { _subcategory = value; }
- get { return _subcategory; }
- }
- /// <summary>
- ///
- /// </summary>
- public string Name
- {
- set { _name = value; }
- get { return _name; }
- }
- /// <summary>
- ///
- /// </summary>
- public string CodeName
- {
- set { _codename = value; }
- get { return _codename; }
- }
- /// <summary>
- ///
- /// </summary>
- public string Unit
- {
- set { _unit = value; }
- get { return _unit; }
- }
- /// <summary>
- ///
- /// </summary>
- public string Type
- {
- set { _type = value; }
- get { return _type; }
- }
- /// <summary>
- ///
- /// </summary>
- public string InputType
- {
- set { _inputtype = value; }
- get { return _inputtype; }
- }
- /// <summary>
- ///
- /// </summary>
- public string EnumSource
- {
- set { _enumsource = value; }
- get { return _enumsource; }
- }
- /// <summary>
- ///
- /// </summary>
- public string Remark
- {
- set { _remark = value; }
- get { return _remark; }
- }
- private string collection_cmpt_code;
- /// <summary>
- /// 对应的组件编码
- /// </summary>
- public string CollectionCmptCode
- {
- get { return collection_cmpt_code; }
- set { collection_cmpt_code = value; }
- }
- private bool m_IsShow=false;
- /// <summary>
- /// 是否显示
- /// </summary>
- public bool IsShow
- {
- get { return m_IsShow; }
- set { m_IsShow = value; }
- }
- private string classification ;
- /// <summary>
- /// 信息点所属类别
- /// </summary>
- public string Classification
- {
- get { return classification; }
- set { classification = value; }
- }
- #endregion Model
- #region BindingProperty
- private Object m_DataSource;
- public Object DataSource
- {
- get
- {
- if (m_DataSource == null)
- m_DataSource = new ObservableCollection<CMBTreeNodeItem<ICMBTreeNodeItem>>(DalCMBTreeView.ConvertToDataSource(EnumSource));
- return m_DataSource;
- }
- }
- #endregion
- }
- /// <summary>
- /// 组件编码对应Revit的输入方式
- /// </summary>
- public class ComponentCodeToInputType
- {
- /// <summary>
- /// 组件编码
- /// </summary>
- public string ComponentCode { get; set; }
- /// <summary>
- /// Revit组件类型
- /// </summary>
- public string InputType { get; set; }
- }
- }
|