Пример #1
0
        public static int GetNextRevision(int projID)
        {
            CDbBudget dbDt    = new CDbBudget();
            int       lastRev = 0;

            lastRev = dbDt.GetLastRevision(projID);

            lastRev++;

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

            tmpDat = dbDt.GetByID(iID);

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

            dbDt = null;
        }
Пример #3
0
        public int Save()
        {
            CDbBudget dbDt = new CDbBudget();
            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);
        }
Пример #4
0
        public static DataSet GetTravelExpenseReport(int budgetID)//*********************************Added 7/22/2015 //*******************************I will keep it
        {
            CDbBudget dbDt = new CDbBudget();

            return(dbDt.GetTravelExpenseReport(budgetID));
        }
Пример #5
0
        public static void CreateBudgetInJobStat(int budID)
        {
            CDbBudget dbDt = new CDbBudget();

            dbDt.CreateBudgetInJobStat(budID);
        }
Пример #6
0
        public static void CopyBudgetToProject(int budID, int newProjID, int rev)
        {
            CDbBudget dbDt = new CDbBudget();

            dbDt.CopyBudgetToProject(budID, newProjID, rev);
        }
Пример #7
0
        public static DataSet GetBudgetJobstatForReport(int budgetID, string wbs)
        {
            CDbBudget dbDt = new CDbBudget();

            return(dbDt.GetBudgetJobstatForReport(budgetID, wbs));
        }
Пример #8
0
        public static DataSet GetBudgetAccountingEntryForReport(int budgetID, string wbs)
        {
            CDbBudget dbDt = new CDbBudget();

            return(dbDt.GetBudgetAccountingEntryForReport(budgetID, wbs));
        }
Пример #9
0
        public static decimal GetTotalBudgetExpenses(int budgetID)
        {
            CDbBudget dbDt = new CDbBudget();

            return(dbDt.GetTotalBudgetExpenses(budgetID));
        }
Пример #10
0
        public static decimal GetContingencyForBudget(int budgetID)
        {
            CDbBudget dbDt = new CDbBudget();

            return(dbDt.GetContingencyForBudget(budgetID));
        }
Пример #11
0
        public static void Delete(int cID)
        {
            CDbBudget dbDt = new CDbBudget();

            dbDt.Delete(cID);
        }
Пример #12
0
        public static decimal GetTotalBudgetHourDollars(int budgetID, string wbs)
        {
            CDbBudget dbDt = new CDbBudget();

            return(dbDt.GetTotalBudgetHourDollars(budgetID, wbs));
        }
Пример #13
0
        public static void MakeBudgetLockedUnlocked(int budID, bool isLocked)
        {
            CDbBudget dbDt = new CDbBudget();

            dbDt.MakeBudgetLockedUnlocked(budID, isLocked);
        }
Пример #14
0
        public static void MakeBudgetDefault(int budID)
        {
            CDbBudget dbDt = new CDbBudget();

            dbDt.MakeBudgetDefault(budID);
        }
Пример #15
0
        public static void MakeBudgetActive(int budID)
        {
            CDbBudget dbDt = new CDbBudget();

            dbDt.MakeBudgetActive(budID);
        }
Пример #16
0
        public static SqlDataReader GetList()
        {
            CDbBudget dbDt = new CDbBudget();

            return(dbDt.GetList());
        }
Пример #17
0
        public static SqlDataReader GetListByProject(int projID)
        {
            CDbBudget dbDt = new CDbBudget();

            return(dbDt.GetListByProject(projID));
        }