public void Load(int iID) { CDbUserLevel dbDt = new CDbUserLevel(); string tmpDat; tmpDat = dbDt.GetByID(iID); Clear(); if (tmpDat.Length > 0) { LoadVals(tmpDat); } dbDt = null; }
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); }
public static void Delete(int cID) { CDbUserLevel dbDt = new CDbUserLevel(); dbDt.Delete(cID); }
public static decimal GetMaxLevelForUser(int userID) { CDbUserLevel dbDt = new CDbUserLevel(); return(dbDt.GetMaxLevelForUser(userID)); }
public static decimal GetLevelForDepartment(int userID, int deptID) { CDbUserLevel dbDt = new CDbUserLevel(); return(dbDt.GetLevelForDepartment(userID, deptID)); }
public static DataSet GetListOfDepartmentLevels(int userID) { CDbUserLevel dbDt = new CDbUserLevel(); return(dbDt.GetListOfDepartmentLevels(userID)); }
public static SqlDataReader GetList() { CDbUserLevel dbDt = new CDbUserLevel(); return(dbDt.GetList()); }