Пример #1
0
        public void Load(int iID)
        {
            CDbUserLevel dbDt = new CDbUserLevel();
            string       tmpDat;

            tmpDat = dbDt.GetByID(iID);

            Clear();
            if (tmpDat.Length > 0)
            {
                LoadVals(tmpDat);
            }

            dbDt = null;
        }
Пример #2
0
        public int Save()
        {
            CDbUserLevel dbDt = new CDbUserLevel();
            string       tmpDat;
            int          retVal;

            tmpDat = GetDataString();

            if (base.ID > 0)
            {
                dbDt.SavePrev(tmpDat);
                retVal = base.ID;
            }
            else
            {
                retVal  = dbDt.SaveNew(tmpDat);
                base.ID = retVal;
            }

            dbDt = null;

            return(retVal);
        }
Пример #3
0
        public static void Delete(int cID)
        {
            CDbUserLevel dbDt = new CDbUserLevel();

            dbDt.Delete(cID);
        }
Пример #4
0
        public static decimal GetMaxLevelForUser(int userID)
        {
            CDbUserLevel dbDt = new CDbUserLevel();

            return(dbDt.GetMaxLevelForUser(userID));
        }
Пример #5
0
        public static decimal GetLevelForDepartment(int userID, int deptID)
        {
            CDbUserLevel dbDt = new CDbUserLevel();

            return(dbDt.GetLevelForDepartment(userID, deptID));
        }
Пример #6
0
        public static DataSet GetListOfDepartmentLevels(int userID)
        {
            CDbUserLevel dbDt = new CDbUserLevel();

            return(dbDt.GetListOfDepartmentLevels(userID));
        }
Пример #7
0
        public static SqlDataReader GetList()
        {
            CDbUserLevel dbDt = new CDbUserLevel();

            return(dbDt.GetList());
        }