示例#1
0
        public void Load(int iID)
        {
            CDbBudgetLine dbDt = new CDbBudgetLine();
            string        tmpDat;

            tmpDat = dbDt.GetByID(iID);

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

            dbDt = null;
        }
示例#2
0
        public int Save()
        {
            CDbBudgetLine dbDt = new CDbBudgetLine();
            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);
        }
示例#3
0
        public static void Delete(int cID)
        {
            CDbBudgetLine dbDt = new CDbBudgetLine();

            dbDt.Delete(cID);
        }
示例#4
0
        public static SqlDataReader GetWBSListByBudget(int budID)
        {
            CDbBudgetLine dbDt = new CDbBudgetLine();

            return(dbDt.GetWBSListByBudget(budID));
        }
示例#5
0
        public static SqlDataReader GetExportList_Expense_ByPCNID(int PCNID) //*********************Added 6/3/15
        {
            CDbBudgetLine dbDt = new CDbBudgetLine();

            return(dbDt.GetExportList_Expense_PCN(PCNID));
        }
示例#6
0
        public static string GetDescriptionByCode(int code)
        {
            CDbBudgetLine dbDt = new CDbBudgetLine();

            return(dbDt.GetDescriptionByCode(code));
        }
示例#7
0
        public static void CopyBudgetLines(int originalID, int newBudID)
        {
            CDbBudgetLine dbDt = new CDbBudgetLine();

            dbDt.CopyBudgetLines(originalID, newBudID);
        }
示例#8
0
        public static SqlDataReader GetListByBudgetWithWBS(int budID, int groupID, string wbsCode)
        {
            CDbBudgetLine dbDt = new CDbBudgetLine();

            return(dbDt.GetListByBudgetWithWBS(budID, groupID, wbsCode));
        }
示例#9
0
        public static void AddMissingLines(int budID, int groupID, string wbsCode)
        {
            CDbBudgetLine dbDt = new CDbBudgetLine();

            dbDt.AddMissingLines(budID, groupID, wbsCode);
        }
示例#10
0
        public static SqlDataReader GetList()
        {
            CDbBudgetLine dbDt = new CDbBudgetLine();

            return(dbDt.GetList());
        }