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