コード例 #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);
        }