예제 #1
0
        public List <ClassNames> GetClass_Names()
        {
            List <ClassNames> retVal = new List <ClassNames>();

            try
            {
                ClassNamesBL classNames = new ClassNamesBL(_connString);
                lkpClassNames = classNames.GetClass_Names();

                if (lkpClassNames != null && lkpClassNames.Rows.Count > 0)
                {
                    foreach (DataRow row in lkpClassNames.Rows)
                    {
                        ClassNames className = new ClassNames(_connString, Utils.DBNullToInt(row["Class_Name_ID"]));
                        retVal.Add(className);
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(retVal);
        }
예제 #2
0
        public ClassNames(int class_Name_ID)
        {
            ClassNamesBL classNames = new ClassNamesBL();
            lkpClassNames = classNames.GetClass_NameByClass_Name_ID(class_Name_ID);

            Class_Name_ID = class_Name_ID;
            Description = lkpClassNames[0].Class_Name_Description;
            Class_Name_Description = Description;
        }
예제 #3
0
        public ClassNames(string connString)
        {
            _connString = connString;

            try
            {
                ClassNamesBL classNames = new ClassNamesBL(_connString);
                lkpClassNames = classNames.GetClass_Names();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #4
0
        public List<ClassNames> GetClass_Names()
        {
            List<ClassNames> classNameList = new List<ClassNames>();
            ClassNamesBL classNames = new ClassNamesBL();
            lkpClassNames = classNames.GetClass_Names();

            if (lkpClassNames != null && lkpClassNames.Count > 0)
            {
                foreach (sss.lkpClass_NamesRow row in lkpClassNames)
                {
                    ClassNames className = new ClassNames(row.Class_Name_ID);
                    classNameList.Add(className);
                }
            }

            return classNameList;
        }
예제 #5
0
        public ClassNames(string connString, int class_Name_ID)
        {
            _connString = connString;

            try
            {
                ClassNamesBL classNames = new ClassNamesBL(_connString);
                lkpClassNames = classNames.GetClass_NameByClass_Name_ID(class_Name_ID);
                DataRow row = lkpClassNames.Rows[0];

                _class_Name_ID          = class_Name_ID;
                _description            = Utils.DBNullToString(row["Class_Name_Description"]);
                _class_Name_Description = Description;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #6
0
 public ClassNames()
 {
     ClassNamesBL classNames = new ClassNamesBL();
     lkpClassNames = classNames.GetClass_Names();
 }