87 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			87 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| // ========================================================================
 | |
| // Copyright 2006 - Volian Enterprises, Inc. All rights reserved.          
 | |
| // Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
 | |
| // ------------------------------------------------------------------------
 | |
| // $Workfile: $     $Revision: $                                           
 | |
| // $Author: $   $Date: $                                                   
 | |
| //                                                                         
 | |
| // $History: $                                                             
 | |
| // ========================================================================
 | |
| 
 | |
| using System;
 | |
| using System.Data;
 | |
| using System.Data.SqlClient;
 | |
| using Csla;
 | |
| using Csla.Data;
 | |
| using System.Configuration;
 | |
| using System.IO;
 | |
| using System.Xml;
 | |
| using System.Drawing;
 | |
| using System.ComponentModel;
 | |
| 
 | |
| namespace VEPROMS.CSLA.Library
 | |
| {
 | |
| 	public partial class Format
 | |
| 	{
 | |
| 		#region PlantFormat
 | |
| 		[NonSerialized]
 | |
| 		private PlantFormat _PlantFormat;
 | |
| 		public PlantFormat PlantFormat
 | |
| 		{ get { return (_PlantFormat != null ? _PlantFormat : _PlantFormat = new PlantFormat(this)); } }
 | |
| 		#endregion
 | |
| 		public override string ToString()
 | |
| 		{
 | |
| 			//return Name;
 | |
| 			//return PlantFormat.FormatData.Name;
 | |
| 			return FullName;
 | |
| 		}
 | |
| 		public string FullName
 | |
| 		{
 | |
| 			get
 | |
| 			{
 | |
| 				if (ParentID == 1) return Description + " (" + Name + ")";
 | |
| 				return MyParent.Description + " - " + Description + " (" + Name + ")";
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| 	public partial class FormatInfo
 | |
| 	{
 | |
| 		#region PlantFormat
 | |
| 		[NonSerialized]
 | |
| 		private PlantFormat _PlantFormat;
 | |
| 		public PlantFormat PlantFormat
 | |
| 		{ get { return (_PlantFormat != null ? _PlantFormat : _PlantFormat = new PlantFormat(this.Get())); } }
 | |
| 		#endregion
 | |
| 		public override string ToString()
 | |
| 		{
 | |
| 			//return Name;
 | |
| 			//return PlantFormat.FormatData.Name;
 | |
| 			return FullName;
 | |
| 		}
 | |
| 		public string FullName
 | |
| 		{
 | |
| 			get
 | |
| 			{
 | |
| 				if (ParentID == 1) return Description + " (" + Name + ")";
 | |
| 				return MyParent.Description + " - " + Description + " (" + Name + ")";
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| 	public partial class FormatInfoList
 | |
| 	{
 | |
| 		private static Csla.SortedBindingList<FormatInfo> _SortedFormatInfoList;
 | |
| 		public static Csla.SortedBindingList<FormatInfo> SortedFormatInfoList
 | |
| 		{
 | |
| 			get
 | |
| 			{
 | |
| 				if (_SortedFormatInfoList == null)
 | |
| 				{
 | |
| 					_SortedFormatInfoList = new SortedBindingList<FormatInfo>(FormatInfoList.Get());
 | |
| 					_SortedFormatInfoList.ApplySort("FullName", ListSortDirection.Ascending);
 | |
| 				}
 | |
| 				return _SortedFormatInfoList;
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| }
 | 
