Exemple #1
0
        internal static List <JobAnalysisDutyKSA> GetCollection(DataTable dataItems)
        {
            List <JobAnalysisDutyKSA> listCollection = new List <JobAnalysisDutyKSA>();
            JobAnalysisDutyKSA        current        = null;

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

            return(listCollection);
        }
Exemple #2
0
        public List <JobAnalysisDutyKSA> GetJobAnalysisDutyKSAByJADutyID()
        {
            List <JobAnalysisDutyKSA> childDataCollection = null;

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

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

            return(childDataCollection);
        }
Exemple #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)
        {
            JobAnalysisDutyKSA JobAnalysisDutyKSAobj = obj as JobAnalysisDutyKSA;

            return((JobAnalysisDutyKSAobj == null) ? false : (this.JADutyKSAID == JobAnalysisDutyKSAobj.JADutyKSAID));
        }