64 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			64 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.Text;
 | |
| 
 | |
| namespace VEPROMS.CSLA.Library
 | |
| {
 | |
| 	public partial class AnnotationInfo
 | |
| 	{
 | |
| 		public override string ToString()
 | |
| 		{
 | |
| 			return _SearchText;
 | |
| 		}
 | |
| 	}
 | |
| 	public partial class AnnotationType
 | |
| 	{
 | |
| 		public override string ToString()
 | |
| 		{
 | |
| 			return _Name;
 | |
| 		}
 | |
| 	}
 | |
| 	public partial class AnnotationTypeInfo
 | |
| 	{
 | |
| 		public static List<AnnotationTypeInfo> AllList()
 | |
| 		{
 | |
| 			//return _AllList;
 | |
| 			return AnnotationTypeInfo._CacheList;
 | |
| 		}
 | |
| 		public override string ToString()
 | |
| 		{
 | |
| 			return _Name;
 | |
| 		}
 | |
| 	}
 | |
| 	public partial class Annotation
 | |
| 	{
 | |
| 		/// <summary>
 | |
| 		/// Change the annotation type and update the Annotation record
 | |
| 		/// </summary>
 | |
| 		/// <param name="anotypeid"></param>
 | |
| 		public void Update(int anotypeid)
 | |
| 		{
 | |
| 			if (_TypeID != anotypeid)
 | |
| 			{
 | |
| 				_TypeID = anotypeid;
 | |
| 				MarkDirty(); // force the record update
 | |
| 				Save();
 | |
| 				//Update(); // commit record to database
 | |
| 			}
 | |
| 		}
 | |
| 		public void CommitChanges()
 | |
| 		{
 | |
| 			MarkDirty(); // force the record update
 | |
| 			Save(true);
 | |
| 			//Update();
 | |
| 		}
 | |
| 	}
 | |
| 	//public partial class AnnotationTypeAnnotations
 | |
| 	//{
 | |
| 	//   public static int GetAnnotationID()
 | |
| 	//   {
 | |
| 	//      return AnnotationTypeAnnotat
 | |
| 	//   }
 | |
| 	//}
 | |
| }
 |