Esempio n. 1
0
        public void Load(int iID)
        {
            CDbBudgetExpenseLine dbDt = new CDbBudgetExpenseLine();
            string tmpDat;

            tmpDat = dbDt.GetByID(iID);

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

            dbDt = null;
        }
Esempio n. 2
0
        public int Save()
        {
            CDbBudgetExpenseLine dbDt = new CDbBudgetExpenseLine();
            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);
        }
Esempio n. 3
0
        public static void Delete(int cID)
        {
            CDbBudgetExpenseLine dbDt = new CDbBudgetExpenseLine();

            dbDt.Delete(cID);
        }
Esempio n. 4
0
        public static void CopyExpenseLines(int originalID, int newBudID)
        {
            CDbBudgetExpenseLine dbDt = new CDbBudgetExpenseLine();

            dbDt.CopyExpenseLines(originalID, newBudID);
        }
Esempio n. 5
0
        public static SqlDataReader GetListByBudget(int budID, int groupID)
        {
            CDbBudgetExpenseLine dbDt = new CDbBudgetExpenseLine();

            return(dbDt.GetListByBudget(budID, groupID));
        }
Esempio n. 6
0
        public static SqlDataReader GetList()
        {
            CDbBudgetExpenseLine dbDt = new CDbBudgetExpenseLine();

            return(dbDt.GetList());
        }
Esempio n. 7
0
        public static void AddMissingLines(int budID, int groupID, string wbsCode)
        {
            CDbBudgetExpenseLine exp = new CDbBudgetExpenseLine();

            exp.AddMissingLines(budID, groupID, wbsCode);
        }