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