using System; using System.Collections; using System.Collections.Generic; namespace AIMSModel { [Serializable] public partial class QualityControlConfig : IComparable { private int? id; private int? qCId; private int? qCIId; private int? viewColWidth; private string excelColName; private int? mOrderBy = 0; private string viewModel; //外键关联的实体字段 private QualityControl qCRef; private QualityControlItem qCIRef; /// /// /// public int? Id { get{ return id; } set{ id=value; } } /// /// /// public int? QCId { get{ return qCId; } set{ qCId=value; } } /// /// /// public int? QCIId { get{ return qCIId; } set{ qCIId=value; } } /// /// /// public int? ViewColWidth { get{ return viewColWidth; } set{ viewColWidth=value; } } /// /// /// public string ExcelColName { get{ return excelColName; } set{ excelColName=value; } } /// /// /// public int? MOrderBy { get{ return mOrderBy; } set{ mOrderBy=value; } } /// /// /// public string ViewModel { get{ return viewModel; } set{ viewModel=value; } } /// /// 外键关联的实体属性 /// public QualityControl QCRef { get{ return qCRef; } set{ qCRef = value; } } public QualityControlItem QCIRef { get{ return qCIRef; } set{ qCIRef = value; } } public int CompareTo(QualityControlConfig other) { if (other == null) return 1; return this.MOrderBy.Value.CompareTo(other.MOrderBy.Value); } } }