示例#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;
 }
示例#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));
 }
示例#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);
 }
示例#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);
 }