Exemplo n.º 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;
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        public static void Delete(int cID)
        {
            CDbActivityCode dbDt = new CDbActivityCode();

            dbDt.Delete(cID);
        }
Exemplo n.º 4
0
        public static SqlDataReader GetDeptGroup()
        {
            CDbActivityCode dbDt = new CDbActivityCode();

            return(dbDt.GetDeptGroup());
        }
Exemplo n.º 5
0
        public static SqlDataReader GetListForBudget()
        {
            CDbActivityCode dbDt = new CDbActivityCode();

            return(dbDt.GetListForBudget());
        }
Exemplo n.º 6
0
        public static int GetID_ByActivityCode(int Code) //******************************Added 11/23
        {
            CDbActivityCode dbDt = new CDbActivityCode();

            return(dbDt.GetID_ByActivityCode(Code));
        }