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

            tmpDat = dbDt.GetByID(iID);

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

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

            dbDt.Delete(cID);
        }
Пример #4
0
        public static SqlDataReader GetDeptGroup()
        {
            CDbActivityCode dbDt = new CDbActivityCode();

            return(dbDt.GetDeptGroup());
        }
Пример #5
0
        public static SqlDataReader GetListForBudget()
        {
            CDbActivityCode dbDt = new CDbActivityCode();

            return(dbDt.GetListForBudget());
        }
Пример #6
0
        public static int GetID_ByActivityCode(int Code) //******************************Added 11/23
        {
            CDbActivityCode dbDt = new CDbActivityCode();

            return(dbDt.GetID_ByActivityCode(Code));
        }