コード例 #1
0
        public void Load(int iID)
        {
            CDbLocation dbDt = new CDbLocation();
            string      tmpDat;

            tmpDat = dbDt.GetByID(iID);

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

            dbDt = null;
        }
コード例 #2
0
        public int Save()
        {
            CDbLocation dbDt = new CDbLocation();
            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)
        {
            CDbLocation dbDt = new CDbLocation();

            dbDt.Delete(cID);
        }
コード例 #4
0
        public static SqlDataReader GetList(int custID)
        {
            CDbLocation dbDt = new CDbLocation();

            return(dbDt.GetList(custID));
        }