internal static List <JobAnalysisDutyQualification> GetCollection(DataTable dataItems)
        {
            List <JobAnalysisDutyQualification> listCollection = new List <JobAnalysisDutyQualification>();
            JobAnalysisDutyQualification        current        = null;

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

            return(listCollection);
        }
예제 #2
0
        public List <JobAnalysisDutyQualification> GetJobAnalysisDutyQualificationByJADutyID()
        {
            List <JobAnalysisDutyQualification> childDataCollection = null;

            if (base.ValidateKeyField(this._jADutyID))
            {
                try
                {
                    DataTable dt = ExecuteDataTable("spr_GetJobAnalysisDutyQualificationByJADutyID", this._jADutyID);

                    // fill collection list
                    childDataCollection = JobAnalysisDutyQualification.GetCollection(dt);
                }
                catch (Exception ex)
                {
                    HandleException(ex);
                }
            }

            return(childDataCollection);
        }
        /// <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)
        {
            JobAnalysisDutyQualification JobAnalysisDutyQualificationobj = obj as JobAnalysisDutyQualification;

            return((JobAnalysisDutyQualificationobj == null) ? false : (this.JADutyQualID == JobAnalysisDutyQualificationobj.JADutyQualID));
        }