コード例 #1
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);
 }