Пример #1
0
        internal static List <PositionStatusType> GetCollection(DataTable dataItems)
        {
            List <PositionStatusType> listCollection = new List <PositionStatusType>();
            PositionStatusType        current        = null;

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

            return(listCollection);
        }
Пример #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)
        {
            PositionStatusType PositionStatusTypeobj = obj as PositionStatusType;

            return((PositionStatusTypeobj == null) ? false : (this.PositionStatusTypeID == PositionStatusTypeobj.PositionStatusTypeID));
        }
Пример #3
0
 public static List <PositionStatusType> GetAllPositionStatusTypes()
 {
     return(PositionStatusType.GetCollection(ExecuteDataTable("spr_GetAllPositionStatusTypes")));
 }