Esempio n. 1
0
        /// <summary>
        /// Gets a single row from the table fulfilling the criteria.
        /// </summary>
        /// <param name="wID">A ID as criteria.</param>
        /// <returns>The row fulfilling the criteria</returns>
        public DauerauftragRow GetSingleRow(int wID, bool canBeNull)
        {
            DauerauftragRow ret = mTable.GetSingleRow(wID);

            if (ret.IsNull && !canBeNull)
            {
                UnexpectedNull(MethodBase.GetCurrentMethod(), wID);
            }
            return(ret);
        }
 internal DauerauftragVm(BudgetVm aBudgetVm, DauerauftragRow aRow)
 {
     this.Row       = aRow;
     this.mBudgetVm = aBudgetVm;
 }
 internal DauerauftragVm(BudgetVm aBudgetVm)
 {
     this.Row          = DauerauftragRow.InitEmpty();
     this.mBudgetVm    = aBudgetVm;
     this.Row.IDBudget = this.mBudgetVm.Id;
 }
Esempio n. 4
0
 /// <summary>
 /// Inserts the given row and returns its id.
 /// </summary>
 /// <param name="row">The prefilled row to insert.</param>
 /// <returns>The inserted row</returns>
 public int InsertRow(DauerauftragRow row)
 {
     return(mTable.InsertRow(row.IDBudget, row.Bezeichnung, row.GueltigAb, row.GueltigBis, row.Lauftag, row.Betrag));
 }
Esempio n. 5
0
 /// <summary>
 /// Deletes the given row.
 /// </summary>
 /// <param name="row">The row to delete</param>
 public void DeleteSingleRow(DauerauftragRow row)
 {
     mTable.DeleteSingleRow(row.ID);
 }
Esempio n. 6
0
 /// <summary>
 /// Updates the given single row on the table.
 /// </summary>
 /// <param name="row">The prefilled row.</param>
 public void UpdateSingleRow(DauerauftragRow row)
 {
     mTable.UpdateSingleRow(row.IDBudget, row.Bezeichnung, row.GueltigAb, row.GueltigBis, row.Lauftag, row.Betrag, row.ID);
 }