Пример #1
0
        public void Load(int iID)
        {
            CDbTransmittalReleaseDoc dbDt = new CDbTransmittalReleaseDoc();
            string tmpDat;

            tmpDat = dbDt.GetByID(iID);

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

            dbDt = null;
        }
Пример #2
0
        public int Save()
        {
            CDbTransmittalReleaseDoc dbDt = new CDbTransmittalReleaseDoc();
            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);
        }
Пример #3
0
        public static void Delete(int cID)
        {
            CDbTransmittalReleaseDoc dbDt = new CDbTransmittalReleaseDoc();

            dbDt.Delete(cID);
        }
Пример #4
0
        public static int GetDocIDByID(int lID)
        {
            CDbTransmittalReleaseDoc db = new CDbTransmittalReleaseDoc();

            return(db.GetDocIDByID(lID));
        }
Пример #5
0
        public static SqlDataReader GetList(int transID)
        {
            CDbTransmittalReleaseDoc dbDt = new CDbTransmittalReleaseDoc();

            return(dbDt.GetList(transID));
        }