internal static List <ISeriesFactorLevelLanguage> GetCollection(DataTable dataItems, enumFactorFormatType factorformattypeid)
        {
            List <ISeriesFactorLevelLanguage> listCollection = new List <ISeriesFactorLevelLanguage>();
            ISeriesFactorLevelLanguage        current        = null;

            if (dataItems != null)
            {
                for (int i = 0; i < dataItems.Rows.Count; i++)
                {
                    if (factorformattypeid == enumFactorFormatType.FES)
                    {
                        current = new SeriesFesFactorLevelLanguage(dataItems.Rows[i]);
                    }
                    else if (factorformattypeid == enumFactorFormatType.GSSG)
                    {
                        current = new SeriesGSSGFactorLevelLanguage(dataItems.Rows[i]);
                    }



                    listCollection.Add(current);
                }
            }
            else
            {
                throw new Exception("You cannot create a SeriesFactorLevelLanguage collection from a null data table.");
            }

            return(listCollection);
        }
Example #2
0
        internal static List <SeriesFesFactorLevelLanguage> GetCollection(DataTable dataItems)
        {
            List <SeriesFesFactorLevelLanguage> listCollection = new List <SeriesFesFactorLevelLanguage>();
            SeriesFesFactorLevelLanguage        current        = null;

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

            return(listCollection);
        }
        //public SeriesFactorLevelLanguage(DataRow singleRowData)
        //{
        //    // Load Object by dataRow
        //    try
        //    {
        //        this.FillObjectFromRowData(singleRowData);
        //    }
        //    catch (Exception ex)
        //    {
        //        HandleException(ex);
        //    }
        //}

        public SeriesFactorLevelLanguage(int seriesid, int fesfactorlevelid, enumFactorFormatType factorformattypeid)
        {
            try
            {
                if (factorformattypeid == enumFactorFormatType.FES)
                {
                    SeriesFesFactorLevelLanguage seriesfesfactorlevellanguage = new SeriesFesFactorLevelLanguage(seriesid, fesfactorlevelid);
                    FillObject(seriesfesfactorlevellanguage, factorformattypeid);
                }
                else if (factorformattypeid == enumFactorFormatType.GSSG)
                {
                    SeriesGSSGFactorLevelLanguage seriesgssgfactorlevellanguage = new SeriesGSSGFactorLevelLanguage(seriesid, fesfactorlevelid);
                    FillObject(seriesgssgfactorlevellanguage, factorformattypeid);
                }
            }
            catch (Exception ex)
            {
                HandleException(ex);
            }
        }
Example #4
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)
        {
            SeriesFesFactorLevelLanguage SeriesFesFactorLevelLanguageobj = obj as SeriesFesFactorLevelLanguage;

            return((SeriesFesFactorLevelLanguageobj == null) ? false : ((this.SeriesID == SeriesFesFactorLevelLanguageobj.SeriesID) && (this.FactorLevelID == SeriesFesFactorLevelLanguageobj.FactorLevelID)));
        }