Пример #1
0
        public void Load(int deptID, int projID)
        {
            CDbProjectBudget dbDt = new CDbProjectBudget();
            string           tmpDat;

            tmpDat = dbDt.GetByDeptProj(deptID, projID);

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

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

            tmpDat = dbDt.GetByID(iID);

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

            dbDt = null;
        }
Пример #3
0
        public int Save()
        {
            CDbProjectBudget dbDt = new CDbProjectBudget();
            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 void Delete(int cID)
        {
            CDbProjectBudget dbDt = new CDbProjectBudget();

            dbDt.Delete(cID);
        }
Пример #5
0
        public static DataSet GetExistingVisionPlan(string number)
        {
            CDbProjectBudget dbDt = new CDbProjectBudget();

            return(dbDt.GetExistingVisionPlan(number));
        }
Пример #6
0
        public static DataSet GetExistingVisionExport()
        {
            CDbProjectBudget dbDt = new CDbProjectBudget();

            return(dbDt.GetExistingVisionExport());
        }
Пример #7
0
        public static SqlDataReader GetExpenseGroupByDiscipline(int discipline)
        {
            CDbProjectBudget dbDt = new CDbProjectBudget();

            return(dbDt.GetExpenseGroupByDiscipline(discipline));
        }
Пример #8
0
        public static SqlDataReader GetAccountGroupByDiscipline(int discipline, bool isGovernment)
        {
            CDbProjectBudget dbDt = new CDbProjectBudget();

            return(dbDt.GetAccountGroupByDisciplineForGovernment(discipline));
        }
Пример #9
0
        public static DataSet GetSchByProject(int projSumID, int projID)
        {
            CDbProjectBudget dbDt = new CDbProjectBudget();

            return(dbDt.GetSchByProject(projSumID, projID));
        }
Пример #10
0
        public static DataSet GetCostReport_ForPM(string project, int rprtCase, bool isRollup) //Added 2/6/2015
        {
            CDbProjectBudget dbDt = new CDbProjectBudget();

            return(dbDt.GetCostReport_ForPM(project, rprtCase, isRollup));
        }
Пример #11
0
        public static DataSet GetCostReport(string project, int rprtCase, bool isRollup)
        {
            CDbProjectBudget dbDt = new CDbProjectBudget();

            return(dbDt.GetCostReport(project, rprtCase, isRollup));
        }
Пример #12
0
        public static DataSet GetListDSByProjID(int projID)
        {
            CDbProjectBudget dbDt = new CDbProjectBudget();

            return(dbDt.GetListDSByProjID(projID));
        }
Пример #13
0
        public static SqlDataReader GetListByProjID(int projID)
        {
            CDbProjectBudget dbDt = new CDbProjectBudget();

            return(dbDt.GetListByProjID(projID));
        }
Пример #14
0
        public static SqlDataReader GetList()
        {
            CDbProjectBudget dbDt = new CDbProjectBudget();

            return(dbDt.GetList());
        }