Esempio n. 1
0
        internal static PayPlanCollection GetCollection(DataTable dataItems)
        {
            PayPlanCollection listCollection = new PayPlanCollection();
            PayPlan           current        = null;

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

            return(listCollection);
        }
Esempio n. 2
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)
        {
            PayPlan PayPlanobj = obj as PayPlan;

            return((PayPlanobj == null) ? false : (this.PayPlanID == PayPlanobj.PayPlanID));
        }
Esempio n. 3
0
 public static PayPlanCollection GetAllInUsePayPlans()
 {
     return(PayPlan.GetCollection(ExecuteDataTable("spr_GetAllInUsePayPlans")));
 }