// ========================================================================
// Copyright 2007 - 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.ComponentModel;
using System.Collections.Generic;
using Csla.Validation;
namespace VEPROMS.CSLA.Library
{
///
/// RevisionChecks Generated by MyGeneration using the CSLA Object Mapping template
///
[Serializable()]
[TypeConverter(typeof(RevisionChecksConverter))]
public partial class RevisionChecks : BusinessListBase, ICustomTypeDescriptor, IVEHasBrokenRules
{
#region Log4Net
private static readonly log4net.ILog _MyLog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
#endregion
#region Business Methods
private string _ErrorMessage = string.Empty;
public string ErrorMessage
{
get { return _ErrorMessage; }
}
// One To Many
public RevisionCheck this[Check myCheck]
{
get
{
foreach (RevisionCheck check in this)
if (check.CheckID == myCheck.CheckID)
return check;
return null;
}
}
public new System.Collections.Generic.IList Items
{
get { return base.Items; }
}
public RevisionCheck GetItem(Check myCheck)
{
foreach (RevisionCheck check in this)
if (check.CheckID == myCheck.CheckID)
return check;
return null;
}
public RevisionCheck Add(Stage myStage) // One to Many
{
RevisionCheck check = RevisionCheck.New(myStage);
this.Add(check);
return check;
}
public void Remove(Check myCheck)
{
foreach (RevisionCheck check in this)
{
if (check.CheckID == myCheck.CheckID)
{
Remove(check);
break;
}
}
}
public bool Contains(Check myCheck)
{
foreach (RevisionCheck check in this)
if (check.CheckID == myCheck.CheckID)
return true;
return false;
}
public bool ContainsDeleted(Check myCheck)
{
foreach (RevisionCheck check in DeletedList)
if (check.CheckID == myCheck.CheckID)
return true;
return false;
}
public bool IsDirtyList(List