public void Load(int iID) { CDbActivityCode dbDt = new CDbActivityCode(); string tmpDat; tmpDat = dbDt.GetByID(iID); Clear(); if (tmpDat.Length > 0) { LoadVals(tmpDat); } dbDt = null; }
public int Save() { CDbActivityCode dbDt = new CDbActivityCode(); 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) { CDbActivityCode dbDt = new CDbActivityCode(); dbDt.Delete(cID); }
public static SqlDataReader GetDeptGroup() { CDbActivityCode dbDt = new CDbActivityCode(); return(dbDt.GetDeptGroup()); }
public static SqlDataReader GetListForBudget() { CDbActivityCode dbDt = new CDbActivityCode(); return(dbDt.GetListForBudget()); }
public static int GetID_ByActivityCode(int Code) //******************************Added 11/23 { CDbActivityCode dbDt = new CDbActivityCode(); return(dbDt.GetID_ByActivityCode(Code)); }