public static long AddTransactionType(Hashtable row) { SBTableTransactionType tt = new SBTableTransactionType(); tt.insertRow(row); return(tt.LastInsertID); }
/// <summary> /// Gets the transaction types. /// </summary> /// <returns> /// The transaction types. A <see cref="System.Collections.ArrayList"/> with rows as <see cref="System.Collections.Hashtable"/> /// </returns> public static ArrayList GetTransactionTypes() { SBTableTransactionType tt = new SBTableTransactionType(); ArrayList tts = tt.getRows(""); return(tts); }
public static Hashtable GetTransactionType(int id) { SBTableTransactionType tt = new SBTableTransactionType(); Hashtable row = tt.getRow(string.Format("transaction_type_id = {0}", id)); return(row); }
public SBTransactionType(int id = 0) : base() { this._dbTable = new SBTableTransactionType(); if (id != 0) { this.GetDbData(id); } }