86 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			86 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using System.Collections;
 | |
| using System.Collections.Generic; 
 | |
| 
 | |
| namespace AIMSModel
 | |
| {
 | |
| 	[Serializable]
 | |
|     public partial class QualityControlDetailedRecord 
 | |
| 	{
 | |
|         private int? id; 
 | |
|         private int? recordId; 
 | |
|         private int? qCIId; 
 | |
|         private int qCValue; 
 | |
|         private string qCValue2; 
 | |
| 	    //外键关联的实体字段
 | |
| 	    private QualityControlItem qCIRef;
 | |
| 	    private QualityControlRecord recordRef;
 | |
| 
 | |
| 
 | |
| 		/// <summary>
 | |
| 		/// 
 | |
| 		/// </summary>
 | |
| 		public int? Id
 | |
| 		{
 | |
| 		    get{ return id; }
 | |
| 			set{ id=value; }
 | |
| 		}
 | |
| 	    /// <summary>
 | |
|         /// 
 | |
|         /// </summary>
 | |
| 		public int? RecordId
 | |
| 		{
 | |
| 		    get{ return recordId; }
 | |
| 			set{ recordId=value; }
 | |
| 		}
 | |
| 	    /// <summary>
 | |
|         /// 
 | |
|         /// </summary>
 | |
| 		public int? QCIId
 | |
| 		{
 | |
| 		    get{ return qCIId; }
 | |
| 			set{ qCIId=value; }
 | |
| 		}
 | |
| 	    /// <summary>
 | |
|         /// 现在当排序用
 | |
|         /// </summary>
 | |
| 		public int QCValue
 | |
| 		{
 | |
| 		    get{ return qCValue; }
 | |
| 			set{ qCValue=value; }
 | |
| 		}
 | |
| 	    /// <summary>
 | |
|         /// 
 | |
|         /// </summary>
 | |
| 		public string QCValue2
 | |
| 		{
 | |
| 		    get{ return qCValue2; }
 | |
| 			set{ qCValue2=value; }
 | |
| 		}
 | |
| 	    /// <summary>
 | |
| 		/// 外键关联的实体属性
 | |
| 		/// </summary>
 | |
| 		
 | |
| 	    public QualityControlItem QCIRef
 | |
| 		{
 | |
| 		    get{ return qCIRef; }
 | |
| 			set{ qCIRef = value; }
 | |
| 		}
 | |
| 		
 | |
| 	    public QualityControlRecord RecordRef
 | |
| 		{
 | |
| 		    get{ return recordRef; }
 | |
| 			set{ recordRef = value; }
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	public class OrderComparer : IComparer<QualityControlDetailedRecord>
 | |
| 	{
 | |
| 		//实现升序
 | |
| 		public int Compare(QualityControlDetailedRecord x, QualityControlDetailedRecord y)
 | |
| 		{
 | |
| 			return (x.QCValue.CompareTo(y.QCValue));
 | |
| 		}
 | |
| 	}
 | |
| }
 |