Ejemplo n.º 1
0
        internal static List <JobAnalysisDutyKSAFactor> GetCollection(DataTable dataItems)
        {
            List <JobAnalysisDutyKSAFactor> listCollection = new List <JobAnalysisDutyKSAFactor>();
            JobAnalysisDutyKSAFactor        current        = null;

            if (dataItems != null)
            {
                for (int i = 0; i < dataItems.Rows.Count; i++)
                {
                    current = new JobAnalysisDutyKSAFactor(dataItems.Rows[i]);
                    listCollection.Add(current);
                }
            }
            else
            {
                throw new Exception("Failed to create Duty KSA.");
            }

            return(listCollection);
        }
Ejemplo n.º 2
0
        public List <JobAnalysisDutyKSAFactor> GetJobAnalysisDutyKSAFactorByJADutyID()
        {
            List <JobAnalysisDutyKSAFactor> childDataCollection = null;

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

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

            return(childDataCollection);
        }
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)
        {
            JobAnalysisDutyKSAFactor JobAnalysisDutyKSFactorAobj = obj as JobAnalysisDutyKSAFactor;

            return((JobAnalysisDutyKSFactorAobj == null) ? false : (this.JQFactorID == JobAnalysisDutyKSFactorAobj.JQFactorID));
        }