Esempio n. 1
0
        public void Load(int iID)
        {
            CDbWeekList dbDt = new CDbWeekList();
            string      tmpDat;

            tmpDat = dbDt.GetByID(iID);

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

            dbDt = null;
        }
Esempio n. 2
0
        public int Save()
        {
            CDbWeekList dbDt = new CDbWeekList();
            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);
        }
Esempio n. 3
0
        public static void Delete(int cID)
        {
            CDbWeekList dbDt = new CDbWeekList();

            dbDt.Delete(cID);
        }
Esempio n. 4
0
        public static DataSet GetList(DateTime startDate, DateTime endDate)
        {
            CDbWeekList dbDt = new CDbWeekList();

            return(dbDt.GetList(startDate, endDate));
        }
Esempio n. 5
0
        public static SqlDataReader GetList()
        {
            CDbWeekList dbDt = new CDbWeekList();

            return(dbDt.GetList());
        }