Beispiel #1
0
        public void Load(int iID)
        {
            CDbTransmittalDistribution dbDt = new CDbTransmittalDistribution();
            string tmpDat;

            tmpDat = dbDt.GetByID(iID);

            Clear();
            if (tmpDat.Length > 0)
            {
                LoadVals(tmpDat);
            }

            dbDt = null;
        }
Beispiel #2
0
        public int Save()
        {
            CDbTransmittalDistribution dbDt = new CDbTransmittalDistribution();
            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);
        }
Beispiel #3
0
        public static void Delete(int iID)
        {
            CDbTransmittalDistribution dbDt = new CDbTransmittalDistribution();

            dbDt.Delete(iID);
        }
Beispiel #4
0
        public static SqlDataReader GetListOfCc(int releaseID)
        {
            CDbTransmittalDistribution db = new CDbTransmittalDistribution();

            return(db.GetListOfCc(releaseID));
        }
Beispiel #5
0
        public static SqlDataReader GetList()
        {
            CDbTransmittalDistribution db = new CDbTransmittalDistribution();

            return(db.GetList());
        }