Esempio n. 1
0
        public FinalClassNames(string connString, short orderBy)
        {
            _connString = connString;

            try
            {
                FinalClassNamesBL finalClassNames = new FinalClassNamesBL(_connString);
                tblFinalClassNames = finalClassNames.GetFinalClassNamesByOrderBy(orderBy);
                DataRow row = tblFinalClassNames.Rows[0];

                if (tblFinalClassNames != null && tblFinalClassNames.Rows.Count > 0)
                {
                    _show_Entry_Class_ID    = Utils.DBNullToGuid(row["Show_Entry_Class_ID"]);
                    _class_Name_Description = Utils.DBNullToString(row["Class_Name_Description"]);
                    _class_No = Utils.DBNullToShort(row["Class_No"]);
                    _show_Final_Class_Description = Utils.DBNullToString(row["Show_Final_Class_Description"]);
                    _entries = Utils.DBNullToShort(row["Entries"]);
                    _orderBy = Utils.DBNullToShort(row["OrderBy"]);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Esempio n. 2
0
        public FinalClassNames(short orderBy)
        {
            FinalClassNamesBL finalClassNames = new FinalClassNamesBL();
            tblFinalClassNames = finalClassNames.GetFinalClassNamesByOrderBy(orderBy);

            if (tblFinalClassNames != null && tblFinalClassNames.Count > 0)
            {
                Show_Entry_Class_ID = tblFinalClassNames[0].Show_Entry_Class_ID;
                Class_Name_Description = tblFinalClassNames[0].Class_Name_Description;
                Class_No = tblFinalClassNames[0].Class_No;
                Show_Final_Class_Description = tblFinalClassNames[0].Show_Final_Class_Description;
                Entries = tblFinalClassNames[0].Entries;
                OrderBy = tblFinalClassNames[0].OrderBy;
            }
        }