public void Load(int iID) { CDbBudgetPCNExpense dbDt = new CDbBudgetPCNExpense(); string tmpDat; tmpDat = dbDt.GetByID(iID); Clear(); if (tmpDat.Length > 0) { LoadVals(tmpDat); } dbDt = null; }
public int Save() { CDbBudgetPCNExpense dbDt = new CDbBudgetPCNExpense(); 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) { CDbBudgetPCNExpense dbDt = new CDbBudgetPCNExpense(); dbDt.Delete(cID); }
public static SqlDataReader GetListByPCN(int pcnID) { CDbBudgetPCNExpense dbDt = new CDbBudgetPCNExpense(); return(dbDt.GetListByPCN(pcnID)); }
public static SqlDataReader GetList() { CDbBudgetPCNExpense dbDt = new CDbBudgetPCNExpense(); return(dbDt.GetList()); }