public void Load(string number) { CDbProject dbDt = new CDbProject(); string tmpDat; tmpDat = dbDt.GetByNumber(number); Clear(); if (tmpDat.Length > 0) { LoadVals(tmpDat); } dbDt = null; }
public void Load(int iID) { CDbProject dbDt = new CDbProject(); string tmpDat; tmpDat = dbDt.GetByID(iID); Clear(); if (tmpDat.Length > 0) { LoadVals(tmpDat); } dbDt = null; }
public void Load_Description(int iID) //************************************Added 7/8/2015 { CDbProject dbDt = new CDbProject(); string tmpDat; tmpDat = dbDt.GetByID_Description(iID); Clear(); if (tmpDat.Length > 0) { LoadVals_Description(tmpDat); } dbDt = null; }
public int Save() { CDbProject dbDt = new CDbProject(); 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 SqlDataReader GetListForMaster(string masterNum) { CDbProject dbDt = new CDbProject(); return(dbDt.GetListForMaster(masterNum)); }
public static SqlDataReader GetListMaster() { CDbProject dbDt = new CDbProject(); return(dbDt.GetListMasters()); }
public static SqlDataReader GetListProjRev() { CDbProject dbDt = new CDbProject(); return(dbDt.GetListProjRev()); }
public static SqlDataReader GetListProj_ByPM_SumID(int mngrID, int sumID) //*****************Added 8/4/2015/2015 { CDbProject dbDt = new CDbProject(); return(dbDt.GetListProj_ByPM_SumID(mngrID, sumID)); }
public static SqlDataReader GetListProj_ByMngrId(int mngrID) //*****************Added 7/27/2015 { CDbProject dbDt = new CDbProject(); return(dbDt.GetListProj_ByProjMngr(mngrID)); }
public static string GetNumberByID(int lID) { CDbProject dbDt = new CDbProject(); return(dbDt.GetNumberByID(lID)); }
public static void DeleteFromSchedule(int cID, int dID) { CDbProject dbDt = new CDbProject(); dbDt.DeleteFromSchedule(cID, dID); }
public static void Delete(int cID) { CDbProject dbDt = new CDbProject(); dbDt.Delete(cID); }