Ejemplo n.º 1
0
        public List <QualificationType> GetDutyQualificationTypes()
        {
            List <QualificationType> lstqualtype = LookupManager.GetAllQualificationTypes();
            QualificationType        coe         = new QualificationType();

            coe.QualificationTypeID = (int)enumQualificationType.ConditionOfEmployment;
            lstqualtype.Remove(coe);
            return(lstqualtype);
        }
Ejemplo n.º 2
0
        internal static List <QualificationType> GetCollection(DataTable dataItems)
        {
            List <QualificationType> listCollection = new List <QualificationType>();
            QualificationType        current        = null;

            if (dataItems != null)
            {
                for (int i = 0; i < dataItems.Rows.Count; i++)
                {
                    current = new QualificationType(dataItems.Rows[i]);
                    listCollection.Add(current);
                }
            }
            else
            {
                throw new Exception("You cannot create a QualificationType collection from a null data table.");
            }

            return(listCollection);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Determines whether the specified System.Object is equal to the current object.
        /// </summary>
        /// <param name="obj">The System.Object to compare with the current object.</param>
        /// <returns>Returns true if the specified System.Object is equal to the current object; otherwise, false.</returns>
        public override bool Equals(Object obj)
        {
            QualificationType QualificationTypeobj = obj as QualificationType;

            return((QualificationTypeobj == null) ? false : (this.QualificationTypeID == QualificationTypeobj.QualificationTypeID));
        }
Ejemplo n.º 4
0
 public static List <QualificationType> GetAllQualificationTypes()
 {
     return(QualificationType.GetCollection(ExecuteDataTable("spr_GetAllQualificationTypes")));
 }