예제 #1
0
        public void Load(int iID)
        {
            CDbUnitOfMeasure dbDt = new CDbUnitOfMeasure();
            string           tmpDat;

            tmpDat = dbDt.GetByID(iID);

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

            dbDt = null;
        }
예제 #2
0
        public int Save()
        {
            CDbUnitOfMeasure dbDt = new CDbUnitOfMeasure();
            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 iID)
        {
            CDbUnitOfMeasure dbDt = new CDbUnitOfMeasure();

            dbDt.Delete(iID);
        }
예제 #4
0
        public static SqlDataReader GetList()
        {
            CDbUnitOfMeasure dbDt = new CDbUnitOfMeasure();

            return(dbDt.GetList());
        }