Пример #1
0
        public void Load(string number)
        {
            CDbProject dbDt = new CDbProject();
            string     tmpDat;

            tmpDat = dbDt.GetByNumber(number);

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

            dbDt = null;
        }
Пример #2
0
        public void Load(int iID)
        {
            CDbProject dbDt = new CDbProject();
            string     tmpDat;

            tmpDat = dbDt.GetByID(iID);

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

            dbDt = null;
        }
Пример #3
0
        public void Load_Description(int iID) //************************************Added 7/8/2015
        {
            CDbProject dbDt = new CDbProject();
            string     tmpDat;

            tmpDat = dbDt.GetByID_Description(iID);

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

            dbDt = null;
        }
Пример #4
0
        public int Save()
        {
            CDbProject dbDt = new CDbProject();
            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);
        }
Пример #5
0
        public static SqlDataReader GetListForMaster(string masterNum)
        {
            CDbProject dbDt = new CDbProject();

            return(dbDt.GetListForMaster(masterNum));
        }
Пример #6
0
        public static SqlDataReader GetListMaster()
        {
            CDbProject dbDt = new CDbProject();

            return(dbDt.GetListMasters());
        }
Пример #7
0
        public static SqlDataReader GetListProjRev()
        {
            CDbProject dbDt = new CDbProject();

            return(dbDt.GetListProjRev());
        }
Пример #8
0
        public static SqlDataReader GetListProj_ByPM_SumID(int mngrID, int sumID) //*****************Added 8/4/2015/2015
        {
            CDbProject dbDt = new CDbProject();

            return(dbDt.GetListProj_ByPM_SumID(mngrID, sumID));
        }
Пример #9
0
        public static SqlDataReader GetListProj_ByMngrId(int mngrID) //*****************Added 7/27/2015
        {
            CDbProject dbDt = new CDbProject();

            return(dbDt.GetListProj_ByProjMngr(mngrID));
        }
Пример #10
0
        public static string GetNumberByID(int lID)
        {
            CDbProject dbDt = new CDbProject();

            return(dbDt.GetNumberByID(lID));
        }
Пример #11
0
        public static void DeleteFromSchedule(int cID, int dID)
        {
            CDbProject dbDt = new CDbProject();

            dbDt.DeleteFromSchedule(cID, dID);
        }
Пример #12
0
        public static void Delete(int cID)
        {
            CDbProject dbDt = new CDbProject();

            dbDt.Delete(cID);
        }