Beispiel #1
0
        public int UpdateSch() //****************************Added 8/11
        {
            CDbProjectSummarySch dbDt = new CDbProjectSummarySch();
            string tmpDat;
            int    retVal;

            tmpDat = GetDataString();

            dbDt.SavePrev(tmpDat);
            retVal = base.ID;
            dbDt   = null;
            return(retVal);
        }
Beispiel #2
0
        public int Save()
        {
            CDbProjectSummarySch dbDt = new CDbProjectSummarySch();
            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);
        }