Exemplo n.º 1
0
        public void Load(int iID)
        {
            CDbProjectSummaryPCN dbDt = new CDbProjectSummaryPCN();
            string tmpDat;

            tmpDat = dbDt.GetByID(iID);

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

            dbDt = null;
        }
Exemplo n.º 2
0
        public int Save()
        {
            CDbProjectSummaryPCN dbDt = new CDbProjectSummaryPCN();
            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)
        {
            CDbProjectSummaryPCN dbDt = new CDbProjectSummaryPCN();

            dbDt.Delete(cID);
        }
Exemplo n.º 4
0
        public static SqlDataReader GetListByProject(int projSumID, int projID)
        {
            CDbProjectSummaryPCN dbDt = new CDbProjectSummaryPCN();

            return(dbDt.GetListByProject(projSumID, projID));
        }
Exemplo n.º 5
0
        public static SqlDataReader GetList()
        {
            CDbProjectSummaryPCN dbDt = new CDbProjectSummaryPCN();

            return(dbDt.GetList());
        }