public static FinancialAccounts GetAll() { return(FromArray(SwarmDb.GetDatabaseForReading().GetFinancialAccountsAll())); }
public static ExpenseClaims FromClaimingPerson(Person person) { return(FromArray(SwarmDb.GetDatabaseForReading().GetExpenseClaimsByClaimer(person.Identity))); }
public static DateTime CheckLatest(PWLogItem affectedItemType, int affectedItemId, PWLogAction actionType) { return(SwarmDb.GetDatabaseForReading() .CheckLogEntry(affectedItemType.ToString(), affectedItemId, actionType.ToString())); }
public double GetBudget(int year) { return(SwarmDb.GetDatabaseForReading().GetFinancialAccountBudget(Identity, year)); }
public static MediaCategories FromIdentities(int[] identities) { return(FromArray(SwarmDb.GetDatabaseForReading().GetMediaCategories(identities))); }
public Int64 GetDeltaCents(DateTime start, DateTime end) { return(SwarmDb.GetDatabaseForReading().GetFinancialAccountBalanceDeltaCents(Identity, start, end)); }
public FinancialAccountRows GetRows(DateTime start, DateTime end) { BasicFinancialAccountRow[] basicRows = SwarmDb.GetDatabaseForReading() .GetFinancialAccountRows(Identity, start, end, false); return(FinancialAccountRows.FromArray(basicRows)); }
// nothing much here public static Ballots ForElection(Election election) { return(FromArray(SwarmDb.GetDatabaseForReading().GetBallots(election, Organization.PPSE))); // HACK HACK HACK -- PPSE hardcoded }
public static Dictionary <int, int> GetBallotsForPerson(Person person) { return(SwarmDb.GetDatabaseForReading().GetBallotsForPerson(person.Identity)); }
public static PersonRole FromIdentity(int roleId) { return(FromBasic(SwarmDb.GetDatabaseForReading().GetRole(roleId))); }
public static Currencies GetAll() { return(FromArray(SwarmDb.GetDatabaseForReading().GetCurrencies())); }
private static FinancialAccounts FromOptionalData(ObjectOptionalDataType dataType, string data) { return (FromIdentities(SwarmDb.GetDatabaseForReading() .GetObjectsByOptionalData(ObjectType.FinancialAccount, dataType, data))); }
public static FinancialAccounts ForOwner(Person person) { return(FromArray(SwarmDb.GetDatabaseForReading().GetFinancialAccountsOwnedByPerson(person.Identity))); }
public static FinancialAccounts ForOrganization(Organization organization) { return (FromArray(SwarmDb.GetDatabaseForReading() .GetFinancialAccountTreeForOrganization(organization.Identity))); }
public static Geography FromOfficialDesignation(int countryId, GeographyLevel level, string designation) { return (FromIdentity(SwarmDb.GetDatabaseForReading().GetGeographyIdFromOfficialDesignation(countryId, level, designation))); }
public static Currency FromIdentity(int currencyId) { return(FromBasic(SwarmDb.GetDatabaseForReading().GetCurrency(currencyId))); }
public static FinancialAccount FromIdentity(int identity) { return(FromBasic(SwarmDb.GetDatabaseForReading().GetFinancialAccount(identity))); }
public static Currency FromCode(string code) { code = code.ToUpperInvariant(); return(FromBasic(SwarmDb.GetDatabaseForReading().GetCurrency(code))); }
public FinancialAccountRows GetLastRows(int rowCount) { BasicFinancialAccountRow[] basicRows = SwarmDb.GetDatabaseForReading() .GetLastFinancialAccountRows(Identity, rowCount); return(FinancialAccountRows.FromArray(basicRows)); }
public static ChurnData ForOrganization(Organization organization) { return(FromArray(SwarmDb.GetDatabaseForReading().GetChurnData(organization))); }
public FinancialAccountRows GetRowsFar(DateTime start, DateTime end) // selects lowerbound < x <= upperbound { BasicFinancialAccountRow[] basicRows = SwarmDb.GetDatabaseForReading() .GetFinancialAccountRows(Identity, start, end, true); return(FinancialAccountRows.FromArray(basicRows)); }
public static ChurnData ForPerson(Person person) { return(FromArray(SwarmDb.GetDatabaseForReading().GetChurnData(person))); }
public Int64[] GetBudgetMonthly(int year) { return(SwarmDb.GetDatabaseForReading().GetFinancialAccountBudgetMonthly(Identity, year)); }
public static ChurnData GetByDate(Organization organization, DateTime dateLower, DateTime dateUpper) { return (FromArray(SwarmDb.GetDatabaseForReading() .GetChurnDataForOrganization(organization, dateLower, dateUpper))); }
public static MediaCategories GetAll() { return(FromArray(SwarmDb.GetDatabaseForReading().GetMediaCategories())); }
public static FinancialTransactionTagSets ForOrganization(Organization organization) { return(FromArray(SwarmDb.GetDatabaseForReading().GetFinancialTransactionTagSets(organization))); }
public static ExpenseClaims FromOrganization(Organization org) { return(FromArray(SwarmDb.GetDatabaseForReading().GetExpenseClaimsByOrganization(org.Identity))); }
public BasicGeographyDesignation[] GetGeographyDesignations() { return(SwarmDb.GetDatabaseForReading().GetGeographyDesignationsForGeographyId(Identity)); }
public static Dictionary <int, bool> GetPeopleWhoDeclineLocalMail(int[] personIds) { return(SwarmDb.GetDatabaseForReading().GetPeopleWhoDeclineLocalMail(personIds)); }
public Int64 GetBudgetSumCents(int year) { // TODO: Add support in database return((Int64)(SwarmDb.GetDatabaseForReading().GetFinancialAccountsBudget(Identities, year) * 100)); }