Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref = "Allocation"/> class.
 /// </summary>
 /// <param name = "authority" >
 /// The authority.
 /// </param>
 public Allocation(IAuthority authority)
 {
     Authority           = authority;
     BudgetFiscalYear    = Authority?.GetBudgetFiscalYear();
     Data                = Authority?.ToDictionary();
     Funds               = GetFunds();
     ProgramResultCodes  = GetProgramResultsCodes();
     FullTimeEquivalents = GetFullTimeEquivalents();
     Organizations       = GetOrganizations();
     AllowanceHolders    = GetAllowanceHolders();
     Accounts            = GetAccounts();
     ObjectClasses       = GetBudgetObjectClasses();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref = "ExcelBudget"/> class.
 /// </summary>
 /// <param name = "authority" >
 /// The authority.
 /// </param>
 public ExcelBudget(IAuthority authority)
 {
     Excel      = new ExcelPackage(new FileInfo(FilePath));
     Workbook   = Excel.Workbook;
     SheetCount = Workbook.Worksheets.Count;
     Authority  = authority;
     Allocation = Authority.GetAllocation();
     Data       = Allocation.GetData();
     BFY        = Authority.GetBudgetFiscalYear();
     RPIO       = Authority.GetResourcePlanningOffice();
     Fund       = Authority.GetFund();
     AH         = Authority.GetAllowanceHolder();
     ORG        = Authority.GetOrganization();
     RC         = Authority.GetResponsibilityCenter();
     Division   = new Division(RC);
 }