Пример #1
0
        public List <FinalClassNames> GetFinalClassNames()
        {
            List <FinalClassNames> retVal = new List <FinalClassNames>();

            try
            {
                FinalClassNamesBL finalClassNames = new FinalClassNamesBL(_connString);
                tblFinalClassNames = finalClassNames.GetFinalClassNames();

                if (tblFinalClassNames != null && tblFinalClassNames.Rows.Count > 0)
                {
                    foreach (DataRow row in tblFinalClassNames.Rows)
                    {
                        FinalClassNames finalClassName = new FinalClassNames(_connString);
                        finalClassName.Show_Entry_Class_ID    = Utils.DBNullToGuid(row["Show_Entry_Class_ID"]);
                        finalClassName.Class_Name_Description = Utils.DBNullToString(row["Class_Name_Description"]);
                        finalClassName.Class_No = Utils.DBNullToShort(row["Class_No"]);
                        finalClassName.Show_Final_Class_Description = Utils.DBNullToString(row["Show_Final_Class_Description"]);
                        finalClassName.Entries = Utils.DBNullToShort(row["Entries"]);
                        finalClassName.OrderBy = Utils.DBNullToShort(row["OrderBy"]);
                        retVal.Add(finalClassName);
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(retVal);
        }
Пример #2
0
        public List<FinalClassNames> GetFinalClassNames()
        {
            List<FinalClassNames> finalClassNameList = new List<FinalClassNames>();
            FinalClassNamesBL finalClassNames = new FinalClassNamesBL();
            tblFinalClassNames = finalClassNames.GetFinalClassNames();

            if (tblFinalClassNames != null && tblFinalClassNames.Count > 0)
            {
                foreach (sss.tblFinalClassNamesRow row in tblFinalClassNames)
                {
                    FinalClassNames finalClassName = new FinalClassNames();
                    finalClassName.Show_Entry_Class_ID = row.Show_Entry_Class_ID;
                    finalClassName.Class_Name_Description = row.Class_Name_Description;
                    finalClassName.Class_No = row.Class_No;
                    finalClassName.Show_Final_Class_Description = row.Show_Final_Class_Description;
                    finalClassName.Entries = row.Entries;
                    finalClassName.OrderBy = row.OrderBy;
                    finalClassNameList.Add(finalClassName);
                }
            }
            return finalClassNameList;
        }